/* gateway-v2/assets/directory.css — Stockertim Directory (25 Nov 2026). Design-system tokens (st-tokens.css): gold --st-accent
   (#ffcf5e on dark, #7a5600 on light via :root[data-theme="light"] only), golden-black .st-btn with white text, serif headings, Inter UI.
   Mobile first: inputs 16 px, tap targets 44 px or more, no horizontal scroll at 390 px. Ad boxes reserve their height. No emojis. */
.dirx-body { background: var(--st-page, #070a12); color: var(--st-ink, #f3f5fb); overflow-x: clip; }
.dirx-body [hidden] { display: none !important; }
.dirx, .dirx *, .dirx *::before, .dirx *::after { box-sizing: border-box; }
.dirx { display: block; max-width: var(--st-container, 1280px); margin: 0 auto; padding: 12px var(--st-gutter, 16px) 48px; font: 400 16px/1.55 var(--st-ui, Inter, system-ui, sans-serif); color: var(--st-ink, #f3f5fb); }
.dirx:focus { outline: none; }
.dirx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dirx a { color: var(--st-accent, #ffcf5e); text-underline-offset: 3px; }
.dirx a:focus-visible, .dirx button:focus-visible, .dirx input:focus-visible, .dirx summary:focus-visible { outline: 2px solid var(--st-accent, #ffcf5e); outline-offset: 2px; }
.dirx h1, .dirx h2, .dirx h3 { font-family: var(--st-serif, Georgia, serif); color: var(--st-ink, #f3f5fb); margin: 0; text-wrap: balance; }
.dirx h1 { font-size: var(--st-t-display, clamp(30px, 5vw, 46px)); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
.dirx h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.dirx h3, .dirx .dirx-h3 { font-size: 18px; line-height: 1.3; margin: 18px 0 8px; }
.dirx .st-kicker a { color: inherit; text-decoration: none; }
.dirx-crumbs { margin: 4px 0 12px; }
.dirx-dek { font-size: 17px; color: var(--st-ink-2, rgba(243,245,251,.82)); margin: 10px 0 14px; max-width: 72ch; }
.dirx-counts, .dirx-src, .dirx-empty, .dirx-advice { font-size: 14px; color: var(--st-ink-3, rgba(243,245,251,.62)); }
.dirx-advice { margin-top: 14px; line-height: 1.5; }
.dirx-hero { padding: 8px 0 20px; max-width: 900px; }
.dirx-band, .dirx-sec { margin: 26px 0; }
.dirx-prose { max-width: 75ch; margin: 30px 0; }
.dirx-two { display: grid; gap: 24px; }
@media (min-width: 980px) { .dirx-two { grid-template-columns: 1fr 1fr; } }

/* search */
.dirx-search { position: relative; display: flex; gap: 8px; max-width: 640px; }
.dirx-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font-size: 16px; color: inherit; background: var(--st-surface, rgba(255,255,255,.05)); border: 1px solid var(--st-line, rgba(255,255,255,.16)); border-radius: 12px; }
.dirx-search .st-btn { min-height: 48px; }
.dirx-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; background: var(--st-raised, #0e1320); border: 1px solid var(--st-line, rgba(255,255,255,.16)); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.45); overflow: hidden; }
.dirx-results ul { list-style: none; margin: 0; padding: 4px; }
.dirx-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--st-ink, #f3f5fb); min-height: 44px; }
.dirx-results a span { display: block; font-size: 13px; color: var(--st-ink-3, rgba(243,245,251,.62)); }
.dirx-results li[aria-selected="true"] a, .dirx-results a:hover { background: var(--st-surface-2, rgba(255,207,94,.1)); }
.dirx-r-empty { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--st-ink-3, rgba(243,245,251,.62)); }

/* tiles, chips, lists */
.dirx-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dirx-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 120px; border: 1px solid var(--st-line, rgba(255,255,255,.12)); border-radius: 14px; background: var(--st-surface, rgba(255,255,255,.03)); text-decoration: none; }
.dirx-tile b { color: var(--st-ink, #f3f5fb); font-size: 17px; } .dirx-tile span { color: var(--st-ink-2, rgba(243,245,251,.78)); font-size: 14px; } .dirx-tile small { margin-top: auto; color: var(--st-accent, #ffcf5e); font-size: 13px; }
.dirx-tile:hover { border-color: var(--st-accent, #ffcf5e); }
.dirx-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dirx-chips .st-chip { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; } .dirx-chips small { opacity: .7; }
.dirx-list { display: grid; gap: 8px; margin: 18px 0; }
.dirx-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--st-line, rgba(255,255,255,.1)); border-radius: 12px; text-decoration: none; background: var(--st-surface, rgba(255,255,255,.02)); }
.dirx-row:hover { border-color: var(--st-accent, #ffcf5e); }
.dirx-row-b { display: flex; flex-direction: column; min-width: 0; } .dirx-row-b b { color: var(--st-ink, #f3f5fb); font-size: 16px; }
.dirx-meta { font-size: 13px; color: var(--st-ink-3, rgba(243,245,251,.62)); } .dirx-line { font-size: 14px; color: var(--st-ink-2, rgba(243,245,251,.8)); margin-top: 2px; }
.dirx-lm { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 600 15px/1 var(--st-ui, Inter, sans-serif); color: #111; background: var(--st-accent, #ffcf5e); }
.dirx-badge { display: inline-block; font: 600 12px/1 var(--st-ui, Inter, sans-serif); padding: 4px 8px; border-radius: 999px; background: rgba(47,209,126,.14); color: var(--st-up, #2fd17e); vertical-align: middle; }
.dirx-badge--defunct { background: rgba(255,92,119,.14); color: var(--st-dn, #ff5c77); } .dirx-badge--acquired, .dirx-badge--merged { background: rgba(255,207,94,.14); color: var(--st-accent, #ffcf5e); }
.dirx-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; } .dirx-feed time { color: var(--st-ink-3, rgba(243,245,251,.62)); font-size: 13px; margin-right: 6px; }
.dirx-pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 22px 0; }
.dirx-onward { font-weight: 600; }

/* company */
.dirx-co-head { display: flex; gap: 16px; align-items: flex-start; margin: 6px 0 14px; } .dirx-co-head .dirx-lm { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }
.dirx-co-sub { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--st-ink-2, rgba(243,245,251,.8)); }
.dirx-notice { margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,207,94,.4); background: rgba(255,207,94,.08); font-size: 15px; }
.dirx-notice--status { border-color: rgba(255,92,119,.4); background: rgba(255,92,119,.07); }
.dirx-co-grid { display: grid; gap: 24px; } @media (min-width: 1000px) { .dirx-co-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; } .dirx-co-side { position: sticky; top: 90px; } }
.dirx-facts { margin: 0; padding: 16px; border: 1px solid var(--st-line, rgba(255,255,255,.12)); border-radius: 14px; background: var(--st-surface, rgba(255,255,255,.03)); display: grid; gap: 10px; }
.dirx-fact dt { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--st-ink-3, rgba(243,245,251,.6)); } .dirx-fact dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.dirx-own { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--st-accent, #ffcf5e); background: var(--st-surface, rgba(255,255,255,.03)); border-radius: 0 10px 10px 0; } .dirx-own p { margin: 0; } .dirx-own footer { font-size: 13px; color: var(--st-ink-3, rgba(243,245,251,.6)); margin-top: 6px; }
.dirx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dirx-people li { padding: 10px 12px; border: 1px solid var(--st-line, rgba(255,255,255,.1)); border-radius: 10px; display: flex; flex-direction: column; } .dirx-people span { font-size: 14px; color: var(--st-ink-2, rgba(243,245,251,.78)); }
.dirx-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--st-line, rgba(255,255,255,.16)); display: grid; gap: 8px; } .dirx-timeline b { display: inline-block; min-width: 150px; color: var(--st-accent, #ffcf5e); font-weight: 600; }
.dirx-sim { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dirx-sim a { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--st-line, rgba(255,255,255,.1)); border-radius: 10px; text-decoration: none; min-height: 44px; } .dirx-sim b { color: var(--st-ink, #f3f5fb); } .dirx-sim span { font-size: 13px; color: var(--st-ink-3, rgba(243,245,251,.62)); }
.dirx-faq { border-bottom: 1px solid var(--st-line, rgba(255,255,255,.1)); padding: 10px 0; } .dirx-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; } .dirx-faq p { margin: 8px 0 0; }
.dirx-more summary { cursor: pointer; margin-top: 10px; }
.dirx-sources ul { padding-left: 18px; }
.dirx-ad { margin: 24px 0; min-height: 100px; } .dirx-ad--native { min-height: 120px; } .dirx-ad-l { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-3, rgba(243,245,251,.5)); margin-bottom: 6px; }

/* light theme (opt-in only) */
:root[data-theme="light"] .dirx-body { background: var(--st-page, #f6f4ee); }
:root[data-theme="light"] .dirx-lm { color: #fff; background: #7a5600; }
:root[data-theme="light"] .dirx-results { background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
@media (max-width: 600px) { .dirx-search { flex-direction: column; } .dirx-co-head .dirx-lm { width: 48px; height: 48px; font-size: 17px; } .dirx-timeline b { min-width: 0; display: block; } }
