/* Lambcote Meadows community design system — v4 */
:root {
  --forest-950: #10291e;
  --forest-900: #173428;
  --forest-850: #1d3c2e;
  --forest-800: #234934;
  --forest-700: #315c3f;
  --forest-600: #467454;
  --sage-300: #b9cbb4;
  --sage-200: #d5e1d0;
  --sage-100: #e8eee3;
  --sage-50: #f2f5ed;
  --cream-100: #eee5d3;
  --cream-50: #f7f2e8;
  --paper: #fcfbf8;
  --white: #ffffff;
  --clay-700: #8f402a;
  --clay-600: #ae573a;
  --clay-500: #c36b4c;
  --clay-100: #f4ded3;
  --clay-50: #fbefe9;
  --blue-600: #3860a8;
  --blue-100: #e7edf9;
  --ink: #18251f;
  --ink-soft: #405048;
  --muted: #68756e;
  --line: #dfe3dc;
  --line-strong: #cbd2c8;
  --danger: #a33828;
  --danger-bg: #fbe6df;
  --success: #23673d;
  --success-bg: #e2f1e5;
  --warning: #81511b;
  --warning-bg: #f7ecd2;
  --focus: #1b6c47;
  --shadow-xs: 0 1px 2px rgba(18, 42, 31, 0.06);
  --shadow-sm: 0 8px 24px rgba(18, 42, 31, 0.08);
  --shadow-md: 0 18px 52px rgba(18, 42, 31, 0.12);
  --shadow-lg: 0 34px 86px rgba(12, 34, 24, 0.19);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --page-pad: clamp(18px, 3.6vw, 72px);
  --shell-max: 1820px;
  --reading: 760px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --header-height: 88px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--paper);
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(213, 225, 208, 0.38), transparent 28rem),
    radial-gradient(circle at 95% 4%, rgba(244, 222, 211, 0.32), transparent 24rem),
    var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-sheet-open { overflow: hidden; }
main { min-height: 52vh; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest-800); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-600); }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--sage-200); color: var(--forest-950); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--forest-950);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 5.5vw, 5.75rem); }
h2 { font-size: clamp(1.85rem, 3vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.65rem); }
p { margin: 0; }
ul, ol { margin-block: 0; }

.site-shell,
.wrap {
  width: min(var(--shell-max), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}
.narrow { width: min(760px, calc(100% - (var(--page-pad) * 2))); margin-inline: auto; }
.lead,
.lede {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.4vw, 1.28rem);
  line-height: 1.65;
}
.muted { color: var(--muted); }
.eyebrow,
.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.7rem;
  color: var(--clay-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}
.icon {
  display: inline-flex;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  vertical-align: -0.22em;
}
.icon svg { width: 100%; height: 100%; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  border-radius: var(--radius-xs);
  background: var(--forest-950);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Buttons and actions */
.button,
button.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--forest-800);
  border-radius: 999px;
  background: var(--forest-800);
  box-shadow: 0 8px 20px rgba(28, 72, 49, 0.18);
  color: var(--white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.button:hover,
button.button:hover {
  transform: translateY(-1px);
  border-color: var(--forest-950);
  background: var(--forest-950);
  box-shadow: 0 12px 28px rgba(17, 49, 33, 0.22);
  color: var(--white);
}
.button:active,
button.button:active { transform: translateY(0); }
.button .icon { width: 1.1rem; height: 1.1rem; }
.button-warm {
  border-color: var(--clay-500);
  background: var(--clay-500);
  box-shadow: 0 10px 24px rgba(143, 64, 42, 0.25);
}
.button-warm:hover { border-color: var(--clay-700); background: var(--clay-700); }
.button-outline,
.button.secondary {
  border-color: var(--line-strong);
  background: var(--white);
  box-shadow: none;
  color: var(--forest-900);
}
.button-outline:hover,
.button.secondary:hover { border-color: var(--forest-800); background: var(--sage-50); color: var(--forest-950); }
.button-ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--forest-900);
}
.button-ghost:hover { border-color: var(--line); background: rgba(255,255,255,0.72); color: var(--forest-950); }
.button-glass {
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.12);
  box-shadow: none;
  color: var(--white);
  backdrop-filter: blur(12px);
}
.button-glass:hover { border-color: white; background: rgba(255,255,255,0.22); color: white; }
.button-light {
  border-color: var(--cream-100);
  background: var(--cream-50);
  box-shadow: none;
  color: var(--forest-950);
}
.button-light:hover { border-color: var(--white); background: var(--white); color: var(--forest-950); }
.button-large { min-height: 56px; padding-inline: 1.65rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.text-action,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--forest-800);
  font-weight: 700;
  text-decoration: none;
}
.text-action .icon,
.back-link .icon { width: 1rem; height: 1rem; transition: transform 160ms ease; }
.text-action:hover .icon { transform: translateX(3px); }
.back-link:hover .icon { transform: translateX(-3px); }
.icon-btn {
  display: inline-grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  color: var(--forest-950);
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--sage-300); background: var(--sage-50); color: var(--forest-950); }
.icon-btn .icon { width: 1.3rem; height: 1.3rem; }

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-100);
  color: var(--forest-800);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-active, .status-published { background: var(--success-bg); color: var(--success); }
.status-declined { background: var(--danger-bg); color: var(--danger); }
.status-past { background: #eceeeb; color: #5f6862; }

/* Brand and global navigation */
.community-strip {
  min-height: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--forest-950);
  color: rgba(255,255,255,0.76);
  font-size: 0.74rem;
  font-weight: 600;
}
.community-strip .site-shell {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.community-strip span,
.community-strip-links { display: flex; align-items: center; gap: 0.55rem; }
.community-strip-links { gap: 1.2rem; }
.community-strip a { color: rgba(255,255,255,0.82); text-decoration: none; }
.community-strip a:hover { color: white; }
.app-header {
  position: sticky;
  z-index: 70;
  top: 0;
  border-bottom: 1px solid rgba(28, 55, 40, 0.1);
  background: rgba(252,251,248,0.94);
  box-shadow: 0 3px 18px rgba(16, 41, 30, 0.04);
  backdrop-filter: blur(18px) saturate(1.2);
}
.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: clamp(1.15rem, 2.4vw, 3.2rem);
}
.brand,
.brand-lockup {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
}
.brand { flex: 0 0 auto; }
.brand-mark {
  display: inline-flex;
  width: 64px;
  height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; min-width: 0; }
.brand-copy b {
  color: var(--forest-900);
  font-family: var(--font-serif);
  font-size: clamp(1.16rem, 1.6vw, 1.62rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.brand-copy small {
  margin-top: 0.32rem;
  color: var(--clay-600);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.desk-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 0.8vw, 0.85rem);
}
.desk-nav > a,
.drop-toggle {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.58rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: clamp(0.81rem, 0.8vw, 0.94rem);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.desk-nav > a::after,
.drop::after {
  position: absolute;
  right: 0.55rem;
  bottom: 5px;
  left: 0.55rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 2px;
  background: var(--forest-600);
  content: "";
  transition: transform 160ms ease;
}
.desk-nav > a:hover::after,
.desk-nav > a.is-current::after,
.drop:hover::after,
.drop.is-current::after { transform: scaleX(1); }
.desk-nav > a.is-current,
.drop.is-current .drop-toggle { color: var(--forest-950); }
.drop { position: relative; }
.drop-toggle .icon { width: 0.9rem; height: 0.9rem; transition: transform 160ms ease; }
.drop.is-open .drop-toggle .icon { transform: rotate(180deg); }
.drop-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 50%;
  display: grid;
  min-width: 270px;
  gap: 0.2rem;
  padding: 0.6rem;
  transform: translate(-50%, -8px);
  visibility: hidden;
  opacity: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.drop.is-open .drop-menu,
.drop:focus-within .drop-menu {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.drop-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.drop-menu a:hover,
.drop-menu a.is-current { background: var(--sage-50); color: var(--forest-950); }
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}
.header-cta { min-height: 48px; padding: 0.5rem 1rem; }
.header-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.17);
  font-size: 0.67rem;
  font-weight: 800;
}
.header-admin-link { padding: 0.5rem; font-size: 0.8rem; font-weight: 800; text-decoration: none; }
.notice-button { position: relative; }
.notice-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--clay-500);
}
.tab-bar { display: none; }

/* Sheets, banners and feedback */
.sheet {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(0.8rem, 5vh, 3rem) var(--page-pad);
}
.sheet-backdrop { position: absolute; inset: 0; background: rgba(9, 24, 16, 0.64); backdrop-filter: blur(8px); }
.sheet-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; }
.sheet-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sheet-search { margin-top: 1.6rem; }
.search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-sm);
}
.search-control > .icon { margin-left: 0.8rem; color: var(--muted); }
.search-control input { min-width: 0; padding: 0.6rem 0; border: 0; box-shadow: none; background: transparent; }
.search-shortcuts { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 1rem; color: var(--muted); font-size: 0.82rem; }
.search-shortcuts a { padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--sage-100); font-weight: 700; text-decoration: none; }
.sheet-list { display: grid; gap: 0.55rem; margin: 1.5rem 0; }
.notice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  min-height: 70px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: inherit;
  text-decoration: none;
}
.notice-row:hover { transform: translateY(-1px); border-color: var(--sage-300); color: inherit; }
.notice-row-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--sage-100); color: var(--forest-700); }
.notice-row small, .notice-row b { display: block; }
.notice-row small { margin-bottom: 0.2rem; color: var(--clay-600); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.notice-row b { font-family: var(--font-serif); font-size: 1rem; }
.notice-row > .icon { color: var(--muted); }
.banner {
  position: relative;
  z-index: 60;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem var(--page-pad);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.9rem;
}
.banner > .icon { width: 1.25rem; height: 1.25rem; }
.banner a { margin-left: 0.5rem; color: inherit; font-weight: 800; }
.banner.is-error { background: var(--danger-bg); color: var(--danger); }
.banner.is-success { background: var(--success-bg); color: var(--success); }
.banner-dismiss { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; cursor: pointer; color: inherit; }

/* Reusable panels and empty states */
.panel,
.callout,
.admin-panel,
.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}
.panel { padding: clamp(1.1rem, 2vw, 1.6rem); }
.panel-head,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.panel-head { margin-bottom: 1.2rem; }
.panel-head h2 { font-size: clamp(1.45rem, 2vw, 2rem); }
.panel-head > a { display: inline-flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.panel-head > a .icon { width: 0.9rem; height: 0.9rem; }
.section-heading { margin-bottom: clamp(1.4rem, 3vw, 2.3rem); }
.section-heading > div { max-width: 52rem; }
.section-heading > p { max-width: 35rem; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }
.section-heading > a { display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto; font-weight: 700; text-decoration: none; }
.empty-state {
  display: grid;
  justify-items: center;
  padding: clamp(2.2rem, 6vw, 5rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--sage-50), white);
  text-align: center;
}
.empty-state > .icon { width: 2.3rem; height: 2.3rem; margin-bottom: 1rem; color: var(--forest-600); }
.empty-state h2, .empty-state h3 { margin-bottom: 0.6rem; }
.empty-state p { max-width: 34rem; color: var(--muted); }
.compact-empty { min-height: 150px; padding: 1.5rem; }
.compact-empty > .icon { width: 1.8rem; height: 1.8rem; }
.page-empty { grid-column: 1 / -1; min-height: 360px; }
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background: var(--sage-50);
}
.callout-icon,
.sidebar-icon,
.section-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--sage-100);
  color: var(--forest-700);
}
.callout-icon .icon,
.sidebar-icon .icon,
.section-icon .icon { width: 1.5rem; height: 1.5rem; }

/* Page introductions */
.page-intro {
  padding-block: clamp(3.7rem, 8vw, 7rem) clamp(2.8rem, 5vw, 4.5rem);
}
.page-intro-copy { max-width: 940px; }
.page-intro .section-icon { margin-bottom: 1.25rem; }
.page-intro h1 { max-width: 15ch; font-size: clamp(3rem, 6vw, 6.2rem); }
.page-intro .lead { margin-top: 1.25rem; max-width: 49rem; }
.news-intro,
.events-intro,
.useful-intro,
.privacy-intro {
  position: relative;
}
.news-intro::after,
.events-intro::after,
.useful-intro::after,
.privacy-intro::after {
  position: absolute;
  z-index: -1;
  top: 2rem;
  right: 2vw;
  width: clamp(180px, 22vw, 420px);
  height: clamp(180px, 22vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213,225,208,0.65), rgba(213,225,208,0));
  content: "";
}

/* Desktop homepage */
.home-hero {
  position: relative;
  min-height: clamp(590px, 60vw, 790px);
  overflow: hidden;
  background: var(--forest-900);
}
.home-hero > picture,
.home-hero > picture img,
.home-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero > picture img { object-fit: cover; object-position: center 48%; }
.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(12,35,24,0.92) 0%, rgba(14,42,28,0.78) 33%, rgba(14,42,28,0.25) 63%, rgba(14,42,28,0.08) 100%),
    linear-gradient(0deg, rgba(12,34,24,0.45), transparent 48%);
}
.home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding-block: 5rem 8rem;
}
.home-hero-copy { max-width: 800px; }
.home-hero-copy .eyebrow { color: var(--cream-100); }
.home-hero-copy h2 { max-width: 10.5ch; color: white; font-size: clamp(4rem, 6.8vw, 7.5rem); }
.home-hero-copy > p:not(.eyebrow) { max-width: 43rem; margin: 1.4rem 0 2rem; color: rgba(255,255,255,0.86); font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.65; }
.hero-heritage-card {
  align-self: end;
  justify-self: end;
  display: grid;
  width: min(330px, 100%);
  justify-items: center;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  background: rgba(13,38,25,0.52);
  box-shadow: var(--shadow-lg);
  color: rgba(255,255,255,0.85);
  text-align: center;
  backdrop-filter: blur(14px);
}
.hero-heritage-card img { width: min(230px, 80%); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.22)); }
.hero-heritage-card span { margin-top: 0.7rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.45; }
.service-deck { position: relative; z-index: 4; margin-top: -66px; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.service-deck > .section-heading {
  margin: 0;
  padding: 1.55rem 1.8rem 2rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(252,251,248,0.96);
  backdrop-filter: blur(15px);
}
.service-deck .section-heading h2 { font-size: clamp(1.75rem, 2.5vw, 2.8rem); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow-md);
}
.service-card {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.4rem;
  background: white;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}
