@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #e8f0e3;
  --surface: #ffffff;
  --ink: #17261b;
  --ink-2: #3d4f43;
  --muted: #4a5a4e;
  --faint: #8a988d;
  --line: #c9d6c4;
  --field-line: #7d8c80;
  --pill-line: #c9d6c4;

  --accent: #2e7d3a;
  --accent-hover: #23652d;
  --link: #23652d;

  --sky: #cce2f6;
  --sky-line: #b5d3ee;
  --sky-ink: #1e5a8c;
  --leaf: #e6f2e1;
  --leaf-ink: #1f4d27;
  --photo: #d5e6cc;
  --star: #b7791f;
  --danger: #a3261b;
  --danger-bg: #fbeae8;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --gutter: 24px;
  --page-width: 1200px;
}

/* Base */

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom on short pages. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); }
a:hover { color: var(--ink); }

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

:focus-visible {
  outline: 3px solid var(--sky-ink);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Layout */

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page { padding-top: 32px; padding-bottom: 24px; }
.page > section + section { margin-top: 56px; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}

/* Header and footer */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 22px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.brand svg { color: var(--accent); }

/* The pill's border and focus ring are on the form, so they wrap both the
   input and the button. */
.header-search {
  display: flex;
  flex: 1 1 260px;
  max-width: 420px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--surface);
}
.header-search:has(input:focus-visible) {
  outline: 3px solid var(--sky-ink);
  outline-offset: 2px;
}
.site-header .header-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 10px 16px;
  min-height: 42px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
}
.site-header .header-search input:focus-visible { outline: none; }
.header-search button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  cursor: pointer;
}
.header-search button:focus-visible { outline-offset: -3px; }

.site-nav { display: flex; gap: 24px; flex: 1 1 auto; }
.site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
}
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav__account { margin-left: auto; }

/* Phones: logo and "Add your farm" on the first row, links on the second,
   search box last. */
