/* ==========================================================================
   RT Event Recap Minisite — FT-broadsheet-style edition (TEMPLATE)
   Self-contained CSS. Consumes the RT brand palette but tuned for a LIGHT
   "Seashell" paper surface (per rt-mip-demo/docs/mip-editions v2-broadsheet
   concept), since the parent event site itself is typically a dark event
   page. The canonical dark RT footer at the bottom is ported verbatim and
   keeps its own dark-surface contract (pure white text, no inheritance
   assumed). Copied verbatim from the MSN26 Warsaw implementation
   (2026-07-18 extraction) -- fully token-driven, no event-specific hardcodes
   left in this file.
   ========================================================================== */

:root {
  --ins-paper: #fff5ee;
  --ins-paper-raised: #fffaf5;
  --ins-ink: #1a1210;
  --ins-ink-muted: #6b5f57;
  --ins-ink-faint: #a89a8d;
  --ins-line: #ddd0c1;
  --ins-line-strong: #c9b8a4;
  --ins-red: #e31b23;
  --ins-red-dark: #b8151c;
  /* Darkened gold for LIGHT surfaces -- the site's --accent-gold (#ddc074) /
     --on-dark-accent tokens are tuned for dark backgrounds and fail contrast
     here; this is a distinct, deliberately deeper shade for paper. */
  --ins-gold: #8a6a1f;
  --ins-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ins-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --ins-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ins-measure: 1160px;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ins-paper);
  color: var(--ins-ink);
  font-family: var(--ins-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.ins-skip {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--ins-red);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 180ms ease;
}
.ins-skip:focus { top: 0.5rem; }

/* --------------------------------------------------------------------
   i18n show/hide -- lang= is the real HTML lang attribute (semantic +
   accessible); html[data-lang] on the root drives which block is visible.
   -------------------------------------------------------------------- */
.i18n[lang] { display: none; }
html[data-lang="pl"] .i18n[lang="pl"] { display: block; }
html[data-lang="en"] .i18n[lang="en"] { display: block; }

.i18n-inline[lang] { display: none; }
html[data-lang="pl"] .i18n-inline[lang="pl"] { display: inline; }
html[data-lang="en"] .i18n-inline[lang="en"] { display: inline; }

/* ==========================================================================
   Masthead
   ========================================================================== */

.ins-masthead {
  max-width: var(--ins-measure);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 0;
}

.ins-masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid var(--ins-ink);
}

.ins-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ins-ink);
}
.ins-wordmark-logo { height: 26px; width: auto; }
.ins-wordmark-tag {
  font-family: var(--ins-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ins-red);
  border-left: 1px solid var(--ins-line-strong);
  padding-left: 0.6rem;
}

