/* ============================================================
   Royal Concrete — inner page components (products, technical, about…)
   ============================================================ */

/* ---------- PAGE HERO (compact, white) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .28;
  background-size: cover; background-position: center;
  background-image: var(--hero-img, none);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,32,46,.7), rgba(17,32,46,.92));
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
.page-hero p { color: #C7D2DD; font-size: 1.12rem; margin-top: 1rem; max-width: 60ch; }
.breadcrumbs { font-family: var(--font-mono); font-size: .76rem; color: #8597A8; margin-bottom: 1rem; letter-spacing: .04em; }
.breadcrumbs a { color: #A8B8C8; text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span { margin: 0 .4rem; opacity: .5; }

/* ---------- PROSE / CONTENT ---------- */
.prose { max-width: 760px; }
.prose h2:where(:not(.h3, .h4)) { margin: 2.5rem 0 1rem; }
.prose h3:where(:not(.h4)), .prose .h3 { margin: 2rem 0 .75rem; }
.prose p { margin-bottom: 1.1rem; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.prose a { color: var(--cyan-700); text-decoration: underline; }

/* Buttons inside .prose must not inherit the prose link colour/underline.
   `.prose a` (0,1,1) outranks `.btn--primary` (0,1,0), which stripped the
   white label off every button sitting in a prose block — cornice product
   pages, the polystyrene Propless CTA, technical, ready-mix and rib-and-block.
   These rules restore the button styling wherever it is nested. */
.prose a.btn { text-decoration: none; }
.prose a.btn:hover { text-decoration: none; }
.prose a.btn--primary,
.prose a.btn--teal { color: #fff; }
.prose a.btn--ghost { color: var(--navy); }
.prose a.btn--ghost:hover { color: var(--cyan-700); }

/* ---------- TWO-COLUMN MEDIA ROWS ---------- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.media-row--flip .media-row__media { order: 2; }
.media-row__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--bg-line); }
.media-row + .media-row { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 800px) { .media-row { grid-template-columns: 1fr; } .media-row--flip .media-row__media { order: 0; } }

/* ---------- FEATURE LIST ---------- */
.feature-list { display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list .tick { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,153,214,.14); color: var(--cyan-700); display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.feature-list strong { color: var(--navy); }

/* ---------- BENEFIT CARDS ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.benefit { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.6rem; }
.benefit .ic { font-size: 1.6rem; margin-bottom: .8rem; }
.benefit h4, .benefit .h4 { margin-bottom: .5rem; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 820px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- SPEC / COMPARISON TABLE ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--bg-line); }
.spec-table thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 600; }
.spec-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.spec-table td:first-child { font-weight: 600; color: var(--navy); }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq__item { border: 1px solid var(--bg-line); border-radius: var(--radius-sm); margin-bottom: .75rem; overflow: hidden; background: #fff; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__q::after { content: '+'; font-size: 1.4rem; color: var(--cyan); transition: transform .2s; flex-shrink: 0; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; color: var(--muted); }
.faq__item.open .faq__a { padding: 0 1.3rem 1.2rem; max-height: 500px; }

/* ---------- INLINE CTA ---------- */
.inline-cta { background: var(--bg-soft); border: 1px solid var(--bg-line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; margin: clamp(2.5rem,5vw,4rem) 0; }
.inline-cta h3:where(:not(.h4)), .inline-cta .h3 { margin-bottom: .6rem; }
.inline-cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.4rem; }

/* ---------- DOWNLOAD / DOC GRID (technical) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 1rem; }
.doc-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.4rem 1rem; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); color: var(--navy); text-decoration: none; transition: .15s; }
.doc-tile:hover { border-color: var(--cyan); box-shadow: var(--shadow-sm); text-decoration: none; transform: translateY(-2px); }
.doc-tile .doc-ic { font-size: 1.8rem; color: var(--cyan); }
.doc-tile span { font-size: .82rem; font-weight: 600; line-height: 1.3; }

/* ---------- TOOL CARDS (technical estimators) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.tool-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.tool-card h4, .tool-card .h4 { margin-bottom: .4rem; }
.tool-card p { color: var(--muted); font-size: .9rem; flex: 1; margin-bottom: 1rem; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- NOTICE ---------- */
.notice { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.3); border-radius: var(--radius-sm); padding: 1rem 1.3rem; font-size: .92rem; color: #7a5410; margin: 1.5rem 0; }
.notice strong { color: #5c3f0c; }

/* ============================================================
   TECHNICAL PAGE — signup wall (locked sections + signup form)
   ============================================================ */
.tech-locked { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; border: 1px solid var(--bg-line); background: var(--bg-soft); }
.tech-locked__blur { filter: blur(6px); opacity: .55; padding: 2rem; pointer-events: none; user-select: none; }
.tech-locked__rows { display: flex; flex-direction: column; gap: 1rem; }
.tech-locked__rows span { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, #c8d2dc, #e2e8ef, #c8d2dc); }
.tech-locked__rows span:nth-child(1){ width: 70%; } .tech-locked__rows span:nth-child(2){ width: 90%; }
.tech-locked__rows span:nth-child(3){ width: 60%; } .tech-locked__rows span:nth-child(4){ width: 80%; }
.tech-locked__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .8rem; padding: 1.5rem; background: rgba(244,246,249,.65);
}
.tech-locked__lock { font-size: 2rem; }
.tech-locked__overlay p { max-width: 420px; color: var(--ink); font-weight: 500; margin: 0; }

/* Signup form (navy section) */
.tech-signup { display: flex; flex-direction: column; gap: .9rem; }
.tech-signup__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .tech-signup__row { grid-template-columns: 1fr; } }
.tech-signup input[type=text],
.tech-signup input[type=email],
.tech-signup input[type=tel] {
  width: 100%; padding: .8rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; font-family: inherit; font-size: .95rem;
}
.tech-signup input::placeholder { color: rgba(255,255,255,.55); }
.tech-signup input:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.1); }
.tech-signup__check { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.8); font-size: .82rem; line-height: 1.45; cursor: pointer; }
.tech-signup__check input { margin-top: .2rem; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--cyan); }
/* Signup field-level error state (set by tech-signup.js from the API `fields` list) */
.tech-signup input.is-error { border-color: #ff8a80 !important; background: rgba(255,138,128,.08) !important; }
.tech-signup__check.is-error span { color: #ffb4ab; }
.tech-signup__msg { margin: .3rem 0 0; font-size: .9rem; text-align: center; min-height: 1.2em; }

/* ============================================================
   CORNICE GALLERY THUMBNAILS (click-to-swap main image)
   ============================================================ */
.cornice-thumbs { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.cornice-thumb {
  width: 80px; height: 64px; padding: 0; border: 2px solid var(--bg-line);
  border-radius: 8px; overflow: hidden; cursor: pointer; background: #e8eaed;
  transition: border-color .15s, transform .15s;
}
.cornice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cornice-thumb:hover { transform: translateY(-2px); }
.cornice-thumb.is-active { border-color: var(--cyan); }

/* ============================================================
   PRODUCT CARDS on product pages (mirrors home.css so cards
   render correctly when home.css isn't loaded)
   ============================================================ */
.prod-card { display: flex; flex-direction: column; }
.prod-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-card__img img { transform: scale(1.05); }
.prod-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3:where(:not(.h4)), .prod-card__body .h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.prod-card__body p { color: var(--muted); font-size: .94rem; flex: 1; }
.prod-card__link { color: var(--cyan-700); font-weight: 600; font-family: var(--font-display); margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; }
.prod-card__link::after { content: '→'; transition: transform .15s; }
.prod-card:hover .prod-card__link::after { transform: translateX(4px); }

/* ============================================================
   SLAB SYSTEM EXPLAINER ("What's included in the system")
   Used on Rib & Block and Polystyrene product pages.
   ============================================================ */
.sys-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .sys-row { grid-template-columns: 1fr; } }
.sys-row__media { position: sticky; top: 90px; }
@media (max-width: 900px) { .sys-row__media { position: static; } }
.sys-row__media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--bg-line); background: #fff; }
.sys-row__media figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: center; }