.service-card:hover { z-index: 2; transform: translateY(-4px); background: var(--sage-50); color: inherit; box-shadow: var(--shadow-md); }
.service-card > span:nth-child(2) { display: grid; align-content: start; gap: 0.55rem; }
.service-card b { color: var(--forest-950); font-family: var(--font-serif); font-size: 1.24rem; line-height: 1.14; }
.service-card small { color: var(--muted); font-size: 0.81rem; line-height: 1.55; }
.service-card > .icon { justify-self: end; color: var(--forest-700); }
.service-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: var(--sage-100); color: var(--forest-700); }
.service-icon .icon { width: 1.5rem; height: 1.5rem; }
.tone-clay .service-icon { background: var(--clay-50); color: var(--clay-600); }
.tone-green .service-icon { background: #e6efe6; color: #32633d; }
.tone-rose .service-icon { background: #f8e8e0; color: #a24e36; }
.tone-olive .service-icon { background: #eceeda; color: #5a672c; }
.tone-blue .service-icon { background: var(--blue-100); color: var(--blue-600); }
.bins-ribbon {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--forest-950), var(--forest-700));
  box-shadow: var(--shadow-md);
  color: white;
}
.bins-ribbon.is-empty { grid-template-columns: auto 1fr auto; }
.bins-ribbon .eyebrow { color: var(--cream-100); }
.bins-ribbon h2 { color: white; font-size: clamp(1.65rem, 2.5vw, 2.65rem); }
.bins-ribbon p { margin-top: 0.3rem; color: rgba(255,255,255,0.76); }
.ribbon-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 18px; background: rgba(255,255,255,0.12); }
.ribbon-icon .icon { width: 1.8rem; height: 1.8rem; }
.bin-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bin-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 0.48rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(34,67,47,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--forest-950);
  font-size: 0.73rem;
  font-weight: 750;
  line-height: 1.1;
}
.bin-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--forest-700);
  box-shadow: 0 0 0 1px rgba(26,41,32,0.18);
}
.bin-dot.is-green { background: #347044; }
.bin-dot.is-brown { background: #775038; }
.bin-dot.is-grey, .bin-dot.is-gray, .bin-dot.is-black { background: #555d5a; }
.bin-dot.is-blue { background: #3c69a5; }
.home-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.24fr) minmax(300px, 0.95fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.home-dashboard-middle { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.notices-panel, .latest-story-panel, .location-panel { min-height: 100%; }
.notice-stack { display: grid; }
.notice-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.notice-item:first-child { border-top: 0; }
.notice-item:hover { color: inherit; }
.notice-date {
  display: grid;
  width: 48px;
  height: 52px;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  background: var(--clay-50);
  color: var(--clay-700);
  line-height: 1;
}
.notice-date b { font-family: var(--font-serif); font-size: 1.28rem; }
.notice-date small { margin-top: 0.15rem; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.notice-item > span:nth-child(2) { min-width: 0; }
.notice-item > span:nth-child(2) small,
.notice-item > span:nth-child(2) b,
.notice-item > span:nth-child(2) em { display: block; }
.notice-item > span:nth-child(2) small { margin-bottom: 0.2rem; color: var(--clay-600); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; }
.notice-item > span:nth-child(2) b { color: var(--forest-950); font-family: var(--font-serif); font-size: 1rem; line-height: 1.25; }
.notice-item > span:nth-child(2) em { margin-top: 0.3rem; overflow: hidden; color: var(--muted); font-size: 0.75rem; font-style: normal; line-height: 1.45; }
.notice-item > .icon { width: 1rem; color: var(--muted); }
.weather-panel {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(115deg, #edf3e7, #fffaf2);
}
.weather-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: white; color: var(--clay-500); box-shadow: var(--shadow-xs); }
.weather-icon .icon { width: 2rem; height: 2rem; }
.weather-panel > div:nth-child(2) { display: grid; }
.weather-panel > div:nth-child(2) small { color: var(--muted); font-size: 0.65rem; font-weight: 750; text-transform: uppercase; }
.weather-panel > div:nth-child(2) strong { color: var(--forest-950); font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; }
.weather-panel > div:nth-child(2) b { font-size: 0.8rem; }
.weather-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 0; }
.weather-panel dl div { padding-left: 0.75rem; border-left: 1px solid var(--line); }
.weather-panel dt { color: var(--muted); font-size: 0.65rem; }
.weather-panel dd { margin: 0.25rem 0 0; font-weight: 800; }
.latest-story { display: grid; grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1fr); gap: 1rem; color: inherit; text-decoration: none; }
.latest-story img { width: 100%; height: 100%; min-height: 220px; border-radius: var(--radius-sm); object-fit: cover; }
.latest-story > span { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.latest-story small { color: var(--clay-600); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.latest-story h3 { margin-top: 0.55rem; }
.latest-story p { margin-top: 0.65rem; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.latest-story em { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.9rem; color: var(--forest-800); font-size: 0.78rem; font-style: normal; font-weight: 800; }
.map-embed { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--radius-sm); background: var(--sage-100); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.7) sepia(0.08); }
.location-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.location-pin { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--sage-100); color: var(--forest-700); }
.location-meta p { min-width: 0; }
.location-meta b, .location-meta small { display: block; }
.location-meta small { margin-top: 0.15rem; color: var(--muted); font-size: 0.72rem; }
.location-meta .button { min-height: 44px; padding-inline: 0.9rem; font-size: 0.75rem; }
.home-lower-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.spotlight-card {
  position: relative;
  display: flex;
  min-height: 270px;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
}
.event-spotlight { background: linear-gradient(125deg, var(--cream-50), white); border: 1px solid var(--cream-100); }
.spotlight-copy { position: relative; z-index: 2; max-width: 36rem; }
.spotlight-copy h2 { font-size: clamp(1.7rem, 2.7vw, 2.8rem); }
.spotlight-copy > p:not(.eyebrow):not(.event-facts) { margin-top: 0.85rem; color: var(--muted); }
.event-facts { display: grid; gap: 0.4rem; margin-top: 0.9rem; color: var(--forest-800); font-size: 0.8rem; font-weight: 700; }
.event-facts span { display: flex; align-items: center; gap: 0.4rem; }
.spotlight-copy .text-action { margin-top: 1.1rem; }
.spotlight-date {
  display: grid;
  width: 120px;
  height: 150px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  transform: rotate(4deg);
  border-radius: var(--radius);
  background: var(--clay-500);
  box-shadow: var(--shadow-md);
  color: white;
}
.spotlight-date b { font-family: var(--font-serif); font-size: 4rem; line-height: 1; }
.spotlight-date small { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.facebook-spotlight { flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(145deg, #edf2fe, #fff); border: 1px solid #d8e0f3; }
.facebook-spotlight h2 { font-size: 2rem; }
.facebook-spotlight p { margin-top: 0.75rem; color: var(--muted); }
.facebook-orb { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue-600); color: white; }
.facebook-orb .icon { width: 2rem; height: 2rem; }
.facebook-spotlight .text-action { margin-top: 1rem; color: var(--blue-600); }
.contact-list { display: grid; }
.contact-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.contact-list > a:first-child { border-top: 0; }
.contact-list > a > span:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--sage-50); color: var(--forest-700); }
.contact-list b, .contact-list small { display: block; }
.contact-list b { font-family: var(--font-serif); font-size: 0.98rem; }
.contact-list small { margin-top: 0.25rem; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.mobile-home { display: none; }

/* News and articles */
.editorial-layout { padding-bottom: clamp(4rem, 8vw, 8rem); }
.featured-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}
.featured-story-media { min-height: clamp(400px, 42vw, 650px); overflow: hidden; }
.featured-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.featured-story:hover .featured-story-media img { transform: scale(1.025); }
.featured-story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 4.5vw, 4.5rem); }
.story-label { margin-bottom: 1.2rem; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--clay-50); color: var(--clay-700); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.featured-story-copy h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); }
.featured-story-copy > p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.featured-story-copy .text-action { margin-top: 1.7rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-xs);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.story-card:hover { transform: translateY(-4px); border-color: var(--sage-300); box-shadow: var(--shadow-md); color: inherit; }
.story-media { position: relative; height: 245px; overflow: hidden; background: var(--sage-100); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.story-card:hover .story-media img { transform: scale(1.04); }
.story-media > span { position: absolute; left: 1rem; bottom: 1rem; padding: 0.35rem 0.65rem; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--forest-900); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; }
.story-copy { display: flex; min-height: 270px; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.3rem; }
.story-copy small { color: var(--clay-600); font-size: 0.7rem; font-weight: 750; }
.story-copy h2, .story-copy h3 { margin-top: 0.55rem; font-size: clamp(1.35rem, 2vw, 1.85rem); }
.story-copy p { margin-top: 0.8rem; color: var(--muted); font-size: 0.87rem; line-height: 1.65; }
.story-copy .text-action { margin-top: auto; padding-top: 1rem; font-size: 0.8rem; }
.article-mast { padding: clamp(3rem, 8vw, 7rem) 0 clamp(5rem, 9vw, 9rem); background: linear-gradient(145deg, var(--forest-950), var(--forest-700)); color: white; }
.article-mast .back-link { color: rgba(255,255,255,0.76); }
.article-heading { max-width: 1050px; margin: clamp(2rem, 5vw, 5rem) auto 0; text-align: center; }
.article-heading .eyebrow { justify-content: center; color: var(--cream-100); }
.article-heading h1 { color: white; font-size: clamp(3.1rem, 7vw, 7rem); }
.article-deck { max-width: 50rem; margin: 1.4rem auto 0; color: rgba(255,255,255,0.78); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin-top: 1.6rem; color: rgba(255,255,255,0.68); font-size: 0.8rem; font-weight: 700; }
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-image-wrap { position: relative; z-index: 2; margin-top: clamp(-6rem, -7vw, -4rem); }
.article-photo { width: 100%; max-height: 720px; object-fit: cover; border: 7px solid var(--paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.article-body-grid { display: grid; grid-template-columns: 90px minmax(0, var(--reading)) 1fr; gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.article-share { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; display: grid; justify-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.prose { color: var(--ink-soft); font-size: clamp(1.01rem, 1.2vw, 1.12rem); line-height: 1.88; white-space: normal; }
.article-prose { grid-column: 2; }
.article-prose::first-letter { float: left; margin: 0.06em 0.12em 0 0; color: var(--forest-800); font-family: var(--font-serif); font-size: 5rem; line-height: 0.8; }
.related-stories { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--sage-50); }
.compact-story-grid { margin-top: 0; }

/* Events */
.events-shell { max-width: 1500px; padding-bottom: clamp(4rem, 8vw, 8rem); }
.event-group + .event-group { margin-top: clamp(3rem, 6vw, 5rem); }
.event-group-title { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.event-group-title span { height: 1px; background: var(--line); }
.event-group-title h2 { font-family: var(--font-sans); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.event-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-xs);
}
.event-card + .event-card { margin-top: 1rem; }
.event-card.is-past { opacity: 0.74; }
.event-card > time {
  display: grid;
  min-height: 138px;
  place-items: center;
  align-content: center;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--clay-50), var(--cream-50));
  color: var(--clay-700);
  text-align: center;
}
.event-card > time small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.event-card > time b { font-family: var(--font-serif); font-size: 3.8rem; line-height: 0.95; }
.event-card > time span { margin-top: 0.2rem; font-weight: 800; text-transform: uppercase; }
.event-card-copy { max-width: 920px; }
.event-status-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 0.7rem; color: var(--muted); font-size: 0.78rem; }
.event-status-row > span:not(.pill) { display: flex; align-items: center; gap: 0.35rem; }
.event-card-copy h3 { font-size: clamp(1.8rem, 3vw, 3rem); }
.event-location { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.7rem; color: var(--forest-700); font-size: 0.88rem; font-weight: 700; }
.event-card-copy .prose { max-width: 65rem; margin-top: 1rem; font-size: 0.96rem; line-height: 1.7; white-space: pre-line; }
.event-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.3rem; }
.event-actions .button { min-height: 44px; font-size: 0.78rem; }

/* Bins */
.bins-intro { padding-bottom: 2.4rem; }
.bin-overview { padding-bottom: 1.5rem; }
.bin-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bin-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 138px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-xs);
}
.bin-summary-icon { position: relative; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: var(--sage-50); color: var(--forest-700); }
.bin-summary-icon > .bin-dot { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; }
.bin-summary-icon .icon { width: 1.5rem; height: 1.5rem; }
.bin-summary-card small { color: var(--muted); font-size: 0.7rem; font-weight: 750; text-transform: uppercase; }
.bin-summary-card h2 { margin-top: 0.15rem; font-size: 1.35rem; }
.bin-summary-card p { display: grid; margin-top: 0.4rem; }
.bin-summary-card p b { font-size: 0.82rem; }
.bin-summary-card p span { color: var(--clay-600); font-size: 0.7rem; font-weight: 700; }
.switch { position: relative; display: inline-flex; min-width: 48px; min-height: 44px; align-items: center; justify-content: flex-end; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; display: block; width: 46px; height: 26px; border-radius: 999px; background: #c8cfca; transition: background 160ms ease; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.18); content: ""; transition: transform 160ms ease; }
.switch input:checked + .switch-track { background: var(--forest-700); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--focus); outline-offset: 3px; }
.reminder-status { margin-top: 0.75rem; color: var(--muted); font-size: 0.75rem; text-align: right; }
.bins-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin: 1rem 0 clamp(2rem, 5vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--forest-950), var(--forest-700));
  box-shadow: var(--shadow-md);
  color: white;
}
.bins-hero.is-tonight { background: linear-gradient(125deg, #20302d, #5d4935); }
.bins-hero-icon { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 20px; background: rgba(255,255,255,0.12); }
.bins-hero-icon .icon { width: 2rem; height: 2rem; }
.bins-hero .eyebrow { color: var(--cream-100); }
.bins-hero h2 { color: white; font-size: clamp(2rem, 4vw, 4rem); }
.bins-hero p { color: rgba(255,255,255,0.76); }
.bins-dashboard { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr); gap: 1.3rem; padding-bottom: clamp(4rem, 7vw, 6rem); }
.calendar-card { padding: clamp(1.2rem, 3vw, 2.2rem); }
.calendar-today { padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--sage-100); color: var(--forest-800); font-size: 0.72rem; font-weight: 750; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.cal-grid > span { display: grid; min-width: 0; min-height: 42px; place-items: center; border-radius: 11px; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.cal-grid > span:nth-child(-n+7) { min-height: 26px; color: var(--forest-900); font-size: 0.65rem; text-transform: uppercase; }
.cal-day { position: relative; border: 1px solid transparent; background: #fafbf8; }
.cal-day.has-bin { border-color: var(--sage-200); background: var(--sage-50); color: var(--forest-950); }
.cal-day.is-today { background: var(--forest-800); color: white; }
.cal-dots { position: absolute; right: 3px; bottom: 3px; display: flex; gap: 1px; }
.cal-dots .bin-dot { width: 6px; height: 6px; border-width: 1px; }
.future-collections { padding: clamp(1.2rem, 3vw, 2.2rem); }
.week-list { display: grid; }
.week-list > article { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: center; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.week-list > article:first-child { border-top: 0; }
.week-list time { display: grid; width: 50px; height: 54px; place-items: center; align-content: center; border-radius: 14px; background: var(--cream-50); color: var(--clay-700); line-height: 1; }
.week-list time b { font-family: var(--font-serif); font-size: 1.35rem; }
.week-list time span, .week-list time small { font-size: 0.55rem; font-weight: 800; text-transform: uppercase; }
.week-list > article > div > p { margin-bottom: 0.35rem; color: var(--muted); font-size: 0.7rem; }
.week-list .bin-pill { min-height: 26px; padding: 0.25rem 0.5rem; font-size: 0.62rem; }
.bin-guides { padding-bottom: clamp(3rem, 6vw, 5rem); }
.bin-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bin-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-xs);
}
.bin-card > header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; padding: 1.35rem; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, var(--sage-50), white); }
.bin-card-symbol { position: relative; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: white; color: var(--forest-700); box-shadow: var(--shadow-xs); }
.bin-card-symbol > .bin-dot { position: absolute; top: -3px; right: -3px; width: 15px; height: 15px; }
.bin-card header h3 { font-size: 1.55rem; }
.bin-card header > div > p:last-child { color: var(--muted); font-size: 0.76rem; }
.bin-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.3rem; }
.bin-guide > div { min-width: 0; }
.bin-guide b { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; text-transform: uppercase; }
.bin-guide b .icon { color: var(--success); }
.bin-guide > div:last-child b .icon { color: var(--danger); }
.bin-guide ul { display: grid; gap: 0.45rem; margin-top: 0.7rem; padding: 0; list-style: none; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }
.bin-guide li { position: relative; padding-left: 0.9rem; }
.bin-guide li::before { position: absolute; top: 0.55em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--sage-300); content: ""; }
.bin-card-dates { margin-top: auto; padding: 1.1rem 1.3rem 1.3rem; border-top: 1px solid var(--line); background: #fafbf8; }
.bin-card-dates > b { font-size: 0.72rem; text-transform: uppercase; }
.bin-upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem; margin-top: 0.7rem; padding: 0; list-style: none; }
.bin-upcoming li { display: grid; padding: 0.55rem; border-radius: 10px; background: white; }
.bin-upcoming span { font-size: 0.72rem; font-weight: 800; }
.bin-upcoming small { color: var(--clay-600); font-size: 0.63rem; }
.bins-note { margin-bottom: clamp(4rem, 8vw, 7rem); }
.bins-note h2 { font-size: 1.7rem; }
.bins-note p { margin-top: 0.55rem; }
.bins-note .button { margin-top: 1rem; }

/* Messageboard */
.board-intro { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(2rem, 4vw, 3.5rem); background: linear-gradient(135deg, var(--forest-950), var(--forest-700)); }
.board-intro-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.board-intro .section-icon { margin-bottom: 1.2rem; background: rgba(255,255,255,0.12); color: white; }
.board-intro .eyebrow { color: var(--cream-100); }
.board-intro h1 { color: white; font-size: clamp(3rem, 6vw, 6rem); }
.board-intro .lead { margin-top: 1rem; color: rgba(255,255,255,0.75); }
.board-filter-wrap { position: sticky; z-index: 45; top: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(252,251,248,0.95); backdrop-filter: blur(14px); }
.chips { display: flex; gap: 0.55rem; padding: 1rem 0; overflow-x: auto; scrollbar-width: thin; }
.chip {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}
.chip:hover { border-color: var(--sage-300); background: var(--sage-50); color: var(--forest-950); }
.chip.is-on { border-color: var(--forest-700); background: var(--forest-700); color: white; }
.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1rem, 2.4vw, 2.3rem); align-items: start; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 8vw, 8rem); }
.board-feed { display: grid; gap: 1rem; }
.post-card {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.post-card:hover { transform: translateY(-2px); border-color: var(--sage-300); box-shadow: var(--shadow-sm); }
.post-meta { display: flex; min-width: 0; align-items: center; gap: 0.75rem; }
.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--forest-700), var(--sage-300));
  box-shadow: 0 0 0 1px var(--line);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.large-avatar { width: 60px; height: 60px; font-size: 0.9rem; }
