:root {
    --bg: #F7F9FC;
    --card: #FFFFFF;
    --ink: #0B1220;
    --muted: #5B667A;
    --border: rgba(11, 18, 32, .10);

    --primary: #0B3A6A;
    --accent: #C1121F;
    --ok: #12B76A;
    --warn: #F59E0B;
    --info: #2E90FA;

    --radius: 18px;
    --shadow: 0 14px 34px rgba(11, 18, 32, .08);
    --shadow2: 0 10px 22px rgba(11, 18, 32, .06);

    --sk: #E9EEF5;
    --sk2: #DDE6F2;
}

body {
    font-family: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
}

.mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.muted {
    color: var(--muted);
}

a {
    text-decoration: none;
}

/* ✅ disable clicks cleanly */
.dontclick {
    cursor: not-allowed;
    pointer-events: stroke;
}

/* Official banner (USWDS-like) */
.official-banner {
    background: #0a2f54;
    color: rgba(255, 255, 255, .92);
    font-size: .78rem;
}

.official-banner a {
    color: rgba(255, 255, 255, .92);
}

.official-banner a:hover {
    color: #fff;
}

/* Header */
.header {
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navlink {
    color: #182230;
    font-weight: 700;
    padding: .6rem .85rem;
    border-radius: 999px;
}

.navlink:hover {
    background: rgba(11, 58, 106, .06);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
    font-weight: 800;
    padding: .7rem 1rem;
}

.btn-outline-primary {
    border-color: rgba(11, 58, 106, .30);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 800;
    padding: .7rem 1rem;
    background: #fff;
}

/* Mobile menu button */
.menu-btn {
    border-radius: 999px;
    font-weight: 900;
    padding: .55rem .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

/* Offcanvas (mobile nav) security look */
.offcanvas-security {
    background:
        radial-gradient(640px 280px at 20% 10%, rgba(46, 144, 250, .10), transparent 60%),
        radial-gradient(560px 260px at 80% 0%, rgba(193, 18, 31, .08), transparent 58%),
        linear-gradient(180deg, #fff, #F6FAFF);
}

.offcanvas-security .offcanvas-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px);
}

.mobile-navlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: #182230;
    font-weight: 800;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.mobile-navlink:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 144, 250, .24);
    box-shadow: var(--shadow2);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF, #F6FAFF);
    border-bottom: 1px solid var(--border);
    isolation: isolate;
}

.hero:before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(980px 380px at 16% 8%, rgba(46, 144, 250, .18), transparent 62%),
        radial-gradient(980px 380px at 86% 0%, rgba(193, 18, 31, .12), transparent 58%),
        repeating-linear-gradient(90deg, rgba(11, 58, 106, .09) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(180deg, rgba(11, 58, 106, .08) 0 1px, transparent 1px 44px);
    mask-image: radial-gradient(closest-side at 50% 28%, rgba(0, 0, 0, .95), transparent 90%);
    pointer-events: none;
    opacity: .75;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Animated network layer */
.hero-net {
    position: absolute;
    inset: -40px -60px;
    z-index: 1;
    pointer-events: none;
    opacity: .42;
    filter: saturate(1.05);
    transform: translate3d(0, 0, 0);
    animation: netFloat 12s ease-in-out infinite;
}

@keyframes netFloat {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: .38;
    }

    50% {
        transform: translate3d(0, -6px, 0);
        opacity: .46;
    }

    100% {
        transform: translate3d(0, 0, 0);
        opacity: .38;
    }
}

.net-line {
    fill: none;
    stroke: rgba(46, 144, 250, .55);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 6 10;
    animation: dashMove 7s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -160;
    }
}

.net-line.alt {
    stroke: rgba(11, 58, 106, .35);
    stroke-width: 1.4;
    stroke-dasharray: 2 10;
    animation-duration: 9s;
}

.net-node {
    fill: rgba(46, 144, 250, .55);
    animation: nodePulse 3.8s ease-in-out infinite;
    transform-origin: center;
}

.net-node.s2 {
    animation-delay: .6s;
    opacity: .85;
}

.net-node.s3 {
    animation-delay: 1.1s;
    opacity: .75;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .55;
    }

    50% {
        transform: scale(1.18);
        opacity: .85;
    }
}

.net-glow {
    fill: rgba(46, 144, 250, .18);
    filter: blur(0.1px);
    animation: glowPulse 4.8s ease-in-out infinite;
}

.net-glow.r {
    fill: rgba(193, 18, 31, .14);
    animation-delay: .8s;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: .10;
        transform: scale(1);
    }

    50% {
        opacity: .22;
        transform: scale(1.07);
    }
}

.cardx {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
}

.cardx.shadow {
    box-shadow: var(--shadow);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .80rem;
    border: 1px solid var(--border);
    background: #F2F4F7;
    color: #344054;
}

.chip.ok {
    background: rgba(18, 183, 106, .10);
    border-color: rgba(18, 183, 106, .20);
    color: #027A48;
}

.chip.warn {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .22);
    color: #B45309;
}

.chip.info {
    background: rgba(46, 144, 250, .10);
    border-color: rgba(46, 144, 250, .20);
    color: #175CD3;
}

.chip.restricted {
    background: rgba(193, 18, 31, .09);
    border-color: rgba(193, 18, 31, .20);
    color: #9B1C1C;
}

.tool-card {
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    cursor: pointer;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(46, 144, 250, .22);
}

.tool-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(11, 58, 106, .08);
    border: 1px solid rgba(11, 58, 106, .12);
    color: var(--primary);
    flex: 0 0 auto;
}

.section-title {
    font-weight: 900;
    letter-spacing: -.02em;
}

/* Media cards */
.media-link {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.media-link:hover {
    border-color: rgba(46, 144, 250, .24);
    transform: translateY(-1px);
    box-shadow: var(--shadow2);
}

.media-thumb {
    width: 96px;
    min-height: 78px;
    background: linear-gradient(180deg, rgba(11, 58, 106, .10), rgba(46, 144, 250, .08));
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: relative;
}

.media-body {
    padding: .9rem 1rem;
    flex: 1 1 auto;
}

/* Skeleton shimmer */
.skeleton {
    position: relative;
    background: var(--sk);
    overflow: hidden;
}

.skeleton:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .65) 45%, transparent 85%);
    transform: translateX(-120%);
    animation: shimmer 1.15s ease-in-out infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(120%);
    }
}

.media-link.is-loading {
    pointer-events: none;
    user-select: none;
    border-style: dashed;
    border-color: rgba(11, 18, 32, .12);
    background: rgba(255, 255, 255, .85);
}

.media-link.is-loading:hover {
    transform: none;
    box-shadow: none;
}

.sk-line {
    height: 12px;
    border-radius: 10px;
    margin-top: 8px;
}

.sk-title {
    height: 14px;
    margin-top: 2px;
}

.sk-date {
    width: 84px;
    height: 12px;
    border-radius: 999px;
}

.sk-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.sk-w-70 {
    width: 70%;
}

.sk-w-55 {
    width: 55%;
}

.sk-w-40 {
    width: 40%;
}

@media (prefers-reduced-motion: reduce) {

    .hero-net,
    .net-line,
    .skeleton:after {
        animation: none !important;
    }
}

.footer {
    background: #0A2F54;
    color: rgba(255, 255, 255, .88);
    font-size: small;
}

@media (max-width: 575.98px) {
    .media-thumb {
        width: 86px;
    }
}
