/* Austrið styles. Values follow the design handoff (OKLCH tokens). */

:root {
  --paper: oklch(0.965 0.006 230);
  --surface: oklch(0.99 0.004 230);
  --fill: oklch(0.93 0.012 235);
  --hover-fill: oklch(0.95 0.01 235);
  --ink: oklch(0.21 0.02 250);
  --ink-2: oklch(0.3 0.02 250);
  --body: oklch(0.42 0.02 250);
  --secondary: oklch(0.45 0.02 250);
  --muted: oklch(0.52 0.02 250);
  --faint: oklch(0.55 0.02 250);
  --rule: oklch(0.85 0.01 240);
  --rule-light: oklch(0.87 0.008 240);
  --control: oklch(0.82 0.01 240);
  --inverse: oklch(0.97 0.005 230);
  --accent: oklch(0.56 0.15 47);
  --accent-hover: oklch(0.44 0.13 47);

  --slate: oklch(0.32 0.045 240);
  --slate-rule: oklch(0.42 0.04 240);
  --slate-accent: oklch(0.78 0.11 55);
  --slate-text: oklch(0.95 0.008 230);
  --slate-secondary: oklch(0.8 0.015 235);

  --ok: oklch(0.58 0.12 150);
  --warn: oklch(0.72 0.14 75);
  --bad: oklch(0.55 0.18 27);

  /* Met Office warning levels */
  --warn-yellow: oklch(0.86 0.17 95);
  --warn-orange: oklch(0.72 0.18 55);
  --warn-red: oklch(0.58 0.21 27);

  --serif: Newsreader, Georgia, serif;
  --sans: Archivo, Helvetica, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --stripes: repeating-linear-gradient(115deg, var(--fill) 0 7px, var(--paper) 7px 14px);
  --stripes-surface: repeating-linear-gradient(115deg, var(--fill) 0 7px, var(--surface) 7px 14px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3, p, dl, dd { margin: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: baseline;
  gap: 28px;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo__name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo__region {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.lang-toggle { display: flex; border: 1px solid var(--control); }
.lang-toggle a {
  border: 0;
  border-right: 1px solid var(--control);
  border-radius: 0;
  padding: 6px 10px;
  background: transparent;
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: normal;
}
.lang-toggle a:hover { color: var(--ink); text-decoration: none; }
.lang-toggle a:last-child { border-right: 0; }
.lang-toggle a[aria-current="true"] { background: var(--ink); color: var(--inverse); }

/* ---------- Weather warnings ---------- */

.warnings { border-bottom: 1px solid var(--rule); background: var(--surface); }
.warnings__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.warning { --level: var(--warn-yellow); border-left: 6px solid var(--level); padding: 0 12px; margin: 8px 0; }
.warning--orange { --level: var(--warn-orange); }
.warning--red { --level: var(--warn-red); }
.warning summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 6px 0;
  cursor: pointer;
  list-style: none;
}
.warning summary::-webkit-details-marker { display: none; }
.warning summary::after { content: "+"; font-family: var(--mono); color: var(--muted); margin-left: auto; }
.warning[open] summary::after { content: "−"; }
.warning summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.warning__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.warning__headline { font-weight: 600; font-size: 14px; }
.warning__meta { font-family: var(--mono); font-size: 10.5px; color: var(--secondary); }
.warning__text { margin: 0 0 10px; max-width: 70ch; font-size: 14px; line-height: 1.5; color: var(--body); }
.warning__text a { margin-left: 6px; white-space: nowrap; }

/* ---------- Page ---------- */

.page { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; }

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 40px 48px;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding-top: 16px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__bottom { display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }

.hero__intro {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
  max-width: 40ch;
}

.conditions { display: flex; flex-direction: column; margin-top: 6px; border-bottom: 1px solid var(--rule-light); }
.conditions__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
}
.conditions__row {
  display: grid;
  grid-template-columns: 8px minmax(0, 150px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--rule-light);
}
/* Status dot (first grid column). Colour supplements the text value, which carries the meaning. */
.conditions__row::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--control); }
.conditions__row--ok::before { background: var(--ok); }
.conditions__row--warn::before { background: var(--warn); }
.conditions__row--bad::before { background: var(--bad); }
/* A game being played (eystur/scores.py): the dot, coloured by how the region's team stands
   (ok winning, warn level, bad losing), pulses unless motion is reduced. */
.conditions__row--live::before { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .conditions__row--live::before { animation: none; } }
.conditions__row dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.conditions__row dd { font-size: 14px; font-weight: 500; }
.conditions__more { align-self: flex-start; padding: 8px 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }

/* ---------- Section heading ---------- */

.section { padding: 56px 0 8px; }
.section--first { padding-top: 40px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 26px;
}
.sec-head__title { display: flex; align-items: baseline; gap: 14px; }
.sec-head__idx { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; }
.sec-head__more { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.sec-head--sm { gap: 8px 20px; margin-bottom: 20px; }
.sec-head--sm h2 { font-size: 28px; }

/* ---------- Shared bits ---------- */

.meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.meta__tag { color: var(--accent); }
.meta__flag { color: var(--ink); font-weight: 600; }  /* e.g. a property's "sale pending" */

/* Headlines link to the article on the source's site. */
.story-link { color: inherit; }
.story-link:hover { color: var(--accent); text-decoration: none; }

.placeholder { border: 1px solid var(--rule-light); background: var(--stripes-surface); }

/* Grid of cells sharing 1px hairlines: outer top/left border, each cell right/bottom. */
.cells { display: grid; border-style: solid; border-color: var(--rule-light); border-width: 1px 0 0 1px; }
.cells > * { border-right: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }

/* ---------- 01 News ---------- */

.news { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; }

.news__lead { display: block; }
.news__photo {
  height: 260px;
  border: 1px solid var(--rule);
  background: var(--stripes);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.news__photo span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: oklch(0.5 0.02 250); background: var(--paper); padding: 3px 6px; }
.news__lead .meta { font-size: 10.5px; }
.news__lead h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.02em; }
.news__lead p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 54ch; text-wrap: pretty; }

.news__rest { display: flex; flex-direction: column; }
.news__item { padding: 18px 0; border-top: 1px solid var(--rule-light); }
/* Each story opens in place to show its excerpt (<details>): the headline, and the lead's photo,
   toggle it, with a + that turns into a − when open. */
.news__open summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 7px; cursor: pointer; list-style: none; }
.news__open summary::-webkit-details-marker { display: none; }
.news__open summary > * { grid-column: 1; }
.news__open summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 18px; line-height: 1; color: var(--muted); }
.news__open[open] summary::after { content: "−"; }
.news__open summary:hover h3, .news__open summary:hover::after { color: var(--accent); }
.news__open summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.news__lead summary { row-gap: 14px; }
.news__lead summary .news__photo { grid-column: 1 / -1; }
.news__lead summary:has(.news__photo)::after { grid-row: 2 / span 2; }
.news__lead summary::after { font-size: 22px; }
.news__item h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.22; }
.news__more { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.news__more p { font-size: 15px; line-height: 1.6; color: var(--body); max-width: 54ch; text-wrap: pretty; }
.news__read { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }

@media (max-width: 760px) {
  .news { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- 02 Events ---------- */

.events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.event { background: var(--surface); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; min-height: 190px; }
.event__date { display: flex; align-items: baseline; gap: 8px; }
.event__day { font-family: var(--serif); font-size: 40px; line-height: 0.9; letter-spacing: -0.03em; }
.event__mon { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.event h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.event__where { margin-top: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.7; }

/* ---------- 03 Jobs + 04 For sale ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 52px; }

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--rule-light);
}
.job h3 { font-size: 15.5px; font-weight: 600; }
.job__type { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.job__where { font-size: 13.5px; color: var(--secondary); }
.job__closes { font-family: var(--mono); font-size: 10px; color: var(--accent); }

.home { display: flex; gap: 16px; padding: 15px 0; border-top: 1px solid var(--rule-light); align-items: center; }
.home__img { width: 84px; height: 62px; flex: none; object-fit: cover; border: 1px solid var(--rule-light); background: var(--fill); }
.home__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home h3 { font-size: 15.5px; font-weight: 600; }
.home__facts { font-size: 13.5px; color: var(--secondary); }
.home__price { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.home--none { font-size: 13.5px; color: var(--secondary); }

/* ---------- 05 Eat and drink ---------- */

.eats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.eat { display: flex; flex-direction: column; gap: 10px; }
.eat__img { display: block; width: 100%; height: 150px; object-fit: cover; border: 1px solid var(--rule-light); background: var(--fill); }
.eat__type { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eat h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.eat p { font-size: 13.5px; line-height: 1.55; color: var(--secondary); }

/* ---------- 06 Clubs (slate band) ---------- */

.clubs { margin-top: 64px; background: var(--slate); color: var(--slate-text); padding: 44px 40px 48px; }
.clubs .sec-head { margin-bottom: 30px; }
.clubs .sec-head__idx { color: var(--slate-accent); }
.clubs .sec-head__more { color: var(--slate-accent); }
.clubs .sec-head__more:hover { color: var(--slate-text); }

.clubs__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); border-color: var(--slate-rule); }
.clubs__grid > * { border-color: var(--slate-rule); }
.club { padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; min-height: 130px; }
.club__age { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-accent); }
.club h3 { font-size: 16px; font-weight: 600; }
.club .story-link:hover { color: var(--slate-accent); }
.club__when { margin-top: auto; font-size: 12.5px; color: var(--slate-secondary); line-height: 1.5; }

@media (max-width: 560px) {
  .clubs { padding: 32px 20px 36px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); background: var(--paper); }
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.site-footer__name { font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; }
.site-footer__areas { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--secondary); }
.site-footer__col a { color: var(--secondary); }
.site-footer__col a:hover { color: var(--accent-hover); }
.site-footer__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.site-footer__note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); line-height: 1.9; }

