/*
Theme Name: Klassik Royalz Club
Theme URI: https://klassikroyalzclub.org/
Author: Klassik Royalz Club
Description: Custom WordPress theme for Klassik Royalz Club with a dedicated constitution page template and member portal.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: klassik-royalz
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --gold: #B8952A;
    --gold-light: #D4AF5A;
    --gold-dim: #7A6218;
    --cream: #FAF8F2;
    --ink: #1A1812;
    --ink-soft: #3D3A30;
    --ink-muted: #7A7668;
    --line: rgba(184,149,42,0.2);
    --line-soft: rgba(26,24,18,0.08);
    --surface: #F5F3EC;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* NAV */
nav#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 3rem;
    background: rgba(250,248,242,0.94);
    backdrop-filter: blur(8px);
    border-bottom: 0.5px solid var(--line);
    transition: var(--transition);
}
.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--gold); }
.nav-apply { padding: 0.6rem 1.5rem; background: var(--ink); color: var(--cream); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.nav-apply:hover { background: var(--gold-dim); color: var(--cream); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-hamburger span { width: 24px; height: 1.5px; background: var(--ink); display: block; transition: var(--transition); }

/* HERO */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 8rem 2rem 7rem; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 50% 60%, rgba(184,149,42,0.07) 0%, transparent 70%),
      repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(184,149,42,0.04) 79px, rgba(184,149,42,0.04) 80px),
      repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(184,149,42,0.04) 79px, rgba(184,149,42,0.04) 80px);
}
.crown-ornament { font-size: 2.5rem; margin-bottom: 1.5rem; display: block; opacity: 0.7; }
.hero-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold);
    margin-bottom: 1.5rem; position: relative; display: inline-flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; display: block; width: 40px; height: 0.5px; background: var(--gold); opacity: 0.6; }
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.2em;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1rem; color: var(--ink-muted); max-width: 480px; margin: 1.5rem auto 2.5rem; font-weight: 300; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { display: inline-block; padding: 0.85rem 2.5rem; background: var(--ink); color: var(--cream); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: var(--gold-dim); }
.btn-secondary { display: inline-block; padding: 0.85rem 2.5rem; border: 0.5px solid var(--ink-muted); color: var(--ink); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: border-color 0.2s, color 0.2s; cursor: pointer; font-family: 'DM Sans', sans-serif; background: none; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { display: inline-block; padding: 0.85rem 2.5rem; background: var(--gold); color: var(--ink); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; transition: background 0.2s; font-family: 'DM Sans', sans-serif; }
.btn-gold:hover { background: var(--gold-light); }
.hero-stats {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 3rem; opacity: 0.85;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--gold); line-height: 1; }
.hero-stat span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.25rem; display: block; }

/* SECTION BASE */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--line); }
h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.15; color: var(--ink); }
h2 em { font-style: italic; color: var(--gold); }
.lead { font-size: 1.05rem; color: var(--ink-muted); font-weight: 300; line-height: 1.8; max-width: 620px; margin-top: 1rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 4rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1rem; font-weight: 300; font-size: 1.05rem; }
.values-list { list-style: none; margin-top: 2rem; }
.values-list li { padding: 0.75rem 0; border-bottom: 0.5px solid var(--line-soft); display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.values-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.about-visual { position: relative; height: 420px; }
.about-card { position: absolute; background: white; border: 0.5px solid var(--line-soft); padding: 2rem; }
.about-card-main { width: 280px; top: 0; right: 0; background: var(--ink); color: var(--cream); padding: 2.5rem; }
.about-card-main .big-num { font-family: 'Cormorant Garamond', serif; font-size: 4.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.about-card-main p { font-size: 0.88rem; opacity: 0.75; margin-top: 0.5rem; }
.about-card-accent { width: 200px; bottom: 30px; left: 0; background: var(--gold); }
.about-card-accent .label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,24,18,0.6); margin-bottom: 0.5rem; }
.about-card-accent strong { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--ink); display: block; }
.about-card-sm { width: 160px; bottom: 30px; right: 60px; text-align: center; }
.about-card-sm .icon-wrap { font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-card-sm p { font-size: 0.8rem; color: var(--ink-muted); line-height: 1.4; }

/* MISSION BAND */
.mission-band { background: var(--ink); padding: 5rem 2rem; }
.mission-band-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.mission-quote { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; font-style: italic; color: var(--cream); line-height: 1.4; }
.mission-quote em { color: var(--gold); font-style: normal; }
.mission-attr { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,248,242,0.4); margin-top: 1.5rem; }
.mission-points { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.mission-point { display: flex; gap: 1.25rem; }
.mission-point-num { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--gold); opacity: 0.5; line-height: 1; flex-shrink: 0; width: 2rem; text-align: right; }
.mission-point-text h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--cream); margin-bottom: 0.25rem; }
.mission-point-text p { font-size: 0.88rem; color: rgba(250,248,242,0.45); font-weight: 300; line-height: 1.6; }

