@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Work+Sans:wght@400;500;600&display=swap');
@import "tailwindcss";

/* ==========================================================================
   Stackables Design Tokens
   Override these in your app's CSS (e.g. :root) to customize the theme.
   ========================================================================== */
:root {
  /* Primary brand */
  --stackables-primary: #715cdd;
  --stackables-primary-hover: rgba(113, 92, 228, 0.7);
  --stackables-primary-foreground: #fff;

  /* Layout */
  --stackables-container-width: 1280px;
  /* The least space between two sections of a page that are not both
     full-width colour bands — see components/Layout/sectionSpacing.ts.
     A section's own padding counts towards it; 0px turns the spacing off. */
  --stackables-section-gap: clamp(2rem, 5vw, 4rem);

  /* Typography — uses Geist / Geist Mono when host sets --font-geist-* (e.g. Next.js next/font) */
  --stackables-font-family: var(
    --font-geist-sans,
    ui-sans-serif,
    system-ui,
    sans-serif
  );
  --stackables-font-mono: var(--font-geist-mono), ui-monospace, "SF Mono",
    Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --stackables-font-size-btn: 14px;
  --stackables-font-weight-btn: 700;
  --stackables-font-weight-outline: 400;

  /* Buttons */
  --stackables-btn-padding-y: 12px;
  --stackables-btn-padding-x: 28px;
  --stackables-btn-border-radius: 2px;
  --stackables-btn-focus-ring: rgba(13, 110, 253, 0.25);

  /* Link button */
  --stackables-link-btn-line-height: 22px;
  --stackables-link-btn-arrow-size: 26px;
  --stackables-link-btn-arrow-spacing: 5px;
}

@theme inline {
  --font-sans: var(--stackables-font-family);
  /* The project's heading font, when it sets one (ThemeProvider typography). */
  --font-serif: var(--stackables-font-serif, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif);
  --font-mono: var(--stackables-font-mono);
}

/* ==========================================================================
   Page layout — container width and per-section width
   --------------------------------------------------------------------------
   One cap per page (--stackables-container-width, set by <PageLayout>), and a
   width mode per section (<PageSection width="...">).

   The cap is always a CEILING, never a floor: every max-width below is wrapped
   in min(..., 100%) so it can only ever pull content in, never push it out.
   Drop the 100% and a cap wider than the screen lets content escape the
   viewport and widens the whole page — which is exactly the bug this guards.

   The space BETWEEN sections is not declared here: <PageLayout> measures what
   each section paints and sets its margin-top inline (sectionSpacing.ts), so
   full-width colour bands touch and everything else keeps
   --stackables-section-gap apart.
   ========================================================================== */

/* A section's content container. The narrowest of the component's own design
   width (--sk-content-width), the page cap, and the viewport wins. */
.component-container {
  max-width: min(
    var(--sk-content-width, 100%),
    var(--container-width, var(--stackables-container-width)),
    100%
  );
  width: 100%;
}

.sk-page {
  width: 100%;
}

.sk-section {
  width: 100%;
}

/* inherit — the whole section box, background included, stops at the cap. */
.sk-section--inherit {
  max-width: min(var(--container-width, var(--stackables-container-width)), 100%);
  margin-left: auto;
  margin-right: auto;
}

/* full_background — the box runs edge to edge so the section keeps its own
   background; its inner .component-container reads the same cap and pulls the
   content in on its own, so there is nothing to declare here. */

/* full — the page cap is ignored, for the section box and its content alike.
   A component's own design width still applies; only the page cap is lifted. */
.sk-section--full {
  --container-width: 100%;
}

/* Custom pages — a page type made directly in Contentstack, rendered as a
   document: its plain fields (text, rich text, files, links) inside a
   .sk-plain section. See renderer/plainFields.tsx.

   Everything is scoped under .sk-plain, so none of it reaches a component.
   Colours and fonts are inherited — the site's typography, not Stackables' —
   and links take --sk-link-color when a site sets one. Written as plain CSS
   rather than utilities: the text inside comes from the CMS, so there are no
   class names on it to style.

   .sk-plain is the typography alone; .sk-plain--section adds the spacing of a
   page section. Kept apart so a site's own component can put .sk-plain on a
   rich text body without inheriting padding it would have to fight: these
   rules are unlayered, so a Tailwind utility like px-0 cannot override them. */