/* ---------- Weather map ---------- */

.hero__weather { display: flex; flex-direction: column; gap: 8px; }
.weather-credit { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.weather-credit a { color: var(--secondary); }
.photo-credit { margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.photo-credit a { color: var(--secondary); }

.weather {
  flex: 1;
  position: relative;
  min-height: 480px;
  border: 1px solid var(--rule);
  background: var(--fill);
  overflow: hidden;
  isolation: isolate; /* keep Leaflet's z-indexes inside the map */
}
.weather__map { position: absolute; inset: 0; background: var(--fill); }
/* Below 720px the card covers the bottom of the map; the towns are fitted above it (weather-map.js). */
@media (max-width: 719px) { .weather { min-height: 560px; } }

.weather .leaflet-container { font-family: var(--sans); }
.weather .leaflet-tile-pane {
  filter: grayscale(1) sepia(0.25) hue-rotate(175deg) saturate(0.55) brightness(1.06) contrast(0.86);
  opacity: 0.78;
}
.weather .leaflet-control-attribution {
  font-family: var(--mono);
  font-size: 9px;
  background: oklch(0.965 0.006 230 / 0.85);
  color: var(--secondary);
}
.weather .leaflet-control-attribution a { color: var(--secondary); }
.weather .leaflet-bar { border: 1px solid var(--control); border-radius: 0; box-shadow: none; }
.weather .leaflet-bar a,
.weather .leaflet-bar a:first-child,
.weather .leaflet-bar a:last-child { border-radius: 0; color: var(--ink); background: var(--surface); font-family: var(--mono); }
.weather .leaflet-bar a:hover { text-decoration: none; }

.pin { background: none; border: 0; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .tag { outline: 2px solid var(--accent); outline-offset: 1px; }
.pin__in {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-5px, -50%);
  cursor: pointer;
  white-space: nowrap;
}
.pin--left .pin__in { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); }
.pin .dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
.pin .tag { display: flex; align-items: baseline; gap: 6px; padding: 3px 7px 4px; background: var(--surface); border: 1px solid var(--control); color: var(--ink); }
.pin .tag b { font-weight: 600; font-size: 11.5px; }
.pin .tag span { font-family: var(--mono); font-size: 11px; }
.pin.is-selected .dot { background: var(--accent); }
.pin.is-selected .tag { background: var(--ink); border-color: var(--ink); color: var(--inverse); }

.weather__head {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  background: oklch(0.965 0.006 230 / 0.92);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.weather__head { flex-wrap: wrap; max-width: calc(100% - 64px); } /* clear of the zoom buttons */
.weather__head-k { color: var(--accent); }
.weather__head-t { color: var(--secondary); letter-spacing: 0.06em; }
.weather__head-t a { color: inherit; }
.weather__modes { display: inline-flex; border: 1px solid var(--control); }
.weather__mode {
  border: 0;
  border-right: 1px solid var(--control);
  border-radius: 0;
  padding: 3px 7px;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.weather__mode:last-child { border-right: 0; }
.weather__mode:hover { color: var(--ink); }
.weather__mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.weather__mode[aria-pressed="true"] { background: var(--ink); color: var(--inverse); }

.weather__card {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 12px;
  width: max-content;
  max-width: calc(100% - 24px);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 11px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.weather__town { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.weather__now { display: flex; align-items: baseline; gap: 12px; }
.weather__temp { font-family: var(--serif); font-size: 38px; line-height: 0.85; letter-spacing: -0.03em; }
.weather__cond { font-size: 14px; font-weight: 500; line-height: 1.3; }
.weather__card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  padding-top: 8px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.weather__card dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 9.5px; padding-top: 1px; }
.weather__arrow { display: inline-block; margin-right: 0.3em; }

/* ---------- Utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========== Section pages (news, events, food, jobs, homes, clubs) ========== */

.page--section { padding: 48px 24px 96px; }

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 26px;
}
.page-head__title { display: flex; flex-direction: column; gap: 14px; }
.page-head__eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.6vw, 66px); letter-spacing: -0.025em; line-height: 0.99; }
.page-head__intro { padding-bottom: 6px; font-size: 15px; line-height: 1.6; color: var(--body); max-width: 42ch; text-wrap: pretty; }

@media (max-width: 760px) {
  .page-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ---------- Filter chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0 30px; }
.chips__group { display: flex; flex-wrap: wrap; gap: 8px; }
.chips__count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); }