.sys-list { list-style: none; margin: 0; display: grid; gap: .8rem; }
.sys-list li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.sys-list .num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .85rem; margin-top: 2px; }
.sys-list h4, .sys-list .h4 { margin: 0 0 .25rem; font-size: 1.02rem; color: var(--navy); }
.sys-list p { margin: 0; color: var(--muted); font-size: .92rem; }
.sys-list .spec { display: inline-block; margin-top: .35rem; font-family: var(--font-mono); font-size: .78rem; color: var(--cyan-700); background: rgba(0,153,214,.08); border-radius: 4px; padding: .15rem .5rem; }

.sys-steps { counter-reset: step; list-style: none; margin: 1.5rem 0 0; display: grid; gap: 0; }
.sys-steps li { position: relative; padding: 0 0 1.4rem 3rem; counter-increment: step; }
.sys-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,153,214,.12); color: var(--cyan-700); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.sys-steps li::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: var(--bg-line); }
.sys-steps li:last-child::after { display: none; }
.sys-steps h4, .sys-steps .h4 { margin: .2rem 0 .3rem; font-size: 1.02rem; color: var(--navy); }
.sys-steps p { margin: 0; color: var(--muted); font-size: .93rem; }

.sys-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.sys-badges span { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--bg-line); border-radius: 999px; padding: .4rem .9rem; }

