/* ============================================================
   Arxiu Memòria Ulldemolins — web pública
   ============================================================ */

:root {
    --ink: #201d19;
    --ink-soft: #6b6259;
    --paper: #faf7f1;
    --paper-2: #f2ede3;
    --line: #e2d9c9;
    --accent: #a4243b;         /* vermell senyera, apagat */
    --accent-dark: #7f1a2e;
    --gold: #b9822f;
    --shadow: 0 1px 2px rgba(32, 29, 25, .04), 0 8px 28px rgba(32, 29, 25, .07);

    --serif: 'Fraunces', 'Georgia', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1180px;
    --pad: clamp(20px, 5vw, 56px);
}

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

body { margin: 0; }

/* El sistema de disseny públic s'aplica només sota .pub-shell.
   L'àrea /admin fa servir el tema propi de MudBlazor i no s'ha de tocar.
   S'usa :where() perquè els selectors d'element (a, h1…) no guanyin en
   especificitat a les classes de component (.pub-btn-primary, .pub-nav-link…). */
.pub-shell {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
:where(.pub-shell) h1,
:where(.pub-shell) h2,
:where(.pub-shell) h3,
:where(.pub-shell) h4 { font-family: var(--serif); font-weight: 400; }
:where(.pub-shell) a { color: var(--accent); }

.pub-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* --- sticky footer shell --- */
.pub-shell { display: flex; flex-direction: column; min-height: 100vh; }
.pub-main { flex: 1 0 auto; }
.pub-footer { flex-shrink: 0; }

/* ============================== NAV ============================== */
.pub-nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.pub-nav-bar {
    max-width: 1560px; margin: 0 auto; padding: 14px var(--pad);
    display: flex; align-items: center; gap: 20px;
}
.pub-nav-logo {
    text-decoration: none; color: inherit; line-height: 1.1; flex-shrink: 0;
    display: flex; align-items: center; gap: 12px;
}
.pub-nav-logo-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pub-nav-logo-text { display: block; }
.pub-nav-logo b {
    font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -.2px;
    display: block; white-space: nowrap;
}
.pub-nav-logo span {
    font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 500; display: block; margin-top: 3px;
    white-space: nowrap;
}
.pub-nav-links {
    display: flex; align-items: center; flex-wrap: nowrap; gap: 0;
    margin-left: auto;
}
.pub-nav-link {
    font-size: 12px; letter-spacing: .8px; text-transform: uppercase; font-weight: 600;
    color: var(--ink-soft); text-decoration: none; white-space: nowrap;
    padding: 8px 11px; border-bottom: 2px solid transparent;
}
.pub-nav-link:hover { color: var(--ink); }
.pub-nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.pub-nav-cta { color: var(--accent); }
.pub-nav-cta:hover { color: var(--accent-dark); }

/* hamburguesa (amagada a l'escriptori) */
.pub-nav-burger {
    display: none; margin-left: auto;
    width: 40px; height: 40px; padding: 9px; box-sizing: border-box;
    background: none; border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
    flex-direction: column; justify-content: space-between;
}
.pub-nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .2s, opacity .2s; }
.pub-nav.is-open .pub-nav-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.pub-nav.is-open .pub-nav-burger span:nth-child(2) { opacity: 0; }
.pub-nav.is-open .pub-nav-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================== HERO ============================== */
.pub-hero {
    position: relative; overflow: hidden;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.pub-hero::after {
    content: ""; position: absolute; inset: 0;
    background: url('img/hero-mecanoscrit.jpg') center / cover no-repeat;
    opacity: .2; mix-blend-mode: multiply; pointer-events: none;
}
.pub-hero-inner {
    position: relative; z-index: 1;
    max-width: min(var(--wrap), 100%); margin: 0 auto;
    padding: clamp(16px, 2.4vw, 26px) var(--pad);
}
.pub-hero-label {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600;
    color: var(--accent); margin-bottom: 8px;
}
.pub-hero-title {
    font-size: clamp(27px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -.8px;
    margin: 0 0 8px;
}
.pub-hero-sub {
    font-size: clamp(14px, 1.5vw, 16px); color: var(--ink-soft); line-height: 1.5;
    margin: 0 0 16px;
}
.pub-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================== BOTONS ============================== */
.pub-btn-primary, .pub-btn-outline {
    font-family: var(--sans); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
    font-weight: 600; padding: 14px 26px; text-decoration: none; display: inline-block;
    border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.pub-btn-primary { background: var(--accent); color: #fff; }
.pub-btn-primary:hover { background: var(--accent-dark); }
.pub-btn-outline { color: var(--ink); border-color: var(--ink); }
.pub-btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ============================== STATS ============================== */
.pub-stats {
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
    display: grid; grid-template-columns: repeat(3, 1fr);
}
.pub-stat { padding: 12px 8px; text-align: center; border-right: 1px solid var(--line); }
.pub-stat:last-child { border-right: none; }
.pub-stat-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.pub-stat-label {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
    color: var(--ink-soft); margin-top: 8px;
}

/* ============================== SECCIONS ============================== */
.pub-section { max-width: var(--wrap); margin: 0 auto; padding: clamp(14px, 2.5vw, 24px) var(--pad); }
.pub-section + .pub-section { border-top: 1px solid var(--line); }
.pub-section-header {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 30px;
}
.pub-section-title {
    font-family: var(--serif); font-size: 26px; letter-spacing: -.3px;
    position: relative; padding-bottom: 10px;
}
.pub-section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--accent);
}
.pub-section-more {
    font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600;
    color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.pub-section-more:hover { color: var(--accent); }

/* ============================== PROJECTES ============================== */
.pub-project-list { display: grid; gap: 20px; }
.pub-project-item {
    display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: start;
    text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: 3px;
    padding: 20px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.pub-project-item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(32,29,25,.06), 0 16px 40px rgba(32,29,25,.11); }
.pub-project-thumb {
    width: 132px; height: 168px; object-fit: cover; background: var(--paper-2);
    border: 1px solid var(--line); display: block;
}
.pub-project-body { min-width: 0; }
.pub-project-kicker {
    font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
    color: var(--accent); margin-bottom: 8px;
}
.pub-project-title { font-family: var(--serif); font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.pub-project-item:hover .pub-project-title { color: var(--accent-dark); }
.pub-project-excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.pub-project-more {
    display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 600; color: var(--ink);
}

/* ============================== NOTÍCIES ============================== */
.pub-news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.pub-news-card {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.pub-news-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(32,29,25,.06), 0 16px 40px rgba(32,29,25,.11); }
.pub-news-card:hover .pub-news-title { color: var(--accent-dark); }
.pub-news-card > * { padding: 0 18px; }
.pub-news-img {
    padding: 0; height: 150px; background: var(--paper-2);
    display: flex; align-items: center; justify-content: center;
}
.pub-news-card.featured .pub-news-img { height: 220px; }
.pub-news-img span { font-size: 10.5px; letter-spacing: 1.5px; font-weight: 600; color: #bbb2a3; text-transform: uppercase; }
.pub-news-date { font-size: 10.5px; letter-spacing: 1.5px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; margin: 16px 0 8px; }
.pub-news-title { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.pub-news-card.featured .pub-news-title { font-size: 26px; }
.pub-news-excerpt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; padding-bottom: 20px; }

/* cos d'una notícia — HTML generat des del Markdown de l'editor */
.pub-newsbody {
    font-family: var(--serif); font-size: 1.05rem; line-height: 1.75;
    color: #35302a; max-width: 42rem;
}
.pub-newsbody h2, .pub-newsbody h3 { font-family: var(--serif); line-height: 1.25; margin: 1.6em 0 .4em; }
.pub-newsbody h2 { font-size: 1.4rem; }
.pub-newsbody h3 { font-size: 1.15rem; }
.pub-newsbody p { margin: 0 0 1em; }
.pub-newsbody ul, .pub-newsbody ol { margin: 0 0 1em; padding-left: 1.4em; }
.pub-newsbody li { margin: .2em 0; }
.pub-newsbody a { color: var(--accent); }
.pub-newsbody img { border-radius: 3px; margin: .6em 0; }

/* text ric curt dins d'una fitxa (agenda, blocs) — generat des de Markdown */
.pub-prose-inline { margin-top: 10px; font-size: 14px; line-height: 1.7; color: #3a352f; max-width: 62ch; }
.pub-prose-inline > *:first-child { margin-top: 0; }
.pub-prose-inline > *:last-child { margin-bottom: 0; }
.pub-prose-inline h2, .pub-prose-inline h3, .pub-prose-inline h4 {
    font-family: var(--serif); font-size: 14.5px; line-height: 1.3; color: var(--ink); margin: 16px 0 4px;
}
.pub-prose-inline p { margin: 0 0 8px; }
.pub-prose-inline ul, .pub-prose-inline ol { margin: 0 0 8px; padding-left: 18px; }
.pub-prose-inline li { margin: 2px 0; }
.pub-prose-inline strong { font-weight: 600; color: var(--ink); }
.pub-prose-inline a { color: var(--accent); }

/* ===================== EDITOR MARKDOWN (admin) ===================== */
.mde-label {
    display: block; font-size: 12px; font-weight: 500; color: rgba(0,0,0,.6);
    margin-bottom: 6px; letter-spacing: .2px;
}
.mde-field .EasyMDEContainer .editor-toolbar { border-radius: 4px 4px 0 0; border-color: rgba(0,0,0,.23); }
.mde-field .EasyMDEContainer .CodeMirror { border-radius: 0 0 4px 4px; border-color: rgba(0,0,0,.23); font-size: 14px; }
.mde-field .editor-preview, .mde-field .editor-preview-side { font-family: var(--serif); line-height: 1.7; }

/* ============================== AGENDA ============================== */
.pub-agenda-list { display: grid; gap: 12px; }
.pub-agenda-item {
    display: grid; grid-template-columns: 76px 1fr auto; align-items: start; gap: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 18px 20px;
}
.pub-agenda-date { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.pub-agenda-day { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); }
.pub-agenda-month { font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.pub-agenda-title { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
.pub-agenda-meta { font-size: 12px; color: var(--ink-soft); }
.pub-agenda-meta span { margin-right: 14px; }
.pub-agenda-tag {
    font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600;
    padding: 5px 10px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap;
}

/* ============================== FOOTER ============================== */
.pub-footer { background: var(--ink); color: var(--paper); }
.pub-footer-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 30px var(--pad);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pub-footer-name { font-family: var(--serif); font-size: 15px; max-width: 46ch; line-height: 1.4; }
.pub-footer-links { display: flex; gap: 16px; align-items: center; }
.pub-footer-links a { color: #d9cfc0; text-decoration: none; line-height: 1; }
.pub-footer-links a i { font-size: 19px; }
.pub-footer-links a:hover { color: var(--paper); }
.pub-footer-copy { font-size: 11px; letter-spacing: 1px; color: #b8ac9c; }

/* ============================== PÀGINA DE PROJECTE ============================== */
.pub-article { max-width: 860px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--pad) 80px; }
.pub-back {
    font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 600;
    color: var(--ink-soft); text-decoration: none; display: inline-block; margin-bottom: 28px;
}
.pub-back:hover { color: var(--accent); }
.pub-article-title { font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 18px; }
.pub-article-lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 36px; }

.pub-people { border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 6px 22px 18px; margin-bottom: 44px; }
.pub-people-role {
    font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    color: var(--accent); margin: 16px 0 6px;
}
.pub-people-name { font-size: 15px; line-height: 1.5; }
.pub-people-name b { font-family: var(--serif); font-weight: 500; }
.pub-people-name .muted { color: var(--ink-soft); }

.pub-block-title {
    font-family: var(--serif); font-size: 24px; margin: 48px 0 6px; padding-bottom: 10px;
    position: relative;
}
.pub-block-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); }
.pub-block-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; }

.pub-pres {
    display: block; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px;
    background: #fff; padding: 20px 22px; margin-bottom: 12px;
}
.pub-pres:hover { background: var(--paper-2); }
.pub-pres h3 { font-size: 19px; margin: 0 0 6px; }
.pub-pres p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.pub-group { margin-bottom: 30px; }
.pub-group-name { font-family: var(--serif); font-size: 17px; margin: 0 0 12px; color: var(--ink); }
.pub-doc {
    border: 1px solid var(--line); border-radius: 3px; background: #fff;
    padding: 16px 18px; margin-bottom: 10px;
}
.pub-doc-title { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.pub-doc-meta { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.pub-doc-meta .ref { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: .3px; }
.pub-doc-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }
.pub-doc-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tag {
    font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600;
    color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.pub-doc-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub-dl {
    font-size: 11px; letter-spacing: .8px; text-transform: uppercase; font-weight: 600;
    text-decoration: none; padding: 8px 14px; border-radius: 2px; display: inline-block;
}
.pub-dl-primary { background: var(--accent); color: #fff; }
.pub-dl-primary:hover { background: var(--accent-dark); }
.pub-dl-ghost { color: var(--ink-soft); border: 1px solid var(--line); }
.pub-dl-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ============================== PROSA / CMS ============================== */
.pub-prose { max-width: 720px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--pad) 80px; }
.pub-prose h2 { font-size: 22px; margin: 40px 0 12px; }
.pub-prose h2:first-of-type { margin-top: 8px; }
.pub-prose p { font-size: 16px; line-height: 1.75; color: #3a352f; margin: 0 0 18px; }
.pub-prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* ============================== FORMULARIS ============================== */
.pub-form { display: grid; gap: 18px; }
.pub-field { display: grid; gap: 6px; }
.pub-label {
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
}
.pub-input, .pub-textarea {
    font-family: var(--sans); font-size: 15px; color: var(--ink);
    padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 3px;
    width: 100%;
}
.pub-input:focus, .pub-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164,36,59,.12); }
.pub-textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.pub-form .pub-btn-primary { border: none; cursor: pointer; }

.pub-alert {
    font-size: 13.5px; padding: 12px 14px; border-radius: 3px;
    background: #fbe9ec; border: 1px solid #edc3cb; color: var(--accent-dark);
}

/* ============================== TARGETA D'AUTENTICACIÓ ============================== */
.pub-auth { max-width: 420px; margin: 0 auto; padding: clamp(40px, 8vw, 72px) var(--pad) 80px; }
.pub-auth-card { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 30px 28px; }
.pub-auth-title { font-size: 24px; margin: 0 0 6px; }
.pub-auth-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }

/* ============================== ARXIU (cerca + graella) ============================== */
.pub-search { display: flex; gap: 10px; margin: 6px 0 30px; max-width: 520px; }
.pub-search input { flex: 1; }
.pub-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pub-doc-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 3px; padding: 18px; box-shadow: var(--shadow);
}
.pub-doc-card h3 { font-size: 17px; line-height: 1.25; margin: 0 0 6px; }
.pub-doc-card .meta { font-size: 11px; color: var(--ink-soft); font-family: var(--sans); font-weight: 600; letter-spacing: .3px; }
.pub-doc-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 8px 0 0; }
.pub-doc-card .foot { margin-top: auto; padding-top: 14px; }

/* ============================== EMPTY ============================== */
.pub-empty { text-align: center; padding: 48px; color: var(--ink-soft); font-size: 14px; }

h1:focus, h2:focus, h3:focus { outline: none; }

/* ============================== RESPONSIVE ============================== */

/* --- menú hamburguesa: sota 1080px (el logo d'una línia necessita amplada) --- */
@media (max-width: 1080px) {
    .pub-nav-burger { display: flex; }
    .pub-nav-links {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: 0; overflow: hidden; visibility: hidden;
        transition: max-height .22s ease, visibility .22s;
    }
    .pub-nav.is-open .pub-nav-links {
        max-height: 80vh; overflow-y: auto; visibility: visible;
    }
    .pub-nav-link {
        padding: 15px var(--pad); border-bottom: 1px solid var(--line);
        border-left: 3px solid transparent;
    }
    .pub-nav-link.active { border-bottom-color: var(--line); border-left-color: var(--accent); }
    .pub-nav-cta { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
    .pub-section-header { flex-wrap: wrap; }
    .pub-news-grid { grid-template-columns: 1fr; }
    .pub-project-item { grid-template-columns: 108px 1fr; gap: 16px; padding: 16px; }
    .pub-project-thumb { width: 108px; height: 138px; }
    .pub-project-title { font-size: 20px; }
    .pub-agenda-item { grid-template-columns: 60px 1fr; gap: 16px; }
    .pub-agenda-tag { display: none; }
}

@media (max-width: 620px) {
    .pub-nav-logo b { font-size: 16px; }
    .pub-nav-logo span { display: none; }          /* el subtítol no cap a mòbil */
    .pub-nav-logo-img { width: 34px; height: 34px; }
}

@media (max-width: 560px) {

    .pub-stat { padding: 12px 4px; }
    .pub-stat-num { font-size: 34px; }
    .pub-stat-label { font-size: 9.5px; letter-spacing: 1.2px; }

    .pub-project-item { grid-template-columns: 1fr; gap: 14px; }
    .pub-project-thumb { width: 100%; height: 190px; }

    .pub-article { padding-bottom: 56px; }
    .pub-doc-actions .pub-dl { width: 100%; text-align: center; }
    .working-doc { font-size: 1rem; line-height: 1.72; }
}

/* Contingut ample dins d'un text (taules, blocs de codi) que no desbordi el mòbil */
.working-doc table, .working-doc pre { display: block; max-width: 100%; overflow-x: auto; }

/* ============================================================
   Document de treball renderitzat (transcripcions, estudis)
   ============================================================ */
.working-doc { font-size: 1.06rem; line-height: 1.78; max-width: 42rem; font-family: var(--serif); }
.working-doc h2 {
    font-size: 1.45rem; margin: 2.6rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.working-doc h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.working-doc h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .5rem; }
.working-doc p { margin: 0 0 1.15rem; }
.working-doc blockquote {
    margin: 0 0 1.9rem; padding: .85rem 1.3rem; border-left: 3px solid var(--accent);
    color: var(--ink-soft); font-size: .95rem; font-family: var(--sans);
}
.working-doc a { color: var(--accent); }
