/* Global page polish layer (content pages only) */
:root {
    --pc-surface: rgba(255, 255, 255, 0.82);
    --pc-surface-border: rgba(148, 163, 184, 0.3);
    --pc-text-strong: #0f172a;
    --pc-text-soft: #475569;
    --pc-glow-a: rgba(34, 211, 238, 0.12);
    --pc-glow-b: rgba(56, 189, 248, 0.08);
}

body.bg-gray-100 {
    background:
        radial-gradient(900px 320px at 0% 0%, var(--pc-glow-a), transparent 60%),
        radial-gradient(800px 280px at 100% 10%, var(--pc-glow-b), transparent 60%),
        linear-gradient(180deg, #f5f9ff 0%, #eef3fb 100%);
    color: var(--pc-text-strong);
}

main.container {
    position: relative;
}

/* Modern card treatment across list/detail pages */
main .bg-white.rounded-lg.shadow-md,
main section.bg-white.rounded-lg.shadow-md,
main div.bg-white.rounded-lg.shadow-md {
    background: var(--pc-surface) !important;
    border: 1px solid var(--pc-surface-border);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(4px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

main h1,
main h2,
main h3 {
    letter-spacing: -0.015em;
}

main p,
main li {
    color: var(--pc-text-soft);
}

main a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* Subtle load-in animation for content blocks */
main .bg-white.rounded-lg.shadow-md,
main section.bg-white.rounded-lg.shadow-md {
    animation: pcFadeUp 0.45s ease both;
}

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

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

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

/* Document pages: law guides and legislation */
.pc-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    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;
}
