/* Category-first navigation: all tools remain linked in the server-rendered HTML. */
[hidden]{display:none!important}
.tk-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px}
.tk-category-card{display:flex;gap:12px;align-items:flex-start;padding:18px;border:1px solid #d6dfe4;border-radius:14px;background:#fff;color:#203345;text-decoration:none;min-width:0}
.tk-category-card:hover,.tk-category-card:focus-visible{border-color:#946d34;background:#fbf8f1}
.tk-category-card>span:first-child{color:#84602a;background:#f6efdf;padding:6px;border-radius:6px;font:700 .8rem/1.3 system-ui}
.tk-category-card strong{display:block;font:700 1.08rem/1.35 system-ui;overflow-wrap:anywhere}
.tk-category-card small{display:block;margin-top:6px;color:#52616d;font:.9rem/1.5 system-ui}
.tk-category-card em{font-style:normal;color:#596775;display:block;margin-top:8px;font-size:.8rem}
.tk-category-toolbar,.tk-category-back,.tk-workspace-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}
.tk-category-back{padding-block:6px;font-size:.9rem}
.tk-category-back a,.tk-workspace-actions a,.tk-workspace-actions button{min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d6dfe4;border-radius:8px;background:#fff;color:#203345;line-height:1.35;text-decoration:none;white-space:normal;text-align:left}
.tk-category-back span{overflow-wrap:anywhere;max-width:100%}
.tk-directory{padding:16px 0 22px;margin:0}
.tk-directory .tk-workspace-intro{margin:0 0 16px}
.tk-directory h2{font-size:1.55rem;line-height:1.3;margin:5px 0}
.tk-directory-controls{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:16px 0 8px}
.tk-directory-controls label{flex:1 1 240px;min-width:0}
.tk-directory-controls input{width:100%;min-height:48px;font-size:1rem}
.tk-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.tk-directory-card{min-width:0;height:auto;padding:16px;border-radius:12px;background:#fff;border:1px solid #d6dfe4}
.tk-directory-card strong{font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
.tk-directory-card span{overflow-wrap:anywhere}
.tk-directory-category{font-size:.75rem!important;color:#6a522d!important;letter-spacing:.02em}
.tk-category-pdfs{margin:20px 0;padding:16px;background:#f5f7f8;border:1px solid #d6dfe4;border-radius:12px}
.tk-category-pdfs h3{font-size:1.1rem;margin:0 0 8px;line-height:1.4}
.tk-category-pdfs form label{display:block;font-size:.9rem;margin:8px 0}
.tk-category-pdfs .tk-download-row{display:flex;flex-direction:row;gap:10px;flex-wrap:wrap}
.tk-category-pdfs select{min-width:0;max-width:100%;flex:1 1 260px;min-height:48px;font-size:1rem}
.tk-category-pdfs button{min-height:48px;white-space:normal}
.tk-chart-downloads .tk-download-row{flex-direction:row;flex-wrap:wrap}
.tk-chart-downloads .tk-download-row select{flex:1 1 260px;min-height:48px}
.tk-pdf-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tk-chart-list .tk-pdf-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 13px;white-space:normal;font-size:.9rem;line-height:1.4}
.tk-chart-name{display:block;font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
.tk-chart-pages{display:block;margin-top:5px;font-size:.85rem;color:#52616d}
.tk-category-pdfs .tk-note{margin:10px 0 0}
.tk-category-native .tk-toolnav-wrap{display:none!important}
.tk-external-search{display:block;margin:8px 0;padding:10px 12px;border:1px solid #b59b6b;border-radius:8px;background:#faf7f0;color:#203345;font:600 1rem/1.4 system-ui;white-space:normal;text-align:left;min-height:48px}
.tk-noresult{white-space:normal!important;line-height:1.5!important}
.tk-noresult small{display:block;margin:6px 0}
.tk-directory-status{min-height:1.5em}
.tk-category-focus:focus{outline:none}
.tk-about-tool{margin-top:12px;color:#dce5e8;font-size:.9rem}
.tk-about-tool summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.tk-shell-wrap+.container .tk-stats{margin:8px 0 18px;color:#52616d;gap:14px;line-height:1.5}
.tk-shell-wrap+.container .tk-stats span{color:#52616d;opacity:1}
.tk-shell-wrap+.container .tk-stats b{color:#203345}
@media(max-width:600px){.tk-category-grid{grid-template-columns:1fr}.tk-category-card{padding:14px}.tk-directory h2{font-size:1.3rem}.tk-category-back{margin:8px 0}.tk-directory-grid{grid-template-columns:1fr}}
@media print{.tk-category-grid,.tk-category-back,.tk-workspace-actions,.tk-category-pdfs,.tk-directory-controls{display:none!important}}
