/* MIDOG challenge series — one stylesheet for public site and admin.
   Per-edition accent colour comes from /<year>/theme.css (--accent). */

:root {
  --palette-1: #7456f1; --palette-2: #5e3fde; --palette-3: #7d7d7d; --palette-4: #102136;
  --palette-5: #848484; --palette-6: #f3f5f7; --palette-7: #fbfbfc; --palette-8: #ffffff;
  --brand: #270341;          /* MIDOG purple */
  --brand-2: #4a1a78;
  --gold: #f39c12;
  --accent: #5b2a86;
  --ink: #1c1628;
  --ink-2: #3d3550;
  --muted: #6c6580;
  --line: #e7e2ee;
  --line-soft: #f3f0f7;
  --bg: #faf9fb;
  --paper: #ffffff;
  --ok: #1e7a4c;
  --warn: #9a5b00;
  --danger: #b3261e;
  --radius: 10px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(28, 22, 40, .06), 0 6px 24px rgba(28, 22, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: .2em 0 .5em; }
h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------ series bar (always on top) */
.series-bar { background: var(--brand); color: #fff; font-size: .9rem; }
.series-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; flex-wrap: wrap; }
.series-brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.series-brand:hover { color: #fff; opacity: .9; }
.series-mark { width: 18px; height: 18px; border-radius: 50%; background:
  radial-gradient(circle at 35% 40%, var(--gold) 0 22%, transparent 23%),
  radial-gradient(circle at 65% 60%, var(--gold) 0 22%, transparent 23%),
  rgba(255,255,255,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.edition-switch { display: flex; align-items: center; gap: 10px; }
.edition-label { opacity: .75; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.edition-switch ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 6px 0; }
.edition-switch a { color: #fff; text-decoration: none; padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font-weight: 600; font-variant-numeric: tabular-nums; }
.edition-switch a:hover { background: rgba(255,255,255,.14); color: #fff; }
.edition-switch a.current { background: var(--gold); border-color: var(--gold); color: var(--brand); }

/* ------------------------------------------------ landing */
.hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #3b0a5e 55%, #5a1f6e 100%); }
.hero-inner { position: relative; z-index: 1; padding: 72px 20px 84px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .1em 0 .35em; max-width: 14ch; }
.hero .lead { font-size: 1.2rem; max-width: 46rem; color: #fff; opacity: .9; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--gold); margin: 0; }
.hero-cells { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(circle at 78% 30%, rgba(243,156,18,.55) 0 7px, transparent 8px),
    radial-gradient(circle at 82% 34%, rgba(243,156,18,.55) 0 7px, transparent 8px),
    radial-gradient(circle at 80% 32%, rgba(255,255,255,.10) 0 70px, transparent 71px),
    radial-gradient(circle at 92% 72%, rgba(255,255,255,.08) 0 46px, transparent 47px),
    radial-gradient(circle at 66% 78%, rgba(255,255,255,.07) 0 34px, transparent 35px),
    radial-gradient(circle at 70% 12%, rgba(255,255,255,.06) 0 26px, transparent 27px),
    radial-gradient(circle at 96% 18%, rgba(255,255,255,.06) 0 30px, transparent 31px); }
.section-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 18px; }
.select { margin-top: -44px; position: relative; z-index: 2; }
.select .section-title { color: #fff; opacity: .85; }
.edition-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.edition-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border-radius: 14px; padding: 24px 24px 22px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.edition-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(39,3,65,.16); border-color: #cdbfe0; color: var(--ink); }
.card-year { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-title { font-weight: 700; font-size: 1.15rem; }
.card-sub { color: var(--ink-2); font-size: .95rem; }
.card-summary { color: var(--muted); font-size: .92rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-top: 4px; }
.card-meta span { background: var(--line-soft); padding: 2px 9px; border-radius: 999px; color: var(--ink-2); }
.status-open .card-meta .status { background: #e5f5ec; color: var(--ok); }
.status-upcoming .card-meta .status { background: #fff3df; color: var(--warn); }
.card-cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.landing-text { margin-top: 48px; }
.latest { margin: 56px auto 64px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.news-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.news-card h3 { margin: .3em 0; font-size: 1.05rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--accent); }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.news-meta { font-size: .8rem !important; display: flex; gap: 8px; align-items: center; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--line-soft); color: var(--brand); font-weight: 600; font-size: .8rem; text-decoration: none; }
.pill-list { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------ edition header + menu */
.edition-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.edition-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.edition-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); min-width: 0; }
.edition-brand:hover { color: var(--ink); }
.edition-logo { height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.edition-titles { display: flex; flex-direction: column; min-width: 0; }
.edition-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.edition-sub { color: var(--muted); font-size: .95rem; }
.edition-nav-wrap { border-top: 1px solid var(--line-soft); }
.edition-nav ul { list-style: none; margin: 0; padding: 0; }
.edition-nav > ul { display: flex; flex-wrap: wrap; gap: 2px; }
.edition-nav li { position: relative; }
.edition-nav a { display: block; padding: 12px 12px 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.edition-nav a:hover { color: var(--accent); }
.edition-nav li.active > a { color: var(--accent); border-bottom-color: var(--accent); }
.edition-nav a.ext::after { content: " ↗"; font-size: .8em; opacity: .7; }
.edition-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); z-index: 20; padding: 6px 0; }
.edition-nav .sub a { border: 0; padding: 8px 16px; font-weight: 500; }
.edition-nav .has-sub > a::after { content: " ▾"; font-size: .75em; opacity: .7; }
.edition-nav .has-sub:hover > .sub, .edition-nav .has-sub:focus-within > .sub { display: block; }
.nav-toggle-label { display: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.badge-draft { background: #fff3df; color: var(--warn); }
.badge-warn { background: #fde8e7; color: var(--danger); }

/* ------------------------------------------------ pages */
.page { padding-top: 28px; padding-bottom: 64px; }
.page-head { max-width: 820px; position: relative; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.edit-link { position: absolute; right: 0; top: 0; font-size: .85rem; }
.post-date { color: var(--muted); margin-top: -.6em; }
.notice { background: #fff3df; border: 1px solid #f3d7a8; color: var(--warn); padding: 10px 14px; border-radius: var(--radius); max-width: 820px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.edition-lead { max-width: 820px; font-size: 1.2rem; border-left: 4px solid var(--accent); padding-left: 16px; }
.back { margin-top: 40px; }

.prose { max-width: 860px; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .25em; }
.prose img { border-radius: 6px; display: block; margin: 1em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .4em; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.1em; border-left: 4px solid var(--accent); background: var(--line-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose pre { background: #1c1628; color: #f4f0fa; padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; }
.prose code { background: var(--line-soft); padding: 1px 5px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--line-soft); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #fcfbfd; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); background: #000; }
.prose audio { width: 100%; margin-top: .3em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.child-pages { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 820px; margin-top: 2em; }
.child-pages a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; font-weight: 600; }

.home-news { margin-top: 48px; max-width: 820px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.news-list { display: grid; gap: 0; max-width: 820px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.news-item time { color: var(--muted); font-size: .9rem; padding-top: 3px; font-variant-numeric: tabular-nums; }
.news-item h2, .news-item h3 { margin: 0 0 .3em; font-size: 1.12rem; }
.news-item h2 a, .news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--accent); }
.news-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.notfound { min-height: 40vh; }

/* ------------------------------------------------ footers */
.edition-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 28px 0; }
.footer-logos { max-width: none; text-align: center; }
.footer-logos img { display: inline-block; max-height: 64px; width: auto; margin: 8px 14px; vertical-align: middle; }
.footer-logos p { margin: .4em 0; }
.site-footer { background: #15101e; color: #cfc8dc; font-size: .9rem; padding: 26px 0; }
.site-footer a { color: #fff; }
.footer-inner p { margin: .3em 0; }

/* ------------------------------------------------ forms, buttons, admin */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-2); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--line-soft); color: var(--brand); }
.btn-danger { background: var(--danger); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.danger { color: var(--danger) !important; }
.warn { color: var(--warn); }
.inline-form { display: inline; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; }
.field-row .field { flex: 1 1 240px; }
.field-row .field-narrow { flex: 0 1 170px; }
input[type=text], input[type=email], input[type=number], input[type=date], select, textarea {
  font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid #d4cde0; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input[type=color] { width: 64px; height: 40px; border: 1px solid #d4cde0; border-radius: 8px; padding: 2px; background: #fff; }
textarea { resize: vertical; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; padding-bottom: 8px; }
.form-actions { display: flex; gap: 10px; }
.form-error { color: var(--danger); }
.inline-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: center; margin-top: 12px; }

.admin-bar { background: #fff8ea; border-bottom: 1px solid #f1dfb9; font-size: .9rem; }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.admin-bar nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-home { font-weight: 700; color: var(--brand); text-decoration: none; }
.admin { padding-top: 24px; padding-bottom: 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.admin-head h1, .admin-head h2 { margin: .2em 0; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 12px; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.admin-card-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.admin-card h2 { margin: 0; font-size: 1.2rem; }
.admin-card h2 a { color: var(--ink); text-decoration: none; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; margin-top: 10px; }
.table th, .table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.table th { background: var(--line-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.indent { color: var(--muted); padding-left: 10px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.linkbox { word-break: break-all; background: var(--line-soft); padding: .75rem 1rem; border-radius: var(--radius); }
.danger-zone { margin-top: 40px; padding-top: 16px; border-top: 1px dashed var(--line); }
.photo-picker { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo-preview { max-height: 72px; border-radius: 6px; border: 1px solid var(--line); }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.stat strong { font-size: 1.3rem; color: var(--brand); }
.bars { display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 50px; gap: 10px; align-items: center; }
.bar-row meter { width: 100%; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.editor { border: 1px solid #d4cde0; border-radius: var(--radius); background: #fff; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--line-soft); border-radius: var(--radius) var(--radius) 0 0; position: sticky; top: 0; z-index: 5; }
.editor-toolbar button { font: inherit; font-size: .82rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; cursor: pointer; color: var(--ink-2); }
.editor-toolbar button:hover { border-color: var(--accent); }
.editor-toolbar button:disabled { opacity: .4; cursor: default; }
.editor-toolbar .src-toggle { margin-left: auto; }
.editor-toolbar .on { background: var(--brand); color: #fff; }
.editor-area { min-height: 320px; padding: 16px 18px; outline: none; max-width: none; }
.editor-source { width: 100%; border: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 14px; font-size: .85rem; line-height: 1.5; min-height: 320px; }

.auth { display: flex; justify-content: center; padding: 64px 20px; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; width: 100%; max-width: 480px; box-shadow: var(--shadow); }

/* ------------------------------------------------ small screens */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .series-inner { padding-top: 6px; padding-bottom: 2px; }
  .edition-label { display: none; }
  .edition-logo { height: 46px; }
  .edition-title { font-size: 1.3rem; }
  .nav-toggle-label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--ink-2); }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .edition-nav { display: none; padding-bottom: 10px; }
  .nav-toggle:checked ~ .edition-nav { display: block; }
  .edition-nav > ul { flex-direction: column; }
  .edition-nav a { padding: 9px 4px; border-bottom: 0; border-left: 3px solid transparent; }
  .edition-nav li.active > a { border-left-color: var(--accent); padding-left: 10px; }
  .edition-nav .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .edition-nav .has-sub > a::after { content: ""; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .hero-inner { padding: 48px 20px 72px; }
  .edit-link { position: static; }
}

/* edition home: content + "at a glance" sidebar */
.glance { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; position: sticky; top: 16px; font-size: .93rem; }
.glance h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.glance dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; }
.glance ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.glance a { text-decoration: none; font-weight: 600; }
@media (max-width: 960px) { .glance { position: static; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------ edition layout (content + optional sidebar) */
.edition-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.edition-layout:has(> aside) { grid-template-columns: minmax(0, 1fr) 300px; }
.edition-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 260px; }
.edition-layout .page { padding: 0; }
.edition-content { min-width: 0; }
.edition-sidebar img { display: block; width: 100%; height: auto; }
.edition-sidebar figure { margin: 0; }
.entry-card + .entry-card, .home-intro + .entry-card { margin-top: 24px; }
.entry-card .entry-title { margin: 0 0 .6em; font-size: 1.3rem; }
.entry-card .entry-title a { color: var(--ink); text-decoration: none; }
.entry-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; color: var(--muted); margin: 1.2em 0 0; }
.more-news { margin-top: 24px; }
@media (max-width: 960px) {
  .edition-layout, .edition-layout:has(> aside), .edition-layout.has-sidebar { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------ WordPress block content (imported or HTML mode) */
.prose .wp-block-columns { display: flex; gap: 2em; margin: 1.5em 0; align-items: flex-start; }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }
.prose .wp-block-column > :first-child { margin-top: 0; }
.prose .wp-block-column > :last-child { margin-bottom: 0; }
.prose .wp-col-25 { flex: 0 0 calc(25% - 1em); } .prose .wp-col-33 { flex: 0 0 calc(33.33% - 1em); }
.prose .wp-col-40 { flex: 0 0 calc(40% - 1em); } .prose .wp-col-50 { flex: 0 0 calc(50% - 1em); }
.prose .wp-col-60 { flex: 0 0 calc(60% - 1em); } .prose .wp-col-66, .prose .wp-col-67 { flex: 0 0 calc(66.66% - 1em); }
.prose .wp-col-75 { flex: 0 0 calc(75% - 1em); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6em; margin: 1em 0; list-style: none; padding: 0; }
.prose .wp-block-buttons.is-content-justification-center { justify-content: center; }
.prose .wp-block-buttons.is-content-justification-right { justify-content: flex-end; }
.prose .wp-block-button { margin: 0; }
.prose .wp-block-button__width-100 { width: 100%; } .prose .wp-block-button__width-50 { width: calc(50% - .3em); }
.prose .wp-block-button__width-25 { width: calc(25% - .45em); } .prose .wp-block-button__width-75 { width: calc(75% - .15em); }
.prose .wp-block-button__link, .wp-block-button__link { display: inline-block; background: var(--accent); color: #fff; padding: .55em 1.3em; border-radius: 3px; text-decoration: none; font-weight: 500; font-size: .95em; line-height: 1.4; text-align: center; }
.prose [class*="wp-block-button__width"] .wp-block-button__link { display: block; }
.prose .wp-block-button__link:hover, .wp-block-button__link:hover { filter: brightness(1.1); color: #fff; }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.prose .has-text-align-center { text-align: center; } .prose .has-text-align-right { text-align: right; } .prose .has-text-align-left { text-align: left; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .aligncenter img, .prose .wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }
.prose .alignright { float: right; margin: 0 0 1em 1.5em; } .prose .alignleft { float: left; margin: 0 1.5em 1em 0; }
.prose .wp-block-image img { display: inline-block; margin: 0; }
.prose .wp-block-image figcaption, .prose .wp-element-caption { text-align: center; }
.prose .has-background { padding: 1em 1.4em; border-radius: 7px; }
.prose .wp-block-column.has-background { padding: .8em 1.2em; }
.prose .is-rounded { border-radius: 7px; }
.prose .has-small-font-size { font-size: .85em; } .prose .has-medium-font-size { font-size: 1.1em; } .prose .has-large-font-size { font-size: 1.35em; }
.has-palette-color-1-color { color: var(--palette-1) !important; } .has-palette-color-1-background-color { background-color: var(--palette-1); }
.has-palette-color-2-color { color: var(--palette-2) !important; } .has-palette-color-2-background-color { background-color: var(--palette-2); }
.has-palette-color-3-color { color: var(--palette-3) !important; } .has-palette-color-3-background-color { background-color: var(--palette-3); }
.has-palette-color-4-color { color: var(--palette-4) !important; } .has-palette-color-4-background-color { background-color: var(--palette-4); }
.has-palette-color-5-color { color: var(--palette-5) !important; } .has-palette-color-5-background-color { background-color: var(--palette-5); }
.has-palette-color-6-color { color: var(--palette-6) !important; } .has-palette-color-6-background-color { background-color: var(--palette-6); }
.has-palette-color-7-color { color: var(--palette-7) !important; } .has-palette-color-7-background-color { background-color: var(--palette-7); }
.has-palette-color-8-color { color: var(--palette-8) !important; } .has-palette-color-8-background-color { background-color: var(--palette-8); }
.prose .has-text-color p, .prose .has-text-color li, .prose .has-text-color strong { color: inherit; }
.prose .has-link-color a { color: inherit; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; align-items: center; margin: 1.5em 0; }
.prose .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prose .wp-block-gallery.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prose .wp-block-gallery.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery img { width: 100%; height: auto; margin: 0; }
.prose .wp-block-embed { margin: 1.5em 0; }
.prose .wp-block-table table { display: table; }
.prose .has-fixed-layout { table-layout: fixed; }
.prose .wp-block-social-links { list-style: none; padding: 0; display: flex; gap: .5em; flex-wrap: wrap; margin: .6em 0 1.2em; }
.prose .wp-block-social-link { margin: 0; }
.prose .wp-block-social-link a { display: inline-block; padding: .2em .8em; border-radius: 999px; background: var(--line-soft); font-size: .85em; text-decoration: none; font-weight: 600; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em auto; }
.prose .wp-block-quote { border-left: 4px solid var(--accent); }
@media (max-width: 760px) {
  .prose .wp-block-columns { flex-direction: column; }
  .prose .wp-block-column, .prose [class*="wp-col-"] { flex: 1 1 auto; width: 100%; }
  .prose .wp-block-gallery.columns-5, .prose .wp-block-gallery.columns-6, .prose .wp-block-gallery.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prose .alignright, .prose .alignleft { float: none; margin: 1em 0; }
}
.design-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--paper); }
.design-box summary { cursor: pointer; font-weight: 700; }
.design-box[open] { display: grid; gap: 14px; }
