/* ═══════════════════════════════════════════════════════════════
   Fernbank Garden Centres
   A growers' almanac: pale lichen ground, deep bottle green ink,
   dahlia pink reserved for seasonal tags, ruled rows instead of cards.
   ═══════════════════════════════════════════════════════════════ */

@layer custom {
:root {
  /* Brand accent (Canvas live picker) */
  --cnvs-themecolor: #C2407A;
  --cnvs-themecolor-rgb: 194, 64, 122;

  /* Colour roles */
  --c-ground: #F5F6F1;
  --c-ground-2: #EAEDE4;
  --c-ink: #1C3A2E;
  --c-ink-2: #24463A;
  --c-muted: #4A5A4E;
  --c-accent: var(--cnvs-themecolor);
  --c-accent-ink: #A32E63;
  --c-accent-dark: #E58FB6;
  --c-line: #D9DED2;
  --c-paper: #FFFFFF;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;
  --band: var(--space-7);
  --band-compact: var(--space-6);
  --gutter: var(--space-4);

  /* Type
     Display sizes carry the drama; the text face stays small and quiet.
     13px is the body size the brief asked for; --fs-read is the size used
     for running paragraphs so the copy stays legible. */
  --fb-display: "Newsreader", Georgia, serif;
  --fb-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(52px, 6.2vw, 94px);
  --fs-h1: clamp(38px, 4.4vw, 60px);
  --fs-h2: clamp(40px, 5vw, 68px);
  --fs-h3: 21px;
  --fs-lead: 19px;
  --fs-read: 16px;
  --fs-body: 13px;
  --fs-small: 13px;
  --fs-label: 11px;

  /* Radius */
  --radius-s: 3px;
  --radius-m: 6px;
  --radius-arch: 999px 999px 6px 6px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --fb-container: 1320px;
  --fb-inset: 40px;

  /* Canvas overrides */
  --cnvs-body-font: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --cnvs-primary-font: var(--fb-text);
  --cnvs-secondary-font: var(--fb-display);
  --cnvs-body-font-family: var(--fb-text);
  --cnvs-body-font-size: 13px;
  --cnvs-body-line-height: 1.75;
  --cnvs-body-color: var(--c-ink);
  --cnvs-body-spacing: 1.5rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--fb-text);
  font-size: var(--fs-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: var(--fb-container); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fb-display);
  font-weight: 500;
  color: var(--c-ink);
  text-wrap: balance;
}

a {
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-line);
  transition: text-decoration-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
a:hover { text-decoration-color: var(--c-accent); color: var(--c-ink); }

::selection { background: var(--c-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.fb-workshops :focus-visible,
.fb-close :focus-visible,
.fb-standard :focus-visible,
.fb-address-band :focus-visible { outline-color: var(--c-ground); }

/* ── Shared type helpers ─────────────────────────────────── */

.fb-label {
  font-family: var(--fb-text);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 var(--space-4);
}
.fb-label-accent { color: var(--c-accent-ink); }

.fb-h2 {
  font-size: var(--fs-h2);
  line-height: 0.97;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 var(--space-6);
  max-width: 18ch;
}
.fb-h2-light { color: var(--c-ground); }

.fb-h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-1);
}

.fb-note {
  font-size: var(--fs-read);
  line-height: 1.65;
  color: var(--c-muted);
  margin: 0 0 var(--space-3);
  max-width: 46ch;
}

.fb-support {
  font-size: var(--fs-read);
  line-height: 1.65;
  color: var(--c-muted);
  margin: var(--space-6) 0 0;
  max-width: 42ch;
}

.fb-caption {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
  margin: var(--space-2) 0 0;
}

/* The seasonal tag: pink type, no chip, no border. */
.fb-tag {
  display: inline-block;
  font-family: var(--fb-text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-ink);
  padding: 0;
  line-height: 1.5;
}