@media (max-width: 720px) {
  .site-header__inner { gap: 4px 16px; }
  .site-header .site-header__add { order: 2; margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav__account { margin-left: 0; }
  .header-search { order: 4; flex-basis: 100%; max-width: none; margin-bottom: 4px; }
}
@media (max-width: 440px) {
  .site-header__inner { column-gap: 8px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .site-header .site-header__add { padding: 0 12px; }
  .site-header__add-your { display: none; }
}

.site-footer {
  margin-top: 64px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 17px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--sky-ink); border-color: var(--sky-line); }
.btn--secondary:hover { border-color: var(--sky-ink); color: var(--sky-ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--pill { border-radius: 999px; }
.btn--lg { min-height: 48px; padding: 0 26px; font-size: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }

/* Forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 140px;
}
.field--wide { flex: 3 1 280px; }
.field label, .field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.field__hint { font-size: 14px; color: var(--muted); }

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-height: 48px;
  width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--faint); }

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sky-line);
  background: var(--sky);
  color: var(--ink);
}
.alert--error { border-color: #efc2bd; background: var(--danger-bg); color: var(--danger); }
.alert--success { border-color: #c5ddbb; background: var(--leaf); color: var(--leaf-ink); }

/* Hero (homepage) */

.hero {
  background: var(--sky);
  border-bottom: 1px solid var(--sky-line);
  padding: 72px 0 64px;
}
.hero__title {
  font-size: clamp(38px, 6vw, 56px);
  max-width: 14ch;
  margin-bottom: 12px;
}
.hero__lede {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 40ch;
  margin-bottom: 32px;
}
.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  max-width: 920px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--sky-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(30 90 140 / 0.08);
}
.search-panel .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
  .hero { padding: 40px 0; }
  .search-panel .btn { flex: 1 1 100%; }
}
.hero__states {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.hero__states > span { font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.hero__all-states { color: var(--sky-ink); font-weight: 600; font-size: 15px; padding: 8px 4px; }

/* Chips and tags */

.chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: var(--leaf);
  color: var(--leaf-ink);
}
.chip--sky { background: var(--surface); color: var(--sky-ink); border: 1px solid var(--sky-line); }
.chip[aria-current="page"] { background: var(--accent); color: #fff; }
a.chip:hover { color: var(--ink); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* Sections */

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.section-head a { font-weight: 600; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.panel--sky { background: var(--sky); border-color: var(--sky-line); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cta-band > div { flex: 1 1 420px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--ink-2); }
@media (max-width: 600px) { .cta-band { padding: 24px 20px; } }

/* Farm cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.farm-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.farm-card__photo { display: block; aspect-ratio: 4 / 3; background: var(--photo); }
.farm-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.farm-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.farm-card__name { font-size: 21px; line-height: 1.2; }
.farm-card__name a { color: var(--ink); text-decoration: none; }
.farm-card__name a:hover { text-decoration: underline; }
.farm-card__place { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
a.farm-card__place:hover { color: var(--ink); text-decoration: underline; }
.farm-card__summary {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Breadcrumb and pagination */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.breadcrumb a + span::before, .breadcrumb > * + *::before {
  content: "›";
  margin-right: 8px;
  color: var(--faint);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.pagination a, .pagination span[aria-disabled] {
  padding: 10px 18px;
  border: 1px solid var(--pill-line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
}
.pagination span[aria-disabled] { color: var(--faint); border-color: var(--line); }
.pagination__current { color: var(--muted); font-weight: 600; }

/* Stars */

.stars { color: var(--star); letter-spacing: 1px; }

/* 404 */

.not-found { padding-top: 64px; padding-bottom: 32px; }
.not-found > * { max-width: 720px; }
.not-found h1 { margin-bottom: 12px; }
.not-found p { color: var(--ink-2); }
.not-found__search { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.not-found__search input { flex: 1 1 260px; width: auto; }

/* Text helpers */

.page-title { margin-bottom: 24px; }
.muted { color: var(--muted); }
.prose { white-space: pre-line; max-width: 65ch; }
.eyebrow {
  font: 600 14px/1.2 var(--font-body);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.panel__title { font-size: 20px; margin-bottom: 14px; }
.panel p { color: var(--ink-2); font-size: 15px; }

/* Lists of links in columns (states, cities) */

.link-columns {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 4 180px;
  column-gap: 24px;
}
.link-columns li { break-inside: avoid; padding: 4px 0; }
.link-columns a[aria-current="page"] { font-weight: 600; color: var(--ink); text-decoration: none; }
.state-list { margin-top: 28px; }
.state-list h2 { margin-bottom: 12px; }

.city-filter { margin-bottom: 32px; padding: 18px 20px; }
details.city-filter summary { cursor: pointer; font-weight: 600; }
details.city-filter[open] summary { margin-bottom: 14px; }

/* Farm page */

.farm__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
  margin: 16px 0 28px;
}
.farm__head h1 { margin-bottom: 6px; }
.farm__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--ink-2); font-weight: 600; }
.farm__place { display: flex; align-items: center; gap: 6px; }
.farm__rating { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.farm__claim-link { font-size: 15px; font-weight: 600; }

.farm__layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.farm__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.farm__main h2 { margin-bottom: 14px; }
.farm__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.farm__nearby { margin-top: 56px; }

.details { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.details dt { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.details dd + dd { margin-top: 4px; font-size: 15px; font-weight: 600; }

.reviews { display: flex; flex-direction: column; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.review p { color: var(--ink-2); }
.reviews__write { margin-top: 20px; }

/* Photo gallery: one big photo and up to two more; the rest open in the
   lightbox. */

.gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px 200px;
}
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 360px; }
.gallery--2 { grid-template-rows: 412px; }
.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--photo);
  cursor: zoom-in;
}
.gallery__item:first-child { grid-row: span 2; }
.gallery--1 .gallery__item:first-child, .gallery--2 .gallery__item:first-child { grid-row: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--hidden { display: none; }
.gallery__more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(23 38 27 / 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}
@media (max-width: 600px) {
  .gallery, .gallery--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .gallery--1 { grid-template-rows: 240px; }
  .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery--2 .gallery__item:first-child { grid-column: 1 / -1; }
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgb(10 18 12 / 0.88); }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; border-radius: var(--radius-sm); }
.lightbox button {
  position: fixed;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; font-size: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox[data-single] .lightbox__prev, .lightbox[data-single] .lightbox__next { display: none; }

/* Search */

.search { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.search__filters { flex: 1 1 300px; min-width: 0; }
.search__results { flex: 999 1 560px; min-width: 0; }
.search__results .card-grid { margin-top: 20px; }
.search-form { display: flex; flex-direction: column; gap: 16px; }
.search-form > .field { flex: none; }
.search-form .form__row { gap: 12px; }
.search-form .btn { align-self: flex-start; }

.product-filter { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.product-filter__title { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.product-filter__selected .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.product-filter__selected .chip:hover { background: var(--pill-line); }
.product-filter__selected .chip span { font-size: 16px; line-height: 1; }
/* A grid rather than CSS columns: columns in a height-capped box overflow
   sideways instead of scrolling down. */
.product-filter__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  align-content: start;
  column-gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.product-filter__list .check[hidden] { display: none; }
.product-filter__empty { grid-column: 1 / -1; margin: 4px 0; font-size: 15px; }
.check { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 15px; break-inside: avoid; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

.farm__actions { display: none; }
@media (max-width: 720px) {
  .farm__actions:has(a) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    margin: -24px 0 32px;
  }
  .farm__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px;
    border-radius: 14px;
    background: var(--leaf);
    color: var(--leaf-ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
  }
  .farm__action--primary { background: var(--accent); color: #fff; }
}

.details dd.directions { font-weight: 400; color: var(--muted); }
.details dd.directions a { font-weight: 600; }

/* Phone Directions button: a small menu of map apps. */
.farm__directions { position: relative; }
.farm__directions summary { list-style: none; cursor: pointer; height: 100%; }
.farm__directions summary::-webkit-details-marker { display: none; }
.farm__directions-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgb(23 38 27 / 0.12);
}
.farm__directions-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.farm__directions-menu a:hover { background: var(--leaf); }

/* Reviews: pending badge and form */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--sky-ink);
  font-size: 13px;
  font-weight: 600;
}
.review--pending { border-style: dashed; }
.review-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.review-form > .field { flex: none; }
.review-form__as { flex: 3 1 280px; align-self: flex-end; margin: 0 0 12px; color: var(--ink-2); }

/* Auth and account pages */

.auth { display: flex; justify-content: center; }
.auth__card { width: 100%; max-width: 480px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth__card .form { max-width: none; }
.auth__card .form > .field, .account .form > .field { flex: none; }
.auth__alt { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .auth__card { padding: 24px 18px; } }

.flash { padding-top: 20px; }

.account { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.account__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.account__main .page-title { margin-bottom: 0; }
.account__aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.account__aside .panel { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.account__aside .panel__title { margin-bottom: 0; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

/* Listing editor: header, tabs, products, photos, delete */

.badge--live { background: var(--leaf); color: var(--leaf-ink); }

.listing-head { display: flex; flex-direction: column; gap: 6px; }
.listing-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-size: 15px; }

.tabs {
  display: flex;
  gap: 4px;
  box-shadow: inset 0 -1px 0 var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__tab {
  padding: 10px 14px;
  border-bottom: 3px solid transparent;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__tab--end { margin-left: auto; }

.account .form .form__row > .field { min-width: 0; }
.form--full { max-width: none; }

.product-picker { border: 0; margin: 0; padding: 0; }
.product-picker legend { padding: 0; margin-bottom: 12px; color: var(--ink-2); }
.product-picker__list {
  columns: 3 180px;
  column-gap: 24px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.upload {
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--field-line);
  border-radius: var(--radius);
}
.upload input[type="file"] { font: inherit; font-size: 15px; max-width: 100%; }

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.photo-grid__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.photo-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--photo);
}
.photo-grid__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 600 15px/1.4 var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.link-button--danger { color: var(--danger); }

.danger-zone {
  padding: 24px;
  border: 1px solid #efc2bd;
  border-radius: var(--radius);
  background: var(--danger-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.danger-zone h2 { font-size: 20px; margin: 0; }
.danger-zone p { margin: 0; color: var(--ink-2); }

.owner-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
