/* Bænk website. Tokens follow lib/theme/sw_theme.dart. A few text colours are
   one step darker than the app's so small text keeps WCAG AA contrast. */

:root {
  --moss: #5f7a4a;
  --moss-deep: #4e6a3b;  /* button fill, AA with light text */
  --moss-dark: #3e5230;  /* links and text on light moss */
  --clay: #c9694a;
  --clay-dark: #712b13;
  --clay-tint: #faece7;
  --linen: #f4eddf;
  --paper: #fbf8f1;
  --bark: #2f3a2b;
  --ink: #4a3f2c;
  --ink-soft: #6e5f45;   /* app inkSoft #7a6a4e, darkened for AA */
  --ink-muted: #9a8b6e;
  --sun: #e9c46a;
  --sun-dark: #4a3706;
  --sky: #8fb3c9;
  --grass: #d8e0c4;
  --hairline: #ede5d3;
  --outline: #d8cfbc;
  --land: #e6e4d6;
  --road: #f7f4ea;
  --on-moss: #f4f6ee;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 20px;
  --shadow: 0 6px 24px rgba(47, 58, 43, 0.06), 0 1px 3px rgba(47, 58, 43, 0.04);
  --gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  background: var(--linen);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--linen);
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--bark);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin: 3rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin: 2rem 0 0.35rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
strong { color: var(--bark); font-weight: 600; }

a { color: var(--moss-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--bark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--moss-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Classes that set display would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--bark);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.prose { max-width: 44rem; }

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

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--linen);
}

.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav login";
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--bark);
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: var(--bark); }
.brand img { width: 36px; height: 36px; border-radius: 22%; display: block; }

.site-nav { grid-area: nav; justify-self: end; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--paper); color: var(--bark); }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--bark); box-shadow: inset 0 0 0 1px var(--hairline); }

.login-link {
  grid-area: login;
  display: inline-block;
  padding: 0.38rem 0.95rem;
  border: 1.5px solid var(--moss);
  border-radius: 999px;
  color: var(--moss-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.login-link:hover { background: var(--paper); color: var(--bark); }
.login-link[aria-current="page"] { background: var(--moss-deep); border-color: var(--moss-deep); color: var(--on-moss); }

@media (max-width: 44rem) {
  .site-header .wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand login" "nav nav";
    padding-block: 0.75rem 0.5rem;
  }
  .site-nav { justify-self: stretch; margin-inline: -0.75rem; }
  .site-nav ul { overflow-x: auto; scrollbar-width: none; }
  .site-nav ul::-webkit-scrollbar { display: none; }
}

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

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem 2.5rem;
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--bark); }
.footer-lang { flex-basis: 100%; }

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

main { display: block; }

.page { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }

