/* ── PAGE HERO ── */
.page-hero {
    background: linear-gradient(160deg, var(--blue) 0%, var(--blue-mid) 60%, #0e4d8a 100%);
    padding: 110px 5% 65px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(212, 168, 58, 0.15) 0%, transparent 70%);
}

.breadcrumb {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.1rem;
    position: relative;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 168, 58, 0.15);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.75rem;
    padding: 0.38rem 0.9rem;
    margin-top: 6rem;
    margin-bottom: 1.3rem;
    border-radius: 3px;
    position: relative;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.9rem;
    position: relative;
}

.page-hero h1 em {
    color: var(--gold);
    font-style: italic;
}

.page-hero>p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.93rem;
    max-width: 560px;
    line-height: 1.85;
    position: relative;
}

.page-hero>* {
    animation: fadeUp 0.7s ease both;
}

/* ── TWO-COLUMN LAYOUT ── */
.layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
     /* critical for sticky to work */

    align-items: start;
    overflow: visible;
}

/* ── TABLE OF CONTENTS (STICKY SIDEBAR) ── */
.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 1.4rem;
    border-radius: 0 0 6px 6px;
}

.toc h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.toc ol {
    list-style: none;
    counter-reset: t;
}

.toc li {
    counter-increment: t;
    margin-bottom: 0.45rem;
}

.toc li::before {
    content: counter(t) ". ";
    color: var(--gold);
    font-size: 0.77rem;
    font-weight: 600;
}

.toc a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
    line-height: 1.5;
}

.toc a:hover {
    color: var(--blue);
}

/* ── CONTENT TYPOGRAPHY ── */
.content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin: 2.5rem 0 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.content h2 i {
    color: var(--gold);
    margin-right: 0.6rem;
    font-size: 1rem;
}

.content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.4rem 0 0.55rem;
}

.content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 0.95rem;
}

.content ul,
.content ol {
    padding-left: 1.4rem;
    margin-bottom: 0.95rem;
}

.content li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 0.38rem;
}

.content strong {
    color: var(--text);
    font-weight: 600;
}

.content a {
    color: var(--blue-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 127, 207, 0.25);
}

.content a:hover {
    color: var(--blue);
}

/* ── DATA TABLE ── */
.dtable {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.83rem;
}

.dtable th {
    background: var(--blue);
    color: var(--gold);
    font-weight: 600;
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.dtable td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    vertical-align: top;
    line-height: 1.65;
}

.dtable tr:last-child td {
    border-bottom: none;
}

.dtable tr:hover td {
    background: var(--blue-pale);
}

/* ── RIGHTS GRID ── */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin: 1.4rem 0;
}

.r-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1.1rem;
    transition: border-color 0.25s, transform 0.25s;
}

.r-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.r-card i {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.45rem;
    display: block;
}

.r-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.28rem;
}

.r-card p {
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.65;
}

/* ── CONTACT BOX ── */
.contact-box {
    background: var(--blue);
    padding: 1.8rem;
    margin-top: 1.8rem;
    border-radius: 5px;
    border-left: 4px solid var(--gold);
}

.contact-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.contact-box p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.87rem;
    margin-bottom: 0.55rem;
}

.contact-box a {
    color: var(--gold-light);
    text-decoration: none;
    border: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    
    align-items: start;
    overflow: visible;
}

    .toc {
        position: static;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }
}