/* Shared stylesheet for all League Policies & Rules documents.
   Document-styled "paper" with gold accent header, browser-printable.

   FONT HARMONY (Option C — hybrid with landing page):
     - Body uses Barlow (same as Index.cshtml body) for long-form readability.
     - Headings use Oswald (same family the landing page uses for section labels,
       pillar titles, and buttons) for brand consistency.
     - Light/cream paper background and gold accent are retained so the document
       still feels like a printable legal doc, not the dark marketing landing page.
*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
    --gold: #D4A017;
    --gold-bright: #FFD700;
    --ink: #1a1a1a;
    --muted: #555;
    --rule: #d9d6cf;
    --paper: #fdfcf8;
    --code-bg: rgba(212, 160, 23, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #efece6; color: var(--ink); }
body {
    font-family: 'Barlow', 'Helvetica', 'Arial', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
    padding: 2rem 1rem 4rem;
}
.page {
    max-width: 860px; margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border-top: 4px solid var(--gold);
    padding: 3rem 3rem 2.5rem;
}

/* Centered SMP logo at the top of every policy document (matches the source PDFs). */
.doc-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}
.doc-logo img {
    width: 120px; height: auto;
    display: inline-block;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.08));
}
@media print {
    .doc-logo img { width: 100px; }
}

.doc-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem; margin-bottom: 1.75rem;
    gap: 1rem; flex-wrap: wrap;
}
.brand {
    font-family: 'Oswald', 'Helvetica', sans-serif;
    font-weight: 600;
    letter-spacing: 3px; font-size: .78rem;
    color: var(--gold); text-transform: uppercase;
    margin-bottom: .25rem;
}

/* Button group in the top-right corner of the document header */
.doc-actions {
    display: flex; gap: .4rem; flex-shrink: 0;
    flex-wrap: wrap;
}
.doc-btn {
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .78rem;
    letter-spacing: 2px; text-transform: uppercase;
    border: 0; cursor: pointer; padding: .55rem 1.1rem;
    border-radius: 2px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.doc-btn-primary { background: var(--ink); color: #fff; }
.doc-btn-primary:hover { background: var(--gold); color: var(--ink); }
.doc-btn-secondary {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--rule);
}
.doc-btn-secondary:hover { background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }

/* Backward-compat: old .print-btn class keeps working */
.print-btn {
    background: var(--ink); color: #fff;
    font-family: 'Oswald', sans-serif; font-weight: 500;
    font-size: .78rem;
    letter-spacing: 2px; text-transform: uppercase;
    border: 0; cursor: pointer; padding: .55rem 1.1rem;
    border-radius: 2px; flex-shrink: 0;
}
.print-btn:hover { background: var(--gold); color: var(--ink); }

@media print {
    .doc-actions { display: none; }
}

h1 {
    font-family: 'Oswald', 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 .25rem;
    line-height: 1.15;
}
h2 {
    font-family: 'Oswald', 'Helvetica', sans-serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--ink);
    border-left: 3px solid var(--gold);
    padding: .15rem 0 .15rem .75rem;
    margin: 1.85rem 0 .85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
h3 {
    font-family: 'Oswald', 'Helvetica', sans-serif;
    font-size: .9rem; font-weight: 500;
    color: var(--muted);
    text-transform: uppercase; letter-spacing: 2px;
    margin: 1.3rem 0 .5rem;
}
.effective {
    font-family: 'Barlow', sans-serif;
    color: var(--muted); font-size: .85rem;
    font-style: italic; font-weight: 400;
    margin-top: .35rem;
    letter-spacing: .3px;
}
p { margin: 0 0 .8rem; }
p.intro {
    font-weight: 500;
    border-left: 3px solid var(--gold);
    padding: .85rem 1rem;
    background: var(--code-bg);
    margin: 0 0 1.5rem;
    font-size: .95rem;
}
ul, ol { margin: .25rem 0 1rem 1.5rem; padding: 0; }
ul li, ol li { margin-bottom: .3rem; }
a { color: #905412; text-decoration: underline; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
strong { color: var(--ink); font-weight: 600; }
section { margin-bottom: .25rem; }

.dupr-table {
    width: auto; min-width: 320px;
    border-collapse: collapse;
    margin: .65rem 0 1.1rem;
    font-family: 'Barlow', sans-serif;
    font-size: .92rem;
}
.dupr-table th, .dupr-table td {
    border: 1px solid var(--rule);
    padding: .5rem 1rem;
    text-align: left;
}
.dupr-table th {
    background: var(--code-bg);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .75rem;
    color: var(--muted);
}
.doc-foot {
    margin-top: 2.5rem; padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-family: 'Oswald', sans-serif; font-weight: 400;
    font-size: .72rem; color: var(--muted);
    letter-spacing: 1.5px; text-transform: uppercase;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* Contact block at end of some docs */
.contact-block {
    background: var(--code-bg);
    border-left: 3px solid var(--gold);
    padding: .9rem 1.1rem;
    margin: .5rem 0 1rem;
    font-family: 'Barlow', sans-serif; font-size: .92rem;
}
.contact-block strong {
    display: block; margin-bottom: .35rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
}

/* Print: hide chrome, paper background, page-friendly margins */
@media print {
    body { background: #fff; padding: 0; }
    .page { box-shadow: none; max-width: none; margin: 0; padding: 1.5cm; border-top: 4px solid var(--gold); }
    .print-btn { display: none; }
}