/* ── Buttons ─────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--fb-text);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out),
              color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.button:active { transform: scale(0.97); }

.fb-btn {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-ground);
}
.fb-btn:hover {
  background: var(--c-ink-2);
  border-color: var(--c-ink-2);
  color: var(--c-ground);
  transform: translateY(2px);
  text-decoration: none;
}

.fb-btn-outline {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.fb-btn-outline:hover {
  background: var(--c-ink);
  color: var(--c-ground);
  transform: translateY(2px);
  text-decoration: none;
}

.fb-btn-invert {
  background: var(--c-ground);
  border-color: var(--c-ground);
  color: var(--c-ink);
}
.fb-btn-invert:hover {
  background: #fff;
  border-color: #fff;
  color: var(--c-ink);
  transform: translateY(2px);
  text-decoration: none;
}

.fb-btn-ghost {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
  min-height: 40px;
}
.fb-btn-ghost:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  text-decoration: none;
}

/* ── Media frames ────────────────────────────────────────── */

.fb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fb-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--c-ground-2);
}
.fb-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.fb-ratio-45 { aspect-ratio: 4 / 5; }
.fb-ratio-43 { aspect-ratio: 4 / 3; }
.fb-ratio-32 { aspect-ratio: 3 / 2; }
.fb-ratio-23 { aspect-ratio: 2 / 3; }
.fb-ratio-219 { aspect-ratio: 21 / 9; }
.fb-ratio-45 img, .fb-ratio-43 img, .fb-ratio-32 img,
.fb-ratio-23 img, .fb-ratio-219 img { width: 100%; height: 100%; object-fit: cover; }

/* ── Ruled ledger rows ───────────────────────────────────── */

.fb-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-ledger-row {
  --fb-row-y: 0px;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-body);
  transform: translateY(var(--fb-row-y));
  transition: transform 300ms var(--ease-out);
}
.fb-ledger-row:last-child { border-bottom: 0; }

/* Slow reveal on the plant rows. Each row rises and settles in turn, and the
   stagger replays whenever the month toggle rewrites the list. The lift is
   driven through --fb-row-y so the hover state stays independent. */
.fb-guide-cols .fb-ledger-row,
.fb-stock-row {
  --fb-row-y: 0px;
  animation: fb-plant-in 620ms var(--ease-out) both;
}
.fb-guide-cols .fb-ledger-row:nth-child(1),
.fb-stock-row:nth-child(1) { animation-delay: 40ms; }
.fb-guide-cols .fb-ledger-row:nth-child(2),
.fb-stock-row:nth-child(2) { animation-delay: 130ms; }
.fb-guide-cols .fb-ledger-row:nth-child(3),
.fb-stock-row:nth-child(3) { animation-delay: 220ms; }
.fb-guide-cols .fb-ledger-row:nth-child(4),
.fb-stock-row:nth-child(4) { animation-delay: 310ms; }
.fb-guide-cols .fb-ledger-row:nth-child(5),
.fb-stock-row:nth-child(5) { animation-delay: 400ms; }
.fb-guide-cols .fb-ledger-row:nth-child(6),
.fb-stock-row:nth-child(6) { animation-delay: 490ms; }
@keyframes fb-plant-in {
  from { opacity: 0; --fb-row-y: 10px; }
  to { opacity: 1; --fb-row-y: 0px; }
}
.fb-stock-row:hover { --fb-row-y: -2px; }
.fb-ledger-name {
  flex: 0 1 auto;
  color: var(--c-ink);
  position: relative;
}
/* dotted leader between name and value */
.fb-ledger-name::after {
  content: "";
  position: absolute;
  bottom: 0.34em;
  left: 100%;
  right: -0.4em;
  border-bottom: 1px dotted var(--c-line);
}
.fb-ledger-row:hover .fb-ledger-name::after { border-bottom-color: var(--c-ink); }
.fb-ledger-row:hover { --fb-row-y: -2px; }

