/* Shared readability and navigation, without changing tool-specific layouts. */
:root { --text-muted: #566174; --input-border: #aeb9c8; --radius-md: 8px; --radius-lg: 8px; }
body.dark-mode { --text-muted: #c0cad8; --input-border: #708096; }
body.dark-mode .catalogue-list a:hover, body.dark-mode .menu-item:not(.active):hover,
body.dark-mode .sidebar-menu small, body.dark-mode .seo-detail-section a,
body.dark-mode .btn-secondary:hover { color: #aac9ff; }
body.dark-mode .btn-primary, body.dark-mode .menu-item.active { color: #fff; }
body.dark-mode .category-indicator { color: #ffdf77; background: #443d24 !important; }
.sidebar-menu .menu-item.active small { color: inherit; }
.welcome-banner, body.dark-mode .welcome-banner { padding: 28px 0; background: transparent; color: var(--text-main); box-shadow: none; border-bottom: 1px solid var(--border-color); }
.welcome-banner::before, .welcome-banner::after { display: none; }
.welcome-text h1 { font-size: 30px; }
.welcome-text p { color: var(--text-muted); opacity: 1; }
.welcome-badge { background: var(--bg-surface); border-color: var(--border-color); }
.tool-page-header h1 { font-size: 30px; }
.tool-page-header { padding: 18px 0 24px; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; box-shadow: none; }
.tool-page-header::before { display: none; }
.menu-toggle-btn, .sidebar-close-btn { width: 42px; height: 42px; flex: 0 0 42px; }
.btn, .category-indicator, .tool-card h3 { letter-spacing: 0; }
.btn { min-height: 42px; border-radius: 6px; }
.tool-card { box-shadow: none; }
.tool-card:hover { border-color: var(--clr-primary); box-shadow: 0 3px 10px rgba(25,35,50,.08); }
:is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #2879dc; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
input, textarea, select { max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
.sidebar-group-hidden { display: none !important; }
.sidebar-menu .menu-category { margin: 6px 0; padding: 0; font-size: 13px; }
.sidebar-category-toggle { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 12px; gap: 8px; width: 100%; min-height: 52px; align-items: center; text-align: left; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); color: var(--text-main); font: inherit; padding: 8px 10px; cursor: pointer; letter-spacing: 0; }
.sidebar-category-toggle:hover { background: var(--bg-surface-soft); border-color: var(--text-muted); }
.sidebar-category-toggle:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; }
.sidebar-category-toggle[aria-expanded=true] { background: var(--bg-surface-soft); }
.sidebar-category-name { line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.sidebar-category-toggle .sidebar-category-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; font-size: 14px; background: #e5f3ef; color: #147260; }
.menu-category:nth-of-type(3n+1) .sidebar-category-icon { background: #e9eefb; color: #365aaa; }
.menu-category:nth-of-type(3n+2) .sidebar-category-icon { background: #fff2d9; color: #8b5b12; }
.sidebar-category-count { min-width: 24px; padding: 2px 5px; border-radius: 4px; background: var(--bg-surface-soft); color: var(--text-muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.sidebar-category-chevron { font-size: 10px; color: var(--text-muted); transition: transform .15s; }
.sidebar-category-toggle[aria-expanded=true] .sidebar-category-chevron { transform: rotate(180deg); }
.sidebar-menu .menu-item { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sidebar-category-chevron { transition: none; } }
.sidebar-menu small { margin-left: auto; color: var(--clr-primary); font-size: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }
.breadcrumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.catalogue-search { display: block; width: 100%; padding: 14px 16px; margin: 10px 0; border: 1px solid var(--input-border); border-radius: 8px; color: var(--text-main); background: var(--bg-surface); }
.catalogue-section { margin: 32px 0; }
.catalogue-section h2 { font-size: 20px; margin-bottom: 12px; }
.catalogue-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 0; }
.catalogue-list li { min-width: 0; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); overflow: hidden; }
.catalogue-list a { display: flex; align-items: center; height: 100%; min-height: 54px; color: var(--text-main); padding: 10px 12px; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.catalogue-list a:hover { color: var(--clr-primary); background: var(--bg-surface-soft); }
.catalogue-list [hidden], .catalogue-section[hidden] { display: none; }
.utility-panel h2 { font-size: 19px; }
.utility-panel, .tool-card { border-radius: 8px; }
.utility-textarea { font-size: 16px; line-height: 1.7; }
.utility-options-grid label { display: flex; gap: 8px; align-items: center; }
.seo-detail-section p { line-height: 1.85; }
.result-value, .result-row { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .catalogue-list { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 600px) { .catalogue-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; } .catalogue-list a { padding: 9px; } .breadcrumbs { font-size: 12px; } .welcome-text h1, .tool-page-header h1 { font-size: 24px; } .welcome-banner { padding: 20px 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