.lede { font-size: 1.15rem; color: var(--ink-soft); margin-top: 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card-title { font-size: 1.25rem; margin: 0 0 0.35rem; }

.card-accent { background: var(--clay-tint); border-color: #f1d9cf; box-shadow: none; }
.card-accent h2, .card-accent h3 { color: var(--clay-dark); }

hr { border: 0; border-top: 1px solid var(--outline); margin: 4rem 0; }

.lang-switch {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  margin: 0 0 1.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.875rem;
}
.lang-switch a {
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.lang-switch a:hover { color: var(--bark); }
.lang-switch a[aria-current="true"] { background: var(--moss-deep); color: var(--on-moss); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.title-2 { font-size: clamp(2rem, 5vw, 2.6rem); margin-top: 0; }

/* Doc pages: question and section lists */
.qa { border-top: 1px solid var(--hairline); padding-top: 0.25rem; }
.qa h3 { margin-top: 1.5rem; }

.rules { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.rules li { margin: 0; display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.6rem; align-items: start; }
.rules li::before {
  content: "";
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--grass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e5230' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}
.rules li strong { display: block; }

/* ---------- Buttons and the App Store badge ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--moss-deep);
  color: var(--on-moss);
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--moss-dark); color: var(--on-moss); }

/* Text-and-CSS stand-in for Apple's badge. Swap for Apple's official artwork
   from https://developer.apple.com/app-store/marketing/guidelines/ if you like. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.2rem 0.55rem;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  border-radius: 11px;
  text-decoration: none;
  line-height: 1.05;
}
.store-badge:hover { color: #fff; background: #1d1d1d; }
.store-badge small { display: block; font-size: 0.72rem; letter-spacing: 0.01em; }
.store-badge span span { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.cta-note { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Home ---------- */

.help-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
}
.help-strip .wrap { padding-block: 0.6rem; }
.help-strip p { margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) 1rem;
}

.app-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.app-id img { width: 76px; height: 76px; border-radius: 22%; box-shadow: var(--shadow); }
.app-id p { margin: 0; font-family: var(--serif); font-size: 1.9rem; color: var(--bark); line-height: 1; }
.app-id p small { display: block; margin-top: 0.35rem; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-soft); }

.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); line-height: 1.05; margin-bottom: 1.25rem; }
.hero .pitch { font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 34rem; }

.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 12%;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.45;
}

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.features li { margin: 0; }
.feature {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feature h3 { margin: 1rem 0 0.4rem; }
.feature p { margin: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--grass);
  color: var(--moss-dark);
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature-icon.sun { background: var(--sun); color: var(--sun-dark); }
.feature-icon.sky { background: #d6e5ee; color: #234a63; }
.feature-icon.clay { background: var(--clay-tint); color: var(--clay-dark); }

.section-intro { max-width: 40rem; }
.section-intro p { color: var(--ink-soft); }

.small-print { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 40rem) {
  .features { grid-template-columns: 1fr; }
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.shots li { margin: 0; display: flex; justify-content: center; }

@media (max-width: 44rem) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem var(--gutter) 1rem;
    margin-inline: calc(-1 * var(--gutter));
    scroll-padding-inline: var(--gutter);
  }
  .shots li { scroll-snap-align: start; }
}

.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  align-items: start;
}
.help-grid ul { list-style: none; padding: 0; margin: 0; }
.help-grid li + li { margin-top: 0.5rem; }
@media (max-width: 44rem) { .help-grid { grid-template-columns: 1fr; } }

/* ---------- Phone frames and screenshot placeholders ----------
   Each .screen shows a drawn placeholder. When the matching file exists in
   img/ (screen-1.png ... screen-4.png, 1320 x 2868 portrait) it is painted on
   top automatically, so dropping the files in is enough. */

.phone {
  margin: 0;
  width: min(100%, 17.5rem);
  position: relative;
}
.hero .phone { width: min(78vw, 19rem); }
.phone-frame {
  container-type: inline-size;
  padding: 3.2%;
  background: var(--bark);
  border-radius: 13% / 6%;
  box-shadow: 0 30px 60px -20px rgba(47, 58, 43, 0.45), 0 2px 6px rgba(47, 58, 43, 0.2);
}
.screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  overflow: hidden;
  border-radius: 10.5% / 4.9%;
  background: var(--paper);
  font-size: 4.6cqw; /* cqw here is the frame's content box, i.e. the screen width */
  line-height: 1.35;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 5;
}
.shot-1::after { background-image: url("img/screen-1.png"); }
.shot-2::after { background-image: url("img/screen-2.png"); }
.shot-3::after { background-image: url("img/screen-3.png"); }
.shot-4::after { background-image: url("img/screen-4.png"); }

.phone figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ph { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ink); }
.ph p { margin: 0; }
.ph-status { height: 11cqw; flex: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 9cqw 1.5cqw; font-size: 3.8cqw; font-weight: 600; color: var(--bark); }
.ph-serif { font-family: var(--serif); color: var(--bark); }
.ph-cap { font-size: 3.7cqw; color: var(--ink-soft); }
.ph-chip { display: inline-flex; align-items: center; background: var(--linen); color: var(--ink); font-size: 3.6cqw; padding: 1.4cqw 3.2cqw; border-radius: 999px; white-space: nowrap; }
.ph-chip.on { background: var(--moss); color: var(--on-moss); }
.ph-chip.out { background: none; box-shadow: inset 0 0 0 0.4cqw var(--outline); }
.ph-rate { background: var(--sun); color: var(--sun-dark); font-size: 3.6cqw; font-weight: 600; padding: 1cqw 2.8cqw; border-radius: 999px; }
.ph-btn { background: var(--moss); color: var(--on-moss); font-size: 4.2cqw; font-weight: 500; text-align: center; padding: 3.6cqw 0; border-radius: 999px; }
.ph-btn.out { background: none; color: var(--moss-dark); box-shadow: inset 0 0 0 0.5cqw var(--moss); }
.ph-row { display: flex; align-items: center; gap: 3cqw; }
.ph-thumb { width: 15cqw; height: 15cqw; border-radius: 3cqw; flex: none; }
.ph-tabs { margin-top: auto; flex: none; display: flex; justify-content: space-around; padding: 2.8cqw 0 7cqw; background: var(--paper); border-top: 1px solid var(--hairline); font-size: 3.1cqw; color: var(--ink-muted); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 0.8cqw; }
.ph-tabs span::before { content: ""; width: 5.6cqw; height: 5.6cqw; border-radius: 1.6cqw; background: currentColor; opacity: 0.55; }
.ph-tabs .on { color: var(--moss-dark); font-weight: 600; }
.ph-tabs .on::before { opacity: 1; background: var(--moss); }

