/* Stonehenge: the font in the family's logo and printed material (they knew it as
   Kelt). From dafont.com; a 1993 Fontographer file with no maker or licence named,
   and no embedding restriction in the font itself. Used only for the name.
   Uncial Antiqua (SIL Open Font License, assets/fonts/uncial-antiqua-LICENSE.txt)
   is the free stand-in if Stonehenge ever has to come off. */
@font-face {
  font-family: 'Stonehenge';
  src: url('assets/fonts/stonehenge.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Uncial Antiqua';
  src: url('assets/fonts/uncial-antiqua-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ============================================================
   MacIsaac Kiltmakers — design tokens & base styles
   ------------------------------------------------------------
   The React prototype applies colour and type through JS objects
   (PALETTES / TYPE_PAIRS in screens.jsx) because the Tweaks panel
   swaps them live. This file is the same system expressed as CSS
   custom properties — use it as the source of truth when you
   rebuild in a real framework, and drop the JS objects.

   Default theme = Stone & Heather + Marcellus/Spectral.
   Switch by setting data-palette / data-type on <html>.
   ============================================================ */

:root {
  /* ---- palette: Stone & Heather (default) ---- */
  --ink: #1c1820;         /* near-black ground; dark sections, body text */
  --paper: #ece8e8;       /* page background */
  --paper-warm: #dcd6dc;  /* alternating band background */
  --accent: #4a3a5e;      /* links, small emphasis */
  --buy: #a8489a;         /* Add to Cart buttons: the logo's thistle fuchsia, a shade deeper so white text reads (5.2:1) */
  --buy-dark: #8d3a81;    /* the same, on hover */
  /* The logo's two greens (assets/logo/mark.png). Fuchsia is kept for the buttons
     that buy or send (client, Oct 2026); highlights use green instead. */
  --logo-green: #516f3c;        /* the logo's main leaf green; white text on it reads at 5.7:1 */
  --logo-green-light: #7ea368;  /* the logo's lighter leaf green; reads on the black header at 6.6:1 */
  --accent-2: #7a4a4a;    /* secondary emphasis */
  --brass: #9a7a4a;       /* rules, eyebrow text, price */
  --rule: #b8a8b4;        /* 1px hairline borders */
  --muted: #6b5e6e;       /* secondary body copy */

  /* ---- type ---- */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-brand: 'Stonehenge', 'Uncial Antiqua', 'Marcellus', serif; /* the name "MacIsaac Kiltmakers", in the logo's font */
  --hdr-bg: #121014;     /* header: almost black (client, Oct 2026) */

  /* Type scale (px). Display sizes are fluid in the prototype via
     clamp(); the values here are the desktop end of each ramp. */
  --fs-hero: 84px;        /* h1, hero headline — display, 1.02 line-height */
  --fs-h2: 52px;          /* section headline — display */
  --fs-h3: 30px;          /* card / door title — display */
  --fs-lead: 22px;        /* intro paragraph — body, 1.6 */
  --fs-body: 18px;        /* body copy — body, 1.7 (was 17; client found it small) */
  --fs-small: 15px;       /* captions, meta */
  --fs-eyebrow: 12px;     /* mono, uppercase, 0.18em tracking */

  /* ---- spacing ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 120px;      /* vertical rhythm of a full section */

  /* ---- geometry ---- */
  --radius: 0;            /* the design is deliberately square-cornered */
  --hairline: 1px;
  --max-width: 1240px;    /* content column cap */
  /* THE page side margin (client, 28 Oct 2026: was a fixed 32px and felt stretched).
     --gutter grows with the window; --page-max caps how wide the content gets, so on a
     big screen the margin grows instead. Every page block, the header and the footer use
     --pad-x for their left and right padding, so all content shares one left and one
     right edge. --sbw is the scrollbar's width, written by TopBar (screens.jsx). */
  --gutter: clamp(32px, 4.5vw, 72px);
  --page-max: 1320px;
  --sbw: 0px;
  --pad-x: max(var(--gutter), calc((100vw - var(--sbw) - var(--page-max)) / 2));
  /* THE space above and below each block of a page (Matt, 7 Nov 2026: "use the margins from
     Family Businesses for all of them"). Title blocks (.page-hero) keep their own. */
  --sec-top: 56px;
  --sec-bot: 60px;
  --hdr-h: 155px;         /* fallback only — the header measures itself at runtime
                             (ResizeObserver in TopBar) and writes the real value,
                             ~159px at desktop, onto <html> as --hdr-h. Anything
                             sticky below the header must read this same name. */

  /* ---- motion ---- */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur-fast: .18s;
  --dur: .28s;
}

/* ---- alternate palettes ---- */
html[data-palette="slatebrass"] {
  --ink: #0e1620; --paper: #ebe6dc; --paper-warm: #d8d2c4;
  --accent: #1f2a3a; --accent-2: #b08a3a; --brass: #b08a3a;
  --rule: #a89c84; --muted: #5a6471;
}
html[data-palette="gallery"] {
  --ink: #15110d; --paper: #ffffff; --paper-warm: #f5f3ee;
  --accent: #1d3a2c; --accent-2: #6b1f1f; --brass: #9c7a2c;
  --rule: #e2ddd0; --muted: #7a7066;
}
html[data-palette="thistle"] {
  --ink: #2a2436; --paper: #ffffff; --paper-warm: #f0eef4;
  --accent: #5a4a78; --accent-2: #4a6e54; --brass: #7a5e9a;
  --rule: #d8d2e0; --muted: #6e6478;
}

/* ---- alternate type pairings ---- */
html[data-type="cormorant_spectral"] { --font-display: 'Cormorant Garamond', 'Times New Roman', serif; --font-body: 'Spectral', Georgia, serif; }
html[data-type="playfair_lora"]      { --font-display: 'Playfair Display', serif; --font-body: 'Lora', Georgia, serif; }
html[data-type="garamond_workSans"]  { --font-display: 'EB Garamond', 'Times New Roman', serif; --font-body: 'Work Sans', system-ui, sans-serif; }
html[data-type="spectral_inter"]     { --font-display: 'Spectral', Georgia, serif; --font-body: 'Inter Tight', system-ui, sans-serif; }

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  /* Medium weight, and the browser's normal text rendering (no "antialiased"
     thinning): the client found the regular weight too thin to read comfortably.
     Headings keep their own weight (h1–h4 set 400 below). */
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  text-wrap: pretty;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }
h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0 0 1em; }
img { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}

/* ============================================================
   Recurring patterns
   ============================================================ */

/* Mono, uppercase, wide-tracked label above a headline. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Add to Cart (and the necktie's Choose your tartan): one bright, filled button
   everywhere, in the logo's fuchsia, so buying is always obvious. */
.buy-btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--buy); color: #ffffff;
  font-family: var(--font-mono); font-weight: 600; text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease);
}
.buy-btn:hover, .door:hover .buy-btn { background: var(--buy-dark); }
.buy-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Footer links that go to a page (FOOTER_LINKS in screens.jsx). They look like the
   plain-text ones beside them until hovered, then turn the logo's light green. */