.sk-plain {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.sk-plain--section {
  padding: 2.5rem 1.5rem;
}

/* Between fields, then between blocks inside one (a rich text body). */
.sk-plain > * + * {
  margin-top: 1.5rem;
}
.sk-plain :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, figure, table, hr) {
  margin: 0;
}
.sk-plain :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, figure, table, hr)
  + :is(p, ul, ol, blockquote, pre, figure, table, hr) {
  margin-top: 1em;
}
.sk-plain * + :is(h2, h3, h4, h5, h6) {
  margin-top: 1.75em;
}

.sk-plain h1 { font-size: 2.25rem; line-height: 1.2; font-weight: 700; }
.sk-plain h2 { font-size: 1.75rem; line-height: 1.25; font-weight: 700; }
.sk-plain h3 { font-size: 1.375rem; line-height: 1.3; font-weight: 600; }
.sk-plain h4 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.sk-plain :is(h5, h6) { font-size: 1rem; line-height: 1.5; font-weight: 600; }

.sk-plain ul { list-style: disc; padding-left: 1.5em; }
.sk-plain ol { list-style: decimal; padding-left: 1.5em; }
.sk-plain li + li { margin-top: 0.35em; }

.sk-plain a {
  color: var(--sk-link-color, currentColor);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sk-plain img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.sk-plain blockquote {
  padding-left: 1em;
  border-left: 3px solid color-mix(in srgb, currentColor 25%, transparent);
  font-style: italic;
}

.sk-plain code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
/* Scrolls inside itself, so a long line of code can never widen the page. */
.sk-plain pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1em;
  border-radius: 0.5rem;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.sk-plain table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.sk-plain :is(th, td) {
  padding: 0.5em 0.75em;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  text-align: left;
}

.sk-plain hr {
  border: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

/* Markdown extras: strikethrough, nested lists, task list items. */
.sk-plain del { text-decoration: line-through; }
.sk-plain li > :is(ul, ol, p, pre, blockquote, table) { margin-top: 0.35em; }
.sk-plain li.sk-plain__task { list-style: none; }
.sk-plain li.sk-plain__task > input[type='checkbox'] {
  margin: 0 0.5em 0 -1.4em;
  vertical-align: middle;
}

/* A boolean field, shown as "Label: Yes". */
.sk-plain__boolean .sk-plain__label { font-weight: 600; }
.sk-plain__boolean .sk-plain__label::after { content: ':'; }

/* Preset container widths */
.container-1920 {
  --container-width: 1920px;
  max-width: 1920px;
}

.container-1600 {
  --container-width: 1600px;
  max-width: 1600px;
}

.container-1440 {
  --container-width: 1440px;
  max-width: 1440px;
}

.container-1280 {
  --container-width: 1280px;
  max-width: 1280px;
}

.container-1024 {
  --container-width: 1024px;
  max-width: 1024px;
  margin: 0 auto;
}

.container-768 {
  --container-width: 768px;
  max-width: 768px;
}

.btn {
  cursor: pointer;
  display: inline-block;
  padding: var(--stackables-btn-padding-y) var(--stackables-btn-padding-x);
  font-size: var(--stackables-font-size-btn);
  font-family: var(--stackables-font-family);
  font-weight: var(--stackables-font-weight-btn);
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}
.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--stackables-btn-focus-ring);
}

.primary-btn {
  color: var(--stackables-primary-foreground);
  background-color: var(--stackables-primary);
  border-radius: var(--stackables-btn-border-radius);
}
.primary-btn:hover {
  background-color: var(--stackables-primary-hover);
}