.post-meta > div { min-width: 0; }
.post-meta b, .post-meta small { display: block; }
.post-meta b { color: var(--forest-950); font-size: 0.88rem; }
.post-meta small { display: flex; align-items: center; gap: 0.25rem; margin-top: 0.2rem; overflow: hidden; color: var(--clay-600); font-size: 0.69rem; text-overflow: ellipsis; white-space: nowrap; }
.post-meta > time { margin-left: auto; color: var(--muted); font-size: 0.7rem; white-space: nowrap; }
.post-category { margin: 1rem 0 0.5rem; }
.post-category span, .thread-category { display: inline-flex; padding: 0.28rem 0.6rem; border-radius: 999px; background: var(--sage-100); color: var(--forest-700); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.post-card h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card > p { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.7; }
.post-foot { display: flex; gap: 1rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.post-foot > span { display: flex; align-items: center; gap: 0.35rem; }
.post-foot > span small { color: inherit; }
.post-foot > a { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; font-weight: 800; text-decoration: none; }
.post-foot > a .icon { width: 0.95rem; }
.board-sidebar { position: sticky; top: calc(var(--header-height) + 88px); display: grid; gap: 1rem; }
.board-sidebar h2 { margin-top: 1rem; font-size: 1.55rem; }
.board-sidebar p { margin-top: 0.65rem; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.board-profile { display: grid; justify-items: start; }
.board-profile .pill { margin-top: 0.5rem; }
.board-profile .button { width: 100%; margin-top: 1.2rem; }
.board-join-card .button { width: 100%; margin-top: 1rem; }
.board-join-card .text-action { margin-top: 1rem; font-size: 0.77rem; }
.fab {
  position: fixed;
  z-index: 65;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 18px));
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-700);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}
.fab:hover { transform: translateY(-2px); background: var(--forest-950); color: white; }
.fab .icon { width: 1.65rem; height: 1.65rem; }

/* Threads and composing */
.thread-shell { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 8rem); }
.thread-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(1rem, 3vw, 3rem); align-items: start; margin-top: 1.8rem; }
.thread-main { min-width: 0; }
.thread-title { margin-bottom: 1.2rem; padding: clamp(1.3rem, 2.5vw, 2rem); border-radius: var(--radius); background: var(--sage-50); }
.thread-title h1 { max-width: 18ch; margin-top: 0.7rem; font-size: clamp(2.3rem, 4.8vw, 4.8rem); }
.thread-summary { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin-top: 1rem; color: var(--muted); font-size: 0.75rem; }
.thread-summary span { display: flex; align-items: center; gap: 0.35rem; }
.reply {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-xs);
}
.reply.is-op { border-top: 5px solid var(--forest-700); }
.reply .post-meta { margin-bottom: 1.2rem; }
.reply .prose { max-width: 72ch; font-size: 0.95rem; line-height: 1.8; white-space: pre-line; }
.thread-actions { display: flex; gap: 0.7rem; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.reaction-button,
.reaction-readonly {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
}
.reaction-button { cursor: pointer; }
.reaction-button:hover, .reaction-button.is-liked { border-color: var(--sage-300); background: var(--sage-50); color: var(--forest-800); }
.reply-thread { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.reply-thread-head { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; }
.reply-thread-head h2 { font-size: 1.55rem; }
.reply-thread-head span { color: var(--muted); font-size: 0.72rem; }
.reply-number { position: absolute; top: 1rem; right: 1rem; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--sage-50); color: var(--muted); font-size: 0.65rem; font-weight: 800; }
.reply-form {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}
.form-heading { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.2rem; }
.form-heading h2 { font-size: 1.55rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: center; }
.form-actions small { color: var(--muted); font-size: 0.72rem; }
.reply-locked { margin-top: 1.5rem; }
.thread-sidebar { position: sticky; top: calc(var(--header-height) + 2rem); display: grid; gap: 1rem; }
.thread-sidebar h2 { margin-top: 1rem; font-size: 1.5rem; }
.thread-sidebar p { margin-top: 0.65rem; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.thread-nav-card .text-action { margin-top: 1rem; font-size: 0.77rem; }
.compose-shell { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.compose-layout { display: grid; grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; margin-top: 2rem; }
.compose-intro { position: sticky; top: calc(var(--header-height) + 2rem); }
.compose-intro .section-icon { margin-bottom: 1.2rem; }
.compose-intro h1 { max-width: 9ch; }
.compose-intro > p:not(.eyebrow) { max-width: 30rem; margin-top: 1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.compose-tips { margin-top: 2rem; padding: 1.3rem; border-radius: var(--radius); background: var(--sage-50); }
.compose-tips h2 { font-size: 1.3rem; }
.compose-tips ul { display: grid; gap: 0.7rem; margin-top: 1rem; padding: 0; list-style: none; }
.compose-tips li { display: flex; align-items: center; gap: 0.55rem; color: var(--ink-soft); font-size: 0.82rem; }
.compose-tips .icon { color: var(--success); }
.compose-form { padding: clamp(1.3rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }

/* Forms */
.stack-form,
.install-form { display: grid; gap: 1rem; }
.stack-form label,
.install-form label { display: grid; gap: 0.45rem; color: var(--ink); font-size: 0.78rem; font-weight: 750; }
.stack-form label > span,
.install-form label > span { line-height: 1.35; }
.stack-form label small,
.install-form label small { color: var(--muted); font-size: 0.68rem; font-weight: 500; }
input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 1px 2px rgba(21,47,33,0.025);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #96a19b; }
input:hover, textarea:hover, select:hover { border-color: #aebbb1; }
input:focus, textarea:focus, select:focus { border-color: var(--forest-600); outline: 0; box-shadow: 0 0 0 4px rgba(49,92,63,0.12); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.check { display: grid !important; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem !important; align-items: start; font-weight: 500 !important; line-height: 1.55; }
.check input { width: 20px; min-height: 20px; margin-top: 0.15rem; accent-color: var(--forest-700); }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; z-index: 1; top: 50%; left: 0.85rem; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 2.65rem; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; }

/* Useful directory */
.directory-shell { padding-bottom: clamp(4rem, 8vw, 8rem); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.directory-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-xs); }
.directory-group > header { display: flex; gap: 0.9rem; align-items: center; padding: 1.3rem; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, var(--sage-50), white); }
.directory-icon { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: white; color: var(--forest-700); box-shadow: var(--shadow-xs); }
.directory-icon .icon { width: 1.5rem; height: 1.5rem; }
.directory-group header h2 { font-size: 1.6rem; }
.directory-group header small { color: var(--muted); font-size: 0.7rem; }
.directory-list { display: grid; }
.directory-list > a { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.directory-list > a:first-child { border-top: 0; }
.directory-list > a:hover { background: var(--sage-50); color: inherit; }
.directory-list b, .directory-list small { display: block; }
.directory-list b { font-family: var(--font-serif); font-size: 1.12rem; }
.directory-list small { max-width: 36rem; margin-top: 0.35rem; color: var(--muted); font-size: 0.77rem; line-height: 1.5; }
.external-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.3rem; color: var(--forest-700); font-size: 0.7rem; font-weight: 800; }
.external-chip .icon { width: 0.9rem; }
.directory-note { display: flex; gap: 1rem; align-items: center; margin-top: 1.2rem; padding: clamp(1.2rem, 2.5vw, 2rem); border-radius: var(--radius-lg); background: var(--forest-900); color: white; }
.directory-note > span { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border-radius: 17px; background: rgba(255,255,255,0.12); }
.directory-note > span .icon { width: 1.7rem; height: 1.7rem; }
.directory-note h2 { color: white; font-size: 1.7rem; }
.directory-note p { margin-top: 0.45rem; color: rgba(255,255,255,0.7); }
.directory-note .text-action { margin-top: 0.8rem; color: var(--cream-100); }

/* Join and sign in */
.auth-experience { display: grid; min-height: calc(100vh - 34px - var(--header-height)); grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.08fr); background: white; }
.auth-visual { position: sticky; top: var(--header-height); min-height: calc(100vh - var(--header-height)); align-self: start; overflow: hidden; background: var(--forest-950); }
.auth-visual-image,
.auth-visual-shade { position: absolute; inset: 0; }
.auth-visual-image img { width: 100%; height: 100%; object-fit: cover; }
.auth-visual-shade { background: linear-gradient(180deg, rgba(12,34,24,0.3), rgba(12,34,24,0.93)); }
.auth-visual-content { position: relative; z-index: 2; display: flex; min-height: inherit; flex-direction: column; justify-content: flex-end; padding: clamp(2rem, 5vw, 5rem); color: white; }
.auth-crest { width: clamp(150px, 20vw, 260px); margin-bottom: 2rem; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.22)); }
.auth-visual-content .eyebrow { color: var(--cream-100); }
.auth-visual-content h1 { max-width: 11ch; color: white; font-size: clamp(3rem, 5vw, 5.8rem); }
.auth-visual-content > p:not(.eyebrow) { max-width: 38rem; margin-top: 1rem; color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.7; }
.auth-visual-content ul { display: grid; gap: 0.75rem; margin-top: 1.8rem; padding: 0; list-style: none; color: rgba(255,255,255,0.84); font-size: 0.86rem; }
.auth-visual-content li { display: flex; gap: 0.55rem; align-items: center; }
.auth-visual-content li .icon { color: var(--cream-100); }
.compact-auth-copy { justify-content: center; }
.auth-form-side { min-width: 0; padding: clamp(2rem, 5vw, 6rem); }
.auth-form-wrap { width: min(780px, 100%); margin-inline: auto; }
.auth-form-wrap > .back-link { margin-bottom: clamp(2rem, 4vw, 4rem); }
.auth-form-wrap > h2 { max-width: 15ch; font-size: clamp(2.2rem, 4vw, 4rem); }
.auth-lead { max-width: 44rem; margin-top: 1rem; color: var(--muted); line-height: 1.7; }
.verification-note { display: flex; gap: 0.8rem; align-items: flex-start; margin: 1.5rem 0 2rem; padding: 1rem; border: 1px solid var(--sage-200); border-radius: var(--radius-sm); background: var(--sage-50); }
.verification-note > span { color: var(--forest-700); }
.verification-note p { color: var(--ink-soft); font-size: 0.8rem; line-height: 1.55; }
.membership-form { gap: 1.3rem; }
.membership-form fieldset { display: grid; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.membership-form legend { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; color: var(--forest-950); font-family: var(--font-serif); font-size: 1.25rem; font-weight: 650; }
.membership-form legend span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--forest-700); color: white; font-family: var(--font-sans); font-size: 0.72rem; }
.form-signin { color: var(--muted); font-size: 0.78rem; text-align: center; }
.form-signin a { font-weight: 800; }
.signin-form-wrap { max-width: 600px; padding-top: clamp(2rem, 8vh, 7rem); }
.auth-form-icon { display: grid; width: 58px; height: 58px; margin-bottom: 1.4rem; place-items: center; border-radius: 18px; background: var(--sage-100); color: var(--forest-700); }
.auth-form-icon .icon { width: 1.7rem; height: 1.7rem; }
.signin-form { margin-top: 2rem; }
.compact-callout { margin-top: 1.5rem; padding: 1rem; }
.compact-callout p { margin-top: 0.25rem; color: var(--muted); font-size: 0.78rem; }
.signin-reassurance { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.5rem; color: var(--muted); font-size: 0.75rem; }
.signin-reassurance .icon { color: var(--forest-600); }
.membership-state-page { display: grid; min-height: 70vh; place-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.membership-state-card { display: grid; width: min(760px, 100%); justify-items: center; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: white; box-shadow: var(--shadow-md); text-align: center; }
.membership-state-card > img { width: 210px; }
.state-icon { display: grid; width: 52px; height: 52px; margin: -0.4rem 0 1.2rem; place-items: center; border-radius: 50%; background: var(--warning-bg); color: var(--warning); }
.membership-state-card h1 { max-width: 13ch; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.membership-state-card > p:not(.eyebrow) { max-width: 39rem; margin-top: 1rem; color: var(--muted); line-height: 1.75; }
.membership-state-card .button-row { justify-content: center; margin-top: 1.6rem; }

/* About and privacy */
.about-hero { position: relative; min-height: clamp(520px, 58vw, 780px); overflow: hidden; }
.about-hero-media { position: absolute; inset: 0; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,34,24,0.78), rgba(12,34,24,0.04) 72%); content: ""; }
.about-hero-inner { position: relative; z-index: 2; display: flex; min-height: inherit; align-items: flex-end; padding-bottom: clamp(2rem, 5vw, 5rem); }
.about-hero-card { max-width: 850px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(255,255,255,0.23); border-radius: var(--radius-lg); background: rgba(14,39,26,0.66); backdrop-filter: blur(12px); }
.about-hero-card .eyebrow { color: var(--cream-100); }
.about-hero-card h1 { color: white; }
.about-hero-card > p:not(.eyebrow) { max-width: 45rem; margin-top: 1rem; color: rgba(255,255,255,0.8); font-size: 1.05rem; line-height: 1.7; }
.about-content { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 8rem); align-items: start; padding-block: clamp(4rem, 9vw, 9rem); }
.about-crest-column { position: sticky; top: calc(var(--header-height) + 2rem); }
.about-crest-column > img { width: min(520px, 100%); margin-inline: auto; }
.heritage-note { display: flex; gap: 0.75rem; margin-top: 1.2rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--cream-50); color: var(--ink-soft); font-size: 0.8rem; line-height: 1.6; }
.heritage-note > span { color: var(--clay-600); }
.about-copy > h2 { max-width: 14ch; font-size: clamp(2.4rem, 5vw, 5rem); }
.about-copy > .prose { max-width: 720px; margin-top: 1.5rem; white-space: pre-line; }
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 2.5rem; }
.about-values article { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; }
.about-values article > span { display: grid; width: 42px; height: 42px; margin-bottom: 0.8rem; place-items: center; border-radius: 13px; background: var(--sage-100); color: var(--forest-700); }
.about-values b, .about-values small { display: block; }
.about-values b { font-family: var(--font-serif); }
.about-values small { margin-top: 0.35rem; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.about-photo-band { position: relative; min-height: 500px; margin-bottom: clamp(4rem, 8vw, 8rem); overflow: hidden; border-radius: var(--radius-xl); }
.about-photo-band::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,34,24,0.9), rgba(12,34,24,0.15)); content: ""; }
.about-photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo-band > div { position: relative; z-index: 2; display: flex; min-height: inherit; max-width: 700px; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
.about-photo-band .eyebrow { color: var(--cream-100); }
.about-photo-band h2 { color: white; font-size: clamp(2.5rem, 5vw, 5rem); }
.about-photo-band p:not(.eyebrow) { margin-top: 1rem; color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.7; }
.about-photo-band .button-row { margin-top: 1.5rem; }
.legal-layout { display: grid; grid-template-columns: minmax(0, var(--reading)) 320px; gap: clamp(2rem, 6vw, 6rem); align-items: start; padding-bottom: clamp(4rem, 8vw, 8rem); }
.legal-prose { white-space: pre-line; }
.legal-summary { position: sticky; top: calc(var(--header-height) + 2rem); }
.legal-summary h2 { margin-top: 1rem; font-size: 1.55rem; }
.legal-summary ul { display: grid; gap: 0.7rem; margin-top: 1rem; padding-left: 1.15rem; color: var(--muted); font-size: 0.82rem; }
.legal-summary .button { width: 100%; margin-top: 1.2rem; }

/* Profile */
.profile-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(135deg, var(--forest-950), var(--forest-700)); color: white; }
.profile-hero-inner { display: flex; gap: 1.2rem; align-items: center; }
.profile-avatar { display: grid; width: 92px; height: 92px; flex: 0 0 auto; place-items: center; border: 3px solid rgba(255,255,255,0.65); border-radius: 50%; background: rgba(255,255,255,0.14); color: white; font-family: var(--font-serif); font-size: 2rem; }
.profile-hero .eyebrow { color: var(--cream-100); }
.profile-hero h1 { color: white; font-size: clamp(2.7rem, 5.5vw, 5.5rem); }
.profile-hero p:not(.eyebrow) { margin-top: 0.45rem; color: rgba(255,255,255,0.73); }
.profile-hero .pill { margin-left: auto; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 1.3rem; align-items: start; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 8rem); }
.profile-main, .profile-sidebar { display: grid; gap: 1.2rem; }
.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.profile-details > div { min-width: 0; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-details > div:nth-child(2n) { border-right: 0; }
.profile-details > div:nth-last-child(-n+2) { border-bottom: 0; }
.profile-details dt { color: var(--muted); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; }
.profile-details dd { margin: 0.4rem 0 0; overflow-wrap: anywhere; font-weight: 650; }
.profile-status-callout h2 { font-size: 1.75rem; }
.profile-status-callout p { margin-top: 0.5rem; color: var(--muted); }
.profile-status-callout .button { margin-top: 1rem; }
.profile-status-callout.is-approved { background: var(--success-bg); }
.profile-sidebar h2 { margin-top: 0.35rem; font-size: 1.55rem; }
.account-actions { display: grid; margin-top: 1rem; border-top: 1px solid var(--line); }
.account-actions a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.7rem; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.account-actions a > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--sage-50); color: var(--forest-700); }
.account-actions a > .icon { width: 0.9rem; color: var(--muted); }
.admin-profile-card h2 { margin-top: 1rem; }
.admin-profile-card p { margin-top: 0.6rem; color: var(--muted); font-size: 0.83rem; }
.admin-profile-card .button { width: 100%; margin-top: 1rem; }

