/* Guide pages (2026-10-03): a page that explains one thing a traveller searches for and shows how
   the app helps, first used by /flight-compensation/. It sits on the reading pages' paper and type
   (page.css: .doc) and adds a wider frame: a two-column top with a picture, reading columns, a
   table, a letter and a split with a second picture. Layout and colour roles only. Every duration
   and curve is a token from base.css (web motion law); nothing here is hidden by script. */

.guide { --accent-text: #98484f; }  /* the rose darkened for 17 px eyebrows: 5.43:1 on --bg, 4.95:1 on --tile (measured, scripts/contrast.py) */
.guide .t-eyebrow { color: var(--accent-text); }

/* the frame: the article is wide; text sections take the reading column inside it. The homepage
   pads every <section> by up to 152 px (lounge.css); a guide sets its own, tighter rhythm. */
.doc.guide .read { width: min(1120px, 100% - 2 * var(--gutter)); }
.guide section { padding-block: 0; }
.guide section.g-col { width: min(68ch, 100%); margin-inline: auto; padding-top: clamp(56px, 7vw, 96px); }
.guide .g-col > h2:first-child, .guide .g-split h2 { margin-top: 0; }
.guide h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.003em; margin-bottom: 16px; }

/* 1. the top: the promise beside the App Store picture */
.g-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.g-top__text { display: grid; gap: 18px; justify-items: start; }
.g-top__text > * { margin: 0; }
.doc.guide .g-top h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
.doc.guide .g-top .intro { margin: 0; max-width: 30em; }
.doc.guide .g-top .muted { margin: 0; }
.g-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.doc.guide .read a.btn { color: #f6eeea; text-decoration: none; }
.doc.guide .read a.g-more { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: transparent; }
.doc.guide .read a.g-more:hover { text-decoration-color: currentColor; }
.g-more::after { content: "\00a0\203A"; }

/* the pictures: App Store artwork, tall, on its own rounded card */
.g-shot { margin: 0; width: min(360px, 78vw); }
.g-shot img { display: block; width: 100%; height: auto; border-radius: 36px; background: var(--tile); box-shadow: 0 30px 60px -34px rgba(43,31,37,.45); }

/* 2. the amounts and the comparison: quiet rows, figures that line up */
.g-table { display: grid; margin: 20px 0 14px; border-top: 1px solid var(--line); }
.g-table > [role="row"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.g-table b { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-table__head { font-size: 14px !important; color: var(--soft); padding-block: 10px !important; }
.g-table--3 > [role="row"] { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.g-table--3 [role="rowheader"] { color: var(--soft); }

/* 3. the three steps: numbered, with air */
.g-steps { list-style: none; counter-reset: s; margin: 20px 0 20px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc .g-steps li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; margin: 0; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.g-steps li::before { content: counter(s); font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; grid-row: span 2; }
.g-steps li b { display: block; }

/* 4. the letter: paper on paper, the words as they will be sent */
.g-letter { position: relative; margin-top: 20px; background: var(--tile); border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.g-letter pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 16px; line-height: 1.55; color: var(--ink); }  /* the letter in the system font, as Mail will show it */
.g-copy { float: right; position: relative; margin: -6px -6px 12px 16px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 980px; background: var(--ink); color: #f6eeea; font: 15px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; letter-spacing: -0.01em; cursor: pointer;
  outline: 2px solid transparent; outline-offset: 3px;
  transition: filter var(--dur-fast) var(--ease-in-out), outline-color var(--dur-fast) var(--ease-in-out); }
.g-copy:hover { filter: brightness(1.12); }
.g-copy:active { filter: brightness(0.92); }
.g-copy:focus-visible { outline-color: var(--ink); }
.g-copy span { display: block; transition: opacity var(--dur-fast) var(--ease-in-out); }
.g-copy__b { position: absolute; inset: 0; display: grid !important; place-items: center; opacity: 0; }
.g-copy.is-done .g-copy__a { opacity: 0; }
.g-copy.is-done .g-copy__b { opacity: 1; }

/* 5. the app: the second picture beside what it does */
.guide section.g-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 120px); padding: clamp(28px, 5vw, 72px); background: var(--tile); border-radius: 36px; }
.g-split__text > :last-child { margin-bottom: 0; }
.g-split .g-cta { margin: 22px 0 10px; }
.doc.guide .g-split .muted { margin: 0; }
.g-shot--form img { box-shadow: none; background: transparent; }

/* 6. the price box is the homepage's own (lounge.css, round3.css); here it only gets its place */
.g-price { margin-top: clamp(64px, 8vw, 120px); }
.guide .g-price .box .t-eyebrow { color: #e3a7a3; }  /* the rose on plum: 7.79:1 (measured) */
.doc.guide .read .g-price a.btn { color: var(--ink); }
.guide .g-price .box p { color: inherit; margin: 0; }
.guide .g-price .box .t-lead, .guide .g-price .figure small { color: #b9beb5; }
.guide section.g-foot { padding-top: clamp(28px, 4vw, 48px); }
.doc.guide .g-foot .muted { margin-bottom: 10px; }

@media (max-width: 860px) {
  .g-top { grid-template-columns: 1fr; }
  .g-top .g-shot { justify-self: center; }
  .guide section.g-split { grid-template-columns: 1fr; }
  .g-split .g-shot { justify-self: center; width: min(300px, 74vw); }
}
@media (max-width: 520px) {
  .g-table--3 > [role="row"] { grid-template-columns: 1fr; gap: 4px; }
  .g-table--3 .g-table__head { display: none; }
  .g-table--3 [role="cell"]:nth-child(2)::before { content: "On your own: "; color: var(--soft); }
  .g-table--3 [role="cell"]:nth-child(3)::before { content: "Claims company: "; color: var(--soft); }
  .g-table--3 [role="rowheader"] { color: var(--ink); font-weight: 600; }
  .g-copy { float: none; display: block; margin: 0 0 16px; }
}
