/* ==============================================================
   TOMCAR Indonesia: low-fidelity wireframes
   One stylesheet for every page. Grayscale and one system font
   on purpose (docs/handoff.md, section 8).
   Breakpoints: 1280 px (header menu), 900 px (tablet), 600 px (phone).
   ============================================================== */

/* Tokens */
:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-grey: #ebebeb;
  --line-grey: #d6d6d6;
  --mid-grey: #bdbdbd;
  --text-grey: #6e6e6e;    /* 5.1:1 on white, 4.7:1 on off-white */
  --dark-grey: #444444;
  --black: #1f1f1f;
  --stage: #2e2e2e;        /* dark sections */
  --stage-media: #3a3a3a;  /* media boxes on dark sections */
  --stage-text: #e6e6e6;   /* 10.9:1 on the stage */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 1280px;
  --page-padding: clamp(16px, 4vw, 48px);
  --gap: 24px;
  --section-space: clamp(48px, 7vw, 96px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.stage-dark :focus-visible { outline-color: var(--white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; top: -100px; left: 8px; z-index: 50; padding: 10px 16px; background: var(--black); color: var(--white); }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Layout */
.container { width: min(100% - 2 * var(--page-padding), var(--max-width)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-grey { background: var(--off-white); }
.section-joined { padding-top: 0; }               /* continues the section above, no gap */
.section-flush { padding-bottom: 0; }             /* a full-width stage closes the section */
.stage-dark { background: var(--stage); color: var(--white); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.stack > .media { align-self: stretch; margin-top: 16px; }
.stack + .media { margin-top: 32px; }
.centred { align-items: center; margin-inline: auto; text-align: center; }
.narrow { max-width: 46rem; }
.medium-width { max-width: 960px; margin-inline: auto; }   /* a media box that should not fill the page */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.split-reverse > .media { order: -1; }
.split + .split { margin-top: clamp(40px, 6vw, 80px); }
.cards { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: var(--gap); }
.cards-four { --columns: 4; }   /* four per row; two from 1000 px down; one on phones */
@media (max-width: 1000px) { .cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.card > .media { align-self: stretch; }
.card > .text-link:last-child, .card > .button:last-child { margin-top: auto; }   /* cards in a row are equal height: actions line up */
.card-grey { padding: 16px; background: var(--off-white); }
.card-box { padding: 20px; border: 1px solid var(--line-grey); background: var(--white); }
.card-wide { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: var(--gap); }
.card-large { grid-column: span 2; }
@media (min-width: 901px) {
  .card-large + .card > .media { flex: 1; aspect-ratio: auto; }   /* level with the large card */
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }  /* the whole card is the link */
.muted-box { padding: 32px 24px; border: 1px dashed var(--mid-grey); color: var(--dark-grey); text-align: center; }
@media (max-width: 900px) {
  .split, .card-wide { grid-template-columns: 1fr; }
  .split > .media { order: -1; }                  /* phones and tablets: photo first */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card-large { grid-column: auto; }
}

/* Text */
.intro { max-width: 36rem; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.3; }   /* a large line under a heading */
.description { max-width: 42rem; font-style: italic; color: var(--text-grey); }
.meta, .caption { font-size: 0.875rem; color: var(--dark-grey); }
.stage-dark .description, .stage-dark .meta { color: var(--stage-text); }
.tbc {
  display: inline-block; padding: 0 6px; border: 1px solid var(--dark-grey);
  background: var(--white); color: var(--black);
  font-size: 0.75rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; line-height: 1.6; vertical-align: middle;
}

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  border: 2px solid var(--black); background: var(--black); color: var(--white);
  font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.button-secondary { background: transparent; color: var(--black); }
.stage-dark .button { border-color: var(--white); background: var(--white); color: var(--black); }
.stage-dark .button-secondary { background: transparent; color: var(--white); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Media box: a labelled stand-in for a photo or a video.
   Shape: style="--ratio: 4 / 3" (and --ratio-phone). data-kind="photo|video" adds a tag. */
.media {
  --line: #cccccc;
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: var(--ratio, 16 / 9);
  padding: 28px 12px;
  border: 1px solid var(--mid-grey);
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    var(--light-grey);
  color: var(--dark-grey);
  font-size: 0.875rem; line-height: 1.4; text-align: center;
}
.media > span { max-width: 30em; padding: 4px 8px; background: var(--light-grey); }
.media[data-kind]::before {
  content: attr(data-kind);
  position: absolute; top: 8px; left: 8px;
  padding: 1px 6px; border: 1px solid currentColor; background: var(--white);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.media-fill { position: absolute; inset: 0; aspect-ratio: auto; place-items: start center; padding-top: 56px; }
.media-fill[data-kind]::before { right: 8px; left: auto; }
.stage-dark .media { --line: #4d4d4d; border-color: #5c5c5c; background-color: var(--stage-media); color: var(--stage-text); }
.stage-dark .media > span { background: var(--stage-media); }
.stage-dark .media[data-kind]::before { background: var(--stage); }
@media (max-width: 600px) {
  .media:not(.media-fill) { aspect-ratio: var(--ratio-phone, var(--ratio, 16 / 9)); }
}

/* Photo rows (Home key advantages, reference 2): full width, half photo and half text, the
   photo side alternating. Tablets and phones: overlay cards, the text over the photo. */
.photo-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.photo-row > .media { aspect-ratio: auto; border: 0; }
.photo-row-reverse > .media { order: -1; }
.photo-row-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 48px clamp(24px, 6vw, 96px); }
.photo-row-text h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (max-width: 900px) {
  .photo-row { width: min(100% - 2 * var(--page-padding), var(--max-width)); aspect-ratio: 1 / 1; min-height: auto; margin-inline: auto; grid-template-columns: 1fr; }   /* a square; grows rather than clips */
  .photo-row + .photo-row { margin-top: 16px; }
  .photo-row > * { grid-area: 1 / 1; }
  .photo-row > .media { position: static; order: -1; place-items: start center; padding-top: 44px; border: 1px solid var(--mid-grey); }
  .photo-row-text {   /* about the lower half: a bottom-up band the photo shows through, still 4.5:1 for the text */
    align-self: end; gap: 6px; padding: 16px 20px; color: var(--white);
    background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.6));
  }
  .photo-row-text h3 { font-size: 1.375rem; }
  .photo-row-text .description { font-size: 0.9375rem; line-height: 1.4; color: var(--stage-text); }   /* three lines at most */
  .photo-row-text :focus-visible { outline-color: var(--white); }
}

/* Overlay card (News featured row): the text sits over the photo on a dark band */
.card-overlay { display: grid; gap: 0; }
.card-overlay > * { grid-area: 1 / 1; }
.card-overlay > .media { position: static; }
.card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.card-overlay .card-text {   /* a dark bottom-up gradient behind the text; never light enough to fail contrast */
  align-self: end; padding: 32px 20px 20px; color: var(--white);
  background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.65));
}
.card-overlay .meta { color: var(--stage-text); }
.card-overlay :focus-visible { outline-color: var(--white); }
.date-badge { position: absolute; top: 8px; left: 8px; padding: 4px 8px; background: var(--black); color: var(--white); font-size: 0.8125rem; font-weight: 700; }

/* Notes and preview switches live in the HTML beside their section but never show on the
   page: the artboard (index.html) shows them beside the frames. */
.note, .state-switch { display: none !important; }

/* Frame mode (artboard): a numbered marker on each annotated section, matching its note */
.marker-layer { position: absolute; top: 0; left: 0; z-index: 60; pointer-events: none; }
.marker {
  position: absolute; left: 6px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--black); color: var(--white); box-shadow: 0 0 0 2px var(--white);
  font-size: 0.75rem; font-weight: 700; line-height: 1;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line-grey); background: var(--white); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 76px; padding-block: 12px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 2px solid var(--black); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"],
.has-sub:has([aria-current="page"]) > a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.has-sub { position: relative; }
.has-sub > a span { margin-left: 4px; }
.sub-nav {
  display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 13rem; padding: 6px 0;
  border: 1px solid var(--line-grey); background: var(--white); box-shadow: 0 8px 20px rgb(0 0 0 / 0.08);
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { display: block; }
.short-label, .menu-button { display: none; }
.menu-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--black); background: var(--white); font-weight: 600; cursor: pointer; }
.menu-button[aria-expanded="true"] { background: var(--black); color: var(--white); }
@media (max-width: 1279px) {
  .menu-button { display: inline-flex; align-items: center; order: 2; }
  .header-button { order: 1; margin-left: auto; }
  .site-nav { display: none; order: 3; flex-basis: 100%; margin-left: 0; }
  .menu-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; border-top: 1px solid var(--line-grey); }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--line-grey); }
  .site-nav .sub-nav { display: block; position: static; padding: 0 0 0 24px; border: 0; box-shadow: none; }
  .has-sub > a span { display: none; }
}
@media (max-width: 600px) {
  .header-bar { gap: 8px; }
  .logo { padding-inline: 10px; letter-spacing: 0.06em; }
  .long-label { display: none; }
  .short-label { display: inline; }
  .header-button, .menu-button { padding-inline: 12px; }
}