.fb-ledger-val {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: var(--space-3);
  color: var(--c-muted);
  font-size: var(--fs-read);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  text-align: right;
}
.fb-ledger-lg .fb-ledger-row { padding: var(--space-3) 0; }
.fb-ledger-lg .fb-ledger-val { font-size: var(--fs-body); color: var(--c-ink); }
.fb-ledger-row-lead { padding: var(--space-4) 0 var(--space-5); }
.fb-ledger-row-lead .fb-ledger-name {
  font-family: var(--fb-display);
  font-size: var(--fs-h3);
  line-height: 1.2;
}
.fb-ledger-row-lead .fb-ledger-val {
  font-family: var(--fb-display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.fb-ledger-row-lead .fb-ledger-name::after { bottom: 0.28em; }

/* ── Bands ───────────────────────────────────────────────── */

.fb-band { padding: var(--band) 0; }
.fb-guide { padding-bottom: var(--band); }
.fb-standard { background: var(--c-ground-2); }
.fb-workshops { background: var(--c-ink); }
.fb-centres { background: var(--c-ground-2); padding-bottom: 0; }
.fb-finder { position: relative; }
.fb-friends { overflow: hidden; }

/* ═══ 1. Hero ═══════════════════════════════════════════════ */

.fb-header {
  background: var(--c-ground);
  border-bottom: 1px solid var(--c-line);
}
#header.fb-header #header-wrap { background: var(--c-ground); }
#header.fb-header.sticky-header { box-shadow: 0 1px 0 var(--c-line); }

/* A fixed, even bar height with a single hairline under it. */
#header.fb-header .header-row {
  min-height: 68px;
  align-items: center;
}

/* Lockup header: logo left, menu right, action hard right.
   The DOM keeps Canvas's fixed order (logo, misc, trigger, nav); the visual
   order is set here, inside the desktop breakpoint only. */
@media (min-width: 992px) {
  #header.fb-header .header-row { flex-wrap: nowrap; }
  #header.fb-header #logo { order: 1; }
  #header.fb-header .fb-nav { order: 2; margin-left: auto; }
  #header.fb-header .header-misc { order: 3; margin-left: var(--space-4); }
  #header.fb-header .primary-menu-trigger { display: none; }
}

/* The lockup carries the wordmark only: the descriptor lives with the
   footer lockup, where it has room to be read. */
.fb-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.fb-logo > a { display: block; line-height: 0; text-decoration: none; }

.fb-nav .cnvs-menu-link {
  font-family: var(--fb-text);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  text-decoration: none;
}
.fb-nav .cnvs-menu-link:hover { color: var(--c-accent-ink); text-decoration: none; }

.fb-hero {
  background: var(--c-ground);
  padding-top: var(--space-6);
  position: relative;
  overflow: hidden;
}
.fb-hero .container { position: relative; z-index: 1; }

.fb-hero-copy {
  position: relative;
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
  padding-right: var(--space-5);
}
.fb-hero-title {
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-5);
  max-width: 9ch;
}
.fb-hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 var(--space-5);
  max-width: 38ch;
}
.fb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.fb-hero-actions .button { min-width: 168px; }

.fb-stem {
  position: absolute;
  left: -14px;
  bottom: var(--space-3);
  width: 108px;
  height: 198px;
  color: var(--c-ink);
  opacity: 0.26;
  pointer-events: none;
}

.fb-hero-media {
  display: flex;
  align-items: stretch;
  padding-left: 0;
}
.fb-hero-figure {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-m) 0 0 var(--radius-m);
  background: var(--c-ground-2);
}
.fb-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  animation: fb-settle 900ms var(--ease-out) both;
}
@keyframes fb-settle {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}
.fb-hero-copy { animation: fb-rise 700ms var(--ease-out) both; }
@keyframes fb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Month rule */
.fb-monthbar {
  border-top: 1px solid var(--c-line);
  background: var(--c-ground);
  position: relative;
  z-index: 2;
}
.fb-monthbar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) 0;
}
.fb-monthbar-label {
  flex: 0 0 auto;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.fb-months {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.fb-months::-webkit-scrollbar { display: none; }

.fb-month {
  position: relative;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  padding: var(--space-2) var(--space-2);
  min-height: 40px;
  min-width: 44px;
  font-family: var(--fb-text);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}
.fb-month::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 300ms var(--ease-out);
}
.fb-month:hover { color: var(--c-ink); }
.fb-month.is-current { color: var(--c-accent-ink); }
.fb-month.is-current::after { background: var(--c-accent); }
.fb-month:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* ═══ 2. Planting guide ═════════════════════════════════════ */

.fb-guide-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  padding-top: var(--space-3);
}
/* All three columns start on the same line. */
.fb-guide-col:nth-child(2),
.fb-guide-col:nth-child(3) { padding-top: var(--space-3); }

