:root{
  --ink:#16202D;--paper:#FCFBF8;--accent:#14294D;--muted:#6A7686;--rule:#E2DED4;
  --gold:#B08E4F;--mist:#F3F1EA;--deep:#14294D;--onDark:#d8e3ef;--accentSoft:#A9BBD4;
  --w:72rem;--pad:clamp(1.25rem,4vw,3.5rem);--radius:0
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 Spectral, Georgia, 'Times New Roman', serif;-webkit-font-smoothing:antialiased}
.wrap{max-width:var(--w);margin:0 auto;padding:0 var(--pad)}
h1,h2,h3,h4{font-family:Spectral, Georgia, 'Times New Roman', serif;font-weight:500;margin:0;letter-spacing:-.01em;line-height:1.15}
h1{font-size:clamp(2rem,4.6vw,3.1rem)}
h2{font-size:clamp(1.5rem,2.9vw,2.05rem)}
h3{font-size:1.31rem;line-height:1.3}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a.strong{font-weight:600}
img{max-width:100%;height:auto}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;background:var(--paper);padding:.6rem 1rem;z-index:10}

/* --- utility bar + masthead ------------------------------------------- */
.util{background:var(--deep);color:var(--onDark);font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.8rem}
.util .wrap{display:flex;justify-content:flex-end;gap:1.5rem;align-items:center;padding-top:.5rem;padding-bottom:.5rem;flex-wrap:wrap}
.util a{color:var(--accentSoft)}
.masthead{border-bottom:1px solid var(--rule)}
/* Documentary register: a double rule under the masthead, the way a letterhead
   or a minute book separates the heading from the record. Opt-in per tenant via
   theme.rules: 'double'. */
body[data-rules=double] .masthead{border-bottom:3px double var(--accent)}
body[data-rules=double] .card{border:0;border-top:2px solid var(--rule);border-radius:0;padding-left:0;padding-right:0;background:transparent}
body[data-rules=double] .card-accent{border-top:2px solid var(--accent)}
body[data-rules=double] .card-gold{border-top:2px solid var(--gold)}
body[data-rules=double] .dir-filters{border:0;border-top:2px solid var(--accent);border-radius:0;padding-left:0;padding-right:0}
.masthead .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding-top:1.15rem;padding-bottom:1.15rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.85rem;text-decoration:none}
.brand svg{flex:none}
/* The logo's size lives HERE, not in a style attribute on the <img>.
   The public sites run style-src 'self' with no 'unsafe-inline', so an inline
   style attribute is dropped by the browser and the width silently does
   nothing — the masthead then renders the source PNG at its natural size.
   The stylesheet is generated per tenant, so a per-tenant width belongs in it. */
.brand-img{display:block;height:auto;max-width:100%;width:280px}
@media(max-width:560px){.brand-img{width:200px}}
.site .brand-img-rev{width:230px;margin-bottom:.4rem}
.brand-word{font-family:Spectral, Georgia, 'Times New Roman', serif;font-size:1.6rem;font-weight:600;color:var(--accent);letter-spacing:.06em;line-height:1}
.brand-tag{display:block;font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.63rem;color:var(--muted);letter-spacing:.09em;text-transform:uppercase;margin-top:.18rem}
@media(max-width:560px){.brand-tag{display:none}nav ul{gap:.9rem 1.1rem;font-size:.92rem}}
nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:1.5rem;margin:0;padding:0;font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.95rem;font-weight:500;align-items:center}
nav a{color:var(--ink)}
nav a[aria-current=page]{text-decoration:underline;text-underline-offset:5px}

/* --- bands ------------------------------------------------------------- */
.band{padding:clamp(2.5rem,5vw,4rem) 0}
.band-mist{background:var(--mist)}
.band-navy{background:var(--accent);color:#fff}
.band-navy h1,.band-navy h2,.band-navy h3{color:#fff}
.band-navy .lede{color:var(--onDark)}
.band-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;flex-wrap:wrap;margin-bottom:1.75rem}
.eyebrow{font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accentSoft);margin-bottom:1rem}
.lede{font-size:1.15rem;color:var(--muted);max-width:38em}
.band-navy .eyebrow{color:var(--accentSoft)}
h1+.lede,h2+.lede{margin-top:.85rem}
.hero h1{margin-bottom:0}

