/* SeenBooked: blog layout and figures. Standard of 18 Nov 2026 (brand/visual-rules.md).
   Tokens only (tokens.css). Load after page.css and scenes.css.
   Rules in short: one 2px frame per figure, no title bar, hard shadows only on things you press,
   spacing in multiples of 8, Hanken Grotesk for reading, mono for small labels and numbers.

   README: CLASSES AND DATA ATTRIBUTES
   ------------------------------------------------------------------------------------------------
   PAGE
     .ah (article header block, add .block .block--sun)  .ah__grid  .ah__text  .ah__fig (hero slot, from 960px)
       .crumb (breadcrumb, mono)  .kicker  .ah__h1  .ah__lede  .ah__meta (mono meta row)
     .ab (article body block, add .block .block--white)  .ab__grid
       .toc-wrap > details.toc > summary + nav[data-toc]   blog.js fills the nav from h2 elements that have an id
       .article__body   all prose goes in here; paragraphs, lists and headings stay about 70ch wide
     .tbl (scroll box around a table; blog.js wraps bare tables for you)   td.n / th.n = mono number cell
     sup > a  footnote marker, href="#src-N"
   BLOCKS (inside .article__body)
     .answer (.answer__label)   .keynums > .keynum (.keynum__n .keynum__c .keynum__s)   .note (.note__label)
     .pitch (.pitch__label .pitch__t .pitch__btn)   ol.steps > li (.steps__n .steps__t)
     .faq > h2 + .faq__list > details > summary + p   ol.sources > li#src-N
   CLOSING BLOCKS (outside the body grid, direct children of main)
     section.endcta (.block)  .endcta__t .endcta__lede .plans3 > .plan3 (.plan3__n .plan3__p .plan3__d) .endcta__link
     section.related (.block .block--fog)  .related__grid > a.rel (.rel--sun .rel--blue .rel--white) .rel__k .rel__t .rel__go
   EXTERNAL LINKS  every a[href^="http"] outside seenbooked.com needs rel="nofollow noopener" target="_blank";
     blog.js adds what is missing.

   FIGURES  <figure class="fig fig2" data-fig="TYPE"> ... <figcaption><span>Example data, not a real hotel. ...</span>
     <button type="button" class="fig__replay">Replay</button></figcaption></figure>
     One frame: .mock (2px ink border, white). No title bar. Elements with class .rv fade in and rise 8px in
     document order (blog.js). Numbered markers: span.mark on the mockup, and the same number in
     ol.anno__notes > li.anno__note (span.mark + p > b + text). JS lines each note up with its marker.
     data-fig="anno"   mockup + notes. Wrap in .anno > (.mock + ol.anno__notes). Google price list, Booking.com receipt.
     data-fig="seq"    anything else that only reveals in order (.rv): flow, range charts, stacked bar, letters.
     data-fig="calc"   the commission calculator. Sliders: .rng input[type=range][data-k=rooms|rate|occ|ota|com][data-fmt=plain|usd|pct];
                       results: [data-out=month|year].
     Parts: .mock .serp__*     Google hotel prices panel
            .mock.flow         .flow__map > .fnode (.fnode__k .fnode__t .fnode__s) + .fc + .fk; .flow__old
            .mock.rg           range chart: .rg__axis .rg__grid, ul.rg__rows > li.rg__row (.rg__top .rg__track .rg__txt .rg__src)
            .mock.bk           stacked bar: .bk__bar > i; ol.bk__list > li (--x centre of the part in %)
            .mock.mail         email: .mail__subject .mail__from .mail__body, li.flag > .sev + div
            .mock.rcpt         receipt: .rcpt__row, .rcpt__cmp
            .mock.fcalc         calculator: .fcalc__in .fcalc__out .fcalc__foot
   SCENE SLOT  <figure class="fig fig-scene"><sb-prices></sb-prices><figcaption>...</figcaption></figure>
   STATE CLASSES (set by JS)  .fg-off .fg-pop .fig--static
   ------------------------------------------------------------------------------------------------ */

/* ===================================================================================================
   ARTICLE HEADER
   =================================================================================================== */
