/* Guides, Which TVs and FAQ pages. Loaded after site.css and get.css (their tags, facts, steps and tips).
   Generated pages: scripts/site-seo.mjs writes the HTML; this file is the only hand made part.
   The head is the powder blue wall, the words sit on paper, one sky tip at most. Phone first, no script. */

/* a system font sized to Inter's measure, so the words do not rewrap (and jump) when Inter arrives on a slow phone */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Roboto"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107.1%; ascent-override: 90.4%; descent-override: 22.5%; line-gap-override: 0%; }
/* the same Inter file (preloaded, then cached), but never swapped in late: on these reading pages a slow
   phone keeps the fallback above rather than rewrapping a paragraph under the reader's thumb */
@font-face { font-family: "Inter Guide"; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: optional; }
body.guide { --text: "Inter Guide", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--paper); }
.guide .nav { background: linear-gradient(180deg, rgba(189, 207, 225, 0.96) 60%, rgba(189, 207, 225, 0)); }
html { scroll-padding-top: 84px; }

.g-in { width: min(100%, 780px); margin: 0 auto; }

/* ---------- the wall at the top ---------- */
.g-head { background: var(--wall); padding: clamp(92px, 13vw, 160px) var(--gutter) clamp(36px, 5vw, 72px); }
.g-head h1 { font-size: clamp(40px, 7.2vw, 84px); line-height: 0.96; letter-spacing: -0.035em; }
.g-head .lede { margin: 16px 0 0; max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }
.g-by { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }

.g-crumbs ol { list-style: none; margin: 0 0 10px -10px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); }
.g-crumbs li { display: inline-flex; align-items: center; }
.g-crumbs li + li::before { content: "/"; margin: 0 2px; opacity: 0.5; }
.g-crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink); }
.g-crumbs a:hover { background: rgba(255, 255, 255, 0.55); }
.g-crumbs [aria-current] { padding: 0 10px; }

/* ---------- the words ---------- */
.g-body { padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(48px, 6vw, 96px); }
.g-body h2 { margin: 44px 0 0; font: 900 clamp(28px, 3.6vw, 42px)/1.04 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.g-body h2:first-child { margin-top: 0; }
.g-body h3 { margin: 26px 0 0; font: 900 clamp(20px, 2vw, 24px)/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.g-body p { margin: 12px 0 0; max-width: 38em; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.g-body p b, .g-body li b { color: var(--ink); font-weight: 650; }
.g-body ul.g-list { margin: 12px 0 0; padding: 0; list-style: none; }
.g-body ul.g-list > li { position: relative; padding: 0 0 10px 22px; line-height: 1.55; color: var(--ink-2); }
.g-body ul.g-list > li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); }
.g-body a:not(.pill) { font-weight: 600; color: var(--ink); }
.g-body .steps { margin-top: 22px; }
.g-body .facts { margin-top: 18px; }
.g-body .box-tip h2 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }

/* the short answer at the top of each page */
.g-answer { margin: 0; padding: 20px 22px 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.1); }
.g-answer p:first-child { margin-top: 0; }
.g-answer p { color: var(--ink); font-size: 17.5px; }

/* tables: a real table for reading machines, stacked rows on a phone */
.g-table { width: 100%; margin: 16px 0 0; border-collapse: collapse; font-size: 15.5px; line-height: 1.4; }
.g-table caption { text-align: left; font-size: 14px; color: var(--ink-3); padding-bottom: 8px; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 1px solid rgba(20, 19, 26, 0.12); }
.g-table thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-3); border-top: 0; padding-top: 0; }
.g-table tbody th { font-weight: 650; color: var(--ink); }
.g-table th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.g-table tbody th:has(a) { padding-top: 0; padding-bottom: 0; }
.g-table td { color: var(--ink-2); }
.g-table .tag { height: 26px; font-size: 13px; padding: 0 10px; }
.tag-no { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.22); }
.tag-app { background: var(--sky); color: #12304A; }

@media (max-width: 640px) {
  .g-table caption { display: block; width: 100%; }
  .g-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .g-table, .g-table tbody, .g-table tr, .g-table th, .g-table td { display: block; width: 100%; }
  .g-table tr { padding: 12px 0; border-top: 1px solid rgba(20, 19, 26, 0.12); }
  .g-table th, .g-table td { border: 0; padding: 2px 0; }
  .g-table td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; color: var(--ink-3); }
}

/* questions and answers */
.g-faq { margin-top: 44px; }
.g-faq h3 { margin-top: 28px; }
.g-faq p { margin-top: 8px; }

/* where to go next */
.g-next { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-next a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.1); text-decoration: none; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.g-next a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.2), 0 16px 28px -22px rgba(20, 30, 50, 0.55); }
.g-next b { font: 900 19px/1.15 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.g-next span { font-weight: 400; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 700px) { .g-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.g-acts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.g-acts .pill-ghost { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(20, 19, 26, 0.14); }
.g-acts-c { justify-content: center; }
/* a two-screen phone held open side by side: nothing to tap across the hinge (the page's centre) */
@media (horizontal-viewport-segments: 2) {
  .g-acts-c { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 32px); }
  .g-next { column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 20px); }
  .g-acts:not(.g-acts-c) { max-width: calc(env(viewport-segment-right 0 0) - var(--gutter) - 8px); }
  body.guide .g-foot nav ul { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; max-width: none; column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 20px); }
}

/* the foot: every guide one tap away */
.g-foot nav ul { list-style: none; margin: 0 auto 18px; padding: 0; max-width: 780px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.g-foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.g-foot nav a:hover { background: rgba(20, 19, 26, 0.06); color: var(--ink); }

@media (max-width: 560px) {
  .g-answer { padding: 18px 18px 20px; }
  .g-answer p { font-size: 16.5px; }
}

/* ---------- 404: our own "page not found" (written by scripts/site-seo.mjs) ---------- */
.lost-in { min-height: 78svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--wall); padding: clamp(110px, 14vw, 170px) max(var(--gutter), env(safe-area-inset-left, 0px)) clamp(56px, 7vw, 100px); }
.lost-tv { margin: 0 0 26px; width: min(62vw, 300px); aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 14px; background: var(--bezel); padding: 5px; box-shadow: var(--shadow-tv); }
.lost-tv span { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(160deg, #2B3A55, #10131C); color: #fff; font: 900 clamp(46px, 9vw, 72px)/1 var(--display); letter-spacing: -0.03em; }
.lost-in h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -0.035em; }
.lost-in .lede { margin: 16px auto 0; max-width: 28em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.lost-go { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lost-more { margin: 22px auto 0; max-width: 30em; font-size: 16px; color: var(--ink-2); }
.lost-more a { font-weight: 600; color: var(--ink); }