/* ---------- ABOUT: OUR FACILITY ---------- */
.facility-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin: 0 0 2.5rem;
}
/* The ratio lives on the figure, not the img: the <img> carries width/height
   attributes, and when both dimensions are specified aspect-ratio is ignored,
   which rendered these as tall narrow strips. */
.facility-strip figure {
  margin: 0; aspect-ratio: 4 / 3;
  border-radius: var(--radius); border: 1px solid var(--bg-line); overflow: hidden;
}
.facility-strip img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (max-width: 900px) { .facility-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facility-strip { grid-template-columns: 1fr; } }

.facility-points {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 2rem;
}
.facility-point { display: flex; gap: .75rem; align-items: flex-start; }
.facility-point .tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyan); color: #fff; font-size: .72rem;
  display: inline-flex; align-items: center; justify-content: center; margin-top: .15rem;
}
.facility-point strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: .2rem; }
.facility-point p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .facility-points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility-points { grid-template-columns: 1fr; } }

/* ---------- BLOG POST: PRICE TABLES & CTA ROWS ---------- */
.post-updated {
  font-size: .88rem; color: var(--muted);
  border-left: 3px solid var(--cyan); padding: .1rem 0 .1rem .8rem;
  margin: 0 0 1.6rem;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2rem 0 .6rem; }
.price-table {
  width: 100%; min-width: 460px; border-collapse: collapse; font-size: .95rem;
}
.price-table th, .price-table td {
  text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--bg-line);
}
.price-table thead th {
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 600; white-space: nowrap;
}
.price-table thead th:not(:first-child) { text-align: right; }
.price-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.price-table td:first-child { font-weight: 600; color: var(--navy); }
.price-note { font-size: .84rem; color: var(--muted); margin: 0 0 2rem; }

.post-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 2rem; }
.post-cta .btn { text-decoration: none; }
@media (max-width: 560px) {
  .post-cta { flex-direction: column; align-items: stretch; }
  .post-cta .btn { justify-content: center; }
}

/* ---------- ENGINEERING SERVICES ---------- */
.eng-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.eng-svc {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
}
.eng-svc .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,153,214,.12); color: var(--cyan);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.eng-svc .ic svg { width: 23px; height: 23px; }
.eng-svc h4, .eng-svc .h4 { font-size: 1rem; margin: 0 0 .45rem; color: var(--navy); }
.eng-svc p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .eng-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eng-svc-grid { grid-template-columns: 1fr; } }

.eng-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.eng-stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--cyan); line-height: 1.1;
}
.eng-stat__label { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
@media (max-width: 620px) { .eng-stats { grid-template-columns: 1fr; gap: 1.1rem; } }

.eng-who-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.eng-who {
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  text-align: center; padding: 1.4rem 1rem;
  border: 1px solid var(--bg-line); border-radius: var(--radius);
}
.eng-who .ic { color: var(--cyan); }
.eng-who .ic svg { width: 30px; height: 30px; }
.eng-who span { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); }
@media (max-width: 700px) { .eng-who-row { grid-template-columns: repeat(2, 1fr); } }