/* Map screen */
.ph-map { position: relative; flex: 1; background: var(--land); overflow: hidden; }
.ph-map i { position: absolute; display: block; }
.ph-water { left: -10%; top: 30%; width: 130%; height: 7%; background: var(--sky); transform: rotate(-12deg); }
.ph-park { left: 6%; top: 40%; width: 44%; height: 30%; background: var(--grass); border-radius: 50%; }
.ph-park.two { left: 62%; top: 8%; width: 36%; height: 16%; }
.ph-road { background: var(--road); }
.ph-road.a { left: 0; top: 66%; width: 100%; height: 2.4%; transform: rotate(6deg); }
.ph-road.b { left: 52%; top: 0; width: 2.6%; height: 100%; }
.ph-road.c { left: 74%; top: 8%; width: 2.6%; height: 100%; transform: rotate(28deg); }
.ph-search { position: absolute; left: 5%; right: 5%; top: 2%; background: var(--paper); border-radius: 999px; padding: 3cqw 4.5cqw; font-size: 4cqw; color: var(--ink-soft); box-shadow: var(--shadow); z-index: 2; }
.ph-chips { position: absolute; left: 5%; top: 12.5%; display: flex; gap: 2cqw; z-index: 2; }
.ph-chips .ph-chip:not(.on) { background: var(--paper); }
.ph-pin { position: absolute; background: var(--moss); color: var(--on-moss); font-size: 3.8cqw; font-weight: 600; padding: 1.5cqw 3cqw; border-radius: 999px; box-shadow: 0 1cqw 2cqw rgba(47, 58, 43, 0.2); z-index: 2; }
.ph-pin.sel { background: var(--clay); color: #fbece5; box-shadow: 0 0 0 0.8cqw var(--paper), 0 1cqw 3cqw rgba(47, 58, 43, 0.3); }
.ph-me { position: absolute; left: 47%; top: 55%; width: 5cqw; height: 5cqw; background: var(--sky); border: 1cqw solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 4cqw rgba(143, 179, 201, 0.3); z-index: 2; }
.ph-sheet { position: relative; flex: none; margin-top: -6cqw; background: var(--paper); border-radius: 6cqw 6cqw 0 0; padding: 3cqw 5cqw 3cqw; z-index: 3; }
.ph-grab { width: 11cqw; height: 1.2cqw; background: var(--outline); border-radius: 1cqw; margin: 0 auto 3.5cqw; }
.ph-sheet .ph-row + .ph-row { margin-top: 3cqw; }
.ph-sheet .ph-serif { font-size: 4.9cqw; line-height: 1.2; }

/* Bench detail screen */
.ph-photo { position: relative; height: 38%; flex: none; background: var(--sky); overflow: hidden; }
.ph-photo i { position: absolute; display: block; }
.ph-photo .sun { width: 26cqw; height: 26cqw; border-radius: 50%; background: var(--sun); left: 52%; top: 22%; }
.ph-photo .hill { left: -10%; right: -10%; bottom: -20%; height: 58%; background: var(--grass); border-radius: 50% 50% 0 0; }
.ph-photo .seat { left: 28%; width: 44%; bottom: 30%; height: 5.5cqw; background: #7d5d3f; border-radius: 1cqw; }
.ph-photo .back { left: 28%; width: 44%; bottom: 40%; height: 4.5cqw; background: #8b6a48; border-radius: 1cqw; }
.ph-photo .leg { bottom: 19%; width: 2.6cqw; height: 12cqw; background: #6e5237; }
.ph-photo .leg.l { left: 32%; }
.ph-photo .leg.r { right: 32%; }
.ph-body { padding: 5cqw 5.5cqw 0; display: flex; flex-direction: column; gap: 3.6cqw; }
.ph-head { display: flex; justify-content: space-between; gap: 3cqw; }
.ph-head .ph-serif { font-size: 6.6cqw; line-height: 1.15; }
.ph-score { text-align: center; flex: none; }
.ph-score b { display: block; font-family: var(--serif); font-weight: 400; font-size: 8cqw; color: var(--bark); line-height: 1; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 1.8cqw; }
.ph-btns { display: flex; gap: 2.5cqw; }
.ph-btns > * { flex: 1; }
.ph-sit { border-top: 1px solid var(--hairline); padding-top: 3cqw; }
.ph-sit p:last-child { font-size: 4cqw; line-height: 1.45; margin-top: 1.5cqw; }
.ph-avatar { width: 7.5cqw; height: 7.5cqw; border-radius: 50%; display: grid; place-items: center; font-size: 3cqw; font-weight: 600; flex: none; }

/* Add bench screen */
.ph-top { display: flex; align-items: center; justify-content: center; padding: 1.5cqw 5cqw 2cqw; font-size: 4.4cqw; font-weight: 600; color: var(--bark); }
.ph-form { padding: 1cqw 5.5cqw 0; display: flex; flex-direction: column; gap: 2cqw; }
.ph-form .ph-serif { font-size: 6.4cqw; }
.ph-label { font-size: 3.6cqw; font-weight: 600; color: var(--ink); margin-top: 1.8cqw !important; }
.ph-mini { position: relative; height: 30cqw; border-radius: 3.5cqw; background: var(--land); overflow: hidden; }
.ph-mini i { position: absolute; display: block; }
.ph-drop { left: 44%; top: 26%; width: 9cqw; height: 9cqw; background: var(--clay); border: 0.9cqw solid var(--paper); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.ph-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.ph-box { height: 17cqw; border-radius: 3.5cqw; border: 0.45cqw dashed #c9b99a; display: grid; place-items: center; font-size: 3.4cqw; color: var(--ink-soft); }
.ph-input { background: var(--linen); border-radius: 3.5cqw; padding: 3cqw 4cqw; font-size: 4cqw; color: var(--bark); }
.ph-stars { display: flex; gap: 1.5cqw; align-items: center; }
.ph-stars i { width: 7cqw; height: 7cqw; background: var(--sun); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.ph-stars i.off { background: var(--outline); }

/* Journal screen */
.ph-list { padding: 2cqw 5.5cqw 0; display: flex; flex-direction: column; }
.ph-list h4 { margin: 0; font: 400 7.4cqw/1.15 var(--serif); color: var(--bark); }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; margin: 4cqw 0 3cqw; }
.ph-stats span { background: var(--linen); border-radius: 3.5cqw; padding: 2.5cqw 0; text-align: center; font-size: 3.1cqw; color: var(--ink-soft); }
.ph-stats b { display: block; font: 400 6cqw/1.1 var(--serif); color: var(--bark); }
.ph-month { font-size: 3.2cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 3cqw 0 1cqw !important; }
.ph-entry { border-bottom: 1px solid var(--hairline); padding: 2.6cqw 0; }
.ph-entry .ph-serif { font-size: 4.6cqw; line-height: 1.2; }

/* ---------- Login ---------- */

.login-page { padding-block: clamp(2.5rem, 8vw, 5rem) 0; }
.login-page .wrap { display: grid; place-items: center; }
.login-card { width: min(100%, 26rem); padding: clamp(1.5rem, 5vw, 2.25rem); }
.login-card h1 { font-size: 2.1rem; }
.login-card .team-mark { width: 56px; height: 56px; border-radius: 22%; margin-bottom: 1rem; }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--bark); }
.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--bark);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 14px;
}
.field input:hover { border-color: var(--outline); }
.field input:focus-visible { outline: 3px solid var(--moss-dark); outline-offset: 1px; border-color: var(--paper); background: #fff; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: 0.6; }
.login-card .button { width: 100%; margin-top: 0.5rem; }
.login-card .cta-note { margin-bottom: 1.5rem; }

.form-status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--sun);
  background: color-mix(in srgb, var(--sun) 35%, var(--paper));
  color: var(--sun-dark);
  font-size: 0.95rem;
}
.form-status:empty { display: none; }

/* ---------- Team tools (admin.html) ---------- */

.muted { color: var(--ink-soft); }
.optional { font-weight: 400; color: var(--ink-soft); }

.brand-tag {
  align-self: center;
  margin-left: 0.15rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--grass);
  color: var(--moss-dark);
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

button.login-link { font-family: var(--sans); background: none; cursor: pointer; line-height: inherit; }

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.admin-page { padding-block: clamp(1.75rem, 5vw, 3rem) 4rem; }
.admin-loading { color: var(--ink-soft); }
.admin-panel h1 { font-size: clamp(1.9rem, 4.5vw, 2.4rem); }

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.admin-head .lede { margin-bottom: 0; }

.is-refreshing { opacity: 0.55; transition: opacity 0.15s ease; }
.is-busy { opacity: 0.55; pointer-events: none; }

.button-quiet { background: var(--paper); color: var(--moss-dark); box-shadow: inset 0 0 0 1.5px var(--moss); }
.button-quiet:hover { background: var(--grass); color: var(--bark); }
.button-danger { background: var(--clay-dark); color: #fff; }
.button-danger:hover { background: #5a210d; color: #fff; }
.button-text { background: none; color: var(--clay-dark); padding-inline: 0.75rem; text-decoration: underline; text-underline-offset: 0.18em; }
.button-text:hover { background: var(--clay-tint); color: var(--clay-dark); }
.button-small { min-height: 2.25rem; padding: 0.4rem 1rem; font-size: 0.9rem; }
.button:disabled { opacity: 0.6; cursor: default; }

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--grass);
  color: var(--moss-dark);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-hidden { background: var(--clay-tint); color: var(--clay-dark); box-shadow: inset 0 0 0 1px #f1d9cf; }
.badge-quiet { background: var(--linen); color: var(--ink-soft); }

/* Review queue */

.queue { display: grid; gap: 1rem; }
.queue .card { margin: 0; }

.report {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  padding: 1rem;
}
.report.is-hidden { border-color: #f1d9cf; box-shadow: inset 4px 0 0 var(--clay), var(--shadow); }

.report-media {
  align-self: start;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--land);
  display: grid;
  place-items: center;
}
.report-media a, .report-media img { display: block; width: 100%; height: 100%; }
.report-media img { object-fit: cover; }
.report-media.is-target { box-shadow: 0 0 0 3px var(--clay); }
.no-photo { color: var(--ink-soft); font-size: 0.9rem; }

.report-body { min-width: 0; padding-block: 0.25rem; }
.report-body > * { margin: 0 0 0.6rem; }
.report-body > :last-child { margin-bottom: 0; }
.report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.5rem; }
.report-when { font-size: 0.9rem; color: var(--ink-soft); }
.report-title { margin: 0.2rem 0 0.15rem; font-size: 1.45rem; overflow-wrap: anywhere; }
.report-place, .report-author { font-size: 0.95rem; color: var(--ink-soft); }
.report-author strong { color: var(--bark); }
.report-author .badge { margin-left: 0.4rem; }

.sit-note {
  display: grid;
  gap: 0.2rem;
  margin-inline: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--linen);
  overflow-wrap: anywhere;
}
.stars { color: #b8860b; letter-spacing: 0.1em; font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; }
.chips li { margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--outline); font-size: 0.88rem; }

.report-notes .label { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.report-notes ul { margin: 0; padding-left: 1.1rem; font-size: 0.95rem; overflow-wrap: anywhere; }

.report-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.4rem; }
.report-actions .button { min-height: 2.6rem; padding: 0.5rem 1.15rem; font-size: 0.95rem; }

.empty { text-align: center; padding-block: 2.5rem; }
.empty p { max-width: 32rem; margin-inline: auto; color: var(--ink-soft); }

@media (max-width: 40rem) {
  .report { grid-template-columns: 1fr; }
  .report-media { aspect-ratio: 16 / 10; }
  .report-media.is-empty { aspect-ratio: auto; padding: 0.5rem; }
}

/* Stats */

.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.tiles li { margin: 0; }
@media (max-width: 66rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile, .tile > a {
  display: grid;
  gap: 0.1rem;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
.tile:has(> a) { padding: 0; border: 0; background: none; }
.tile > a:hover { border-color: var(--outline); background: #fff; }
.tile-label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.tile-value { font-size: 2rem; font-weight: 600; color: var(--bark); line-height: 1.2; }
.tile-detail { font-size: 0.85rem; color: var(--ink-soft); }

.section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 2.5rem; }
.section-row h2 { margin: 0; }

.segmented {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.segmented button {
  padding: 0.3rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font: 500 0.875rem/1.4 var(--sans);
  cursor: pointer;
}
.segmented button:hover { color: var(--bark); }
.segmented button[aria-pressed="true"] { background: var(--moss-deep); color: var(--on-moss); }

.multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.chart-card { margin: 0; padding: 1rem 1rem 0.6rem; }
.chart-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 0.75rem; margin-bottom: 0.5rem; }
.chart-title { font-weight: 600; color: var(--bark); }
.chart-total { font-size: 0.85rem; color: var(--ink-soft); }
.chart { min-height: 150px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--hairline); stroke-width: 1; }
.chart .axis { stroke: var(--outline); stroke-width: 1; }
.chart .tick { fill: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bars path { fill: var(--moss); }
.chart .bars path.on { fill: var(--moss-dark); }
.chart .hits rect { fill: transparent; }

.chart-tip {
  position: absolute;
  z-index: 1000;
  display: grid;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  background: var(--bark);
  color: var(--paper);
  font-size: 0.8rem;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
}
.chart-tip strong { color: #fff; font-size: 0.9rem; }

.table-view { margin-top: 0.75rem; }
.table-view summary { cursor: pointer; color: var(--moss-dark); font-size: 0.95rem; }
.table-view .table-scroll { max-height: 24rem; margin-top: 0.5rem; background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; }

.table-scroll { overflow: auto; }
.admin table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin th, .admin td { padding: 0.6rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.admin thead th { position: sticky; top: 0; background: var(--paper); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.admin tbody tr:last-child > * { border-bottom: 0; }
.admin tbody th { font-weight: 500; color: var(--bark); }
.admin .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-card { padding: 0; overflow: hidden; }
.table-card td .button { white-space: nowrap; }
.user-id { display: block; font: 400 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-muted); }

.where { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0.75rem; margin-top: 1rem; }
.where .card { margin: 0; }
.map-card { padding: 0.5rem; }
.map { height: 26rem; border-radius: 14px; background: var(--land); z-index: 0; }
.map-key { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0.6rem 0.5rem 0.2rem; font-size: 0.85rem; color: var(--ink-soft); }
.map-key li { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.map-key .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--outline); }
.map-key .dot-hidden { background: var(--clay); }

.bar-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.55rem; }
.bar-list li { margin: 0; display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; font-size: 0.92rem; }
.bar-list .bar-empty { display: block; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bark); }
.bar-track { height: 10px; }
.bar-fill { display: block; height: 100%; background: var(--moss); border-radius: 0 4px 4px 0; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--ink-soft); min-width: 2ch; text-align: right; }

@media (max-width: 52rem) {
  .where { grid-template-columns: 1fr; }
  .map { height: 20rem; }
}

/* Confirm dialog and toast */

.confirm {
  width: min(calc(100% - 2rem), 30rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(47, 58, 43, 0.45);
}
.confirm::backdrop { background: rgba(47, 58, 43, 0.45); }
.confirm h2 { margin: 0 0 0.5rem; font-size: 1.5rem; overflow-wrap: anywhere; }
.confirm .field { margin-top: 1rem; }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1rem 0 0; font-size: 0.95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--moss-deep); flex: none; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 1100;
  width: max-content;
  max-width: min(calc(100% - 2rem), 36rem);
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  background: var(--bark);
  color: var(--paper);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  overflow-wrap: anywhere;
}
.toast.toast-on { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-error { background: var(--clay-dark); }
.toast:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .login-link, .button, .store-badge, .lang-switch a { transition: background-color 0.15s ease, color 0.15s ease; }
  .toast { transition: opacity 0.2s ease, transform 0.2s ease; }
}

@media (forced-colors: active) {
  .button, .store-badge, .login-link, .lang-switch a[aria-current="true"] { border: 1px solid ButtonText; }
}