/* PILLARS */
.pillars { background: var(--ink); }
.pillars .section-label { color: var(--gold); }
.pillars h2 { color: var(--cream); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 4rem; border: 0.5px solid rgba(255,255,255,0.08); }
.pillar { padding: 2.5rem 2rem; border-right: 0.5px solid rgba(255,255,255,0.08); transition: background 0.2s; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(255,255,255,0.03); }
.pillar-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--gold); opacity: 0.4; line-height: 1; margin-bottom: 1.5rem; }
.pillar h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--cream); margin-bottom: 0.75rem; }
.pillar p { font-size: 0.9rem; color: rgba(250,248,242,0.5); font-weight: 300; line-height: 1.7; }
.pillar-icon { font-size: 1.4rem; margin-bottom: 1rem; opacity: 0.6; }

/* HOW IT WORKS */
.how-it-works { background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.step-card { background: white; border: 0.5px solid var(--line-soft); padding: 2.5rem 2rem; position: relative; transition: border-color 0.2s, transform 0.2s; }
.step-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: var(--gold); opacity: 0.2; line-height: 1; margin-bottom: 1rem; }
.step-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: var(--ink-muted); font-weight: 300; line-height: 1.7; }

/* WELFARE */
.welfare-table-wrap { margin-top: 3rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 0.75rem 1.5rem; text-align: left; border-bottom: 0.5px solid var(--line); font-weight: 500; }
td { padding: 1rem 1.5rem; border-bottom: 0.5px solid var(--line-soft); color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(184,149,42,0.03); }
.amount { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--ink); }
.welfare-notes { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.constitution-note { background: rgba(184,149,42,0.06); border-left: 2px solid var(--gold); padding: 1.25rem 1.75rem; font-size: 0.88rem; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }
.constitution-note strong { color: var(--gold-dim); font-weight: 500; }

/* EVENTS */
.events-section { background: var(--surface); }
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.event-card { background: white; border: 0.5px solid var(--line-soft); padding: 2rem; transition: border-color 0.2s, transform 0.2s; }
.event-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.event-type { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.event-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 400; color: var(--ink); margin-bottom: 0.75rem; line-height: 1.3; }
.event-card p { font-size: 0.88rem; color: var(--ink-muted); font-weight: 300; line-height: 1.7; }
.event-freq { display: inline-block; margin-top: 1.25rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); padding: 0.3rem 0.85rem; border: 0.5px solid var(--line); }