.fb-guide-head {
  font-family: var(--fb-text);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--c-ink);
}
.fb-guide-sub {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-muted);
  margin: var(--space-3) 0 var(--space-3);
  min-height: 3.2em;
}
.fb-guide-col .fb-ledger-val { background: transparent; }

/* Seasonal crossfade: the rewritten rows fade up from a soft dim. */
.fb-crossfade { animation: fb-crossfade 520ms var(--ease-out) both; }
@keyframes fb-crossfade {
  from { opacity: 0.24; }
  to { opacity: 1; }
}
.fb-guide-cols.fb-crossfade { animation-name: fb-crossfade; }

/* ═══ 3. The same standard ══════════════════════════════════ */

/* Photo and figures sit side by side on the same grid columns with a clean
   gutter between them: no overlap, no notch cut into the picture. */
.fb-standard-media { display: flex; }
.fb-standard-media .fb-figure { width: 100%; }
.fb-standard-media .fb-frame {
  flex: 1 1 auto;
  min-height: 520px;
}
.fb-standard-media .fb-frame img { height: 100%; min-height: 520px; }
.fb-standard-figs {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
  margin-left: 0;
}
.fb-standard-figs .fb-label { margin-bottom: var(--space-5); }
.fb-fig {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--c-line);
}
.fb-fig:first-of-type { padding-top: var(--space-2); }
.fb-fig-num {
  font-family: var(--fb-display);
  font-size: clamp(48px, 5.2vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  min-width: 1.6em;
}
.fb-fig-label {
  font-size: var(--fs-read);
  line-height: 1.5;
  color: var(--c-muted);
}

/* ═══ 4. Plant finder ═══════════════════════════════════════ */

.fb-panel {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  max-width: 420px;
}
.fb-field { margin-bottom: var(--space-3); }
.fb-field:last-of-type { margin-bottom: var(--space-3); }
.fb-field label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}
.fb-select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 var(--space-3);
  font-family: var(--fb-text);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C6B60' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  transition: border-color 200ms var(--ease-out);
}
.fb-select:hover { border-color: var(--c-ink); }
.fb-select:focus { border-color: var(--c-ink); outline: 2px solid rgba(28, 58, 46, 0.2); outline-offset: 2px; }

.fb-count {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-line);
}

.fb-stock {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-stock-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--c-line);
  transform: translateY(var(--fb-row-y, 0px));
  transition: background-color 300ms var(--ease-out), padding-left 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.fb-stock-row:hover {
  background: var(--c-ground-2);
  padding-left: var(--space-2);
}
.fb-stock-name {
  font-size: var(--fs-body);
  color: var(--c-ink);
  font-weight: 500;
}
.fb-stock-meta {
  font-size: var(--fs-small);
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.fb-stock-price {
  margin-left: auto;
  font-size: var(--fs-body);
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-left: var(--space-3);
}
.fb-stock-price::before {
  content: "";
  position: absolute;
  left: 0;
  right: var(--space-3);
  top: 0.62em;
  border-bottom: 1px dotted var(--c-line);
}

.fb-finder-photo { margin-top: var(--space-6); }

/* ═══ 5. Workshops ══════════════════════════════════════════ */

/* Canvas's .dark rules set white links and buttons; these re-assert the
   site's own colours with matching specificity. */
.fb-workshops.dark a,
.fb-close.dark a,
.fb-address-band.dark a { color: var(--c-ground); text-decoration-color: rgba(245, 246, 241, 0.35); }
.fb-workshops.dark a:hover,
.fb-close.dark a:hover,
.fb-address-band.dark a:hover { color: var(--c-ground); text-decoration-color: var(--c-accent); }
.fb-workshops.dark .button,
.fb-close.dark .button { color: var(--c-ink); }
.fb-close.dark .fb-btn-invert,
.fb-workshops.dark .fb-btn-invert { color: var(--c-ink); }
.fb-close.dark .fb-btn-invert:hover,
.fb-workshops.dark .fb-btn-invert:hover { color: var(--c-ink); }

.fb-workshops .fb-label { color: var(--c-accent-dark); }
.fb-close .fb-label-accent,
.fb-address-band .fb-label-accent { color: var(--c-accent-dark); }
.fb-workshops .fb-h2 { max-width: 15ch; }

.fb-workshop-rows {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}
.fb-ws {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "desc price"
    "meta price";
  gap: 0 var(--space-3);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(245, 246, 241, 0.18);
}
.fb-ws-name {
  grid-area: name;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--c-ground);
}
.fb-ws-desc {
  grid-area: desc;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(245, 246, 241, 0.72);
}
.fb-ws-meta {
  grid-area: meta;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(245, 246, 241, 0.72);
}
.fb-ws-price {
  grid-area: price;
  align-self: start;
  font-family: var(--fb-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ground);
  font-variant-numeric: tabular-nums;
  position: relative;
  padding-left: var(--space-4);
}
.fb-ws-price::before {
  content: "";
  position: absolute;
  left: 0;
  right: var(--space-4);
  top: 50%;
  border-bottom: 1px dotted rgba(245, 246, 241, 0.32);
}
.fb-ws-cta { margin-bottom: var(--space-5); }