.ah { padding-block: clamp(40px, 6vw, 88px); }
.ah__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.ah__grid > * { min-width: 0; }
.crumb {
  margin: 0 0 24px;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.crumb a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.crumb a:hover { background: var(--ink); color: var(--sun); }
.crumb span[aria-hidden] { margin-inline: .5em; }
.ah__h1 {
  margin: 0 0 .45em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.1rem, 4.7vw, 4.1rem);   /* between --t-h2 and --t-hero at every width */
  line-height: .95;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ah__lede { margin: 0 0 24px; max-width: 46ch; }
.ah__meta {
  margin: 0;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.6;
}
.ah__fig .fig { margin: 0; }
@media (min-width: 960px) {
  .ah__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}

/* ===================================================================================================
   ARTICLE BODY, TABLE OF CONTENTS
   =================================================================================================== */
.ab { padding-block: clamp(32px, 5vw, 72px); }
.ab__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ab__grid > * { min-width: 0; }

.toc { border: 2px solid var(--ink); background: var(--white); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; cursor: pointer; list-style: none;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
.toc[open] summary::after { content: "\2212"; }
.toc summary:hover { background: var(--sun); }
.toc nav { padding: 0 16px 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block; padding: 8px 0 8px 12px;
  border-left: 2px solid transparent;
  font: 500 .9rem/1.3 var(--f-body);
  text-decoration: none;
}
.toc a:hover { border-left-color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--ink); background: var(--sun); font-weight: 700; }
.toc-wrap[hidden] { display: none; }

@media (min-width: 1100px) {
  .ab__grid { grid-template-columns: 250px minmax(0, 44rem); gap: 64px; }
  .toc-wrap { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
  .toc { border: 0; border-top: 2px solid var(--ink); background: transparent; }
  .toc summary { pointer-events: none; cursor: default; padding-inline: 0; }
  .toc summary::after { display: none; }
  .toc summary:hover { background: transparent; }
  .toc nav { padding-inline: 0; }
}

/* ---------- prose ---------- */
.article__body { font-size: var(--t-body); line-height: 1.65; max-width: 44rem; min-width: 0; }  /* one measure (704px) and one right edge for every block */
.article__body > * { max-width: 100%; }
.article__body > :first-child { margin-top: 0; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2 {
  margin: clamp(2.5rem, 4vw, 3.25rem) 0 .6em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h2); line-height: .95; text-wrap: balance;
}
.article__body h3 {
  margin: clamp(1.75rem, 3vw, 2.25rem) 0 .5em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h3); line-height: 1; text-wrap: balance;
}
.article__body h4 {
  margin: 1.6em 0 .4em;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.article__body h2[id], .article__body h3[id] { scroll-margin-top: 84px; }
.article__body a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article__body a:hover { background: var(--sun); }
.article__body strong { font-weight: 700; }
.article__body blockquote {
  margin: 1.6em 0; padding: .2em 0 .2em 1.2em;
  border-left: 4px solid var(--ink);
  font-size: 1.2rem; font-weight: 500;
}
.article__body sup { font-family: var(--f-mono); font-weight: 700; }
.article__body sup a { text-decoration: none; padding: 0 .2em; background: var(--sun); }
.article__body sup a:hover { background: var(--ink); color: var(--sun); }

/* lists: only plain ul and ol (no class) get the article style; figures and blocks style their own */
.article__body ul:not([class]) { list-style: none; margin: 0 0 1.2em; padding: 0; }
.article__body ul:not([class]) > li { position: relative; padding-inline-start: 1.9em; }
.article__body ul:not([class]) > li::before {
  content: "\2192"; position: absolute; inset-inline-start: 0; top: 0;
  font-family: var(--f-mono); font-weight: 700;
}
.article__body ol:not([class]) { margin: 0 0 1.2em; padding-inline-start: 2.2em; }
.article__body ol:not([class]) > li::marker { font-family: var(--f-mono); font-weight: 700; }
.article__body :is(ul, ol):not([class]) > li + li { margin-top: .5em; }
.article__body li > :is(ul, ol):not([class]) { margin-top: .5em; margin-bottom: 0; }

/* tables: two rules and light dividers, no box, no zebra */
.tbl { max-width: 100%; margin: 32px 0; overflow-x: auto; border-block: 2px solid var(--ink); background: var(--white); }
.tbl:focus-visible { outline-offset: 2px; }
.tbl table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.tbl caption {
  caption-side: top; padding: 16px 16px 8px; text-align: start;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tbl th, .tbl td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid #dcdcd5; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl thead th {
  background: var(--fog); color: var(--ink);
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}
.tbl tbody th { font-weight: 700; }
.tbl .n, .tbl td.n, .tbl th.n { font-family: var(--f-mono); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: end; }

/* ===================================================================================================
   BLOCKS
   =================================================================================================== */
/* short answer: a sun panel, no frame, no shadow */
.answer {
  margin: 0 0 clamp(32px, 4vw, 40px); padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 32px);
  background: var(--sun);
  font-size: 1.1875rem; line-height: 1.55; font-weight: 500;
}
.answer__label, .note__label, .pitch__label {
  display: block; margin: 0 0 8px; padding: 0;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.answer p:last-child { margin-bottom: 0; }

/* key numbers: a row between two rules */
.keynums {
  display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: clamp(32px, 4vw, 40px) 0;
  border-block: 2px solid var(--ink);
}
.keynum { padding: 24px 0 16px; min-width: 0; }
.keynum + .keynum { border-top: 1px solid #dcdcd5; }
.keynum__n {
  margin: 0 0 8px;
  font-family: var(--f-display); font-weight: 900; line-height: .9;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  overflow-wrap: anywhere;
}
.keynum__c {
  margin: 0 0 8px;
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.keynum__s { margin: 0; font-family: var(--f-mono); font-size: var(--t-label); color: var(--dim); }
.keynum__s sup a { background: transparent; padding: 0; text-decoration: underline; }
@media (min-width: 560px) {
  .keynum { padding-inline: 24px; }
  .keynum:first-child { padding-inline-start: 0; }
  .keynum + .keynum { border-top: 0; border-inline-start: 1px solid #dcdcd5; }
}

/* caveat */
.note {
  margin: clamp(24px, 3vw, 32px) 0; padding: 16px 24px 24px;
  background: var(--fog);
  font-size: var(--t-small); line-height: 1.6;
}
.note p:last-child { margin-bottom: 0; }

/* inline pitch: an ink strip. The button is the only thing with a shadow. */
.pitch {
  display: grid; gap: 16px 32px; grid-template-columns: minmax(0, 1fr); align-items: center;
  margin: clamp(32px, 5vw, 48px) 0; padding: clamp(24px, 3vw, 32px);
  background: var(--ink); color: var(--sun);
}
.pitch > * { min-width: 0; }
.pitch__label { margin: 0 0 8px; color: var(--white); }
.pitch__t {
  margin: 0 0 8px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h3); line-height: 1; text-wrap: balance;
}
.pitch p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--white); }
.pitch p.pitch__t { color: var(--sun); }
.pitch .pitch__btn, .article__body .pitch .btn {
  --btn-shadow: var(--white);
  background: var(--sun); color: var(--ink); text-decoration: none;
  border-color: var(--sun); justify-self: start;
}
.article__body .pitch .btn:hover { background: var(--sun); }
@media (min-width: 720px) {
  .pitch { grid-template-columns: minmax(0, 1fr) auto; }
}

/* steps: a numbered list between two rules */
.steps {
  list-style: none; margin: clamp(32px, 4vw, 40px) 0; padding: 0;
  counter-reset: stp;
  border-block: 2px solid var(--ink);
}
.article__body .steps > li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 0 16px;
  margin: 0; padding: 24px 0;
  counter-increment: stp;
}
.article__body .steps > li::before { content: none; }
.steps > li + li { border-top: 1px solid #dcdcd5; }
.steps__n {
  grid-row: 1 / span 3;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--ink); color: var(--sun);
  font-family: var(--f-mono); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps__n:empty::before { content: counter(stp); }
.steps__t {
  margin: 0; align-self: center; min-height: 32px; display: flex; align-items: center;
  font: 700 1.1875rem/1.3 var(--f-body);
}
.steps li > p { grid-column: 2; margin: 8px 0 0; font-size: 1rem; line-height: 1.6; }
.article__body .steps li > p.steps__t { margin: 0; }

/* faq: page.css supplies .faq__list and .faq summary; here we only tune it for the article */
.article__body .faq { margin-top: 0; }
.article__body .faq .faq__list { margin-top: 0; max-width: none; }
.article__body .faq summary { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
.article__body .faq details > p { font-size: 1.0625rem; line-height: 1.6; }

/* sources */
.article__body .sources {
  margin: 0; padding: 24px 0 0 2.2em;
  display: block; gap: 0; border-top: 2px solid var(--ink);
  font-size: var(--t-small); line-height: 1.5; color: var(--ink);
}
.article__body .sources li { padding-inline-start: .2em; scroll-margin-top: 90px; }
.article__body .sources li + li { margin-top: .6em; }
.article__body .sources li::before { content: none; }
.article__body .sources li::marker { font-family: var(--f-mono); font-weight: 700; }
.article__body .sources li:target { background: var(--sun); }
.article__body .sources em { font-family: var(--f-mono); font-style: normal; font-size: .8em; letter-spacing: .04em; color: var(--dim); }

/* ===================================================================================================
   CLOSING BLOCKS
   =================================================================================================== */
.endcta { background: var(--blue); color: var(--white); padding: var(--section) var(--gutter); overflow-x: clip; border-top: 2px solid var(--ink); }
.endcta a { color: inherit; }
.endcta__t {
  margin: 0 0 .4em; max-width: 16ch;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h2); line-height: .95; text-wrap: balance;
}
.endcta__lede { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 52ch; font-size: var(--t-lede); line-height: 1.4; font-weight: 500; }
.plans3 {
  display: grid; gap: 24px 32px; grid-template-columns: minmax(0, 1fr);
  margin: 0 0 clamp(24px, 3vw, 40px); padding: 0; list-style: none;
}
.plan3 { padding: 16px 0 0; border-top: 2px solid var(--white); min-width: 0; }
.plan3__n {
  margin: 0 0 8px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; line-height: 1;
  overflow-wrap: anywhere;
}
.plan3__p { margin: 0 0 8px; font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; color: var(--sun); }
.plan3__d { margin: 0; font-size: var(--t-small); line-height: 1.5; }
@media (min-width: 640px) {
  .plans3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.endcta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.endcta .btn { --btn-shadow: var(--ink); background: var(--sun); color: var(--ink); border-color: var(--ink); }
.endcta__link {
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.endcta__link:hover { background: var(--white); color: var(--blue); }
.endcta :focus-visible { outline-color: var(--sun); }

.related { padding: var(--section) var(--gutter); background: var(--fog); border-top: 2px solid var(--ink); overflow-x: clip; }
.related__t {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: var(--t-h2); line-height: .95;
}
.related__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .related__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
/* a card you press: flat at rest, a hard shadow when you reach for it */
.rel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 216px;
  padding: 16px 16px 16px; min-width: 0;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.rel:hover, .rel:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.rel--sun { background: var(--sun); }
.rel--blue { background: var(--blue); color: var(--white); }
.rel--blue:hover, .rel--blue:focus-visible { box-shadow: 4px 4px 0 var(--ink); }
.rel__k { margin: 0; font-family: var(--f-mono); font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rel__t {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: .95; text-wrap: balance; overflow-wrap: anywhere;
}
.rel__go { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 1rem; }
.rel--blue:focus-visible { outline-color: var(--sun); }

/* ===================================================================================================
   FIGURES (brand/visual-rules.md): one 2px frame, no title bar, mockups that look like the real screen,
   numbered markers with notes beside them. Spacing in multiples of 8.
   =================================================================================================== */
/* figure lists are plain: list-style and spacing set per component */
ol.anno__notes, .fig ul, .fig ol { list-style: none; margin: 0; padding: 0; }
.fig p { margin: 0; max-width: none; }

.fig {
  container-type: inline-size;
  margin: 40px 0; min-width: 0;
  color: var(--ink); font-family: var(--f-body); line-height: 1.4;
}
.fig-scene { padding: 0; }
.fig-scene sb-prices, .fig-scene sb-namesearch, .fig-scene sb-ai, .fig-scene sb-yandex, .fig-scene sb-board { min-height: 380px; }
.fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  margin: 16px 0 0; max-width: none;
  font: 400 .8125rem/1.5 var(--f-body); letter-spacing: 0; color: var(--dim);
}
.fig figcaption a { text-decoration: underline; }
.fig__replay {
  appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink);
  font: 700 .6875rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.fig__replay:hover { color: var(--blue); }
.fig__replay:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.fig__replay[hidden] { display: none; }

/* reveal: fade and rise 8px, staggered by JS */
.fg-off { visibility: hidden; }
.fg-pop { animation: fg-pop .38s var(--ease) both; }
@keyframes fg-pop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rv { transition: opacity .38s var(--ease), transform .38s var(--ease); }
.rv.fg-off { visibility: visible; opacity: 0; transform: translateY(8px); }

/* the frame every figure shares */
.mock { position: relative; background: var(--white); border: 2px solid var(--ink); color: #1f1f1f; font-family: var(--f-body); }

/* annotated layout: mockup on the left, numbered notes on the right; notes go below on narrow screens */
.anno { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 640px) { .anno { grid-template-columns: minmax(0, 1fr) 13.5rem; gap: 32px; align-items: start; } }
.anno__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-content: start; }
@media (min-width: 640px) { .anno__notes { padding-top: 72px; gap: 24px; } }
.anno__note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font: 400 .9375rem/1.45 var(--f-body); }
.anno__note b { display: block; font-weight: 700; }
.mark {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  background: var(--ink); color: var(--sun);
  font: 700 .75rem/1 var(--f-mono); font-variant-numeric: tabular-nums;
}
/* a marker sits on the right edge of the row it points at; on phones it moves inside the row */
.mock .mark { position: absolute; inset-inline-end: -13px; top: 50%; margin-top: -12px; }
@media (max-width: 639px) {
  .mock .mark { inset-inline-end: auto; inset-inline-start: 8px; top: 50%; margin-top: -8px; width: 16px; height: 16px; font-size: .625rem; }
  .mock :has(> .mark) { padding-inline-start: 32px; }
}
/* on wide screens JS lines each note up with its marker */
@media (min-width: 640px) {
  .anno__notes.is-aligned { position: relative; display: block; padding-top: 0; }
  .anno__notes.is-aligned .anno__note { position: absolute; inset-inline: 0; }
}

/* ---------- Google hotel prices panel ---------- */
.serp__top { padding: 16px 24px; border-bottom: 1px solid #e3e3de; }
.serp__hotel { margin: 0; font: 600 1.1875rem/1.25 var(--f-body); color: #1f1f1f; }
.fig .serp__meta { margin: 4px 0 0; font: 400 .8125rem/1.4 var(--f-body); color: #5f6368; }
.serp__stars { color: #e7a500; letter-spacing: 1px; }
.serp__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 16px; }
.serp__strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #ecece7; }
.serp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.serp__chip { padding: 8px 12px; border: 1px solid #c7c7c2; font: 500 .8125rem/1.2 var(--f-body); color: #1f1f1f; }
.serp__label { margin: 0; padding: 16px 24px 8px; font: 600 .8125rem/1.3 var(--f-body); color: #1f1f1f; }
.serp__list { list-style: none; margin: 0; padding: 0 0 8px; }
.serp__row {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 12px 24px; border-top: 1px solid #ecece7;
}
.serp__label + .serp__list .serp__row:first-child { border-top: 0; }
.serp__logo {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: #ecece7; color: #3c4043; font: 700 .875rem/1 var(--f-body);
}
.serp__name { min-width: 0; font: 500 .9375rem/1.3 var(--f-body); }
.serp__name small { display: block; margin-top: 2px; font: 400 .75rem/1.3 var(--f-body); color: #5f6368; }
.serp__ad { font-weight: 700; color: #1f1f1f; }
.serp__price { font: 600 1rem/1 var(--f-body); font-variant-numeric: tabular-nums; text-align: end; }
.serp__price small { display: block; margin-top: 4px; font: 500 .75rem/1 var(--f-body); color: #1a5fd0; }
.serp__row--you { background: #fff8d1; box-shadow: inset 4px 0 0 var(--sun); }
.serp__row--you .serp__logo { background: var(--sun); color: var(--ink); }
.serp__row--you .serp__name { font-weight: 700; }
.serp__more { margin: 0; padding: 12px 24px 16px; border-top: 1px solid #ecece7; font: 500 .8125rem/1.3 var(--f-body); color: #1a5fd0; }
@media (max-width: 639px) {
  .serp__top, .serp__label, .serp__more { padding-inline: 16px; }
  .serp__row { padding-inline: 16px; gap: 12px; }
}

/* ---------- flow: how your price reaches Google ---------- */
.flow { border: 0; background: none; color: var(--ink); }
.flow__map { display: flex; flex-direction: column; align-items: stretch; }
.fnode { min-width: 0; padding: 16px; background: var(--white); border: 2px solid var(--ink); }
.fnode--free { background: var(--sun); }
.fnode__k { display: block; font: 700 .6875rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.fnode__t { display: block; margin: 8px 0 4px; font: 700 1.125rem/1.25 var(--f-body); }
.fnode__s { display: block; font: 400 .875rem/1.45 var(--f-body); }
/* connectors: 2px lines, arrowheads made from borders */
.fc { position: relative; flex: none; background: var(--ink); }
.fc::after, .fk i { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent; }
.fig .flow__old {
  margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid #c7c7c2;
  font: 400 .875rem/1.5 var(--f-body); color: var(--dim);
}
.flow__old s { text-decoration-thickness: 2px; text-decoration-color: var(--ink); }
.flow__old b { font-weight: 700; color: var(--ink); }

/* phone: nodes stacked, the two outcomes side by side under a small fork */
.flow__map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
.flow__map > .fnode--1, .flow__map > .fnode--2 { grid-column: 1 / -1; }
.fc--1, .fc--2 { grid-column: 1 / -1; width: 2px; height: 24px; margin-inline: auto; }
.fc--2 { height: 16px; }
.fc--1::after { left: -4px; bottom: -1px; border-width: 8px 5px 0; border-top-color: var(--ink); }
.fc--2::after { display: none; }
.fk { position: relative; height: 24px; }
.fk::before { content: ""; position: absolute; top: 0; height: 2px; background: var(--ink); }
.fk--t::before { left: 50%; right: -4px; }
.fk--b::before { left: -4px; right: 50%; }
.fk::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.fk i { left: 50%; bottom: -1px; margin-left: -5px; border-width: 8px 5px 0; border-top-color: var(--ink); }
@container (min-width: 600px) {
  .flow__map { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 48px minmax(0, 1.15fr); grid-template-rows: auto auto; column-gap: 0; row-gap: 16px; }
  .flow__map > .fnode--1 { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .flow__map > .fc--1 { grid-column: 2; grid-row: 1 / 3; align-self: center; width: auto; height: 2px; margin: 0; }
  .fc--1::after { left: auto; right: -1px; bottom: auto; top: -4px; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink); }
  .flow__map > .fnode--2 { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .flow__map > .fc--2 { grid-column: 4; grid-row: 1 / 3; align-self: center; width: 24px; height: 2px; margin: 0; }
  .flow__map > .fk--t { grid-column: 4; grid-row: 1; height: auto; }
  .flow__map > .fk--b { grid-column: 4; grid-row: 2; height: auto; }
  .fk::before { left: 24px; right: 0; top: 50%; height: 2px; margin-top: -1px; }
  .fk--t::before, .fk--b::before { left: 24px; right: 0; }
  .fk::after { left: 24px; }
  .fk--t::after { top: 50%; bottom: -8px; }
  .fk--b::after { top: -8px; bottom: 50%; }
  .fk i { left: auto; right: -1px; bottom: auto; top: 50%; margin: -5px 0 0; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--ink); }
  .flow__map > .fnode--free { grid-column: 5; grid-row: 1; }
  .flow__map > .fnode--paid { grid-column: 5; grid-row: 2; }
}
@media (max-width: 639px) { .fnode { padding: 12px; } }

/* ---------- range chart: a shared axis, one row per seller or case ---------- */
.rg { padding: 24px; }
.rg__plot { position: relative; }
.rg__axis { position: relative; height: 24px; }
.rg__tick { position: absolute; top: 0; left: calc(var(--t) * 100% / var(--max)); transform: translateX(-50%); font: 400 .6875rem/1 var(--f-mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.rg__tick:first-child { transform: none; }
.rg__tick:last-child { transform: translateX(-100%); }
.rg__grid { position: absolute; inset: 24px 0 0 0; z-index: 0; }
.rg__grid i:last-child { margin-left: -1px; }
.rg__grid i { position: absolute; top: 0; bottom: 0; left: calc(var(--t) * 100% / var(--max)); width: 1px; background: #dcdcd5; }
.rg__rows { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.rg__row { border-top: 1px solid #dcdcd5; }
.rg__row:first-child { border-top: 1px solid var(--ink); }
.rg__top, .rg__txt, .rg__src { position: relative; background: var(--white); }
.rg__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0 8px; }
.rg__name { font: 700 1rem/1.3 var(--f-body); }
.rg__val { flex: none; font: 700 .9375rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; text-align: end; }
.rg__val--none { font: 500 .875rem/1.3 var(--f-body); color: var(--dim); }
.rg__track { position: relative; height: 16px; }
.rg__bar { position: absolute; top: 2px; height: 12px; left: calc(var(--a, 0) * 100% / var(--max)); width: calc((var(--b) - var(--a, 0)) * 100% / var(--max)); background: var(--blue); }
.rg__bar--ink { background: var(--ink); }
.rg__pt { position: absolute; top: 0; left: calc(var(--a) * 100% / var(--max)); width: 16px; height: 16px; margin-left: -8px; background: var(--sun); border: 2px solid var(--ink); }
.rg__none { position: absolute; top: 7px; left: 0; right: 0; border-top: 2px dashed #b9b9b2; }
.rg__txt { padding: 8px 0 0; font: 400 .875rem/1.5 var(--f-body); }
.rg__txt + .rg__txt { padding-top: 0; }
.rg__row > :last-child { padding-bottom: 16px; }
.rg__row:last-child > :last-child { padding-bottom: 0; }
.rg__src { padding: 8px 0 16px; font: 400 .75rem/1.5 var(--f-body); color: var(--dim); }
.rg__src a { color: inherit; }
.article__body .rg__src sup { font-family: var(--f-mono); }
.article__body .rg__src sup a { padding: 0 .2em; }
@media (max-width: 639px) { .rg { padding: 16px; } }

/* ---------- stacked bar: where $100 goes ---------- */
.bk { padding: 24px; }
.bk__head { display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 16px; }
.bk__head b { font: 900 2.5rem/1 var(--f-display); }
.bk__head span { font: 400 .875rem/1.4 var(--f-body); color: var(--dim); }
.bk__bar { display: flex; gap: 2px; height: 48px; }
.bk__bar i { display: block; flex: var(--v) 1 0; min-width: 0; background: var(--c); }
.bk__bar i[data-c="keep"] { --c: var(--sun); }
.bk__bar i[data-c="genius"] { --c: var(--sky); box-shadow: inset 0 0 0 1px var(--ink); }
.bk__bar i[data-c="com"] { --c: var(--stamp); }
.bk__bar i[data-c="pref"] { --c: var(--ink); }
.bk__bar i[data-c="pay"] { --c: var(--blue); }
.bk__list { position: relative; list-style: none; margin: 0; padding: 0; }
.bk__item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid #dcdcd5; }
.bk__item:first-child { margin-top: 8px; }
.bk__sw { width: 16px; height: 16px; align-self: center; background: var(--c); }
.bk__sw[data-c="keep"] { --c: var(--sun); }
.bk__sw[data-c="genius"] { --c: var(--sky); box-shadow: inset 0 0 0 1px var(--ink); }
.bk__sw[data-c="com"] { --c: var(--stamp); }
.bk__sw[data-c="pref"] { --c: var(--ink); }
.bk__sw[data-c="pay"] { --c: var(--blue); }
.bk__lab { font: 400 .9375rem/1.3 var(--f-body); min-width: 0; }
.bk__val { font: 700 .9375rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; text-align: end; }
.bk__item--keep .bk__lab { font-weight: 700; }
.bk__lead { display: none; }
/* wide: labels step down under their part, each with a leader line from the part's centre */
@container (min-width: 600px) {
  .bk__list { height: 160px; margin-top: 0; }
  .bk__item {
    position: absolute; top: calc(var(--i) * 32px); height: 32px;
    right: calc(100% - var(--x)); display: flex; align-items: center; justify-content: flex-end; gap: 16px;
    padding: 0 12px 0 0; border: 0; margin: 0; white-space: nowrap;
  }
  .bk__item:first-child { margin-top: 0; }
  .bk__sw { display: none; }
  .bk__lead { display: block; position: absolute; right: 0; top: calc(var(--i) * -32px); width: 1px; height: calc(var(--i) * 32px + 16px); background: var(--ink); }
  .bk__lead::after { content: ""; position: absolute; left: -8px; bottom: 0; width: 8px; height: 1px; background: var(--ink); }
  .bk__lead::before { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; background: var(--ink); }
}
@media (max-width: 639px) { .bk { padding: 16px; } }

/* ---------- email: the weekly letter ---------- */
.mail__subject { margin: 0; padding: 24px 24px 0; font: 700 1.25rem/1.3 var(--f-body); color: #1f1f1f; }
.mail__from { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #e3e3de; }
.mail__av { display: grid; place-items: center; width: 40px; height: 40px; background: var(--sun); color: var(--ink); font: 700 .8125rem/1 var(--f-body); }
.mail__who { min-width: 0; font: 600 .9375rem/1.3 var(--f-body); }
.mail__who small { display: block; margin-top: 2px; font: 400 .8125rem/1.3 var(--f-body); color: #5f6368; }
.mail__date { font: 400 .8125rem/1.3 var(--f-body); color: #5f6368; white-space: nowrap; }
.mail__body { padding: 24px 24px 8px; font: 400 .9375rem/1.55 var(--f-body); }
.fig .mail__body > p { margin: 0 0 16px; }
.mail__flags { list-style: none; margin: 0; padding: 0; }
.flag { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-top: 1px solid #e3e3de; }
.flag:last-child { padding-bottom: 16px; }
.sev { align-self: start; white-space: nowrap; justify-self: start; padding: 4px 8px; font: 700 .6875rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sev--red { background: var(--stamp); color: var(--ink); }
.sev--sun { background: var(--sun); color: var(--ink); }
.fig .flag__t { margin: 0 0 8px; font-weight: 600; }
.flag__fix { color: #3c4043; }
.flag__fix b { font-weight: 700; color: #1f1f1f; }
@media (max-width: 639px) {
  .mail__subject { padding: 16px 16px 0; font-size: 1.125rem; }
  .mail__from { padding: 16px; gap: 12px; grid-template-columns: 40px minmax(0, 1fr); }
  .mail__date { grid-column: 2; }
  .mail__body { padding: 16px 16px 0; }
  .flag { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- receipt: Booking.com price details ---------- */
.rcpt__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem; align-items: baseline; gap: 8px 16px;
  padding: 12px 24px; border-top: 1px solid #ecece7; font: 400 .9375rem/1.3 var(--f-body);
}
.rcpt__row--head { border-top: 0; padding-block: 8px; font: 600 .75rem/1.3 var(--f-body); color: #5f6368; }
.rcpt__row span:nth-child(n+2) { text-align: end; font-variant-numeric: tabular-nums; }
.rcpt__row .rcpt__d { font: 400 .75rem/1.3 var(--f-body); color: #5f6368; }
.rcpt__row small { display: block; margin-top: 2px; font: 400 .75rem/1.3 var(--f-body); color: #5f6368; }
.rcpt__row--last { background: #fff8d1; box-shadow: inset 4px 0 0 var(--sun); font-weight: 700; }
.rcpt__row--last span:nth-child(3) { font-weight: 700; }
.rcpt__cmp { position: relative; padding: 16px 24px 24px; border-top: 1px solid #e3e3de; }
.fig .rcpt__cmp > p { margin: 0 0 12px; font: 600 .8125rem/1.3 var(--f-body); color: #1f1f1f; }
.cmp__row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 5rem; align-items: center; gap: 16px; }
.cmp__row + .cmp__row { margin-top: 8px; }
.cmp__n { font: 400 .875rem/1.3 var(--f-body); }
.cmp__bar { display: block; height: 16px; width: calc(var(--w) * 1%); background: var(--blue); }
.cmp__bar--you { background: var(--sun); box-shadow: inset 0 0 0 1px var(--ink); }
.cmp__v { font: 700 .875rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; text-align: end; }
.fig .cmp__gap { margin: 12px 0 0; font: 700 .875rem/1.3 var(--f-body); color: #1f1f1f; }
@media (max-width: 639px) {
  .rcpt__row { padding-inline: 16px; grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem; gap: 8px; }
  .rcpt__cmp { padding-inline: 16px; }
  .cmp__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .cmp__bar { grid-column: 1 / -1; grid-row: 2; }
  .cmp__row + .cmp__row { margin-top: 12px; }
}

/* ---------- calculator: the one figure you press, so it keeps hard shadows ---------- */
.fcalc { display: grid; grid-template-columns: minmax(0, 1fr); }
.fcalc__in { display: grid; gap: 24px; padding: 24px; }
.fcalc__out { display: grid; gap: 24px; align-content: center; padding: 24px; background: var(--ink); color: var(--white); }
.fcalc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px 24px; border-top: 1px solid #c7c7c2; }
.fig .fcalc__fine { margin: 0; font: 400 .875rem/1.5 var(--f-body); color: var(--dim); max-width: 36ch; }
.fcalc .rng { margin: 0; }
.fcalc .rng__top { margin-bottom: 8px; align-items: baseline; }
.fcalc .rng__top label { font: 500 .9375rem/1.3 var(--f-body); letter-spacing: 0; text-transform: none; }
.fcalc .rng__sub { color: var(--dim); }
.fcalc .rng__top output { padding: 0; background: none; color: var(--ink); font: 700 .9375rem/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.fcalc .rng input[type="range"] { height: 24px; }
.fcalc .rng input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); border: 0; }
.fcalc .rng input[type="range"]::-moz-range-track { height: 4px; background: var(--ink); border: 0; }
.fcalc .rng input[type="range"]::-webkit-slider-thumb { width: 20px; height: 24px; margin-top: -10px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.fcalc .rng input[type="range"]::-moz-range-thumb { width: 20px; height: 24px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.fig .fcalc__label { margin: 0 0 4px; font: 500 .875rem/1.3 var(--f-body); color: var(--fog); }
.fcalc__month { margin: 0; font: 700 clamp(1.5rem, 6cqi, 1.875rem)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; }
.fcalc__year { margin: 0; font: 900 clamp(3rem, 11cqi, 4.5rem)/.95 var(--f-display); font-variant-numeric: tabular-nums; color: var(--sun); white-space: nowrap; }
@container (min-width: 600px) {
  .fcalc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .fcalc__foot { grid-column: 1 / -1; }
}
@media (max-width: 639px) { .fcalc__in, .fcalc__out { padding: 16px; } .fcalc__foot { padding: 16px; } }

/* ===================================================================================================
   REDUCED MOTION: end states only
   =================================================================================================== */
@media (prefers-reduced-motion: reduce) {
  .fg-pop { animation: none; }
  .rv, .rel { transition: none; }
  .fig__replay { display: none; }
}

/* ===================================================================================================
   FEATURE IMAGE (1200 x 630). Header: .ah__fig > figure.feature > img. Related card: .rel > img.rel__img
   =================================================================================================== */
.feature { margin: 0; padding: 0; }
.feature img, .rel__img {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover;
  background: var(--fog); border: 2px solid var(--ink);
}
.feature figcaption { margin-top: 8px; font: 400 .8125rem/1.5 var(--f-body); color: var(--dim); }
.rel__img { margin: -16px -16px 0; width: calc(100% + 32px); max-width: none; border-width: 0 0 2px; }

/* ---------- blog index ---------- */
.rel__d { margin: 0 0 .9em; font-size: var(--t-body); line-height: 1.45; font-weight: 500; }
.related--index { border-top: 2px solid var(--ink); }

/* real favicons in mockups (css/logo.css .fav) */
.serp__logo.fav { background: var(--fav-bg, #fff); color: transparent; font-size: 0; }
.serp__row--you .serp__logo.fav { background: var(--fav-bg); }
.mail__av.fav { width: 40px; height: 40px; border-radius: 50%; --fav-bg: #fff; --fav-line: #d9d9d4; }
.rcpt__brand { padding: 12px 20px; background: #003580; color: #fff; font: 700 1.125rem/1 var(--f-body); letter-spacing: -.01em; }
