/* DigitalHealthIns.com ... Main Stylesheet
   Dark cybersecurity theme. Design tokens injected via :root in default.php.
   ------------------------------------------------------------------ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }

/* ── Base ── */
body {
    background-color: var(--color-bg, #0a0e1a);
    color: var(--color-text, #f1f5f9);
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
    padding-top: var(--header-height, 64px);
    min-height: 100vh;
}

a {
    color: var(--color-accent-cyan, #06b6d4);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover { color: #fff; }

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border, #1e293b);
    height: var(--header-height, 64px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

/* ── Logo ── */
.site-logo a {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
}

.site-logo__icon { color: var(--color-accent, #2563eb); flex-shrink: 0; }
.site-logo__tld { color: var(--color-accent-cyan, #06b6d4); }

/* ── Nav ── */
.site-nav { margin-left: auto; }

.site-nav__list {
    display: flex;
    list-style: none;
    gap: .25rem;
    align-items: center;
}

.site-nav__item { position: relative; }

.site-nav__link {
    display: block;
    padding: .4rem .7rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--color-text-muted, #94a3b8);
    border-radius: var(--radius-small, 6px);
    transition: color .15s;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active { color: #fff; }

.nav-chevron {
    display: inline-block;
    margin-left: .2rem;
    font-size: .65rem;
    opacity: .6;
}

.nav-chevron::after { content: '▾'; }

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111827;
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-medium, 10px);
    padding: calc(.5rem + 8px) 0 .5rem; /* top padding bridges the gap so hover doesn't break */
    margin-top: -8px;
    min-width: 200px;
    list-style: none;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,.4));
    z-index: 200;
}

.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown:focus-within .nav-dropdown { display: block; }

.nav-dropdown li a {
    display: block;
    padding: .45rem 1rem;
    font-size: .85rem;
    color: var(--color-text-muted, #94a3b8);
    transition: color .15s, background .15s;
}

.nav-dropdown li a:hover { color: #fff; background: rgba(255,255,255,.04); }

/* Header CTA */
.site-header__cta {
    display: none;
    padding: .45rem 1rem;
    background: var(--color-accent, #2563eb);
    color: #fff;
    border-radius: var(--radius-small, 6px);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.site-header__cta:hover { background: var(--color-accent-strong, #1d4ed8); color: #fff; }

@media (min-width: 900px) { .site-header__cta { display: block; } }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 4px;
    margin-left: auto;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--color-text-muted, #94a3b8);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.nav-hamburger__label {
    display: block;
    font-style: normal;
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--color-text-muted, #94a3b8);
    text-align: center;
    margin-top: 3px;
}

@media (max-width: 899px) {
    .nav-hamburger { display: flex; }
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a0e1a;
        border-top: 1px solid var(--color-border, #1e293b);
        padding: 1.5rem;
        overflow-y: auto;
        z-index: 150;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; align-items: flex-start; gap: .1rem; }
    .site-nav__link { font-size: 1.1rem; padding: .6rem .5rem; color: var(--color-text, #f1f5f9); }
    .nav-dropdown {
        display: block;
        position: static;
        background: none;
        border: none;
        padding: 0 0 .5rem 1rem;
        box-shadow: none;
        border-radius: 0;
    }
    .nav-dropdown li a { font-size: 1rem; padding: .4rem .5rem; }
    .nav-chevron { display: none; }
    .site-header__cta { display: block; margin-top: 1.5rem; text-align: center; }
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1633 60%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 800px 500px at 70% 50%, rgba(37,99,235,.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero__headline {
    font-family: var(--font-display, 'SF Pro Display', system-ui, sans-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
}

.hero__headline strong { font-weight: 300; color: var(--color-accent-cyan, #06b6d4); }

.hero__subtext {
    font-size: 1.1rem;
    color: var(--color-text-muted, #94a3b8);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__graphic {
    position: relative;
    width: 200px;
    height: 220px;
    flex-shrink: 0;
}

.hero__shield svg {
    width: 200px;
    height: 220px;
    filter: drop-shadow(0 0 30px rgba(37,99,235,.3));
}

.hero__shield-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero__shield-rings span {
    position: absolute;
    border: 1px solid rgba(37,99,235,.15);
    border-radius: 50%;
    animation: ring-pulse 3s ease-in-out infinite;
}

.hero__shield-rings span:nth-child(1) { width: 240px; height: 240px; animation-delay: 0s; }
.hero__shield-rings span:nth-child(2) { width: 290px; height: 290px; animation-delay: .6s; }
.hero__shield-rings span:nth-child(3) { width: 340px; height: 340px; animation-delay: 1.2s; }

@keyframes ring-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.98); }
    50%       { opacity: 0.5; transform: scale(1.02); }
}

@media (max-width: 768px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__graphic { display: none; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: var(--radius-small, 6px);
    font-size: .9rem;
    font-weight: 600;
    transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent, #2563eb);
    color: #fff;
    border: 1px solid transparent;
}

.btn--primary:hover { background: var(--color-accent-strong, #1d4ed8); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--color-text-muted, #94a3b8);
    border: 1px solid var(--color-border, #1e293b);
}

.btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,.2); }

.btn--sm { padding: .45rem .9rem; font-size: .8rem; }

/* ── Risk Grid ── */
.risk-grid {
    padding: 3rem 1.5rem;
    background: var(--color-bg, #0a0e1a);
}

.risk-grid__inner { max-width: var(--content-width, 1200px); margin: 0 auto; }

.section-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--color-text-muted, #94a3b8);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.risk-grid__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.risk-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.25rem;
    background: var(--color-surface, #111827);
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-medium, 10px);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.risk-card:hover {
    border-color: rgba(37,99,235,.4);
    background: #162032;
    color: inherit;
}

.risk-card__icon { color: var(--color-accent-cyan, #06b6d4); }
.risk-card__label { font-size: .9rem; font-weight: 600; color: #fff; }
.risk-card__desc { font-size: .78rem; color: var(--color-text-muted, #94a3b8); line-height: 1.5; }

/* ── CTA Banner ── */
.risk-cta-banner {
    background: linear-gradient(90deg, rgba(37,99,235,.15) 0%, rgba(6,182,212,.1) 100%);
    border-top: 1px solid rgba(37,99,235,.2);
    border-bottom: 1px solid rgba(37,99,235,.2);
    padding: 1.5rem 1.5rem;
}

.risk-cta-banner__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.risk-cta-banner__text {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--color-text-muted, #94a3b8);
    font-size: .95rem;
}

.risk-cta-banner__text svg { color: var(--color-accent, #2563eb); flex-shrink: 0; }
.risk-cta-banner__text strong { color: #fff; font-weight: 600; }

.risk-cta-banner__links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--color-text-muted, #94a3b8);
}

/* ── Home Articles ── */
.home-articles { padding: 3rem 1.5rem; }

.home-articles__inner { max-width: var(--content-width, 1200px); margin: 0 auto; }

.home-articles__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-articles__title { font-size: 1.25rem; font-weight: 300; letter-spacing: -0.02em; color: #fff; }

.view-all-link { font-size: .85rem; color: var(--color-accent-cyan, #06b6d4); }

/* ── Article Grid ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.article-card {
    background: var(--color-surface, #111827);
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: border-color .15s;
}

.article-card:hover { border-color: rgba(37,99,235,.3); }

.article-card__cat a {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent-cyan, #06b6d4);
}

.article-card__title { font-size: .95rem; font-weight: 600; line-height: 1.4; }
.article-card__title a { color: #fff; }
.article-card__title a:hover { color: var(--color-accent-cyan, #06b6d4); }
.article-card__excerpt { font-size: .83rem; color: var(--color-text-muted, #94a3b8); line-height: 1.6; }
.article-card__meta { font-size: .75rem; color: var(--color-text-muted, #94a3b8); margin-top: auto; }

/* ── Page wrapper (non-home) ── */
.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Breadcrumbs ── */
.breadcrumbs { margin-bottom: 1.5rem; }

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: .25rem;
    font-size: .8rem;
    color: var(--color-text-muted, #94a3b8);
}

.breadcrumbs__item:not(:last-child)::after { content: '/'; margin-left: .25rem; }

.breadcrumbs__item a { color: var(--color-text-muted, #94a3b8); }
.breadcrumbs__item a:hover { color: #fff; }
.breadcrumbs__item.is-current span { color: var(--color-text, #f1f5f9); }

/* ── Content layout ── */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single { grid-template-columns: 1fr; }

@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }

/* ── Page header ── */
.page-header { margin-bottom: 2rem; }

.page-title {
    font-family: var(--font-display, 'SF Pro Display', system-ui, sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    margin-bottom: .75rem;
}

.page-intro {
    font-size: 1.05rem;
    color: var(--color-text-muted, #94a3b8);
    max-width: 640px;
    line-height: 1.7;
}

/* ── Section heading ── */
.section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border, #1e293b);
}

/* ── Category grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cat-grid--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }

.cat-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--color-surface, #111827);
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-medium, 10px);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.cat-card:hover {
    border-color: rgba(37,99,235,.4);
    background: #162032;
    color: inherit;
}

.cat-card__title { font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: .35rem; }
.cat-card__desc { font-size: .78rem; color: var(--color-text-muted, #94a3b8); line-height: 1.5; }
.cat-card--compact { padding: .75rem 1rem; font-size: .85rem; font-weight: 500; color: var(--color-text-muted, #94a3b8); }
.cat-card--compact:hover { color: #fff; }

/* ── Article page ── */
.article-header { margin-bottom: 2rem; }
.article-category { margin-bottom: .5rem; }
.article-category a {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-accent-cyan, #06b6d4);
}

.article-title {
    font-family: var(--font-display, 'SF Pro Display', system-ui, sans-serif);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #fff;
    margin-bottom: .75rem;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-muted, #94a3b8);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .8rem;
    color: var(--color-text-muted, #94a3b8);
}

.article-meta__sep { opacity: .4; }

/* ── Prose ── */
.prose { font-size: 1rem; line-height: 1.75; color: var(--color-text, #f1f5f9); }

.prose h2 {
    font-family: var(--font-display, 'SF Pro Display', system-ui, sans-serif);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 2rem 0 .75rem;
    padding-top: .5rem;
    border-top: 1px solid var(--color-border, #1e293b);
}

.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 1.5rem 0 .5rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .4rem; }

.prose a { color: var(--color-accent-cyan, #06b6d4); }
.prose a:hover { color: #fff; text-decoration: underline; }

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
    border-left: 3px solid var(--color-accent, #2563eb);
    padding: .75rem 1rem;
    margin: 1.5rem 0;
    background: rgba(37,99,235,.08);
    border-radius: 0 var(--radius-small, 6px) var(--radius-small, 6px) 0;
    font-size: .95rem;
    color: var(--color-text-muted, #94a3b8);
}

/* ── Related articles ── */
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border, #1e293b); }
.related-heading { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.related-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.related-article { padding: 1rem; background: var(--color-surface, #111827); border: 1px solid var(--color-border, #1e293b); border-radius: var(--radius-medium, 10px); }
.related-article h3 { font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.related-article h3 a { color: #fff; }
.related-article p { font-size: .8rem; color: var(--color-text-muted, #94a3b8); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-item { padding: 1.25rem; background: var(--color-surface, #111827); border: 1px solid var(--color-border, #1e293b); border-radius: var(--radius-medium, 10px); }
.faq-item__question { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.faq-item__question a { color: #fff; }
.faq-item__question a:hover { color: var(--color-accent-cyan, #06b6d4); }
.faq-item__short-answer { font-size: .9rem; color: var(--color-text-muted, #94a3b8); margin-bottom: .75rem; }
.faq-item__read-more { font-size: .82rem; color: var(--color-accent-cyan, #06b6d4); }
.faq-page__question { margin-bottom: .75rem; }
.faq-page__short-answer { font-size: 1.1rem; color: var(--color-text-muted, #94a3b8); margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: rgba(37,99,235,.08); border-left: 3px solid var(--color-accent, #2563eb); border-radius: 0 var(--radius-small, 6px) var(--radius-small, 6px) 0; }
.faq-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #1e293b); }
.related-faqs { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.related-faqs li a { color: var(--color-accent-cyan, #06b6d4); font-size: .9rem; }
.faq-back { margin-top: 2rem; }
.faq-back a { font-size: .85rem; color: var(--color-text-muted, #94a3b8); }
.faq-back a:hover { color: #fff; }

/* ── Glossary ── */
.glossary-alpha { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5rem 0; }
.glossary-alpha__link { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--color-surface, #111827); border: 1px solid var(--color-border, #1e293b); border-radius: var(--radius-small, 6px); font-size: .8rem; font-weight: 600; color: var(--color-text-muted, #94a3b8); transition: all .15s; }
.glossary-alpha__link:hover { border-color: var(--color-accent, #2563eb); color: #fff; }
.glossary-letter { margin-bottom: 2rem; }
.glossary-letter__heading { font-size: 1.4rem; font-weight: 200; color: var(--color-accent-cyan, #06b6d4); padding-bottom: .5rem; border-bottom: 1px solid var(--color-border, #1e293b); margin-bottom: 1rem; }
.glossary-term-list { display: flex; flex-direction: column; gap: .6rem; }
.glossary-term-item { display: flex; gap: .75rem; align-items: baseline; }
.glossary-term-item__link { font-weight: 600; color: #fff; white-space: nowrap; }
.glossary-term-item__link:hover { color: var(--color-accent-cyan, #06b6d4); }
.glossary-term-item__def { font-size: .85rem; color: var(--color-text-muted, #94a3b8); }
.glossary-term-page__term { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 200; letter-spacing: -0.02em; color: #fff; }
.glossary-term-page__aka, .glossary-term-page__short-def { font-size: .9rem; color: var(--color-text-muted, #94a3b8); margin-top: .5rem; }
.glossary-term-page__short-def { font-size: 1rem; color: var(--color-text, #f1f5f9); }
.glossary-term-page__section { margin-top: 2rem; }
.glossary-term-page__section h2 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: .75rem; }
.glossary-example { border-left: 3px solid var(--color-accent, #2563eb); padding: .75rem 1rem; background: rgba(37,99,235,.08); border-radius: 0 var(--radius-small, 6px) var(--radius-small, 6px) 0; font-size: .95rem; color: var(--color-text-muted, #94a3b8); font-style: italic; }
.related-terms-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.related-terms-list li { font-size: .9rem; }
.related-terms-list li a { font-weight: 600; color: var(--color-accent-cyan, #06b6d4); }
.glossary-back, .glossary-breadcrumb { margin-bottom: 1rem; }
.glossary-back a, .glossary-breadcrumb a { font-size: .85rem; color: var(--color-text-muted, #94a3b8); }

/* ── Directory ── */
.dir-listings { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.dir-listing-card { padding: 1.25rem; background: var(--color-surface, #111827); border: 1px solid var(--color-border, #1e293b); border-radius: var(--radius-medium, 10px); }
.dir-listing-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.dir-listing-card__title { font-size: 1rem; font-weight: 600; }
.dir-listing-card__title a { color: #fff; }
.dir-listing-card__title a:hover { color: var(--color-accent-cyan, #06b6d4); }
.dir-listing-card__ext-link { font-size: .8rem; color: var(--color-accent-cyan, #06b6d4); white-space: nowrap; flex-shrink: 0; }
.dir-listing-card__excerpt { font-size: .85rem; color: var(--color-text-muted, #94a3b8); margin-bottom: .75rem; }
.dir-listing-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.dir-tag { display: inline-block; padding: .2rem .6rem; background: rgba(255,255,255,.06); border: 1px solid var(--color-border, #1e293b); border-radius: 4px; font-size: .72rem; color: var(--color-text-muted, #94a3b8); }
.dir-tag--green { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.2); color: #34d399; }
.dir-listing-page__cta { margin: 1rem 0 1.5rem; }
.dir-listing-page__fields { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #1e293b); }
.dir-listing-page__fields h2 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.field-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; font-size: .9rem; }
.field-list dt { color: var(--color-text-muted, #94a3b8); font-weight: 500; }
.field-list dd { color: var(--color-text, #f1f5f9); }

/* ── Error page ── */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page__icon { margin: 0 auto 1.5rem; color: var(--color-border, #1e293b); }
.error-page__code { font-size: 5rem; font-weight: 200; color: var(--color-border, #1e293b); line-height: 1; margin-bottom: .5rem; }
.error-page__title { font-size: 1.75rem; font-weight: 300; color: #fff; margin-bottom: 1rem; }
.error-page__message { color: var(--color-text-muted, #94a3b8); max-width: 440px; margin: 0 auto 2rem; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ── Contact form ── */
.contact-page { max-width: 620px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 500; color: var(--color-text-muted, #94a3b8); margin-bottom: .35rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: .6rem .9rem;
    background: var(--color-surface, #111827);
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-small, 6px);
    color: var(--color-text, #f1f5f9);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent, #2563eb);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #f87171; }
.form-error { display: block; font-size: .8rem; color: #f87171; margin-top: .25rem; }
.form-optional { font-weight: 400; opacity: .6; }
.form-status { padding: .75rem 1rem; border-radius: var(--radius-small, 6px); font-size: .9rem; margin-bottom: 1rem; }
.form-status--success { background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.25); color: #34d399; }
.form-status--error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: #f87171; }
.form-submit { margin-top: .5rem; }

/* ── Sidebar ── */
.content-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.sidebar-block {
    background: var(--color-surface, #111827);
    border: 1px solid var(--color-border, #1e293b);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
}

.sidebar-block--cta {
    background: linear-gradient(135deg, rgba(37,99,235,.15) 0%, rgba(6,182,212,.1) 100%);
    border-color: rgba(37,99,235,.25);
}

.sidebar-block__heading { font-size: .85rem; font-weight: 600; color: #fff; margin-bottom: .75rem; }
.sidebar-cta__heading { font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }
.sidebar-cta__body { font-size: .83rem; color: var(--color-text-muted, #94a3b8); margin-bottom: 1rem; line-height: 1.5; }

.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.sidebar-links li a { font-size: .85rem; color: var(--color-text-muted, #94a3b8); display: block; padding: .2rem 0; }
.sidebar-links li a:hover { color: #fff; }

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--color-border, #1e293b);
    background: #080c18;
    padding: 3rem 1.5rem 2rem;
}

.site-footer__inner { max-width: var(--content-width, 1200px); margin: 0 auto; }

.site-footer__top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer__brand-name {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .75rem;
}

.site-footer__brand-name svg { color: var(--color-accent, #2563eb); }

.site-footer__tagline { font-size: .82rem; color: var(--color-text-muted, #94a3b8); line-height: 1.6; margin-bottom: .4rem; }
.site-footer__positioning { font-size: .78rem; color: rgba(148,163,184,.6); font-style: italic; }

.site-footer__col-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted, #94a3b8); margin-bottom: .75rem; }
.site-footer__links { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.site-footer__links li a { font-size: .82rem; color: rgba(148,163,184,.7); }
.site-footer__links li a:hover { color: #fff; }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #1e293b);
    font-size: .78rem;
    color: rgba(148,163,184,.5);
}

/* ── Utilities ── */
.text-muted { color: var(--color-text-muted, #94a3b8); }