/* Calendar */
.fb-cal {
  border: 1px solid rgba(245, 246, 241, 0.22);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: rgba(245, 246, 241, 0.03);
}
.fb-cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(245, 246, 241, 0.22);
}
.fb-cal-month {
  font-family: var(--fb-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  color: var(--c-ground);
}
.fb-cal-note {
  font-size: var(--fs-small);
  color: rgba(245, 246, 241, 0.72);
}
.fb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.fb-cal-dow {
  padding: var(--space-2) var(--space-2);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 246, 241, 0.72);
  border-bottom: 1px solid rgba(245, 246, 241, 0.22);
  border-right: 1px solid rgba(245, 246, 241, 0.14);
}
.fb-cal-dow:nth-child(7n) { border-right: 0; }
.fb-cal-grid-days { border-top: 0; }

/* Fallback session list, shown until the live calendar grid is built. */
.fb-cal-fallback {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-cal-fallback li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(245, 246, 241, 0.14);
}
.fb-cal-fb-key {
  flex: 0 0 auto;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  min-width: 8ch;
}
.fb-cal-fb-val {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(245, 246, 241, 0.82);
}
.fb-cal-cell {
  position: relative;
  min-height: 92px;
  padding: var(--space-2);
  border-right: 1px solid rgba(245, 246, 241, 0.14);
  border-bottom: 1px solid rgba(245, 246, 241, 0.14);
  transition: background-color 300ms var(--ease-out);
}
.fb-cal-grid-days .fb-cal-cell:nth-child(7n) { border-right: 0; }
.fb-cal-cell-blank { background: rgba(28, 58, 46, 0.35); }
.fb-cal-cell.is-sunday { background: rgba(28, 58, 46, 0.4); }
.fb-cal-cell:hover { background: rgba(245, 246, 241, 0.08); }
.fb-cal-num {
  display: block;
  font-size: var(--fs-small);
  color: rgba(245, 246, 241, 0.72);
  font-variant-numeric: tabular-nums;
}
.fb-cal-session {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--c-ground);
  background: var(--c-ink-2);
  border-radius: var(--radius-s);
  padding: var(--space-1) var(--space-2);
}
.fb-cal-photo {
  margin: var(--space-2) 0 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.fb-cal-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ═══ 6. Bulk supply ════════════════════════════════════════ */

.fb-supply-photo { padding-left: var(--space-5); }
.fb-total {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--c-ink);
  margin: var(--space-5) 0 var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--c-ink);
}
.fb-supply .fb-note { max-width: 44ch; }

/* ═══ 7. Cafe ═══════════════════════════════════════════════ */