.ins-utility {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ins-print-btn,
.ins-lang-toggle {
  font-family: var(--ins-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ins-line-strong);
  color: var(--ins-ink-muted);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.ins-print-btn:hover,
.ins-lang-toggle:hover {
  border-color: var(--ins-ink);
  color: var(--ins-ink);
  background: var(--ins-paper-raised);
}
.ins-lang-opt { font-weight: 600; }
.ins-lang-toggle[data-current="pl"] [data-lang-opt="pl"],
.ins-lang-toggle[data-current="en"] [data-lang-opt="en"] {
  color: var(--ins-red);
}

.ins-dateline {
  font-family: var(--ins-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--ins-ink-muted);
  padding: 0.7rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.ins-edition-tag { color: var(--ins-red); text-transform: uppercase; letter-spacing: 0.08em; }
.ins-dateline-sep { color: var(--ins-line-strong); }

/* "Inside this edition" contents strip */
.ins-contents-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 1.1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ins-strip-label {
  font-family: var(--ins-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ins-ink-faint);
  white-space: nowrap;
  padding-right: 0.4rem;
}
.ins-strip-pill {
  font-family: var(--ins-sans);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ins-ink);
  border: 1px solid var(--ins-line);
  padding: 0.35rem 0.85rem;
  transition: border-color 150ms ease, color 150ms ease;
}
.ins-strip-pill:hover { border-color: var(--ins-red); color: var(--ins-red); }

/* Anchor offset so section headings don't hide under nothing (defensive,
   in case of a future sticky masthead) */
.ins-rail, .ins-lead, #main { scroll-margin-top: 1.25rem; }

/* ==========================================================================
   Main content shell
   ========================================================================== */

main#main {
  max-width: var(--ins-measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.ins-eyebrow {
  display: inline-block;
  font-family: var(--ins-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ins-red);
  margin-bottom: 0.5rem;
}

.ins-byline {
  display: block;
  font-family: var(--ins-mono);
  font-size: 0.74rem;
  color: var(--ins-ink-faint);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------
   Fixed aspect-ratio media boxes -- no layout shift, cover-fit crop.
   -------------------------------------------------------------------- */
.ins-media {
  position: relative;
  overflow: hidden;
  background: var(--ins-line);
  width: 100%;
}
.ins-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ins-media-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(150deg, #efe2d2, var(--ins-paper-raised));
  border: 1px solid var(--ins-line);
}
.ins-media-fallback-mark {
  font-family: var(--ins-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ins-ink-faint);
  letter-spacing: 0.02em;
}
.ins-media-fallback-hint {
  font-family: var(--ins-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ins-ink-faint);
  text-align: center;
  padding: 0 1rem;
}
.ins-caption {
  font-family: var(--ins-sans);
  font-size: 0.78rem;
  color: var(--ins-ink-muted);
  padding: 0.5rem 0.1rem 0;
  line-height: 1.4;
}
.ins-caption-text::after { content: ""; }
.ins-credit {
  color: var(--ins-ink-faint);
  font-style: italic;
  white-space: nowrap; /* a credit / company name never breaks across lines */
}

/* ==========================================================================
   Lead story -- asymmetric grid, the page's one loud editorial gesture.
   ========================================================================== */

.ins-lead {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--ins-line);
  margin-bottom: 2.25rem;
}
.ins-lead .ins-media { aspect-ratio: 16/9; }
.ins-lead-body { display: flex; flex-direction: column; padding-top: 0.2rem; }
.ins-lead-title {
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ins-ink);
  margin-bottom: 0.9rem;
}
.ins-lead-dek {
  font-family: var(--ins-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ins-ink);
}
.ins-dropcap {
  float: left;
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.03em 0.09em 0 0;
  color: var(--ins-red);
}
.ins-read-more {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--ins-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ins-ink);
  border-bottom: 2px solid var(--ins-red);
  padding-bottom: 0.15rem;
  align-self: flex-start;
}
.ins-read-more:hover { color: var(--ins-red); }

/* ==========================================================================
   Second front -- two supporting cards, image-forward, no dropcap.
   ========================================================================== */

.ins-second-front {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--ins-line);
}

.ins-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ins-card-second .ins-media { aspect-ratio: 4/3; }
.ins-card-title {
  font-family: var(--ins-serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.7rem 0 0.4rem;
  color: var(--ins-ink);
}
.ins-card-second .ins-card-title { font-size: 1.45rem; }
.ins-card-dek {
  font-family: var(--ins-sans);
  font-size: 0.92rem;
  color: var(--ins-ink-muted);
  line-height: 1.45;
}
.ins-card:hover .ins-card-title { color: var(--ins-red); }

/* ==========================================================================
   Section rails
   ========================================================================== */

.ins-rail { padding: 0 0 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--ins-line); }
.ins-rail:last-of-type { border-bottom: none; }
.ins-rail-title {
  font-family: var(--ins-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ins-ink);
  border-bottom: 2px solid var(--ins-ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
}
.ins-rail-grid {
  display: grid;
  /* count-independent: 4-card rails fill a row instead of orphaning 3+1;
     3-card rails still render 3-across. Tablet/mobile overrides below. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.ins-card-rail .ins-media { aspect-ratio: 4/3; }
.ins-rail-empty {
  font-family: var(--ins-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ins-ink-muted);
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--ins-line-strong);
  background: var(--ins-paper-raised);
}
.ins-rail-empty a { color: var(--ins-red); text-decoration: none; border-bottom: 1px solid var(--ins-red); }

/* ==========================================================================
   Pull-quote -- signature component, oversized quotation mark.
   ========================================================================== */

.ins-pullquote {
  position: relative;
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 2.2rem;
  border-left: 3px solid var(--ins-red);
}
.ins-pullquote::before {
  content: "\201C";
  position: absolute;
  left: -0.15rem;
  top: -0.9rem;
  font-family: var(--ins-serif);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--ins-red);
  opacity: 0.85;
}
.ins-pq-text p {
  font-family: var(--ins-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ins-ink);
}
.ins-pq-attrib {
  margin-top: 0.6rem;
  font-family: var(--ins-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ins-ink-muted);
}

.ins-pq-strip { padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--ins-line); }
/* Last section on the hub (photo band omitted): no trailing rule/gap before <main> closes. */
.ins-pq-strip--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.ins-strip-heading {
  display: block;
  font-family: var(--ins-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ins-ink);
  border-bottom: 2px solid var(--ins-ink);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
}
.ins-pq-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2.25rem;
}
.ins-pq-strip-grid .ins-pullquote { margin: 0; }

