/* The learn page's own styles (lib/render/main-site.js renderLearn): loaded by that page only, so the home page never
   pays for them. Phone first. The drawings take the page's colours, plus one warm highlight of their own that is
   redefined for dark mode, as the themes are (lib/render/themes.js). */
:root { --learn-hl: #c2410c; }
@media (prefers-color-scheme: dark) { :root[data-mode="auto"] { --learn-hl: #fb923c; } }
:root[data-mode="dark"] { --learn-hl: #fb923c; }

.learn-top { padding-bottom: 0.5rem; }
.learn-top h1 { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.1; margin: 0 0 0.6rem; text-wrap: balance; }
/* The top takes the full width on a laptop (Alex, learn-lead-one-line): from 1024 px the title fills its first line
   before wrapping instead of splitting into even halves (balance stays below, where pretty can still leave one word
   alone), and the lead runs as wide as the page; neither ever ends on a lone word. */
@media (min-width: 1024px) { .learn-top h1 { text-wrap: pretty; } }
.learn-lead { font-size: 1.15rem; text-wrap: pretty; }

/* The Learn section's menu above the title (learn-nav): every Learn page, the one you are on in the highlight colour and
   underlined. One row: it scrolls sideways on a narrow phone rather than widen the page. */
.learn-nav { margin: 0 0 0.8rem; }
.learn-nav ul { display: flex; gap: 1.2rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.learn-nav ul::-webkit-scrollbar { display: none; }
.learn-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.learn-nav a:hover { border-bottom-color: var(--line); }
.learn-nav a[aria-current="page"] { color: var(--learn-hl); border-bottom-color: var(--learn-hl); }

/* The chapter menu stays under the header: one row that scrolls sideways on a phone. */
/* Solid, not see-through: the drawings must never show behind the header or the menu (Manager, 2026-10-22). This
   sheet loads on the learn page only, so the header changes here alone. */
.site-header { background: var(--bg); backdrop-filter: none; }
.learn-menu { position: sticky; top: var(--header-h); z-index: 800; background: var(--bg); border-bottom: 1px solid var(--line); }
.learn-menu ol { display: flex; gap: 0.4rem; margin: 0; padding: 0.5rem 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.learn-menu ol::-webkit-scrollbar { display: none; }
.learn-menu a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 0.95rem; }
.learn-menu a span { color: var(--learn-hl); font-weight: 800; }
.learn-menu a:hover { border-color: var(--learn-hl); }
/* The chapter on screen (assets/learn.js marks its link). */
.learn-menu a[aria-current] { background: var(--learn-hl); border-color: var(--learn-hl); color: var(--bg); }
.learn-menu a[aria-current] span { color: var(--bg); }

.learn-body { max-width: 55rem; padding-bottom: 3rem; } /* the text wider on a laptop, less to scroll (Alex, learn-wider): about 107 characters a line, from 89; phones are narrower anyway */
.learn-video, .learn-figure { max-width: 46rem; } /* the video and the pictures stay as wide as before (centred by their margins below), so they grow no taller */
/* The walk-through video (Alex, 2026-10-23): first in the text column, full width, nothing loads until it is tapped. */
.learn-video { margin: 1.5rem auto 0.5rem; }
.learn-video-label { margin: 0 0 0.5rem; font-weight: 700; color: var(--ink); }
.learn-video video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #f8f5f0; }
.learn-chapter { padding: 2.5rem 0 0.5rem; scroll-margin-top: 68px; /* the menu; site.css already pads the header (scroll-padding-top) */ }
.learn-chapter h2 { display: flex; align-items: baseline; gap: 0.6rem; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.2; margin: 0 0 1rem; }
.learn-num { flex: none; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--learn-hl); color: var(--bg); font-size: 1.1rem; }
.learn-chapter p { color: var(--ink); font-size: 1.08rem; line-height: 1.65; }
.learn-chapter h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }

.learn-figure { margin: 0 auto 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.learn-art { display: block; width: 100%; height: auto; }
.learn-art .ln, .learn-art .soft, .learn-art .hl { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.learn-art .ln { stroke: var(--ink); }
.learn-art .ln.card { fill: var(--surface); }
.learn-art .soft { stroke: var(--muted); opacity: 0.55; }
.learn-art .hl { stroke: var(--learn-hl); }
.learn-art text { fill: var(--ink); font-family: inherit; font-size: 15px; }
.learn-art .xs { font-size: 12px; }
.learn-art .sm { font-size: 15px; font-weight: 600; }
.learn-art .md { font-size: 18px; font-weight: 700; }
.learn-art .lg { font-size: 26px; font-weight: 700; }
.learn-art .stars { fill: #e0a13a; font-size: 14px; letter-spacing: 1px; }
.learn-art .muted { fill: var(--muted); }
.learn-art .hl-text { fill: var(--learn-hl); font-weight: 700; }

.learn-box { margin: 1.4rem 0 0; padding: 1rem 1.1rem; border-left: 4px solid var(--learn-hl); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.learn-box p { margin: 0; font-size: 1rem; }
.learn-box .learn-box-title { margin-bottom: 0.3rem; font-weight: 700; color: var(--learn-hl); }

.learn-table { overflow-x: auto; }
.learn-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.learn-table th, .learn-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink); }
.learn-table thead th { font-size: 0.9rem; color: var(--muted); }
.learn-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.learn-list li { margin: 0 0 0.6rem; color: var(--ink); font-size: 1.08rem; line-height: 1.6; }
.learn-scams { padding-left: 1.2rem; }
.learn-scams li { margin: 0 0 0.7rem; line-height: 1.55; }
.learn-words { margin: 0; }
.learn-words div { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.learn-words dt { font-weight: 700; }
.learn-words dd { margin: 0.15rem 0 0; color: var(--ink); }

.learn-cta { margin: 3rem 0 0; padding: 1.6rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--learn-hl); text-align: center; }
.learn-cta h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 5vw, 1.8rem); }
.learn-cta .btn { margin-top: 0.4rem; }
/* The Google Business Profile guide (gbp-guide): the line back to the learn page above its title, the learn page's
   line to the guide in its Google chapter, and the price on the guide's closing card. */
.learn-more { margin: 1rem 0 0; font-weight: 600; }
.learn-cta-price { margin: 0.4rem 0 0.6rem; }
.learn-cta-price strong { font-size: 1.3rem; }

@media (min-width: 900px) { .learn-menu a { min-height: 40px; font-size: 0.9rem; } }

/* The illustrations (when the build has them): full width in their frame. */
.learn-figure--image { padding: 0; overflow: hidden; position: relative; container-type: inline-size; }
.learn-figure--image img { display: block; width: 100%; height: auto; }
/* Chapter 2's shop sign (Alex, 2026-10-23): the words sit inside the sign's inner border, measured on the 1536 x 1024
   picture (x 225 to 695, y 210 to 305, clear of its two screws), in % of the picture so they follow it at every width.
   The font is a share of the picture's width (container units; vw where those aren't supported). */
.learn-sign { position: absolute; left: 14.65%; top: 20.5%; width: 30.6%; height: 9.3%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: clamp(0.55rem, 2.6vw, 1.15rem); font-size: 2.7cqi; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; overflow: hidden; pointer-events: none; }
/* Chapter 4's bubbles named (Alex, 2026-10-23): each label just under its bubble (measured on the 1536 x 1024 picture:
   centres x 549, 766, 987; bottoms y 483, 368, 485), the two side ones nudged outward to clear the roof (x 495, 1054), on a light pill that covers the little rays. Under 560 px
   the labels would be too small to read, so the picture shows none and the line under it names them instead. */
.learn-tag { position: absolute; transform: translateX(-50%); padding: 0.2em 0.6em; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #1d2b3a; font-weight: 700; font-size: clamp(0.7rem, 2vw, 0.95rem); font-size: 2.2cqi; line-height: 1.2; white-space: nowrap; pointer-events: none; }
.learn-tag--1 { left: 32.2%; top: 48.6%; }
.learn-tag--2 { left: 49.87%; top: 37.1%; }
.learn-tag--3 { left: 68.6%; top: 48.8%; }
.learn-tags { display: none; padding: 0.6rem 1rem 0.8rem; text-align: center; font-weight: 600; color: var(--ink); }
@container (max-width: 559px) {
  .learn-tag { display: none; }
  .learn-tags { display: block; }
}

/* The last chapter's three parts as quiet cards, so costs, scams and terms read apart (review copy, Alex 2026-10-22). */
.learn-part { margin: 1.4rem 0 0; padding: 1.1rem 1.2rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.learn-part > h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.8rem; font-size: 1.15rem; }
.learn-part > h3::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--learn-hl); }
.learn-part .learn-table table, .learn-part .learn-words { margin-bottom: 0.4rem; }
.learn-part .learn-table tr:last-child > * , .learn-part .learn-words div:last-child { border-bottom: 0; }
.learn-part .learn-words { display: grid; gap: 0; }
.learn-part .learn-words div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 0.2rem 1rem; }
.learn-part .learn-words dd { margin: 0; }
@media (max-width: 520px) { .learn-part .learn-words div { grid-template-columns: 1fr; } }
