:root {
  --ink: #27211e;
  --muted: #6c625d;
  --paper: #f7f3ed;
  --card: #fffdf9;
  --line: #e4dbd1;
  --walnut: #4a3328;
  --walnut-dark: #2f241f;
  --walnut-soft: #806353;
  --green: #2d6b4f;
  --green-bg: #e7f3ec;
  --amber: #8a5b1f;
  --amber-bg: #f9efdc;
  --red: #8a3f3f;
  --red-bg: #f7e7e7;
  --shadow: 0 14px 35px rgba(47, 36, 31, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (min-width: 921px) {
  html { scrollbar-gutter: stable; }
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, rgba(128,99,83,.10), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247,243,237,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228,219,209,.85);
}
.header-inner {
  min-height: 74px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--walnut-soft), var(--walnut-dark));
  font-family: Georgia, serif;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(47,36,31,.16);
}
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1;
}
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .02em; }

.main-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding-block: 8px;
}
.main-nav::-webkit-scrollbar { display:none; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--walnut-dark);
  background: #eee6dd;
}

.feed-banner {
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.feed-banner.preview { background: #fff3cf; color: #654d14; }
.feed-banner.live { background: var(--green-bg); color: var(--green); }

.hero {
  padding: 60px 0 30px;
}
.hero.compact { padding-bottom: 10px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--walnut-soft);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  overflow-wrap: anywhere;
  max-width: 820px;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
}
.hero.compact h1 { font-size: clamp(34px, 5vw, 56px); }
.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions [data-browse-boards]:focus-visible,
.catalogue-buy-link:focus-visible,
#timber-boards-heading:focus {
  outline:2px solid var(--walnut-soft);
  outline-offset:3px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 620px;
}
.stat {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255,253,249,.75);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat strong {
  display:block;
  font-size: clamp(19px, 2.2vw, 22px);
  font-family: Georgia, serif;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.stat span {
  display:block;
  overflow-wrap: anywhere;
  margin-top:8px;
  color: var(--muted);
  font-size: 12px;
  line-height:1.35;
}

.section { padding: 22px 0 64px; }
.section-title {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-title > div { min-width: 0; overflow-wrap: anywhere; }
.section-title h2 {
  margin:0;
  font-family: Georgia, serif;
  font-size: clamp(28px,4vw,42px);
  font-weight: 500;
  line-height: 1.2;
}
.section-title p { margin:5px 0 0; color:var(--muted); }
.catalogue-buy-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  vertical-align:middle;
  white-space:nowrap;
}

.why-section { padding-top: 18px; padding-bottom: 26px; }
.catalogue-section { padding-top: 18px; }
.usp-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.usp-card {
  padding:18px;
  background:rgba(255,253,249,.78);
  border:1px solid var(--line);
  border-radius:14px;
}
.usp-card h3 {
  margin:0 0 7px;
  font-family:Georgia, serif;
  font-size:20px;
  font-weight:500;
}
.usp-card p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.filter-panel {
  position: relative;
  padding: 16px;
  margin: 10px 0 22px;
  background: rgba(255,253,249,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(47,36,31,.04);
}
.filter-grid {
  display:grid;
  grid-template-columns: 1.4fr repeat(4, minmax(120px, .8fr));
  gap: 10px;
}
.board-filter-primary {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,.45fr);
  gap:10px;
}
.board-filter-panel .field { min-width:0; overflow-wrap:anywhere; }
.board-size-budget {
  min-width:0;
  margin:12px 0 0;
  padding:0;
  border:0;
}
.board-size-budget legend {
  padding:0;
  margin-bottom:8px;
  color:var(--ink);
  font-size:14px;
  font-weight:650;
}
.board-size-budget-fields {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.board-dimensions-guidance {
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}
.board-results-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 12px;
  margin-bottom:12px;
}
#boardResultsCount {
  flex:1 0 16ch;
  min-width:0;
  max-width:100%;
  color:var(--ink);
  font-size:14px;
  overflow-wrap:anywhere;
}
.board-results-toolbar .field {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  flex:0 1 300px;
  min-width:0;
  max-width:100%;
  margin-left:auto;
}
.board-results-toolbar .field label { margin:0; }
.board-results-toolbar .field select {
  flex:1 0 auto;
  min-width:0;
  width:min(100%,calc(12ch + 3em));
  max-width:100%;
}
.field label {
  display:block;
  margin:0 0 5px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.field input, .field select {
  width:100%;
  min-height:44px;
  height:auto;
  padding: 8px 11px;
  border:1px solid var(--line);
  border-color:var(--walnut-soft);
  border-color:color-mix(in srgb, var(--walnut-soft) 76%, white);
  border-radius:10px;
  background:white;
  color:var(--ink);
  outline:none;
}
.field input:focus, .field select:focus {
  border-color: var(--walnut-soft);
  outline: 2px solid var(--walnut-soft);
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(128,99,83,.12);
}
.filter-foot {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
}
.check {
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:var(--ink);
  font-weight:650;
}
.check input { width:17px; height:17px; accent-color:var(--walnut); }

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

/*
 * Board catalogue uses a denser layout than the other
 * card grids so larger inventories remain quick to scan.
 */
.board-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap:14px;
}
.card {
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: 0 7px 22px rgba(47,36,31,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.board-card {
  border-radius:14px;
  box-shadow:0 4px 14px rgba(47,36,31,.04);
}
.card-link { color:inherit; text-decoration:none; }
.media {
  aspect-ratio: 5/4;
  overflow:hidden;
  background:
    repeating-linear-gradient(8deg, rgba(255,255,255,.035) 0 3px, transparent 3px 16px),
    linear-gradient(135deg,#755341,#382820);
  position:relative;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f0e9;
}
.media-label {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.76);
  font-family:Georgia,serif;
  font-size:30px;
  letter-spacing:.02em;
}
.media:has(img) .media-label { display:none; }
.media.no-photo .media-label {
  align-content:center;
  gap:8px;
  padding:16px;
  text-align:center;
  font-family:inherit;
  font-size:13px;
  font-weight:750;
  letter-spacing:.01em;
  color:rgba(255,255,255,.86);
}
.no-photo-mark {
  display:block;
  font-family:Georgia,serif;
  font-size:34px;
  line-height:1;
  opacity:.82;
}
.card-body { padding:15px 16px 17px; }
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.card-badges {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.card-top .pill {
  font-size:13px;
  font-weight:600;
}
.project-card .card-top,
#itemResults .card-top {
  flex-wrap:wrap;
}
.card h3 { margin:0; font-size:18px; }
.species { margin:7px 0 5px; color:var(--muted); font-size:14px; }
.dimensions { margin:0; font-weight:750; letter-spacing:.01em; }
.price {
  margin-top: 13px;
  font-size: 24px;
  font-family:Georgia,serif;
}
.card-note {
  color:var(--muted);
  font-size:13px;
  margin: 9px 0 0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.board-card .card-body {
  padding:12px 13px 14px;
}
.board-card .card-top {
  gap:8px;
  flex-wrap:wrap;
  row-gap:4px;
}
.board-card .species, .board-card .dimensions { overflow-wrap:anywhere; }
.board-card h3 {
  font-size:16px;
}
.board-card .species {
  margin:5px 0 3px;
  font-size:13px;
}
.board-card .dimensions {
  font-size:13px;
  line-height:1.35;
}
.board-card .card-note {
  margin-top:6px;
  font-size:12px;
  -webkit-line-clamp:1;
}
.board-card .price {
  margin-top:9px;
  font-size:21px;
}
.board-card .badge {
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  gap:5px;
  padding:5px 7px;
  font-size:11px;
}
.board-card .badge::before {
  width:6px;
  height:6px;
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
  white-space:nowrap;
}
.badge::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.badge.available { color:var(--green); background:var(--green-bg); }
.badge.reserved { color:var(--amber); background:var(--amber-bg); }
.badge.sold, .badge.sold-out { color:var(--red); background:var(--red-bg); }

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid transparent;
  border-radius:12px;
  background:var(--walnut-dark);
  color:white;
  font-weight:780;
  text-decoration:none;
  cursor:pointer;
}
.button.secondary { color:var(--walnut-dark); background:white; border-color:var(--line); }
.button.ghost { color:var(--walnut); background:transparent; border-color:var(--line); }
.button:disabled, .button.disabled { opacity:.5; pointer-events:none; }

.detail {
  display:grid;
  grid-template-columns: minmax(0,1.35fr) minmax(320px,.8fr);
  gap:28px;
  align-items:start;
  padding: 34px 0 64px;
}
.detail > * { min-width:0; }
.gallery-main {
  aspect-ratio:5/4;
  background:linear-gradient(135deg,#755341,#382820);
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  position:relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f0e9;
}
.gallery-main .media-label { font-size:42px; }
.gallery-main[role="button"] { cursor:zoom-in; }
.gallery-main:focus-visible { outline:3px solid var(--walnut-soft); outline-offset:3px; }
/* Hide placeholder label when a real gallery image exists */
.gallery-main:has(img) .media-label {
  display: none;
}
.thumbs {
  min-width:0;
  max-width:100%;
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding-top:9px;
}
.thumb {
  flex:0 0 84px;
  height:64px;
  border:2px solid transparent;
  padding:0;
  overflow:hidden;
  border-radius:9px;
  background:#ddd;
  cursor:pointer;
}
.thumb.active { border-color:var(--walnut); }
.thumb:focus-visible { outline:2px solid var(--walnut-dark); outline-offset:-5px; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f0e9;
}
.media.photo-unavailable, .gallery-main.photo-unavailable, .thumb.photo-unavailable {
  background:var(--card);
}
.photo-unavailable > img { opacity:0; }
.photo-error {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:8px;
  color:var(--ink);
  font-size:13px;
  font-weight:750;
  line-height:1.2;
  text-align:center;
  overflow-wrap:anywhere;
  pointer-events:none;
}
.photo-error:empty { display:none; }
.thumb { position:relative; }
.thumb .photo-error { padding:2px; font-size:11px; line-height:1.1; }
.detail-panel {
  padding:24px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.detail-panel h1 {
  margin: 9px 0 2px;
  font-family:Georgia,serif;
  font-size:42px;
  font-weight:500;
}
.detail-panel .price { font-size:34px; margin: 18px 0; }
.spec-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  overflow:hidden;
  margin:18px 0;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:12px;
}
.spec {
  min-width:0;
  overflow-wrap:anywhere;
  padding:11px 12px;
  background:white;
}
.spec span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; font-weight:800; }
.spec strong { display:block; margin-top:2px; font-size:15px; }
.note-box {
  margin:16px 0;
  padding:13px 14px;
  color:var(--muted);
  background:#f7f1e9;
  border-radius:12px;
}
.detail-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }

.prose-card {
  max-width: 850px;
  overflow-wrap: anywhere;
  padding: 28px;
  margin-bottom: 24px;
  background: var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:none;
}
.prose-card h2 { font-family:Georgia,serif; font-size:28px; font-weight:500; margin-top:0; }
.prose-card h3 { margin-top:24px; }
.prose-card .about-subheading {
  font-family:inherit;
  font-size:1.17em;
  font-weight:700;
  margin:24px 0 1em;
}
.prose-card p, .prose-card li { color:var(--muted); }
.prose-card strong { color:var(--ink); }

/* Approved reading treatment for About and How to Buy only. */
:is(.about-page-prose, .buy-page-prose) > .prose-card {
  max-width: calc(70ch + 50px);
  padding: 24px;
  line-height: 1.65;
}
:is(.about-page-prose, .buy-page-prose) > .prose-card > p:first-child {
  margin-top: 0;
}
:is(.about-page-prose, .buy-page-prose) > .prose-card > p:last-child {
  margin-bottom: 0;
}
.about-page-prose > .prose-card .about-subheading {
  margin: 32px 0 10px;
}
@media (max-width: 620px) {
  :is(.about-page-prose, .buy-page-prose) > .prose-card {
    padding: 20px;
  }
  .about-page-prose > .prose-card .about-subheading {
    margin-top: 28px;
  }
}

.steps { padding-left:20px; }
@media (min-width: 921px) {
  .contact-page-prose > .prose-card {
    max-width: calc(70ch + 50px);
    padding: 24px;
    line-height: 1.65;
  }
  .contact-page-prose > .prose-card > p:first-child {
    margin-top: 0;
  }
  .contact-page-prose > .prose-card > p:last-child {
    margin-bottom: 0;
  }
}
.steps li { margin:10px 0; }

.project-card .media { aspect-ratio: 5/4; }
.project-media {
  width:100%;
  padding:0;
  border:0;
  display:block;
  text-align:inherit;
  cursor:zoom-in;
}
.project-media:focus-visible {
  outline:3px solid var(--walnut-soft);
  outline-offset:-3px;
}
.project-photo-count {
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:2;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:white;
  font-size:11px;
  font-weight:800;
  line-height:1;
  pointer-events:none;
}
.project-card h3 { font-family:Georgia,serif; font-size:23px; font-weight:500; }
.meta-line { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; color:var(--muted); font-size:12px; }
.pill { padding:5px 8px; background:#f1ebe4; border-radius:999px; }

.empty-state {
  padding: 42px 22px;
  text-align:center;
  border:1px dashed #cfc3b8;
  border-radius:var(--radius);
  color:var(--muted);
  background:rgba(255,255,255,.45);
}
.empty-state strong { display:block; color:var(--ink); font-family:Georgia,serif; font-size:24px; margin-bottom:4px; }

.loading-state {
  min-height:60vh;
  display:grid;
  place-items:center;
  align-content:center;
  color:var(--muted);
}
.spinner {
  width:34px;
  height:34px;
  border:3px solid var(--line);
  border-top-color:var(--walnut);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.site-footer {
  padding:32px 0;
  border-top:1px solid var(--line);
  background:#efe8df;
  color:var(--muted);
  font-size:13px;
}
.footer-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:30px;
}
.site-footer strong { color:var(--ink); font-family:Georgia,serif; font-size:20px; }
.site-footer p { margin:6px 0; }
.social-links {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.social-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
  color:var(--walnut-dark);
  font-size:13px;
  font-weight:750;
  text-decoration:none;
}
.social-icon {
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.social-link:hover {
  border-color:var(--walnut-soft);
  background:#f7f1e9;
}
.footer-social-links { margin-top:10px; }

.breadcrumbs { padding-top:22px; color:var(--muted); font-size:13px; }
.breadcrumbs a { text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; }

/* =========================================================
   Full-screen image viewer
   Only the main image on an individual board/item page
   opens the viewer.
   ========================================================= */

/* Zoom cursor only where images can open full-screen */
.gallery-main img,
.project-card .media img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox[hidden] {
  display: none;
}
.lightbox button:focus-visible { outline:2px solid white; outline-offset:4px; }

.lightbox img {
  max-width: 96vw;
  max-height: 94vh;
  width: auto;
  height: auto;

  object-fit: contain;
  object-position: center;

  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;

  transform-origin: center center;
  transition: transform 0.08s ease-out;

  cursor: zoom-in;
}

.lightbox img.is-zoomed {
  cursor: grab;
}

.lightbox img.is-dragging {
  cursor: grabbing;
  transition: none;
}
.lightbox.photo-unavailable img {
  width:min(80vw,900px);
  height:min(60vh,600px);
}
.lightbox .photo-error {
  position:fixed;
  inset:auto;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:max-content;
  max-width:calc(100vw - 128px);
  color:white;
  font-size:16px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 1002;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1002;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 750;
}

.lightbox-counter[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 1002;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.16);
  color: white;

  font-size: 32px;
  line-height: 1;

  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-help {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1001;

  transform: translateX(-50%);

  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.82);

  font-size: 12px;
  width: max-content;
  max-width: min(900px, calc(100vw - 24px));
  white-space: normal;
  text-align: center;

  pointer-events: none;
}

@media (max-width: 920px) {
  .header-inner { align-items:flex-start; flex-direction:column; gap:0; padding:12px 0 6px; }
  .main-nav { width:100%; }
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.search { grid-column:1/-1; }
  .board-filter-primary { grid-template-columns:minmax(0,1fr); }
  .board-size-budget-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .usp-grid { grid-template-columns:1fr; }
  .board-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .detail { grid-template-columns:minmax(0,1fr); }
  .detail-panel { position:static; }
}
@media (max-width: 620px) {
  .brand, .social-link { min-height:44px; }
  .lightbox-nav { width:44px; height:44px; font-size:34px; }
  .lightbox-prev { left:8px; }
  .lightbox-next { right:8px; }
  .lightbox-help {
    max-width:calc(100vw - 24px);
    white-space:normal;
    text-align:center;
  }
  .shell { width:min(100% - 22px,1180px); }
  .hero { padding-top:38px; }
  .hero h1 { font-size:46px; }
  .stats { grid-template-columns:1fr 1fr 1fr; }
  .stat { padding:11px 9px; }
  .stat strong { font-size:clamp(17px,5vw,21px); }
  .filter-grid { grid-template-columns:1fr 1fr; }
  .field label { font-size:12px; }
  .board-results-toolbar .field { flex-basis:auto; }
  @supports (field-sizing:content) {
    .board-results-toolbar .field select { field-sizing:content; width:auto; }
  }
  .check { min-height:44px; }
  .board-card .card-top { column-gap:4px; }
  .grid { grid-template-columns:1fr; }
  .board-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .board-card .card-body {
    padding:10px 10px 12px;
  }
  .board-card h3 {
    font-size:15px;
  }
  .board-card .species {
    font-size:13px;
  }
  .board-card .dimensions {
    font-size:13px;
  }
  .board-card .price {
    margin-top:7px;
    font-size:19px;
  }
  .board-card .badge {
    padding:4px;
    gap:2px;
    font-size:11px;
  }
  .filter-foot { align-items:flex-start; flex-direction:column; }
  .detail { padding-top:20px; }
  .detail-panel { padding:18px; }
  .detail-panel h1 { font-size:36px; }
  .spec-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .card, .lightbox img { transition:none; }
  .card:hover { transform:none; }
  .spinner { animation:none; }
}
