:root {
    --color-noble-white: #ffffff;
    --color-justice-gold: #b8860b;
    --color-constitutional-navy: #102132;
    --color-truth-blue: #2f7de9;
    --color-advocacy-crimson: #9b1d3a;
    --color-scholarly-grey: #5e6470;
    --color-slate: #0f172a;
    --color-page: #f3f5fb;
    --radius: 14px;
    --shadow-soft: 0 24px 48px rgba(16, 33, 50, 0.14);
    --transition: 200ms ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-constitutional-navy);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0)) var(--color-page);
    line-height: 1.65;
}

.page-content {
    display: contents;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-truth-blue);
    color: var(--color-noble-white);
    padding: 0.75rem 1.1rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 200;
}

.skip-link:focus {
    left: 1rem;
}

a {
    color: var(--color-truth-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

header {
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-noble-white);
    padding: 1.1rem 0 1.35rem;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.masthead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color-advocacy-crimson), var(--color-justice-gold));
    box-shadow: 0 18px 32px rgba(155, 35, 58, 0.36);
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-noble-white);
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.nav-groups {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-inline {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-inline a {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    padding: 0.45rem 0;
    transition: color var(--transition);
}

.nav-inline a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--color-truth-blue);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.nav-inline a[aria-current="page"]::after,
.nav-inline a:hover::after,
.nav-inline a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-inline a:hover,
.nav-inline a:focus {
    color: var(--color-justice-gold);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.nav-trigger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    padding: 0.45rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition);
}

.nav-trigger::after {
    content: "▾";
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.nav-trigger.is-active {
    color: var(--color-justice-gold);
}

.nav-trigger.is-active::after {
    transform: rotate(180deg);
}

.nav-dropdown:hover > .nav-trigger,
.nav-dropdown:focus-within > .nav-trigger {
    color: var(--color-justice-gold);
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    min-width: 520px;
    max-width: min(640px, 90vw);
    padding: 1.6rem;
    border-radius: var(--radius);
    box-shadow: 0 28px 48px rgba(16, 33, 50, 0.28);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    color: rgba(255, 255, 255, 0.88);
    z-index: 30;
}

.mega-panel.is-active {
    display: block;
}

.nav-dropdown:hover > .mega-panel,
.nav-dropdown:focus-within > .mega-panel {
    display: block;
}

.mega-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-noble-white);
}

.mega-header p {
    margin: 0.35rem 0 1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.mega-links {
    display: grid;
    gap: 0.8rem;
}

.mega-link {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: rgba(16, 33, 50, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.mega-link__label {
    display: block;
    font-weight: 600;
    color: var(--color-noble-white);
}

.mega-link__desc {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    margin-top: 0.25rem;
}

.mega-link:hover,
.mega-link:focus,
.mega-link[aria-current="page"] {
    transform: translateY(-2px);
    background: rgba(47, 125, 233, 0.22);
    box-shadow: 0 18px 32px rgba(16, 33, 50, 0.25);
    text-decoration: none;
}

.nav-cta a {
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.12), rgba(47, 125, 233, 0.12));
    color: var(--color-noble-white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta a:hover,
.nav-cta a:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
}

main {
    padding: 3.6rem 0 4.4rem;
}

.section {
    background: var(--color-noble-white);
    border-radius: var(--radius);
    padding: clamp(1.8rem, 2.4vw + 1.1rem, 2.6rem);
    margin-bottom: 2.2rem;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.section.inset {
    background: none;
    box-shadow: none;
    padding: 0;
}

.section.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16, 33, 50, 0.92), rgba(16, 33, 50, 0.82));
    color: var(--color-noble-white);
    padding: clamp(2.4rem, 5vw, 3.6rem);
}

.section.hero::after {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.38), rgba(16, 33, 50, 0));
    opacity: 0.8;
}

.section.hero > * {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.6rem, 3vw, 2.6rem);
    align-items: start;
}

.hero-intro h1 {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
}

.hero-metrics {
    display: grid;
    gap: 1rem;
}

.metric-card {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 36px rgba(16, 33, 50, 0.35);
}