/* Search */
.search-hero { padding: clamp(3rem, 7vw, 6rem) 0; background: linear-gradient(135deg, var(--cream-50), var(--sage-50)); }
.search-hero .section-icon { margin-bottom: 1.2rem; }
.search-hero h1 { max-width: 13ch; font-size: clamp(3rem, 6vw, 6rem); }
.hero-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; max-width: 920px; margin-top: 2rem; padding: 0.5rem; border: 1px solid var(--line-strong); border-radius: 999px; background: white; box-shadow: var(--shadow-md); }
.hero-search > .icon { margin-left: 0.9rem; color: var(--muted); }
.hero-search input { min-width: 0; border: 0; box-shadow: none; background: transparent; }
.search-results { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 8rem); }
.search-start > p { color: var(--muted); }
.search-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.5rem; }
.search-suggestions > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; min-height: 100px; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: inherit; text-decoration: none; }
.search-suggestions > a:hover { border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.search-suggestions > a > .icon:first-child { width: 1.6rem; height: 1.6rem; color: var(--forest-600); }
.search-suggestions b, .search-suggestions small { display: block; }
.search-suggestions b { font-family: var(--font-serif); font-size: 1.15rem; }
.search-suggestions small { margin-top: 0.25rem; color: var(--muted); font-size: 0.72rem; }
.results-head { margin-bottom: 2rem; }
.result-section + .result-section { margin-top: 3rem; }
.result-section-title { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1rem; }
.result-section-title > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--sage-100); color: var(--forest-700); }
.result-section-title h2 { font-size: 1.7rem; }
.result-list { display: grid; gap: 0.75rem; }
.result-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; color: inherit; text-decoration: none; }
.result-card:hover { border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.result-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--cream-50); color: var(--clay-600); }
.result-card small { color: var(--clay-600); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; }
.result-card h3 { margin-top: 0.3rem; font-size: 1.25rem; }
.result-card p { margin-top: 0.35rem; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.result-card > .icon { color: var(--muted); }

/* Add to home screen */
.install-hero { overflow: hidden; padding: clamp(3rem, 7vw, 7rem) 0; background: linear-gradient(135deg, var(--forest-950), var(--forest-700)); color: white; }
.install-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.65fr); gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.install-copy .eyebrow { color: var(--cream-100); }
.install-copy h1 { max-width: 11ch; color: white; font-size: clamp(3.2rem, 6.5vw, 6.5rem); }
.install-copy .lead { margin-top: 1.2rem; color: rgba(255,255,255,0.76); }
.install-copy .button-row { margin-top: 1.8rem; }
.install-state { margin-top: 1rem; color: var(--cream-100); font-size: 0.8rem; font-weight: 700; }
.install-phone { position: relative; display: grid; justify-items: center; }
.install-phone-shell { position: relative; width: min(330px, 75vw); padding: 14px; border: 7px solid #101513; border-radius: 48px; background: #050706; box-shadow: 0 36px 70px rgba(0,0,0,0.35); }
.phone-speaker { position: absolute; z-index: 4; top: 12px; left: 50%; width: 95px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #0a0d0b; }
.install-phone-screen { overflow: hidden; border-radius: 34px; background: var(--paper); color: var(--ink); }
.install-phone-screen .mini-brand { padding: 1.3rem 0.8rem 0.7rem; }
.install-phone-screen > img { width: calc(100% - 1.2rem); height: 150px; margin: 0.6rem; border-radius: 18px; object-fit: cover; }
.mini-brand { display: flex; gap: 0.35rem; align-items: center; color: var(--forest-900); font-family: var(--font-serif); font-size: 0.8rem; font-weight: 650; }
.mini-brand .brand-mark { width: 40px; height: 33px; }
.install-mini-copy { padding: 0.4rem 0.8rem 1rem; }
.install-mini-copy > b { font-family: var(--font-serif); font-size: 1.2rem; }
.mini-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin-top: 0.7rem; }
.mini-actions i { height: 42px; border-radius: 12px; background: var(--sage-100); }
.install-mini-copy > span { display: block; height: 54px; margin-top: 0.5rem; border-radius: 12px; background: white; }
.app-icon-preview { position: absolute; right: 0; bottom: 3rem; display: flex; gap: 0.7rem; align-items: center; padding: 0.7rem; border-radius: 18px; background: white; box-shadow: var(--shadow-lg); color: var(--ink); }
.app-icon-preview img { width: 56px; height: 56px; border-radius: 14px; }
.app-icon-preview b, .app-icon-preview small { display: block; }
.app-icon-preview b { font-family: var(--font-serif); }
.app-icon-preview small { color: var(--muted); font-size: 0.65rem; }
.install-benefits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: -34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); box-shadow: var(--shadow-md); }
.install-benefits article { padding: 1.4rem; background: white; }
.install-benefits article > span { display: grid; width: 44px; height: 44px; margin-bottom: 0.8rem; place-items: center; border-radius: 13px; background: var(--sage-100); color: var(--forest-700); }
.install-benefits b { display: block; font-family: var(--font-serif); font-size: 1.1rem; }
.install-benefits p { margin-top: 0.35rem; color: var(--muted); font-size: 0.75rem; }
.install-instructions { padding-block: clamp(4rem, 8vw, 8rem); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.platform-card { padding: clamp(1.3rem, 3vw, 2.3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-xs); }
.platform-badge { display: inline-flex; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--sage-100); color: var(--forest-700); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; }
.platform-card h3 { margin-top: 0.75rem; font-size: 2rem; }
.platform-card ol { display: grid; gap: 0; margin-top: 1.3rem; padding: 0; list-style: none; counter-reset: none; }
.platform-card li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.platform-card li > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--cream-50); color: var(--clay-700); font-weight: 800; }
.platform-card li b, .platform-card li p { display: block; }
.platform-card li b { font-size: 0.88rem; }
.platform-card li p { margin-top: 0.25rem; color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.platform-card > .button { margin-top: 1rem; }
.install-help { margin-top: 1.2rem; }

/* 404 */
.not-found-page { display: grid; min-height: 70vh; grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; padding-block: clamp(3rem, 8vw, 8rem); }
.not-found-art { position: relative; display: grid; place-items: center; }
.not-found-art img { width: min(500px, 100%); opacity: 0.84; }
.not-found-art > span { position: absolute; right: 2%; bottom: 5%; color: var(--clay-500); font-family: var(--font-serif); font-size: clamp(5rem, 12vw, 12rem); font-weight: 700; opacity: 0.18; }
.not-found-page h1 { max-width: 10ch; }
.not-found-page .lead { margin-top: 1rem; }
.not-found-page .button-row { margin-top: 1.7rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.not-found-links a { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 800; text-decoration: none; }

/* PWA promotion and footer */
.a2hs-band { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 6rem) 0; background: linear-gradient(130deg, var(--cream-50), var(--sage-100)); }
.a2hs-grid { display: grid; grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.a2hs-art { position: relative; display: grid; place-items: center; min-height: 330px; }
.phone-frame { position: relative; z-index: 2; width: 210px; padding: 10px; transform: rotate(-5deg); border: 6px solid var(--forest-950); border-radius: 34px; background: var(--forest-950); box-shadow: var(--shadow-lg); }
.phone-screen { overflow: hidden; border-radius: 23px; background: white; }
.phone-screen .mini-brand { padding: 1.5rem 0.6rem 0.5rem; font-size: 0.65rem; }
.phone-screen .mini-brand .brand-mark { width: 32px; height: 28px; }
.phone-screen > img { width: calc(100% - 0.8rem); height: 110px; margin: 0.4rem; border-radius: 12px; object-fit: cover; }
.phone-screen .mini-actions { padding: 0 0.4rem 0.7rem; }
.phone-screen .mini-actions i { height: 34px; }
.a2hs-leaf { position: absolute; color: var(--forest-600); opacity: 0.2; }
.a2hs-leaf .icon { width: 110px; height: 110px; }
.leaf-one { left: 10%; bottom: 5%; transform: rotate(-25deg); }
.leaf-two { top: 5%; right: 5%; transform: rotate(28deg); }
.a2hs-copy h2 { max-width: 13ch; font-size: clamp(2.4rem, 5vw, 5rem); }
.a2hs-copy > p:not(.eyebrow):not(.install-state) { max-width: 47rem; margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }
.a2hs-copy .button-row { margin-top: 1.6rem; }
.a2hs-copy .install-state { color: var(--forest-700); }
.site-footer { padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem; background: var(--forest-950); color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: minmax(300px, 1.4fr) repeat(3, minmax(130px, 0.55fr)); gap: clamp(2rem, 5vw, 5rem); }
.footer-brand { max-width: 450px; }
.footer-lockup .brand-mark { width: 78px; height: 66px; }
.footer-lockup .brand-copy b { color: white; }
.footer-lockup .brand-copy small { color: var(--cream-100); }
.footer-brand > p { margin-top: 1.2rem; font-size: 0.82rem; line-height: 1.7; }
.footer-location { display: flex; gap: 0.4rem; align-items: flex-start; color: rgba(255,255,255,0.55); }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer-grid nav b { margin-bottom: 0.35rem; color: white; font-family: var(--font-serif); font-size: 1.12rem; }
.footer-grid nav a { display: inline-flex; align-items: center; gap: 0.3rem; color: rgba(255,255,255,0.68); font-size: 0.78rem; text-decoration: none; }
.footer-grid nav a:hover { color: white; }
.footer-grid nav a .icon { width: 0.8rem; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.7rem; }
.align-credit { color: rgba(255,255,255,0.78); text-decoration: none; }
.align-credit:hover { color: white; }

/* Admin */
.admin-body { background: #f3f5f2; }
.admin-top { display: none; }
.admin-nav {
  position: fixed;
  z-index: 110;
  inset: 0 auto 0 0;
  display: flex;
  width: 288px;
  flex-direction: column;
  padding: 1.3rem;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--forest-950), #132b20);
  color: white;
  box-shadow: 10px 0 34px rgba(16,41,30,0.12);
}
.admin-nav > .brand { padding: 0.2rem 0.2rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav .brand-mark { width: 58px; height: 49px; }
.admin-nav .brand-copy b { color: white; font-size: 1.2rem; }
.admin-nav .brand-copy small { color: var(--cream-100); }
.nav-group { display: grid; gap: 0.25rem; margin-top: 1.5rem; }
.nav-label { margin: 0 0.5rem 0.4rem; color: rgba(255,255,255,0.42); font-size: 0.61rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.admin-nav .nav-group > a,
.nav-foot a { display: flex; min-height: 44px; align-items: center; padding: 0.65rem 0.75rem; border-radius: 11px; color: rgba(255,255,255,0.72); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
.admin-nav .nav-group > a:hover,
.admin-nav .nav-group > a.is-current { background: rgba(255,255,255,0.1); color: white; }
.admin-nav .nav-group > a.is-current { box-shadow: inset 3px 0 0 var(--clay-500); }
.nav-foot { display: grid; gap: 0.2rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-shell { min-height: 100vh; margin-left: 288px; }
.admin-main { width: min(1380px, calc(100% - 64px)); margin-inline: auto; padding: clamp(2.5rem, 5vw, 5rem) 0; }
.admin-page-head { margin-bottom: 2rem; }
.admin-page-head h1 { font-size: clamp(2.5rem, 4.5vw, 4.7rem); }
.admin-page-head .lede { margin-top: 0.8rem; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.admin-stats article { display: grid; gap: 0.5rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-xs); }
.admin-stats span { color: var(--muted); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }
.admin-stats strong { color: var(--forest-950); font-family: var(--font-serif); font-size: 3rem; line-height: 1; }
.admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.admin-actions > a { display: grid; gap: 0.4rem; min-height: 130px; align-content: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: inherit; text-decoration: none; }
.admin-actions > a:hover { border-color: var(--sage-300); box-shadow: var(--shadow-sm); color: inherit; }
.admin-actions strong { font-family: var(--font-serif); font-size: 1.3rem; }
.admin-actions span { font-size: 0.8rem; }
.admin-panel,
.stack-form.compact { padding: clamp(1.1rem, 2.5vw, 2rem); }
.stack-form.compact { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-xs); }
.admin-panel + .admin-panel { margin-top: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-xs); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--sage-50); color: var(--muted); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
td { font-size: 0.8rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
td small { color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.table-wrap button,
.inline-actions button {
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: white;
  color: var(--forest-800);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}
.table-wrap button:hover,
.inline-actions button:hover { border-color: var(--forest-700); background: var(--sage-50); }
.inline-actions button[value="declined"],
.table-wrap form input[value="delete"] ~ button { color: var(--danger); }
.menu-toggle { min-height: 44px; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 750; cursor: pointer; }
.admin-login-body { min-height: 100vh; background: var(--paper); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(2rem, 5vw, 5rem); background: linear-gradient(145deg, var(--forest-950), var(--forest-700)); color: white; }
.login-visual::after { position: absolute; right: -8rem; bottom: -8rem; width: 28rem; height: 28rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; content: ""; }
.login-visual > .brand-mark { width: 150px; height: 126px; }
.login-visual h2 { color: white; }
.login-visual p { max-width: 36rem; color: rgba(255,255,255,0.74); }
.login-panel { display: flex; flex-direction: column; justify-content: center; width: min(620px, calc(100% - 48px)); margin-inline: auto; padding-block: 3rem; }
.login-panel h1 { font-size: clamp(2.8rem, 5vw, 5rem); }
.login-panel .lede { margin: 0.8rem 0 2rem; }
.login-panel > .muted { margin-top: 1.5rem; }

/* Installer */
.install-body { display: grid; min-height: 100vh; place-items: center; padding: clamp(1rem, 4vw, 4rem); background: linear-gradient(145deg, var(--forest-950), var(--forest-700)); }
.install-card { width: min(900px, 100%); padding: clamp(1.3rem, 4vw, 3.2rem); border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--shadow-lg); }
.install-card > h1 { max-width: 15ch; font-size: clamp(2.3rem, 5vw, 4.6rem); }
.install-card > .lede { margin-top: 1rem; }
.install-card code { padding: 0.15rem 0.35rem; border-radius: 6px; background: var(--sage-100); }
.install-form { margin-top: 2rem; }
.install-form > h2 { margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.6rem; }
.install-form > h2 small { color: var(--muted); font-family: var(--font-sans); font-size: 0.7rem; }
.help { color: var(--muted); font-size: 0.8rem; }
.form-errors { margin-top: 1rem; padding: 1rem; border: 1px solid #e8b9aa; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger); }

/* Legacy compatibility */
.page-head { padding: 3rem 0; }
.article, .news-list, .event-list, .link-groups { padding-bottom: 5rem; }
.hero-card-photo img, .about-photo img, .article-photo { object-fit: cover; }
.list-card { padding: 1rem; }

/* Tablet */
@media (max-width: 1280px) {
  :root { --page-pad: clamp(20px, 3vw, 42px); }
  .header-inner { gap: 1rem; }
  .brand-mark { width: 56px; height: 48px; }
  .brand-copy b { font-size: 1.2rem; }
  .brand-copy small { font-size: 0.54rem; }
  .desk-nav { gap: 0.1rem; }
  .header-cta > span:last-child { display: none; }
  .header-cta { width: 48px; padding: 0; }
  .header-avatar { width: 32px; height: 32px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 175px; }
  .home-dashboard { grid-template-columns: minmax(260px, 0.9fr) minmax(380px, 1.25fr); }
  .location-panel { grid-column: 1 / -1; }
  .location-panel .map-embed { min-height: 360px; }
  .home-lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts-panel { grid-column: 1 / -1; }
  .featured-story { grid-template-columns: 1.15fr 0.85fr; }
  .bin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bin-card:last-child { grid-column: 1 / -1; }
  .auth-experience { grid-template-columns: minmax(350px, 0.8fr) minmax(500px, 1.2fr); }
}

@media (max-width: 1080px) {
  :root { --header-height: 76px; }
  .community-strip { display: none; }
  .desk-nav { display: none; }
  .header-inner { min-height: var(--header-height); }
  .header-actions { margin-left: auto; }
  .header-cta { display: inline-flex; }
  .tab-bar {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 5px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.97);
    box-shadow: 0 -10px 28px rgba(16,41,30,0.08);
    backdrop-filter: blur(16px);
  }
  .tab-bar a { position: relative; display: grid; min-width: 0; min-height: 58px; place-items: center; align-content: center; gap: 0.2rem; border-radius: 12px; color: #49574f; font-size: 0.62rem; font-weight: 700; text-decoration: none; }
  .tab-bar a .icon { width: 1.35rem; height: 1.35rem; }
  .tab-bar a.is-current { color: var(--forest-700); }
  .tab-bar a.is-current::after { position: absolute; right: 25%; bottom: 3px; left: 25%; height: 3px; border-radius: 3px; background: var(--forest-700); content: ""; }
  .public-body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .public-body .site-footer { margin-bottom: calc(-68px - env(safe-area-inset-bottom)); padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .fab { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .board-filter-wrap { top: var(--header-height); }
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-heritage-card { display: none; }
  .home-hero-copy h2 { font-size: clamp(3.8rem, 8vw, 6.5rem); }
  .home-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-panel { grid-column: 1 / -1; }
  .home-lower-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(130px, 0.6fr)); gap: 2.5rem 2rem; }
  .footer-grid nav:nth-of-type(3) { grid-column: 2 / -1; }
  .featured-story { grid-template-columns: 1fr 0.78fr; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bins-ribbon { grid-template-columns: auto 1fr auto; }
  .bins-ribbon > .bin-pills { grid-column: 2; }
  .bin-summary-grid { grid-template-columns: 1fr; }
  .bins-dashboard { grid-template-columns: 1fr; }
  .bin-list { grid-template-columns: 1fr; }
  .bin-card:last-child { grid-column: auto; }
  .board-layout, .thread-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .auth-experience { grid-template-columns: 1fr; }
  .auth-visual { position: relative; top: auto; min-height: 520px; }
  .auth-visual-content { min-height: 520px; }
  .auth-visual-content h1 { font-size: clamp(3rem, 7vw, 5rem); }
  .about-content { gap: 3rem; }
  .about-values { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .admin-nav { transform: translateX(-102%); transition: transform 180ms ease; }
  .admin-nav.is-open { transform: translateX(0); }
  .admin-top { position: sticky; z-index: 100; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 1.2rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); }
  .admin-top .brand-mark { width: 48px; height: 40px; }
  .admin-top .brand-copy b { font-size: 1rem; }
  .admin-top .brand-copy small { display: none; }
  .admin-shell { margin-left: 0; }
  .admin-main { width: min(100% - 36px, 1200px); padding-top: 2.2rem; }
  .admin-body::after { position: fixed; z-index: 105; inset: 0; visibility: hidden; opacity: 0; background: rgba(8,24,15,0.52); content: ""; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
  .admin-body.admin-menu-open::after { visibility: visible; opacity: 1; pointer-events: auto; }
}

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 420px; }
}

/* Mobile application experience */
@media (max-width: 767px) {
  :root {
    --page-pad: 16px;
    --header-height: 70px;
    --radius-lg: 24px;
  }
  h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.45rem); }
  .site-shell, .wrap { width: calc(100% - 32px); }
  .app-header { box-shadow: none; }
  .header-inner { gap: 0.45rem; }
  .brand-mark { width: 46px; height: 39px; }
  .brand-copy b { font-size: clamp(0.98rem, 4.5vw, 1.2rem); }
  .brand-copy small { margin-top: 0.23rem; font-size: 0.47rem; letter-spacing: 0.1em; }
  .header-actions { gap: 0.25rem; }
  .header-actions .icon-btn { width: 44px; height: 44px; border-color: transparent; background: transparent; }
  .header-admin-link { display: none; }
  .header-cta { display: none; }
  .sheet { align-items: end; padding: 0; }
  .sheet-card { width: 100%; max-height: min(86vh, 760px); padding: 1.2rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; }
  .sheet-card-search { align-self: start; margin-top: var(--header-height); border-radius: 0 0 26px 26px; }
  .search-control { border-radius: var(--radius-sm); grid-template-columns: auto minmax(0, 1fr); }
  .search-control .button { grid-column: 1 / -1; width: 100%; border-radius: 12px; }
  .banner { align-items: flex-start; justify-content: flex-start; padding: 0.8rem 1rem; font-size: 0.78rem; }
  .banner a { display: block; margin: 0.25rem 0 0; }
  .page-intro { padding-block: 2.5rem 2rem; }
  .page-intro .section-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
  .page-intro h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .page-intro .lead { margin-top: 0.9rem; font-size: 0.98rem; line-height: 1.6; }
  .section-heading { display: grid; }
  .section-heading > p { font-size: 0.84rem; }
  .panel { padding: 1rem; }
  .home-desktop { display: none; }
  .mobile-home { display: block; padding-top: 1.4rem; padding-bottom: 3rem; }
  .mobile-welcome .eyebrow { margin-bottom: 0.25rem; color: var(--forest-700); text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-size: 1.55rem; }
  .mobile-welcome h2 { max-width: 24ch; color: var(--muted); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; }
  .mobile-estate-card { position: relative; display: block; height: 225px; margin-top: 1rem; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-sm); color: white; text-decoration: none; }
  .mobile-estate-card > img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-estate-card::after { position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(10,30,19,0.88), transparent); content: ""; }
  .mobile-estate-overlay { position: absolute; z-index: 2; right: 0.9rem; bottom: 0.9rem; left: 0.9rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; }
  .mobile-estate-overlay > span { display: flex; min-width: 0; gap: 0.5rem; align-items: center; }
  .mobile-estate-overlay b, .mobile-estate-overlay small { display: block; }
  .mobile-estate-overlay b { font-family: var(--font-serif); font-size: 1rem; }
  .mobile-estate-overlay small { overflow: hidden; color: rgba(255,255,255,0.75); font-size: 0.63rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-estate-overlay em { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.25rem; padding: 0.45rem 0.65rem; border-radius: 999px; background: white; color: var(--forest-900); font-size: 0.62rem; font-style: normal; font-weight: 800; }
  .mobile-quick { margin-top: 1.3rem; }
  .mobile-quick h2 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 750; letter-spacing: 0; }
  .quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.75rem; }
  .quick-actions a { display: grid; min-width: 0; min-height: 92px; place-items: center; align-content: center; gap: 0.45rem; padding: 0.5rem 0.2rem; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-xs); color: var(--forest-900); text-align: center; text-decoration: none; }
  .quick-actions a > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: var(--sage-100); color: var(--forest-700); }
  .quick-actions a:nth-child(3) > span { background: var(--clay-50); color: var(--clay-600); }
  .quick-actions b { overflow: hidden; font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 0.8rem; }
  .dashboard-card { position: relative; display: flex; min-width: 0; min-height: 248px; flex-direction: column; align-items: flex-start; padding: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: var(--shadow-xs); color: inherit; text-decoration: none; }
  .dashboard-card:hover { color: inherit; }
  .dashboard-card .card-kicker { margin-bottom: 0.7rem; color: var(--forest-700); font-size: 0.6rem; letter-spacing: 0.05em; }
  .dashboard-card h3 { font-size: 1.25rem; }
  .dashboard-card > small { margin-top: 0.35rem; color: var(--clay-600); font-size: 0.63rem; }
  .dashboard-card > p { margin-top: 0.65rem; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
  .dashboard-card .text-action { margin-top: auto; padding-top: 0.8rem; font-size: 0.67rem; }
  .card-stats { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.7rem; color: var(--muted); font-size: 0.62rem; }
  .bin-mobile-day { color: var(--forest-700); font-family: var(--font-serif); font-size: 2rem; line-height: 1; }
  .bins-mobile h3 { margin-top: 0.2rem; font-size: 0.9rem; }
  .bins-mobile .bin-pills { display: grid; gap: 0.35rem; margin-top: 0.8rem; }
  .bins-mobile .bin-pill { min-height: 27px; font-size: 0.58rem; }
  .bins-mobile > small { margin-top: 0.55rem; color: var(--clay-600); font-size: 0.62rem; }
  .dashboard-card-wide { display: grid; min-height: 118px; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.8rem; align-items: center; margin-top: 0.7rem; }
  .dashboard-card-wide h3 { font-size: 1.05rem; }
  .dashboard-card-wide p { margin-top: 0.35rem; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
  .mobile-date-tile { display: grid; width: 54px; height: 62px; place-items: center; align-content: center; border-radius: 15px; background: var(--clay-50); color: var(--clay-700); line-height: 1; }
  .mobile-date-tile b { font-family: var(--font-serif); font-size: 1.55rem; }
  .mobile-date-tile small { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
  .mobile-event-card > span:nth-child(2) > small { color: var(--muted); font-size: 0.61rem; }
  .mobile-news-card { grid-template-columns: 90px minmax(0, 1fr); }
  .mobile-news-card > img { width: 90px; height: 90px; border-radius: 14px; object-fit: cover; }
  .mobile-news-card em { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.55rem; color: var(--forest-700); font-size: 0.65rem; font-style: normal; font-weight: 800; }
  .mobile-facebook-card { background: linear-gradient(145deg, #edf2fe, white); }
  .mobile-facebook-card .facebook-orb { width: 50px; height: 50px; }
  .mobile-install-card { background: linear-gradient(145deg, var(--forest-950), var(--forest-700)); color: white; }
  .mobile-install-card h3 { color: white; }
  .mobile-install-card p { color: rgba(255,255,255,0.68); }
  .mobile-install-card .card-kicker { color: var(--cream-100); }
  .install-card-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: rgba(255,255,255,0.13); }
  .a2hs-band { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid nav:nth-of-type(3) { grid-column: 1 / -1; }
  .footer-meta { display: grid; }
  .footer-lockup .brand-copy b { font-size: 1.25rem; }
  .featured-story { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .featured-story-media { min-height: 260px; }
  .featured-story-copy { padding: 1.3rem; }
  .featured-story-copy h2 { font-size: 2rem; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card:last-child:nth-child(odd) { grid-column: auto; }
  .story-media { height: 230px; }
  .story-copy { min-height: 230px; }
  .article-mast { padding: 2.2rem 0 5rem; }
  .article-heading { margin-top: 2.2rem; text-align: left; }
  .article-heading .eyebrow { justify-content: flex-start; }
  .article-heading h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .article-meta { justify-content: flex-start; }
  .article-image-wrap { margin-top: -3rem; }
  .article-photo { min-height: 260px; border-width: 4px; border-radius: var(--radius-lg); }
  .article-body-grid { grid-template-columns: 1fr; padding-block: 2.5rem 4rem; }
  .article-share { position: static; display: flex; justify-items: start; }
  .article-prose { grid-column: 1; }
  .article-prose::first-letter { font-size: 4rem; }
  .event-card { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: var(--radius); }
  .event-card > time { min-height: 92px; border-radius: 16px; }
  .event-card > time b { font-size: 2.5rem; }
  .event-card-copy h3 { font-size: 1.55rem; }
  .event-card-copy .prose { font-size: 0.82rem; }
  .event-actions { align-items: stretch; }
  .event-actions .button { width: 100%; }
  .bin-overview { padding-bottom: 0.7rem; }
  .bin-summary-card { min-height: 108px; padding: 0.9rem; }
  .bin-summary-icon { width: 44px; height: 44px; }
  .bin-summary-card h2 { font-size: 1.15rem; }
  .reminder-status { text-align: left; }
  .bins-hero { grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; margin-top: 0.7rem; padding: 1rem; }
  .bins-hero-icon { width: 48px; height: 48px; border-radius: 15px; }
  .bins-hero .bin-pills { grid-column: 1 / -1; }
  .bins-hero h2 { font-size: 1.75rem; }
  .bins-dashboard { padding-bottom: 3rem; }
  .calendar-card, .future-collections { padding: 1rem; }
  .cal-grid { gap: 0.2rem; }
  .cal-grid > span { min-height: 36px; font-size: 0.66rem; }
  .bin-list { gap: 0.8rem; }
  .bin-guide { gap: 0.7rem; padding: 1rem; }
  .bin-guide ul { font-size: 0.68rem; }
  .bins-note { display: grid; }
  .board-intro { padding: 2.5rem 0 1.8rem; }
  .board-intro-inner { display: grid; }
  .board-intro h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .board-intro .lead { font-size: 0.94rem; }
  .board-intro .button { width: 100%; }
  .board-filter-wrap { top: var(--header-height); }
  .chips { width: calc(100% + var(--page-pad)); padding-right: var(--page-pad); }
  .board-layout { grid-template-columns: 1fr; padding-top: 1rem; }
  .board-sidebar { position: static; order: -1; }
  .community-rules { display: none; }
  .board-profile, .board-join-card { display: none; }
  .post-card { padding: 1rem; border-radius: 18px; }
  .post-card h2 { font-size: 1.35rem; }
  .post-card > p { font-size: 0.82rem; }
  .post-meta > time { font-size: 0.62rem; }
  .post-foot { gap: 0.7rem; }
  .post-foot > span small { display: none; }
  .post-foot > a { font-size: 0; }
  .post-foot > a .icon { width: 1.1rem; height: 1.1rem; }
  .thread-shell { padding-top: 1.3rem; }
  .thread-layout { grid-template-columns: 1fr; margin-top: 1rem; }
  .thread-title { padding: 1rem; }
  .thread-title h1 { font-size: 2.25rem; }
  .thread-sidebar { position: static; }
  .thread-sidebar .panel:first-child { display: none; }
  .reply { padding: 1rem; border-radius: 18px; }
  .reply .post-meta { align-items: flex-start; }
  .reply .post-meta > time { display: block; width: 100%; margin: 0.25rem 0 0; }
  .thread-actions { flex-wrap: wrap; }
  .reply-form { padding: 1rem; }
  .form-actions .button { width: 100%; }
  .compose-shell { padding-top: 1.3rem; }
  .compose-layout { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.2rem; }
  .compose-intro { position: static; }
  .compose-intro h1 { font-size: 2.8rem; }
  .compose-tips { display: none; }
  .compose-form { padding: 1rem; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-list > a { min-height: 86px; padding: 0.9rem 1rem; }
  .directory-list b { font-size: 1rem; }
  .external-chip { font-size: 0; }
  .external-chip .icon { width: 1rem; height: 1rem; }
  .directory-note { align-items: flex-start; }
  .auth-experience { display: block; min-height: auto; }
  .auth-visual { min-height: 380px; }
  .auth-visual-content { min-height: 380px; padding: 1.5rem; }
  .auth-visual-content .auth-crest { width: 120px; margin-bottom: 1rem; }
  .auth-visual-content h1 { font-size: 2.8rem; }
  .auth-visual-content > p:not(.eyebrow) { font-size: 0.88rem; }
  .auth-visual-content ul { display: none; }
  .auth-form-side { padding: 1.7rem 1rem 3rem; }
  .auth-form-wrap > .back-link { margin-bottom: 1.8rem; }
  .auth-form-wrap > h2 { font-size: 2.2rem; }
  .auth-lead { font-size: 0.88rem; }
  .verification-note { margin: 1.2rem 0; }
  .membership-form fieldset { padding: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .signin-form-wrap { padding-top: 0; }
  .compact-auth-copy { justify-content: flex-end; }
  .membership-state-card { padding: 1.4rem; }
  .membership-state-card > img { width: 150px; }
  .about-hero { min-height: 500px; }
  .about-hero-card { padding: 1.2rem; }
  .about-hero-card h1 { font-size: 3rem; }
  .about-content { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .about-crest-column { position: static; }
  .about-crest-column > img { width: 240px; }
  .about-copy > h2 { font-size: 2.7rem; }
  .about-photo-band { min-height: 480px; border-radius: var(--radius-lg); }
  .about-photo-band::after { background: linear-gradient(0deg, rgba(12,34,24,0.94), rgba(12,34,24,0.15)); }
  .about-photo-band > div { justify-content: flex-end; padding: 1.3rem; }
  .about-photo-band h2 { font-size: 2.8rem; }
  .about-photo-band .button { width: 100%; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .legal-summary { position: static; }
  .profile-hero { padding: 2.2rem 0; }
  .profile-hero-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; }
  .profile-avatar { width: 66px; height: 66px; font-size: 1.3rem; }
  .profile-hero h1 { font-size: 2.4rem; }
  .profile-hero .pill { grid-column: 1 / -1; justify-self: start; margin: 0.3rem 0 0; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { order: -1; }
  .profile-details { grid-template-columns: 1fr; }
  .profile-details > div { border-right: 0; }
  .profile-details > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-details > div:last-child { border-bottom: 0; }
  .search-hero { padding: 2.5rem 0; }
  .search-hero h1 { font-size: 3rem; }
  .hero-search { grid-template-columns: auto minmax(0, 1fr); border-radius: var(--radius-sm); }
  .hero-search .button { grid-column: 1 / -1; width: 100%; border-radius: 11px; }
  .search-suggestions { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: auto minmax(0, 1fr); }
  .result-card > .icon { display: none; }
  .result-card p { display: none; }
  .install-hero { padding: 2.8rem 0 4rem; }
  .install-hero-grid { grid-template-columns: 1fr; }
  .install-copy h1 { font-size: 3.3rem; }
  .install-phone { margin-top: 1.5rem; }
  .install-benefits { grid-template-columns: 1fr; margin-top: -20px; }
  .platform-grid { grid-template-columns: 1fr; }
  .not-found-page { grid-template-columns: 1fr; text-align: center; }
  .not-found-art img { width: 260px; }
  .not-found-page h1 { margin-inline: auto; }
  .not-found-page .lead { margin-inline: auto; }
  .not-found-page .button-row, .not-found-links { justify-content: center; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 340px; }
  .login-visual > .brand-mark { width: 110px; height: 92px; }
  .login-panel { width: calc(100% - 32px); }
  .admin-main { width: calc(100% - 28px); }
  .table-wrap button,
  .inline-actions button { min-height: 44px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-actions { grid-template-columns: 1fr; }
  .admin-page-head h1 { font-size: 2.8rem; }
}

@media (max-width: 420px) {
  .brand-copy b { font-size: 0.95rem; }
  .brand-copy small { font-size: 0.43rem; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
  .mobile-estate-card { height: 205px; }
  .quick-actions { gap: 0.4rem; }
  .quick-actions a { min-height: 86px; }
  .dashboard-card { min-height: 235px; padding: 0.85rem; }
  .dashboard-card h3 { font-size: 1.12rem; }
  .bin-guide { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 62px minmax(0, 1fr); gap: 0.75rem; }
  .event-card > time b { font-size: 2.1rem; }
  .post-meta > time { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-grid nav:nth-of-type(3) { grid-column: auto; }
  .app-icon-preview { right: -0.4rem; bottom: 1rem; }
}

@media (max-width: 350px) {
  :root { --page-pad: 12px; }
  .site-shell, .wrap { width: calc(100% - 24px); }
  .brand-mark { width: 40px; height: 34px; }
  .brand-copy b { font-size: 0.88rem; }
  .brand-copy small { font-size: 0.39rem; }
  .header-actions .icon-btn { width: 44px; height: 44px; }
  .quick-actions b { font-size: 0.55rem; }
  .dashboard-card { min-height: 228px; }
  .mobile-estate-overlay em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final interaction and CMS refinements */
.app-header.is-scrolled { box-shadow: 0 12px 30px rgba(16, 41, 30, 0.1); }
.platform-card.is-device-match { border-color: var(--sage-400); box-shadow: 0 18px 45px rgba(32, 60, 46, 0.12); }
.platform-card.is-device-match .platform-badge::after { margin-left: 0.35rem; content: "· this device"; }

.admin-nav .nav-group > a,
.admin-nav .nav-foot > a { gap: 0.7rem; }
.admin-nav .nav-group > a .icon,
.admin-nav .nav-foot > a .icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; opacity: 0.8; }
.admin-nav .nav-group > a.is-current .icon,
.admin-nav .nav-group > a:hover .icon,
.admin-nav .nav-foot > a:hover .icon { opacity: 1; }
.admin-create-panel { margin-bottom: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-xs); }
.admin-empty { margin-top: 1rem; border: 1px dashed var(--line-strong); background: rgba(255,255,255,0.75); }
.admin-empty > .icon { width: 2rem; height: 2rem; margin-bottom: 0.7rem; color: var(--forest-600); }
.table-wrap td a { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 750; }
.table-wrap td a .icon { width: 0.78rem; height: 0.78rem; }
.inline-actions .action-accept { border-color: #8fb29d; color: var(--success); }
.inline-actions .action-decline,
.table-wrap .action-delete { border-color: #e8c4b9; color: var(--danger); }
.inline-actions .action-accept:hover { border-color: var(--success); background: var(--success-bg); }
.inline-actions .action-decline:hover,
.table-wrap .action-delete:hover { border-color: var(--danger); background: var(--danger-bg); }
.menu-toggle { display: inline-flex; align-items: center; gap: 0.45rem; }
.menu-toggle .icon { width: 1rem; height: 1rem; }
.admin-backdrop { display: none; }
.admin-body::after { content: none !important; }
.admin-main > .banner { margin-bottom: 1.25rem; border-radius: var(--radius-sm); }
.admin-login-banner { position: fixed; z-index: 200; top: 1rem; right: 1rem; left: 1rem; width: min(760px, calc(100% - 2rem)); margin-inline: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.login-visual { isolation: isolate; }
.login-visual::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 15% 15%, rgba(255,255,255,0.13), transparent 34%), linear-gradient(180deg, transparent 45%, rgba(5,20,12,0.22)); content: ""; }
.login-visual .login-lockup { position: relative; z-index: 1; }
.login-visual .login-lockup .brand-mark { width: 112px; height: 94px; }
.login-visual .brand-copy b { color: white; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.login-visual .brand-copy small { color: var(--cream-100); }
.login-visual-copy { position: relative; z-index: 1; max-width: 42rem; }
.login-visual-copy h2 { max-width: 8ch; font-size: clamp(3.4rem, 7vw, 7.3rem); line-height: 0.91; }
.login-visual-copy > p:not(.eyebrow) { margin-top: 1.2rem; font-size: clamp(0.95rem, 1.25vw, 1.12rem); line-height: 1.75; }
.login-feature-list { display: grid; gap: 0.65rem; margin-top: 2rem; }
.login-feature-list span,
.login-location { display: flex; align-items: center; gap: 0.55rem; }
.login-feature-list span { color: rgba(255,255,255,0.88); font-size: 0.8rem; font-weight: 700; }
.login-feature-list .icon,
.login-location .icon { width: 1.05rem; height: 1.05rem; }
.login-location { position: relative; z-index: 1; }
.login-panel { width: 100%; padding: clamp(2rem, 5vw, 5rem); }
.login-panel-inner { width: min(560px, 100%); margin-inline: auto; }
.login-panel .stack-form { margin-top: 1.8rem; }
.login-panel .button { width: 100%; justify-content: center; }
.login-back a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.login-back .icon { width: 0.9rem; height: 0.9rem; }

@media (max-width: 1080px) {
  .admin-backdrop {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(8,24,15,0.58);
    cursor: pointer;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .admin-body.admin-menu-open .admin-backdrop { visibility: visible; opacity: 1; pointer-events: auto; }
  .admin-body.admin-menu-open { overflow: hidden; }
  .admin-nav { z-index: 115; }
}

@media (max-width: 767px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 400px; padding: 1.5rem; }
  .login-visual .login-lockup .brand-mark { width: 78px; height: 66px; }
  .login-visual-copy h2 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .login-feature-list { grid-template-columns: 1fr; margin-top: 1.3rem; }
  .login-panel { padding: 2.4rem 1rem calc(2.4rem + env(safe-area-inset-bottom)); }
  .admin-login-banner { top: 0.65rem; }
  .admin-create-panel { margin-bottom: 1rem; }
}

/* Safe top-level error page */
.error-body { display: grid; min-height: 100vh; place-items: center; padding: 2rem var(--page-pad); background: radial-gradient(circle at top, var(--sage-100), var(--paper) 52%); }
.fatal-error { width: min(720px, 100%); padding: clamp(1.4rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,0.92); box-shadow: var(--shadow-lg); text-align: center; }
.fatal-error > img { width: min(190px, 42vw); height: auto; margin-inline: auto; }
.fatal-error h1 { max-width: 13ch; margin: 0.5rem auto 0; }
.fatal-error > p:not(.eyebrow) { max-width: 55ch; margin: 1rem auto 0; color: var(--muted); }
.fatal-error .button-row { justify-content: center; margin-top: 1.5rem; }
.fatal-error > small { display: block; margin-top: 1.5rem; color: var(--muted); }

/* Offline shell */
.offline-body { display: grid; min-height: 100vh; place-items: center; padding: 2rem var(--page-pad); background: radial-gradient(circle at top, var(--sage-100), var(--paper) 55%); }
.offline-card { width: min(720px, 100%); padding: clamp(1.4rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,0.94); box-shadow: var(--shadow-lg); text-align: center; }
.offline-card > img { width: min(190px, 42vw); height: auto; margin-inline: auto; }
.offline-card h1 { margin-top: 0.5rem; }
.offline-card > p:not(.eyebrow) { max-width: 56ch; margin: 1rem auto 0; color: var(--muted); }
.offline-card .button-row { justify-content: center; margin-top: 1.5rem; }

/* ============================================================
   Community platform extensions — v4
   Profiles, privacy, reporting, permissions and mobile menu
   ============================================================ */

/* Header access and notification count */
.mobile-menu-action { display: none; }
.desktop-search-action { display: inline-grid; }
.notice-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 21px;
  height: 21px;
  padding-inline: 0.28rem;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--clay-600);
  color: white;
  font-size: 0.59rem;
  font-weight: 900;
  line-height: 1;
}

/* Real profile photography inside every avatar treatment */
.avatar,
.header-avatar,
.profile-avatar,
.preview-avatar,
.resident-avatar,
.resident-admin-avatar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.avatar img,
.header-avatar img,
.profile-avatar img,
.preview-avatar img,
.resident-avatar img,
.resident-admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-link { color: white; text-decoration: none; }
.avatar-link:hover { color: white; }
.header-avatar.has-photo { background: var(--sage-100); }

/* Complete mobile/full menu */
.sheet-card-menu { width: min(920px, 100%); }
.menu-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  min-height: 86px;
  margin-top: 1.1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--sage-50), white);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.menu-profile-card:hover {
  transform: translateY(-1px);
  border-color: var(--sage-300);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.menu-profile-card > span:nth-child(2) { display: grid; min-width: 0; }
.menu-profile-card small,
.menu-profile-card b,
.menu-profile-card em { display: block; }
.menu-profile-card small {
  color: var(--clay-600);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu-profile-card b { margin-top: 0.15rem; font-family: var(--font-serif); font-size: 1.25rem; }
.menu-profile-card em { margin-top: 0.12rem; overflow: hidden; color: var(--muted); font-size: 0.76rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.menu-profile-card > .icon { color: var(--muted); }
.menu-profile-card.is-guest { background: linear-gradient(135deg, var(--cream-50), white); }
.mobile-full-menu { display: grid; gap: 0.85rem; margin-top: 0.85rem; }
.menu-search-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 66px;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--forest-900);
  color: white;
  text-decoration: none;
}
.menu-search-link:hover { background: var(--forest-950); color: white; }
.menu-search-link > .icon:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0.58rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
}
.menu-search-link span { display: grid; }
.menu-search-link b { font-size: 0.94rem; }
.menu-search-link small { color: rgba(255,255,255,0.72); font-size: 0.7rem; }
.menu-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.menu-link-grid > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 72px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.menu-link-grid > a:hover,
.menu-link-grid > a.is-current { transform: translateY(-1px); border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.menu-link-grid > a.is-current { box-shadow: inset 3px 0 0 var(--forest-600); }
.menu-link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--sage-100);
  color: var(--forest-700);
}
.menu-link-icon .icon { width: 1.2rem; height: 1.2rem; }
.menu-link-grid b,
.menu-link-grid small { display: block; }
.menu-link-grid b { font-size: 0.82rem; }
.menu-link-grid small { margin-top: 0.15rem; color: var(--muted); font-size: 0.67rem; line-height: 1.35; }
.menu-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.menu-secondary a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.4rem; color: var(--ink-soft); font-size: 0.76rem; font-weight: 750; text-decoration: none; }
.menu-secondary a:hover { color: var(--clay-600); }
.menu-secondary .icon { width: 1rem; height: 1rem; }

/* Personal notification layer */
.sheet-card-notices { width: min(780px, 100%); }
.notice-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.notice-section-head h3 { font-family: var(--font-sans); font-size: 0.92rem; letter-spacing: 0; }
.notice-section-head small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.68rem; }
.notice-section-head form { margin: 0; }
.text-button {
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--forest-700);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}
.text-button:hover { color: var(--clay-600); }
.personal-notice { position: relative; }
.personal-notice.is-unread { border-color: var(--sage-300); background: var(--sage-50); }
.personal-notice.is-unread::before {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border: 2px solid white;
  border-radius: 50%;
  background: var(--clay-500);
  content: "";
}
.notice-row em { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; font-style: normal; line-height: 1.45; }
.estate-notice-heading { margin-top: 1.8rem; }
.notification-signin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-50);
}
.notification-signin > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: white;
  color: var(--forest-700);
}
.notification-signin h3 { font-size: 1.2rem; }
.notification-signin p { margin-top: 0.35rem; color: var(--muted); font-size: 0.78rem; }
.notification-signin .button { margin-top: 0.8rem; }

/* Editable and accessible bin colours */
.bin-dot { background: var(--bin-colour, var(--forest-700)); }
.bin-dot::after { content: none; }
.bin-admin-preview .bin-dot,
.bin-summary-icon .bin-dot,
.bin-card-symbol .bin-dot { box-shadow: 0 0 0 2px white, 0 0 0 3px rgba(16,41,30,0.15); }

/* Public/member visibility */
.visibility-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.visibility-badge .icon { width: 0.9rem; height: 0.9rem; }
.visibility-badge.is-public { border-color: #bfd7c6; background: var(--success-bg); color: var(--success); }
.visibility-badge.is-private { border-color: #d7cfae; background: var(--warning-bg); color: var(--warning); }
.visibility-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.visibility-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 0.15rem;
  color: var(--forest-950);
  font-size: 0.76rem;
  font-weight: 800;
}
.visibility-choice label {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem !important;
  min-height: 92px;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.visibility-choice label:has(input:checked) { border-color: var(--forest-600); background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--forest-600); }
.visibility-choice input { width: 19px; min-height: 19px; margin: 0.15rem 0 0; accent-color: var(--forest-700); }
.visibility-choice label > span { display: grid !important; gap: 0.25rem; }
.visibility-choice b { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.visibility-choice b .icon { width: 1rem; height: 1rem; }
.visibility-choice small { color: var(--muted); font-size: 0.7rem; font-weight: 500; line-height: 1.45; }
.visibility-inherited {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid #d7cfae;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning);
}
.visibility-inherited > .icon { margin-top: 0.1rem; }
.visibility-inherited span { display: grid; }
.visibility-inherited small { color: inherit; opacity: 0.82; }
.reply-visibility { margin: 0.75rem 0; }
.result-badge { display: inline-flex; margin: 0.25rem 0 0; }
.content-badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-bottom: 0.5rem; }

/* Reporting and moderation entry points */
.content-report-row { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.report-tool { width: 100%; }
.report-tool > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  list-style: none;
}
.report-tool > summary::-webkit-details-marker { display: none; }
.report-tool > summary::marker { display: none; content: ""; }
.report-tool > summary:hover { color: var(--danger); }
.report-tool > summary .icon { width: 1rem; height: 1rem; }
.report-tool[open] > summary { color: var(--danger); }
.report-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.55rem;
  padding: 1rem;
  border: 1px solid #ebc5ba;
  border-radius: var(--radius-sm);
  background: var(--clay-50);
}
.report-form label { display: grid; gap: 0.38rem; color: var(--ink); font-size: 0.75rem; font-weight: 750; }
.report-form select,
.report-form textarea { width: 100%; }
.report-form-note { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.report-form-note .icon { margin-top: 0.12rem; color: var(--forest-600); }
.button-danger,
button.button-danger { border-color: var(--danger); background: var(--danger); box-shadow: 0 8px 20px rgba(163,56,40,0.18); color: white; }
.button-danger:hover,
button.button-danger:hover { border-color: #7f261b; background: #7f261b; color: white; }

/* Resident profile page */
.resident-profile-page { min-height: 70vh; padding-bottom: clamp(4rem, 8vw, 8rem); }
.resident-cover {
  position: relative;
  min-height: clamp(350px, 39vw, 610px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest-950), var(--forest-600));
  color: white;
}
.resident-cover > img,
.resident-cover-fallback,
.resident-cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.resident-cover > img { object-fit: cover; }
.resident-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 15% 25%, rgba(213,225,208,0.26), transparent 18rem),
    radial-gradient(circle at 85% 10%, rgba(195,107,76,0.18), transparent 20rem),
    linear-gradient(135deg, var(--forest-950), var(--forest-600));
  color: rgba(255,255,255,0.22);
}
.resident-cover-fallback > span { display: grid; width: clamp(70px, 10vw, 150px); height: clamp(70px, 10vw, 150px); place-items: center; }
.resident-cover-fallback .icon { width: 100%; height: 100%; }
.resident-cover-shade { background: linear-gradient(180deg, rgba(6,24,14,0.06) 25%, rgba(6,24,14,0.82) 100%); }
.resident-cover-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(350px, 39vw, 610px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.resident-identity { display: flex; min-width: 0; align-items: flex-end; gap: 1.25rem; }
.resident-avatar {
  display: grid;
  width: clamp(96px, 10vw, 148px);
  height: clamp(96px, 10vw, 148px);
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--forest-700), var(--sage-300));
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  color: white;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 700;
}
.resident-identity .eyebrow { color: var(--cream-100); }
.resident-identity h1 { max-width: 14ch; color: white; font-size: clamp(2.7rem, 5vw, 5.8rem); }
.resident-identity p:not(.eyebrow) { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; margin-top: 0.55rem; color: rgba(255,255,255,0.8); }
.resident-profile-actions { flex: 0 0 auto; }
.resident-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
.resident-profile-main,
.resident-profile-sidebar,
.profile-post-list { display: grid; gap: 1.1rem; }
.resident-posts { margin-top: 1rem; }
.compact-heading { align-items: center; margin-bottom: 1rem; }
.resident-about .prose { max-width: 74ch; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.profile-stats-grid > div { display: grid; min-width: 0; gap: 0.15rem; padding: 0.75rem 0.4rem; border-radius: 12px; background: var(--sage-50); text-align: center; }
.profile-stats-grid strong { color: var(--forest-950); font-family: var(--font-serif); font-size: 1.8rem; line-height: 1; }
.profile-stats-grid span { color: var(--muted); font-size: 0.61rem; font-weight: 750; line-height: 1.25; }
.activity-list { display: grid; gap: 0.55rem; }
.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.activity-item:hover { background: var(--sage-50); color: inherit; }
.activity-item > span:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--sage-100); color: var(--forest-700); }
.activity-item small,
.activity-item b,
.activity-item em { display: block; }
.activity-item small { color: var(--clay-600); font-size: 0.59rem; font-weight: 750; text-transform: uppercase; }
.activity-item b { margin-top: 0.15rem; font-size: 0.76rem; line-height: 1.35; }
.activity-item em { margin-top: 0.15rem; color: var(--muted); font-size: 0.66rem; font-style: normal; line-height: 1.4; }
.activity-item > .icon { color: var(--muted); }
.profile-safety-card > h2,
.delegated-access-card > h2 { margin-top: 0.8rem; font-size: 1.55rem; }
.profile-safety-card > p,
.delegated-access-card > p { margin-top: 0.55rem; color: var(--muted); font-size: 0.8rem; }