.filters { display: flex; flex-direction: column; gap: 14px; padding: 22px 0 30px; }
.filters .chips { padding: 0; }

.chip {
  border: 1px solid var(--control);
  border-radius: 0;
  padding: 8px 14px;
  background: transparent;
  color: oklch(0.4 0.02 250);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: normal;
  text-transform: uppercase;
}
.chip:hover { border-color: var(--ink); color: oklch(0.4 0.02 250); text-decoration: none; }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--inverse); }

/* ---------- Lead item ---------- */

.lead {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 30px;
  align-items: center;
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.photo { border: 1px solid var(--rule-light); background: var(--stripes); display: flex; align-items: flex-end; padding: 12px; }
.photo span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: oklch(0.5 0.02 250); background: var(--paper); padding: 3px 6px; }
.photo--290 { height: 290px; }
.photo--300 { height: 300px; }

.lead__body { display: flex; flex-direction: column; gap: 13px; }
.lead__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: pretty; }
.lead__dek { font-size: 15px; line-height: 1.62; color: var(--body); max-width: 52ch; text-wrap: pretty; }
.lead__more { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lead__facts { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.8; }
.lead__price { display: flex; flex-wrap: wrap; gap: 20px; align-items: baseline; font-size: 14px; color: var(--secondary); }
.lead__price-value { font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; color: var(--ink); }

.meta--wide { gap: 14px; letter-spacing: 0.12em; }
.meta--sm { gap: 10px; font-size: 9.5px; }

/* ---------- Card grids (news, food, homes) ---------- */

.cards { display: grid; padding-top: 50px; }
/* 1, 2 or 4 columns, never 3: the 8 stories per load (views.PAGED) then fill every row. */
.cards--news { grid-template-columns: minmax(0, 1fr); gap: 38px 34px; }
@media (min-width: 600px) { .cards--news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1190px) { .cards--news { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards--food { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 34px; }
.cards--homes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 40px 34px; }

.card { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid var(--rule); padding-top: 15px; }
.thumb { border: 1px solid var(--rule-light); background: repeating-linear-gradient(115deg, var(--fill) 0 6px, var(--paper) 6px 12px); }
.thumb--140 { height: 140px; }
.thumb--170 { height: 170px; }
.thumb--180 { height: 180px; }

/* News pictures, sized like the placeholder boxes. Stories without one show no picture area. */
.photo--img, .thumb--img, .news__photo--img { display: block; width: 100%; padding: 0; object-fit: cover; background: var(--fill); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.13; letter-spacing: -0.015em; text-wrap: pretty; }
.card__title--24 { font-size: 24px; line-height: 1.12; }
.card__text { font-size: 13.5px; line-height: 1.6; color: var(--secondary); text-wrap: pretty; }
.card__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card__price { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; color: var(--secondary); }
.card__price-value { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink); }
.card__foot { font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--rule-light); padding-top: 9px; }

/* ---------- Empty state and add button ---------- */

.empty {
  border-top: 2px solid var(--ink);
  padding: 34px 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.add { display: flex; justify-content: center; padding-top: 56px; }
.add--34 { padding-top: 34px; }
.add--44 { padding-top: 44px; }

.btn {
  display: inline-block;
  appearance: none;
  margin: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 22px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--inverse); text-decoration: none; }

/* ---------- Events ---------- */