/* ==========================================================================
   Photo band -- contact sheet + native <dialog> lightbox
   ========================================================================== */

.ins-photoband { padding-bottom: 1rem; }
.ins-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ins-photo-thumb {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.ins-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 150ms ease;
}
.ins-photo-thumb:hover img { opacity: 0.82; }
.ins-gallery-link {
  display: inline-block;
  font-family: var(--ins-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ins-ink);
  border-bottom: 2px solid var(--ins-red);
  padding-bottom: 0.15rem;
}
.ins-gallery-link:hover { color: var(--ins-red); }

.ins-lightbox {
  /* The page's global "* { margin:0 }" reset wipes the browser's native
     dialog auto-centering (UA default: position:fixed; inset-block:0;
     width/height:fit-content; margin:auto -- vertical centering comes from
     inset-block + margin:auto, horizontal from width:fit-content + margin:auto
     with left/right left unconstrained). Only inset-block + margin need
     restating; a full inset:0 would force-stretch the box and break it. */
  position: fixed;
  inset-block: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;
  border: none;
  padding: 0;
  max-width: min(90vw, 900px);
  max-height: 88vh;
  background: var(--ins-ink);
  color: #fff;
}
.ins-lightbox::backdrop { background: rgba(10, 8, 6, 0.82); }
.ins-lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #000; }
.ins-lightbox .ins-caption { color: #d8d0c8; padding: 0.7rem 1rem; }
.ins-lightbox .ins-credit { color: #a89a8d; }
.ins-lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.ins-lightbox-close:hover { background: var(--ins-red); }

/* ==========================================================================
   "Front page in production" empty state
   ========================================================================== */
.ins-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  font-family: var(--ins-serif);
}
.ins-empty-state h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.ins-empty-state p { color: var(--ins-ink-muted); font-family: var(--ins-sans); }

/* ==========================================================================
   Article page
   ========================================================================== */

.ins-article-head { max-width: 760px; margin: 1.4rem auto 0; text-align: left; }
.ins-article .ins-media { aspect-ratio: 16/9; margin: 0 auto; max-width: var(--ins-measure); }
.ins-article-title {
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0.6rem 0 0.9rem;
}
.ins-article-dek {
  font-family: var(--ins-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ins-ink-muted);
  line-height: 1.5;
}
.ins-byline-article {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ins-line);
}

.ins-article-body {
  max-width: 700px;
  margin: 2.2rem auto 0;
  font-family: var(--ins-sans);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ins-ink);
}
.ins-article-body p { margin-bottom: 1.15rem; }
.ins-subhead {
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 1.9rem 0 0.9rem;
  color: var(--ins-ink);
}
.ins-list {
  margin: 0 0 1.15rem 1.3rem;
  padding: 0;
}
.ins-list li { margin-bottom: 0.45rem; }
.ins-quote {
  font-family: var(--ins-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ins-ink-muted);
  border-left: 3px solid var(--ins-line-strong);
  padding-left: 1.1rem;
  margin: 1.4rem 0;
}
.ins-article-body .ins-pullquote { max-width: 700px; }

.ins-article-nav {
  max-width: var(--ins-measure);
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ins-line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  font-family: var(--ins-mono);
  font-size: 0.82rem;
}
.ins-article-nav a { text-decoration: none; color: var(--ins-ink); }
.ins-article-nav a:hover { color: var(--ins-red); }
.ins-nav-hub { flex-basis: 100%; order: -1; color: var(--ins-ink-muted); }