.outline-btn {
  border: 1px solid var(--stackables-primary);
  color: var(--stackables-primary);
  line-height: 18px;
  border-radius: var(--stackables-btn-border-radius);
  letter-spacing: 0.3px;
  font-weight: var(--stackables-font-weight-outline);
  background-color: transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.link-btn {
  font-weight: var(--stackables-font-weight-btn);
  color: var(--stackables-primary);
  background-color: transparent;
  font-family: var(--stackables-font-family);
  line-height: var(--stackables-link-btn-line-height);
  padding: 0;
}
.link-btn::after {
  content: "→";
  margin-left: var(--stackables-link-btn-arrow-spacing);
  font-size: var(--stackables-link-btn-arrow-size);
  vertical-align: middle;
}

/* Grid */
.img-grid {
  display: grid;
  width: 100%;
}
.img-grid__gap--sm { gap: 8px; }
.img-grid__gap--md { gap: 16px; }
.img-grid__gap--lg { gap: 24px; }

/* Cell */
.img-grid__cell {
  display: flex;
  flex-direction: column;
}

/* Aspect-ratio frame */
.img-grid__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #e5e7eb;
}
.img-grid__aspect--square { aspect-ratio: 1 / 1; }
.img-grid__aspect--4-3    { aspect-ratio: 4 / 3; }
.img-grid__aspect--16-9   { aspect-ratio: 16 / 9; }
.img-grid__aspect--auto   { aspect-ratio: auto; }

/* Image */
.img-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Placeholder (no image src) */
.img-grid__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
}
.img-grid__placeholder-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

/* Caption below image */
.img-grid__caption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

/* Empty state */
.img-grid__empty {
  padding: 48px 0;
  font-size: 14px;
  text-align: center;
}

/* Row-spanning cell — fill the full grid area height */
.img-grid__cell--spanned {
  height: 100%;
}
.img-grid__cell--spanned .img-grid__frame {
  flex: 1;
  height: 100%;
}

/* ── Hover: zoom ── */
.img-grid__cell--zoom .img-grid__frame {
  cursor: zoom-in;
}
.img-grid__cell--zoom:hover .img-grid__img {
  transform: scale(1.07);
}

/* ── Hover: overlay ── */
.img-grid__overlay {
  position: absolute;
  inset: 0;
  /* Dark enough behind the text for any photo, including bright ones. */
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.img-grid__cell--overlay:hover .img-grid__overlay {
  opacity: 1;
}
.img-grid__overlay-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.img-grid__overlay-caption {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ── Clickable link wrapper ── */
.img-grid__link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}
.img-grid__link:focus-visible {
  outline: 3px solid var(--stackables-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── ProductCard ─────────────────────────────────────────────────────────────
   Namespace: .pc__
   ─────────────────────────────────────────────────────────────────────────── */

/* Card shell */
.pc__card {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  overflow: hidden;
}
.pc__card--vertical {
  max-width: 420px;
  display: flex;
  flex-direction: column;
}
.pc__card--horizontal {
  max-width: 780px;
  display: flex;
  flex-direction: row;
}

/* Image column */
.pc__img-col {
  flex-shrink: 0;
}
.pc__card--horizontal .pc__img-col {
  width: 42%;
}

/* Image frame + aspect ratios */
.pc__img-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  text-decoration: none;
}
.pc__img-frame--square { aspect-ratio: 1 / 1; }
.pc__img-frame--4-3    { aspect-ratio: 4 / 3; }
.pc__img-frame--auto   { aspect-ratio: auto; min-height: 260px; }
.pc__card--horizontal .pc__img-frame {
  height: 100%;
  border-radius: 0;
}

/* Image */
.pc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pc__img-frame:hover .pc__img {
  transform: scale(1.04);
}

/* Placeholder */
.pc__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc__img-placeholder-icon { font-size: 3rem; opacity: 0.3; }

/* Discount ribbon */
.pc__discount-ribbon {
  position: absolute;
  top: 12px;
  left: 0;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px 3px 8px;
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.3px;
}

/* Badge on image */
.pc__img-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Badge pill */
.pc__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  text-transform: uppercase;
}

/* Body */
.pc__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Brand */
.pc__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
}

/* Name row */
.pc__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pc__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  color: inherit;
}
.pc__name:hover { text-decoration: underline; }