/* Profile feed cards */
.profile-post-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-xs);
}
.profile-post-card.is-pinned { border-color: #d5be87; box-shadow: inset 4px 0 0 #c59b42, var(--shadow-xs); }
.profile-post-head { display: flex; gap: 0.75rem; align-items: center; padding: 1rem 1rem 0.75rem; }
.profile-post-head > div:nth-child(2) { display: grid; min-width: 0; }
.profile-post-head b { font-size: 0.82rem; }
.profile-post-head small { color: var(--muted); font-size: 0.67rem; }
.profile-post-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-left: auto; }
.pinned-badge { display: inline-flex; min-height: 28px; align-items: center; gap: 0.3rem; padding: 0.28rem 0.58rem; border-radius: 999px; background: #f5ecd4; color: #745216; font-size: 0.64rem; font-weight: 800; }
.pinned-badge .icon { width: 0.9rem; height: 0.9rem; }
.profile-post-body { padding: 0.15rem 1rem 1rem; }
.profile-post-image { display: block; overflow: hidden; background: var(--sage-50); }
.profile-post-image img { width: 100%; max-height: 680px; object-fit: cover; }
.profile-post-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; padding: 0.75rem 1rem; border-top: 1px solid var(--line); background: #fdfdfb; }
.profile-post-actions form { margin: 0; }
.profile-post-actions button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}
.profile-post-actions button:hover { border-color: var(--sage-300); background: var(--sage-50); }
.profile-post-actions .report-tool { margin-left: auto; width: auto; }
.profile-post-actions .report-tool > summary { min-height: 40px; padding-inline: 0.35rem; }
.profile-post-actions .report-form { width: min(520px, calc(100vw - 54px)); }
.profile-empty { min-height: 240px; }

