/* allurehomes.sg main site (Melissa Chan Properties). Project sites such as /thomson-reserve/ have their own CSS. */
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
:root {
  /* Melissa Chan Properties: warm cream base, espresso text and footer, gold accents. Green only on WhatsApp buttons. */
  --espresso: #2b2420;
  --bronze: #8a5a2e;
  --gold: #d2a774;
  --gold-2: #c08f57;
  --cream: #f6f1eb;
  --sand: #ede4d8;
  --paper: #ffffff;
  --ink: #2b2420;
  --muted: #6b625b;
  --line: #e4d9cb;
  --wa: #14803e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 36, 31, .06), 0 10px 32px rgba(27, 36, 31, .09);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--espresso); margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.kicker { font: 800 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--espresso); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font: 700 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: #24170a; }
.btn-gold:hover { background: var(--gold-2); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0f6e35; }
.btn-ghost { border-color: var(--line); color: var(--espresso); background: var(--paper); }
.btn-ghost:hover { border-color: var(--espresso); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 235, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--bronze); }
.nav a[aria-current] { text-decoration: underline 2px var(--gold); text-underline-offset: 8px; }
.hdr .btn { padding: .6em 1.1em; font-size: .9rem; white-space: nowrap; }
/* phone menu: a button that opens the links as a list under the header */
.nav-toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--espresso); transition: transform .2s, background .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.hdr.open .nav-toggle span { background: transparent; }
.hdr.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.hdr.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .hdr .btn { margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 16px 12px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgba(43, 36, 32, .08); }
  .hdr.open .nav { display: flex; }
  .nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current] { text-decoration: none; }
}
@media (max-width: 480px) { .hdr-in { gap: 12px; } .brand img { height: 28px; } .hdr .btn { padding: .6em .9em; } }
@media (max-width: 400px) { .brand img { height: 26px; } .wide-only { display: none; } }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 1.6em; }
.portrait { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .portrait { max-width: 360px; aspect-ratio: 1; } }

/* sections */
.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec.alt { background: var(--sand); }
.sec-head { max-width: 720px; margin-bottom: 32px; }