/* Footer */
.site-footer { padding-block: 48px 32px; border-top: 1px solid var(--line-grey); background: var(--off-white); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-title { margin-bottom: 12px; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-list > div { display: flex; flex-wrap: wrap; gap: 0 8px; padding-block: 6px; border-bottom: 1px solid var(--line-grey); }
.contact-list dt { min-width: 7.5em; font-weight: 700; }
.footer-list li + li { margin-top: 12px; }
.footer-pages { columns: 2; column-gap: 16px; }
.footer-pages a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-grey); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-pages a { min-height: 44px; }
}

/* Contact band */
.band { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 44rem; margin-inline: auto; text-align: center; }

/* Carousels (behaviour: wireframe.js, part 4) */
.carousel-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.carousel-controls button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.counter { padding: 0 4px; font-size: 0.875rem; text-align: center; font-variant-numeric: tabular-nums; }
.is-static .carousel-controls, .is-static [data-prev], .is-static [data-next] { display: none; }   /* a row that fits needs no controls */

/* Dots: one per position. While autoplay runs, a ring round the current dot fills up. */
@property --ring { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.dots { display: flex; justify-content: center; }
.dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.dots button::before, .dots button::after { content: ""; grid-area: 1 / 1; border-radius: 50%; }
.dots button::before { width: 10px; height: 10px; border: 2px solid currentColor; }
.dots button[aria-current="true"]::before { background: currentColor; }
.is-playing .dots button[aria-current="true"]::after {
  width: 24px; height: 24px;
  background: conic-gradient(currentColor var(--ring), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: ring-fill var(--autoplay, 6s) linear forwards;
}
@keyframes ring-fill { to { --ring: 100%; } }

[data-carousel="fade"] .slides { display: grid; }
[data-carousel="fade"] .slides > * { grid-area: 1 / 1; transition: opacity 0.6s ease, visibility 0.6s; }
[data-carousel="fade"] .slides > :not(.is-active) { opacity: 0; visibility: hidden; }
[data-carousel="fade"] .slides > .media:not(.is-active) > span,
[data-carousel="fade"] .slides > :not(.is-active) .media > span,
[data-carousel="fade"] .slides > :not(.is-active) .hero-caption { visibility: hidden; }   /* at once, not after the fade */

/* Row: cards side by side. On .slides, --cards (desktop), --cards-tablet and --cards-phone
   set how many cards show; a fraction lets the next card peek in. */
[data-carousel="row"] .slides {
  --visible: var(--cards, 3);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
[data-carousel="row"] .slides > * { scroll-snap-align: start; }
@media (max-width: 900px) { [data-carousel="row"] .slides { --visible: var(--cards-tablet, 2.2); } }
@media (max-width: 600px) { [data-carousel="row"] .slides { --visible: var(--cards-phone, 1.2); } }

/* Edge arrows (TOMCAR TX features): Next over the peeking card, Previous once moved; phones swipe */
.edge-arrows { position: relative; }
.edge-button {
  position: absolute; top: 36%; z-index: 2; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--black); background: var(--white); color: var(--black);
  font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
}
.edge-button[data-prev] { left: 12px; }
.edge-button[data-next] { right: 12px; }
@media (max-width: 600px) { .edge-arrows .edge-button { display: none; } }

/* Hero stage: media fills a dark stage, the caption sits over it */
.hero-stage { position: relative; overflow: hidden; }
.slide { position: relative; }
.hero-caption { position: absolute; right: 0; bottom: 32px; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-caption h1, .hero-caption h2 { max-width: 14em; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); }
.photo-hero { aspect-ratio: 21 / 9; min-height: 440px; }
@media (max-width: 600px) { .photo-hero { aspect-ratio: 4 / 5; } }

/* Home hero (reference 1): fills the window; caption centred in the lower third;
   dots centred at the bottom; pause bottom-right */
.home-hero { height: calc(var(--screen-h, 100svh) - var(--header-h, 0px)); min-height: 480px; max-height: 1200px; }   /* the rest of the first screen; the cap guards a frame without --screen-h */
.home-hero .slides { height: 100%; }
.home-hero .slides > * { transition-duration: 0.3s; }
.home-hero .hero-caption { bottom: 120px; align-items: center; text-align: center; }
.home-hero .dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.hero-pause {
  position: absolute; right: 24px; bottom: 24px; min-height: 44px; padding: 0 14px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
}
.hero-pause[aria-pressed="true"] { background: var(--white); color: var(--black); }

/* Photo gallery on a dark stage (TOMCAR TX, reference 3) */
.gallery { margin-top: 48px; padding-block: var(--section-space); }
.gallery .stack { margin-bottom: 24px; }
.gallery h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.gallery .carousel { max-width: 1040px; margin-inline: auto; }
.gallery-frame { position: relative; overflow: hidden; border: 1px solid #5c5c5c; border-radius: 12px; }
.gallery-frame .media { --ratio-phone: 1 / 1; border: 0; }
.frame-button { position: absolute; right: 12px; bottom: 12px; }
.thumbs { position: relative; display: flex; justify-content: safe center; gap: 8px; margin-top: 16px; padding-bottom: 4px; overflow-x: auto; }
.thumbs button { flex: 0 0 112px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--white); }
.thumbs .media { padding: 4px; font-size: 0.75rem; }
.strip-controls { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.strip-controls button { min-width: 44px; min-height: 44px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 600px) {
  .thumbs button { flex-basis: calc((100% - 3 * 8px) / 4); }   /* about four in view */
  .strip-controls { display: flex; }
}

/* Full-screen view: an in-page dialog with Close, the photo and dots */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
  padding: 72px var(--page-padding) 24px; border: 0; background: var(--stage); color: var(--white);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lightbox .media { width: min(100%, calc((min(var(--screen-h, 100svh), 1200px) - 200px) * 16 / 9)); }
.frame-mode .lightbox { bottom: auto; height: var(--screen-h, 900px); max-height: 1200px; }   /* placed where the gallery is */
.lightbox [data-close] { position: absolute; top: 16px; right: 16px; }

/* Specification tables (TOMCAR TX) */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; margin-top: 32px; }
.spec-table { width: 100%; margin-top: 12px; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 12px 0; border-bottom: 1px solid var(--line-grey); font-weight: 400; text-align: left; }
.spec-table td { text-align: right; }
@media (max-width: 900px) { .spec-groups { grid-template-columns: 1fr; } }

/* Make your own TOMCAR: preview left, variant tiles right (behaviour: wireframe.js, part 7) */
.configurator { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); align-items: start; gap: 32px; margin-top: 32px; }
.configurator-preview { position: sticky; top: 24px; display: grid; gap: 12px; transition: opacity 0.2s ease; }
.configurator-preview.is-fading { opacity: 0.15; }
.variant-panel { display: grid; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line-grey); background: var(--white); }
.variant-panel legend { padding: 0 6px; font-size: 1.125rem; font-weight: 700; }
.variant-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.variant-tile { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line-grey); cursor: pointer; }
.variant-tile:has(:checked) { outline: 3px solid var(--black); outline-offset: -3px; }
.variant-tile .media { padding: 6px; font-size: 0.75rem; }
.variant-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.variant-name input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--black); }
.variant-tile .description { font-size: 0.875rem; }
.variant-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.variant-bar { display: none; }
@media (max-width: 900px) {
  .configurator { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .configurator-preview { position: static; }
  .variant-summary { display: none; }
  .variant-bar {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
    padding: 12px 16px; border-top: 1px solid var(--line-grey); background: var(--white);
    box-shadow: 0 -6px 16px rgb(0 0 0 / 0.08);
  }
}

/* Filter tabs and order select (News & Activities; behaviour: wireframe.js, part 6) */
/* The row is as tall as the tabs (56 px); Order by is centred on their labels, clear of the divider.
   Off the Events tab it is invisible but keeps its space, so nothing below ever moves. */
.filter-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 32px; }
.filter-row::after, .tabs::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--line-grey); }   /* the divider */
.tabs { position: relative; display: flex; gap: 4px; }
.tabs::after { content: none; }
.tabs button { position: relative; z-index: 1; min-height: 56px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 600; cursor: pointer; }   /* the active underline sits over the divider */
.tabs button[aria-pressed="true"] { border-bottom-color: var(--black); }
.order-by { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.is-invisible { visibility: hidden; }
select {
  min-height: 44px; padding: 0 40px 0 12px; border: 1px solid var(--dark-grey); border-radius: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--black) 50%) calc(100% - 21px) 50% / 6px 6px no-repeat,
              linear-gradient(135deg, var(--black) 50%, transparent 50%) calc(100% - 15px) 50% / 6px 6px no-repeat,
              var(--white);   /* a drawn chevron in place of the native arrow */
}
@media (max-width: 600px) {   /* phones: the divider under the tabs, Order by centred below */
  .filter-row { flex-direction: column; align-items: stretch; }
  .filter-row::after { content: none; }
  .tabs::after { content: ""; }
  .order-by { align-self: center; }
}
.load-more { margin-top: 40px; }

/* Post page */
.reading { max-width: 800px; }                     /* the post's reading column */
.post-cover { max-width: 1248px; margin: 40px auto 0; }   /* wider than the column */
.event-info { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line-grey); }
.event-info > div { display: flex; flex-wrap: wrap; gap: 0 12px; }
.event-info dt { min-width: 6em; font-weight: 700; }
.article-body { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.article-body figure { display: grid; gap: 8px; }

/* Pages not wireframed yet (later.html) */
.page-list { align-self: stretch; list-style: none; margin: 0; padding: 0; }
.page-list li { padding-block: 12px; border-bottom: 1px solid var(--line-grey); }
.page-list a { padding-block: 10px; font-weight: 700; }   /* taller hit area */

/* About page */
.story-row { margin-top: 32px; align-items: start; }

/* No movement for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