/* Account profile editor and composer */
.profile-hero { position: relative; overflow: hidden; }
.profile-hero-cover,
.profile-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.profile-hero-cover { object-fit: cover; }
.profile-hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(7,28,16,0.9), rgba(7,28,16,0.55)); }
.profile-hero-inner { position: relative; z-index: 2; }
.profile-avatar { font-family: var(--font-serif); font-weight: 700; }
.profile-editor .button,
.profile-composer .button { justify-self: start; }
.profile-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.upload-card {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.7rem !important;
  min-height: 112px;
  align-content: center;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.upload-card:hover { border-color: var(--forest-600); background: var(--sage-100); }
.upload-card-icon { display: grid; grid-row: 1 / 3; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: white; color: var(--forest-700); }
.upload-card b { align-self: end; color: var(--forest-950); font-size: 0.78rem; }
.upload-card small { align-self: start; color: var(--muted); font-size: 0.66rem; line-height: 1.35; }
.upload-card input[type="file"] { grid-column: 1 / -1; width: 100%; margin-top: 0.55rem; font-size: 0.66rem; }
.upload-card input[type="file"]::file-selector-button { margin-right: 0.55rem; padding: 0.42rem 0.58rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--forest-800); cursor: pointer; font-weight: 750; }
.upload-card-inline { grid-template-columns: auto minmax(0, 1fr); min-height: 96px; }
.profile-media-previews { display: grid; grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr); gap: 0.75rem; }
.media-preview { display: grid; min-height: 130px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8faf6; color: var(--muted); text-align: center; }
.media-preview.is-avatar { min-height: 150px; }
.media-preview.is-cover { min-height: 150px; }
.media-preview > img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.media-preview.is-avatar > img,
.media-preview.is-avatar .preview-avatar { width: 112px; height: 112px; min-height: 112px; border: 3px solid white; border-radius: 50%; }
.preview-avatar { display: grid; place-items: center; background: linear-gradient(145deg, var(--forest-700), var(--sage-300)); color: white; font-size: 1.4rem; font-weight: 800; }
.media-preview > span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 1rem; font-size: 0.72rem; }
.remove-media-row { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; }
.form-heading { padding: 0.75rem; border-radius: var(--radius-sm); background: var(--sage-50); }
.form-heading > div { display: grid; }
.form-heading b { font-size: 0.82rem; }
.form-heading small { color: var(--muted); font-size: 0.68rem; }
.account-profile-posts { display: grid; gap: 1rem; }
.account-notifications { scroll-margin-top: calc(var(--header-height) + 16px); }
.account-notification-list { display: grid; gap: 0.55rem; }
.account-notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.account-notification:hover { border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.account-notification > span:first-child { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--sage-100); color: var(--forest-700); }
.account-notification small,
.account-notification b,
.account-notification em { display: block; }
.account-notification small { color: var(--clay-600); font-size: 0.6rem; font-weight: 750; text-transform: uppercase; }
.account-notification b { margin-top: 0.15rem; font-size: 0.76rem; }
.account-notification em { margin-top: 0.15rem; color: var(--muted); font-size: 0.68rem; font-style: normal; line-height: 1.4; }
.permission-mini-list { display: grid; gap: 0.45rem; margin-top: 0.85rem; }
.permission-mini-list > span { display: flex; gap: 0.45rem; align-items: center; min-height: 36px; padding: 0.5rem 0.65rem; border-radius: 10px; background: var(--sage-50); color: var(--forest-800); font-size: 0.7rem; font-weight: 750; }
.permission-mini-list .icon { width: 1rem; height: 1rem; }
.delegated-access-card .button { margin-top: 1rem; }