.ftr-link {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.ftr-link:hover, .ftr-link:focus-visible { color: var(--logo-green-light); text-decoration-color: currentColor; }

/* Links inside FAQ answers (faq.jsx): buttons that read as underlined words in the sentence. */
.faq-link { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.faq-link:hover, .faq-link:focus-visible { text-decoration-thickness: 2px; }
/* Footer Facebook buttons (Visit our Facebook page, Share on Facebook). The about column
   spans two grid rows, so the buttons take the open space under the three link columns and
   line up with the bottom of the about paragraph. Outline buttons that turn the logo's
   light green on hover. */
.ftr-about { grid-row: 1 / span 2; }
.ftr-social { grid-column: 2 / -1; align-self: end; display: flex; flex-wrap: wrap; gap: 16px 20px; }
.ftr-btn { display: inline-block; text-decoration: none; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.ftr-btn:hover, .ftr-btn:focus-visible { color: var(--logo-green-light); border-color: var(--logo-green-light); opacity: 1; }
/* "Website by Pipeworks" credit under the legal line: small, grey and quiet. */
.ftr-credit { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 0 var(--pad-x) 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.45; }
.ftr-credit-mark { display: inline-flex; }
/* 14.33px tall makes the PIPEWORKS letters the same height as the 11px capitals of "Website by"
   (both about 8px); the bass drone stands taller, as it should. Baselines line up. overflow visible
   and the extra room in the viewBox keep the round O and S from being clipped at the bottom. */
.ftr-credit-mark svg { display: block; height: 14.33px; width: auto; overflow: visible; }

/* Swipeable product photos (PhotoSwiper): swipe on a phone, arrows anywhere; no scrollbar. */
.photo-swiper { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.photo-swiper::-webkit-scrollbar { display: none; }

/* 1px hairline used to separate sections and delimit headings. */
.rule { height: var(--hairline); background: currentColor; opacity: 0.4; border: 0; }

/* Standard section: full-width band, capped inner column. */
.section { padding: var(--space-10) var(--gutter); border-bottom: var(--hairline) solid var(--rule); }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: var(--paper); }
.section__inner { max-width: var(--max-width); margin: 0 auto; }

/* Buttons — square, generous, no radius. */
.btn {
  appearance: none; border: 0; cursor: pointer;
  padding: var(--space-4) 28px;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  transition: opacity var(--dur-fast) var(--ease);
}
.btn:hover { opacity: 0.85; }
.btn--ghost { background: transparent; color: var(--ink); border: var(--hairline) solid var(--ink); padding: var(--space-4) var(--space-5); }
.btn--on-dark { background: var(--paper); color: var(--ink); }
.btn--ghost.btn--on-dark { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.5); }

/* Tartan cloth fill — photographed swatch, cover-cropped. */
.cloth { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #1a1a1a; }
/* Thin decorative cloth stripe between sections. */
.cloth-band { height: 10px; }

/* Hero scrim: opaque at the left where type sits, clear at the right
   so the cloth photograph reads at full brightness. */
.hero-scrim { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.55) 42%, rgba(0,0,0,0) 78%); }

.partner-card { transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.partner-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.partner-card:hover .partner-cta { color: var(--ink); }

/* Header strap: a single centred line. */
.strap-item { white-space: nowrap; }

/* Sticky filter bars sit directly under the measured header. */
.sticky-filters { position: sticky; top: var(--hdr-h, 155px); z-index: 20; background: var(--paper); border-bottom: var(--hairline) solid var(--rule); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  :root { --fs-hero: 46px; --fs-h2: 34px; --fs-h3: 24px; --space-10: 64px; --space-9: 56px; }
}

/* ------------------------------------------------------------
   Mobile. The components set layout as inline style attributes
   (the Tweaks panel swaps them live), and inline styles outrank
   any selector — so every override in this block needs
   !important. That is deliberate, not an accident to clean up.

   Two kinds of rule live here:
   - chrome fixes (.hdr-*, .ftr-*) for the header and footer;
   - layout utilities (.m-1col, .m-2col, .m-stack) that screens
     opt into per-element: the inline style keeps the desktop
     layout, the class says what it collapses to on a phone.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  /* Header strap: let the one centred line wrap, tighter metrics. */
  .strap-item { white-space: normal; }
  .hdr-strap { font-size: 10px !important; letter-spacing: 0.16em !important; padding: 8px 16px !important; }
  .hdr-est { font-size: 10px !important; letter-spacing: 0.12em !important; white-space: normal !important; height: auto !important; text-align: center; }
  .hdr-name { font-size: 30px !important; }

  /* Header: logo on top, the two nav halves as centred wrapped rows.
     It also stops being sticky — stacked it is ~460px tall, well over
     half a phone screen — so it scrolls away. The filter bars are
     un-pinned for the same reason: wrapped for mobile they run ~500px
     and would blanket the list they filter. */
  .site-hdr { position: static !important; }
  .m-pin-top { position: static !important; }
  .hdr-grid { display: flex !important; flex-direction: column; gap: 14px; padding: 16px var(--pad-x) 18px !important; }
  .hdr-logo { order: -1; }
  .hdr-nav { justify-content: center !important; flex-wrap: wrap; row-gap: 10px; }

  /* Footer: brand block above stacked link columns; legal line stacks too. */
  .ftr-grid { grid-template-columns: 1fr !important; gap: 40px !important; padding: 48px var(--pad-x) 28px !important; }
  .ftr-about { grid-row: auto; }
  .ftr-social { grid-column: auto; align-self: start; }
  .ftr-legal { flex-direction: column; gap: 10px; padding: 20px var(--pad-x) !important; }
  .ftr-credit { justify-content: flex-start; }
  .ftr-family { flex-direction: column; gap: 10px !important; padding: 20px !important; }

  /* Layout utilities. */
  .m-1col { grid-template-columns: 1fr !important; }
  .family-strip-text { grid-column: auto !important; } /* Champion Collection text under its photo */
  .bands-served { column-count: 2 !important; column-gap: 24px !important; } /* Pipe bands we've served: two columns on a phone */
  .faq-term { grid-template-columns: 1fr !important; } /* FAQ glossary: the meaning under the term on a phone */
  .home-h2 { font-size: 36px !important; } /* home section headings stay smaller than the title at the top (Matt, 3 Nov 2026) */
  .m-2col { grid-template-columns: 1fr 1fr !important; }
  .m-stack { display: block !important; }
  .m-stack > * + * { margin-top: 32px; }
  .m-gap { gap: 32px !important; }
  .m-gap-sm { gap: 16px !important; }
  .m-wrap { flex-wrap: wrap; }

  /* Necktie chooser: full-screen on a phone, and the search and buy steps
     come before the big photo so the Add to Cart button stays close. */
  .tie-overlay { padding: 0 !important; }
  .tie-panel { border: 0 !important; min-height: 100vh; }
  .tie-photo { order: 2; }
  .tie-featured { grid-template-columns: auto minmax(0, 1fr) !important; gap: 16px !important; }
  .tie-featured > button { grid-column: 1 / -1; }

  /* Shop category tiles: still two rows of four, but the photo goes above the
     name (there's no room beside it) and the labels get smaller. */
  .shop-cats { gap: 8px !important; }
  .shop-cat { flex-direction: column !important; }
  .shop-cat-photo { width: 100% !important; }
  .shop-cat-label { padding: 7px 4px 8px !important; justify-content: flex-start !important; }
  /* Tight enough that ACCESSORIES fits a quarter of a phone; hyphenates if a phone is narrower still. */
  .shop-cat-label > span:first-child { font-size: clamp(8.5px, 2.45vw, 9.5px) !important; letter-spacing: 0 !important; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
  .shop-cat-count { font-size: 9.5px !important; letter-spacing: 0.06em !important; }

  /* Per-spot fixes where a utility isn't enough. */
  .hero-copy { max-width: 100% !important; }                /* full-bleed hero copy column */
  .bench-copy { padding: var(--sec-top) var(--pad-x) var(--sec-bot) !important; }    /* sides = the page margin */
  .bench-cloth { min-height: 340px !important; }            /* cloth panel under the copy */

  /* Tartan finder: auto-fill on 190px tiles gives ONE column on a phone and
     1266 tartans of scrolling. Go three across with compact captions instead.
     LetterGroup's measured column count mirrors this breakpoint in JS — keep
     the two in step if either changes. */
  .finder-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .finder-grid .tile-cap { padding: 6px 7px 8px !important; }
  .finder-grid .tile-name { font-size: 11px !important; line-height: 1.25 !important; }
}

/* Shop category tiles on mid-width screens (tablet, small laptop): a smaller
   photo beside a smaller name, so long names like Belts & Buckles still fit. */
@media (min-width: 721px) and (max-width: 1100px) {
  .shop-cat-photo { width: 76px !important; }
  .shop-cat-label { padding: 8px 10px !important; }
  .shop-cat-label > span:first-child { font-size: 11.5px !important; letter-spacing: 0.08em !important; }
  .shop-cat-count { font-size: 10.5px !important; }
}

/* Header links on the dark header: a quiet hover. */
.hdr-link:hover { color: #fff !important; }
/* Between phone and wide computer screens the name shrinks before the menu wraps. */
/* Between phone and wide computer screens there is no room for the name between
   the two halves of the menu: the name gets its own row on top, the menu runs below.
   Up to 1340px (was 1240px): at 1280px the name ran into "Accessories" (review, 8 Nov 2026). */
@media (min-width: 721px) and (max-width: 1340px) {
  .hdr-grid { grid-template-columns: 1fr 1fr !important; row-gap: 16px !important; }
  .hdr-logo { grid-column: 1 / -1; order: -1; }
}

/* Cart lines on a phone: picture and text side by side, the price under the name. */
@media (max-width: 720px) {
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) !important; row-gap: 6px !important; }
  .cart-line > div:first-child { width: 56px !important; height: 56px !important; }
  .cart-line .cart-price { grid-column: 2; text-align: left !important; }
  .cart-qlabel { display: none; }
  .qty-label { display: none; }                    /* the − 1 + speaks for itself on a narrow card */
}

/* Home hero tartan: a smaller repeat on a phone too. */
@media (max-width: 720px) { .hero-tartan { background-size: 240px 240px !important; } }

/* Deep header at the top of the page, slim once scrolled (TopBar adds .hdr-compact).
   The padding and the Est. line shrink by 72px in all (25 + 23 + 16 + 8), and the
   same 72px goes on as margin under the header, so the page below never jumps.
   If the header's padding changes, change 72 here and HDR_SHRINK in screens.jsx.
   All four use the same timing so they stay in step. Computers and tablets only:
   on a phone the header isn't pinned and scrolls away. */
@media (min-width: 721px) {
  .site-hdr { transition: margin-bottom .25s ease; }
  .hdr-grid { transition: padding .25s ease; }
  .hdr-est { transition: height .25s ease, margin-top .25s ease, opacity .2s ease; }
  .site-hdr.hdr-compact { margin-bottom: 72px; }
  .site-hdr.hdr-compact .hdr-grid { padding-top: 14px !important; padding-bottom: 12px !important; }
  .site-hdr.hdr-compact .hdr-est { height: 0 !important; margin-top: 0 !important; opacity: 0; }
}
@media (max-width: 720px) { .hdr-grid { padding-top: 17px !important; padding-bottom: 15px !important; } } /* 25% tighter, was 22px / 20px */

/* The top block of each main page (Kilts & Garments, Tartans, Accessories, Order a
   Kilt, Measurements, About) is one height on every page, with the headline at the
   home headline's size (client, Oct 2026). The content sits in the middle of the
   block. It was 420px, then 390px to match the home page's tartan block; on
   27 Oct 2026 the space above and below was taken in by a fifth (client), which
   is 350px on a wide screen, a little more on narrower ones where the text wraps
   onto more lines and there is less space to take in. */
.page-hero { min-height: clamp(350px, calc(418px - 4.7vw), 390px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
/* Inside it, two columns of equal height (client, Oct 2026): the small section
   title is the first line of the left column, level with the first line of the
   description on the right, and the headline sits at the bottom of the left
   column. The 2px nudge lines the section title's capitals up with the
   description's first line, which carries more line spacing. */
.hero-left { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hero-left > :first-child { padding-top: 2px; }
.hero-right { display: flex; flex-direction: column; justify-content: space-between; }
.page-hero h1 { font-size: clamp(44px, 5.5vw, 80px) !important; }
@media (max-width: 720px) { .page-hero h1 { font-size: 43px !important; } }
/* Between computer and phone widths the columns are narrower and the text
   longer, so the block is a little tighter to stay at 390px. */
@media (min-width: 721px) and (max-width: 1240px) { .page-hero { padding-top: 15px !important; padding-bottom: 14px !important; } }
/* On a phone everything stacks, so the block is tighter and the paragraph a
   little smaller; pages with a long introduction still run taller than 390px. */
@media (max-width: 720px) {
  .page-hero { padding-top: 17px !important; padding-bottom: 18px !important; min-height: 372px; }
  .page-hero .m-1col { margin-top: 0 !important; gap: 14px !important; }
  /* Features of our kilts, the bottom row of the Traditional title block (8 Nov 2026): keep its own space. */
  .page-hero .hero-features { margin-top: 28px !important; }
  .page-hero .hero-features li { white-space: normal !important; }
  .page-hero p { font-size: 16.5px !important; line-height: 1.55 !important; }
  /* Kilts & Garments: stacked on a phone, so the other tabs' headline and paragraph needn't hold
     their room (they would leave a gap under a shorter one). */
  .kilt-h1-stack > [aria-hidden="true"], .kilt-p-stack > [aria-hidden="true"] { display: none; }
}
/* Title blocks other than Kilts & Garments (Matt, 9 Nov 2026: "margins look big" on Accessories):
   only as tall as what's in them, with the same space above and below, instead of a fixed height
   that left extra space around a short title. Kilts & Garments keeps its fixed height so the block
   stays put when switching tabs. The cart's title block (.hero-even) matches. */
.page-hero:not(.hero-kilts) { min-height: 0 !important; }
.page-hero:not(.hero-kilts), .hero-even { padding-top: 44px !important; padding-bottom: 44px !important; }
@media (min-width: 721px) and (max-width: 1240px) { .page-hero:not(.hero-kilts), .hero-even { padding-top: 36px !important; padding-bottom: 36px !important; } }
@media (max-width: 720px) { .page-hero:not(.hero-kilts), .hero-even { padding-top: 28px !important; padding-bottom: 28px !important; } }
/* The cart's block ends on a button, which has no space under it, while the small title at the top
   carries some line spacing above its capitals: 8px less above makes the two look even. */
.hero-even { padding-top: 36px !important; }
@media (min-width: 721px) and (max-width: 1240px) { .hero-even { padding-top: 28px !important; } }
@media (max-width: 720px) { .hero-even { padding-top: 20px !important; } }
@media (max-width: 720px) {
  .kilt-tab { padding: 12px 14px !important; gap: 4px !important; }
  .kilt-tab-label { font-size: 20px !important; }
  .kilt-tab-note { font-size: 9.5px !important; letter-spacing: 0.08em !important; }
  /* Three tabs since Pipe Bands (client, Oct 2026): on a phone they stack as full-width
     rows, name on the left and note on the right, which also leaves room for a larger note. */
  .kilt-tabs { grid-template-columns: 1fr !important; grid-auto-rows: 1fr; gap: 8px !important; } /* every row the same height, even when a note wraps */
  .kilt-tabs .kilt-tab { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px !important; padding: 10px 14px !important; }
  .kilt-tabs .kilt-tab-note { font-size: 11px !important; letter-spacing: 0.12em !important; text-align: right; }
}

/* Home section headings stay smaller than the title at the top on narrower screens too (Matt, 3 Nov 2026); phones go to 36px below. */
@media (min-width: 721px) and (max-width: 1024px) { .home-h2 { font-size: 48px !important; } }

/* Highland Dance cards: full width since the third card (Aboyne) was added, 30 Oct 2026; kept for safety on phones. */
@media (max-width: 720px) { .dance-cards { max-width: none !important; } }

/* Measurements: on a phone the figure sits above the list, smaller and not pinned. */
@media (max-width: 720px) {
  .measure-fig { position: static !important; }
  .measure-fig img { height: 480px !important; }
  .measure-item { grid-template-columns: 54px 1fr !important; column-gap: 14px !important; }
  .measure-letter { font-size: 44px !important; }
}

/* The MacIsaac family block above the footer: a card darkens its border on hover. */
.family-card { transition: border-color .15s; }
.family-card:hover, .family-card:focus-visible { border-color: currentColor !important; }

/* Phones: one page margin everywhere (was a mix of 20px and 32px). */
@media (max-width: 720px) { :root { --gutter: 24px; } }

/* Kilts & Garments tabs (client, 28 Oct 2026): always identical. Three equal columns while the
   word "Traditional" fits at full size; when the title block's right column is too narrow for
   that, the same three tabs stack as equal full-width rows (name left, note right), as on phones. */
.hero-right { container-type: inline-size; }
@media (min-width: 721px) {
  @container (max-width: 509px) {
    .kilt-tabs { grid-template-columns: 1fr !important; grid-auto-rows: 1fr; gap: 8px !important; }
    .kilt-tabs .kilt-tab-label { white-space: nowrap; }
    .kilt-tabs .kilt-tab { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px !important; padding: 12px 20px !important; }
    .kilt-tabs .kilt-tab-note { text-align: right; }
  }
}

/* Read by screen readers only. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Customer reviews on the Traditional tab: three columns, one on a phone. */
.reviews-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 720px) { .reviews-cols { grid-template-columns: minmax(0, 1fr); } }
/* Order a Kilt's step tabs on phones: smaller, so three fit across (8 Nov 2026). */
@media (max-width: 720px) {
  .contact-steps { gap: 4px !important; }
  .contact-steps button { padding: 10px 8px !important; }
  .contact-steps .cs-num { font-size: 11px !important; letter-spacing: 0.12em !important; }
  .contact-steps .cs-name { font-size: 16px !important; overflow-wrap: anywhere; }
}
/* Card photos that act as the card's button (PhotoLink, screens-pages.jsx): a light lift on hover. */
.photo-link { transition: opacity .15s ease; }
.photo-link:hover { opacity: 0.92; }
.photo-link:focus-visible { outline: 2px solid var(--logo-green, #516f3c); outline-offset: 3px; }

/* Order a Kilt's white fields have no edge (Matt, 8 Nov 2026); the one being typed in shows a green one. */
.mk-field:focus, .mk-field:focus-visible { border-color: var(--logo-green, #516f3c) !important; box-shadow: 0 0 0 1px var(--logo-green, #516f3c); }

/* "When you're ready: Send your order" (cart.jsx, CartReadyBar; Matt, 9 Nov 2026). On a computer
   it sits inside the pinned header and drops down from it when the first item goes in the cart.
   On a phone the header scrolls away, so the bar is fixed to the bottom of the screen, with the
   button across its full width, and the page gets room at the bottom so the footer isn't hidden. */
@keyframes cartbar-down { from { transform: translateY(-100%); } }
@keyframes cartbar-up { from { transform: translateY(100%); } }
@media (min-width: 721px) {
  .cart-bar-drop .cart-bar-in { animation: cartbar-down .35s var(--ease) both; }
}
@media (max-width: 720px) {
  .cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -10px 28px rgba(0,0,0,.18); }
  .cart-bar-drop .cart-bar-in { animation: cartbar-up .35s var(--ease) both; }
  .cart-bar-more { display: none; }
  .cart-bar-btn { flex: 1 1 100%; margin-left: 0 !important; padding: 14px 18px !important; font-size: 13px !important; }
  body.cartbar-on { padding-bottom: var(--cartbar-h, 110px); }
}
@media (prefers-reduced-motion: reduce) { .cart-bar-in { animation: none !important; } }


/* "Worn by" champions (screens-home.jsx, ChampionsStrip): six across on a wide screen; two rows of
   three in between, so "World Highland Dance Champion" isn't one word per line (9 Nov 2026). */
@media (min-width: 721px) and (max-width: 1240px) { .champ-grid { grid-template-columns: repeat(3, 1fr) !important; } }

/* The site's menu (screens.jsx, NavDrop and MobileMenu; Matt, 9 Nov 2026). Drop-down lists are
   white, lined up with the left edge of their heading, in the header links' lettering; the page
   you're on, and the item under the pointer, get the logo's fuchsia bar on the left. */
.hdr-menu-item {
  appearance: none; display: block; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: 0; border-left: 3px solid transparent;
  padding: 13px 24px 13px 19px; font-family: var(--font-mono); font-size: 13px; line-height: 1.3;
  letter-spacing: 0.18em; word-spacing: -0.42em; text-transform: uppercase;
  color: #121014; white-space: nowrap;
}
.hdr-menu-item:hover, .hdr-menu-item:focus-visible { background: #f6f1f5; border-left-color: var(--buy); outline: none; }
.hdr-menu-item.is-on { color: var(--buy); border-left-color: var(--buy); }
.mm-row {
  appearance: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer; background: #fff; border: 0;
  border-bottom: 1px solid rgba(0,0,0,.07); border-left: 3px solid transparent;
  padding: 16px 20px 16px 17px; font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.16em;
  word-spacing: -0.42em; text-transform: uppercase; color: #121014;
}
.mm-row.mm-sub { font-size: 12.5px; padding: 14px 20px 14px 37px; background: #faf8f6; }
.mm-row.is-on { color: var(--buy); border-left-color: var(--buy); }
.mm-panel { animation: mm-in .25s var(--ease) both; }
@keyframes mm-in { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mm-panel { animation: none; } }
/* With Accessories on the left the halves are wider than before: a little less space between the
   links everywhere, one size smaller type where the name and both halves share one row on a narrower
   screen, and up to 960px (tablets and phones) the Menu button and the cart instead of the halves. */
.hdr-nav { column-gap: 14px !important; }
@media (min-width: 1341px) and (max-width: 1439px) { .hdr-nav .hdr-link { font-size: 12px !important; letter-spacing: 0.14em !important; } }
@media (max-width: 960px) {
  .hdr-nav { display: none !important; }
  .hdr-mobile { display: flex !important; grid-column: 1 / -1; }
}

/* Accessories: the categories pinned under the header once the tiles have scrolled away
   (screens-pages.jsx, ShopScreen; Matt, 9 Nov 2026). White, one row; on a phone, where the header
   isn't pinned, it sits at the top of the screen and slides sideways if the names don't fit. */
.shop-pin {
  position: fixed; left: 0; right: 0; top: var(--hdr-h, 155px); z-index: 25;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,.12); box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .2s var(--ease), opacity .2s var(--ease), visibility 0s linear .2s;
}
.shop-pin.is-shown { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.shop-pin-row { display: flex; gap: 8px; padding: 10px var(--pad-x); overflow-x: auto; scrollbar-width: none; }
.shop-pin-row::-webkit-scrollbar { display: none; }
.shop-pin-btn {
  appearance: none; flex: none; cursor: pointer; white-space: nowrap;
  background: #fff; color: #121014; border: 1px solid rgba(0,0,0,.2);
  padding: 8px 13px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.shop-pin-btn:hover { border-color: #121014; }
.shop-pin-btn.is-feat { border-color: var(--logo-green); color: var(--logo-green); }
.shop-pin-btn.is-on { background: #121014; border-color: #121014; color: #fff; }
@media (max-width: 720px) { .shop-pin { top: 0; } }
@media (prefers-reduced-motion: reduce) { .shop-pin, .shop-pin.is-shown { transition: none; } }

/* Home, the seven steps: seven across ran off the right edge on tablets (found 9 Nov 2026), so
   between phone and wide screens they run four across, then three. */
@media (min-width: 721px) and (max-width: 1240px) { .steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* Softer corners (Matt, 9 Nov 2026: "every frame on the site is very square and sharp. I don't want
   rounded edges but I'd like to soften the corners very subtly"). 3px takes the edge off without
   reading as rounded. Buttons, fields, cards, tiles, framed photos, popups, menus and every box
   drawn with a full 1px border; cards and tiles clip their photos to the same corner. Full-width
   bands (header, footer, sections) stay square, as do lines that mark a side (tab bars, the
   menu's coloured bar). */
:root { --radius: 3px; }
button, a.btn, .buy-btn { border-radius: var(--radius); }
input, select, textarea { border-radius: var(--radius) !important; }
article, .shop-cat, .ob-pick, .kilt-tab, .frame-photo, .tie-panel, .hdr-menu > div,
[role="dialog"], [role="alertdialog"], [style*="border: 1px solid"] { border-radius: var(--radius); }
article, .shop-cat, .ob-pick { overflow: hidden; }
.hdr-menu-item, .mm-row, .ftr-link, .hdr-link, .ob-steps button, .contact-steps button { border-radius: 0; }

/* Popup buttons: centred in a row on a wider screen; on a phone, where they stack, each one the
   full width of the box so they line up (9 Nov 2026). */
@media (max-width: 560px) { .pop-btn { flex: 1 1 100%; } }


/* The cart's thank-you table, on a phone: smaller pictures and padding so the prices keep room,
   as on the Outfit Builder's thank-you page (13 Nov 2026). */
@media (max-width: 720px) {
  .sent-table td { padding: 10px 6px !important; }
  .sent-table .sent-pic { width: 60px !important; }
  .sent-table .sent-pic > span { width: 52px !important; height: 52px !important; }
  .sent-table .sent-price { white-space: normal !important; font-size: 15px !important; letter-spacing: 0.03em !important; }
  .sent-table .sent-total { font-size: 21px !important; letter-spacing: 0 !important; white-space: nowrap !important; }
}

/* Thank-you pages (cart order, Outfit Builder order, Order a Kilt inquiry): what was sent on the
   left, the contact details on the right; one column, contact details below, on a narrower screen
   (13 Nov 2026). */
/* The right-hand side starts level with the top of the page's text and ends level with the bottom
   of the order table (Matt, 13 Nov 2026: "double check alignment of frames"). */
.thanks-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); grid-template-areas: "intro side" "sum side" "btn ."; column-gap: 56px; row-gap: 26px; align-items: start; width: 100%; }
.thanks-intro { grid-area: intro; min-width: 0; }
.thanks-sum { grid-area: sum; min-width: 0; }
.thanks-btn { grid-area: btn; min-width: 0; margin-top: -26px; }
.thanks-side { grid-area: side; align-self: stretch; min-width: 0; position: relative; }
.thanks-side img { position: absolute; top: 8px; bottom: 0; left: 0; right: 0; margin: 0 auto; width: 100%; height: calc(100% - 8px); max-width: 340px; object-fit: contain; object-position: top center; }
@media (max-width: 1100px) {
  .thanks-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "sum" "btn"; }
  .thanks-side { display: none; }
}