.fb-cafe { position: relative; background: var(--c-ink); }
.fb-cafe-figure { margin: 0; }
.fb-cafe-figure img {
  display: block;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  object-fit: cover;
  transition: filter 600ms var(--ease-out);
}
.fb-cafe:hover .fb-cafe-figure img { filter: brightness(0.96); }
.fb-cafe .container { position: relative; }
.fb-cafe-panel {
  position: relative;
  margin-top: -72px;
  background: rgba(245, 246, 241, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-m);
  padding: var(--space-5);
  max-width: 560px;
}
.fb-cafe-panel .fb-h2 { max-width: 16ch; margin-bottom: var(--space-4); }
.fb-menu-lines {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.fb-menu-lines li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-body);
  color: var(--c-ink);
}
.fb-menu-lines li:first-child { border-top: 1px solid var(--c-line); }
.fb-cafe-panel .fb-caption { margin-top: var(--space-3); }

/* ═══ 8. Centres ═════════════════════════════════════════════ */

.fb-centre-row { row-gap: var(--gutter); }
.fb-centre-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: var(--space-4);
  height: 100%;
  transition: border-color 300ms var(--ease-out);
}
.fb-centre-card:hover { border-color: var(--c-ink); }
.fb-centre-card:hover .fb-centre-photo img { transform: scale(1.03); }
.fb-centre-photo { margin-bottom: var(--space-3); }
.fb-centre-town {
  font-size: var(--fs-small);
  color: var(--c-muted);
  margin: 0 0 var(--space-3);
}
.fb-centre-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-centre-facts li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.fb-fact-key {
  display: block;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.fb-fact-val { color: var(--c-ink); }
.fb-hours-strip {
  margin: var(--space-3) 0 0;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius-s);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-align: center;
}

.fb-address-band {
  background: var(--c-ink);
  margin-top: var(--band);
  padding: var(--band-compact) 0;
}
.fb-addresses {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.fb-addresses li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(245, 246, 241, 0.18);
  font-size: var(--fs-body);
  color: rgba(245, 246, 241, 0.85);
}
.fb-addresses strong { color: var(--c-ground); font-weight: 500; }
.fb-address-note {
  font-size: var(--fs-body);
  color: var(--c-ground);
  margin: 0;
}
.fb-map {
  border-radius: var(--radius-m);
  overflow: hidden;
}
.fb-map img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

/* ═══ 9. Fernbank Friends ═══════════════════════════════════ */