/* Resident results in search */
.resident-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.resident-result-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 86px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: inherit;
  text-decoration: none;
}
.resident-result-card:hover { border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.resident-result-card b,
.resident-result-card small { display: block; }
.resident-result-card b { font-size: 0.82rem; }
.resident-result-card small { margin-top: 0.15rem; color: var(--muted); font-size: 0.68rem; }
.resident-result-card > .icon { color: var(--muted); }

/* Admin: member access, reports and editable colours */
.status-admin { background: #e9e5f7; color: #4c3e82; }
.status-accepted { background: var(--success-bg); color: var(--success); }
.status-rejected { background: #eceeeb; color: #5f6862; }
.admin-stats-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-action-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 0.35rem; border-radius: 13px; background: var(--sage-100); color: var(--forest-700); }
.admin-actions > a { position: relative; }
.admin-actions > a > em { position: absolute; top: 0.8rem; right: 0.8rem; padding: 0.3rem 0.55rem; border-radius: 999px; background: var(--clay-100); color: var(--clay-700); font-size: 0.64rem; font-style: normal; font-weight: 800; }
.admin-guidance {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--sage-50);
}
.admin-guidance > .icon { margin-top: 0.15rem; color: var(--forest-600); }
.admin-guidance b { display: block; }
.admin-guidance p { margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }
.nav-user-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.65rem; align-items: center; margin: 0.9rem 0; padding: 0.7rem; border-radius: 14px; background: rgba(255,255,255,0.08); color: white; }
.nav-user-card small,
.nav-user-card b { display: block; }
.nav-user-card small { color: rgba(255,255,255,0.58); font-size: 0.58rem; text-transform: uppercase; }
.nav-user-card b { overflow: hidden; font-size: 0.74rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav .nav-group > a > em { margin-left: auto; padding: 0.2rem 0.42rem; border-radius: 999px; background: var(--clay-500); color: white; font-size: 0.58rem; font-style: normal; font-weight: 900; }
.resident-admin-list { display: grid; gap: 0.7rem; }
.resident-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 102px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.resident-admin-row:hover { transform: translateY(-1px); border-color: var(--sage-300); box-shadow: var(--shadow-sm); color: inherit; }
.resident-admin-main { display: grid; min-width: 0; }
.resident-admin-main > span { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.resident-admin-main b { font-family: var(--font-serif); font-size: 1.15rem; }
.resident-admin-main small,
.resident-admin-main em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resident-admin-main small { color: var(--ink-soft); font-size: 0.73rem; }
.resident-admin-main em { margin-top: 0.22rem; color: var(--muted); font-size: 0.68rem; font-style: normal; }
.resident-admin-permissions { display: grid; min-width: 96px; justify-items: center; color: var(--muted); text-align: center; }
.resident-admin-permissions .icon { color: var(--forest-600); }
.resident-admin-permissions b { color: var(--forest-950); font-size: 1rem; }
.resident-admin-permissions small { font-size: 0.6rem; }
.member-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr); gap: 1.2rem; align-items: start; }
.member-detail-main,
.member-detail-side { display: grid; gap: 1rem; }
.member-summary > header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.member-summary > header > div { min-width: 0; }
.member-summary > header > .pill { margin-left: auto; }
.resident-admin-avatar { display: grid; width: 78px; height: 78px; flex: 0 0 auto; place-items: center; border: 3px solid white; border-radius: 50%; background: linear-gradient(145deg, var(--forest-700), var(--sage-300)); box-shadow: 0 0 0 1px var(--line); color: white; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 750; }
.member-notes { margin-top: 1rem; padding: 0.9rem; border-radius: var(--radius-sm); background: var(--cream-50); }
.member-notes p { margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.76rem; }
.permission-card-list { display: grid; gap: 0.55rem; margin: 1rem 0; }
.permission-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}
.permission-card:hover { border-color: var(--sage-300); background: var(--sage-50); }
.permission-card:has(input:checked) { border-color: var(--forest-600); background: var(--sage-50); box-shadow: inset 0 0 0 1px var(--forest-600); }
.permission-card > input { position: absolute; opacity: 0; pointer-events: none; }
.permission-check { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: #edf0eb; color: #8b958f; }
.permission-card:has(input:checked) .permission-check { background: var(--success-bg); color: var(--success); }
.permission-card b,
.permission-card small { display: block; }
.permission-card b { font-size: 0.77rem; }
.permission-card small { margin-top: 0.15rem; color: var(--muted); font-size: 0.66rem; line-height: 1.4; }
.admin-profile-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 74px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  color: inherit;
  text-decoration: none;
}
.admin-profile-preview:hover { border-color: var(--sage-300); background: var(--sage-50); color: inherit; }
.admin-profile-preview > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--sage-100); color: var(--forest-700); }
.admin-profile-preview b,
.admin-profile-preview small { display: block; }
.admin-profile-preview small { color: var(--muted); font-size: 0.66rem; }
.admin-lock-note { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--sage-50); }
.admin-lock-note > .icon { color: var(--forest-600); }
.admin-lock-note p { margin-top: 0.35rem; color: var(--muted); }

