/* Deciding Together Leeds — look and layout.
   Colours are taken from the hand-drawn wall poster. */
@font-face {
  font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Patrick Hand"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/patrick-hand-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fffdf7;
  --desk: #f3ece0;
  --ink: #1d1d1b;
  --soft-ink: #4a4a45;
  --red: #d3455b;
  --yellow: #efb321;
  --green: #86c440;
  --green-dark: #2f6b12;
  --green-wash: #eef7e1;
  --brown: #96583a;
  --blue: #b7cbe8;
  --blue-wash: #e9f0fa;
  --blue-dark: #1f4e8c;
  --grey: #b9bdc4;
  --line: #e4dccb;
  --hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", "Bradley Hand", cursive;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --tabbar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
html.big-text { font-size: 137.5%; }
html.panel-open { overflow: hidden; }
body {
  margin: 0; background: var(--desk); color: var(--ink);
  font-family: var(--text); line-height: 1.55;
  padding-bottom: var(--tabbar);
}
a { color: var(--blue-dark); text-underline-offset: 0.15em; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.15; margin: 0; }
ol, ul { margin: 0; padding: 0; }
img { max-width: 106%; height: auto; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem clamp(0.75rem, 3vw, 2rem);
  background: var(--paper); border-bottom: 3px solid var(--red);
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); font-family: var(--hand); font-size: 1.3rem; line-height: 1.1; }
.brand-ring { width: 1.5rem; height: 1.5rem; flex: none; border: 6px solid var(--green); border-radius: 50%; }
.top-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.top-nav a { padding: 0.5rem 0.8rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.top-nav a:hover { background: var(--green-wash); }
.tools { display: flex; gap: 0.4rem; }
.tool {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.3rem 0.8rem;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 600 0.85rem var(--text); text-decoration: none; cursor: pointer;
}
.tool b { font-size: 1.25em; }
.tool[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { max-width: 1320px; margin: 0 auto; padding: 1.25rem clamp(0.75rem, 3vw, 2rem) 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.strapline { flex: 1 1 22rem; margin: 0; font-family: var(--hand); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; }
#next-up { flex: 1 1 20rem; max-width: 30rem; }
.next-card, .card {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--yellow);
}
.next-card:hover, .card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--yellow); }
.next-icon, .card-icon { font-size: 1.9rem; line-height: 1; flex: none; }
.next-text, .card-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.next-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); }
.next-text strong { font-family: var(--hand); font-size: 1.45rem; font-weight: 400; line-height: 1.2; }
.next-go { font-size: 1.8rem; line-height: 1; color: var(--soft-ink); }

/* ---------- the poster ---------- */
.poster {
  max-width: 1320px; margin: 1rem auto 2rem; padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--paper); border: 4px solid var(--red); outline: 2px solid var(--red); outline-offset: -11px;
  border-radius: 6px; box-shadow: 0 8px 30px rgba(60, 40, 10, 0.12);
}
.poster-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); text-shadow: 3px 3px 0 #cfcfcf; margin-top: 0.4rem;
}
.hint { text-align: center; color: var(--soft-ink); margin: 0.4rem auto 0; max-width: 40rem; }
.hint.left { text-align: left; margin: 0.2rem 0 0.8rem; }
.section-title { font-size: 1.5rem; margin: 0 0 0.8rem; }
.poster-body { display: flex; flex-direction: column; }
.poster a { color: var(--ink); text-decoration: none; }

/* timeline: one line, blue ovals, yellow arc above */
.timeline-wrap { position: relative; padding-top: 4.5rem; margin-top: 0.5rem; }
.only-small { display: none; }
.arc { position: absolute; left: 0; top: 0; width: 100%; height: calc(4.5rem + 3.2rem + 8px); overflow: visible; pointer-events: none; }
.arc path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.timeline { list-style: none; position: relative; display: flex; gap: 0.4rem; padding: 0 2.5%; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: calc(3.2rem + 6px); height: 3px; background: var(--red); border-radius: 2px; }
.phase { flex: 1 1 0; min-width: 0; }
.phase a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.phase-when { height: 3.2rem; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.3rem; font-family: var(--hand); font-size: 0.9rem; line-height: 1.1; color: var(--soft-ink); }
.phase-dot { width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); z-index: 1; }
.phase-pill {
  margin-top: 0.5rem; padding: 0.45rem 0.6rem; min-height: 3.6rem; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--hand); font-size: 1rem; line-height: 1.1;
  background: #fff; border: 4px solid var(--blue); border-radius: 50% / 45%;
}
.phase-icon { font-size: 1.1rem; }
.phase a:hover .phase-pill, .phase.is-now .phase-pill { background: var(--blue-wash); border-color: var(--blue-dark); }
.phase.is-now .phase-dot { background: var(--red); }
.here { margin-top: 0.35rem; padding: 0.1rem 0.6rem; background: var(--red); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }

/* sessions: five green rings */
.sessions-wrap { margin-top: 2.2rem; }
.sessions-wrap .section-title, .decisions-wrap .section-title { text-align: center; }
.sessions { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.session a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.ring {
  width: min(100%, 12.5rem); aspect-ratio: 1; padding: 12%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
  background: #fff; border: 0.8rem solid var(--green); border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  transition: transform 0.15s;
}
.session:nth-child(even) .ring { border-radius: 52% 48% 51% 49% / 48% 52% 49% 51%; }
.session a:hover .ring { transform: rotate(-2deg) scale(1.03); }
.ring-num { font-family: var(--hand); font-size: 0.85rem; color: var(--soft-ink); }
.ring-title { font-family: var(--hand); font-size: clamp(1rem, 1.75vw, 1.45rem); line-height: 1.05; }
.ring-date { font-family: var(--hand); font-size: 0.85rem; color: var(--soft-ink); }
.session-side { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.session-icon { font-size: 2rem; line-height: 1.1; }
.session-meta { font-size: 0.85rem; color: var(--soft-ink); }
.tag { padding: 0.1rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.tag-past { background: var(--green-wash); color: var(--green-dark); }
.tag-future, .tag-today { background: var(--yellow); color: var(--ink); }
.session.is-next .ring { box-shadow: 0 0 0 5px var(--paper), 0 0 0 9px var(--yellow); }

/* decisions: ten signposts */
.decisions-wrap { margin-top: 2.5rem; scroll-margin-top: 4.5rem; }
.key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: -0.3rem 0 1rem; }
.badge { display: inline-block; padding: 0.08rem 0.55rem; border-radius: 999px; font: 700 0.7rem/1.5 var(--text); white-space: nowrap; border: 2px solid transparent; }
.badge.coming { background: #fff; color: var(--soft-ink); border-color: var(--grey); }
.badge.talking { background: var(--yellow); color: var(--ink); }
.badge.decided { background: var(--green-dark); color: #fff; }
.badge.decided::before { content: "✓ "; }
.signposts { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.6rem; align-items: stretch; }
.signpost { display: flex; }
.signpost a { display: flex; flex-direction: column; align-items: center; width: 100%; }
.board {
  flex: 1; width: 100%; padding: 0.6rem 0.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
  background: #fff; border: 5px solid var(--brown); border-radius: 4px; transition: transform 0.15s;
}
.signpost:nth-child(odd) .board { transform: rotate(-1deg); }
.signpost:nth-child(even) .board { transform: rotate(0.8deg); }
.signpost a:hover .board { transform: rotate(0) translateY(-3px); }
.board-icon { font-size: 1.7rem; line-height: 1; }
.board-title { flex: 1; font-family: var(--hand); font-size: 1rem; line-height: 1.12; overflow-wrap: anywhere; }
.board-title small { display: block; font-size: 0.85em; color: var(--soft-ink); margin-top: 0.15rem; }
.post { width: 12px; height: 2.6rem; background: var(--grey); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.grass { width: 44px; height: 16px; margin-top: -12px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 16'%3E%3Cpath d='M2 16 L8 4 L12 12 L16 1 L21 12 L26 0 L30 12 L36 3 L42 16 Z' fill='%2386c440' stroke='%231d1d1b' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.signpost.status-decided .board { background: var(--green-wash); }
.signpost.status-talking .board { background: #fff8e3; }

/* ---------- information blocks ---------- */
.block { max-width: 1320px; margin: 0 auto 2rem; padding: 0 clamp(0.75rem, 3vw, 2rem); scroll-margin-top: 4.5rem; }
.block-title { font-size: 2rem; margin-bottom: 0.8rem; }
.block-sub { font-size: 1.5rem; margin-top: 1.8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; }
.card { box-shadow: 4px 4px 0 var(--blue); }
.card:hover { box-shadow: 6px 6px 0 var(--blue); }
.card-text strong { font-family: var(--hand); font-size: 1.25rem; font-weight: 400; line-height: 1.2; }
.card-text span { font-size: 0.85rem; color: var(--soft-ink); line-height: 1.35; }
.roles .card { box-shadow: 4px 4px 0 var(--green); }
.roles .card:hover { box-shadow: 6px 6px 0 var(--green); }
.contact { text-align: center; background: var(--paper); border: 3px dashed var(--brown); border-radius: var(--radius); padding: 1.5rem 1rem; max-width: 44rem; }
.big-button {
  display: inline-block; padding: 0.8rem 1.4rem; background: var(--green-dark); color: #fff; border-radius: 999px;
  font-weight: 700; text-decoration: none; min-height: 48px; overflow-wrap: anywhere;
}
.big-button:hover { background: #24540c; }
.foot { max-width: 60rem; margin: 0 auto; padding: 1rem 1rem 2.5rem; text-align: center; font-size: 0.8rem; color: var(--soft-ink); }
.foot p { margin: 0.3rem 0; }
.tabbar { display: none; }

/* ---------- detail page (opens over the map) ---------- */
.panel {
  width: min(46rem, 94vw); max-height: 90vh; padding: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px;
}
.panel::backdrop { background: rgba(29, 29, 27, 0.55); }
.panel-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.8rem; background: var(--paper); border-bottom: 2px solid var(--line); }
.panel-back, .panel-listen {
  min-height: 48px; padding: 0.4rem 1rem; border-radius: 999px; border: 2px solid var(--ink);
  font: 700 0.95rem var(--text); cursor: pointer; background: #fff; color: var(--ink);
}
.panel-back { background: var(--ink); color: #fff; }
.panel-listen[aria-pressed="true"] { background: var(--yellow); }
.panel-body { padding: 1.2rem clamp(1rem, 4vw, 2rem) 2rem; outline: none; }
.panel-head { text-align: center; margin-bottom: 1.2rem; }
.panel-icon { font-size: 2.8rem; line-height: 1.2; display: block; }
.kicker { margin: 0.2rem 0; font-size: 0.85rem; font-weight: 700; color: var(--soft-ink); }
.panel-head h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.lead { font-family: var(--hand); font-size: 1.35rem; line-height: 1.25; margin: 0.5rem auto 0; max-width: 32rem; }
.sec { padding: 0.9rem 0; border-top: 2px dashed var(--line); }
.sec h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.sec p { margin: 0.4rem 0; }
.sec ul { padding-left: 1.3rem; }
.sec li { margin: 0.35rem 0; }
.empty { color: var(--soft-ink); font-style: italic; }
.sec.is-empty h3 { color: var(--soft-ink); }
.when { font-size: 1.15rem; }
.times { border-collapse: collapse; margin-top: 0.3rem; }
.times th { text-align: left; padding: 0.2rem 1rem 0.2rem 0; white-space: nowrap; vertical-align: top; }
.times td { padding: 0.2rem 0; }
.outcome { margin: 0.6rem 0; padding: 0 1rem; border: 3px solid var(--grey); border-radius: var(--radius); background: #fff; }
.outcome .sec:first-child { border-top: 0; }
.outcome.is-decided { border-color: var(--green); background: var(--green-wash); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.35rem 0.9rem; background: #fff; border: 2px solid var(--brown); border-radius: 10px; color: var(--ink); text-decoration: none; font-family: var(--hand); font-size: 1.05rem; line-height: 1.15; }
.chip:hover { background: var(--green-wash); }
.resources { list-style: none; padding: 0 !important; display: grid; gap: 0.5rem; }
.resources a { display: flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0.5rem 0.9rem; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-weight: 600; text-decoration: none; }
.note { padding: 0.8rem 1rem; background: var(--blue-wash); border-left: 6px solid var(--blue-dark); border-radius: 8px; font-weight: 600; }
.faq { border-top: 2px dashed var(--line); }
.faq summary { padding: 0.9rem 0; cursor: pointer; font-family: var(--hand); font-size: 1.3rem; line-height: 1.2; }
.faq p { margin: 0 0 1rem; }
.ask { text-align: center; margin-top: 1.5rem; }
.poster-photo { display: block; border: 3px solid var(--ink); border-radius: 8px; }

/* ---------- medium screens: signposts in two rows ---------- */
@media (max-width: 1180px) {
  .signposts { grid-template-columns: repeat(5, 1fr); row-gap: 1.2rem; }
  .phase-pill { font-size: 0.92rem; padding-inline: 0.3rem; }
  .top-nav a { padding-inline: 0.55rem; }
}

/* ---------- phones and small tablets: the map turns into a path you scroll down ---------- */
@media (max-width: 860px) {
  :root { --tabbar: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 4rem; }
  .top-nav { display: none; }
  .tools { margin-left: auto; }
  .tool-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tool { min-width: 44px; justify-content: center; padding-inline: 0.6rem; font-size: 1rem; }
  .brand { font-size: 1.15rem; }

  .poster { margin: 0.75rem 0.5rem 1.5rem; padding: 1.1rem 0.9rem 1.2rem; outline-offset: -9px; }
  .section-title, .sessions-wrap .section-title, .decisions-wrap .section-title { text-align: left; font-size: 1.6rem; }
  .only-small { display: block; }

  /* sessions first, then the long timeline */
  .sessions-wrap { order: 1; margin-top: 1.4rem; }
  .timeline-wrap { order: 2; padding-top: 0; margin-top: 2rem; }
  .arc { display: none; }

  /* a yellow path runs down the left, joining everything up */
  .sessions, .timeline { position: relative; display: flex; flex-direction: column; gap: 0.9rem; padding: 0; }
  .sessions::before, .timeline::before {
    content: ""; position: absolute; top: 1rem; bottom: 1rem; left: calc(2.4rem - 3px); right: auto; width: 6px; height: auto;
    background: var(--yellow); border-radius: 3px;
  }
  .session a {
    position: relative; display: grid; grid-template-columns: 4.8rem 1fr; column-gap: 0.9rem; row-gap: 0.15rem;
    grid-template-areas: "icon text" "icon meta" "icon tag"; align-items: center; text-align: left;
    min-height: 4.8rem;
  }
  .session-side { display: contents; }
  .session-icon {
    grid-area: icon; align-self: start; width: 4.8rem; height: 4.8rem; display: grid; place-items: center;
    background: #fff; border: 0.5rem solid var(--green); border-radius: 50%; font-size: 1.6rem; letter-spacing: -0.12em; text-align: center; overflow: hidden; white-space: nowrap;
  }
  .session:first-child .session-icon { font-size: 1rem; }
  .ring { grid-area: text; width: auto; aspect-ratio: auto; padding: 0; border: 0; background: none; align-items: flex-start; border-radius: 0 !important; box-shadow: none !important; transform: none !important; }
  .ring-num { font-size: 0.95rem; }
  .ring-title { font-size: 1.45rem; }
  .ring-date { font-family: var(--text); font-size: 0.95rem; font-weight: 700; color: var(--ink); }
  .session-meta { grid-area: meta; }
  .tag { grid-area: tag; justify-self: start; }
  .session.is-next .session-icon { box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px var(--yellow); }
  .session.is-past .session-icon { border-color: var(--green-dark); }

  .phase a { display: grid; grid-template-columns: 4.8rem 1fr; column-gap: 0.9rem; grid-template-areas: "dot pill" "dot when" "dot here"; align-items: center; text-align: left; justify-items: start; }
  .phase-dot { grid-area: dot; justify-self: center; width: 1.5rem; height: 1.5rem; border-width: 4px; border-color: var(--yellow); }
  .phase.is-now .phase-dot { background: var(--red); border-color: var(--red); }
  .phase-pill { grid-area: pill; flex-direction: row; gap: 0.5rem; width: auto; min-height: 48px; margin: 0; padding: 0.4rem 1.1rem; font-size: 1.15rem; border-radius: 999px; text-align: left; }
  .phase-when { grid-area: when; height: auto; padding: 0.15rem 0 0 0.4rem; font-family: var(--text); font-size: 0.85rem; }
  .here { grid-area: here; margin-left: 0.3rem; }

  /* signposts: two across, big enough to tap */
  .key { justify-content: flex-start; }
  .signposts { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.8rem; }
  .board { padding: 0.8rem 0.5rem; }
  .board-icon { font-size: 2.1rem; }
  .board-title { font-size: 1.15rem; }
  .badge { font-size: 0.75rem; }
  .post { height: 1.3rem; }

  .cards { grid-template-columns: 1fr; }
  .contact { margin-inline: 0.5rem; }

  /* bottom bar, always in reach of a thumb */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--paper); border-top: 3px solid var(--red);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 4rem; gap: 0.1rem; color: var(--ink); text-decoration: none; font-size: 0.8rem; font-weight: 700; }
  .tabbar a span { font-size: 1.5rem; line-height: 1.1; }
  .tabbar a:active { background: var(--green-wash); }

  /* detail page fills the whole screen */
  .panel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .panel-body { padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* ================= hand-drawn artwork lifted from the wall poster ================= */
.poster-title { text-shadow: none; }
.poster-title img { display: block; width: min(100%, 54rem); height: auto; margin: 0 auto; }
.phase-pill { min-height: 3.4rem; }

.session a { gap: 0.3rem; }
.session-art { display: block; width: 100%; max-width: 16rem; height: auto; transition: transform 0.15s; }
.session a:hover .session-art { transform: rotate(-1.5deg) scale(1.03); }
.session-text { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.session-text .ring-num, .session-text .ring-date { display: none; }
.session-text .ring-title { font-family: var(--text); font-size: 0.85rem; line-height: 1.25; color: var(--soft-ink); }
.sessions { align-items: end; }

.signposts { align-items: end; }
.signpost a { gap: 0.3rem; text-align: center; }
.sign-art { display: block; width: 100%; height: auto; transition: transform 0.15s; }
.signpost a:hover .sign-art { transform: translateY(-4px) rotate(-1deg); }
.sign-text { font-size: 0.78rem; line-height: 1.25; color: var(--soft-ink); }

.next-art { width: 4rem; height: auto; flex: none; }
.panel-art { display: block; max-height: 13rem; max-width: 80%; width: auto; height: auto; margin: 0 auto 0.4rem; }
.tool-label { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; }
.res-kind { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--blue-wash); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.res-photo { display: grid; gap: 0.3rem; }
.res-photo img { display: block; width: 100%; border: 3px solid var(--ink); border-radius: 8px; }
.res-photo span, .res-audio span { font-weight: 600; }
.res-audio { display: grid; gap: 0.3rem; padding: 0.6rem 0.9rem; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.res-audio audio { width: 100%; }

@media (max-width: 860px) {
  #text-size .tool-label { display: none; }
  .sessions::before { display: none; }
  .sessions { gap: 1.2rem; }
  .session a { display: grid; grid-template-columns: 8rem 1fr; grid-template-areas: none; column-gap: 1rem; align-items: center; text-align: left; }
  .session-art { width: 8rem; max-width: none; transform: none !important; }
  .session-text { align-items: flex-start; }
  .session-text .ring-num, .session-text .ring-date { display: block; }
  .session-text .ring-title { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
  .sign-art { max-width: 10.5rem; margin: 0 auto; }
  .sign-text { font-size: 0.95rem; color: var(--ink); }
  .tabbar a { font-family: var(--hand); font-size: 1.2rem; font-weight: 400; min-height: 3.4rem; }
  :root { --tabbar: calc(3.4rem + env(safe-area-inset-bottom, 0px)); }
}

/* ================= the two doors: /enter and /team ================= */
.door { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 1.5rem 1rem; }
.door-title { width: min(100%, 34rem); height: auto; }
.door-card { width: min(100%, 26rem); padding: 1.5rem; background: var(--paper); border: 4px solid var(--red); border-radius: 10px; }
.door-card h1 { font-size: 2.2rem; }
.door-card .field { border-top: 0; padding: 0.5rem 0; }
.door-card .big-button { width: 100%; margin-top: 0.8rem; border: 0; font-size: 1.1rem; cursor: pointer; }
.door-error { padding: 0.6rem 0.8rem; background: #fde8ea; border-left: 6px solid var(--red); border-radius: 6px; font-weight: 600; }
.door-help { font-size: 0.85rem; color: var(--soft-ink); overflow-wrap: anywhere; }

/* ================= edit mode (team only) ================= */
.edit-banner { padding: 0.6rem 1rem; background: var(--yellow); color: var(--ink); text-align: center; font-size: 0.9rem; }
.edit-banner button { margin-left: 0.4rem; font: 700 0.85rem var(--text); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer; }
.panel-edit { min-height: 48px; margin-left: auto; padding: 0.4rem 1.2rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); font: 700 0.95rem var(--text); cursor: pointer; }
.edit-form h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.field { padding: 0.8rem 0; border-top: 2px dashed var(--line); }
.field > label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field-hint { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--soft-ink); }
.field input:not([type="radio"]):not([type="file"]), .field textarea { width: 100%; padding: 0.6rem 0.7rem; font: inherit; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; padding: 0.3rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.choice:has(input:checked) { background: var(--green-wash); border-color: var(--green-dark); }
.edit-items { list-style: none; margin-bottom: 0.6rem; display: grid; gap: 0.4rem; }
.edit-items li { display: flex; gap: 0.5rem; align-items: center; }
.add-item, .import-box { display: grid; gap: 0.5rem; padding: 0.8rem !important; background: var(--blue-wash); border-radius: 10px; border-top: 0 !important; margin-top: 0.6rem; }
.add-title { margin: 0; font-weight: 700; }
.file-button, .add-item button, .edit-items button, .edit-history button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.4rem 1rem; text-align: center;
  font: 700 0.95rem var(--text); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; background: #fff; cursor: pointer; white-space: nowrap;
}
.file-button { background: var(--yellow); white-space: normal; }
.file-button:focus-within { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.edit-status { margin: 0; min-height: 1.2em; font-size: 0.9rem; font-weight: 600; }
.edit-error:not(:empty) { padding: 0.6rem 0.8rem; background: #fde8ea; border-left: 6px solid var(--red); border-radius: 6px; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1rem 0; }
.edit-actions .big-button { border: 0; font-size: 1rem; cursor: pointer; }
.edit-history { border-top: 2px dashed var(--line); padding-top: 0.8rem; font-size: 0.9rem; }
.edit-history summary { cursor: pointer; font-weight: 700; }
.edit-history ul { list-style: none; display: grid; gap: 0.5rem; margin-top: 0.6rem; }
.edit-history li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }

/* keep the lifted drawings level with each other on wide screens */
@media (min-width: 861px) {
  .session-art { width: 100%; max-width: none; height: clamp(11rem, 19vw, 16.5rem); object-fit: contain; object-position: center bottom; }
  .sign-art { height: clamp(9rem, 15vw, 12.5rem); object-fit: contain; object-position: center bottom; }
}
@media (min-width: 1181px) { .sign-text { min-height: 6.3em; } }

/* ================= never let a phone's dark mode darken the page ================= */
:root { color-scheme: only light; }
html, body { background-color: var(--desk); color: var(--ink); }
/* the drawings carry their own paper background, so dark ink always sits on light paper */
.session-art, .sign-art, .panel-art, .next-art, .poster-title img, .door-title { background-color: #fffdf7; border-radius: 10px; }
.next-card { background: #fffdf7; }
.door { background: var(--paper); }

/* ================= share, print, contact ================= */
.action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.3rem 1rem;
  font: 700 0.9rem var(--text); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.action:hover { background: var(--green-wash); }
.action[aria-pressed="true"] { background: var(--yellow); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; padding: 0.7rem 0.8rem 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0.8rem 0 0; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.big-button.whatsapp { background: #128c4b; }
.big-button.plain { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.contact .panel-edit { margin: 1rem auto 0; display: block; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 1rem); transform: translateX(-50%); z-index: 60; max-width: 90vw; padding: 0.7rem 1.1rem; background: var(--ink); color: #fff; border-radius: 12px; font-weight: 600; text-align: center; }

/* ================= printing and saving as PDF ================= */
@media print {
  .top, .tabbar, .tools, .hero, .panel-bar, .panel-actions, .page-actions, .edit-banner, .panel-edit, .toast, .skip, .next-go, .key { display: none !important; }
  html, body { background: #fff !important; padding: 0 !important; overflow: visible !important; }
  .poster { box-shadow: none; margin: 0; max-width: none; }
  .block { margin-top: 1rem; }
  .card, .next-card { box-shadow: none; }
  .session, .signpost, .card, .sec, .phase, .faq, .outcome { break-inside: avoid; }
  /* a detail page is open: print just that page */
  html.panel-open main, html.panel-open .foot { display: none !important; }
  .panel { position: static !important; display: block; width: auto !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0 !important; border: 0 !important; overflow: visible !important; }
  .panel::backdrop { display: none; }
  .panel-body { padding: 0 !important; }
  .resources a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 0.8em; overflow-wrap: anywhere; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the printed map: a compact poster whatever the screen size */
@page { margin: 12mm; }
@media print {
  html { font-size: 10pt !important; }
  .poster { padding: 0.8rem !important; border-width: 3px; outline: 0; }
  .poster-title img { width: 70%; }
  .section-title { text-align: center !important; font-size: 1.3rem !important; margin: 0.6rem 0 0.4rem !important; }
  .only-small { display: block; }
  .arc, .sessions::before, .timeline::before, .phase-dot, .here { display: none !important; }
  .sessions-wrap, .timeline-wrap, .decisions-wrap { margin-top: 0.6rem !important; padding-top: 0 !important; }
  .sessions { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 0.5rem !important; align-items: end; }
  .session a { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; min-height: 0; }
  .session-art { width: 100% !important; height: 8.5rem !important; object-fit: contain; }
  .session-text { align-items: center !important; }
  .session-text .ring-num { display: none !important; }
  .session-text .ring-date { display: block !important; font-size: 0.8rem; }
  .session-text .ring-title { font-family: var(--text) !important; font-size: 0.8rem !important; color: var(--ink) !important; }
  .timeline { display: flex !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 0.4rem !important; padding: 0 !important; }
  .phase { flex: 0 0 auto; }
  .phase a { display: flex !important; flex-direction: column-reverse; align-items: center; text-align: center; }
  .phase-pill { min-height: 0 !important; margin: 0 !important; padding: 0.2rem 0.7rem !important; font-size: 0.9rem !important; border-width: 2px; border-radius: 999px !important; width: auto; }
  .phase-when { height: auto !important; padding: 0.1rem 0 0 !important; font-family: var(--text); font-size: 0.7rem !important; }
  .signposts { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 0.5rem !important; }
  .sign-art { height: 7rem !important; width: 100%; max-width: none !important; object-fit: contain; }
  .sign-text { min-height: 0 !important; font-size: 0.75rem !important; color: var(--ink) !important; }
  .cards { grid-template-columns: repeat(3, 1fr) !important; gap: 0.5rem; }
  .card { padding: 0.4rem 0.6rem; border-width: 2px; }
  .block-title { font-size: 1.5rem; } .block-sub { margin-top: 0.8rem; }
  .contact { border: 0; padding: 0.5rem; }
}
@media print {
  .contact-buttons { flex-direction: column; align-items: center; gap: 0.2rem; }
  .contact-buttons a { background: none !important; color: var(--ink) !important; border: 0 !important; padding: 0; min-height: 0; }
  .contact-buttons a[data-info]::after { content: ": " attr(data-info); font-weight: 400; }
  .contact-buttons .whatsapp { display: none; }
}

/* ================= the arc on phones and in print ================= */
.arc-strip { display: none; position: relative; height: 8.4rem; margin: 1rem 0 0; color: var(--ink); text-decoration: none; }
.arc-svg { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 3.4rem); overflow: visible; }
.arc-svg path { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.arc-line { position: absolute; left: 0; right: 0; bottom: 3.4rem; height: 3px; margin-bottom: -1.5px; background: var(--red); border-radius: 2px; }
.arc-dot { position: absolute; bottom: 3.4rem; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--paper); border: 3px solid var(--red); }
.arc-dot.is-now { background: var(--red); width: 16px; height: 16px; margin: 0 0 -8px -8px; }
.arc-label { position: absolute; left: 0; right: 0; top: 38%; transform: translateY(-50%); text-align: center; font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; }
.arc-here { position: absolute; bottom: 1.5rem; transform: translateX(-50%); padding: 0.1rem 0.6rem; background: var(--red); color: #fff; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.arc-from, .arc-to { position: absolute; bottom: 0; font-family: var(--hand); font-size: 0.95rem; color: var(--soft-ink); }
.arc-from { left: 0; } .arc-to { right: 0; }

/* ================= balance: level circles, level signposts, centred lists ================= */
/* every signpost: same picture height, words start level, labels sit on one line */
.signposts { align-items: stretch !important; }
.signpost a { height: 100%; justify-content: flex-start; }
.sign-art { height: clamp(9rem, 15vw, 12.5rem); width: 100%; object-fit: contain; object-position: center bottom; }
.sign-text { flex: 1; min-height: 0 !important; display: block; text-align: center; }
.signpost .badge { margin-top: 0.2rem; }

@media (min-width: 861px) {
  /* the five green circles drawn at the same size, standing on one line */
  .sessions { align-items: end; }
  .session a { justify-content: flex-end; height: 100%; }
  .session-art { height: auto !important; object-fit: fill; align-self: center; flex: none; }
  .session:nth-child(1) .session-art { width: 106%; max-width: 106%; }
  .session:nth-child(2) .session-art { width: 84%; }
  .session:nth-child(3) .session-art { width: 71%; }
  .session:nth-child(4) .session-art { width: 70%; }
  .session:nth-child(5) .session-art { width: 78%; }
  .session-text { min-height: 4.6rem; justify-content: flex-start; text-align: center; }
}

@media (max-width: 860px) {
  .arc-strip { display: block; }
  .poster-title img { margin-inline: auto; }
  /* sessions: one picture size, words centred against it */
  .session a { grid-template-columns: 8.5rem 1fr; }
  .session-art { width: 8.5rem; height: 8.5rem; object-fit: contain; object-position: center; }
  /* the journey list sits in the middle of the page instead of hugging the right */
  .timeline { width: fit-content; margin-inline: auto; }
  .timeline::before { left: calc(1.1rem - 3px); }
  .phase a { grid-template-columns: 2.2rem 1fr; column-gap: 0.7rem; }
  .sign-art { height: 11rem; max-width: none; }
  .sign-text { font-size: 0.95rem; }
  .key { justify-content: center; }
  .section-title, .sessions-wrap .section-title, .decisions-wrap .section-title { text-align: center; }
}

@media print {
  .arc-strip { display: block !important; height: 6.5rem; margin: 0.3rem 8% 0; }
  .arc-here { font-size: 0.6rem; }
  .sign-art { height: 7rem !important; }
  .session a { justify-content: flex-end; height: 100%; }
  .session-text { min-height: 2.6rem; justify-content: flex-start; text-align: center; }
  .timeline { width: auto; }
}
@media print {
  .arc-strip { height: 9.5rem; }
  .sessions { align-items: end !important; }
  .session-art { height: auto !important; object-fit: fill !important; }
  .session:nth-child(1) .session-art { width: 106% !important; max-width: 106%; }
  .session:nth-child(2) .session-art { width: 84% !important; }
  .session:nth-child(3) .session-art { width: 71% !important; }
  .session:nth-child(4) .session-art { width: 70% !important; }
  .session:nth-child(5) .session-art { width: 78% !important; }
}

/* contact buttons: one width each, words dead centre, stacked on phones */
.contact-buttons { margin: 1rem auto 0; }
.contact-buttons .big-button { display: flex; align-items: center; justify-content: center; text-align: center; flex: 0 0 12.5rem; width: 12.5rem; min-height: 52px; padding: 0.6rem 1rem; line-height: 1.2; box-sizing: border-box; }
@media (max-width: 860px) {
  .contact-buttons { flex-direction: column; align-items: center; }
  .contact-buttons .big-button { flex: none; width: min(100%, 17rem); }
}

/* the contact block is centred at every width, and in print */
.contact { margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 860px) { .contact { width: calc(100% - 1rem); } }
@media print {
  .contact { max-width: none; width: auto; text-align: center; padding: 0.5rem 0 0 !important; background: none; }
  .contact-buttons { display: block !important; margin: 0.4rem 0 0; text-align: center; }
  .contact-buttons .big-button { display: block !important; width: auto !important; min-height: 0 !important; padding: 0.1rem 0 !important; flex: none; text-align: center; overflow-wrap: normal; }
  .contact-buttons .whatsapp { display: none !important; }
  .foot { max-width: none; }
}

/* ================= before we met: the invitation and the partners ================= */
/* the first stage is drawn dashed, like the start of the red line on the poster */
.phase.is-before .phase-pill { border-style: dashed; border-color: var(--red); background: var(--paper); }
.phase.is-before .phase-dot { border-style: dashed; }
.phase.is-before .phase-when { font-style: italic; }
.flyer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.flyer a { display: block; }
.flyer img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.partners { list-style: none; padding: 0 !important; display: grid; gap: 0.7rem; margin-top: 0.6rem; }
.partner { display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; align-items: center; margin: 0 !important; padding: 0.8rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; }
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 4.2rem; }
.partner-logo img { display: block; max-width: 100%; max-height: 4.6rem; width: auto; height: auto; }
.partner-logo.is-name, .partner-tile.is-name { font-family: var(--hand); font-size: 1.15rem; line-height: 1.1; text-align: center; color: var(--ink); }
.partner-text { display: block; font-size: 0.95rem; line-height: 1.45; }
.partner-text strong { display: block; font-family: var(--hand); font-weight: 400; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.15rem; }
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.6rem; padding: 1rem 1.2rem; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--green); text-decoration: none; color: var(--ink); }
.partner-strip:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--green); }
.partner-tile { display: flex; align-items: center; justify-content: center; min-height: 3.4rem; max-width: 11rem; }
.partner-tile img { display: block; max-height: 3.4rem; max-width: 100%; width: auto; height: auto; }
.partner-tile.is-name { padding: 0.3rem 0.8rem; border: 2px dashed var(--brown); border-radius: 10px; max-width: 9.5rem; }
@media (max-width: 860px) {
  .flyer { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.4rem; }
  .flyer a { scroll-snap-align: center; }
  .partner { grid-template-columns: 1fr; text-align: center; gap: 0.4rem; }
  .partner-strip { margin-inline: 0; }
}
@media print {
  .flyer { grid-template-columns: repeat(3, 1fr) !important; overflow: visible; }
  .partner, .partner-strip { break-inside: avoid; box-shadow: none; }
  .partner-strip .next-go { display: none; }
}
.partner.no-logo { grid-template-columns: 1fr; border-style: dashed; }

/* a partner whose own mark is its name on a coloured disc */
.mark { display: flex; align-items: center; justify-content: center; text-align: center; font: 700 0.8rem/1.15 var(--text); border-radius: 50%; }
.mark-lopf { width: 5.6rem; height: 5.6rem; padding: 0.5rem; background: #271547; color: #bfe6f7; }
.partner-tile .mark-lopf { width: 4.6rem; height: 4.6rem; font-size: 0.66rem; }

/* ================= harvest sheets ================= */
.sheet-links { display: grid; gap: 0.6rem; margin-bottom: 0.8rem; }
.sheet-link { position: relative; display: block; padding: 0.8rem 2.4rem 0.8rem 1rem; background: #fff3c4; border: 3px solid var(--ink); border-radius: 4px 14px 4px 14px; color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--yellow); }
.sheet-link strong { display: block; font-family: var(--hand); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.sheet-link span { font-size: 0.9rem; }
.sheet-link .next-go { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.note-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 1rem 0; border-top: 2px dashed var(--line); align-items: start; }
.note-group h3 { display: inline-block; padding: 0.3rem 0.8rem; font-size: 1.5rem; border: 3px solid var(--ink); text-transform: uppercase; letter-spacing: 0.03em; transform: rotate(-1.5deg); }
.note-about { margin: 0.5rem 0 0.6rem; font-size: 0.85rem; color: var(--soft-ink); }
.notes { list-style: none; padding: 0 !important; display: grid; gap: 0.5rem; }
.notes li { margin: 0 !important; padding: 0.7rem 0.8rem; font-family: var(--hand); font-size: 1.2rem; line-height: 1.15; color: var(--ink); box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18); }
.notes li:nth-child(odd) { transform: rotate(-0.8deg); }
.notes li:nth-child(even) { transform: rotate(0.7deg); }
.note-orange h3, .note-orange .notes li { background: #f8a84a; }
.note-pink h3, .note-pink .notes li { background: #f472b0; }
.note-green h3, .note-green .notes li { background: #a9de5c; }
.note-yellow h3, .note-yellow .notes li { background: #ffe066; }
.note-blue h3, .note-blue .notes li { background: #9fd0f2; }
.voices { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 0.6rem; }
.voices li { margin: 0 !important; padding: 0.9rem 1rem; background: #fff; border: 2px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px; }
.voices blockquote { margin: 0; font-size: 0.98rem; line-height: 1.5; }
.voices blockquote::before { content: "\201C"; } .voices blockquote::after { content: "\201D"; }
.voices cite { display: block; margin-top: 0.4rem; font-family: var(--hand); font-style: normal; font-size: 1.2rem; }
.closing { font-family: var(--hand); font-size: 1.3rem; font-weight: 400; line-height: 1.3; background: var(--green-wash); border-left-color: var(--green-dark); }
@media (max-width: 860px) {
  .note-groups { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
}
@media print {
  .note-groups { grid-template-columns: repeat(3, 1fr) !important; }
  .voices { grid-template-columns: repeat(2, 1fr) !important; }
  .note-group, .voices li, .notes li { break-inside: avoid; }
  .notes li { box-shadow: none; font-size: 1rem; }
}
.panel-body { overflow-x: hidden; }

/* ================= harvest sheets: real marker strokes instead of drawn boxes =================
   frame-brown.webp is the frame of a signpost from the wall graphic, emptied.
   line-red.webp is a length of the poster's red marker border. */
.sheet .sec, .sheet .note-groups { border-top: 0; padding-top: 1.9rem; background: url("art/line-red.webp") top center / 100% 0.55rem no-repeat; }
.sheet .panel-head + .sec { background: none; padding-top: 0.4rem; }
.sheet .note-group h3.note-head { display: block; padding: 0; border: 0; background: none !important; transform: rotate(-2deg); max-width: 11rem; }
.sheet .note-group:nth-child(2) h3.note-head { transform: rotate(1.5deg); }
.sheet .note-head img { display: block; width: 100%; height: auto; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18); }
.sheet .voices li, .sheet-link {
  background: none; border: 1.35rem solid transparent; border-radius: 0; box-shadow: none;
  border-image: url("art/frame-brown.webp") 62 / 1.35rem / 0.25rem stretch;
}
.sheet .voices li { padding: 0.5rem 0.6rem; }
/* The same stroke mirrored and turned, at slightly different weights, so neighbouring frames never match. */
.sheet .voices li:nth-child(4n+1) { transform: rotate(-0.4deg); }
.sheet .voices li:nth-child(4n+2) { transform: rotate(0.6deg); border-width: 1.2rem; border-image: url("art/frame-brown-d.webp") 62 / 1.2rem / 0.2rem stretch; }
.sheet .voices li:nth-child(4n+3) { transform: rotate(0.25deg); border-width: 1.45rem; border-image: url("art/frame-brown-b.webp") 62 / 1.45rem / 0.3rem stretch; }
.sheet .voices li:nth-child(4n+4) { transform: rotate(-0.7deg); border-width: 1.28rem; border-image: url("art/frame-brown-c.webp") 62 / 1.28rem / 0.22rem stretch; }
.sheet-link { border-image-source: url("art/frame-brown-c.webp"); }
.sheet .voices cite { text-align: right; font-size: 1.35rem; }
.sheet-link { padding: 0.4rem 2rem 0.4rem 0.6rem; }
.sheet-link:hover { transform: rotate(-0.4deg); }
.sheet .closing { margin: 0; padding: 2.2rem 0.5rem 0.6rem; background: url("art/line-red.webp") top center / 100% 0.55rem no-repeat; border: 0; border-radius: 0; text-align: center; font-size: 1.6rem; line-height: 1.25; }
.sheet .poster-photo { border: 0; border-radius: 0; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.15); transform: rotate(-0.5deg); }

/* Small headings inside a list of points ("What we love about Leeds:", "From Session Two:") */
.sec .list-head { font-family: var(--hand, inherit); font-size: 1.15rem; font-weight: 400; margin: 1.1rem 0 0.25rem; }
.sec .list-head:first-child { margin-top: 0.2rem; }

/* ================= dark mode, belt and braces =================
   Up-to-date Chrome obeys "color-scheme: only light" above. Some phone browsers,
   Samsung Internet in particular, only stop forcing their own dark theme when a site
   shows it handles dark mode itself. This block is that signal: in dark mode the site
   deliberately stays exactly as it is, dark ink on light paper. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; }
  html, body { background-color: var(--desk); color: var(--ink); }
  .panel, .panel-bar { background-color: var(--paper); color: var(--ink); }
}
/* A printout or PDF is always on white paper, whatever the phone's setting. */
@media print {
  :root { color-scheme: only light; }
  html, body, main, .panel, .panel-body { background: #fff !important; color: var(--ink) !important; }
}

/* ================= gallery =================
   Pictures sit straight on the paper, slightly crooked, with no card boxes (see BRAND.md 4c). */
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 0.2rem 0 1.4rem; }
.g-filters .chip span { opacity: 0.7; font-size: 0.85em; }
.g-filters .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.8rem 1.4rem; align-items: start; }
.g-grid .g-graphic { grid-column: 1 / -1; }
.g-item { margin: 0; }
.g-item a { display: block; }
.g-item img { display: block; width: 100%; height: auto; background: #fffdf7; }
.g-grid .g-item:nth-child(odd) img { transform: rotate(-0.6deg); }
.g-grid .g-item:nth-child(even) img { transform: rotate(0.5deg); }
.g-item figcaption { margin-top: 0.55rem; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9rem; line-height: 1.35; }
.g-item figcaption strong { font-family: var(--hand); font-size: 1.2rem; font-weight: 400; line-height: 1.2; }
.g-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--soft-ink); }
.g-tag + .g-tag::before { content: "· "; }
.g-credit { color: var(--soft-ink); font-style: italic; }
.g-item.is-big { margin: 0.3rem 0 1.2rem; }
.g-more { margin: 1.1rem 0 0; }
@media print {
  .g-filters, .g-more { display: none !important; }
  .g-item { break-inside: avoid; }
  .g-grid .g-item img { transform: none; }
}

/* edit mode: the gallery list */
.edit-gallery { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 1rem; }
.edit-gallery li { display: grid; grid-template-columns: 6rem 1fr; gap: 0.4rem 0.8rem; padding: 0.7rem 0; border-top: 2px dashed var(--line); }
.edit-gallery img { width: 6rem; height: 6rem; object-fit: contain; background: #fffdf7; grid-row: span 6; }
.edit-gallery label { display: grid; gap: 0.15rem; font-size: 0.85rem; font-weight: 700; }
.edit-gallery input, .edit-gallery select, .edit-gallery textarea { font: inherit; font-weight: 400; padding: 0.35rem 0.5rem; }
.edit-gallery .g-row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* The National Lottery Community Fund logo is used whole, with its own clear space,
   and must show at least 125px wide on screen (their logo guidelines), so it gets a taller slot. */
.partner-tile img[src*="national-lottery-community-fund"] { max-height: 5.4rem; }
.partner-logo img[src*="national-lottery-community-fund"] { max-height: 5.6rem; }

/* The funder lockup (Community Fund | Together for Peace) on its own row, wide enough that the
   Fund's logo stays over its 125px minimum. */
.partner-tile.is-lockup { flex: 1 1 100%; max-width: 30rem; min-height: 0; }
.partner-tile.is-lockup img { width: 100%; max-height: none; }
@media (max-width: 480px) { .partner-strip { padding-inline: 0.6rem; } }

/* footer: who built the site, with a tap-to-email name */
.site-credit { margin-top: 0.8rem !important; }
.site-credit .mail-link { color: inherit; font-weight: 700; }

/* invitation page: the funder and Together for Peace share one row under their logo pair,
   which spans the row so the Fund's logo stays over its 125px minimum */
.partner.is-lockup { grid-template-columns: 1fr; }
.partner.is-lockup .partner-logo { justify-content: flex-start; }
.partner.is-lockup .partner-logo img { width: min(100%, 28rem); max-height: none; }
.partner.is-lockup .pair-org { display: block; }
.partner.is-lockup .pair-org + .pair-org { margin-top: 0.7rem; }
@media (max-width: 560px) { .partner.is-lockup { padding-inline: 0.35rem; } .partner.is-lockup .partner-logo { justify-content: center; } }
/* On narrow phones let the logo pair use the padding around it, so the Fund's logo stays at 125px or more */
@media (max-width: 400px) {
  .panel-body { padding-left: 0.6rem; padding-right: 0.6rem; }
  .partner.is-lockup { padding-inline: 0; }
  .partner.is-lockup .partner-logo img { width: 100%; }
  .partner.is-lockup .partner-text { padding-inline: 0.6rem; }
  .partner-tile.is-lockup { margin-inline: -0.6rem; max-width: none; }
}

/* ================= edit mode: calmer and harder to get wrong ================= */
.edit-intro { margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; background: var(--green-wash); border-radius: 10px; }
.is-editing .panel-actions, .is-editing .panel-bar .panel-edit { display: none !important; }
.edit-actions { position: sticky; bottom: 0; z-index: 3; align-items: center; background: var(--paper); border-top: 2px solid var(--line); padding: 0.8rem 0 !important; }
.edit-actions .big-button { min-width: 8rem; }
.edit-actions-note { font-size: 0.85rem; color: var(--soft-ink); }
details.import-box > summary { cursor: pointer; font-weight: 700; }
details.import-box[open] > summary { margin-bottom: 0.4rem; }
.panel-note { margin-left: auto; font-size: 0.85rem; color: var(--soft-ink); text-align: right; max-width: 14rem; }
.panel-note[hidden] { display: none; }
.toast.is-saved { background: var(--green-dark); }
/* clip (not hidden) so the page body is not its own scroller and the Save bar can stay in view */
.panel-body { overflow-x: clip; }
.edit-gallery .g-row-actions { grid-column: 2; }
.edit-gallery .g-row-actions button { min-height: 40px; padding: 0.3rem 0.9rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: 600 0.9rem var(--text); color: var(--ink); cursor: pointer; }
.edit-gallery .g-row-actions button[data-gremove] { border-color: #a33; color: #a33; }

/* the how-to video on the help page */
.help-video { display: block; width: min(100%, 22rem); margin: 0.4rem auto; border: 3px solid var(--ink); border-radius: 18px; background: var(--desk); }