/* --- hero -------------------------------------------------------------- */
.hero .wrap{display:grid;gap:clamp(1.75rem,4vw,2.75rem)}
.hero-split .wrap{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center}
@media(max-width:820px){.hero-split .wrap{grid-template-columns:1fr}}
.hero h1{max-width:16em}
.stats{display:flex;flex-direction:column;gap:1px;background:rgba(255,255,255,.22);border-radius:8px;overflow:hidden}
.stat{background:var(--accent);padding:1.15rem 1.4rem;display:flex;align-items:baseline;gap:1rem}
.stat-n{font-family:Spectral, Georgia, 'Times New Roman', serif;font-size:2.35rem;line-height:1;color:#fff;min-width:2.6em}
.stat-l{font-size:.92rem;color:var(--onDark);line-height:1.4}

/* --- buttons ----------------------------------------------------------- */
.actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin:1.5rem 0 0}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:.85rem 1.6rem;border-radius:5px;font-weight:600;font-size:1rem;border:1px solid var(--accent)}
.btn:hover{filter:brightness(1.12);text-decoration:none}
.btn-ghost{background:transparent;color:var(--accent)}
.btn-invert{background:#fff;color:var(--accent);border-color:#fff}
.btn-ghost-invert{background:transparent;color:#fff;border-color:var(--accentSoft)}
/* Variants the inline editor can set. Both are ENUMS on the record, not
   free-form CSS — a client can pick a shape the design already has and
   cannot invent one. */
.btn-wide{display:block;width:100%;text-align:center}
/* A button drawn as a plain link. Still a button in the record; the design
   decides it should not look like one here. */
.btn-bare{background:transparent;border-color:transparent;color:var(--accent);padding-left:0;padding-right:0}
.btn-bare:hover{filter:none;text-decoration:underline;text-underline-offset:4px}
.btn-bare-invert{color:#fff}

/* ---------------------------------------------------------------------------
   LAYOUT VARIANTS the inline editor can set.
   Every one of these is driven by an ENUM on the record. There is no rule here
   that a client can reach with a number or a colour — they choose between
   arrangements the design already has. Brand-owned properties (band colour,
   accent, card and button treatment, type scale) are deliberately NOT in this
   set; see the BRAND list in platform/records/fields.ts.
   ------------------------------------------------------------------------ */

/* Vertical room around a section. */
.sp-tight{padding-top:clamp(1.25rem,2.5vw,2rem);padding-bottom:clamp(1.25rem,2.5vw,2rem)}
.sp-roomy{padding-top:clamp(4rem,8vw,6.5rem);padding-bottom:clamp(4rem,8vw,6.5rem)}

/* Alignment of a section's own text. Left, centre or right — the three a
   client actually asks for, and the whole of what "move it over" means here. */
.al-center{text-align:center}
.al-center .actions,.al-center .band-head{justify-content:center}
.al-center .lede{margin-left:auto;margin-right:auto}
.al-right{text-align:right}
.al-right .actions,.al-right .band-head{justify-content:flex-end}
.al-right .lede{margin-left:auto}
.actions-center{justify-content:center}
.actions-right{justify-content:flex-end}

/* How wide the text measure runs before it wraps. */
.measure-narrow{max-width:34rem}
.measure-normal{max-width:52rem}
.measure-wide{max-width:none}
.al-center .measure-narrow,.al-center .measure-normal{margin-left:auto;margin-right:auto}

/* Hero presence and headline placement. */
.hero-center .hero-body{text-align:center;margin-left:auto;margin-right:auto}
.hero-center .actions{justify-content:center}
.hero-right .hero-body{text-align:right;margin-left:auto}
.hero-right .actions{justify-content:flex-end}
.hero-compact{padding-top:clamp(1.75rem,3.5vw,2.75rem);padding-bottom:clamp(1.75rem,3.5vw,2.75rem)}
.hero-tall{padding-top:clamp(4.5rem,9vw,7.5rem);padding-bottom:clamp(4.5rem,9vw,7.5rem)}
.h-large h1{font-size:clamp(2.6rem,6vw,4.25rem)}
/* Stats beneath the headline rather than beside it: one row, not a column. */
.stats-below{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:1rem}
@media(max-width:820px){.stats-below{grid-template-columns:1fr}}

/* A single-column grid, for a cards or steps row a client has narrowed. */
.cols-1{grid-template-columns:minmax(0,1fr)}

/* Split: which side leads, and how the row divides. */
.split-even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.split-media{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.split-reverse{direction:rtl}
.split-reverse>*{direction:ltr}
@media(max-width:820px){.split-even,.split-media{grid-template-columns:1fr}.split-reverse{direction:ltr}}

/* Where a figure sits inside its column. */
.fig-center{margin-left:auto;margin-right:auto}
.fig-right{margin-left:auto}

/* Events as a stacked list rather than a grid of cards. */
.ev-list .card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem}
@media(max-width:700px){.ev-list .card{grid-template-columns:1fr}}

/* A call to action with the button beneath the text instead of beside it. */
.cta-stacked .wrap{display:block}
.cta-stacked .btn{margin-top:1.25rem}
.cta-stacked.al-center .btn{margin-left:auto;margin-right:auto;display:table}

/* --- grids and cards --------------------------------------------------- */
.grid{display:grid;gap:1.35rem}
.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.cols-3,.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}}
.card{background:var(--paper);border:1px solid var(--rule);border-radius:var(--radius);padding:1.6rem 1.75rem;display:flex;flex-direction:column;gap:.75rem}
.card h3{color:var(--accent)}
.card h3 a{color:inherit}
.card-accent{border-top:3px solid var(--accent)}
.card-gold{border-top:3px solid var(--gold)}
.card p{margin:0}
.linklist{list-style:none;margin:.35rem 0 0;padding:0;display:flex;flex-direction:column;gap:.55rem;font-size:1rem}
.tagrow{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:0}
.pill{background:var(--accent);color:#fff;font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .6rem;border-radius:var(--radius);font-weight:600}
.meta{color:var(--muted);font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-size:.92rem;margin:0}

/* --- split / panel ------------------------------------------------------ */
.split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(1.75rem,4vw,3rem);align-items:start}
@media(max-width:820px){.split{grid-template-columns:1fr}}
.panel{background:var(--accent);color:#fff;border-radius:10px;padding:clamp(1.75rem,4vw,2.9rem)}
.panel h2,.panel h3{color:#fff}
.panel p{color:var(--onDark)}
.panel a{color:#fff;text-decoration:underline;text-underline-offset:4px}
.badge{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--gold);color:var(--gold);border-radius:999px;padding:.35rem .85rem;font-size:.8rem;font-weight:600;margin:0 0 1rem}
.badge .i{width:14px;height:14px}
/* Optional figure in a split. The width is an inline style because it is a
   per-record CLAMPED number (160-960) validated by the schema, not a value
   a client typed into a stylesheet. It never exceeds its column. */
.split-fig{max-width:100%;height:auto;border-radius:8px;margin:1.35rem 0 0;display:block}
/* The width comes from the img's width ATTRIBUTE, not an inline style:
   style-src is 'self' with no 'unsafe-inline', so a style attribute would
   simply be dropped and the number would silently do nothing. */
.checks{list-style:none;margin:1.4rem 0 0;padding:0;display:flex;flex-direction:column;gap:.75rem}
.checks li{display:flex;align-items:flex-start;gap:.7rem}
.checks .i{width:18px;height:18px;flex:none;color:var(--gold);margin-top:.2rem}

/* --- steps and questions ------------------------------------------------ */
.steps .step{display:flex;flex-direction:column;gap:.6rem}
.step-n{font-family:Spectral, Georgia, 'Times New Roman', serif;font-size:2rem;color:var(--accentSoft);line-height:1}
.qgrid{gap:1rem}
.q{border-left:2px solid var(--accentSoft);padding:.2rem 0 .2rem 1rem}
.q-area{display:block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:.25rem}
.q p{font-size:1rem;margin:0}

/* --- cta ---------------------------------------------------------------- */
.cta .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.75rem;flex-wrap:wrap}
.cta h2{margin-bottom:.35rem}

/* --- prose -------------------------------------------------------------- */
.prose{max-width:44em}
.prose h2{margin:2.2rem 0 .7rem}
.prose h2:first-child{margin-top:0}
.prose h3{margin:1.7rem 0 .5rem}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li{margin:0 0 .45rem}
.prose blockquote{margin:1.6rem 0;padding:1rem 1.3rem;background:var(--mist);border-left:3px solid var(--gold);border-radius:0 var(--radius) var(--radius) 0}
.prose blockquote p{margin:0}
.prose table{width:100%;border-collapse:collapse;margin:1.4rem 0;font-size:.97rem}
.prose th,.prose td{text-align:left;padding:.6rem .75rem;border-bottom:1px solid var(--rule);vertical-align:top}
.prose th{font-family:'Public Sans', 'Segoe UI', system-ui, sans-serif;font-weight:600;font-size:.9rem;letter-spacing:.04em}
.tablewrap{overflow-x:auto}

/* --- directory ----------------------------------------------------------- */
.dir{display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(1.5rem,3vw,2.5rem);align-items:start}
@media(max-width:820px){.dir{grid-template-columns:1fr}}
.dir-filters{border:1px solid var(--rule);border-radius:var(--radius);padding:1.35rem;display:flex;flex-direction:column;gap:1.5rem;position:sticky;top:1rem}
@media(max-width:820px){.dir-filters{position:static}}
.dir-filters fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.dir-filters legend{font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:0;margin-bottom:.3rem}
.field{display:flex;flex-direction:column;gap:.4rem}
.field span{font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.field input{font:inherit;font-size:1rem;padding:.55rem .7rem;border:1px solid var(--rule);border-radius:var(--radius);background:var(--paper);color:var(--ink);width:100%}
.check{display:flex;align-items:center;gap:.6rem;font-size:.97rem;color:var(--muted);cursor:pointer}
.check input{width:15px;height:15px;accent-color:var(--accent);flex:none}
.check span:nth-of-type(1){flex:1;color:var(--ink)}
.count{font-size:.85rem;color:var(--muted)}
.dir-results{display:flex;flex-direction:column;gap:.9rem}
.dir-count{color:var(--muted);font-size:.97rem;margin:0}
#dirlist{display:flex;flex-direction:column;gap:.75rem}
.card.row{padding:1.1rem 1.35rem;gap:.3rem}
.card.row h3{font-size:1.16rem}
.dir-empty{color:var(--muted)}

/* --- event detail --------------------------------------------------------- */
.ev{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(1.75rem,4vw,3rem);align-items:start}
@media(max-width:900px){.ev{grid-template-columns:1fr}}
.ev-side{display:flex;flex-direction:column;gap:1.1rem;position:sticky;top:1.5rem}
@media(max-width:900px){.ev-side{position:static}}
.ev-facts{border:1px solid var(--rule);border-top:3px solid var(--accent);border-radius:7px;padding:1.5rem;display:flex;flex-direction:column;gap:1.1rem}
.fact{display:flex;flex-direction:column;gap:.15rem}
.fact-l{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.fact-v{font-size:1rem;line-height:1.45}
.ev-facts .btn{text-align:center}
.ev-note{font-size:.85rem;color:var(--muted);text-align:center;margin:0}
.ev-box{border:1px solid var(--rule);border-radius:7px;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:.6rem}
.ev-box .fact-l{margin-bottom:.2rem}
.crumbs{font-size:.85rem;color:var(--muted);margin:0 0 1rem}

/* --- footer ---------------------------------------------------------------- */
footer.site{background:var(--deep);color:#a8bccd;padding:clamp(2.25rem,4vw,3rem) 0 2rem;margin-top:0}
footer.site .wrap{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:2rem}
@media(max-width:820px){footer.site .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){footer.site .wrap{grid-template-columns:1fr}}
footer.site a{color:#a8bccd}
footer.site .brand-word{color:#fff}
.fcol{display:flex;flex-direction:column;gap:.55rem;font-size:.94rem}
.fcol-h{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:#fff;margin-bottom:.2rem}
.fbottom{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.15);padding-top:1.1rem;margin-top:.6rem;display:flex;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;font-size:.85rem}
.fbottom ul{list-style:none;display:flex;gap:1.25rem;margin:0;padding:0}

/* --- forms ------------------------------------------------------------------ */
form.cantata{display:grid;gap:.9rem;max-width:34rem;margin:1.5rem 0 0}
form.cantata label{display:grid;gap:.35rem;font-size:.8rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
form.cantata input,form.cantata textarea{font:inherit;font-size:1rem;padding:.6rem .75rem;border:1px solid var(--rule);border-radius:var(--radius);background:var(--paper);color:var(--ink);text-transform:none;letter-spacing:normal;font-weight:400}
form.cantata textarea{min-height:8rem;resize:vertical}
.hp{position:absolute;left:-9999px}
.searchform{margin-top:1rem}
.faddr{margin:.4rem 0 0}

@media print{.util,nav,footer.site .fcol{display:none}.band{padding:1rem 0}}