.metric-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.metric-card p {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(47, 125, 233, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section h1,
.section h2,
.section h3 {
    margin-top: 0;
    color: inherit;
    line-height: 1.2;
}

.section h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.15rem);
}

.section h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
}

.section h3 {
    font-size: clamp(1.28rem, 2.4vw, 1.55rem);
}

.lede {
    font-size: 1.08rem;
    color: var(--color-scholarly-grey);
    max-width: 760px;
}

.section.hero .lede {
    color: rgba(255, 255, 255, 0.82);
}

.section.hero blockquote {
    background: rgba(47, 125, 233, 0.18);
    color: rgba(255, 255, 255, 0.9);
    border-left-color: var(--color-justice-gold);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(155, 35, 53, 0.12);
    color: var(--color-advocacy-crimson);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-advocacy-crimson), var(--color-truth-blue));
    color: var(--color-noble-white);
    box-shadow: 0 18px 32px rgba(47, 125, 233, 0.32);
}

.btn-outline {
    color: var(--color-justice-gold);
    border-color: var(--color-justice-gold);
    background: transparent;
}

.btn-ghost {
    color: var(--color-noble-white);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: transparent;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 26px 48px rgba(16, 33, 50, 0.18);
}

.grid {
    display: grid;
    gap: 1.45rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--color-noble-white);
    border-radius: var(--radius);
    padding: 1.45rem;
    border: 1px solid rgba(16, 33, 50, 0.08);
    box-shadow: 0 18px 28px rgba(16, 33, 50, 0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card h3 {
    margin-bottom: 0.6rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 50px rgba(16, 33, 50, 0.16);
}

.journal-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 100%;
}

.journal-card .btn {
    align-self: flex-start;
}

.meta {
    color: var(--color-scholarly-grey);
    font-size: 0.92rem;
    margin: 0.2rem 0 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.25rem 0.3rem;
    box-shadow: inset 0 0 0 1px rgba(16, 33, 50, 0.08);
}

.search-bar input {
    flex: 1 1 280px;
    border: none;
    background: transparent;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--color-constitutional-navy);
}

.search-bar input:focus {
    outline: none;
}

.stack {
    display: grid;
    gap: 1.4rem;
}

.journal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.meta-list div {
    display: flex;
    gap: 0.4rem;
}

.meta-list dt {
    font-weight: 600;
    color: var(--color-constitutional-navy);
}

.meta-list dd {
    margin: 0;
    color: var(--color-scholarly-grey);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.list-clean {
    margin: 0;
    padding-left: 1.1rem;
}

.list-clean li {
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    background: var(--color-noble-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(16, 33, 50, 0.08);
}

th,
td {
    padding: 0.85rem;
    border-bottom: 1px solid rgba(28, 49, 68, 0.1);
    vertical-align: top;
}

th {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    color: var(--color-scholarly-grey);
}

blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--color-truth-blue);
    background: rgba(47, 125, 233, 0.08);
    color: var(--color-constitutional-navy);
    border-radius: 0.5rem;
}

footer {
    background: var(--color-slate);
    color: var(--color-noble-white);
    padding: 2.7rem 0;
    margin-top: 3.4rem;
}

footer a {
    color: var(--color-justice-gold);
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .primary-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .primary-nav.is-open {
        max-height: 1200px;
    }

    .nav-groups {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .nav-dropdown,
    .nav-inline,
    .nav-cta {
        width: 100%;
    }

    .nav-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav-inline a::after {
        bottom: -2px;
    }

    .mega-panel {
        position: static;
        transform: none;
        margin-top: 0;
        min-width: auto;
        max-width: none;
        padding: 1.2rem;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.12);
        display: none;
    }

    .mega-panel.is-active {
        display: block;
    }

    .mega-links {
        grid-template-columns: 1fr;
    }

    .nav-cta {
        display: flex;
    }
}

@media (max-width: 768px) {
    .masthead {
        flex-direction: column;
        align-items: flex-start;
    }

    header {
        position: static;
    }

    .nav-cta {
        width: 100%;
    }

    .nav-cta a {
        width: 100%;
        justify-content: center;
    }

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

    .pill-row {
        gap: 0.4rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar input {
        flex: 1 1 auto;
        width: 100%;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }
}
