/* GapCrew public site design system. One file, tokens first. Style: friendly, soft, white and green.
   Contrast notes: ink on white 15:1, muted 7.4:1, soft 5.6:1, white on green 8.1:1, green on mint 6.9:1. */

:root {
  --green: #0f5c4d;
  --green-700: #0a4237;
  --green-50: #f4f8f6;
  --mint: #e7f2ee;
  --mint-200: #cfe3db;
  --mint-400: #9cc5b8;
  --sun: #ffd98a;
  --sun-50: #fff1d6;
  --sun-ink: #5a3700;
  --ink: #14211d;
  --muted: #3e5a52;
  --soft: #556963;
  --line: #dce7e2;
  --white: #ffffff;
  --busy: #e3e9e6;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-h1: clamp(2.5rem, 6vw, 4.5rem);

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 29, 0.06), 0 2px 8px rgba(20, 33, 29, 0.05);
  --shadow-md: 0 8px 28px rgba(15, 92, 77, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 92, 77, 0.18);

  --wrap: 1160px;
  --wrap-narrow: 760px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-700);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
}

p {
  margin: 0 0 var(--s-4);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: calc(var(--wrap-narrow) + 48px);
}

/* Preview banner */
.banner {
  background: var(--sun-50);
  color: #7a4a00;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 9px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.97rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--mint);
  color: var(--green-700);
}

.nav .btn {
  margin-left: 8px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
}

.nav .btn:hover {
  background: var(--green-700);
  color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: var(--r-md);
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn--ghost {
  background: var(--white);
  color: var(--green);
}

.btn--ghost:hover {
  background: var(--mint);
  color: var(--green-700);
  border-color: var(--green);
}

.btn--sun {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--ink);
}

.btn--sun:hover {
  background: #ffcf6b;
  border-color: #ffcf6b;
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s-5);
}

/* Sections */
.section {
  padding: var(--s-8) 0;
}

.section--tint {
  background: var(--green-50);
}

.section--mint {
  background: var(--mint);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--s-6);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-lg);
  margin-top: var(--s-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.section--mint .eyebrow {
  background: var(--white);
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 600px;
}

.mark {
  background: linear-gradient(transparent 60%, var(--sun) 60%);
  padding: 0 4px;
}

/* Hero */
.hero {
  padding: var(--s-7) 0 var(--s-8);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}

.hero h1 {
  margin: var(--s-4) 0 var(--s-4);
}

.hero-trades {
  margin-top: var(--s-5);
  color: var(--soft);
  font-size: var(--fs-sm);
}

.page-hero {
  padding: var(--s-7) 0 var(--s-6);
  background: linear-gradient(180deg, var(--green-50), var(--white));
}

.page-hero h1 {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  margin: var(--s-3) 0 var(--s-4);
  max-width: 880px;
}

.page-hero .lede {
  max-width: 720px;
}

/* Hero illustration */
.visual {
  position: relative;
  padding: 0 0 36px;
}

.visual::before {
  content: "";
  position: absolute;
  inset: -22px -18px 6px 30px;
  background: var(--mint);
  border-radius: 40px;
}

.week {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.week-head strong {
  font-size: 1.1875rem;
  font-weight: 800;
}

.week-head span {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--soft);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 196px;
}

.day-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--soft);
  text-align: center;
  height: 18px;
}

.slot {
  flex: 1;
  border-radius: 12px;
  padding: 7px 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
}

.slot--free {
  border: 2px dashed var(--mint-400);
  color: var(--green);
}

.slot--open {
  border: 2px dashed var(--green);
  background: var(--green-50);
  color: var(--green);
}

.slot--busy {
  background: var(--busy);
  color: var(--soft);
  font-weight: 600;
}

.slot--job {
  flex: 1.7;
  background: var(--green);
  color: var(--white);
}

.slot--job small {
  display: block;
  font-weight: 500;
  opacity: 0.9;
  font-size: 0.6875rem;
}

.slot--none {
  border: 2px dashed var(--mint-200);
}

.job-card {
  position: relative;
  margin: -14px 0 0 -10px;
  max-width: 350px;
  background: var(--white);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--mint);
}

.job-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green);
  background: var(--mint);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.pill--sun {
  background: var(--sun-50);
  color: #7a4a00;
}