/* LEADERSHIP */
.leadership { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.team-card { background: white; border: 0.5px solid var(--line-soft); padding: 1.75rem 1.25rem; text-align: center; transition: border-color 0.2s, transform 0.2s; }
.team-card:hover { border-color: var(--gold-light); transform: translateY(-3px); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; letter-spacing: 0.05em; }
.team-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.team-card .role { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.team-card .role-desc { font-size: 0.82rem; color: var(--ink-muted); font-weight: 300; margin-top: 0.75rem; line-height: 1.5; }
.leadership-note { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* MEMBERSHIP */
.membership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3.5rem; }
.info-list { list-style: none; }
.info-list li { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 0.5px solid var(--line-soft); font-size: 0.95rem; gap: 2rem; }
.info-list li span:first-child { color: var(--ink-muted); font-weight: 300; }
.info-list li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.cta-box { background: var(--ink); padding: 3rem; position: relative; overflow: hidden; }
.cta-box::before { content: 'KR'; position: absolute; right: -0.5rem; bottom: -1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 9rem; font-weight: 300; color: rgba(184,149,42,0.08); line-height: 1; pointer-events: none; }
.cta-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; color: var(--cream); margin-bottom: 1rem; line-height: 1.2; }
.cta-box p { font-size: 0.9rem; color: rgba(250,248,242,0.55); font-weight: 300; margin-bottom: 2rem; line-height: 1.7; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 2rem; }
.price-num { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.price-label { font-size: 0.85rem; color: rgba(250,248,242,0.45); }
.fee-breakdown { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.fee-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.5rem 0; border-bottom: 0.5px solid rgba(255,255,255,0.06); }
.fee-row span:first-child { color: rgba(250,248,242,0.45); font-weight: 300; }
.fee-row span:last-child { color: var(--gold-light); font-weight: 500; }

/* FAQ */
.faq-section { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3.5rem; }
.faq-col { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 0.5px solid var(--line-soft); cursor: pointer; }
.faq-item:first-child { border-top: 0.5px solid var(--line-soft); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; gap: 1rem; }
.faq-q span { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: var(--ink); line-height: 1.3; }
.faq-icon { font-size: 1.2rem; color: var(--gold); flex-shrink: 0; transition: transform 0.2s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 1.25rem; font-size: 0.9rem; color: var(--ink-muted); font-weight: 300; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* FOOTER */
footer#main-footer { background: var(--ink); padding: 3.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.5rem; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,248,242,0.35); margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; color: rgba(250,248,242,0.35); font-weight: 300; line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a, .footer-col ul li span { font-size: 0.85rem; letter-spacing: 0.05em; color: rgba(250,248,242,0.4); text-decoration: none; transition: color 0.2s; cursor: pointer; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-copy { width: 100%; font-size: 0.75rem; color: rgba(250,248,242,0.2); border-top: 0.5px solid rgba(255,255,255,0.06); margin-top: 2rem; padding-top: 1.5rem; text-align: center; letter-spacing: 0.05em; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(26,24,18,0.7); align-items: center; justify-content: center; padding: 2rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--cream); max-width: 500px; width: 100%; padding: 3rem; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--ink-muted); }
.modal h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; margin-bottom: 0.5rem; color: var(--ink); }
.modal > div > p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 1.75rem; font-weight: 300; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 0.75rem 1rem; border: 0.5px solid rgba(26,24,18,0.2); background: white; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--ink); outline: none; transition: border-color 0.2s; appearance: none; }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--gold); }
.form-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 1rem; line-height: 1.6; }
#form-error { display:none; color:#b44; font-size:0.82rem; margin-bottom:0.75rem; padding:0.6rem 0.9rem; background:rgba(180,60,60,0.07); border-left:2px solid #b44; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero > * { animation: fadeUp 0.8s ease both; }
.hero .hero-eyebrow { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero .hero-sub { animation-delay: 0.4s; }
.hero .hero-btns { animation-delay: 0.55s; }
.hero .hero-stats { animation-delay: 0.7s; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* CONSTITUTION PAGE STYLES */
.constitution-header {
    background: var(--ink);
    padding: 3rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(184,149,42,0.2);
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.header-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream);
}
.header-logo span { color: var(--gold); }
.header-title {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(250,248,242,0.5);
}
.header-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.header-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250,248,242,0.6);
    transition: color 0.2s;
    text-decoration: none;
}
.header-nav a:hover { color: var(--gold); }
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
    align-items: start;
}
.toc-sidebar {
    position: sticky;
    top: 120px;
}
.toc-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toc-list li {
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: border-color 0.2s, color 0.2s;
}
.toc-list li.active {
    border-left-color: var(--gold);
}
.toc-list a {
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 0.35rem 0;
}
.toc-list a:hover,
.toc-list li.active a {
    color: var(--gold);
}
.document {
    background: white;
    padding: 3rem;
    border: 1px solid var(--line-soft);
}
.doc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gold);
}
.doc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.doc-meta {
    font-size: 0.85rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.article {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}
.article-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.article-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--gold);
    flex-shrink: 0;
    width: 60px;
    text-align: right;
}
.article-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.3;
}
.article-body {
    margin-left: 90px;
    padding-left: 1rem;
    border-left: 1px solid var(--line-soft);
}
.article-body p {
    margin-bottom: 1rem;
    color: var(--ink-soft);
    font-weight: 300;
    line-height: 1.8;
}
.article-body ul {
    margin-left: 1.5rem;
    list-style: disc;
    margin-bottom: 1rem;
}
.article-body li {
    color: var(--ink-soft);
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.article-body strong {
    color: var(--ink);
    font-weight: 500;
}
.subsection {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.subsection-title {
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.signature-block {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gold);
    max-width: 400px;
}
.sig-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.sig-line {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.25rem;
}
.sig-role {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 2rem;
}
.sig-date {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* PORTAL STYLES */
.portal-header {
    background: var(--ink);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
}
.btn-back {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
}
.btn-back:hover {
    background: var(--gold);
    color: var(--ink);
}
.portal-hero {
    background: var(--surface);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}
.portal-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
}
.portal-hero p {
    color: var(--ink-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.portal-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.password-form-container {
    max-width: 400px;
    margin: 6rem auto;
    text-align: center;
    padding: 3rem;
    background: white;
    border: 1px solid var(--line-soft);
}
.password-form-container h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.post-password-form input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line-soft);
    font-family: 'DM Sans', sans-serif;
}
.post-password-form input[type="submit"] {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 0.8rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    width: 100%;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.announcement-card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--line-soft);
    margin-bottom: 1.5rem;
}
.announcement-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.announcement-date {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}
.announcement-body {
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.doc-list {
    list-style: none;
}
.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.doc-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
}
.btn-download {
    font-size: 0.7rem;
    color: var(--ink);
    background: var(--gold);
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .toc-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .header-container { flex-direction: column; }
}

@media (max-width: 960px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .events-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 850px) {
    .portal-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav#navbar { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: fixed; inset: 70px 0 0; background: var(--cream); padding: 2rem 1.5rem; gap: 1.5rem; border-top: 0.5px solid var(--line); z-index: 99; }
    .about-grid, .membership-grid { grid-template-columns: 1fr; gap: 3rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .about-visual { height: 280px; }
    .hero-stats { gap: 1.5rem; }
    section { padding: 4rem 1.25rem; }
    .pillar { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
    .steps-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 2.5rem; }

    .doc-title { font-size: 1.8rem; }
    .article-num { font-size: 1.5rem; width: 50px; }
    .article-body { margin-left: 0; padding-left: 1rem; }
    .document { padding: 1.5rem; }

    .hero {
      padding: 7.25rem 1.25rem 4rem;
    }
    .hero h1 {
      font-size: clamp(3rem, 15.5vw, 4.4rem);
    }
    .hero-stats {
      position: static;
      transform: none;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      margin-top: 2.5rem;
    }
}