.fb-friends-price {
  font-family: var(--fb-display);
  font-size: clamp(52px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin: 0 0 var(--space-6);
  font-variant-numeric: tabular-nums;
}
.fb-card-object {
  max-width: 280px;
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.fb-benefits { margin-bottom: var(--space-6); }
.fb-benefits .fb-ledger-val { background: transparent; }
.fb-friends-cta { margin-top: var(--space-3); }

/* Gift cards, the other half of the offer */
.fb-giftcard {
  border-top: 1px solid var(--c-line);
  padding-top: var(--space-5);
  margin-bottom: var(--space-6);
}
.fb-giftcard .fb-h3 { margin: 0 0 var(--space-2); }
.fb-giftcard .fb-note { max-width: 62ch; margin: 0 0 var(--space-4); }
.fb-giftcard-values { max-width: 720px; }
.fb-giftcard-values .fb-ledger-name {
  font-family: var(--fb-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}
.fb-giftcard-values .fb-ledger-val {
  background: transparent;
  font-size: var(--fs-read);
}

/* ═══ 10. Closing ════════════════════════════════════════════ */

.fb-close {
  background: var(--c-ink);
  padding: var(--band) 0;
}
.fb-wordmark {
  font-family: var(--fb-display);
  font-size: clamp(60px, 12.2vw, 176px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--c-ground);
  margin: 0 0 var(--space-6);
  white-space: nowrap;
}
.fb-close .fb-h2 { max-width: 20ch; }
.fb-close-cta { margin-bottom: var(--space-6); }
.fb-phone {
  font-family: var(--fb-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--c-ground);
  margin: 0;
}
.fb-close-right { text-align: right; }
.fb-close-centres {
  font-size: var(--fs-body);
  color: rgba(245, 246, 241, 0.7);
  margin: 0 0 var(--space-4);
}
.fb-close-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-close-links li { padding: var(--space-1) 0; }
.fb-close-links a {
  color: var(--c-ground);
  text-decoration-color: rgba(245, 246, 241, 0.35);
}
.fb-close-links a:hover { text-decoration-color: var(--c-accent); color: var(--c-ground); }

/* ═══ 11. Footer ═════════════════════════════════════════════ */

.fb-footer { background: var(--c-ground); }
#footer.fb-footer { --cnvs-footer-bg: var(--c-ground); color: var(--c-ink); }
#footer.fb-footer .footer-widgets-wrap a { color: var(--c-ink); text-decoration-color: var(--c-line); }
#footer.fb-footer .footer-widgets-wrap a:hover { color: var(--c-accent-ink); text-decoration-color: var(--c-accent); }
#footer.fb-footer #copyrights { background: var(--c-ground); color: var(--c-muted); }
#footer.fb-footer #copyrights a { color: var(--c-ink); text-decoration-color: var(--c-line); }
#footer.fb-footer #copyrights a:hover { color: var(--c-accent-ink); }

.fb-visit-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  padding: var(--space-6);
  margin-top: calc(var(--band-compact) * -1);
  position: relative;
  z-index: 2;
}
.fb-footer-centres { margin-top: var(--space-4); }
.fb-footer-centres {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-footer-centres li {
  padding: var(--space-1) 0;
  font-size: var(--fs-body);
  color: var(--c-ink);
}
.fb-footer-head {
  font-family: var(--fb-text);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 var(--space-4);
}
.fb-footer-links,
.fb-footer-details {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fb-footer-links li,
.fb-footer-details li {
  padding: var(--space-2) 0;
  font-size: var(--fs-body);
  color: var(--c-muted);
}
.fb-footer-links a { color: var(--c-ink); }

.fb-hours-board {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-line);
}
.fb-hours-date {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 var(--space-3);
}
.fb-hours-board ul { list-style: none; margin: 0; padding: 0; }
.fb-hours-board li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.fb-hours-board li:last-child { border-bottom: 0; }
.fb-hours-board li span:first-child {
  color: var(--c-ink);
  font-weight: 500;
  flex: 0 0 auto;
}
.fb-hours-board li span:last-child { color: var(--c-muted); text-align: right; }

.fb-footer-legal { font-size: var(--fs-small); color: var(--c-muted); }

/* ═══ Responsive ═════════════════════════════════════════════ */

@media (max-width: 1199.98px) {
  .fb-hero-title { font-size: clamp(52px, 6.2vw, 76px); }
  .fb-hero-copy { padding-top: var(--space-6); }
}

@media (max-width: 991.98px) {
  :root { --band: 56px; --band-compact: 36px; --gutter: 16px; }

  /* Phones keep Canvas's bar: logo left, action and menu button right. */
  #header.fb-header .header-row { flex-wrap: wrap; }
  #header.fb-header #logo { order: 1; }
  #header.fb-header .header-misc { order: 2; margin-left: auto; }
  #header.fb-header .primary-menu-trigger { order: 3; display: block; margin-left: var(--space-3); }
  #header.fb-header .fb-nav { order: 4; }

  .fb-hero { padding-top: var(--space-5); }
  .fb-hero-copy { padding-top: var(--space-5); padding-right: 0; }
  .fb-hero-title { max-width: 12ch; }
  .fb-hero-figure { border-radius: var(--radius-m); }
  .fb-hero-figure img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .fb-hero-media { padding-left: 15px; padding-right: 15px; }
  .fb-stem { display: none; }

  .fb-guide-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-guide-col:nth-child(2), .fb-guide-col:nth-child(3) { padding-top: 0; }
  .fb-guide-col:nth-child(3) { grid-column: 1 / -1; }

  .fb-standard-media .fb-frame { border-radius: var(--radius-m); min-height: 0; flex: 0 0 auto; }
  .fb-standard-media .fb-frame img { min-height: 0; aspect-ratio: 3 / 2; }
  .fb-standard-figs { padding-left: 15px; margin-left: -15px; }

  .fb-panel { max-width: none; }
  .fb-finder-photo { margin-top: var(--space-5); }

  .fb-cal { margin-top: var(--space-5); }
  .fb-cal-cell { min-height: 76px; }

  .fb-supply-photo { padding-left: 15px; margin-top: var(--space-5); }

  .fb-cafe-panel { max-width: none; margin-top: -48px; }

  .fb-close-right { text-align: left; margin-top: var(--space-5); }
  .fb-close-links { margin-top: var(--space-3); }

  .fb-visit-card { margin-top: -32px; padding: var(--space-5); }
  .fb-footer-links, .fb-footer-details { margin-bottom: var(--space-4); }
}

@media (max-width: 575.98px) {
  :root { --band: 48px; --band-compact: 32px; }

  .fb-logo-desc { font-size: 8.5px; letter-spacing: 0.1em; }
  .fb-header-cta { display: none; }

  .fb-hero-title { font-size: 44px; max-width: 11ch; }
  .fb-hero-lead { font-size: 16px; }
  .fb-hero-actions { flex-direction: column; align-items: stretch; }
  .fb-hero-actions .button { width: 100%; min-width: 0; }

  .fb-monthbar-inner { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .fb-months { width: 100%; justify-content: flex-start; gap: var(--space-2); }
  .fb-month { min-width: 40px; padding: var(--space-2); }

  .fb-guide-cols { grid-template-columns: 1fr; }
  .fb-guide-col:nth-child(3) { grid-column: auto; }
  .fb-guide-sub { min-height: 0; }

  .fb-fig { flex-direction: column; gap: var(--space-1); }
  .fb-fig:first-of-type { padding-top: var(--space-4); }

  .fb-stock-row { flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
  .fb-stock-meta { flex-basis: 100%; order: 3; }

  .fb-cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-cal-dow { display: none; }
  .fb-cal-cell { min-height: 64px; }

  .fb-cafe-figure img { height: 46vh; min-height: 280px; }
  .fb-cafe-panel { margin-top: -32px; padding: var(--space-4); }

  .fb-centre-card { padding: var(--space-3); }

  .fb-friends-price { font-size: 52px; }
  .fb-card-object { max-width: 100%; }
  .fb-wordmark { font-size: 46px; white-space: normal; }
  .fb-phone { font-size: 21px; }
  .fb-visit-card { padding: var(--space-4); }
  .fb-hours-board li { flex-direction: column; gap: 0; }
  .fb-hours-board li span:last-child { text-align: left; }
}

/* ═══ Motion preferences ═════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fb-hero-figure img, .fb-hero-copy { opacity: 1; transform: none; }
  .fb-crossfade { opacity: 1; }
}

/* ═══ Print ══════════════════════════════════════════════════ */

@media print {
  .fb-header, .fb-close, .fb-monthbar { display: none; }
  .fb-band { padding: 12px 0; }
}

/* ── CanvasBuilder QA: contrast fixes (WCAG AA) ── */
html body #cafe p.fb-note { color: #58665b; }
html body #cafe p.fb-caption { color: #58665b; }
/* ── end QA contrast fixes ── */

/* ---- inline overrides ---- */
:where(img[width][height]){height:auto}

.content-wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.section {
  margin-top: 0;
  margin-bottom: 0;
}

#copyrights a:not(.button) { text-decoration: underline !important; text-underline-offset: 0.2em; }

.fb-guide-col .fb-ledger-val { flex: 0 1 auto; min-width: 0; }
#header-wrap #logo.fb-logo img { width: auto; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .fb-logo-desc { display: none; }
}
@media (max-width: 991.98px) {
  #header-wrap #logo.fb-logo img { height: 48px; }
  #logo.fb-logo { flex: 0 1 auto; min-width: 0; }
  .fb-logo-desc { max-width: 12em; line-height: 1.3; }
  .fb-standard-figs { padding-left: 0; margin-left: 0; }
}
@media (max-width: 575.98px) {
  #header-wrap #logo.fb-logo img { height: 40px; }
}
@media (max-width: 575.98px) {
  .fb-hero-actions .button { margin-left: 0; margin-right: 0; }
}
}