.date { display: flex; align-items: baseline; gap: 7px; }
.date__day { font-family: var(--serif); font-size: 34px; line-height: 0.9; letter-spacing: -0.03em; }
.date__mon { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.date__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.date--lg { gap: 10px; }
.date--lg .date__day { font-size: 52px; line-height: 0.85; letter-spacing: -0.035em; }
.date--lg .date__mon { font-size: 11px; letter-spacing: 0.14em; }

.lead .date + .lead__title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.06; }

.months { padding-top: 46px; }
.month { padding-bottom: 26px; }
.month__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-light);
}
.event-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-row h3 { font-size: 18px; font-weight: 600; }
.event-row p { font-size: 14px; line-height: 1.55; color: var(--secondary); max-width: 62ch; text-wrap: pretty; }
.event-row__facts { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); line-height: 1.8; text-align: right; }
.event-row__tag { color: var(--accent); }

@media (max-width: 640px) {
  .event-row { grid-template-columns: 64px minmax(0, 1fr); }
  .event-row__facts { grid-column: 2; text-align: left; }
}

/* ---------- Jobs ---------- */

.jobs__head,
.jobs__row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px; }
.jobs__head {
  gap: 16px;
  padding: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
}
.jobs__right { text-align: right; }
.jobs__row { gap: 10px 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule-light); }
.jobs__main { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jobs__field { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.jobs__role { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -0.015em; }
.jobs__employer { font-size: 14px; color: var(--secondary); }
.jobs__note { font-size: 13.5px; line-height: 1.6; color: oklch(0.5 0.02 250); max-width: 60ch; text-wrap: pretty; }
.jobs__type { font-size: 13.5px; color: var(--secondary); }
.jobs__closes { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--accent); text-align: right; }

@media (max-width: 640px) {
  .jobs { border-top: 2px solid var(--ink); }
  .jobs__head { display: none; }
  .jobs__row { grid-template-columns: minmax(0, 1fr) auto; }
  .jobs__main { grid-column: 1 / -1; }
}

/* ---------- Clubs ---------- */

.activities { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); border-top: 2px solid var(--ink); }
.activity { background: var(--surface); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.activity__top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.activity__age { color: var(--accent); }
.activity__name { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; text-wrap: pretty; }
.activity__note { font-size: 13.5px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; }
.activity__signup { color: var(--accent); text-decoration: none; }
.activity__signup:hover { text-decoration: underline; }
.activity__facts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid oklch(0.9 0.008 240);
  padding-top: 10px;
}

.club-info {
  margin-top: 56px;
  background: var(--slate);
  color: var(--slate-text);
  padding: 34px 32px 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  align-items: start;
}
.club-info__block { display: flex; flex-direction: column; gap: 10px; }
.club-info__title { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-accent); }
.club-info p { font-size: 14.5px; line-height: 1.6; color: oklch(0.88 0.012 235); text-wrap: pretty; }
.club-info__action { display: flex; align-items: flex-start; justify-content: flex-end; }

.btn--slate { border-color: var(--slate-accent); color: var(--slate-accent); padding: 11px 18px; letter-spacing: 0.1em; }
.btn--slate:hover { background: var(--slate-accent); color: var(--slate); }

@media (max-width: 560px) {
  .club-info { padding: 28px 20px; }
  .club-info__action { justify-content: flex-start; }
}

/* ---------- Forms for sending in an event, job or property (submit.html) ---------- */

.page--form .page-head { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.submit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; max-width: 760px; padding-top: 28px; }
.submit-form > p, .submit-form__field--textarea, .submit-form__field--url, .submit-form__send,
.submit-form__field:has(#f-title), .submit-form__field:has(#f-role), .submit-form__field:has(#f-address) { grid-column: 1 / -1; }
.submit-form__field { display: flex; flex-direction: column; gap: 6px; }
.submit-form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); }
.submit-form input, .submit-form select, .submit-form textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  border-radius: 0; width: 100%;
}
.submit-form textarea { resize: vertical; line-height: 1.5; }
.submit-form input:focus-visible, .submit-form select:focus-visible, .submit-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.submit-form__field--error input, .submit-form__field--error select, .submit-form__field--error textarea { border-color: var(--bad); }
.submit-form__help, .submit-form__note { font-size: 13px; color: var(--muted); }
.submit-form__error { font-size: 13px; color: var(--bad); }
.submit-form__problem { padding: 10px 14px; border-left: 3px solid var(--bad); background: var(--surface); }
.submit-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-form__after { display: flex; gap: 22px; align-items: center; padding-top: 28px; }
@media (max-width: 600px) { .submit-form { grid-template-columns: minmax(0, 1fr); } }
