/* style.css - Smart Internet Investing
   Design tokens are injected as CSS custom properties via site_tokens_css().
   Dark navy + green theme per homepage mockup, built on the shared
   PHP/JSON flat-file template base layer. */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a1a1a);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--color-accent, #2ecc71);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #25a75d);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-surface, #0b1c2f);
    border-bottom: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    z-index: 100;
}

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

.site-logo a {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-text-inverse, #fff);
}

.site-logo span:last-child {
    color: var(--color-accent, #2ecc71);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text-inverse, #fff);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #2ecc71);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.75em;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 0.75rem;
    min-width: 220px;
}

.nav-dropdown::before {
    content: '';
    display: block;
    background: var(--color-surface-strong, #081422);
    border: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    border-radius: var(--radius-small, 6px);
    box-shadow: var(--shadow-card);
    position: absolute;
    inset: 0.75rem 0 0 0;
    z-index: -1;
}

.site-nav__item--has-dropdown.is-open .nav-dropdown,
.site-nav__item--has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.nav-dropdown li a {
    display: block;
    padding: 0.5rem 1.1rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
}

.nav-hamburger__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-inverse, #fff);
    border-radius: 2px;
}

.nav-hamburger__label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-text-inverse, #fff);
    text-transform: uppercase;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-wrapper--flush {
    max-width: none;
    padding: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #1a1a1a);
}

/* ── Sidebar blocks ───────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-panel, #f3f5f8);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #6b7280);
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-block__links a {
    font-size: 0.875rem;
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #2ecc71);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--color-surface, #0b1c2f);
}

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

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    color: var(--color-text-inverse, #fff);
}

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    font-size: 0.875rem;
}

.site-footer__contact a {
    color: var(--color-text-inverse-muted, #a9b8c8);
    font-size: 0.875rem;
}

.site-footer__nav {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-inverse-muted, #a9b8c8);
    margin-bottom: 0.75rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__links a {
    color: var(--color-text-inverse, #fff);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer__links a:hover {
    color: var(--color-accent, #2ecc71);
}

.site-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--color-text-inverse, #fff);
    text-decoration: none;
    font-size: 0.75rem;
}

.site-footer__social a:hover {
    background: var(--color-accent, #2ecc71);
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #6b7280);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--color-accent, #2ecc71);
    color: #fff;
}

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

.btn--outline {
    border-color: var(--color-border, #e2e8f0);
    color: var(--color-text, #16202b);
    background: transparent;
    text-decoration: none;
}

.btn--outline:hover {
    border-color: var(--color-accent, #2ecc71);
    color: var(--color-accent, #2ecc71);
}

.btn--ghost {
    border-color: rgba(255,255,255,0.35);
    color: var(--color-text-inverse, #fff);
    background: transparent;
    text-decoration: none;
}

.btn--ghost:hover {
    border-color: var(--color-accent, #2ecc71);
    color: var(--color-accent, #2ecc71);
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.section {
    padding: 4rem 1.5rem;
}

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

.section--panel {
    background: var(--color-panel, #f3f5f8);
}

.section--dark {
    background: var(--color-surface, #0b1c2f);
    color: var(--color-text-inverse, #fff);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-text-inverse, #fff);
}

.section--dark p {
    color: var(--color-text-inverse-muted, #a9b8c8);
}

.section__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent, #2ecc71);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: 0;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(160deg, var(--color-surface-strong, #081422), var(--color-surface, #0b1c2f) 65%);
    color: var(--color-text-inverse, #fff);
    padding: 3.5rem 1.5rem 4rem;
}

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

.hero__title {
    font-size: clamp(2.1rem, 4vw, 3rem);
    margin: 0 0 1rem;
    color: var(--color-text-inverse, #fff);
}

.hero__title-accent {
    color: var(--color-accent, #2ecc71);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    max-width: 46ch;
    margin: 0 0 1.75rem;
}

.hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.hero__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hero__feature {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.hero__feature-icon {
    color: var(--color-accent, #2ecc71);
    font-size: 1.1rem;
    line-height: 1.4;
}

.hero__feature-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-inverse, #fff);
    margin: 0 0 0.15rem;
}

.hero__feature-desc {
    font-size: 0.82rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    margin: 0;
}

/* Dashboard mockup visual */
.hero__visual {
    background: linear-gradient(155deg, #12233a, #0c1826);
    border: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    border-radius: var(--radius-large, 16px);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero__visual-label {
    font-size: 0.75rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.hero__visual-value {
    font-size: 1.9rem;
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--color-text-inverse, #fff);
    margin-bottom: 1.25rem;
}

.hero__visual-value span {
    color: var(--color-accent, #2ecc71);
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.hero__sparkline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.hero__sparkline span {
    flex: 1;
    background: var(--color-accent, #2ecc71);
    border-radius: 2px 2px 0 0;
    opacity: 0.85;
}

.hero__visual-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    border-top: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    padding-top: 0.75rem;
}

.hero__visual-row strong {
    color: var(--color-text-inverse, #fff);
    font-weight: 600;
}

/* ── Card grid (icon features, guides, directory, library) ───────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.75rem;
}

.icon-feature {
    text-align: center;
}

.icon-feature__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-panel, #f3f5f8);
    color: var(--color-accent, #2ecc71);
    font-size: 1.4rem;
}

.section--dark .icon-feature__icon {
    background: rgba(255,255,255,0.06);
}

.icon-feature__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.icon-feature__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: 0;
}

.section--dark .icon-feature__desc {
    color: var(--color-text-inverse-muted, #a9b8c8);
}

.card {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-medium, 10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.card__image {
    aspect-ratio: 16/10;
    background: var(--color-panel, #f3f5f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #5b6b7c);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card__body {
    padding: 1.25rem;
}

.card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-strong, #25a75d);
    background: rgba(46,204,113,0.12);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-decoration: none;
    color: var(--color-text, #16202b);
}

.card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: 0 0 0.75rem;
}

.card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent-strong, #25a75d);
    text-decoration: none;
}

/* ── Split panel (featured + resources) ───────────────────────────────────── */

.split-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.resource-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.resource-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 0.5rem;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-small, 6px);
    transition: background 0.15s;
}

.resource-item:hover {
    background: rgba(255,255,255,0.06);
}

.resource-item__icon {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: rgba(46,204,113,0.15);
    color: var(--color-accent, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.resource-item__title {
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 0.15rem;
    color: var(--color-text-inverse, #fff);
}

.resource-item__desc {
    font-size: 0.82rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    margin: 0;
}

/* ── Stat bar / trust ──────────────────────────────────────────────────────── */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-grid__number {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 300;
    color: var(--color-text, #16202b);
    margin: 0 0 0.25rem;
}

.stat-grid__label {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5b6b7c);
}

.testimonial {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.testimonial__stars {
    color: var(--color-accent, #2ecc71);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
}

.testimonial__quote {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.testimonial__author {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5b6b7c);
}

/* ── Newsletter / CTA banner ───────────────────────────────────────────────── */

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    background: var(--color-surface-strong, #081422);
    color: var(--color-text-inverse, #fff);
    padding: 2.5rem;
    border-radius: var(--radius-large, 16px);
}

.cta-banner__text {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 480px;
}

.cta-banner__icon {
    font-size: 1.5rem;
    color: var(--color-accent, #2ecc71);
}

.cta-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.cta-banner__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
}

.cta-banner__form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cta-banner__form input[type="email"] {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-small, 6px);
    border: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
    background: rgba(255,255,255,0.06);
    color: var(--color-text-inverse, #fff);
    min-width: 240px;
}

.cta-banner__form input[type="email"]::placeholder {
    color: var(--color-text-inverse-muted, #a9b8c8);
}

.cta-banner__note {
    font-size: 0.75rem;
    color: var(--color-text-inverse-muted, #a9b8c8);
    width: 100%;
}

/* ── Flywheel steps ────────────────────────────────────────────────────────── */

.flywheel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.flywheel__step {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    position: relative;
}

.flywheel__index {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-accent, #2ecc71);
    margin: 0 0 0.5rem;
}

.flywheel__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.flywheel__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: 0;
}

/* ── Audience paths ────────────────────────────────────────────────────────── */

.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.path-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-panel, #f3f5f8);
    border-radius: var(--radius-medium, 10px);
    padding: 1.5rem;
    border-left: 3px solid var(--color-accent, #2ecc71);
}

.path-card__title {
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--color-text, #16202b);
}

.path-card__desc {
    font-size: 0.88rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: 0;
}

/* ── FAQ accordion ─────────────────────────────────────────────────────────── */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    padding: 1.1rem 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--color-accent, #2ecc71);
    flex: none;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--color-text-muted, #5b6b7c);
}

/* ── Glossary ──────────────────────────────────────────────────────────────── */

.glossary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem 1.5rem;
}

.glossary-list a {
    text-decoration: none;
    font-weight: 600;
}

.glossary-term__short-def {
    font-size: 1.1rem;
    color: var(--color-text-muted, #5b6b7c);
    margin: -0.5rem 0 1.5rem;
}

/* ── Directory ─────────────────────────────────────────────────────────────── */

.directory-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.directory-list__item {
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-medium, 10px);
    padding: 1.1rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.directory-list__title {
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.directory-list__meta {
    font-size: 0.8rem;
    color: var(--color-text-muted, #5b6b7c);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Asset Passport table ─────────────────────────────────────────────────── */

.passport-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.passport-table th,
.passport-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    vertical-align: top;
}

.passport-table th {
    width: 220px;
    color: var(--color-text-muted, #5b6b7c);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.form-field {
    margin-bottom: 1.1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-small, 6px);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-field--honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-alert {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-small, 6px);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-alert--success {
    background: rgba(46,204,113,0.12);
    color: var(--color-accent-strong, #25a75d);
}

.form-alert--error {
    background: rgba(220,38,38,0.1);
    color: #b91c1c;
}

/* ── Prose (long-form content bodies) ─────────────────────────────────────── */

.prose h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin: 0 0 1rem;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.85rem;
}

.prose h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.6rem;
}

.prose p {
    margin: 0 0 1.1rem;
}

.prose ul,
.prose ol {
    margin: 0 0 1.1rem;
    padding-left: 1.4rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose table {
    width: 100%;
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #6b7280);
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

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

    .split-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        background: var(--color-surface-strong, #081422);
        border-bottom: 1px solid var(--color-border-dark, rgba(255,255,255,0.14));
        padding: 1.5rem;
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-dropdown {
        position: static;
        padding-top: 0;
        min-width: 0;
        width: 100%;
    }

    .nav-dropdown::before {
        display: none;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav__item--has-dropdown.is-open .nav-dropdown {
        display: block;
    }

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

    .content-sidebar {
        position: static;
    }

    .hero__features {
        grid-template-columns: 1fr;
    }

    .split-panel {
        grid-template-columns: 1fr;
    }

    /* Footer: single column, all text/links 2x size */
    .site-footer__top {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__nav {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer__brand-name {
        font-size: 2.2rem;
    }

    .site-footer__tagline,
    .site-footer__contact a {
        font-size: 1.75rem;
    }

    .site-footer__col-heading {
        font-size: 1.6rem;
    }

    .site-footer__links a {
        font-size: 1.75rem;
    }

    .site-footer__bottom {
        font-size: 1.5rem;
    }

    .cta-banner {
        padding: 1.75rem;
    }
}
