/* eventresourcemanagement.com. One stylesheet for the whole site.
   Palette and type follow the ERM brand kit (Knowhere Claude Brain, ERM/erm-brand-kit, 11-03-2026).
   The look: cream paper, wine and oxblood ink, square corners, Source Serif 4 headlines,
   Instrument Sans for everything else. Colors live here as tokens and nowhere else. */

:root {
  --ink: #3B1119;        /* text, dark bands, footer */
  --wine: #7D2335;       /* links, primary button, accents */
  --rose: #C4868D;       /* accents on dark grounds, focus ring */
  --paper: #F6F1EA;      /* page background */
  --sand: #E8DED2;       /* alternate band */
  --line: #D9CCBF;       /* hairlines */
  --muted: #6A4A4F;      /* secondary text */
  --card: #FFFFFF;
  --line-dark: #5A2530;  /* hairlines on the footer */
  --sandstone: #D5C2AD;  /* kit Sand. Supporting fills only */
  --olive: #4B5320;      /* supporting blocks only, never text */
  --chartreuse: #9A9640; /* supporting blocks only, never text */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; color: var(--paper); }

.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Buttons and text links */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; }
.btn-p { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn-p:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-o { background: transparent; color: var(--ink); }
.btn-o:hover { background: var(--sand); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 600; font-size: 16px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--wine); }
.nav .nav-out { font-weight: 400; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: var(--line); }
.foot a { color: var(--line); text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot-in { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-brand { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.foot-brand img { height: 28px; width: auto; align-self: flex-start; }
.foot-brand p { font-size: 15px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-links .eyebrow { color: var(--rose); font-size: 12px; margin-bottom: 4px; }
.foot-base { border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 14px; }
.by { display: inline-flex; align-items: center; gap: 10px; }
.by img { height: 18px; width: auto; }

/* Page bands */
.band { padding-top: 88px; padding-bottom: 88px; }
.band-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-tight { padding-top: 56px; padding-bottom: 56px; }
.band-head { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.band-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split > .wide { flex: 1.4 1 520px; }
.framed { border: 1px solid var(--line); }

/* Home hero */
.hero { padding-top: 80px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .btns { padding-top: 8px; }

/* The six building blocks */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.block { background: var(--paper); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.doc .block { background: var(--card); }
.block img { width: 44px; height: 44px; }
.block h3 { font-size: 20px; }
.block p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Guide and article cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
.card:hover { border-color: var(--wine); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-body p { font-size: 15px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.card-go { font-weight: 600; font-size: 15px; color: var(--wine); }
.card-meta { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Publisher box */
.publisher { background: var(--sand); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.publisher .eyebrow { font-size: 12px; }
.publisher p:not(.eyebrow) { font-size: 17px; line-height: 1.65; }
.publisher .btn { align-self: flex-start; font-size: 15px; }
.publisher-wide { flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 48px; }
.publisher-wide > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* Guide, article and template headers */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); }
.page-head .split { padding-top: 56px; padding-bottom: 64px; }
.page-head-copy { display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--wine); text-decoration: none; }
.byline { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.page-head-plain { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }

/* Long form layout: contents on the left, article on the right */
.doc { padding-top: 64px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; max-width: 280px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.toc .eyebrow { font-size: 12px; margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--wine); }
@media (min-width: 960px) { .toc { position: sticky; top: 24px; } }
.doc-body { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 56px; }

/* Markdown inside a guide or article */
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose > h2 { font-size: 32px; line-height: 1.15; margin-top: 36px; scroll-margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-size: 22px; margin-top: 12px; scroll-margin-top: 24px; }
.prose > p, .prose > ul, .prose > ol { font-size: 18px; line-height: 1.7; margin: 0; }
.prose > ul, .prose > ol { padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--wine); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 0; border-left: 3px solid var(--wine); padding: 4px 0 4px 20px; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; width: 100%; }
.prose img { border: 1px solid var(--line); }
.table-box { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.prose th { background: var(--sand); text-align: left; padding: 14px 20px; font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.prose td { padding: 16px 20px; border-top: 1px solid var(--line); line-height: 1.55; vertical-align: top; }
.prose td:first-child { font-weight: 600; width: 34%; }
.prose td:not(:first-child) { color: var(--muted); }

/* Guide blocks Cara can drop into an .mdx file */
.txt p { margin: 0 0 8px; }
.txt p:last-child { margin-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); padding: 22px 24px; counter-increment: step; }
.step::before { content: counter(step); flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--wine); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 20px; }
.step > div { display: flex; flex-direction: column; gap: 6px; }
.step h3 { font-size: 20px; }
.step .txt { font-size: 16px; line-height: 1.6; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tile-label { font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine); }
.tile h3 { font-size: 21px; }
.tile .txt { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tile-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile-dark .tile-label { color: var(--rose); }
.tile-dark .txt { color: var(--line); }
.tile-dashed { border: 1.5px dashed var(--wine); }
.tile-solid { border: 1.5px solid var(--wine); }

.timeline { list-style: none; margin: 0 0 0 8px; padding: 0; border-left: 2px solid var(--wine); }
.timeline li { padding: 0 0 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tile-label { font-size: 13px; letter-spacing: 0.14em; }
.timeline .txt { font-size: 17px; line-height: 1.6; }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--card); padding: 16px 18px; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.chip::before { content: ""; width: 10px; height: 10px; background: var(--wine); flex: none; }

.sheet { background: var(--card); border: 1px solid var(--ink); }
.sheet-head { background: var(--ink); color: var(--paper); padding: 16px 24px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sheet-head h3 { font-size: 20px; }
.sheet-head span { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; color: var(--sand); }
.sheet ol { list-style: none; margin: 0; padding: 4px 24px 12px; counter-reset: line; }
.sheet li { counter-increment: line; display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.sheet li:first-child { border-top: 0; }
.sheet li::before { content: counter(line); font-weight: 600; color: var(--wine); min-width: 16px; }

.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--wine); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; font-size: 17px; line-height: 1.65; color: var(--muted); }

.related { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.related .eyebrow { color: var(--muted); font-size: 12px; }
.related div { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 17px; font-weight: 600; }

/* Checklist template */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.phase { background: var(--card); border: 1px solid var(--ink); }
.phase-head { background: var(--ink); color: var(--paper); padding: 20px 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.phase:nth-child(2) .phase-head { background: var(--wine); }
.phase-head h2 { font-size: 24px; }
.phase-head span { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; color: var(--sand); }
.phase-items { padding: 4px 24px 12px; }
.chk { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 16px; line-height: 1.5; }
.phase-items .chk:first-child { border-top: 0; }
.chk input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--wine); flex: none; cursor: pointer; }
.progress { font-size: 15px; color: var(--muted); }

/* Article index */
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover h3 { color: var(--wine); }
.row time { flex: 0 0 120px; font-weight: 600; font-size: 14px; color: var(--muted); padding-top: 4px; }
.row > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row p { color: var(--muted); }
.empty { padding: 40px 0; color: var(--muted); font-size: 17px; }

/* 404 */
.lost { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