/* launch card */
.launch { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.launch-img { position: relative; min-height: 340px; background: var(--espresso); }
.launch-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.launch-img .ai { position: absolute; right: 12px; bottom: 10px; font-size: .74rem; font-weight: 600; color: #fff; background: rgba(43, 36, 32, .62); padding: 3px 9px; border-radius: 999px; }
.launch-body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 4px; }
.tag { align-self: flex-start; font: 800 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--espresso); color: var(--gold); padding: 6px 12px; border-radius: 999px; margin-bottom: 10px; }
.launch-body h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); }
.launch-body ul { margin: 6px 0 22px; padding-left: 1.2em; color: var(--muted); }
.launch-body li { margin: 4px 0; }
.launch-body .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .launch { grid-template-columns: 1fr; } .launch-img { min-height: 240px; } }
/* homepage: the link under "Now launching" and the dark "N more launches" panel under the cards (tools/build.py more_launches) */
.ml-top { display: inline-block; margin-top: 2px; font-weight: 800; color: var(--bronze); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.ml-top:hover { color: var(--espresso); }
.more-launches { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 32px; margin-top: 22px; padding: clamp(24px, 3.5vw, 40px); background: var(--espresso); border-radius: 24px; color: rgba(255, 255, 255, .8); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.more-launches:hover { transform: translateY(-2px); }
.more-launches:hover .ml-btn { background: var(--gold-2); }
.ml-faces { display: flex; padding-left: 14px; }
.ml-faces img, .ml-plus { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 3px solid var(--espresso); margin-left: -14px; object-fit: cover; background: #4a3f38; }
.ml-plus { display: grid; place-items: center; background: var(--gold); color: var(--espresso); font: 800 .95rem var(--sans); }
.ml-text { display: flex; flex-direction: column; gap: 4px; }
.ml-kicker { font: 800 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ml-title { font: 600 clamp(1.7rem, 1.4rem + 1vw, 2.2rem)/1.1 var(--serif); color: #fff; }
.ml-sub { font-size: .98rem; }
.ml-btn { padding: 1em 1.8em; font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 860px) { .more-launches { grid-template-columns: 1fr; } .ml-btn { width: 100%; } }
/* new-launch alert sign-up (src/shared/alert-form.html) */
.alert-form { margin-top: 22px; padding: clamp(20px, 3vw, 30px); background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); }
.alert-head h3 { margin-bottom: .2em; }
.alert-head p { margin-bottom: 14px; }
.alert-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 0 14px; align-items: end; }
.alert-fields .btn { margin-bottom: 16px; height: 48px; }
@media (max-width: 860px) { .alert-fields { grid-template-columns: 1fr; } .alert-fields .btn { justify-self: start; } }
.alert-form .consent { margin-bottom: 4px; }
.alt-wa { margin: 6px 0 0; }

/* form messages, shared by the contact and alert forms */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 10px 0 0; font-weight: 700; }
.form-msg:empty { display: none; }
.form-msg.err { color: #a33a2a; }
.form-msg.test { font-weight: 400; padding: 10px 14px; border-radius: 12px; background: #fbf3e8; }
.form-done h3 { margin-bottom: .2em; }
.form-done p { margin: 0; color: var(--muted); }
.contact-form { margin-top: 8px; }

/* start here: three paths */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1060px) { .paths { grid-template-columns: repeat(2, 1fr); } }
.path { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 24px 22px; display: flex; flex-direction: column; }
.path h3 { font-size: 1.55rem; }
.path p { flex: 1; }
.path a { font-weight: 700; text-decoration: none; }
.path a:hover { text-decoration: underline; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
/* the sellers' card: a full-width row under the four buyers' cards (Melissa, 13 Oct 2026) */
.path-sell { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px 32px; }
.path-sell p { margin: 0; max-width: 640px; }
.path-sell .btn { flex: none; color: #24170a; }
.path-sell .btn:hover { text-decoration: none; }
@media (max-width: 860px) { .path-sell { flex-direction: column; align-items: flex-start; } }

/* calculators */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }   /* 6 tools: 2 rows of 3 */
@media (max-width: 1060px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool { display: grid; gap: 6px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.tool:hover { border-color: var(--espresso); transform: translateY(-2px); }
.tool b { font: 600 1.45rem/1.15 var(--serif); color: var(--espresso); }
.tool span:last-child { color: var(--muted); font-size: .95rem; }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--espresso); font: 800 1.2rem var(--sans); margin-bottom: 6px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }

/* videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vid { text-decoration: none; color: var(--ink); display: grid; gap: 10px; align-content: start; }
.vid-thumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--espresso); box-shadow: var(--shadow); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px; border-radius: 11px; background: rgba(200, 30, 30, .92); }
.vid-thumb::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.vid b { font-weight: 700; line-height: 1.35; }
.vid:hover b { color: var(--bronze); }
.vid small { color: var(--muted); }
.more-row { margin-top: 26px; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }

/* guides and reviews (shown once there is content) */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); display: grid; gap: 8px; align-content: start; }
.card b { font: 600 1.4rem/1.15 var(--serif); color: var(--espresso); }
.card span { color: var(--muted); font-size: .95rem; }
.review { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1rem; flex: 1; }
.review figcaption b { color: var(--espresso); }
.reviews-all { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .reviews-all { grid-template-columns: 1fr; } }
.rating-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -8px 0 26px; }
/* star rating: gold stars filled to --r out of 5 over grey ones */
.stars { position: relative; display: inline-block; font-size: 1.05rem; line-height: 1; letter-spacing: 2px; color: var(--line); white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: var(--gold); }
.review figcaption { font-weight: 700; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* calculator */
.calc-wrap { max-width: 820px; }
.calc { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 24px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.calc-progress { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.calc-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.calc-count { font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 18px; }
.q { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); margin-bottom: .3em; }
.q-sub { margin-bottom: 20px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.opt { position: relative; cursor: pointer; display: flex; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { flex: 1; display: grid; gap: 2px; align-content: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); transition: border-color .15s, background .15s; }
.opt b { font-weight: 700; }
.opt small { color: var(--muted); }
.opt input:checked + span { border-color: var(--gold-2); background: #fbf3e8; box-shadow: 0 0 0 3px rgba(210, 167, 116, .28); }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.f { display: grid; gap: 6px; align-content: start; margin: 0 0 16px; font-weight: 700; font-size: .92rem; }
.f-label { font-weight: 700; font-size: .92rem; margin: 6px 0 8px; }
.f input, .f select, .f textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%; }
.f textarea { resize: vertical; min-height: 120px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(210, 167, 116, .25); }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.money { position: relative; display: block; }
.money i { position: absolute; left: .9em; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.money input { padding-left: 1.9em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.found { margin: 12px 0 0; font-weight: 600; min-height: 1.5em; }
.comps { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; }
/* private homes: URA's recent sales in the development (calculator.js loadPrivateComps) */
.comps-table { overflow-x: auto; margin: 10px 0 6px; }
.comps table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.comps th, .comps td { padding: 5px 8px 5px 0; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.comps th:first-child, .comps td:first-child { text-align: left; }
.comps th { font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.comps td small { display: block; font-size: .72rem; color: var(--bronze); font-weight: 700; }
.comps-src { margin: 6px 0 0; font-size: .74rem; line-height: 1.45; color: var(--muted); }
/* sales on a floor near the owner's (sales.js, 14 Oct 2026) */
.comps tr.is-similar td { background: rgba(138, 90, 46, .09); font-weight: 600; }
.comps td small.similar-floor { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--bronze); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
@media (max-width: 480px) { .comps table { font-size: .76rem; } .comps th, .comps td { padding-right: 5px; } .comps th { font-size: .66rem; letter-spacing: .02em; } .comps th:last-child, .comps td:last-child { padding-right: 0; } }
/* What's my home worth? (src/calculator/home-value/): the monthly update sign-up under the estimate */
.hv-sign { margin-top: 26px; padding: 4px 20px 18px; border-radius: 16px; background: #fdf6ec; border: 1px solid #ecd6b5; border-left: 4px solid var(--gold); }
.hv-sign h3 { margin-top: .9em; }
.hv-next { margin-top: 20px; }
.owner { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; margin: 8px 0 0; }
.owner legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 4px 0 14px; }
.check input { margin-top: 4px; accent-color: var(--gold-2); }
.consent { color: var(--muted); }
.calc-error { color: #a33a2a; font-weight: 700; min-height: 1.4em; margin: 6px 0 0; }
.calc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.calc-nav .btn[hidden] { display: none; }
.calc-nav #calc-next { margin-left: auto; }
.calc-note { margin-top: 18px; }
.sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.sum div { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.sum span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.sum b { font: 600 1.7rem/1.1 var(--serif); color: var(--espresso); }
@media (max-width: 600px) { .sum { grid-template-columns: 1fr; } }
.ok, .test, .warn { padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
.ok { background: #e8f4ec; }
.test, .warn { background: #fbf3e8; }
.report h3 { font-size: 1.45rem; margin-top: 1.4em; }
.rep { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rep th, .rep td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.rep td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rep th small { display: block; color: var(--muted); font-size: .8rem; }
.rep.stages { margin-top: 10px; }
.rep.stages tr:first-child th { font-weight: 700; }
.calc-result .btns { margin-top: 22px; }
/* calculator tools under /calculator/ (stamp duty, payment schedule, HDB timeline): a form card, then a results card */
.calc + .calc { margin-top: 18px; }
.calc h3 { font-size: 1.45rem; margin-top: 1.4em; }
.buyer { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 0; margin: 0 0 12px; }
.buyer legend { font-weight: 700; font-size: .9rem; padding: 0 6px; }
.sum.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .sum.three { grid-template-columns: 1fr; } }
.sum .total { background: var(--espresso); border-color: var(--espresso); }
.sum .total span { color: rgba(255, 255, 255, .72); }
.sum .total b { color: var(--gold); }
.sum .total small { color: rgba(255, 255, 255, .72); }
.sum small { color: var(--muted); font-size: .8rem; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); font-size: .95rem; margin: 0 0 12px; }
.note b { color: var(--espresso); }
.sched { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.sched th, .sched td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched th:first-child, .sched td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.sched thead th { font: 800 .72rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sched td small { display: block; color: var(--muted); font-size: .8rem; }
.sched tfoot td { font-weight: 800; border-bottom: 0; }
.sched .nil { color: #b9aea3; }
@media (max-width: 700px) {
  .sched thead { display: none; }
  .sched, .sched tbody, .sched tfoot, .sched tr, .sched td { display: block; width: 100%; }
  .sched tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin-bottom: 10px; background: var(--cream); }
  .sched td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  .sched td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
  .sched td:first-child { display: block; font-weight: 700; padding: 2px 0 6px; }
  .sched td:first-child::before { content: none; }
  .sched td.nil { display: none; }
}
.tl { list-style: none; margin: 8px 0 0 6px; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 10em 1fr; gap: 2px 18px; padding: 10px 0 14px 22px; border-left: 2px solid var(--line); }
.tl li:last-child { border-left-color: transparent; }
.tl li::before { content: ""; position: absolute; left: -8px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.tl li.key::before { background: var(--gold); }
.tl time { font-weight: 800; color: var(--espresso); font-variant-numeric: tabular-nums; }
.tl b { display: block; }
.tl small { display: block; color: var(--muted); font-size: .9rem; }
@media (max-width: 600px) { .tl li { grid-template-columns: 1fr; } }

.more-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; }
.more-tools b { margin-right: 6px; }
.more-tools a { padding: .45em .95em; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--espresso); text-decoration: none; font-weight: 600; }
.more-tools a:hover { border-color: var(--espresso); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

/* about + contact */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 24px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.contact-card dl { margin: 18px 0 24px; display: grid; gap: 12px; }
.contact-card dt { font: 800 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card dd a { color: var(--ink); }

/* "Coming next" box on pages that aren't finished yet */
.soon { max-width: 760px; margin-top: 8px; padding: 20px 26px 10px; border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--paper); }
.soon .kicker { margin-bottom: 8px; }
.soon ul { margin: 0 0 10px; padding-left: 1.2em; color: var(--muted); }
.soon li { margin: 4px 0; }

/* plain text pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.8rem; margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }

/* footer */
.ftr { background: var(--espresso); color: rgba(255, 255, 255, .78); padding: 48px 0 40px; font-size: .9rem; }
.ftr a { color: var(--gold); }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.ftr-logo { height: 34px; width: auto; margin-bottom: 12px; }
.ftr-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 28px; align-content: start; }
.ftr-nav a { text-decoration: none; }
.ftr-nav a:hover { text-decoration: underline; }
.ftr .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: rgba(255, 255, 255, .62); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* several launches stacked */
.launch + .launch { margin-top: 22px; }

/* ---------- schools & P1 registration ---------- */
.school-top { padding-bottom: clamp(32px, 4vw, 56px); }
.sec-head.wide { max-width: 860px; }
.lead { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); }
.crumbs { font-size: .86rem; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts4 > div { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; }
.facts4 span { font: 800 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts4 b { font: 600 1.4rem/1.15 var(--serif); color: var(--espresso); }
.facts4 small { color: var(--muted); font-size: .84rem; }
@media (max-width: 860px) { .facts4 { grid-template-columns: 1fr 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); margin: 0 0 12px; }
.ballot { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 680px; }
.ballot th, .ballot td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ballot thead th { font: 800 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream); }
.ballot tbody th { width: 30%; font-weight: 800; color: var(--espresso); }
.ballot tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; margin-top: 3px; line-height: 1.4; }
.ballot td b { font: 600 1.2rem/1 var(--serif); color: var(--espresso); }
.ballot td small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.ballot tr.key { background: #fbf4ea; }
.ballot tr:last-child th, .ballot tr:last-child td { border-bottom: 0; }
.ballot.yrs, .ballot.phases { min-width: 560px; }
.ballot.yrs tbody th { width: auto; }
.ballot.phases tbody th { width: 18%; white-space: nowrap; }
.ballot.phases td:last-child { color: var(--muted); font-size: .88rem; width: 32%; }
.st { display: block; width: fit-content; margin-top: 6px; font: 800 .72rem/1.3 var(--sans); padding: 4px 9px; border-radius: 999px; }
.st.bal { background: #f6e1d9; color: #8a2f1c; }
.st.open { background: #e3efe6; color: #1e6b3d; }
.st.none { background: var(--sand); color: var(--muted); }
.nil { color: #b9aea3; }
.note.insight { background: #fdf6ec; border-color: #ecd6b5; border-left: 4px solid var(--gold); padding: 16px 18px; margin-top: 18px; }
.note p { margin: 0 0 8px; }
.note p:last-child { margin-bottom: 0; }
.cols2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 14px; }
.card-plain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card-plain h3 { font-size: 1.4rem; margin-bottom: .4em; }
.card-plain p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .cols2-grid { grid-template-columns: 1fr; } }
.ticks-m { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 9px; }
.ticks-m li { position: relative; padding-left: 24px; }
.ticks-m li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 800; }
.sub-h { font-size: 1.45rem; margin: 26px 0 8px; }
.school-cards { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.school-card { display: grid; gap: 6px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.school-card b { font: 600 1.6rem/1.15 var(--serif); color: var(--espresso); }
.school-card span { color: var(--muted); }
.school-card .go { color: var(--bronze); font-weight: 800; margin-top: 4px; }
.school-card.ask { box-shadow: none; border-top-color: var(--line); }
.school-card .btn { justify-self: start; margin-top: 6px; }
a.school-card:hover { border-color: var(--gold-2); }
@media (max-width: 760px) { .school-cards { grid-template-columns: 1fr; } }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .split2 { grid-template-columns: 1fr; } }
.prio { padding-left: 1.3em; display: grid; gap: 6px; margin: 0 0 14px; }
.prio li::marker { color: var(--bronze); font-weight: 800; }
.sources a { color: var(--muted); }
.launch + .small { margin-top: 14px; }
/* homepage: moving for a school */
.school-band { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: stretch; }
.school-band .intro h2 { margin-bottom: .3em; }
@media (max-width: 960px) { .school-band { grid-template-columns: 1fr; } }
.school-sec { padding-bottom: clamp(24px, 3vw, 40px); }
.school-sec + .sec { border-top: 1px solid var(--line); }
.sec.slim { padding: 28px 0 36px; }
.school-card .tag { justify-self: start; color: var(--gold); margin-bottom: 4px; }
.swipe-hint { display: none; }
@media (max-width: 640px) {
  .ballot { min-width: 560px; font-size: .86rem; }
  .ballot th, .ballot td { padding: 10px 9px; }
  .ballot tbody th { width: 26%; }
  .ballot tbody th small { font-size: .72rem; }
  .ballot td b { font-size: 1.05rem; }
  .swipe-hint { display: block; font-size: .8rem; font-weight: 700; color: var(--bronze); margin: 0 0 6px; }
}
.school-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.school-links { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.school-links a { font-weight: 800; color: var(--bronze); text-decoration: none; }
.school-links a:hover { text-decoration: underline; }
.school-links small { display: block; color: var(--muted); font-size: .84rem; }
.note.policy { background: #fdf6ec; border-color: #ecd6b5; border-left: 4px solid var(--gold); padding: 16px 18px; margin: 18px 0 26px; }

/* YouTube videos inside a page: {{YT:id|title}} in page.html; the player loads only when pressed (layout.html) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--espresso); box-shadow: var(--shadow); }
.yt button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 13px; background: rgba(200, 30, 30, .92); transition: transform .15s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt button:hover .yt-play { transform: scale(1.06); }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-cap { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.vid-cap b { color: var(--ink); }
/* homepage school band: the video card */
.school-card.video { gap: 10px; }
.school-card.video b { font-size: 1.25rem; }
/* a video beside its text */
.vid-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .vid-split { grid-template-columns: 1fr; } }
/* about: my own journey */
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.journey figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.journey .tag { display: inline-block; margin: 14px 0 6px; }
.journey h3 { margin: 0 0 6px; }
.journey p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; } }
/* written guides */
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 1.6em 0 .5em; }
.article p, .article li { font-size: 1.06rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.25em; }
.article li { margin: 6px 0; }
.article .yt { margin: 6px 0 8px; }
.article .table-wrap { margin: 14px 0 6px; }
.article .ballot { min-width: 0; }
.article .ballot tbody th { width: auto; }
.article .callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.article .callout p:last-child { margin-bottom: 0; }
.article-meta { font-size: .88rem; color: var(--muted); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0 0 28px; }
.guide-card { display: grid; gap: 8px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.guide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card .gc-b { padding: 4px 18px 18px; display: grid; gap: 6px; }
.guide-card b { font: 600 1.35rem/1.2 var(--serif); color: var(--espresso); }
.guide-card span { color: var(--muted); font-size: .94rem; }
.guide-card .go { color: var(--bronze); font-weight: 800; }
a.guide-card:hover { border-color: var(--gold-2); }
/* launches page: search */
.lsearch-sec { padding-bottom: 0; }
.lsearch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 900px; }
.lsearch input { flex: 1 1 340px; min-width: 0; font: 500 1rem var(--sans); padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); }
.lsearch input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 167, 116, .25); }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchips button { font: 700 .86rem var(--sans); padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.lchips button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--gold); }
.lcount { flex-basis: 100%; margin: 0; min-height: 1.2em; }
.lnone { margin: 18px 0 0; padding: 16px 20px; border: 1.5px dashed var(--gold); border-radius: var(--radius); background: var(--paper); max-width: 900px; }
.lgroup[hidden], a.launch[hidden] { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lfilters { display: flex; flex-wrap: wrap; gap: 10px 22px; }
/* bedrooms and budget on /launches/ (src/launches/launch-fit.js) */
.lfit { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.lfit-h { font: 800 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.lfit select { appearance: none; -webkit-appearance: none; font: 700 .9rem var(--sans); padding: 10px 38px 10px 16px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--ink); cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2420' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 15px center; }
.lfit select:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(210, 167, 116, .35); }
.lfit select.on { background-color: var(--espresso); border-color: var(--espresso); color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d2a774' stroke-width='2'/%3E%3C/svg%3E"); }
.lfit select option { background: var(--paper); color: var(--ink); }
.lcount a { font-weight: 700; }
.lmatch { align-self: flex-start; margin: 6px 0 6px; padding: 8px 14px; border-radius: 12px; border-left: 4px solid var(--gold); background: #f8ecd8; color: var(--espresso); font: 800 .95rem/1.35 var(--sans); }
.lmatch[hidden] { display: none; }
.lmatch-none { background: var(--sand); color: var(--ink); font-weight: 600; }
@media (max-width: 480px) { .lfit select { flex: 1 1 140px; } .lfit-h { flex-basis: 100%; } }
.lreg { position: absolute; left: 12px; top: 12px; z-index: 1; font: 800 .74rem var(--sans); letter-spacing: .08em; color: var(--espresso); background: rgba(255, 253, 249, .94); padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.lsold { position: absolute; right: 12px; top: 12px; z-index: 1; font: 800 .8rem var(--sans); letter-spacing: .02em; color: var(--espresso); background: var(--gold); padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }   /* % sold on /launches/ cards (build.py sold_badges) */
[data-card][hidden] { display: none !important; }
.gfilters { margin: 0 0 22px; }
.gtags { display: flex; flex-wrap: wrap; gap: 6px; }
.gtags .tag { margin: 0; }
.guide-card[hidden] { display: none !important; }
.guide-card .gtags .tag { color: var(--gold); font-size: .66rem; letter-spacing: .08em; padding: 4px 9px; }
/* schools page: the school dropdown */
.school-pick { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: stretch; }
.sp-main { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.sp-label { display: block; font: 600 1.4rem/1.2 var(--serif); color: var(--espresso); margin-bottom: 12px; }
.sp-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-row select { flex: 1 1 320px; min-width: 0; font: 600 1rem var(--sans); color: var(--ink); padding: 13px 44px 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232b2420' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sp-row select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 167, 116, .25); }
.sp-all { margin: 14px 0 0; line-height: 1.8; }
.sp-all a { color: var(--bronze); white-space: nowrap; }
@media (max-width: 860px) { .school-pick { grid-template-columns: 1fr; } }
.school-pick > * { min-width: 0; }
.sp-row select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 560px) { .sp-all a { white-space: normal; } .sp-row .btn { width: 100%; } }
.sp-main { margin-bottom: 18px; }
.sp-label { font-size: 1.2rem; margin-bottom: 10px; }
/* schools page cards: name, description, link, then the launch tags along the bottom */
.school-card.sc { display: flex; flex-direction: column; gap: 6px; }
.school-card.sc .sc-tags { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.school-card.sc .sc-tags .tag { margin: 0; font-size: .66rem; padding: 5px 10px; line-height: 1.3; }
.school-card.sc .sc-tags .tag { white-space: nowrap; }
.school-card.sc .sc-tags .tag { max-width: 100%; white-space: normal; }     /* a long launch name wraps inside its pill instead of spilling out */
/* schools page: search and filters over the school cards (filters.js) */
.ssearch { max-width: none; margin: 0 0 18px; }
.ssearch + .lnone { margin: 0 0 18px; }
/* school pages: about the school, CCAs, programmes, Phase 2C history, nearby schools (written by tools/schools/pages.py) */
.sfacts { display: grid; grid-template-columns: max-content 1fr; gap: 9px 16px; margin: 0; }
.sfacts dt { font: 800 .7rem/1.7 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sfacts dd { margin: 0; overflow-wrap: anywhere; }
.sfacts a { color: var(--bronze); }
@media (max-width: 480px) { .sfacts { grid-template-columns: 1fr; gap: 1px; } .sfacts dd { margin-bottom: 9px; } }
.about-school + .sec { border-top: 1px solid var(--line); }
.cca-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 14px; }
.cca-grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cca-grid h4, .prog-k { display: block; font: 800 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); margin: 0 0 6px; }
.cca-grid p { margin: 0; line-height: 1.6; }
.card-plain.prog h4 { font: 600 1.25rem/1.25 var(--serif); color: var(--espresso); margin: 2px 0 6px; }
.card-plain.prog p { margin: 0; }
.ballot.p2c { min-width: 520px; }
.ballot.p2c th, .ballot.p2c td { padding: 10px 14px; vertical-align: middle; }
.ballot.p2c .st { margin-top: 0; }
.nearby-sec { border-top: 1px solid var(--line); }
.near-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; }
.near-links a { font-weight: 800; color: var(--bronze); text-decoration: none; }
.near-links a:hover { text-decoration: underline; }
.near-links small { display: block; color: var(--muted); font-size: .84rem; }
.guide-card .gc-date { color: var(--muted); font-size: .82rem; }

/* upcoming launches (tools/upcoming/pages.py): cards on /launches/upcoming/, /launches/ and the homepage, and the site pages */
.up-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.up-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 20px 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.up-card:hover { border-color: var(--gold-2); }
.up-card[hidden] { display: none; }
.up-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.up-when { font: 800 .68rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--espresso); color: var(--gold); padding: 5px 10px; border-radius: 999px; }
.up-pill { font: 800 .68rem/1.3 var(--sans); letter-spacing: .06em; color: var(--espresso); background: var(--cream); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.up-card h3 { font-size: 1.55rem; margin: 6px 0 0; }
.up-where { color: var(--muted); font-size: .92rem; }
.up-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.up-facts b { font: 600 1.15rem/1.2 var(--serif); color: var(--espresso); }
.up-dev { font-size: .84rem; color: var(--muted); }
.up-card .go { margin-top: auto; padding-top: 10px; color: var(--bronze); font-weight: 800; }
.up-next { border-top: 1px solid var(--line); }
.up-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.up-points { padding-left: 1.2em; margin: 0 0 16px; }
.up-points li { margin: 7px 0; }
.ballot.up-tbl { min-width: 0; }
.ballot.up-tbl tbody th { width: 36%; }
.ballot.up-tbl td small { line-height: 1.4; }
.ballot.up-land { min-width: 760px; }
.ballot.up-land tbody th { width: auto; }
.ballot.up-land th small { margin-top: 2px; }
.up-rel { padding-left: 1.2em; margin: 0; }
.up-rel li { margin: 6px 0; }
.up-src { margin-top: 18px; }
/* upcoming launches: the site map (tools/upcoming/site_maps.py) */
.up-where { padding-top: 8px; }
.up-map { margin: 18px 0 14px; }
.up-map img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line, #e6ddd2); box-shadow: 0 10px 30px rgba(43, 36, 32, .08); }
.up-map figcaption { margin-top: 8px; }
/* upcoming launches: the showflat location, once it's out (tools/upcoming/pages.py, 18 Oct 2026) */
#showflat .up-rel + .btns { margin-top: 22px; }
#showflat .up-map { margin-top: 0; }
/* upcoming launches: the artist's impression under the key facts, once there is one (27 Oct 2026) */
.up-map.up-render { margin: 24px 0 0; }
#notify .alert-form { margin-top: 0; }
.up-soon-h { margin: 28px 0 12px; font-weight: 700; }
@media (max-width: 960px) { .up-grid { grid-template-columns: repeat(2, 1fr); } .up-two { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .up-grid { grid-template-columns: 1fr; } }
.up-faq > h2:first-child { margin-top: 0; }
.lgroup.up-g { padding: clamp(36px, 5vw, 64px) 0; }
/* The Marina Collection bank sale (tools/marina-collection/page.py, 26 Oct 2026): photo, availability chart, unit tables, floor plans */
.mc-hero { margin: 22px 0 0; }
.mc-hero img, .mc-side img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(43, 36, 32, .08); }
.mc-hero figcaption, .mc-side figcaption { margin-top: 6px; }
.mc-side { margin: 22px 0 18px; }
.mc-chart { display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 18px 0 8px; }
.mc-blk { max-width: 100%; }
.mc-bn { margin: 0 0 6px; font-weight: 800; font-size: .9rem; color: var(--espresso); }
.mc-grid { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(14px, 28px)); gap: 3px; }
.mc-grid > * { height: 22px; border-radius: 4px; }
.mc-h, .mc-f { display: flex; align-items: center; justify-content: center; font-size: .68rem; color: var(--muted); }
.mc-c { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
a.mc-c.b3 { background: var(--gold); }
a.mc-c.b4 { background: var(--bronze); }
a.mc-c:hover, a.mc-c:focus-visible { outline: 2px solid var(--espresso); outline-offset: 1px; }
.mc-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 26px; padding: 0; list-style: none; font-size: .85rem; color: var(--muted); }
.mc-key i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 3px; vertical-align: -2px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.mc-key i.b3 { background: var(--gold); box-shadow: none; }
.mc-key i.b4 { background: var(--bronze); box-shadow: none; }
.ballot.mc-units { min-width: 0; }
.ballot.mc-units th, .ballot.mc-units td { padding: 10px 14px; }
.ballot.mc-units tbody th { width: auto; }
.ballot.mc-units .num { text-align: right; white-space: nowrap; }
.ballot.mc-units .mc-id { white-space: nowrap; }
.ballot.mc-units tbody th small { margin-top: 2px; }
.ballot.mc-units tr:target { background: #fbf4ea; }
#units h3 { margin-top: 22px; }
.mc-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 18px 0 12px; }
.mc-plans figure { margin: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.mc-plans figcaption { margin-top: 8px; font-size: .9rem; line-height: 1.5; }
.mc-sp-h { margin-top: clamp(28px, 4vw, 44px); }
#enquire .alert-form { margin-top: 0; }
@media (max-width: 620px) {
  .mc-plans { grid-template-columns: 1fr; }
  .mc-grid { grid-template-columns: 28px repeat(var(--cols), minmax(12px, 1fr)); gap: 2px; }
  .mc-blk { flex: 1 1 100%; }
  .ballot.mc-units th, .ballot.mc-units td { padding: 9px 8px; }
  .ballot.mc-units thead th { font-size: .66rem; letter-spacing: .05em; }
}