/* Admin report queue */
.report-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.report-filter-tabs a { display: inline-flex; min-height: 44px; align-items: center; gap: 0.4rem; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink-soft); font-size: 0.73rem; font-weight: 750; text-decoration: none; }
.report-filter-tabs a:hover,
.report-filter-tabs a.is-current { border-color: var(--forest-700); background: var(--forest-700); color: white; }
.report-filter-tabs a span { display: grid; min-width: 21px; height: 21px; padding-inline: 0.25rem; place-items: center; border-radius: 999px; background: var(--clay-500); color: white; font-size: 0.58rem; }
.report-review-list { display: grid; gap: 1rem; }
.report-review-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-xs); }
.report-review-card.status-pending { border-top: 4px solid #d79d3b; }
.report-review-card.status-accepted { border-top: 4px solid var(--success); }
.report-review-card.status-rejected { border-top: 4px solid #8b9590; }
.report-review-card > header { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 1.1rem; border-bottom: 1px solid var(--line); }
.report-review-card > header h2 { margin-top: 0.3rem; font-size: 1.55rem; }
.report-review-card > header p { margin-top: 0.35rem; color: var(--muted); font-size: 0.72rem; }
.report-type { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--clay-600); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.report-context-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 1rem; padding: 1.1rem; }
.report-context-grid > section { min-width: 0; padding: 0.9rem; border-radius: var(--radius-sm); background: var(--sage-50); }
.report-context-grid h3 { font-family: var(--font-sans); font-size: 0.94rem; letter-spacing: 0; }
.report-context-grid p { font-size: 0.75rem; }
.report-context-grid blockquote,
.report-outcome blockquote { margin: 0.75rem 0 0; padding: 0.8rem; border-left: 3px solid var(--sage-300); border-radius: 0 10px 10px 0; background: white; color: var(--ink-soft); font-size: 0.75rem; }
.reporter-detail { margin-top: 0.65rem; color: var(--ink-soft); font-size: 0.75rem; }
.report-context-grid .text-action { margin-top: 0.8rem; font-size: 0.72rem; }
.report-decision-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 1rem; padding: 0 1.1rem 1.1rem; }
.report-decision-grid form { display: grid; gap: 0.75rem; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.report-decision-grid form > label:not(.moderation-action-check) { display: grid; gap: 0.35rem; color: var(--ink); font-size: 0.72rem; font-weight: 750; }
.report-reject-form { background: #fafbf9; }
.report-accept-form { border-color: #ebc5ba !important; background: var(--clay-50); }
.moderation-action-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.8rem; border: 1px solid #e5b8ac; border-radius: 12px; background: white; cursor: pointer; }
.moderation-action-check input { width: 20px; min-height: 20px; accent-color: var(--danger); }
.moderation-action-check b,
.moderation-action-check small { display: block; }
.moderation-action-check b { display: flex; align-items: center; gap: 0.4rem; color: var(--danger); font-size: 0.77rem; }
.moderation-action-check small { margin-top: 0.2rem; color: var(--muted); font-size: 0.67rem; }
.report-outcome { display: flex; gap: 0.8rem; align-items: flex-start; margin: 0 1.1rem 1.1rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--sage-50); }
.report-outcome > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: white; color: var(--forest-600); }
.report-outcome p { margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.75rem; }
.report-outcome small { display: block; margin-top: 0.6rem; color: var(--muted); }

/* Admin bin colour cards */
.bin-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bin-admin-card { margin: 0 !important; }
.bin-admin-card > header { display: flex; gap: 0.9rem; align-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.bin-admin-preview { position: relative; display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--bin-colour) 12%, white); color: var(--forest-800); }
.bin-admin-preview > .icon { width: 1.55rem; height: 1.55rem; }
.bin-admin-preview > .bin-dot { position: absolute; top: -3px; right: -3px; width: 17px; height: 17px; }
.bin-admin-card > header h2 { font-size: 1.55rem; }
.bin-admin-card > header p:last-child { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; color: var(--muted); font-size: 0.68rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.colour-swatch { display: inline-block; width: 18px; height: 18px; border: 2px solid white; border-radius: 50%; background: var(--swatch, var(--forest-700)); box-shadow: 0 0 0 1px var(--line-strong); }
.colour-input { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0.55rem; align-items: center; }
.colour-input input[type="color"] { width: 54px; height: 48px; padding: 0.22rem; border: 1px solid var(--line-strong); border-radius: 10px; background: white; cursor: pointer; }
.colour-input input[type="text"] { min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.bin-next-preview { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center; padding: 0.75rem; border-radius: 11px; background: color-mix(in srgb, var(--bin-colour) 8%, white); font-size: 0.72rem; }
.bin-next-preview span { color: var(--muted); }

/* Responsive extensions */
@media (max-width: 1180px) {
  .resident-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-detail-grid { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 1080px) {
  .mobile-menu-action { display: inline-grid; }
  .desktop-search-action { display: none; }
  .resident-profile-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .bin-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .resident-profile-grid,
  .member-detail-grid { grid-template-columns: 1fr; }
  .resident-profile-sidebar,
  .member-detail-side { order: -1; }
  .activity-panel { order: 2; }
  .profile-safety-card { order: 3; }
  .report-context-grid,
  .report-decision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .sheet-card-menu { max-height: min(91vh, 900px); }
  .menu-profile-card { min-height: 76px; margin-top: 0.7rem; padding: 0.7rem; }
  .menu-profile-card .large-avatar { width: 52px; height: 52px; }
  .menu-profile-card b { font-size: 1.08rem; }
  .mobile-full-menu { margin-top: 0.65rem; }
  .menu-search-link { min-height: 60px; }
  .menu-link-grid { gap: 0.5rem; }
  .menu-link-grid > a { min-height: 66px; padding: 0.65rem; }
  .menu-link-icon { width: 38px; height: 38px; }
  .menu-secondary { padding-bottom: 0.4rem; }
  .notice-section-head { margin-top: 1rem; }
  .notice-row { min-height: 64px; padding: 0.7rem; }
  .notice-row-icon { width: 38px; height: 38px; }
  .notification-signin { grid-template-columns: 1fr; }
  .visibility-choice { grid-template-columns: 1fr; }
  .visibility-choice label { min-height: 82px; }
  .report-form { padding: 0.85rem; }
  .resident-cover,
  .resident-cover-inner { min-height: 360px; }
  .resident-cover-inner { display: grid; align-content: end; padding-block: 1.4rem; }
  .resident-identity { align-items: center; gap: 0.85rem; }
  .resident-avatar { width: 86px; height: 86px; border-width: 3px; font-size: 1.4rem; }
  .resident-identity h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .resident-identity p:not(.eyebrow) { font-size: 0.75rem; }
  .resident-profile-actions { margin-top: 0.2rem; }
  .resident-profile-actions .button { width: 100%; }
  .resident-profile-grid { padding-top: 1rem; }
  .resident-profile-sidebar { order: -1; }
  .resident-stats { padding: 0.9rem; }
  .profile-stats-grid strong { font-size: 1.55rem; }
  .compact-heading { display: grid; align-items: start; }
  .compact-heading .button { width: 100%; }
  .profile-post-head { align-items: flex-start; padding: 0.85rem 0.85rem 0.65rem; }
  .profile-post-badges { width: 100%; margin-left: 0; }
  .profile-post-head { flex-wrap: wrap; }
  .profile-post-head > div:nth-child(2) { flex: 1 1 130px; }
  .profile-post-body { padding-inline: 0.85rem; }
  .profile-post-actions { padding: 0.65rem 0.85rem; }
  .profile-post-actions .report-tool { width: 100%; margin-left: 0; }
  .profile-post-actions .report-form { width: 100%; }
  .profile-upload-grid,
  .profile-media-previews { grid-template-columns: 1fr; }
  .upload-card { min-height: 104px; }
  .remove-media-row { display: grid; }
  .resident-result-grid { grid-template-columns: 1fr; }
  .admin-stats-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resident-admin-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; padding: 0.8rem; }
  .resident-admin-row > .large-avatar { width: 52px; height: 52px; }
  .resident-admin-permissions { grid-column: 2; grid-row: 2; justify-items: start; min-width: 0; grid-auto-flow: column; justify-content: start; gap: 0.3rem; }
  .resident-admin-row > .icon:last-child { grid-column: 3; grid-row: 1 / 3; }
  .member-summary > header { align-items: flex-start; flex-wrap: wrap; }
  .member-summary > header > .pill { margin-left: 0; }
  .resident-admin-avatar { width: 64px; height: 64px; }
  .report-review-card > header { display: grid; }
  .report-context-grid,
  .report-decision-grid { padding: 0.85rem; }
  .report-decision-grid { padding-top: 0; }
  .report-outcome { margin: 0 0.85rem 0.85rem; }
  .bin-admin-card .field-row { grid-template-columns: 1fr; }
  .colour-input { grid-template-columns: 54px minmax(0, 1fr); }
}

@media (max-width: 430px) {
  .menu-link-grid { grid-template-columns: 1fr; }
  .menu-link-grid > a { min-height: 60px; }
  .menu-secondary { display: grid; gap: 0; }
  .profile-stats-grid { gap: 0.35rem; }
  .profile-stats-grid > div { padding-inline: 0.25rem; }
  .profile-stats-grid span { font-size: 0.56rem; }
  .admin-stats-four { grid-template-columns: 1fr 1fr; }
  .admin-stats-four article { padding: 1rem; }
  .admin-stats-four strong { font-size: 2.2rem; }
  .resident-admin-row { grid-template-columns: 1fr auto; }
  .resident-admin-row > .large-avatar { display: none; }
  .resident-admin-main { grid-column: 1; }
  .resident-admin-permissions { grid-column: 1; }
  .resident-admin-row > .icon:last-child { grid-column: 2; }
}

/* Compatibility and action-state fallbacks */
.bin-admin-preview,
.bin-next-preview { background: var(--sage-50); }
@supports (background: color-mix(in srgb, red 20%, white)) {
  .bin-admin-preview,
  .bin-next-preview { background: color-mix(in srgb, var(--bin-colour) 10%, white); }
}
.text-button.is-danger { color: var(--danger); }
.text-button.is-danger:hover { color: var(--danger-strong, #8f211c); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.25rem 0 1rem;
}
.cal-legend > span {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.42rem;
  align-items: center;
  min-height: 42px;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream-50);
}
.cal-legend .bin-dot {
  grid-row: 1 / 3;
  width: 12px;
  height: 12px;
}
.cal-legend b,
.cal-legend small { display: block; line-height: 1.15; }
.cal-legend b { font-size: 0.68rem; }
.cal-legend small { color: var(--muted); font-size: 0.56rem; }
@media (max-width: 430px) {
  .cal-legend { display: grid; grid-template-columns: 1fr 1fr; }
  .cal-legend > span { padding-inline: 0.55rem; }
}

/* ==========================================================
   Community Platform v5
   ========================================================== */
.v5-route{background:#f5f1e8}.v5-page{padding-top:clamp(28px,4vw,64px);padding-bottom:clamp(96px,8vw,140px)}.narrow-v5{max-width:980px!important}.v5-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:32px;padding:clamp(24px,4vw,48px);border-radius:28px;background:linear-gradient(135deg,#173c2a,#315c3f);color:#fff;box-shadow:0 18px 60px rgba(24,54,40,.14)}.v5-hero h1{margin:.1em 0;font-size:clamp(2.3rem,5vw,4.8rem);line-height:.95}.v5-hero p{max-width:760px;color:rgba(255,255,255,.82)}.v5-hero .eyebrow{color:#d8c4a3}.v5-create{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.v5-create .button-outline,.v5-hero>.button-outline{border-color:rgba(255,255,255,.35);color:#fff}.v5-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:20px 0 32px}.v5-stat-grid a{display:flex;flex-direction:column;gap:4px;padding:20px;border:1px solid #dcd6c8;border-radius:20px;background:#fff;text-decoration:none;color:#203c2e}.v5-stat-grid b{font:700 clamp(1.6rem,3vw,2.5rem)/1 Georgia,serif}.v5-stat-grid span{font-size:.86rem;color:#66756b}.v5-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.v5-feature-card{display:grid;grid-template-columns:48px 1fr auto;gap:16px;align-items:start;padding:24px;border-radius:22px;background:#fff;border:1px solid #ded8cc;color:#203c2e;text-decoration:none;box-shadow:0 8px 30px rgba(38,65,49,.06);transition:transform .18s ease,box-shadow .18s ease}.v5-feature-card:hover{transform:translateY(-3px);box-shadow:0 14px 38px rgba(38,65,49,.12)}.v5-feature-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eef1e6;color:#315c3f}.v5-feature-card h2{margin:0 0 6px;font-size:1.2rem}.v5-feature-card p{margin:0;color:#66756b;font-size:.92rem}.map-privacy,.estate-disclaimer,.privacy-minimal-card{display:flex;gap:14px;align-items:flex-start;padding:18px 20px;border-radius:18px;background:#fff7e8;border:1px solid #ead9b6;color:#59492f;margin-bottom:22px}.map-privacy svg,.privacy-minimal-card svg{flex:0 0 auto}.v5-map-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr);gap:18px;min-height:620px}.v5-map{position:relative;min-height:620px;border-radius:26px;overflow:hidden;background:#dce4d6;border:1px solid #ccd4c7}.v5-map .leaflet-container{height:100%;min-height:620px}.map-placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;padding:40px;color:#315c3f}.map-placeholder svg{width:52px;height:52px;margin:auto}.v5-map-list{background:#fff;border:1px solid #ded8cc;border-radius:24px;padding:20px;overflow:auto}.v5-map-list h2{margin-top:0}.v5-map-list a,.map-list-row{display:flex;align-items:flex-start;gap:12px;padding:14px 4px;border-top:1px solid #eee9df;color:#203c2e;text-decoration:none}.v5-map-list small{display:block;color:#788178;margin-top:3px}.map-dot{width:12px;height:12px;border-radius:50%;background:#315c3f;margin-top:5px;box-shadow:0 0 0 4px #e8efe8}.issue-dot{background:#c66d4f}.issue-grid,.exchange-grid,.poll-grid,.group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.issue-card,.exchange-card,.poll-card,.group-card{display:block;padding:22px;border:1px solid #ded8cc;border-radius:22px;background:#fff;color:#203c2e;text-decoration:none;box-shadow:0 8px 26px rgba(38,65,49,.05)}.issue-card h2,.exchange-card h2,.poll-card h2,.group-card h2{margin:.4rem 0 .5rem}.issue-card>p,.exchange-card p,.poll-card p,.group-card p{color:#66756b}.issue-card-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.issue-status,.listing-type{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#e8efe8;color:#315c3f;font-size:.78rem;font-weight:800}.status-resolved,.status-closed{background:#edf0ed;color:#67716a}.status-urgent{background:#fce8e1;color:#8f3824}.issue-card footer,.exchange-card footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #eee9df;padding-top:14px;margin-top:18px;font-size:.8rem;color:#66756b}.issue-detail,.exchange-detail,.poll-detail,.knowledge-article{padding:clamp(22px,4vw,42px);background:#fff;border:1px solid #ded8cc;border-radius:26px;box-shadow:0 10px 40px rgba(38,65,49,.06)}.issue-detail h1,.exchange-detail h1,.poll-detail h1,.knowledge-article h1{font-size:clamp(2rem,5vw,4rem);line-height:1}.issue-image,.exchange-detail-image{width:100%;max-height:620px;object-fit:cover;border-radius:20px;margin:24px 0}.issue-meta{display:flex;flex-wrap:wrap;gap:14px;padding:18px 0;color:#66756b}.issue-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.issue-actions form{margin:0}.issue-timeline{margin-top:34px}.issue-timeline>article{display:grid;grid-template-columns:16px 1fr;gap:14px;padding:0 0 24px}.timeline-dot{width:12px;height:12px;border-radius:50%;background:#c66d4f;margin-top:7px}.issue-timeline small{display:block;color:#788178}.exchange-card{padding:0;overflow:hidden}.exchange-card>img,.exchange-art{width:100%;aspect-ratio:16/10;object-fit:cover}.exchange-art{display:grid;place-items:center;background:#e7eadc;color:#315c3f}.exchange-art svg{width:48px;height:48px}.exchange-card>div{padding:20px}.exchange-price{font-size:2rem;font-weight:800;color:#315c3f}.poll-card,.group-card{display:grid;grid-template-columns:44px 1fr auto;gap:14px}.poll-card>span,.group-card>span{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#eef1e6}.poll-options{display:grid;gap:10px;margin-top:24px}.poll-options label{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid #ded8cc;border-radius:14px}.poll-results{display:grid;gap:18px;margin-top:28px}.poll-results>div>span{display:flex;justify-content:space-between;gap:14px}.poll-results progress{width:100%;height:12px;margin-top:8px}.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.knowledge-group{padding:22px;background:#fff;border:1px solid #ded8cc;border-radius:22px}.knowledge-group>a{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #eee9df;color:#203c2e;text-decoration:none}.knowledge-group small{display:block;color:#66756b;margin-top:3px}.knowledge-article footer{border-top:1px solid #eee9df;margin-top:32px;padding-top:18px;color:#788178}.group-feed{display:grid;gap:14px;margin-top:24px}.group-feed .profile-post-card{display:grid;grid-template-columns:auto 1fr;gap:12px}.feature-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feature-switches .check{border:1px solid #ded8cc;border-radius:14px;padding:14px}.feature-switches small{display:block;color:#66756b}.admin-list>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:12px 0;border-top:1px solid #eee9df}.admin-list span{grid-column:1/-1;color:#66756b}.admin-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.optional-fields{padding:14px 0}.optional-fields summary{cursor:pointer;font-weight:800}.optional-fields[open] summary{margin-bottom:14px}
@media(max-width:1100px){.v5-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v5-feature-grid,.issue-grid,.exchange-grid,.poll-grid,.group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-map-layout{grid-template-columns:1fr}.v5-map{min-height:480px}.admin-cards{grid-template-columns:1fr}}
@media(max-width:720px){.v5-page{padding-top:18px}.v5-hero{align-items:flex-start;flex-direction:column;padding:22px;border-radius:20px}.v5-hero h1{font-size:2.45rem}.v5-create{justify-content:flex-start}.v5-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v5-feature-grid,.issue-grid,.exchange-grid,.poll-grid,.group-grid,.knowledge-grid,.feature-switches{grid-template-columns:1fr}.v5-feature-card{padding:18px}.v5-map{min-height:420px}.v5-map .leaflet-container{min-height:420px}.issue-detail,.exchange-detail,.poll-detail,.knowledge-article{padding:20px;border-radius:20px}.poll-card,.group-card{grid-template-columns:40px 1fr}.poll-card>svg,.group-card>svg{display:none}.issue-card footer,.exchange-card footer{align-items:flex-start;flex-direction:column}.admin-list>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.v5-feature-card{transition:none}}
.event-rsvp{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-top:16px;border-radius:16px;background:#f4f6f1;border:1px solid #dfe5dc}.event-rsvp small{display:block;color:#6d776f;margin-top:2px}.event-rsvp form{display:flex;gap:6px;flex-wrap:wrap}.event-rsvp button{min-height:40px;padding:8px 12px;border:1px solid #ccd5cc;background:#fff;border-radius:999px;color:#315c3f;font:inherit;font-weight:700;cursor:pointer}.event-rsvp button.is-selected{background:#315c3f;color:#fff}.vouch-card,.contact-request-card{padding:14px 0;border-top:1px solid #eee9df}.contact-request-card small{display:block;color:#788178}.privacy-account-card .account-actions{margin-top:16px}@media(max-width:640px){.event-rsvp{align-items:flex-start;flex-direction:column}}
.service-grid,.offer-grid,.pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-card,.offer-card,.pet-card,.action-board>article,.route-list>article{padding:22px;border:1px solid #ded8cc;border-radius:22px;background:#fff;color:#203c2e;text-decoration:none}.service-card footer,.action-board footer{display:flex;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid #eee9df;color:#66756b}.review-card{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:18px 0;border-top:1px solid #eee9df}.review-card small{display:block;color:#788178}.community-timeline{display:grid;gap:22px}.community-timeline article{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:24px;padding:22px;border-radius:24px;background:#fff;border:1px solid #ded8cc}.community-timeline img{width:100%;height:100%;max-height:340px;object-fit:cover;border-radius:18px}.community-timeline time{color:#c66d4f;font-weight:800}.action-board,.route-list{display:grid;gap:16px}.action-board>article footer{margin-top:18px}.route-list>article{display:grid;grid-template-columns:48px 1fr;gap:16px}.route-list>article>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eef1e6}.offer-card small,.pet-card small,.service-card small{color:#788178}.pet-card img,.pet-card>div{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;background:#e7eadc;display:grid;place-items:center}.pet-card h2{margin:.8rem 0 .2rem}.event-volunteer{padding:14px 16px;margin-top:10px;border-radius:16px;background:#fff8eb;border:1px solid #ead9b6}.event-volunteer form{display:flex;gap:8px;flex-wrap:wrap}.event-volunteer button{padding:8px 12px;border-radius:999px;border:1px solid #ddcda9;background:#fff;color:#59492f;font-weight:700}.event-volunteer button.is-selected{background:#8b6c39;color:#fff}.event-volunteer small{font-size:.72em}@media(max-width:900px){.service-grid,.offer-grid,.pet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.service-grid,.offer-grid,.pet-grid{grid-template-columns:1fr}.community-timeline article{grid-template-columns:1fr}}

/* v5 optional onboarding */
.v5-onboarding{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 24px;padding:22px 24px;border:1px solid rgba(32,60,46,.16);border-radius:24px;background:linear-gradient(135deg,#fffdf8,#eef3e8)}
.v5-onboarding h2{margin:.2rem 0 .4rem}.v5-onboarding p{margin:0;max-width:720px}.onboarding-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.onboarding-links a{padding:8px 11px;border-radius:999px;background:#fff;border:1px solid rgba(32,60,46,.14);font-weight:700;font-size:.88rem}.v5-onboarding form{flex:0 0 auto}@media(max-width:680px){.v5-onboarding{flex-direction:column;padding:18px}.v5-onboarding form{width:100%}.v5-onboarding form button{min-height:44px}}