.job-card h3 {
  margin-top: 8px;
  font-size: 1.25rem;
}

.job-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--soft);
}

.job-card .fake-btn {
  margin-top: 12px;
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  text-align: center;
  padding: 11px;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Grids and cards */
.grid {
  display: grid;
  gap: var(--s-5);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: var(--s-3) 0 var(--s-2);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--muted);
}

.icon-badge {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: var(--green);
  border-radius: 16px;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

a.tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.tile:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

a.tile strong {
  display: block;
  font-size: 1.1875rem;
  font-weight: 800;
  margin-top: var(--s-3);
}

a.tile span.sub {
  display: block;
  color: var(--soft);
  font-size: 0.9375rem;
  margin-top: 2px;
}

a.tile .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9375rem;
}

.tile .icon-badge {
  margin-bottom: 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-3);
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
}

.steps span {
  color: var(--muted);
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

.panel--green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.panel--green h2,
.panel--green h3 {
  color: var(--white);
}

.panel--green p {
  color: #e7f2ee;
}

.panel--green .steps span {
  color: #e7f2ee;
}

.panel--green .steps li::before {
  background: var(--sun);
  color: var(--ink);
}

/* Definition (answer-first) block */
.definition {
  background: var(--white);
  border: 2px solid var(--mint-200);
  border-left: 8px solid var(--green);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  box-shadow: var(--shadow-sm);
}

.definition .label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-2);
}

.definition p {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  line-height: 1.45;
  font-weight: 650;
}

.callout {
  background: var(--sun-50);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  color: #5a3700;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout a {
  color: #5a3700;
}

.callout--green {
  background: var(--mint);
  color: var(--ink);
}

.callout--green a {
  color: var(--green-700);
}

/* Lists */
.checks {
  list-style: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F5C4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--mint-200);
  color: var(--green-700);
  font-weight: 700;
  text-decoration: none;
}

.chips a:hover {
  background: var(--mint);
  border-color: var(--green);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.9375rem;
}

table.compare caption {
  text-align: left;
  padding: var(--s-4) var(--s-4) 0;
  font-weight: 700;
  color: var(--muted);
}

table.compare th,
table.compare td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

table.compare thead th {
  background: var(--green-50);
  font-weight: 800;
}

table.compare thead th.us,
table.compare td.us {
  background: var(--mint);
}

table.compare tbody th {
  font-weight: 800;
  width: 18%;
}

table.compare tr:last-child th,
table.compare tr:last-child td {
  border-bottom: 0;
}

.note {
  font-size: var(--fs-sm);
  color: var(--soft);
  margin-top: var(--s-3);
}

/* FAQ */
.faq {
  display: grid;
  gap: var(--s-3);
}

details.q {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 var(--s-5);
}

details.q summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.125rem;
  padding: var(--s-4) 0;
  padding-right: 36px;
  position: relative;
}

details.q summary::-webkit-details-marker {
  display: none;
}

details.q summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--green);
}

details.q[open] summary::after {
  content: "\2013";
}

details.q[open] {
  border-color: var(--mint-400);
}

details.q .a {
  padding: 0 0 var(--s-4);
  color: var(--muted);
}

details.q .a p:last-child {
  margin-bottom: 0;
}

/* Breadcrumbs */
.crumbs {
  font-size: var(--fs-sm);
  color: var(--soft);
  padding-top: var(--s-4);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--mint-400);
}

.crumbs a {
  color: var(--soft);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* Prose (guides, trades, areas, legal) */
.prose {
  font-size: 1.125rem;
}

.prose > * + * {
  margin-top: var(--s-4);
}

.prose h2 {
  margin-top: var(--s-7);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s-5);
}

.prose p,
.prose li {
  color: #26372f;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin-bottom: var(--s-4);
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose .checks li {
  padding-left: 32px;
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-7);
  align-items: start;
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--s-4);
}

.aside .card {
  padding: var(--s-4) var(--s-5);
}

.aside h2 {
  font-size: 1.0625rem;
  letter-spacing: 0;
  margin-bottom: var(--s-2);
}

.aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.97rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: var(--s-3);
}

.ph {
  background: var(--sun-50);
  color: #7a4a00;
  padding: 0 4px;
  border-radius: 4px;
}

.source-list {
  font-size: 0.97rem;
}

