/* Handbill: the calm direction. Palette and type from docs/design; spacing and radii from Open Props. */

:root {
  --stone: #f3f1ec;
  --paper: #fbfaf7;
  --linen: #e4dfd5;
  --olive: #4b5244;
  --ink: #2b2925;
  --ink-soft: #45413b;
  --muted: #6b665e;
  --rule: #d6d0c4;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 4px;
  --page: 1160px;
  --gutter: var(--size-7, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: var(--olive); }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between;
  gap: var(--size-3, 16px); flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 30px; line-height: 1; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 16px; }
.nav a { text-decoration: none; }
.nav-explore, .nav-mine { display: contents; }
.me-menu, .me-signin { display: none; }
/* The phone-only copies of Ask Bill and My interests in the explore row (wider screens have them on the right) */
.nav-phone { display: none; }
@media (max-width: 1080px) and (min-width: 701px) { .nav { gap: 20px; } }
/* Phones: one row of places to explore that scrolls sideways, and everything personal behind the Me circle */
@media (max-width: 700px) {
  .site-header .wrap { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; padding-bottom: 0; }
  .nav { grid-column: 1 / -1; grid-row: 2; display: block; margin-inline: calc(-1 * var(--gutter)); }
  .nav-explore { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 14px; }
  .nav-explore::-webkit-scrollbar { display: none; }
  .nav-explore a { white-space: nowrap; flex: none; }
  /* Only when the row is wider than the screen (handbill.js sets is-scrolling): fade the edge as a hint to swipe,
     with room after the last item so it can be scrolled clear of the fade */
  .nav-explore.is-scrolling { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
                                      mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .nav-explore.is-scrolling a:last-child { padding-right: 28px; }
  .nav-mine { display: none; }
  .nav-explore .nav-phone { display: inline; }
  .me-menu, .me-signin { display: block; }
}
.me-menu { position: relative; }
.me-menu summary { list-style: none; cursor: pointer; }
.me-menu summary::-webkit-details-marker { display: none; }
.me-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--olive); color: var(--paper);
  display: grid; place-items: center; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.me-circle.is-three { font-size: 13px; letter-spacing: 0; }
.me-menu[open] .me-circle { outline: 3px solid var(--linen); }
.me-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 8px 24px rgb(43 41 37 / .12); padding: 8px;
  display: flex; flex-direction: column; }
.me-panel a, .me-panel button { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font: inherit;
  font-size: 16px; color: var(--ink); background: none; border: 0; text-align: left; width: 100%; cursor: pointer; }
.me-panel a:hover, .me-panel button:hover { background: var(--stone); color: var(--ink); }
.me-panel form { margin: 4px 0 0; border-top: 1px solid var(--rule); padding-top: 4px; }
.me-signin { text-decoration: none; font-weight: 600; }
.picks-invite { padding: 16px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.picks-invite p { margin: 0; flex: 1 1 280px; }
/* What's on: the Just my picks / All events switch */
.view-switch { display: inline-flex; background: var(--linen); border-radius: 999px; padding: 4px; gap: 4px; align-self: flex-start; }
.view-switch a { padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.view-switch a[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-switch a[aria-pressed="true"] .muted { color: var(--linen); }
.pager { display: flex; gap: 12px; justify-content: center; }
.find-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.find-form label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; font-weight: 600; }
/* Search boxes (style guide: Search forms): What's on's What? and Where?, and the boxes on Venues and Topics */
.find-form input, .search-box { height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper); font: 400 16px var(--sans); color: var(--ink); box-sizing: border-box; }
.search-box { width: 100%; max-width: 420px; }
.find-form input::placeholder, .search-box::placeholder { color: var(--muted); }
.find-form .btn { height: 48px; }
.find-form .find-when { flex: 0 1 200px; }
.find-form select { height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font: inherit; font-weight: 400; color: var(--ink); }
.grid-invite { grid-column: 1 / -1; padding: 20px 24px; border-radius: 12px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.grid-invite p { margin: 0; flex: 1 1 280px; font-size: 18px; }
.nav a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--olive); text-decoration-thickness: 3px; text-underline-offset: 9px; }

/* main.wrap, not main: the .wrap rule's padding shorthand would otherwise reset the top and bottom */
main.wrap { padding-block: 24px; display: flex; flex-direction: column; gap: 40px; }

/* Breadcrumb trail: Handbill › Topics › Music › Choral */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 15px;
  color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--rule); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--olive); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); }