/* Wishlist */
.pc__wishlist {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #d1d5db;
  line-height: 1;
  padding: 0;
  transition: color 0.15s, transform 0.15s;
}
.pc__wishlist:hover { color: #ef4444; transform: scale(1.15); }
.pc__wishlist--active { color: #ef4444; }

/* Stars */
.pc__stars {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pc__star {
  font-size: 15px;
  color: #d1d5db;
}
.pc__star--full  { color: #f59e0b; }
.pc__star--half  { color: #f59e0b; opacity: 0.65; }
.pc__review-count {
  font-size: 12px;
  color: #6b7280;
  margin-left: 4px;
}

/* SKU */
.pc__sku {
  font-size: 11px;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Description */
.pc__description {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Divider */
.pc__divider {
  border: none;
  border-top: 1px solid;
  margin: 4px 0;
}

/* Price */
.pc__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pc__price {
  font-size: 26px;
  font-weight: 800;
  color: var(--stackables-primary);
}
.pc__compare-price {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
}
.pc__save-label {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Stock */
.pc__stock {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.pc__stock--in  { color: #16a34a; }
.pc__stock--out { color: #dc2626; }

/* Option groups (colors / sizes) */
.pc__option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc__option-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}
.pc__option-value {
  font-weight: 400;
  color: #6b7280;
}

/* Color swatches */
.pc__swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pc__swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}
.pc__swatch:hover { transform: scale(1.15); }
.pc__swatch--active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--stackables-primary);
}

/* Size buttons */
.pc__sizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pc__size-btn {
  min-width: 40px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pc__size-btn:hover {
  border-color: var(--stackables-primary);
  color: var(--stackables-primary);
}
.pc__size-btn--active {
  background: var(--stackables-primary);
  border-color: var(--stackables-primary);
  color: #fff;
}

/* CTA button */
.pc__cta {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 20px;
  background: var(--stackables-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s;
}
.pc__cta:hover:not(.pc__cta--disabled) { filter: brightness(0.88); }
.pc__cta--disabled {
  background: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── ImageGridDynamic ────────────────────────────────────────────────────────
   Dynamic layout that adapts based on image count (1–4+).
   1 image  → full-width single cell
   2 images → equal two columns
   3 images → wide left + two stacked right
   4 images → wide left + [top-right pair | bottom-right full]
   ─────────────────────────────────────────────────────────────────────────── */

.dyn-grid {
  display: grid;
  width: 100%;
}

/* Gap variants */
.dyn-grid__gap--none { gap: 0; }
.dyn-grid__gap--sm   { gap: 6px; }
.dyn-grid__gap--md   { gap: 12px; }
.dyn-grid__gap--lg   { gap: 20px; }

/* Cell */
.dyn-grid__cell {
  position: relative;
  overflow: hidden;
}

/* Frame fills the cell completely */
.dyn-grid__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #e5e7eb;
}

/* Image */
.dyn-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.dyn-grid__cell:hover .dyn-grid__img {
  transform: scale(1.07);
}

/* Placeholder */
.dyn-grid__placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  font-size: 2.5rem;
  opacity: 0.4;
}

/* Label — always-visible overlay at bottom-left */
.dyn-grid__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  pointer-events: none;
}
.dyn-grid__label-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* ── 1-image layout ── */
.dyn-grid--1 {
  grid-template-columns: 1fr;
  height: 500px;
}

/* ── 2-image layout ── */
.dyn-grid--2 {
  grid-template-columns: 1fr 1fr;
  height: 500px;
}

/* ── 3-image layout ──
   Col 1 (wider): single tall image spanning both rows
   Col 2 (narrower): two images stacked                */
.dyn-grid--3 {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  height: 520px;
}
.dyn-grid--3 .dyn-grid__cell:nth-child(1) {
  grid-row: span 2;
}

/* ── 4-image layout ──
   Col 1 (wider): single tall image spanning both rows
   Cols 2–3: Image 2 + 3 side-by-side in row 1
             Image 4 spanning cols 2–3 in row 2         */
.dyn-grid--4 {
  grid-template-columns: 3fr 1.5fr 1.5fr;
  grid-template-rows: 1fr 1fr;
  height: 520px;
}
.dyn-grid--4 .dyn-grid__cell:nth-child(1) {
  grid-row: span 2;
}
.dyn-grid--4 .dyn-grid__cell:nth-child(4) {
  grid-column: span 2;
}

/* ── 5+ images fallback — regular 3-column grid ── */
.dyn-grid--many {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
}


/* Heritage set — the starburst sticker tilts and wiggles when its
   card is hovered (theme/heritage.tsx, HeritageBadge). */
@keyframes heritage-badge-wiggle {
  0%, 100% { transform: rotate(12deg) scale(1); }
  25% { transform: rotate(4deg) scale(1.08); }
  50% { transform: rotate(16deg) scale(1.04); }
  75% { transform: rotate(9deg) scale(1.06); }
}
.heritage-badge {
  transform: rotate(12deg);
  transition: transform 200ms ease;
}
.group:hover .heritage-badge {
  animation: heritage-badge-wiggle 600ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .group:hover .heritage-badge { animation: none; }
}

/* Heritage trip planner (components/Media/TripPlannerHeritage.tsx): numbered
   map pins, the pulsing origin dot and a list that scrolls without a track. */
.heritage-trip-map {
  isolation: isolate; /* keep Leaflet's z-indexed panes under a site header */
  font-family: var(--stackables-font-sans, "Work Sans", ui-sans-serif, system-ui, sans-serif);
}
.heritage-trip-map .leaflet-control-attribution {
  background: rgb(244 242 238 / 0.85);
  font-size: 10px;
}
.heritage-trip-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #f4f2ee;
  border-radius: 9999px;
  background: #1c2b3d;
  color: #f4f2ee;
  font: 600 12px/1 var(--stackables-font-sans, "Work Sans", ui-sans-serif, system-ui, sans-serif);
  box-shadow: 0 2px 4px rgb(28 43 61 / 0.3);
  transition: transform 150ms ease, background-color 150ms ease;
}
.heritage-trip-pin--selected {
  background: #d9472c;
  transform: scale(1.15);
}
.heritage-trip-origin {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 9999px;
  background: #d9472c;
  animation: heritage-trip-pulse 2s ease-out infinite;
}
@keyframes heritage-trip-pulse {
  0% { box-shadow: 0 0 0 0 rgb(217 71 44 / 0.45); }
  70% { box-shadow: 0 0 0 14px rgb(217 71 44 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(217 71 44 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .heritage-trip-origin { animation: none; }
}
.heritage-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.heritage-scroll::-webkit-scrollbar { display: none; }

/* Heritage article body (components/ArticleDetailsPage/ArticleHeritage.tsx):
   rich text from the CMS, so styled by element rather than class names. */
.heritage-article {
  color: #2c333d;
  font-size: 1.125rem;
  line-height: 1.75;
}
.heritage-article > * { margin: 0; }
.heritage-article > * + * { margin-top: 1.25em; }
.heritage-article :is(h2, h3) {
  font-family: var(--stackables-font-serif, "Fraunces", Georgia, serif);
  font-weight: 600;
  color: #1c2b3d;
}
.heritage-article h2 { margin-top: 2.25em; font-size: 1.875rem; line-height: 1.2; }
.heritage-article h3 { margin-top: 2em; font-size: 1.5rem; line-height: 1.25; }
.heritage-article :is(h2, h3) + * { margin-top: 0.6em; }
.heritage-article strong { font-weight: 600; color: #1c2b3d; }
.heritage-article a { color: #1c2b3d; text-decoration: underline; text-underline-offset: 3px; transition: color 150ms ease; }
.heritage-article a:hover { color: #d9472c; }
.heritage-article ul { list-style: disc; padding-left: 1.25em; }
.heritage-article ol { list-style: decimal; padding-left: 1.5em; }
.heritage-article li + li { margin-top: 0.4em; }
.heritage-article li::marker { color: #d9472c; font-weight: 600; }
.heritage-article blockquote {
  border-left: 3px solid #d9472c;
  padding-left: 1.25em;
  font-family: var(--stackables-font-serif, "Fraunces", Georgia, serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
  color: #1c2b3d;
}
.heritage-article figure img { display: block; width: 100%; height: auto; }

/* Heritage set — a visible keyboard focus ring on every link, button and field
   inside a Heritage component (each root carries data-heritage). Drawn in the
   element's own text color, so it reads on cream, ink and the green band. */
[data-heritage] :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ── Contentstack Studio design classes ──────────────────────────────────────
   Offered in the Design panel's Class picker of every component's "Section"
   group (registered by src/studio/design.ts) and put on the section's root
   element by the section-width wrapper. Each works through the theme variables
   the components already read (--sk-font-*, --stackables-font-*,
   --stackables-primary), so no component changes. The class is written twice:
   the rule has to outrank a component's own utility classes and
   ThemeProvider's project typography, which use the same selectors. */

.sk-headings-body-font.sk-headings-body-font :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--sk-font-body, var(--stackables-font-family, ui-sans-serif, system-ui, sans-serif));
}
.sk-headings-accent-font.sk-headings-accent-font :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--sk-font-accent, var(--stackables-font-display, var(--stackables-font-serif, Georgia, "Times New Roman", serif)));
}
.sk-text-heading-font.sk-text-heading-font :is(p, li, dd, dt, blockquote, figcaption, td, th, small, time, address) {
  font-family: var(--sk-font-heading, var(--stackables-font-serif, Georgia, "Times New Roman", serif));
}
.sk-headings-uppercase.sk-headings-uppercase :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sk-headings-tight.sk-headings-tight :is(h1, h2, h3, h4, h5, h6) {
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sk-text-center.sk-text-center,
.sk-text-center.sk-text-center :is(h1, h2, h3, h4, h5, h6, p, li, blockquote, figcaption) {
  text-align: center;
}

/* Surfaces: a background for the whole section, and the text inside follows
   the surface's colour instead of its own — the one thing a component's own
   colours have to give up for a dark or brand-coloured section to read. The
   section box (the component's root, or the width wrapper's .sk-section and
   the root inside it) gives up its own background and text colour too, inline
   styles included — the author chose the surface — while anything deeper
   (cards, media) keeps its own background. */
.sk-surface-soft.sk-surface-soft {
  background-color: color-mix(in srgb, var(--stackables-primary, #715cdd) 8%, #ffffff);
}
.sk-surface-primary.sk-surface-primary {
  background-color: var(--stackables-primary, #715cdd);
  color: var(--stackables-primary-foreground, #ffffff);
}
.sk-surface-ink.sk-surface-ink {
  background-color: #111827;
  color: #f9fafb;
}
.sk-surface-primary.sk-surface-primary :is(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, small, time, address, span, a:not(.sk-btn, .btn, .link-btn)),
.sk-surface-ink.sk-surface-ink :is(h1, h2, h3, h4, h5, h6, p, li, dd, dt, blockquote, figcaption, td, th, small, time, address, span, a:not(.sk-btn, .btn, .link-btn)) {
  color: inherit !important;
}
.sk-surface-soft.sk-surface-soft > *,
.sk-surface-soft.sk-surface-soft > .sk-section > *,
.sk-surface-primary.sk-surface-primary > *,
.sk-surface-primary.sk-surface-primary > .sk-section > *,
.sk-surface-ink.sk-surface-ink > *,
.sk-surface-ink.sk-surface-ink > .sk-section > * {
  background-color: transparent !important;
  color: inherit !important;
}

/* Studio layouts (src/studio/layouts.tsx): the column count is an inline
   variable; under 640px both collapse to one column. */
/* Studio layouts — what each looks like before an editor sets its design
   props (columns, direction, gap, padding… per breakpoint). Studio hands the
   layout one generated class per prop; `:where()` keeps these at zero
   specificity so those classes win whatever the stylesheet order. */
:where(.sk-studio-container) { padding-block: 3rem; }
:where(.sk-studio-stack) { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; }
:where(.sk-studio-grid) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
:where(.sk-studio-columns) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem; align-items: start; }
:where(.sk-studio-card) { padding: 1.5rem; }
:where(.sk-studio-center) { max-width: 56rem; margin-inline: auto; }
:where(.sk-studio-overlay) { position: relative; min-height: 480px; display: flex; justify-content: center; overflow: hidden; background-size: cover; background-position: center; }
:where(.sk-studio-spacer) { height: 32px; width: 100%; }