.toc {
  background: var(--green-50);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}

.toc strong {
  display: block;
  margin-bottom: var(--s-2);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.cta-band {
  background: var(--green);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.cta-band p {
  color: #e7f2ee;
  margin: var(--s-2) 0 0;
  font-size: var(--fs-lg);
}

.cta-band .btn--ghost {
  border-color: var(--white);
}

.stamp {
  background: var(--sun);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  transform: rotate(-3deg);
}

dl.facts {
  display: grid;
  gap: var(--s-3);
  margin: 0;
}

dl.facts div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}

dl.facts dt {
  font-weight: 800;
}

dl.facts dd {
  margin: 2px 0 0;
  color: var(--muted);
}

dl.glossary dt {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: var(--s-5);
  scroll-margin-top: 100px;
}

dl.glossary dd {
  margin: var(--s-1) 0 0;
  color: #26372f;
}

/* Footer */
.site-footer {
  background: var(--green-50);
  border-top: 1px solid var(--line);
  margin-top: var(--s-8);
  padding: var(--s-7) 0 var(--s-5);
  font-size: 0.97rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}

.site-footer h2 {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: var(--s-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-about p {
  color: var(--muted);
  max-width: 340px;
}

.footer-base {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: var(--fs-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .job-card {
    animation: float 6s ease-in-out infinite;
  }

  @keyframes float {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-6px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  a.tile {
    transition: none;
  }

  .btn:hover,
  a.tile:hover {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1020px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    position: static;
  }
}

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--s-3) 16px var(--s-4);
    box-shadow: var(--shadow-md);
  }

  .js .nav.is-open {
    display: block;
  }

  .nav {
    flex-wrap: wrap;
    padding-bottom: var(--s-3);
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 12px 14px;
  }

  .nav .btn {
    margin: var(--s-2) 0 0;
    text-align: center;
  }

  .site-header {
    position: sticky;
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: var(--s-7) 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .week {
    padding: 14px;
  }

  .week-grid {
    gap: 4px;
  }

  .slot {
    padding: 6px 2px;
    font-size: 0.625rem;
  }

  .job-card {
    margin-left: 0;
    max-width: none;
  }

  .visual::before {
    inset: -12px -6px 6px 12px;
  }

  .definition {
    padding: var(--s-4) var(--s-5);
  }

  .panel {
    padding: var(--s-5);
  }

  .cta-band {
    padding: var(--s-6) var(--s-5);
  }

  .btn-row .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  details.q {
    padding: 0 var(--s-4);
  }
}

@media print {
  .site-header,
  .site-footer,
  .banner,
  .cta-band {
    display: none;
  }
}

/* Early-list forms (appended to styles.css by scripts/build-site.mjs) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.js-only {
  display: none;
}

.js .js-only {
  display: grid;
}

.join-panel[hidden] {
  display: none;
}

html:not(.js) .join-panel[hidden] {
  display: block;
  margin-top: var(--s-6);
}

.role-pick {
  border: 0;
  margin: 0 auto var(--s-5);
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  max-width: 760px;
  position: relative;
}

.role-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 72px;
  padding: var(--s-3) var(--s-4);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
}

.role-card span {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.role-input:checked + .role-card {
  border-color: var(--green);
  background: var(--mint);
  box-shadow: var(--shadow-sm);
}

.role-input:focus-visible + .role-card {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.lf-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: var(--s-4);
}

.lf-form [hidden] {
  display: none !important;
}

.lf-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.lf-lede {
  margin: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.field > label,
.fieldset legend {
  font-weight: 700;
  color: var(--ink);
  padding: 0;
}

.req,
.opt {
  font-weight: 500;
  color: var(--soft);
  font-size: var(--fs-sm);
}

.field-hint {
  margin: 0;
  color: var(--soft);
  font-size: var(--fs-sm);
}

.lf-form input[type="text"],
.lf-form input[type="email"],
.lf-form input[type="number"],
.lf-form input[type="time"],
.lf-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--soft);
  border-radius: var(--r-sm);
}

.lf-form textarea {
  resize: vertical;
  min-height: 96px;
}

.lf-form input::placeholder,
.lf-form textarea::placeholder {
  color: var(--soft);
}

.lf-form input:focus-visible,
.lf-form textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px var(--s-4);
  margin-top: var(--s-2);
}

.check {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 10px;
  accent-color: var(--green);
}

.check label {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  cursor: pointer;
}

.check--consent {
  align-items: flex-start;
}

.check--consent label {
  display: block;
  line-height: 1.45;
  padding: 10px 0;
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error input[type="number"],
.has-error input[type="time"],
.has-error textarea {
  border-color: #9b2c1f;
}

.field-error {
  margin: 0;
  color: #9b2c1f;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lf-fine {
  margin: 0;
  color: var(--soft);
  font-size: var(--fs-sm);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
}

.form-status.is-error {
  background: #fdeceb;
  color: #7a1f14;
}

.lf-submit {
  width: 100%;
  min-height: 52px;
  cursor: pointer;
}

.lf-submit:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

html:not(.js) .lf-submit {
  display: none;
}

.lf-noscript {
  margin: 0;
}

.lf-thanks {
  background: var(--mint);
  border-radius: var(--r-md);
  padding: var(--s-5);
}

.lf-thanks h2,
.lf-thanks h3,
.lf-thanks h4 {
  margin: 0 0 var(--s-2);
}

.lf-thanks p:last-child {
  margin-bottom: 0;
}

.embed-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s-6);
  align-items: start;
}

.embed-form .lf-form {
  margin: 0;
  max-width: none;
}

.lf-form--compact {
  padding: var(--s-5);
}

.lf-form--compact .lf-title {
  font-size: 1.375rem;
}

.lf-form--compact .check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Dates and hours on the full /join/ forms. The calendar is drawn by assets/site.js, so without
   JavaScript the section is hidden and the no-script message asks for an email instead. */
html:not(.js) .sched {
  display: none;
}

.sched {
  gap: var(--s-4);
}

.sched > legend {
  margin-bottom: var(--s-1);
}

.sched-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.lf-form .sched-sub {
  margin: 0;
  padding: 0;
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--ink);
}

.sched-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.sched-mode {
  position: relative;
}

.sched-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sched-mode label {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 600;
  cursor: pointer;
}

.sched-mode input:checked + label {
  border-color: var(--green);
  background: var(--mint);
}

.sched-mode input:focus-visible + label {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.cal {
  max-width: 420px;
  width: 100%;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

.cal-month {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.cal-nav {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
}

.cal-grid th {
  padding: 0 0 4px;
  color: var(--soft);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

.cal-grid td {
  padding: 0;
  text-align: center;
}

.cal-day,
.cal-off {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--r-sm);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.cal-off {
  color: var(--soft);
  opacity: 0.55;
}

.cal-day {
  padding: 0;
  border: 2px solid transparent;
  background: var(--green-50);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.cal-day:hover {
  border-color: var(--mint-400);
}

.cal-day.is-today {
  border-color: var(--soft);
}

.cal-day[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.cal-day.is-in-range:not(.is-range-start):not(.is-range-end) {
  background: var(--mint-200);
  border-color: var(--mint-200);
  color: var(--ink);
}

.cal-day:focus-visible,
.cal-nav:focus-visible,
.sched-toggle:focus-visible,
.sched-chip:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.cal-day[aria-pressed="true"]:focus-visible {
  outline-color: var(--ink);
}

.has-error .cal-grid {
  outline: 2px solid #9b2c1f;
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

.sched-time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  max-width: 420px;
}

.sched-time {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sched-time label {
  font-weight: 600;
}

.sched-toggle {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sched-diff-panel {
  display: grid;
  gap: var(--s-3);
}

.sched-empty {
  margin: 0;
  color: var(--muted);
}

.sched-diff-list {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sched-diff-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.sched-diff-date {
  font-weight: 700;
  min-width: 7.5em;
}

.sched-chip {
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sched-chip[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--mint);
}

.sched-diff-times {
  flex: 1 1 100%;
  min-width: 0;
}

.lf-form input[type="time"] {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.sched-summary {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--green-50);
  color: var(--ink);
  font-weight: 600;
}

.sched-summary:empty {
  display: none;
}

@media (max-width: 960px) {
  .embed-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .lf-form {
    padding: var(--s-5) var(--s-4);
    border-radius: var(--r-md);
  }

  .form-grid,
  .check-grid,
  .lf-form--compact .check-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-pick {
    grid-template-columns: minmax(0, 1fr);
  }
}