/* ==========================================================================
   Canonical RT footer -- ported verbatim from rt-www-home SiteFooter.tsx
   (dark surface; pure white / gold text, explicit -- never inherited).
   Re-diff against the LIVE component on every clone; it evolves.
   ========================================================================== */

.cf-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3.5rem 0 2.5rem;
  background: #0f0f0f;
  color: #ffffff;
  width: 100%;
  margin: 3rem 0 0;
  text-align: left;
  font-family: var(--ins-sans);
}
.cf-footer .cf-container { width: min(1160px, calc(100vw - 2rem)); margin: 0 auto; padding: 0 1rem; }
.cf-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.cf-footer-brand img { display: block; height: 32px; width: auto; }
.cf-footer-brand p { color: #b0aca8; font-size: 0.88rem; line-height: 1.55; margin-top: 0.8rem; max-width: 420px; }
.cf-footer h4 {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #c5a55a; margin: 0 0 0.9rem; font-family: var(--ins-mono);
}
.cf-footer div:not(.cf-footer-brand):not(.cf-footer-grid) { display: flex; flex-direction: column; gap: 0.55rem; }
.cf-footer a { color: #b0aca8; font-size: 0.86rem; text-decoration: none; transition: color 150ms ease; }
.cf-footer a:hover { color: #ffffff; }
.cf-footer span { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; }
.cf-footer-cta { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: 420px; }
.cf-footer-cta-label { color: #c5a55a; font-family: var(--ins-mono); font-size: 0.7rem; letter-spacing: 0.1em; }
.cf-footer-cta-link { display: flex; align-items: stretch; border: 1px solid rgba(255, 255, 255, 0.12); transition: border-color 180ms ease; }
.cf-footer-cta-link:hover { border-color: rgba(197, 165, 90, 0.5); }
.cf-footer-cta-fauxinput { flex: 1; padding: 0.7rem 0.9rem; color: #9a9a9a; font-size: 0.85rem; }
.cf-footer-cta-btn { padding: 0.7rem 0.9rem; background: rgba(197, 165, 90, 0.12); color: #c5a55a; font-size: 0.82rem; white-space: nowrap; }
.cf-footer-cta-help { color: #9a9a9a; font-size: 0.78rem; line-height: 1.5; }
.cf-footer a.cf-footer-cta-partner { color: #c5a55a; }
.cf-footer a.cf-footer-cta-partner:hover { color: #d4b84a; }
.cf-footer a.cf-footer-event-featured { color: #c5a55a; font-weight: 600; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.cf-footer a.cf-footer-event-featured:hover { color: #d4b84a; }
.cf-footer-event-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #ddc074; }

@media (max-width: 980px) {
  .cf-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ins-lead { grid-template-columns: 1fr; }
  .ins-second-front { grid-template-columns: 1fr; }
  .ins-rail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .cf-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .cf-footer-brand { display: flex; flex-direction: column; align-items: center; }
  .cf-footer-brand img { margin: 0 auto; }
  .cf-footer-brand p { margin-left: auto; margin-right: auto; max-width: none; }
  .cf-footer-cta { margin-left: auto; margin-right: auto; }
  .cf-footer div:not(.cf-footer-brand):not(.cf-footer-grid) { align-items: center; }

  .ins-masthead-row { flex-wrap: wrap; }
  .ins-rail-grid { grid-template-columns: 1fr; }
  .ins-photo-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .ins-article-nav { flex-direction: column; }
}

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

/* ==========================================================================
   Print -- "take the edition home"
   ========================================================================== */
@media print {
  .ins-utility,
  .ins-contents-strip,
  .ins-photo-grid,
  .ins-gallery-link,
  .ins-lightbox,
  .ins-article-nav,
  .ins-engage,
  .cf-footer-cta,
  .cf-footer-event-dot {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .cf-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .cf-footer a, .cf-footer span, .cf-footer h4 { color: #000 !important; }
  .ins-lead, .ins-rail, .ins-second-front, .ins-pq-strip { border-bottom-color: #ccc; }
  .ins-media { break-inside: avoid; }
  a[href]::after { content: ""; }
}

/* ---- Related reading (internal links, added for IPS26 EN edition) -------- */
.ins-related {
  max-width: var(--ins-measure);
  margin: 3rem auto 0;
  padding: 2rem 1.25rem 0;
  border-top: 2px solid var(--ins-line-strong);
}
.ins-related-title {
  font-family: var(--ins-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ins-ink);
  margin: 0 0 1.25rem;
}
.ins-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.ins-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem;
  background: var(--ins-paper-raised);
  border: 1px solid var(--ins-line);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ins-related-card:hover {
  border-color: var(--ins-red);
  transform: translateY(-2px);
}
.ins-related-headline {
  font-family: var(--ins-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ins-ink);
}
.ins-related-card:hover .ins-related-headline { color: var(--ins-red); }
@media (max-width: 860px) {
  .ins-related-grid { grid-template-columns: 1fr; }
}

/* Media-partner lockup (masthead, sitewide) ---------------------------- */
.ins-partner-strip{display:flex;align-items:center;justify-content:center;gap:.65rem;flex-wrap:wrap;
  padding:.55rem 1rem;border-top:1px solid var(--ins-line);border-bottom:1px solid var(--ins-line);
  background:var(--ins-paper-raised);text-align:center;line-height:1.2;}
.ins-partner-role{font-family:var(--ins-sans);font-size:.66rem;font-weight:600;letter-spacing:.15em;
  text-transform:uppercase;color:var(--ins-ink-muted);}
.ins-partner-sep{color:var(--ins-line-strong);}
.ins-partner-event{font-family:var(--ins-serif);font-size:.98rem;font-weight:700;color:var(--ins-ink);letter-spacing:.01em;}
.ins-partner-logo{display:block;height:26px;width:auto;}
@media(max-width:520px){.ins-partner-event{font-size:.84rem;}.ins-partner-role{font-size:.6rem;letter-spacing:.12em;}}

/* Section partner lockup (Interviews rail, in partnership with Shelton Reed) */
.ins-rail-partner{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:-.35rem 0 1.1rem;
  padding:.5rem 0 .6rem;border-bottom:1px solid var(--ins-line);}
.ins-rail-partner-logo{display:block;height:22px;width:auto;}
.ins-rail-partner-note{font-family:var(--ins-sans);font-size:.8rem;color:var(--ins-ink-muted);line-height:1.3;}
@media(max-width:520px){.ins-rail-partner-logo{height:18px;}.ins-rail-partner-note{font-size:.74rem;}}

/* [INSIGHTS-ENGINE-OVERRIDE: this file IS the canonical RT Insights engine
   clone (extracted verbatim from the MSN26 Warsaw implementation 2026-07-18 --
   see build.py header + INSIGHTS-ENGINE-GATES.md Stage C). The block below is a
   token-driven EXTENSION of the existing .ins-* vocabulary for the two required
   interactive components (Share on LinkedIn + Contribute CTA), NOT a
   from-scratch rebuild and NOT a bespoke design language. No nav/subnav/footer
   is touched (gates C2/C3 unaffected). Reuses --ins-ink / --ins-red /
   --ins-red-dark / --ins-line / --ins-paper-raised tokens only. ] */

/* ==========================================================================
   Per-article engagement -- "Share on LinkedIn" + "Contribute to this story".
   Sits on the light Seashell paper at the end of the article body, so every
   foreground element uses the paper-tuned ink/red tokens (dark-on-light or a
   filled button with #fff text). Tap targets >= 44px.
   ========================================================================== */
.ins-engage {
  max-width: 700px;
  margin: 2.75rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ins-line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.ins-engage-share { display: flex; }

/* Share button: editorial ink surface (~15:1 contrast on #fff text), brand-
   neutral -- we do not counterfeit LinkedIn blue on paper. */
.ins-share-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: var(--ins-ink);
  color: #ffffff;
  font-family: var(--ins-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ins-ink);
  transition: background 150ms ease, border-color 150ms ease;
}
.ins-share-linkedin:hover { background: var(--ins-red); border-color: var(--ins-red); }
.ins-share-linkedin:focus-visible { outline: 2px solid var(--ins-red); outline-offset: 2px; }
.ins-share-ico { flex: 0 0 auto; }

/* Contribute CTA card. */
.ins-contribute {
  background: var(--ins-paper-raised);
  border: 1px solid var(--ins-line);
  border-left: 3px solid var(--ins-red);
  padding: 1.3rem 1.4rem;
}
.ins-contribute-heading {
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ins-ink);
  margin: 0 0 0.5rem;
}
.ins-contribute-line {
  font-family: var(--ins-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ins-ink-muted);
  margin: 0 0 1rem;
}
/* Deeper red (--ins-red-dark) so #fff button text clears WCAG AA on paper. */
.ins-contribute-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.3rem;
  background: var(--ins-red-dark);
  color: #ffffff;
  font-family: var(--ins-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ins-red-dark);
  transition: background 150ms ease, border-color 150ms ease;
}
.ins-contribute-btn:hover { background: var(--ins-ink); border-color: var(--ins-ink); }
.ins-contribute-btn:focus-visible { outline: 2px solid var(--ins-ink); outline-offset: 2px; }

@media (max-width: 720px) {
  .ins-share-linkedin,
  .ins-contribute-btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   DATA-DRIVEN BODY COMPONENTS  (build.py: render_figure / render_keyfacts /
   render_statcards / render_sources_panel)

   Hand-written, and safe from the build: build.py writes this file only via
   write_if_absent(), so a rerun never clobbers these rules.

   Every rule below uses the existing --ins-* token set (paper, ink, line,
   red, gold, serif/sans/mono) -- no new colours, no new fonts, nothing
   event-specific. All four components sit on the light Seashell paper, so
   the contract is dark-on-light; the one filled surface (a stat card) keeps
   ink on paper-raised rather than inventing a dark band.

   375px is a first-class target, not an afterthought: the figure unfloats to
   full width, the stat grid collapses to one card per row (so no card count
   can orphan), and every link keeps a >= 44px tap height.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Inline figure -- a body image at its native scale, with caption + credit.
   Sits INSIDE .ins-article-body (700px measure), so a 340px portrait floats
   and the text wraps beside it on desktop.
   -------------------------------------------------------------------------- */
.ins-figure {
  /* Centered block figure (2026-09-02): never floated, ~480px on desktop. */
  max-width: min(var(--ins-figure-w, 480px), 100%);
  width: 100%;
  margin: 1.2rem auto 1.6rem;
}
.ins-figure-frame {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--ins-line);
  border: 1px solid var(--ins-line-strong);
}
.ins-figure .ins-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ins-figure .ins-caption {
  padding: 0.5rem 0.1rem 0;
  border-bottom: 1px solid var(--ins-line);
  padding-bottom: 0.5rem;
  text-align: center;
}
/* Floats retired 2026-09-02: every inline figure is a centered block. */
.ins-figure-right, .ins-figure-left, .ins-figure-center { float: none; margin-left: auto; margin-right: auto; }
/* A float must never escape its section into the next component. */
.ins-article-body .ins-keyfacts,
.ins-article-body .ins-statcards,
.ins-article-body .ins-subhead { clear: both; }

/* --------------------------------------------------------------------------
   2. Key facts -- a scannable box, one fact per line, each with its own source.
   Uses a real <ul>: it reads as a list with CSS off and to a screen reader.
   -------------------------------------------------------------------------- */
.ins-keyfacts {
  margin: 1.9rem 0;
  padding: 1.15rem 1.3rem 1.25rem;
  background: var(--ins-paper-raised);
  border: 1px solid var(--ins-line);
  border-left: 3px solid var(--ins-gold);
}
.ins-keyfacts-title {
  display: block;
  font-family: var(--ins-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ins-gold);
  margin: 0 0 0.9rem;
}
.ins-keyfacts-list { list-style: none; margin: 0; padding: 0; }
.ins-keyfact {
  padding: 0.7rem 0;
  border-top: 1px solid var(--ins-line);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ins-keyfact:first-child { border-top: 0; padding-top: 0; }
.ins-keyfact:last-child { padding-bottom: 0; }
.ins-keyfact-value {
  display: block;
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ins-ink);
  margin-bottom: 0.15rem;
}
.ins-keyfact-label { display: block; color: var(--ins-ink-muted); }
/* Source link: underlined, ink-red on paper, 44px tap height via padding. */
.ins-keyfact-src,
.ins-statcard-src,
.ins-source-link {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.55rem 0;
  min-height: 1.5rem;
  font-family: var(--ins-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ins-red-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  /* A source host is one unbreakable token ("dubaitaxandproperty.com") and it
     WILL be wider than a stat card. Caught on render at 1440: the host clipped
     out of the card's right edge. Break it rather than let it escape. */
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ins-keyfact-src:hover,
.ins-statcard-src:hover,
.ins-source-link:hover { color: var(--ins-ink); }
.ins-keyfact-src:focus-visible,
.ins-statcard-src:focus-visible,
.ins-source-link:focus-visible { outline: 2px solid var(--ins-red); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Stat cards -- headline numbers.

   ORPHAN GUARD (SAR-2026-07-14, the count-dependent-grid class): the section
   breaks out past the 700px body measure to 860px so a 3-card AND a 4-card set
   both fit on ONE row at desktop, and collapses to a single column at 720px so
   no card count can leave a lone card on its own row. Do not swap this for a
   hardcoded repeat(N, 1fr) -- that is orphan-safe for exactly one card count.
   -------------------------------------------------------------------------- */
.ins-statcards {
  max-width: 860px;
  margin: 2.2rem auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ins-line-strong);
  border-bottom: 1px solid var(--ins-line-strong);
}
.ins-statcards-title {
  display: block;
  font-family: var(--ins-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ins-ink-muted);
  margin: 0 0 1.1rem;
}
.ins-statcards-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.4rem;
}
.ins-statcard {
  display: flex;
  flex-direction: column;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ins-red);
  /* A grid item defaults to min-content width, which lets a long unbreakable
     token push the track wider than its share. min-width:0 is what makes the
     overflow-wrap above actually apply. */
  min-width: 0;
}
.ins-statcard-value {
  font-family: var(--ins-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  line-height: 1.05;
  color: var(--ins-ink);
  /* Never break a figure and its unit across lines. */
  white-space: nowrap;
}
.ins-statcard-unit {
  font-family: var(--ins-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ins-ink-muted);
  margin-left: 0.25rem;
}
.ins-statcard-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ins-ink);
}
.ins-statcard-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--ins-ink-muted);
}
.ins-statcard-src { margin-top: auto; }

/* --------------------------------------------------------------------------
   4. Sources panel -- the credibility block. Same measure and top-rule as
   .ins-engage so the two read as one closing zone rather than two slabs.
   Only externally-sourced claims ever reach this markup (build.py allowlist).
   -------------------------------------------------------------------------- */
.ins-sources {
  max-width: 700px;
  margin: 2.75rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ins-line);
}
.ins-sources-title {
  display: block;
  font-family: var(--ins-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ins-ink-muted);
  margin: 0 0 0.4rem;
}
.ins-sources-note {
  font-family: var(--ins-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ins-ink-muted);
  margin: 0 0 1.1rem;
}
.ins-sources-list {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
}
.ins-source {
  margin-bottom: 0.85rem;
  padding-left: 0.2rem;
  color: var(--ins-ink-muted);
}
.ins-source::marker { color: var(--ins-ink-faint); font-family: var(--ins-mono); font-size: 0.78rem; }
.ins-source-claim { display: block; color: var(--ins-ink); }
.ins-source-links { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.ins-sources .ins-source-link { margin-top: 0.15rem; }

/* --------------------------------------------------------------------------
   5. 375px -- every component verified at the narrow breakpoint.
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  /* Unfloat and go full width. Overriding the custom property (not an inline
     max-width) is why no !important is needed here. */
  .ins-figure {
    --ins-figure-w: 100%;
    float: none;
    margin: 1.5rem auto;
  }
  .ins-keyfacts { padding: 1rem 1.05rem 1.1rem; }
  .ins-keyfact-value { font-size: 1.08rem; }
  /* One card per row: no card count can orphan. */
  .ins-statcards { max-width: 100%; margin: 1.9rem 0; }
  .ins-statcards-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .ins-statcard-value { font-size: 1.85rem; }
  .ins-statcard-src { margin-top: 0.35rem; }
  .ins-sources-list { padding-left: 1.2rem; }
}

/* Print: the sources panel is the one new block worth keeping on paper. */
@media print {
  .ins-figure { float: none; break-inside: avoid; }
  .ins-keyfacts,
  .ins-statcards,
  .ins-source { break-inside: avoid; }
  .ins-statcards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   IPS26 TRIBUTE BAND (hub only)
   Homage to the 22nd International Property Show, whose official
   media partner RealTimes is. Typography-led by design: the IPS mark
   available to us is keyed from a 200x200 JPEG and degrades if
   enlarged, so type/colour/layout carry the weight and the mark sits
   at honest size.
   Teal tokens are SAMPLED FROM THE IPS MARK ITSELF, not invented.
   Dark-surface contract: text is pure #fff at opacity 1, marks are
   the white variants, nothing is opacity-dimmed.
   ============================================================ */
:root{
  --ips-teal:#157e9a;
  --ips-teal-deep:#0f5f74;
  --ips-teal-accent:#25b4ad;
}
.ins-ips-band{
  background:linear-gradient(135deg,var(--ips-teal-deep) 0%,var(--ips-teal) 62%,#12708a 100%);
  color:#ffffff;
  padding:22px 20px 24px;
  border-bottom:3px solid var(--ips-teal-accent);
}
.ins-ips-inner{max-width:1180px;margin:0 auto;text-align:center;}
.ins-ips-band *{color:#ffffff;}

.ins-ips-lockup{
  display:flex;align-items:center;justify-content:center;
  gap:16px;flex-wrap:wrap;margin-bottom:14px;
}
.ins-ips-mark{display:block;width:auto;opacity:1;filter:none;}
.ins-ips-mark-rt{height:30px;}
.ins-ips-mark-ips{height:34px;}
.ins-ips-role{
  font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding:6px 13px;border:1px solid rgba(255,255,255,.55);border-radius:999px;
  white-space:nowrap;
}
.ins-ips-edition{
  margin:0;font-size:clamp(1.45rem,3.6vw,2.35rem);line-height:1.12;
  font-weight:800;letter-spacing:-.015em;
}
.ins-ips-when{
  margin:9px 0 0;font-size:.94rem;font-weight:600;
  display:flex;align-items:center;justify-content:center;
  gap:9px;flex-wrap:wrap;
}
.ins-ips-dot{opacity:.72;}
.ins-ips-countdown{
  background:var(--ips-teal-accent);color:#06333f;
  font-weight:800;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;
  padding:4px 11px;border-radius:999px;
}
.ins-ips-countdown *{color:#06333f;}
.ins-ips-positioning{
  margin:13px 0 0;font-size:1.02rem;font-style:italic;font-weight:500;
}
.ins-ips-strategic{
  margin:8px 0 0;font-size:.83rem;
  display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
}
.ins-ips-strategic-label{letter-spacing:.11em;text-transform:uppercase;opacity:.85;}

.ins-ips-verticals{
  list-style:none;margin:16px 0 0;padding:0;
  display:flex;justify-content:center;gap:8px;flex-wrap:wrap;
}
.ins-ips-vertical{
  font-size:.79rem;font-weight:700;letter-spacing:.02em;
  padding:6px 12px;border-radius:6px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.24);
  white-space:nowrap;
}

@media (max-width:720px){
  .ins-ips-band{padding:18px 14px 20px;}
  .ins-ips-lockup{gap:11px;}
  .ins-ips-mark-rt{height:24px;}
  .ins-ips-mark-ips{height:27px;}
  .ins-ips-role{font-size:.63rem;padding:5px 10px;letter-spacing:.12em;}
  .ins-ips-when{font-size:.83rem;gap:7px;}
  .ins-ips-positioning{font-size:.92rem;}
  /* Verticals scroll horizontally rather than wrapping into a ragged
     block at 375px. Deliberate mobile treatment, not an overflow. */
  .ins-ips-verticals{
    flex-wrap:nowrap;justify-content:flex-start;
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    margin-inline:-14px;padding-inline:14px;
  }
  .ins-ips-verticals::-webkit-scrollbar{display:none;}
  .ins-ips-vertical{flex:0 0 auto;font-size:.73rem;padding:5px 10px;}
}
@media print{ .ins-ips-band{background:none;border-bottom:1px solid #999;}
  .ins-ips-band *{color:#000 !important;} }
