/* Shared visual system for standard site pages */
:root {
    --pc-bg: #070d1a;
    --pc-panel: rgba(9, 16, 31, 0.82);
    --pc-text: #e2e8f0;
    --pc-muted: #94a3b8;
    --pc-ink: #0f172a;
    --pc-ink-soft: #475569;
    --pc-border: rgba(148, 163, 184, 0.28);
    --pc-ring: rgba(56, 189, 248, 0.45);
    --pc-accent-a: #22d3ee;
    --pc-accent-b: #38bdf8;
    --pc-accent-c: #f59e0b;
    --pc-accent-d: #14b8a6;
}

/* Ensure the HTML `hidden` attribute always wins (author CSS can otherwise override UA defaults). */
[hidden] {
    display: none !important;
}

/*
  Tailwind compatibility layer
  The project currently loads Tailwind v2.2.x, but the markup uses newer v3-style
  color utilities (slate/amber/rose). Without these, many buttons render as
  "missing" (e.g., white text on transparent background). Keep this list small
  and only cover what the project actually uses.
*/
.bg-slate-50 { background-color: #f8fafc !important; }
.bg-slate-500 { background-color: #64748b !important; }
.bg-slate-600 { background-color: #475569 !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-950 { background-color: #020617 !important; }

.text-slate-100 { color: #f1f5f9 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-900 { color: #0f172a !important; }

.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-900\/20 { border-color: rgba(15, 23, 42, 0.2) !important; }

.bg-rose-600 { background-color: #e11d48 !important; }
.bg-rose-700 { background-color: #be123c !important; }
.text-rose-200 { color: #fecdd3 !important; }
.text-rose-300 { color: #fda4af !important; }
.text-rose-700 { color: #be123c !important; }

.bg-amber-50 { background-color: #fffbeb !important; }
.bg-amber-600 { background-color: #d97706 !important; }
.bg-amber-700 { background-color: #b45309 !important; }
.border-amber-200 { border-color: #fde68a !important; }
.text-amber-600 { color: #d97706 !important; }
.text-amber-900 { color: #78350f !important; }

.hover\:bg-slate-600:hover { background-color: #475569 !important; }
.hover\:bg-slate-700:hover { background-color: #334155 !important; }
.hover\:bg-slate-800:hover { background-color: #1e293b !important; }
.hover\:bg-slate-900:hover { background-color: #0f172a !important; }
.hover\:bg-rose-700:hover { background-color: #be123c !important; }
.hover\:bg-amber-700:hover { background-color: #b45309 !important; }
.hover\:text-rose-200:hover { color: #fecdd3 !important; }

/* Base page styling (all standard pages use bg-gray-100) */
body.bg-gray-100 {
    margin: 0;
    color: var(--pc-ink);
    background:
        radial-gradient(1100px 380px at -10% -10%, rgba(34, 211, 238, 0.2), transparent 58%),
        radial-gradient(900px 340px at 110% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
        linear-gradient(180deg, #f2f7ff 0%, #e9eff9 100%);
}

body.bg-gray-100 main.container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

body.bg-gray-100 main h1,
body.bg-gray-100 main h2,
body.bg-gray-100 main h3 {
    color: #0b213a;
    letter-spacing: -0.015em;
}

body.bg-gray-100 main h1.text-4xl {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
}

body.bg-gray-100 main h2 {
    font-size: clamp(1.3rem, 2vw, 1.85rem);
}

body.bg-gray-100 main > h1 {
    animation: pcTitleRise 0.45s ease both;
}

body.bg-gray-100 main p,
body.bg-gray-100 main li {
    color: var(--pc-ink-soft);
}

/* Keep contrast correct in explicitly white text sections */
body.bg-gray-100 main .text-white,
body.bg-gray-100 main .text-white h1,
body.bg-gray-100 main .text-white h2,
body.bg-gray-100 main .text-white h3,
body.bg-gray-100 main .text-white p,
body.bg-gray-100 main .text-white li {
    color: #f8fafc !important;
}

body.bg-gray-100 main ul,
body.bg-gray-100 main ol {
    padding-left: 1.05rem;
}

body.bg-gray-100 main li + li {
    margin-top: 0.25rem;
}

body.bg-gray-100 main .bg-white.rounded-lg.shadow-md,
body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md,
body.bg-gray-100 main div.bg-white.rounded-lg.shadow-md {
    position: relative;
    background: rgba(255, 255, 255, 0.84) !important;
    border: 1px solid var(--pc-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11) !important;
    backdrop-filter: blur(6px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: pcFadeUp 0.45s ease both;
    content-visibility: auto;
    contain-intrinsic-size: 1px 480px;
}

body.bg-gray-100 main .bg-white.rounded-lg.shadow-md:hover,
body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md:hover,
body.bg-gray-100 main div.bg-white.rounded-lg.shadow-md:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14) !important;
}

body.bg-gray-100 main .bg-white.rounded-lg.shadow-md:nth-of-type(2),
body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md:nth-of-type(2) { animation-delay: 0.04s; }
body.bg-gray-100 main .bg-white.rounded-lg.shadow-md:nth-of-type(3),
body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md:nth-of-type(3) { animation-delay: 0.08s; }
body.bg-gray-100 main .bg-white.rounded-lg.shadow-md:nth-of-type(4),
body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md:nth-of-type(4) { animation-delay: 0.12s; }

body.bg-gray-100 main a.inline-block.bg-green-600,
body.bg-gray-100 main a.inline-block.bg-yellow-600,
body.bg-gray-100 main a.inline-block.bg-pink-600,
body.bg-gray-100 main a.inline-block.bg-blue-600,
body.bg-gray-100 main a.inline-block.bg-red-600,
body.bg-gray-100 main a.inline-block.bg-purple-600,
body.bg-gray-100 main a.inline-block.bg-slate-700 {
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 700;
    letter-spacing: 0.005em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.bg-gray-100 main a.inline-block.bg-green-600:hover,
body.bg-gray-100 main a.inline-block.bg-yellow-600:hover,
body.bg-gray-100 main a.inline-block.bg-pink-600:hover,
body.bg-gray-100 main a.inline-block.bg-blue-600:hover,
body.bg-gray-100 main a.inline-block.bg-red-600:hover,
body.bg-gray-100 main a.inline-block.bg-purple-600:hover,
body.bg-gray-100 main a.inline-block.bg-slate-700:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.24);
    filter: brightness(1.03);
}

body.bg-gray-100 .hero-bg {
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

body.bg-gray-100 .hero-bg .bg-black.bg-opacity-60 {
    backdrop-filter: blur(1px);
}

body.bg-gray-100 main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body.bg-gray-100 main textarea,
body.bg-gray-100 main select {
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.bg-gray-100 main input:focus,
body.bg-gray-100 main textarea:focus,
body.bg-gray-100 main select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

body.bg-gray-100 main table {
    border-collapse: collapse;
    width: 100%;
    overflow: hidden;
    border-radius: 0.8rem;
    border: 1px solid var(--pc-border);
}

body.bg-gray-100 main th,
body.bg-gray-100 main td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes pcFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pcTitleRise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    body.bg-gray-100 main .bg-white.rounded-lg.shadow-md:hover,
    body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md:hover,
    body.bg-gray-100 main div.bg-white.rounded-lg.shadow-md:hover {
        transform: none;
    }

    body.bg-gray-100 main.container {
        margin-top: 1.75rem !important;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    body.bg-gray-100 main h1.text-4xl {
        font-size: clamp(1.7rem, 7vw, 2.15rem);
    }

    body.bg-gray-100 .hero-bg .bg-black.bg-opacity-60.py-32 {
        padding-top: clamp(4rem, 18vw, 6rem);
        padding-bottom: clamp(4rem, 18vw, 6rem);
    }

    .pc-header,
    .pc-footer-hero,
    .pc-footer-grid {
        backdrop-filter: none;
    }
}

/* Header */
.pc-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(140deg, rgba(7, 13, 26, 0.94), rgba(15, 23, 42, 0.93));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 34px rgba(2, 6, 23, 0.45);
}

.pc-header::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pc-accent-a), var(--pc-accent-b), var(--pc-accent-c));
    background-size: 180% 100%;
    animation: pcShift 8s linear infinite;
}

.pc-header-scrolled {
    box-shadow: 0 16px 42px rgba(2, 6, 23, 0.58);
}

.pc-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.76rem 1rem 0.84rem;
    position: relative;
}

.pc-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.pc-brand-wrap {
    display: inline-grid;
    gap: 0.06rem;
    min-width: 0;
    color: #f8fafc;
}

.pc-brand {
    font-size: clamp(1.14rem, 1.2vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.pc-brand span { color: var(--pc-accent-a); }

.pc-brand-sub {
    font-size: 0.68rem;
    color: rgba(203, 213, 225, 0.9);
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.pc-nav {
    display: none;
    align-items: center;
    gap: 0.22rem;
}

.pc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pc-text);
    font-size: 0.9rem;
    line-height: 1.22;
    border-radius: 0.72rem;
    padding: 0.5rem 0.72rem;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pc-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.14);
}

.pc-link.pc-link-active {
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.52);
    background: linear-gradient(140deg, rgba(34, 211, 238, 0.2), rgba(56, 189, 248, 0.08));
}

.pc-link:focus-visible {
    outline: 2px solid var(--pc-ring);
    outline-offset: 2px;
}

.pc-dropdown-parent { position: relative; }

.pc-caret {
    font-size: 0.64rem;
    opacity: 0.86;
    transform: translateY(1px);
}

.pc-dropdown-parent:hover .pc-caret,
.pc-dropdown-parent:focus-within .pc-caret {
    transform: rotate(180deg) translateY(-1px);
}

.pc-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    min-width: 14.6rem;
    padding: 0.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(5, 10, 20, 0.94);
    box-shadow: 0 22px 42px rgba(2, 6, 23, 0.64);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.pc-dropdown-link {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 0.55rem;
    color: var(--pc-muted);
    font-size: 0.84rem;
    line-height: 1.3;
    white-space: nowrap;
}

.pc-dropdown-link:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.18);
}

.pc-dropdown-parent:hover .pc-dropdown,
.pc-dropdown-parent:focus-within .pc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pc-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
}

.pc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.68rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.22;
    min-height: 2.2rem;
    padding: 0.52rem 0.74rem;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.pc-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.pc-cta:focus-visible {
    outline: 2px solid var(--pc-ring);
    outline-offset: 2px;
}

.pc-cta-main {
    color: #06212a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(140deg, #67e8f9, #38bdf8);
}

.pc-cta-soft {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(30, 41, 59, 0.84);
}

.pc-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
    font-size: 0.86rem;
    line-height: 1.2;
    min-height: 2.2rem;
    padding: 0.44rem 0.8rem;
    background: rgba(15, 23, 42, 0.7);
}

.pc-mobile-toggle:focus {
    outline: 2px solid var(--pc-ring);
    outline-offset: 2px;
}

.pc-mobile-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0.34rem;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.pc-mobile-open .pc-mobile-panel {
    max-height: 460px;
    opacity: 1;
}

.pc-mobile-panel-inner {
    margin-top: 0.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.6rem;
    display: grid;
    gap: 0.2rem;
}

.pc-mobile-link {
    display: block;
    color: #e2e8f0;
    padding: 0.54rem 0.68rem;
    border-radius: 0.58rem;
    font-size: 0.9rem;
    line-height: 1.28;
}

.pc-mobile-link:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
}

.pc-mobile-link:focus-visible,
.pc-dropdown-link:focus-visible,
.pc-footer-link:focus-visible,
.pc-social:focus-visible {
    outline: 2px solid var(--pc-ring);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.pc-mobile-actions {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

@media (min-width: 980px) {
    .pc-header-row {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }

    .pc-nav { display: inline-flex; }
    .pc-actions { display: inline-flex; }

    .pc-mobile-toggle,
    .pc-mobile-panel { display: none !important; }
}

@media (min-width: 1160px) {
    .pc-link { padding: 0.5rem 0.74rem; }
}

@keyframes pcShift {
    0% { background-position: 0 0; }
    100% { background-position: 180% 0; }
}

/* Footer */
.pc-footer {
    position: relative;
    margin-top: 4rem;
    color: #dbe7ff;
    background:
        radial-gradient(1100px 300px at 10% -10%, rgba(34, 211, 238, 0.2), transparent 62%),
        radial-gradient(920px 280px at 95% -18%, rgba(245, 158, 11, 0.2), transparent 62%),
        #040a17;
    border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.pc-footer-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.3rem 1rem 1.2rem;
}

.pc-footer-hero {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.8), rgba(6, 12, 25, 0.85));
    border-radius: 1rem;
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.44);
    padding: 1rem;
    display: grid;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.pc-footer-hero-copy { max-width: 760px; }

.pc-footer-brand-title {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
    margin-bottom: 0.45rem;
}

.pc-footer-heading {
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 0.56rem;
}

.pc-footer-text {
    color: #a8b6cf;
    line-height: 1.52;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}

.pc-footer-cta-row {
    margin-top: 0.72rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pc-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.68rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.22;
    min-height: 2.2rem;
    padding: 0.58rem 0.78rem;
}

.pc-footer-cta-main {
    color: #06212a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(140deg, #67e8f9, #38bdf8);
}

.pc-footer-cta-soft {
    color: #dbeafe;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(30, 41, 59, 0.84);
}

.pc-footer-chip {
    display: inline-flex;
    margin: 0 0.45rem 0.45rem 0;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.36);
    color: #dff8ff;
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0.2rem 0.52rem;
    background: rgba(8, 47, 73, 0.36);
}

.pc-footer-hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
}

.pc-footer-grid {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(11, 20, 37, 0.72);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.34);
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.pc-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.pc-footer-link {
    color: #c8d7ef;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.3;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pc-footer-link:hover {
    color: #67e8f9;
    transform: translateX(3px);
}

.pc-footer-muted { color: #a8b6cf; }

.pc-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.42rem;
}

.pc-social {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c8d7ef;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.75);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pc-social:hover {
    transform: translateY(-2px);
    color: #67e8f9;
    border-color: rgba(56, 189, 248, 0.65);
}

.pc-social-note { margin: 0; font-size: 0.78rem; }

.pc-footer-bottom {
    margin-top: 1rem;
    padding-bottom: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: #94a3b8;
    font-size: 0.84rem;
}

.pc-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
}

@media (min-width: 860px) {
    .pc-footer-hero {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .pc-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .pc-footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pc-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Document pages */
.pc-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #22d3ee, #38bdf8, #f59e0b);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.pc-doc-root {
    max-width: 1100px;
}

.pc-doc-toc {
    margin: 1.1rem 0 1.4rem;
    padding: 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: linear-gradient(145deg, rgba(7, 17, 34, 0.82), rgba(15, 23, 42, 0.72));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.pc-doc-toc-title {
    color: #e2f6ff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
}

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

.pc-doc-toc-link {
    display: block;
    color: #cbd5e1;
    font-size: 0.86rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.52);
}

.pc-doc-toc-link:hover {
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(30, 41, 59, 0.75);
}

.pc-doc-root h1 {
    color: #0f172a;
    position: relative;
    padding-bottom: 0.65rem;
}

.pc-doc-root h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 78px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.pc-doc-root h2 { color: #0b2948; }
.pc-doc-root h3 { color: #0f3c66; }

/* Fallback for browsers without blur support */
@supports not (backdrop-filter: blur(4px)) {
    body.bg-gray-100 main .bg-white.rounded-lg.shadow-md,
    body.bg-gray-100 main section.bg-white.rounded-lg.shadow-md,
    body.bg-gray-100 main div.bg-white.rounded-lg.shadow-md {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    .pc-header {
        background: linear-gradient(140deg, rgba(7, 13, 26, 0.99), rgba(15, 23, 42, 0.98));
    }
}

/* Respect reduced-motion users and reduce CPU/GPU work */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Cookie banner + preferences modal */
.pc-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(1080px, calc(100vw - 24px));
    z-index: 1100;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 1fr;
    padding: 1rem 1rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(6, 12, 25, 0.92));
    box-shadow: 0 22px 54px rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
    backdrop-filter: blur(12px);
}

.pc-cookie-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.pc-cookie-text {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.92rem;
    line-height: 1.45;
}

.pc-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.55rem;
}

.pc-cookie-link,
.pc-cookie-link-btn {
    color: #67e8f9;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
}

.pc-cookie-link:hover,
.pc-cookie-link-btn:hover {
    text-decoration: underline;
}

.pc-cookie-link-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.pc-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.pc-cookie-btn {
    border-radius: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.65rem 0.9rem;
    min-height: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.38);
    cursor: pointer;
}

.pc-cookie-btn-main {
    color: #04131d;
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(145deg, #67e8f9, #38bdf8);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

.pc-cookie-btn-main:hover {
    filter: brightness(1.03);
}

.pc-cookie-btn-ghost {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.85);
}

.pc-cookie-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.92);
}

.pc-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.7);
}

.pc-cookie-modal {
    width: min(92vw, 720px);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.55);
    overflow: hidden;
}

.pc-cookie-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #0f172a;
    color: #f8fafc;
}

.pc-cookie-modal-title {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.pc-cookie-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.85);
    color: #e2e8f0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.pc-cookie-close:hover {
    background: rgba(15, 23, 42, 0.95);
}

.pc-cookie-modal-body {
    padding: 16px;
    color: #0f172a;
}

.pc-cookie-modal-intro {
    margin: 0 0 12px;
    color: #475569;
}

.pc-cookie-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.9rem;
    padding: 12px 12px 10px;
    background: rgba(248, 250, 252, 0.95);
}

.pc-cookie-row + .pc-cookie-row {
    margin-top: 10px;
}

.pc-cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
}

.pc-cookie-toggle input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.pc-cookie-toggle-desc {
    margin-top: 6px;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.35;
}

.pc-cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.9);
}

@media (min-width: 860px) {
    .pc-cookie-banner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .pc-cookie-actions {
        justify-content: flex-end;
    }
}