/* Engineering intro: the two photos the client asked to keep, side by side */
.eng-media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.eng-media-pair img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid var(--bg-line);
}
.eng-media-pair img:first-child { object-fit: contain; background: #fff; }
@media (max-width: 620px) { .eng-media-pair { grid-template-columns: 1fr; } }

/* Technical: named comparison tables, linked rather than embedded */
.compare-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 2rem; }
.compare-link {
  display: block; padding: 1.1rem 1.3rem; text-decoration: none;
  background: #fff; border: 1px solid var(--bg-line); border-left: 3px solid var(--cyan);
  border-radius: var(--radius); transition: border-color .18s ease, transform .18s ease;
}
.compare-link:hover { transform: translateY(-2px); border-color: var(--cyan); }
.compare-link__t { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.compare-link__s { display: block; font-size: .86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .compare-links { grid-template-columns: 1fr; } }

/* Benefit tiles now carry inline SVG instead of emoji (which did not render on Windows) */
.benefit .ic svg { width: 24px; height: 24px; }
.benefit .ic { color: var(--cyan); }

/* ---------- PRODUCT PAGES: FAQ CTA BUTTONS ---------- */
.faq-cta { display: block; margin-top: .9rem; }
.faq-cta__btn { margin: 0 .5rem .4rem 0; }
.faq__a .btn { text-decoration: none; }

/* ---------- LINTEL CARD ---------- */
.lintel-card {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 1.3rem 1.4rem; margin-bottom: 1.2rem;
}
.lintel-card h4, .lintel-card .h4 { color: #fff; font-size: 1.02rem; margin: 0 0 .5rem; }
.lintel-card p { color: #9FB1C2; font-size: .9rem; margin: 0 0 .8rem; line-height: 1.55; }
.lintel-card .spec-chip {
  display: inline-block; background: rgba(0,153,214,.18); color: #BEE6FA;
  border-radius: 6px; padding: .45rem .7rem; font-size: .8rem; line-height: 1.45;
}

/* ---------- PAIRED CTA CARDS ---------- */
.cta-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cta-pair__card {
  display: block; text-decoration: none; padding: 1.3rem 1.4rem;
  background: var(--navy); border-radius: var(--radius);
  border: 1px solid var(--navy); transition: transform .18s ease, background .18s ease;
}
.cta-pair__card:hover { transform: translateY(-2px); background: var(--navy-800); }
.cta-pair__card strong {
  display: block; color: #fff; font-family: var(--font-display);
  font-size: 1rem; margin-bottom: .35rem;
}
.cta-pair__card span { display: block; color: #9FB1C2; font-size: .87rem; line-height: 1.5; }
@media (max-width: 700px) { .cta-pair { grid-template-columns: 1fr; } }

/* ---------- PROPLESS SPEC CARDS ---------- */
.spec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.spec-card { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.4rem; }
.spec-card__head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.spec-card__n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 6px;
  background: var(--cyan); color: #fff; font-family: var(--font-display);
  font-size: .85rem; display: grid; place-items: center;
}
.spec-card__head h4, .spec-card__head .h4 { margin: 0 0 .15rem; font-size: 1rem; color: var(--navy); }
.spec-card__head span { font-size: .82rem; color: var(--muted); }
.spec-card__rows { margin: 0; }
.spec-card__rows > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-top: 1px solid var(--bg-line);
}
.spec-card__rows dt { font-size: .84rem; color: var(--muted); margin: 0; }
.spec-card__rows dd { font-size: .87rem; font-weight: 600; color: var(--navy); margin: 0; text-align: right; }
@media (max-width: 900px) { .spec-cards { grid-template-columns: 1fr; } }

/* ---------- AUDIENCE GRID ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.audience { background: var(--bg-soft); border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.3rem; }
.audience h4, .audience .h4 { font-size: 1rem; color: var(--navy); margin: 0 0 .7rem; }
.audience ul { margin: 0; padding-left: 1.1rem; }
.audience li { font-size: .87rem; color: var(--muted); margin-bottom: .35rem; line-height: 1.45; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- STILL COMPARING CTA ---------- */
.compare-cta {
  background: #fff; border: 1px solid var(--bg-line); border-left: 4px solid var(--cyan);
  border-radius: var(--radius); padding: 1.8rem 2rem; max-width: 820px;
}
.compare-cta h3:where(:not(.h4)), .compare-cta .h3 { margin: 0 0 .6rem; color: var(--navy); }
.compare-cta p { color: var(--muted); margin: 0 0 1.2rem; }
.compare-cta__btns { display: flex; flex-wrap: wrap; gap: .7rem; }

.feature-list--tight li { margin-bottom: .35rem; }

/* Lintel card now carries the real product photo */
.lintel-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  height: auto; border-radius: calc(var(--radius) - 4px);
  display: block; margin-bottom: 1rem;
}
/* Propless cross-section above the spec cards */
.spec-section-img { margin: 0 0 1.6rem; text-align: center; }
.spec-section-img img {
  max-width: 640px; width: 100%; height: auto; display: inline-block;
  border: 1px solid var(--bg-line); border-radius: var(--radius); background: #fff;
}

/* ============================================================
   CORNICE PRODUCT PAGES — gallery stage + Moduline label
   Restored after the 23 Sep cornice update, which replaced this
   file with an older copy and dropped the product-page styles.
   ============================================================ */
/* ---------- MODULINE CORE BRANDING (cornices) ---------- */
.moduline-brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.6rem; color: var(--navy); line-height: 1; margin-bottom: 1rem;
}
.moduline-brand span {
  display: block; font-size: .78rem; font-weight: 400;
  letter-spacing: .22em; text-transform: lowercase; color: var(--muted); margin-top: 2px;
}
.moduline-tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin: .2rem 0 .6rem;
}

