:root { --brand-navy:#214d56; --brand-slate:#233c42; --brand-cyan:#3f666e; --brand-mist:#f4f6f4; --brand-orange:#b24628; --green-950:#203f47; --green-800:#315965; --green-700:#315965; --paper:#fffefa; --surface:#f1f4f2; --surface-raised:#fffefa; --ink:#263b40; --muted:#5d6d6f; --line:#d4ddda; --line-strong:#a3b5b1; --action-bg:#214d56; --action-bg-hover:#163a42; --amber:#a6452c; --focus:#a6452c; }
html[data-theme='dark'] { --paper:#17272c; --surface:#20343a; --surface-raised:#1c3036; --ink:#eff5f3; --muted:#b6c8c9; --line:#40585c; --line-strong:#648085; --green-950:#e7f4f3; --green-800:#bbd7d7; --green-700:#bbd7d7; --action-bg:#c4e1dc; --action-bg-hover:#d9efeb; --action-fg:#163a42; --amber:#f2a485; --focus:#f2a485; }
@media(prefers-color-scheme:dark) { html:not([data-theme='light']) { --paper:#17272c; --surface:#20343a; --surface-raised:#1c3036; --ink:#eff5f3; --muted:#b6c8c9; --line:#40585c; --line-strong:#648085; --green-950:#e7f4f3; --green-800:#bbd7d7; --green-700:#bbd7d7; --action-bg:#c4e1dc; --action-bg-hover:#d9efeb; --action-fg:#163a42; --amber:#f2a485; --focus:#f2a485; } }
.site-header { position:relative; }
.header-inner { min-height:82px; gap:1.1rem; }
.brand { font-family:'DM Sans',sans-serif; font-size:1.6rem; font-weight:700; letter-spacing:-.07em; }
.brand::before { width:28px; height:28px; }
.main-nav { gap:.25rem; }
.main-nav a { font-size:.85rem; padding:.55rem .6rem; }
.main-nav a[aria-current='page'] { color:var(--green-950); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:8px; }
.language-control select { appearance:auto; min-height:44px; background:var(--paper); color:var(--ink); border:1px solid var(--line); padding:7px 5px; border-radius:3px; font-size:.72rem; max-width:128px; }
.button { border-radius:3px; box-shadow:none; }
.button:hover { transform:none; }
.archive-cover { padding-top:27px; padding-bottom:62px; }
.archive-masthead { border-top:3px solid var(--green-950); display:flex; justify-content:space-between; gap:15px; padding-top:13px; margin-bottom:56px; }
.archive-masthead p,.archive-masthead span { margin:0; font-size:.67rem; font-weight:600; letter-spacing:.13em; color:var(--muted); }
.cover-layout { display:grid; grid-template-columns:1.65fr 1fr; gap:8%; align-items:center; }
.cover-title h1 { font-family:'DM Sans',sans-serif; font-size:clamp(2.8rem,4.8vw,4.4rem); font-weight:500; letter-spacing:-.065em; line-height:1.06; margin-bottom:24px; }
.cover-title > p { font-size:1.03rem; line-height:1.85; max-width:520px; margin-bottom:27px; }
.cover-small { display:block; font-size:.79rem; color:var(--muted); margin-top:16px; }
.cover-index { border-left:1px solid var(--line); padding-left:28px; }
.cover-index h2 { font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.cover-index > a { display:flex; gap:14px; padding:20px 0; border-bottom:1px solid var(--line); text-decoration:none; align-items:center; }
.cover-index > a:last-child { border-bottom:0; }
.cover-index > a > span { font-size:.7rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.cover-index div { flex:1; }
.cover-index strong { display:block; font-size:.97rem; font-weight:600; }
.cover-index small { display:block; font-size:.76rem; margin-top:3px; color:var(--muted); }
.cover-index b { font-size:1rem; font-weight:400; }
.cover-index > a:hover strong { text-decoration:underline; text-underline-offset:4px; }
.archive-label { font-size:.66rem; letter-spacing:.12em; font-weight:700; color:var(--green-800); margin-bottom:20px; }
.resource-desk { background:var(--surface); border-block:1px solid var(--line); padding:47px 0; }
.desk-layout { display:grid; grid-template-columns:1fr 1.7fr; gap:8%; }
.desk-heading h2 { font-size:2rem; font-weight:500; letter-spacing:-.04em; line-height:1.22; margin-bottom:17px; }
.desk-heading > p:not(.archive-label) { font-size:.89rem; line-height:1.8; }
.underlined-link { display:inline-flex; align-items:center; min-height:44px; font-size:.87rem; color:var(--green-950); text-underline-offset:5px; font-weight:600; }
.desk-resources > a { display:flex; gap:18px; border-top:1px solid var(--line-strong); padding:22px 0; align-items:center; text-decoration:none; }
.desk-resources > a:last-child { border-bottom:1px solid var(--line-strong); }
.file-code { color:var(--muted); font-family:ui-monospace,monospace; font-size:.62rem; min-width:62px; }
.desk-resources a > div { flex:1; }
.desk-resources h3 { font-size:1rem; font-weight:600; margin:0 0 5px; }
.desk-resources p { font-size:.77rem; margin:0; }
.desk-resources a > span:last-child { font-size:.73rem; white-space:nowrap; }
.desk-resources a:hover h3 { text-decoration:underline; text-underline-offset:3px; }
.sheet-story { display:grid; grid-template-columns:1.15fr 1fr; gap:8%; padding-top:65px; padding-bottom:65px; align-items:center; }
.document-sample { padding:26px; border:1px solid var(--line-strong); box-shadow:8px 8px 0 var(--surface); background:var(--surface-raised); }
.sample-bar { display:flex; justify-content:space-between; gap:10px; font-size:.5rem; letter-spacing:.06em; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:18px; color:var(--muted); }
.document-sample h2 { font-size:1.35rem; margin-bottom:16px; }
.sample-meta { font-size:.65rem; margin-bottom:15px; }
.document-sample table { font-size:.62rem; width:100%; table-layout:fixed; border-collapse:collapse; }
.document-sample th,.document-sample td { border:1px solid var(--line); padding:8px 4px; overflow:hidden; }
.document-sample th { background:var(--surface); color:var(--ink); }
.document-sample p { margin:18px 0; font-size:.65rem; }
.sample-footer { display:block; border-top:1px solid var(--line); padding-top:11px; font-size:.59rem; color:var(--muted); }
.sheet-story-copy h2 { font-size:2rem; font-weight:500; line-height:1.25; margin-bottom:19px; }
.sheet-story-copy > p:not(.archive-label) { font-size:.9rem; line-height:1.85; }
.workspace-band { border-block:1px solid var(--line); padding:34px 0; }
.workspace-band .container { display:flex; gap:7%; align-items:center; }
.workspace-band .container > div { flex:1.6; }
.workspace-band h2 { font-size:1.6rem; font-weight:500; margin-bottom:13px; }
.workspace-band .archive-label { margin-bottom:12px; }
.workspace-band p:not(.archive-label) { font-size:.85rem; margin:0; max-width:660px; }
.workspace-band nav { flex:1; }
.workspace-band nav a { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:15px 0; text-decoration:none; font-size:.95rem; }
.author-note { display:flex; flex-wrap:wrap; align-items:center; gap:0 6%; padding-block:46px; }
.author-note .archive-label { flex:1 1 100%; margin-bottom:12px; }
.author-note h2 { font-family:'Lora',serif; font-size:1.5rem; font-weight:500; width:36%; line-height:1.4; }
.author-note > p:not(.archive-label) { flex:1; font-size:.85rem; max-width:570px; }
.author-note > a { margin-left:42%; }
.library-heading { background:var(--paper); padding:35px 0 25px; }
.library-heading h1 { font-family:'DM Sans',sans-serif; font-weight:500; font-size:3rem; letter-spacing:-.055em; }
.library-heading .small-label { color:var(--green-800); font-size:.67rem; }
.catalog-layout { display:grid; grid-template-columns:180px minmax(0,1fr); gap:34px; }
.topic-nav { border-right:1px solid var(--line); padding-right:18px; }
.topic-nav h2 { text-transform:uppercase; font-size:.67rem; letter-spacing:.1em; color:var(--muted); margin:0 0 13px; }
.topic-nav button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; text-align:left; border:0; background:transparent; color:var(--ink); padding:9px 5px; font-size:.82rem; border-bottom:1px solid var(--line); }
.topic-nav button[aria-pressed='true'] { color:var(--green-950); font-weight:700; border-left:3px solid var(--green-950); padding-left:9px; }
.topic-nav button span { color:var(--muted); font-size:.68rem; }
.library-controls { margin-bottom:10px; }
.library-controls .field { width:240px; }
#template-grid { display:block; }
.template-card { position:relative; display:grid; grid-template-columns:56px minmax(0,1fr) auto; column-gap:19px; padding:22px 0; border:0; border-top:1px solid var(--line-strong); border-radius:0; background:transparent; }
.template-card .catalog-number { grid-column:1; grid-row:1/5; font-family:ui-monospace,monospace; font-size:.65rem; color:var(--muted); padding-top:5px; }
.template-card .badge { grid-column:2; grid-row:1; display:block; background:transparent; padding:0; border:0; font-size:.62rem; letter-spacing:.07em; text-transform:uppercase; color:var(--green-800); margin-bottom:6px; }
.template-card h2 { grid-column:2; grid-row:2; font-size:1.13rem; font-weight:600; margin:0 0 7px; }
.template-card p { grid-column:2; grid-row:3; font-size:.86rem; margin:0 0 8px; line-height:1.7; max-width:580px; }
.template-card small { grid-column:2; grid-row:4; font-size:.73rem; margin:0; }
.template-card .button-row { grid-column:3; grid-row:2/4; display:flex; align-items:center; justify-content:flex-end; max-width:190px; flex-wrap:wrap; gap:4px; }
.template-card .button-row .button { padding:7px 11px; min-height:44px; border-radius:3px; font-size:.72rem; }
.template-card .button-row .button:first-child { width:100%; }
.template-card .template-preview { grid-column:3; grid-row:4; margin:0; min-height:44px; font-size:.76rem; text-align:right; padding:4px; }
.catalog-pagination { display:flex; justify-content:space-between; align-items:center; gap:15px; border-top:1px solid var(--line-strong); padding-top:24px; margin-top:12px; }
.catalog-pagination span { font-size:.8rem; color:var(--muted); }
.preview-instructions { background:var(--surface); padding:15px; font-size:.85rem; border-left:3px solid var(--green-800); }
.about-layout { display:grid; grid-template-columns:210px minmax(0,780px); gap:7%; padding-block:50px; }
.about-index { font-size:.8rem; }
.about-index a { display:block; min-height:44px; border-bottom:1px solid var(--line); padding:10px 0; text-decoration:none; }
.about-prose > h1 { font-family:'Lora',serif; font-size:3rem; font-weight:500; line-height:1.18; margin-bottom:25px; }
.about-prose h2 { font-size:1.45rem; font-weight:500; margin:38px 0 17px; }
.about-prose p { font-size:1rem; line-height:1.9; }
.author-signature { font-family:'Lora',serif; font-size:1.2rem !important; color:var(--green-950); }
.name-story-note { border-block:1px solid var(--line); padding-block:12px; }
.name-story-note small { color:var(--muted); font-size:.8rem; }
.app-page .side-nav { top:0; height:100vh; }
@media(max-width:1150px) { .reading-button span { display:none; } .header-inner { gap:.7rem; } .main-nav a { padding-inline:.4rem; } }
@media(max-width:850px) { .cover-layout { grid-template-columns:1.3fr 1fr; gap:4%; } .cover-index { padding-left:20px; } .desk-layout { gap:4%; } .template-card { grid-template-columns:35px minmax(0,1fr); } .template-card .button-row { grid-column:2; grid-row:5; max-width:none; justify-content:flex-start; margin-top:14px; } .template-card .button-row .button:first-child { width:auto; } .template-card .template-preview { grid-column:2; grid-row:6; text-align:left; margin-top:3px; } .catalog-layout { grid-template-columns:155px minmax(0,1fr);gap:20px; } }
@media(max-width:700px) { .header-inner { min-height:74px; } .brand { font-size:1.4rem; } .language-control select { max-width:67px; font-size:.64rem; } .header-actions { gap:3px; } .reading-button { min-width:40px; } .icon-button { width:40px; min-width:40px; } .archive-cover { padding-top:16px;padding-bottom:35px; } .archive-masthead { margin-bottom:31px; } .archive-masthead p,.archive-masthead span { font-size:.49rem; letter-spacing:.05em; } .cover-layout,.desk-layout,.sheet-story { display:block; } .cover-title h1 { font-size:clamp(2.5rem,10vw,3.5rem); } .cover-title > p { font-size:.95rem; } .cover-index { border-left:0; border-top:1px solid var(--line); padding-left:0;padding-top:25px;margin-top:31px; } .cover-index > a { padding:16px 0; } .resource-desk { padding:32px 0; } .desk-resources { margin-top:25px; } .desk-resources > a { gap:11px; } .file-code { min-width:48px; font-size:.53rem; } .desk-resources a > span:last-child { font-size:.63rem; } .desk-resources h3 { font-size:.93rem; } .sheet-story { padding-block:37px; } .document-sample { padding:17px; } .sheet-story-copy { margin-top:36px; } .sheet-story-copy h2 { font-size:1.7rem; } .workspace-band .container { display:block; } .workspace-band nav { margin-top:15px; } .author-note { display:block; padding-block:33px; } .author-note h2 { width:100%; } .author-note > a { margin-left:0; } .library-heading h1 { font-size:2.5rem; } .catalog-layout { display:block; } .topic-nav { border:0;padding:0;margin-bottom:23px; } .topic-nav > div { display:flex; flex-wrap:wrap; gap:6px; } .topic-nav button { border:1px solid var(--line);border-radius:3px;padding:8px 10px;width:auto;font-size:.75rem;gap:8px; } .topic-nav button[aria-pressed='true'] { border:1px solid var(--green-950);padding:8px 10px; background:var(--surface); } .library-controls .field { width:100%; } .template-card { grid-template-columns:29px minmax(0,1fr);gap:0 10px; } .template-card h2 { font-size:1.05rem; } .catalog-pagination { flex-wrap:wrap; } .catalog-pagination .button { font-size:.8rem; padding:9px; } .about-layout { display:block; padding-block:30px; } .about-index { display:flex;gap:16px;flex-wrap:wrap;margin-bottom:26px; } .about-prose > h1 { font-size:2.2rem; } }

:root { --brand-navy:#173f3c; --brand-slate:#263c39; --brand-cyan:#496653; --green-950:#173f3c; --green-800:#395949; --green-700:#395949; --action-bg:#173f3c; --action-bg-hover:#102f2c; --ink:#263c39; --surface:#f0f3ed; }
html[data-theme='dark'] { --green-950:#e7f4e9; --green-800:#c0d8bf; --green-700:#c0d8bf; --action-bg:#c1d8b2; --action-bg-hover:#d6e8cb; --ink:#eff5ee; --surface:#20342c; }
@media(prefers-color-scheme:dark) { html:not([data-theme='light']) { --green-950:#e7f4e9; --green-800:#c0d8bf; --green-700:#c0d8bf; --action-bg:#c1d8b2; --action-bg-hover:#d6e8cb; --ink:#eff5ee; --surface:#20342c; } }

/* Segmented language control: Slible's always-visible ES / EN capsule. */
.lang-toggle { display:flex; align-items:center; flex-shrink:0; padding:3px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
.lang-toggle a { appearance:none; display:inline-flex; justify-content:center; align-items:center; border:0; border-radius:999px; padding:6px 8px; min-width:30px; min-height:25px; background:transparent; color:var(--muted); font-family:'DM Sans',sans-serif; font-size:.625rem; font-weight:600; letter-spacing:.04em; line-height:1.3; cursor:pointer; transition:background-color .15s,color .15s; }
.lang-toggle a.is-active { background:var(--line); color:var(--ink); }
.lang-toggle a:hover { color:var(--ink); }
.lang-toggle a:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
html[data-theme='dark'] .lang-toggle { background:#181c23; border-color:rgba(214,226,244,.11); }
html[data-theme='dark'] .lang-toggle a { color:#aeb5c2; }
html[data-theme='dark'] .lang-toggle a.is-active { background:#303641; color:#fff; }
@media(prefers-color-scheme:dark) { html:not([data-theme='light']) .lang-toggle { background:#181c23; border-color:rgba(214,226,244,.11); } html:not([data-theme='light']) .lang-toggle a { color:#aeb5c2; } html:not([data-theme='light']) .lang-toggle a.is-active { background:#303641; color:#fff; } }
.site-footer .footer-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.site-footer .footer-bottom .creator-credit { display:flex; align-items:center; gap:6px; margin:0; line-height:1.5; font-size:.75rem; font-weight:600; }
.site-footer .creator-credit svg { flex-shrink:0; color:#b63858; }
.site-footer .creator-credit a { color:inherit; font-weight:700; text-decoration:none; }
.site-footer .creator-credit a:hover { text-decoration:underline; text-underline-offset:3px; }
.site-footer .creator-credit a:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.site-footer .footer-disclaimer { margin-block:18px 0; font-size:.72rem; color:var(--muted); }
html[data-theme='dark'] .site-footer .creator-credit svg { color:#ff8ca6; }
@media(prefers-color-scheme:dark) { html:not([data-theme='light']) .site-footer .creator-credit svg { color:#ff8ca6; } }
.lock-backup-note { font-size:.9rem; padding:12px; border-left:3px solid var(--green-800); background:var(--surface); }
.lock-intro { line-height:1.7; }
@media(max-width:480px) { .header-inner { flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; padding-block:12px; } .header-actions { margin-left:auto; flex-wrap:wrap; justify-content:flex-end; gap:5px; } .mobile-nav summary { min-height:44px; } }
@media(max-width:350px) { .header-inner > .brand { width:100%; } .header-actions { width:100%; justify-content:flex-start; margin-left:0; } .site-footer .footer-bottom { justify-content:center; text-align:center; } }

/* These are real links: locale switching works before JavaScript is ready. */
.lang-toggle a { text-decoration:none; }
.site-footer .footer-bottom .creator-credit { display:inline-flex; flex-direction:row; flex-wrap:nowrap; white-space:nowrap; flex:0 0 auto; width:max-content; max-width:none; }
.site-footer .footer-bottom .creator-credit > * { flex-shrink:0; white-space:nowrap; }
@media(max-width:350px) { .site-footer .footer-bottom .creator-credit { font-size:clamp(10px,3.5vw,12px); gap:5px; } }
