/* Directory inherits the executive shell's light/dark theme tokens. */
.tool-directory,.method-guide { margin: 2rem 0 3rem; color: var(--shell-text, #0f1c3f); }
.directory-heading { max-width: 55rem; margin-bottom: 1.25rem; }
.directory-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--shell-accent, #917033); margin-bottom: .5rem; }
.tool-directory h2,.method-guide h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 .7rem; }
.tool-directory p,.method-guide p { line-height: 1.65; }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: .85rem; }
.directory-grid a { display: flex; flex-direction: column; gap: .65rem; min-width: 0; padding: 1.3rem; border: 1px solid var(--shell-line, #d7dce5); border-radius: 10px; background: var(--shell-panel, #fff); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.directory-grid a:hover { border-color: var(--shell-accent, #917033); transform: translateY(-2px); }
.directory-grid a:focus-visible,.method-guide a:focus-visible,.method-guide summary:focus-visible { outline: 3px solid #dd9829; outline-offset: 3px; }
.directory-grid span { font-size: .72rem; letter-spacing: .08em; font-weight: 700; color: var(--shell-accent, #917033); }
.directory-grid strong { font-size: 1.1rem; line-height: 1.3; }
.directory-grid small { font-size: .9rem; line-height: 1.5; }
.directory-note { margin-top: 1.2rem; font-size: .9rem; }
.method-guide { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--shell-line, #d7dce5); border-radius: 10px; background: var(--shell-panel, #fff); }
.method-list { margin-top: 1rem; border-top: 1px solid var(--shell-line, #d7dce5); }
.method-list details { border-bottom: 1px solid var(--shell-line, #d7dce5); }
.method-list summary { cursor: pointer; padding: 1rem 0; font-weight: 700; }
.method-list details div { padding: 0 0 1rem 1rem; }
.method-list p { margin: 0 0 .7rem; }
.calculator-card[id] { scroll-margin-top: 7rem; }
@media (prefers-reduced-motion: reduce) { .directory-grid a { transition: none; } }
.method-guide a { color: var(--shell-text, #0f1c3f); text-decoration: underline; text-underline-offset: .15em; }