/* ---------- CORNICE GALLERY ---------- */
/* Fixed stage so swapping between the square profile shot and the wider
   in-situ renders never makes the page jump. */
.cornice-stage {
  border: 1px solid var(--bg-line); border-radius: var(--radius);
  background: #fff; overflow: hidden; aspect-ratio: 16 / 9;
}
.cornice-stage img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; margin: 0;
  /* reset .media-row__media img so the frame isn't doubled up */
  border: 0; border-radius: 0;
}

/* Products still on their single legacy image: size the stage to the image so
   the older, non-16:9 crops aren't letterboxed. */
.cornice-stage--auto { aspect-ratio: auto; }
.cornice-stage--auto img { height: auto; }

.cornice-thumbs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: .6rem; margin-top: .7rem;
}
.cornice-thumb {
  padding: 0; border: 2px solid var(--bg-line); border-radius: var(--radius-sm);
  background: #f2f4f6; cursor: pointer; overflow: hidden; aspect-ratio: 16/9;
  transition: border-color .15s;
}
.cornice-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cornice-thumb:hover { border-color: var(--cyan); }
.cornice-thumb.is-active { border-color: var(--cyan); }
.cornice-thumb:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ============================================================
   PRODUCT PAGES — site-photo pair + badge ticks
   ============================================================ */
/* Main render with the site photo stacked beneath it */
.media-pair { display: grid; gap: 1rem; }
.media-pair img { width: 100%; height: auto; display: block; margin: 0; }

/* The tick is an inline SVG with no width/height attributes, so without
   an explicit size it stretches to fill the badge row. */
.sys-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.sys-badges__tick { width: 14px; height: 14px; flex-shrink: 0; color: var(--cyan); }

/* Safety net: no content image may ever render wider than its column */
main img { max-width: 100%; height: auto; }

/* ---------- 3D CROSS-SECTIONS (technical page) ---------- */
.xsec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.xsec {
  display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border: 1px solid var(--bg-line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
  scroll-margin-top: 110px;           /* clear the sticky header when linked to */
}
.xsec:hover { border-color: var(--cyan); transform: translateY(-2px); text-decoration: none; }
.xsec:target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,153,214,.25); }
.xsec__img { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--bg-line); }
.xsec__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.xsec__t { display: block; font-family: var(--font-display); font-weight: 600; color: var(--navy); padding: 1rem 1.1rem .2rem; }
.xsec__s { display: block; font-size: .85rem; color: var(--muted); padding: 0 1.1rem; line-height: 1.45; }
.xsec__open { display: block; font-size: .85rem; font-weight: 600; color: var(--cyan-700); padding: .7rem 1.1rem 1.1rem; margin-top: auto; }
@media (max-width: 900px) { .xsec-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Product pages: link from the system section to its cross-section */
.sys-xlink { margin: 1rem 0 0; font-size: .9rem; }
.sys-xlink a { color: var(--cyan-700); font-weight: 600; text-decoration: none; }
.sys-xlink a:hover { text-decoration: underline; }