main.wrap > .crumbs { margin-bottom: -11px; }
/* Phones: no breadcrumb trail; it took space and broke the layout for little use (the menu and Back do the job) */
@media (max-width: 700px) { main.wrap > .crumbs { display: none; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hero-text { display: flex; flex-direction: column; gap: 14px; max-width: 884px; }  /* 680px + 30% (28 Nov 2026), so standfirsts don't wrap early */
/* Every page heading is the same size (style guide: Page headings); only the home page and event titles are larger */
.hero h1, .page-title { font-size: clamp(38px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.015em; }
.hero p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft);
  background: var(--linen); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; }

/* Buttons and chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
#chip-groups { display: flex; flex-direction: column; gap: 16px; }
.chip, .btn { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 0;
  border-radius: var(--radius); background: var(--linen); color: var(--ink); font: 500 15px var(--sans);
  text-decoration: none; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--stone); }
.chip:hover, .btn:hover { color: var(--ink); background: var(--rule); }
.chip[aria-pressed="true"]:hover { background: var(--olive); color: var(--stone); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--stone); }
.btn-dark:hover { background: var(--olive); color: var(--stone); }
.btn-danger { background: #8a3324; color: var(--paper); }
.btn-danger:hover { background: #6e271b; color: var(--paper); }
.btn-link { background: transparent; text-decoration: underline; padding: 0 12px; }
.btn-link:hover { background: transparent; }
button.btn-link { border: 0; background: transparent; color: var(--ink); font: inherit; text-decoration: underline;
  text-underline-offset: 4px; cursor: pointer; padding: 0; }
button.btn-link:hover { color: var(--olive); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Event cards */
.picks { display: flex; flex-direction: column; gap: 32px; }

/* More space between rows than within a card, so title, venue and Add read as one with the image above */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 46px 28px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .art-link { display: block; height: 210px; border-radius: var(--radius); overflow: hidden; }
.card .when { font-size: 14px; color: var(--muted); }
.card .title { font-family: var(--serif); font-size: 25px; line-height: 1.15; text-decoration: none; margin-top: 4px; margin-bottom: -4px; }  /* 6px to the date line, not 10 */
/* Cards in a row are as tall as the tallest; the foot (date, venue, Add) sits at the bottom of each,
   so every row's feet line up however long the titles are */
.card .foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; }
.card .where { font-size: 15px; color: var(--ink-soft); }
/* Venue names link to the venue page: same colour as the text, underlined on hover */
.venue-link { color: inherit; text-decoration: none; }
.venue-link:hover { color: var(--olive); text-decoration: underline; }
.card .why { font-size: 13px; color: var(--muted); opacity: 0.8; }
.card .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card .btn { height: 44px; flex-shrink: 0; }
.cancelled .title { text-decoration: line-through; color: var(--muted); }
.flag { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8a3b2e; }

.art { width: 100%; height: 100%; display: flex; }
.art svg { width: 100%; height: 100%; }

.empty { padding: 32px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink-soft); }

/* Section headings */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.section-head h2 { font-size: 30px; }

/* Event page */
.feature { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feature .art-frame { height: clamp(220px, 32vw, 380px); border-radius: var(--radius); overflow: hidden; }
.feature figcaption { font-size: 13px; color: var(--muted); }
.event-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.event-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.event-main h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.event-main .lede { margin: 0; font-family: var(--serif); font-size: 23px; color: var(--ink-soft); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; }
.prose { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.6; max-width: 640px; }
.aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 32px; }
.aside h2 { font-size: 24px; }
.aside p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.mini { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--rule); padding: 14px 0; }
.mini:last-child { border-bottom: 1px solid var(--rule); }
.mini .thumb { width: 72px; height: 48px; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.mini a { font-family: var(--serif); font-size: 18px; text-decoration: none; line-height: 1.2; }
.mini span { font-size: 14px; color: var(--muted); }
.dates { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.dates li { padding: 6px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: 15px; }
.dates li.current { font-weight: 600; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { font-size: 14px; padding: 6px 12px; background: var(--linen); border-radius: 999px;
  text-decoration: none; }
.note { font-size: 14px; color: var(--muted); margin: 0; }
.check { font-size: 14px; background: var(--paper); border-left: 3px solid var(--olive); padding: 10px 14px;
  margin: 0; color: var(--ink-soft); }

/* Lists of venues, organisers, tags */
.columns { columns: 3 260px; column-gap: 40px; }
/* Quiet search boxes: at the top of Venues and Topics, and inside My interests */
.quiet-search { width: 100%; max-width: 360px; font: 15px var(--sans); padding: 8px 12px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.quiet-search::placeholder { color: var(--muted); opacity: 0.6; }
.page-search { margin: -14px 0 -8px; }
@media (max-width: 640px) { .page-search { margin-bottom: 2px; } }  /* phones: 10px more before the first group (Elsewhere) */  /* close under the standfirst, so it reads as part of the heading (Topics, Venues) */
.on-deck:not(:empty) { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; }
.on-deck-label { margin: 0; }
.topic-results li { padding: 4px 0; }
/* Like / Love beside a topic: on hover with a mouse only; touch screens use the topic page instead */
.topic-stance { font: 400 12px var(--sans); color: var(--muted); margin-left: 8px; white-space: nowrap; }
.topic-stance form { display: inline; }
.topic-stance button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.topic-stance button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.topic-set { opacity: 0.5; }
.topic-hover { display: none; }
@media (hover: hover) and (pointer: fine) {
  .topic-row:hover .topic-hover, .topic-row:focus-within .topic-hover { display: inline; opacity: 0.5; }
}
.columns section { break-inside: avoid; margin-bottom: 28px; }
.columns h2 { font-size: 22px; margin-bottom: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 4px 0; }
.plain .count { color: var(--muted); font-size: 14px; }

/* Calendar settings */
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 26px; }
[id] { scroll-margin-top: 16px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.panel-row { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.copy { font-family: ui-monospace, monospace; font-size: 13px; background: var(--stone); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 10px 12px; width: 100%; color: var(--ink); }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-row .copy { flex: 1; min-width: 0; }
.copy-button { flex-shrink: 0; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: var(--linen); color: var(--ink); cursor: pointer; }
.copy-button:hover { background: var(--rule); }
.copy-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.copy-button .icon-done, .copy-button.is-copied .icon-copy { display: none; }
.copy-button.is-copied .icon-done { display: block; }
.copy-button.is-copied { background: var(--olive); color: var(--stone); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choices .btn { justify-content: center; height: 54px; }
.messages { list-style: none; margin: 0; padding: 0; }
.messages li { background: var(--linen); padding: 12px 16px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.messages li + li { margin-top: 8px; }
.messages .dismiss { flex: none; border: 0; background: transparent; color: var(--muted); opacity: 0.6; font: 400 22px/1 var(--sans);
  padding: 0 2px; cursor: pointer; }
.messages .dismiss:hover, .messages .dismiss:focus-visible { opacity: 1; color: var(--ink); }
/* Example text in empty boxes: very light everywhere, as in Your details */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.45; }
/* A small note beside a field's title, e.g. (at least 8 characters) */
.aside-hint { font-size: 12px; color: var(--muted); opacity: 0.6; margin-left: 4px; }
/* Form fields (style guide: Forms): every box looks like the search boxes: 48px, 10px corners, paper, 16px */
select, textarea, input:is([type=email], [type=password], [type=text], [type=tel], [type=url], [type=number]) {
  font: 400 16px var(--sans); height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper); color: var(--ink); box-sizing: border-box; }
textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
/* A radio button or checkbox and its words: centred on one line, with room between them.
   :where() keeps this weak, so layouts such as the volume dial can still set their own. */
:where(label:has(> input[type=radio], > input[type=checkbox])) { display: inline-flex; align-items: center;
  gap: 12px; min-height: 44px; cursor: pointer; }

/* Expandable sections: the arrow sits inside the box, in line with headings and keylines, not hanging outside */
summary { cursor: pointer; list-style-position: inside; }
summary::marker { color: var(--olive); }

/* Dropdowns: our own arrow, set in from the right edge (the browser's sits hard against it) */
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234b5244' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form label { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.form label:has(> input[type=checkbox], > input[type=radio]) { flex-direction: row; align-items: center; gap: 12px;
  align-self: flex-start; color: var(--ink); }

/* My interests (spec 4.4, design ob-interests) */
.profile-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.profile-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.profile-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
/* You panel, top of the side column on My interests */
.you-panel { display: flex; flex-direction: column; gap: 24px; }
.you-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.you-who h2, .you-who p { margin: 0; overflow-wrap: anywhere; }
.you-who .btn, .count-panel .btn { align-self: flex-start; }
.you-who .btn { margin-top: 6px; }  /* 10px above, as above See my picks */
.you-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.you-stats div { display: flex; flex-direction: column; align-items: center; gap: 0; }
.you-stats dd { margin: 0; }  /* same size and weight as the match count */
.you-stats dt { font-size: 13px; color: var(--muted); margin-top: -2px; }
.you-links { display: flex; align-items: flex-start; gap: 16px; margin-top: -8px; }
.you-links form { display: flex; }
.footer-signout { display: inline; }
/* Sign out in the footer looks exactly like the Privacy link beside it */
.footer-signout button { display: inline; border: 0; background: none; padding: 0; font: inherit; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.footer-signout button:hover { color: var(--olive); }
a.quiet-link { display: block; }
.profile-section { display: flex; flex-direction: column; gap: 16px; }
.profile-section h2 { font-size: 28px; }
.profile-section h2 + * { margin-top: -8px; }  /* a heading and the line under it belong together */
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.chip-group { border-top: 1px solid var(--rule); padding-top: 16px; display: grid;
  grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.chip-group h3 { font-size: 21px; }
.chips form { display: contents; }
.tag-chip { height: auto; min-height: 38px; padding: 6px 14px; background: transparent; border: 1px solid var(--rule); text-align: left; }
/* Hovering an unpicked chip lightens it (paper, darker edge), so it never looks like "like" (linen) */
.tag-chip:not(.is-like):not(.is-love):not(.is-avoid):hover { background: var(--paper); border-color: var(--muted);
  color: var(--ink); }
.tag-chip.is-like, .tag-chip.is-like:hover { background: var(--linen); border-color: var(--olive); color: var(--ink); }
.tag-chip.is-love { background: var(--olive); border-color: var(--olive); color: var(--stone); }
.tag-chip.is-love:hover { background: var(--ink); color: var(--stone); }
.tag-chip.is-avoid, .rule-chip.is-avoid { color: var(--muted); }
/* Like, love and not-for-me icons on chips */
.stance-icon { width: 16px; height: 16px; margin-right: 7px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stance-icon.is-filled { fill: currentColor; }
.btn.is-watching, .btn.is-watching:hover { background: #fcf5cc; border: 2px solid #e2cd5a; color: var(--ink); }
.btn.is-watching .stance-icon { width: 20px; height: 20px; }
.stance-icon .pupil { fill: currentColor; stroke: none; }
/* Long chip names wrap to a second line, then end in an ellipsis (the full name shows on hover) */
.chip-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
.tag-chip.is-avoid .chip-label, .rule-chip.is-avoid .chip-label { text-decoration: line-through; }
.rule-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 4px 4px 4px 14px;
  border-radius: var(--radius); border: 1px solid #b9b2a5; font-size: 15px; }
.rule-chip form { display: inline; }
.rule-chip button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.rule-chip .chip-remove { width: 32px; height: 32px; font-size: 18px; color: var(--ink); }
.rule-chip .chip-remove:hover { color: var(--olive); }
.rule-chip .chip-tap { display: inline-flex; align-items: center; min-height: 30px; text-align: left; }
.rule-chip.is-like { background: var(--linen); border-color: var(--olive); }
.rule-chip.is-love { background: var(--olive); border-color: var(--olive); color: var(--stone); }
.rule-chip.is-love .chip-remove { color: var(--stone); }
.place-list { list-style: none; margin: 0; padding: 0; }
.place-list li { border-top: 1px solid var(--rule); padding: 14px 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 12px; }
.place-list li:last-child { border-bottom: 1px solid var(--rule); }
.place-name { font-size: 17px; }
.place-note { margin-left: 14px; font-size: 14px; color: var(--muted); }
/* Edit and Remove: light, under the place name */
.place-main { display: flex; flex-wrap: wrap; align-items: baseline; flex: 1 1 300px; min-width: 0; }
.place-links { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 16px; margin-top: 4px; }
.place-links form { display: flex; }
a.quiet-link { text-decoration: none; }
.place-edit summary, .quiet-link { display: block; list-style: none; border: 0; background: transparent; padding: 0;
  margin: 0; font: 12px/1.5 var(--sans); color: var(--muted); opacity: 0.5; text-decoration: none; cursor: pointer; }
.place-edit summary::-webkit-details-marker { display: none; }
.place-edit[open] { flex-basis: 100%; order: 2; }
.place-edit[open] summary { margin-bottom: 10px; }
.place-edit summary:hover, .quiet-link:hover { opacity: 1; color: var(--ink); text-decoration: underline;
  text-underline-offset: 3px; }
.place-form, .inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.place-form label, .inline-form label { display: flex; flex-direction: column; gap: 6px; }
.inline-form label.grow { flex: 1 1 300px; max-width: 440px; }
.inline-form label.grow input { width: 100%; }
.count-panel { gap: 10px; }
.big-number { font-family: var(--serif); font-size: 48px; line-height: 1; }
.dial { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; }
.dial legend { margin-bottom: 8px; }
.dial-option { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 14px; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 6px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--olive); margin: 0; flex-shrink: 0; }
.pick-list { list-style: none; margin: 0; padding: 0; }
.pick-list li { border-top: 1px solid var(--rule); padding: 14px 0; display: grid;
  grid-template-columns: 150px minmax(0, 1fr); gap: 2px 20px; }
.pick-list .when { color: var(--muted); font-size: 15px; grid-row: span 3; }
.pick-list .title { font-family: var(--serif); font-size: 22px; text-decoration: none; line-height: 1.2; }
.pick-list .where { font-size: 15px; color: var(--ink-soft); }
.choices form { display: contents; }

/* Front page (spec 4.2) */
.front-hero { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center;
  padding-block: clamp(24px, 6vw, 64px) 8px; max-width: 760px; margin: 0 auto; width: 100%; }
.front-hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.front-hero .lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 600px; }
.front-hero .small { margin: 0; }
/* Bill as someone you talk to: his mark in a round frame beside a heading */
.bill-says { display: flex; align-items: center; gap: 14px; }
.bill-avatar { flex: none; }
.ask-bill { display: flex; gap: 10px; width: 100%; max-width: 640px; margin-top: 10px; }
.ask-bill input { flex: 1; min-width: 0; height: 58px; font: 400 19px var(--sans); padding: 0 18px;
  border: 1px solid var(--olive); border-radius: var(--radius); background: var(--paper); }
.ask-bill input::placeholder { color: var(--muted); }
.ask-bill input:focus { outline: 2px solid var(--olive); outline-offset: 2px; }
.ask-bill .btn { height: 58px; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding-top: 24px;
  border-top: 1px solid var(--rule); }
.how-step { display: flex; flex-direction: column; gap: 10px; }
.how-step svg { width: 100%; max-width: 220px; height: auto; }
.how-step h3 { font-size: 25px; }
.how-step p, .pitch p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; }
.pitch h2 { font-size: 23px; margin-bottom: 8px; }
.front-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-bottom: 16px; }
.front-cta p { margin: 0; font-family: var(--serif); font-size: 24px; }

/* Sign-up ladder steps in Bill's panel; a step Bill has just asked for is highlighted */
.ladder-step { border-color: var(--olive); }
.ladder-step.is-popped { box-shadow: 0 0 0 3px var(--linen), 0 0 0 4px var(--olive); }
/* Sign-up with Bill: a deliberate break from the stone palette, so the step that keeps their profile can't be missed.
   Lemon while Bill gathers their details, peach once it's asking for a password. Each arrives brighter and settles
   to its resting colour over a second (the first time only: see data-arrive in handbill.js). */
.signup-lemon { --rest: #fcf5cc; --flash: #f9e45c; --edge: #e2cd5a; }
.signup-peach { --rest: #fcdcc8; --flash: #f8a678; --edge: #e8946a; }
.signup-lemon, .signup-peach { background: var(--rest); border: 2px solid var(--edge); }
.signup-lemon input, .signup-peach input { background: #fffdf6; }
.signup-lemon .btn-dark, .signup-peach .btn-dark { background: var(--ink); }
.is-arriving { animation: arrive 1.2s ease-out; }
@keyframes arrive { from { background: var(--flash); box-shadow: 0 0 0 6px var(--flash); } to { background: var(--rest); box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .is-arriving { animation: none; } }

/* Nudge: personalised but not on a phone yet, or gone quiet */
.nudge { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  background: var(--olive); color: var(--stone); border-radius: var(--radius); padding: 16px 20px; }
.nudge p { margin: 0; flex: 1 1 320px; }
.nudge .btn { background: var(--stone); color: var(--ink); }
.nudge .btn:hover { background: var(--paper); color: var(--ink); }
/* The sign-up nudge grows with what a visitor has put in: a quiet strip, then the full banner */
.nudge.is-gentle { background: var(--linen); color: var(--ink); }
.nudge.is-gentle .btn { background: var(--ink); color: var(--stone); }
.nudge.is-insistent { box-shadow: 0 0 0 3px var(--stone), 0 0 0 5px var(--olive); }
.nudge.is-insistent p { font-size: 18px; }

.phone-link { border-top: 1px solid var(--rule); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.phone-link h3 { font-size: 19px; }
.details-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; align-items: start; }
.details-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.details-form .hint { font-size: 13px; opacity: 0.8; }
.details-form select:has(option[value=""]:checked) { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.details-form select option { color: var(--ink); }
.details-form .btn { grid-column: 1 / -1; justify-self: start; }

/* Phone help */
.phone-help details { border-top: 1px solid var(--rule); padding: 4px 0; }
.phone-help details:last-child { border-bottom: 1px solid var(--rule); }
.phone-help summary { font-size: 17px; padding: 12px 0; }
.phone-help details[open] summary { font-weight: 600; }
.phone-help ol { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.phone-help details p { margin: 0 0 12px; }

/* Bill's chat (spec 4.3.2, design ob-chat) */
.bill-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.bill-chat { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Heading row, then "Your guide at Handbill" on its own line as the standfirst, like every other page's hero */
/* Desktop: heading row with the invitation on the right, the standfirst beneath. Phones: heading, standfirst, then the invitation */
.bill-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; padding-bottom: 15px; }
.bill-top .bill-head { grid-area: 1 / 1; }
.bill-top .standfirst { grid-column: 1 / -1; grid-row: 2; }
.bill-top .bill-invite { grid-area: 1 / 2; margin: 0; max-width: 320px; text-align: right; line-height: 1.45; }
.bill-top .standfirst { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.bill-head { display: flex; gap: 14px; align-items: center; }
.bill-head p { margin: 0; }
/* Phones: "Your guide at Handbill" stays with the heading, and the invitation takes its own line beneath */
@media (max-width: 640px) { .bill-top { grid-template-columns: minmax(0, 1fr); } .bill-top .bill-invite { grid-area: 3 / 1; max-width: none; text-align: left; } }
/* The chat starts at the top and grows down as it goes, with the message box just beneath it. Once it fills the
   screen it stops growing and scrolls: newest at the bottom, older messages pushed up out of view */
.chat-log { list-style: none; margin: 0; padding: 4px 8px 4px 0; display: flex; flex-direction: column; gap: 12px;
  max-height: max(320px, calc(100svh - 300px)); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.chat-log::-webkit-scrollbar { width: 6px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
/* Phones: once the chat reaches its top or bottom, the same swipe carries on and scrolls the page (no containing) */
@media (max-width: 640px) { .chat-log { max-height: max(280px, calc(100svh - 240px)); overscroll-behavior: auto; } }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 12px; line-height: 1.5; }
.from-bill { background: var(--paper); border: 1px solid var(--rule); align-self: flex-start;
  font-family: var(--serif); font-size: 19px; border-bottom-left-radius: 3px; }
.from-you { background: var(--olive); color: var(--stone); align-self: flex-end; border-bottom-right-radius: 3px; }
.pending.from-you { opacity: 0.6; }
.thinking { color: var(--muted); font-style: italic; }
/* The dots step through . .. ... and round again */
.thinking .dots { display: inline-block; min-width: 1.2em; }
.thinking .dots::after { content: "..."; animation: thinking-dots 1.6s infinite; }
@keyframes thinking-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@media (prefers-reduced-motion: reduce) { .thinking .dots::after { animation: none; } }
.chat-form { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--stone); padding-block: 10px; }
/* The message box is a search-style box (style guide: Search forms): 48px, 10px corners, paper, 16px */
.chat-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--paper); font: 400 16px var(--sans); color: var(--ink); }
.chat-form .btn { height: 48px; }
.bill-canvas { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
/* New tags announce themselves: a chip Bill has just added flashes lime (like) or peach (love), wobbles, and
   settles. Bright and sharp (it snaps on), held briefly, then a slow 4-second fade: testers missed the softer one */
.rule-chip.is-new { animation: chip-wobble 0.6s ease-out, chip-like 4s ease-out; }
.rule-chip.is-new.is-love { animation: chip-wobble 0.6s ease-out, chip-love 4s ease-out; }
.rule-chip.is-new.is-avoid { animation: chip-wobble 0.6s ease-out; }
.bill-canvas li.is-new { animation: chip-like 4s ease-out; border-radius: var(--radius); }
@keyframes chip-like {
  0%, 25% { background-color: #c8f04a; border-color: #6f9a12; color: var(--ink); box-shadow: 0 0 0 5px rgb(200 240 74 / 0.6); }
}
@keyframes chip-love {
  0%, 25% { background-color: #ffa56b; border-color: #e0662a; color: var(--ink); box-shadow: 0 0 0 5px rgb(255 165 107 / 0.6); }
}
@keyframes chip-wobble {
  0% { transform: scale(0.92); } 30% { transform: scale(1.06) rotate(-2deg); } 55% { transform: rotate(1.5deg); }
  80% { transform: rotate(-0.5deg); } 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rule-chip.is-new, .rule-chip.is-new.is-love, .bill-canvas li.is-new { animation: none; }
  .rule-chip.is-new.is-like, .bill-canvas li.is-new { outline: 2px solid #8fae55; outline-offset: 1px; }
  .rule-chip.is-new.is-love { outline: 2px solid #df9a74; outline-offset: 1px; }
}
.bill-canvas h3 { font-family: var(--sans); font-weight: 500; margin: 0 0 8px; }
.canvas-count { margin: 0; display: flex; align-items: baseline; gap: 10px; color: var(--ink-soft); }
.nearby-notice { margin-top: 10px; padding: 14px 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.nearby-notice p { margin: 0; }
.nearby-notice form { display: flex; gap: 8px; }
.see-matches { align-self: flex-start; margin-top: 4px; }
/* Lemon: the one thing on a panel we most want tapped (See matching events) */
.btn-lemon { background: #f9e45c; border: 2px solid #e2cd5a; color: var(--ink); font-weight: 600; }
.btn-lemon:hover { background: #f5da2e; color: var(--ink); }
.start-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.start-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); flex: 1 1 200px; }

/* A thin key line above the footer on every page, as under the home page's opening */
.site-footer { margin-top: 76px; padding-block: 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.site-footer .wrap::before { content: ""; flex-basis: 100%; border-top: 1px solid var(--rule); }  /* content width, like the home page's */
.footer-block { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; max-width: 460px; }
.footer-title { color: var(--ink); font-weight: 500; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  main.wrap { padding-block: 20px; gap: 28px; }
  /* Stacked on phones: the box keeps the button's full height (flex: 1 would squash it in a column) */
  .ask-bill { flex-direction: column; }
  .ask-bill input { flex: none; height: 58px; }
  .ask-bill .btn { justify-content: center; }
  .chip-group { grid-template-columns: 1fr; gap: 10px; }
  .profile-aside { position: static; }
  .pick-list li { grid-template-columns: 1fr; }
  .pick-list .when { grid-row: auto; }
  .nav { gap: 18px; font-size: 15px; }
  .brand span { font-size: 26px; }
  .event-layout { gap: 40px; }
}
.month { display: flex; flex-direction: column; gap: 24px; }
.month + .month { margin-top: 12px; }  /* a little more air above each later month */

/* Claiming and team pages (spec 4.6) */
.claim-link { margin: 40px 0 0; padding: 16px 20px; background: var(--linen); border-radius: var(--radius); }
.claim-link a { font-weight: 600; }
.claim-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: start; }
.claim-list, .tool-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.claim-results { list-style: none; margin: 0 0 24px; padding: 0; }
.claim-results li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.claim-results li .btn { margin-left: auto; }
.manage-tabs { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.manage-tabs a { padding: 8px 0; text-decoration: none; }
.manage-tabs a[aria-current] { font-weight: 600; text-decoration: underline; }
.table-wrap { overflow-x: auto; }
.manage-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.manage-table th, .manage-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.manage-table th { font-size: 13px; color: var(--muted); font-weight: 500; }
.manage-visibility { margin-top: 32px; }
.run-events { margin-top: 40px; }
.soon { font-size: 13px; color: var(--muted); background: var(--linen); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* Event images (links to the venue's own picture) and the description drawer */
/* Never crop a venue's picture (style guide: Images).
   Cards: one height for the grid, the whole image over a soft, enlarged, blurred copy of itself (the browser
   fetches it once), on linen while it loads. */
.photo-slot { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--linen); }
.photo-slot .photo-backdrop { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px);
  object-fit: cover; filter: blur(20px) saturate(0.9); opacity: 0.6; transform: scale(1.05); }
/* The picture is centred; handbill.js sizes it: fitted whole, then enlarged by up to 10% towards filling the card.
   Without the script it stays fitted whole */
.photo-slot .photo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block;
  width: 100%; height: 100%; max-width: none; object-fit: contain; }
.photo-slot.fills .photo-backdrop { display: none; }
/* Event page: the whole image at its own shape, up to 380px tall, left-aligned; phones: full width, centred */
.feature .photo-frame { display: flex; justify-content: flex-start; }
.feature .event-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 380px;
  border-radius: var(--radius); }
@media (max-width: 700px) {
  .feature .photo-frame { justify-content: center; }
  .feature .event-image { max-height: 60svh; }
}
.feature .credit { color: var(--muted); opacity: 0.85; }
.feature .credit a { color: inherit; }
.description .prose p { margin: 0 0 0.8em; }
.description .prose p:last-child { margin-bottom: 0; }
/* Shut only once the script has run, so without it the whole text shows */
.drawer { overflow: hidden; transition: max-height 0.45s ease; }
.drawer.is-shut { max-height: 11em;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.read-more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: -8px; font: inherit;
  font-size: 16px; color: var(--olive); text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

/* Watch: the dialog after watching a date in a series (every date, or pick the dates) */
.watch-dialog { max-width: 480px; width: calc(100% - 32px); border: 1px solid var(--rule); border-radius: 16px; background: var(--paper);
  color: var(--ink); padding: 28px; box-shadow: 0 16px 48px rgb(43 41 37 / .18); }
.watch-dialog::backdrop { background: rgb(43 41 37 / .4); }
.watch-dialog form { display: flex; flex-direction: column; gap: 16px; }
.watch-dialog h2 { font-size: 26px; margin: 0; }
.watch-dialog p { margin: 0; }
.watch-dialog fieldset { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.watch-dialog legend { padding: 0 6px; color: var(--muted); }
.watch-dates { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.watch-dates label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.watch-dates input { width: 18px; height: 18px; accent-color: var(--olive); }
.watch-dialog .btn-link { align-self: center; }

/* Tooltips: a soft speech bubble above a control, on hover or keyboard focus (style guide: Tooltips).
   Wrap the control in .tip and put the sentence in .tip-bubble (role="tooltip", tied with aria-describedby) */
.tip { position: relative; display: inline-flex; }
.tip-bubble { position: absolute; bottom: calc(100% + 12px); left: 50%; z-index: 30; width: max-content; max-width: 260px;
  padding: 10px 14px; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.4;
  font-weight: 400; text-align: left; box-shadow: 0 8px 24px rgb(43 41 37 / .18); pointer-events: none;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .18s ease, transform .18s ease; transition-delay: 0s; }
.tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: var(--ink); }
.tip:hover .tip-bubble, .tip:focus-within .tip-bubble { opacity: 1; transform: translate(-50%, 0); transition-delay: .3s; }
@media (hover: none) { .tip-bubble { display: none; } }
@media (prefers-reduced-motion: reduce) { .tip-bubble { transition: none; } }

/* Bill's background look through the listings, after his reply; replaced by a follow-up post, or by nothing */
.bill-looking { list-style: none; align-self: flex-start; color: var(--muted); font-size: 14px; font-style: italic; padding: 2px 4px; }
.bill-looking .dots { display: inline-block; min-width: 1.2em; }
.bill-looking .dots::after { content: "..."; animation: thinking-dots 1.6s infinite; }
/* Bill's links: just a little bold, with a fine underline in the rule colour that darkens on hover */
.bubble.from-bill a { color: inherit; font-weight: 500; text-decoration: underline 1px var(--muted); text-underline-offset: 3px; }
.bubble.from-bill a:hover { color: var(--olive); text-decoration-color: var(--olive); }
@media (prefers-reduced-motion: reduce) { .bill-looking .dots::after { animation: none; } }

/* Bill's voice: the mic beside Send. Off: plain. Listening: lime, gently pulsing. Thinking: lemon. Speaking: peach */
.chat-form .mic { width: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.chat-form .mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.chat-form .mic .mic-state { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 12px;
  color: var(--muted); white-space: nowrap; font-weight: 400; }
.chat-form .mic[data-state="listening"] { background: #c8f04a; border-color: #6f9a12; animation: mic-pulse 1.4s ease-in-out infinite; }
.chat-form .mic[data-state="thinking"] { background: #f9e45c; border-color: #e2cd5a; }
.chat-form .mic[data-state="speaking"] { background: #ffa56b; border-color: #e0662a; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(200 240 74 / .7); } 50% { box-shadow: 0 0 0 8px rgb(200 240 74 / 0); } }
@media (prefers-reduced-motion: reduce) { .chat-form .mic[data-state="listening"] { animation: none; } }
/* ---- My calendar's mandatory digest choice, and the sign-up dialog after Watch (28 November 2026) ---- */
.required-mark { margin-left: 3px; font-size: 11px; color: var(--muted); opacity: 0.7; vertical-align: super; line-height: 0; }
.details-form select.is-missing { background-color: #fcdcc8; border-color: #e8946a; }
.field-error { font-size: 12px; color: #b3261e; }
/* ===== For venues and organisers (28 November 2026): the claim link under a venue's address, the claim panel and
   promo box (teams/_promo.html), the line drawings (teams/_drawing.html) and the page at /for-organisers/ ===== */
/* A quiet link (style guide: Links): most visitors don't run the venue, so it sits back like the "What we keep" links */
/* "Is this your venue?": small muted (14px, as "chat to Bill by voice"), tucked just under the address line */
.hero .claim-top { margin-top: -8px; font-size: 14px; }
.claim-top a { color: var(--muted); text-decoration: underline 1px; text-underline-offset: 3px; }
.claim-top a:hover { color: var(--olive); }
.pitch-drawing { display: block; width: 100%; height: auto; }
.pitch-art { max-width: 240px; }  /* straight on the stone page, like the home page icons */
.pitch-promo { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 28px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); }
.pitch-promo.signup-lemon { background: var(--rest); border: 2px solid var(--edge); }
/* At the foot of a venue or organiser page it sits back: no white panel, just the outline on the stone page,
   with clear space after the last listing (most visitors don't run the venue) */
.pitch-promo:not(.signup-lemon) { background: transparent; margin-top: 64px; }
.pitch-promo-text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.pitch-promo-text h2 { font-size: 30px; }
.pitch-promo-text p { margin: 0; line-height: 1.6; }
.pitch-promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.pitch-promo-find { display: flex; flex-wrap: wrap; gap: 10px; }
.pitch-promo-find .search-box { flex: 1 1 220px; }
.pitch-promo-find .btn { height: 48px; }
.pitch-hero { align-items: center; }
.pitch-hero .hero-text { flex: 1 1 420px; }
.pitch-hero-art { flex: 0 1 380px; max-width: 380px; }
.pitch-find { padding: 28px; border-radius: 12px; display: flex; flex-direction: column; gap: 14px; }
.pitch-find h2 { font-size: 30px; }
.pitch-find > p { margin: 0; }
.find-listing fieldset { border: 0; padding: 0; margin: 0; flex-direction: column; gap: 0; }
.find-listing fieldset label { min-height: 36px; }  /* venue or organiser: closer together, still easy to tap */
.find-listing > label { font-size: 16px; font-weight: 600; color: var(--ink); }  /* as What? and Where? */
.find-listing .btn { align-self: flex-start; height: 48px; }
.find-listing-results { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-top: 16px; }
.find-listing-results .section-head { border-bottom-color: var(--edge, var(--rule)); }
.pitch-section { display: flex; flex-direction: column; gap: 24px; }
.pitch-section h3 { font-size: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pitch-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pitch-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.pitch-steps li::before { content: counter(step); font-family: var(--serif); font-size: 22px; line-height: 40px;
  width: 40px; height: 40px; border-radius: 50%; text-align: center; background: var(--olive); color: var(--paper); }
.pitch-steps p, .pitch-tool-text p { margin: 0; line-height: 1.6; }
.pitch-why { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; }
.pitch-why-text { display: flex; flex-direction: column; gap: 16px; }
.pitch-why-text h2 { font-size: 30px; }
.pitch-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; line-height: 1.6;
  max-width: 680px; }
.pitch-tools { display: flex; flex-direction: column; gap: 32px; }
.pitch-tool { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 32px; align-items: center; }
.pitch-tool-text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.pitch-end { align-items: flex-start; }
.pitch-end p { margin: 0; }
@media (max-width: 640px) {
  .pitch-promo, .pitch-why, .pitch-tool { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pitch-promo { padding: 20px; }
  .pitch-promo-art, .pitch-why .pitch-art, .pitch-tool .pitch-art { max-width: 220px; }
  .pitch-find { padding: 20px; }
}

/* Search results: "Add … to my interests" and "Back to my picks", side by side */
.find-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.find-actions form { display: flex; }

/* A set of radio choices, one per line, with Save beneath (My calendar: Series, runs and festivals) */
.form.choice-column { max-width: none; gap: 2px; }
.form.choice-column .btn { align-self: flex-start; margin-top: 12px; }

/* Continue with Google: Google's sign-in button style (white, its four-colour G, a soft grey border), sized like our
   other buttons and fields: 48px tall, 10px corners */
.google-signin { margin: 0; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 48px;
  padding: 0 16px; border: 1px solid #dadce0; border-radius: 10px; background: #fff; color: #1f1f1f;
  font: 500 16px var(--sans); cursor: pointer; box-shadow: 0 1px 2px rgb(43 41 37 / .06);
  transition: background .15s ease, box-shadow .15s ease; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgb(43 41 37 / .14); }
.btn-google:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.btn-google svg { flex: none; }
/* "or use your email" between the Google button and the email form */
.or-line { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
/* The email form follows the line as closely as a field follows its label (6px), not the page's 40px between blocks */
main.wrap > .form:has(> .or-line) { margin-bottom: -34px; }

/* An event's topics (style guide: Chips): small like the old pills, but they behave like My interests' chips:
   a tooltip, and a tap opens love / like / not for me / report. Colours follow the visitor's stance */
.event-topics { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tag-chip-button { display: inline-flex; align-items: center; font: 14px var(--sans); padding: 6px 12px;
  background: var(--linen); border: 1px solid transparent; border-radius: 999px; color: var(--ink); cursor: pointer; }
.tag-chip-button:hover { background: var(--paper); border-color: var(--muted); }
.tag-chip-button .stance-icon { width: 14px; height: 14px; margin-right: 5px; }
.tag-chip-button.is-like { background: var(--linen); border-color: var(--olive); }
.tag-chip-button.is-love { background: var(--olive); color: var(--stone); }
.tag-chip-button.is-avoid { background: transparent; border-color: var(--rule); color: var(--muted); text-decoration: line-through; }
.topic-choices { display: flex; flex-direction: column; gap: 8px; }
.topic-choices .btn { justify-content: flex-start; }
.topic-choices .btn.is-love { background: var(--olive); color: var(--stone); }
.topic-choices .btn.is-like { background: var(--linen); box-shadow: inset 0 0 0 1px var(--olive); }
.topic-choices .btn.is-avoid { color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); }
.topic-report .btn-link { padding: 0; font-size: 14px; color: var(--muted); }
.topic-suggest { display: flex; flex-direction: column; gap: 14px; }
.suggest-results { display: flex; flex-wrap: wrap; gap: 8px; }
button.quiet-link { display: inline; width: auto; }
/* Not for me beside Watch this event: a quiet link, not another button */
.not-for-me-form { display: flex; align-items: center; }
/* Not for me: a text link, but spaced as if it sat in a (transparent) button */
button.not-for-me-link { color: var(--muted); font-size: 15px; height: 50px; padding: 0 20px; }
button.not-for-me-link:hover { color: var(--olive); }
/* The venue's address, with Map as its last line; then clear space before Follow venue, which belongs with the
   venue name's group rather than the address */
.venue-address { margin: 0 0 18px; }
/* Map: lighter than the address it ends, like Not for me */
.venue-address a { color: var(--muted); }
.venue-address a:hover { color: var(--olive); }
/* Phones: the event's actions wrap onto as many rows as they need (compact), as on desktop */

/* Links that leave Handbill for another site (new tab): a small up-and-right arrow after the words (style guide) */
.out-arrow { flex: none; width: 16px; height: 16px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.btn-out:hover .out-arrow { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .btn-out:hover .out-arrow { transform: none; } }
