/* Prose-column layout for the generated landing pages (web/no/*, web/en/*).
   Loaded AFTER styles.css + motion.css, which those pages now pull in directly — this
   file holds only what the app has no equivalent of, and overrides the two app rules
   that a public prose page must not inherit.

   ⚠️ It used to be a standalone copy of the design system, and that is the whole reason
   these pages looked foreign until 2026-08-22: --brand was #2f6df4 (blue on a red-branded
   product), the type fell back to the system UI font because the family was named but no
   @font-face was ever declared, the ground was flat #fff with none of the ambient light,
   the header was two links instead of the topbar and the footer one line instead of four
   columns. Every one of those was a copy that stopped matching. Do not re-add tokens,
   fonts, buttons or chrome here — change styles.css and both halves of the site move. */

/* --- overrides of app rules that must not reach a public prose page --------- */

/* styles.css sets `user-select: none` on <body> to make casual copying of the question
   bank awkward. That reasoning does not extend here: these pages exist to BE quoted, and
   a visitor who cannot select an address or a rule is just being obstructed. Re-enabled
   for the article only — the chrome above and below it keeps the app's behaviour. */
.seo-main, .seo-main * { -webkit-user-select: text; user-select: text; }

/* --- the prose column ------------------------------------------------------- */
/* Outer rail = the app's .view exactly (--page-w, same padding), because the edge
   decoration canvases are 30vw PER SIDE and therefore pass behind the content column at
   any realistic width. In the app that is invisible: every page puts its content on
   opaque .card surfaces, so a drifting shape never ends up behind a letter. A bare
   transparent prose column is a pattern the app does not have, and it showed — shapes
   crossed the h1 and the body copy. So the article sits on a surface too. */
.seo-main {
  flex: 1; width: 100%; max-width: var(--page-w); margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem; overflow-x: clip;
  position: relative; z-index: 1;
}
/* 48rem minus the padding leaves ~42rem of text: about 75 characters at this size, which
   is the measure long-form reading wants. The app has no counterpart to inherit — its
   widest text block is a question stem on a card. */
/* The article is OPEN GLASS (owner, 2026-09-19) — `--glass-open` in styles.css, the same
   surface the legal pages and the exam intro use (`.card.is-glass`), so the edge shapes show
   through as soft colour and the blur keeps the text readable. No --surface-lift here — its
   90 % white top wash would paint the upper half of the card solid. */
.seo-main article {
  max-width: 48rem; margin: 0 auto;
  background: var(--glass-open);
  -webkit-backdrop-filter: var(--glass-open-blur);
          backdrop-filter: var(--glass-open-blur);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--r-2xl);
  box-shadow: var(--hairline), var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}
/* Breadcrumbs are `.crumbs` in styles.css, shared with the app — not a copy here. That is
   this file's whole rule: chrome lives in the design system, and both halves of the site
   move together. Only the spacing to the h1 below it is specific to the prose column. */
.seo-main article > .crumbs { margin-bottom: 1rem; }
/* ⚠️ The trail is navigation, not prose, so it must opt OUT of the brand-coloured prose
   link below — and it needs this much selector to do it: `.seo-main article a` is
   specificity 0-1-2 and beats `.crumbs a`'s 0-1-1, so without this the crumbs render in
   brand red on these pages while the identical markup is muted in the app. Caught in the
   browser, not by any checker: both stylesheets were individually correct. */
.seo-main article .crumbs a { color: var(--muted); }
.seo-main article .crumbs a:hover { color: var(--text); }

.seo-main h1 { font-size: var(--fs-display); margin-bottom: .8rem; }
.seo-main h2 { font-size: var(--fs-h2); margin: 2.4rem 0 .6rem; }
.seo-lead { font-size: var(--fs-lead); color: var(--muted); margin: 0 0 1.6rem; }
.seo-main p { margin: 0 0 1rem; }
.seo-actions { margin: 0 0 1rem; }
/* Links inside the prose only. The app leaves <a> at `color: inherit` because its links
   are all buttons, tabs or cards; a paragraph link has to look like one. */
.seo-main article a { color: var(--brand-on-white); }

/* --- FAQ, sibling links ------------------------------------------------------ */
.seo-faq details {
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--hairline), var(--e1);
  padding: .9rem 1.1rem; margin-bottom: .7rem;
}
.seo-faq summary { font-weight: 700; cursor: pointer; }
.seo-faq details p { margin: .7rem 0 0; color: var(--muted); }

.seo-links ul { padding-left: 1.2rem; margin: 0; }
.seo-links li { margin-bottom: .35rem; }

/* --- generated families: sign groups and city directories -------------------
   Both are lists of many small items inside the 44rem prose column, so they get
   grid/flow rules rather than the bullet list .seo-links uses. */

/* Named sign examples: face beside name + meaning. */
.seo-examples { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.seo-examples li {
  display: flex; gap: .9rem; align-items: flex-start;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--hairline), var(--e1);
  padding: .85rem 1rem;
}
.seo-examples img {
  /* A traffic sign must read as itself in both themes. Several groups are white-ground
     with a coloured ring, which would dissolve into the dark background — so every face
     keeps a light plate under it rather than inheriting the page ground. Never recolour
     or dim a sign face: the colour is part of its meaning. */
  background: #fff; border-radius: 6px; padding: 3px; flex: none;
  width: 64px; height: 64px; object-fit: contain;
}
.seo-examples div { min-width: 0; }
.seo-examples p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
/* The example's name is a link to the sign's own page, but it reads as a heading — so it
   keeps the text colour and shows its link nature on hover only. */
.seo-main article .seo-ex-name { color: inherit; text-decoration: none; }
.seo-main article .seo-ex-name:hover b { text-decoration: underline; }
.seo-code { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* --- sign tiles: a group's signs, or a numbered series, one tile each ----------
   Face, name, code, linking to the sign's own page. Used by the group pages and by the
   per-sign pages (where the sign being read is marked). The tile text is NOT a brand-red
   prose link — it is navigation, like the crumbs, and reads as text until hovered. */
.seo-tiles {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}
/* Face left, spanning two rows; name over code on the right. The code used to sit on the
   name's line, pushed right — and a one-word name ("Lengdegrense") had nowhere to go, so
   the two overprinted, while a long name wrapped one word per line beside it. */
.seo-main article .seo-tiles a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: .75rem; row-gap: .05rem; align-items: center; align-content: center; height: 100%;
  color: inherit; text-decoration: none; padding: .55rem .8rem .55rem .55rem;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.seo-main article .seo-tiles a:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.seo-tiles img { grid-row: 1 / span 2; width: 48px; height: 48px; background: #fff; border-radius: 6px; padding: 3px; object-fit: contain; }
.seo-tile-name { grid-column: 2; font-weight: 650; font-size: .88rem; line-height: 1.25; text-wrap: balance; }
.seo-tiles .seo-code { grid-column: 2; font-size: .76rem; }
/* The sign whose page this is: brand ring, no hover lift — it is not somewhere to go. */
.seo-tiles li.is-current a, .seo-main article .seo-tiles li.is-current a:hover {
  transform: none; border-color: var(--brand);
  box-shadow: var(--hairline), 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* Driving-school directory: see .seo-schools below (2026-09-19). */

/* --- the municipality pages: the app's own width ----------------------------
   A guide page is an essay, so it reads in a 48rem column. A municipality page is not:
   it is the same directory-plus-map that #/schools is, and it was the one part of the
   site whose content did not line up with the app it links into. So it runs on the full
   --page-w rail .view uses — same rail, same gutters, same card edge.

   Nothing here caps a paragraph. The width is used by the LAYOUT instead: the prose runs
   in two columns (.seo-split), so every line still has a readable measure while the page
   fills its rail. Capping the text inside a full-width card was the wrong half of that
   trade — it left a column of copy ending mid-card with white space beside it. */
.seo-main--wide article { max-width: none; }

/* Two equal columns, top-aligned. Row one is the opening section + the map; row two is
   the sections that follow, side by side. Below 860px — the same breakpoint #/schools
   uses to stop putting a map next to a list — it is one column again. */
.seo-split {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.2rem 2.4rem; align-items: start;
  margin-top: 2.2rem;
}
/* .seo-main h2 carries a 2.4rem top margin for a heading that follows body copy; at the
   top of a grid cell it would push one column off the other's baseline. */
.seo-split > * > h2:first-child { margin-top: 0; }
/* minmax(0,…): a bare 1fr has an auto minimum, so a nowrap button pushed the column past a phone screen. */
@media (max-width: 860px) { .seo-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .seo-main .btn { white-space: normal; text-align: center; } }

.seo-main--wide .seo-links ul { columns: 3 15rem; column-gap: 1.6rem; }
.seo-main--wide .seo-links li { break-inside: avoid; }

/* --- the map ---------------------------------------------------------------
   The shell, the frame and the zoom hint are schools.css's (.schoolmap-shell /
   .schoolmap / .schoolzoomhint), loaded on these pages for exactly that reason — one
   map, one set of rules. Only the height differs: #/schools is a map page and gives it
   72vh, while here it shares a row with the opening section and must not swallow the
   scroll — so it is tall enough to read a town in and no taller. */


/* --- generated families: theme pages and articles (2026-09-12) ----------------
   Both reuse the app's own pieces — .statgrid/.stat wells, .card.tile, .chip, .chip-tag,
   .cta-band — so what is here is only the layout glue those pieces do not carry. */

/* Bullet lists inside a prose section. The app has no prose lists to inherit from. */
.seo-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.seo-list li { margin-bottom: .45rem; }

/* An article's dateline, under the lead. Muted and small: a fact, not a heading. */
.seo-dateline { color: var(--muted); font-size: .85rem; margin: -1rem 0 1.6rem; }
.seo-note { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }

/* The theme page's aside: the one course diagram, its source line, then three stats.
   The figure is the course's own (.cs, course.css); only its outer margin is trimmed
   here because the aside already spaces its children. */
.seo-figure .cs { margin-bottom: .6rem; }
.seo-figure-from { font-size: .9rem; margin: 0 0 1rem; }
.seo-stats { margin-top: .4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .seo-stats { grid-template-columns: 1fr 1fr; } }
.seo-stats .stat-num { font-size: 1.7rem; }

/* Chapter tiles: the app's .card.tile, two-up on the wide rail, one-up narrow. */
.seo-chapters { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.seo-chapters .tile { align-items: flex-start; height: 100%; }
.seo-chapters .tile h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.02rem; margin: 0 0 .3rem; }
.seo-chapters .tile p { font-size: .9rem; margin-bottom: .35rem; }
.seo-chapters .tile small { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

/* The closing band. .cta-band paints a white primary; the second, ghost button has to
   stay legible on the gradient, which .btn.ghost's default border and text do not. */
.seo-cta { margin-top: 2.4rem; }
.seo-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 0; }
.seo-cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.08); }
.seo-cta .btn.ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* Look-alike pairs: two faces, the word between them, then the one difference. Faces
   keep the light plate every sign on the site gets (see .seo-examples img). */
.seo-pairs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); }
.seo-pairs li {
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--hairline), var(--e1); padding: 1rem 1.1rem;
}
.seo-pair-faces { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: start; margin-bottom: .6rem; }
.seo-pair-faces figure { margin: 0; text-align: center; }
.seo-pair-faces img { background: #fff; border-radius: 6px; padding: 3px; width: 72px; height: 72px; object-fit: contain; }
.seo-pair-faces figcaption { font-size: .85rem; margin-top: .3rem; line-height: 1.3; }
.seo-pair-vs { align-self: center; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.seo-pairs p { margin: 0; font-size: .95rem; color: var(--muted); }

/* The glossary: term / translation / one line, as rows. Three columns on the rail, and
   the two texts stack under the term once a column is narrower than ~30rem. */
.seo-terms { list-style: none; padding: 0; margin: 0 0 1rem; }
.seo-terms li { display: grid; grid-template-columns: 11rem 12rem minmax(0, 1fr); gap: .2rem 1rem;
  padding: .55rem .1rem; border-bottom: 1px solid var(--border); align-items: baseline; }
.seo-terms b { font-weight: 700; }
.seo-terms small { color: var(--muted); font-size: .9rem; }
.seo-terms-head { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.seo-terms-head b, .seo-terms-head small { font: inherit; color: inherit; }
@media (max-width: 600px) {
  .seo-terms li { grid-template-columns: 1fr; gap: .1rem; }
  .seo-terms-head { display: none; }
}


/* --- generated family: one page per sign (2026-09-19) ---------------------------
   The face IS the content, so the page opens on it: a big plate beside the name and the
   meaning, then four facts as wells, then the signs it lives next to. Everything reuses the
   design system's surfaces; only the composition is new. */
.seo-sign-hero {
  display: grid; grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem); align-items: center; margin: .6rem 0 1.8rem;
}
/* The face stands on the card by itself — no plate. A plate was a raised box inside the
   raised article (bubble wrap, see the elevation note in styles.css), and at this size the
   sign's own fills carry it in both themes; the plate is for 48px tiles, not a 15rem face. */
/* The square sets the size, never the picture: a tall sign (920 kantstolpe is 1:8.5) at height 100% of an
   auto-height box grew the face to ~1,900px. Out of flow, the image is fitted inside the square instead. */
.seo-sign-face { margin: 0; aspect-ratio: 1; position: relative; }
.seo-sign-face img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(16,24,40,.12)); }
.seo-eyebrow {
  color: var(--muted); font-weight: 700; font-size: .8rem;
  letter-spacing: .07em; text-transform: uppercase; margin: 0 0 .55rem;
}
.seo-main .seo-sign-head h1 { margin-bottom: .7rem; letter-spacing: -.02em; }
/* "Farlig sving" on one line, "til høyre" under it, smaller and quieter: the variant
   qualifies the name, it is not part of it (see signName() and the ARCHITECTURE note). */
.seo-sign-variant { display: block; font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: .15rem; }
/* The meaning is the page's substance, not its subtitle — full text colour, lead size. */
.seo-sign-head .seo-lead { color: var(--text); font-size: var(--fs-lead); max-width: 52ch; margin-bottom: 1.3rem; }
.seo-sign-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
@media (max-width: 640px) {
  .seo-sign-hero { grid-template-columns: 1fr; gap: 1rem; justify-items: start; }
  .seo-sign-face { width: min(52vw, 12rem); }
}

/* A sign page sits straight on the page ground — no article card (owner, 2026-09-19: a card
   around a bare face and a row of boxes was one box too many). Its blocks carry their own
   surfaces instead: fact cards, tiles, the band. ONLY this family — a prose page keeps the
   card, because a paragraph column with the edge shapes drifting behind it does not read. */
.seo-main--sign article {
  background: transparent;
  /* No blur either: a backdrop-filter on a transparent box still blurs everything behind
     its rectangle, which reads as a ghost of the card that was removed. */
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; border-radius: 0; box-shadow: none; padding: .6rem 0 0;
}
/* Its boxes are glass, like the landing cards (owner, 2026-09-25): --glass-card is 40 %
   surface and falls back to solid under reduced transparency / more contrast. The red band
   stays solid — white text needs its fill. :where() keeps the dark rule at the base rule's
   specificity, so hover still wins; the current sign keeps its own solid ringed tile. */
.seo-main--sign .seo-facts > div, .seo-main--sign .seo-pairs li, .seo-main--sign article .seo-tiles li:where(:not(.is-current)) a {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
/* The backdrop they frost — soft brand/blue/amber fields, like the landing's `.lp-glass-bg`. The
   edge shapes live in the margins only, so without this the glass sat on flat ground and read as
   solid. Painted as the section's OWN background, one tile per ≤ 30rem so a tall grid stays even: a
   blurred ::before larger than the section showed its outline as a box around the page. Every
   field fades out inside its tile (centre ± 0.7 × radius), so no edge ever cuts one. */
.seo-main--sign article section:not(.cta-band):not(.seo-links) {
  background:
    radial-gradient(30% 60% at 25% 50%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(28% 55% at 75% 42%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
    radial-gradient(22% 40% at 50% 70%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%);
  background-size: 100% min(100%, 30rem); background-repeat: repeat-y;
}

/* Every other landing page's big surfaces get the same 40 % glass (owner, 2026-09-25): the
   prose/city article card, and the chapter pages' fact and argument cards. The fields sit on
   the page column BEHIND them (.seo-main), so the frosting has colour to show. */
.seo-main:not(.seo-main--sign):not(.seo-main--chapter) article, .seo-main .seo-ch-card, .seo-main--chapter .seo-facts > div {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border-color: var(--glass-hl); outline: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
.seo-main:not(.seo-main--sign) {
  background:
    radial-gradient(30% 60% at 25% 50%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    radial-gradient(28% 55% at 75% 42%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%),
    radial-gradient(22% 40% at 50% 70%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%);
  background-size: 100% min(100%, 36rem); background-repeat: repeat-y;
}

/* The fact panel: four cards. Label, value, then a quiet line of context. Real cards, not
   .stat wells — a well is drawn for the inside of a card, and these stand on the ground. */
.seo-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .8rem; margin: 0 0 .4rem;
}
.seo-facts > div {
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem; box-shadow: var(--hairline), var(--e1);
}
.seo-facts dt {
  color: var(--muted); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem;
}
.seo-facts dd { margin: 0; font-weight: 650; line-height: 1.35; }
.seo-facts dd small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; line-height: 1.45; margin-top: .35rem; }
/* Three dots for the exam weight. Decorative: the label beside it says the same thing. */
.seo-meter { display: inline-flex; gap: .22rem; vertical-align: middle; margin-right: .5rem; position: relative; top: -1px; }
.seo-meter i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--border); }
.seo-meter i.on { background: var(--brand); }

/* One look-alike pair, on its own row rather than in the article's multi-column grid. */
.seo-pairs--one { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.seo-main article .seo-pair-faces a { color: inherit; text-decoration: none; }
.seo-main article .seo-pair-faces a:hover b { text-decoration: underline; }


/* --- generated family: one page per municipality (redesigned 2026-09-19) --------------
   A local-search landing page: the map is the hero image, the list is the answer, and the
   two are one thing — a pin carries the row's number, hovering either lights the other.
   Reuses schools.css for the map frame and MapLibre chrome; everything below is the page. */
.seo-city-hero { margin: .4rem 0 1.6rem; }
.seo-main .seo-city-hero h1 { margin-bottom: .6rem; letter-spacing: -.02em; }
.seo-city-hero .seo-lead { max-width: 62ch; }
/* Four stats in a row: number first, what it counts under it, a quiet line of context. */
.seo-city-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: .7rem; margin: 1.4rem 0 0;
}
.seo-city-stats > div {
  display: flex; flex-direction: column;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1rem .9rem; box-shadow: var(--hairline), var(--e1);
}
.seo-city-stats dt { order: 2; color: var(--muted); font-size: .78rem; font-weight: 650; overflow-wrap: anywhere; hyphens: auto; }
.seo-city-stats dd { order: 1; margin: 0; font-size: 1.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.seo-city-stats small { order: 3; color: var(--muted); font-size: .74rem; margin-top: .35rem; line-height: 1.4; }
.seo-city-stats dt small { display: block; font-weight: 400; }

/* The map block. A taller frame than the old aside — this is the illustration of the page. */
.seo-city-map { margin: 0 0 .5rem; }
.seo-map-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.seo-main .seo-map-bar h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.seo-map-bar .btn svg { width: 1.05rem; height: 1.05rem; }
.seo-city-map .schoolmap { height: clamp(20rem, 46vh, 31rem); }
.seo-map-note { color: var(--muted); font-size: .86rem; margin: .7rem 0 0; }
.seo-map-note a { margin-left: .3rem; }

/* A numbered pin: a teardrop from the brand ramp with the list's number upright inside.
   `.is-hot` is the hovered row's pin (and the hovered pin itself). */
.seo-pin { background: none; border: 0; width: 30px; height: 36px; cursor: pointer; }
.seo-pin span {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background-color: var(--grad-solid); background-image: var(--grad-ui);
  border: 2px solid var(--surface); box-shadow: var(--shadow);
  transition: transform var(--dur-quick) var(--ease-spring), box-shadow var(--dur-quick) var(--ease-out);
}
.seo-pin span b { transform: rotate(45deg); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.seo-pin.is-hot span, .seo-pin:hover span {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent), var(--shadow-lg);
}

/* The directory: numbered rows in two columns, grouped by postal town where the page is. */
.seo-dirblock { margin-top: 1.6rem; }
.seo-area {
  display: flex; align-items: baseline; gap: .5rem; margin: 1.6rem 0 .5rem;
  font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em;
}
.seo-area span { color: var(--muted); font-weight: 650; font-size: .85rem; font-variant-numeric: tabular-nums; }
.seo-area:first-of-type { margin-top: .6rem; }
.seo-schools {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); gap: .45rem .9rem;
}
.seo-schools:empty { display: none; }
.seo-schools li {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; column-gap: .7rem; align-items: start;
  padding: .6rem .7rem .6rem .55rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background-color: var(--surface); background-image: var(--surface-lift); box-shadow: var(--hairline);
  transition: border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.seo-schools li:hover, .seo-schools li.is-active {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--hairline), var(--e2); transform: translateY(-1px);
}
.seo-row-n {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out);
}
.seo-schools li:hover .seo-row-n, .seo-schools li.is-active .seo-row-n { background-color: var(--grad-solid); background-image: var(--grad-ui); color: #fff; }
.seo-row-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.seo-row-name { line-height: 1.3; }
.seo-main article .seo-schools a { color: inherit; font-weight: 700; text-decoration: none; line-height: 1.3; }
.seo-main article .seo-schools li:hover a { text-decoration: underline; }
.seo-row-where { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.seo-row-org { grid-column: 3; color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: .15rem; }
.seo-row-dist { grid-column: 3; justify-self: end; color: var(--brand); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.seo-enk { font-size: .64rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border-radius: var(--r-xs); padding: .05rem .3rem; text-decoration: none; vertical-align: .1em; cursor: help; }
/* Sorted by distance from the reader: one list, the town headings step aside. */
.seo-dirblock.is-sorted .seo-area { display: none; }

/* Neighbouring municipalities: chips with count and distance. */
.seo-chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .55rem; }
.seo-main article .seo-chips a {
  display: inline-flex; flex-direction: column; gap: .05rem; color: inherit; text-decoration: none;
  padding: .55rem .9rem; border: 1px solid var(--border); border-radius: var(--r-md);
  background-color: var(--surface); background-image: var(--surface-lift); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-quick) var(--ease-out), border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
}
.seo-main article .seo-chips a:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.seo-chips b { font-weight: 750; }
.seo-chips span { color: var(--muted); font-size: .8rem; }

/* The five questions: a numbered checklist, two columns when there is room. */
.seo-check ol {
  list-style: none; counter-reset: q; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .8rem;
}
.seo-check li {
  counter-increment: q; position: relative; padding: .9rem 1rem .95rem 3.1rem;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--hairline), var(--e1);
}
.seo-check li::before {
  content: counter(q); position: absolute; left: .9rem; top: .9rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--grad-solid); background-image: var(--grad-ui); color: #fff; font-weight: 800; font-size: .8rem;
}
.seo-check li b { display: block; margin-bottom: .2rem; }
.seo-check li span { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.seo-actions--row { display: flex; flex-wrap: wrap; gap: .6rem; }
.seo-main--city .seo-split { margin-top: 1.4rem; }
.seo-main--city .seo-source p { max-width: 72ch; }

@media (max-width: 640px) {
  .seo-city-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .seo-city-stats > div { padding: .7rem .8rem .75rem; }
  .seo-city-stats dd { font-size: 1.6rem; }
  .seo-city-map .schoolmap { height: clamp(16rem, 44vh, 22rem); }
  .seo-schools li { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .seo-row-org { grid-column: 2; padding-top: .1rem; }
  .seo-row-dist { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-pin span, .seo-schools li, .seo-row-n, .seo-chips a { transition: none; }
  .seo-schools li:hover, .seo-chips a:hover { transform: none; }
  .seo-pin.is-hot span, .seo-pin:hover span { transform: rotate(-45deg); }
}

/* --- generated family: one teaser page per course chapter (2026-09-19) -----------------
   A chapter opener, not an article: the photograph is the page's first line, the number is
   set into it, and the lessons run down a drawn road. Like a sign page it stands on the
   ground — its blocks carry their own surfaces (see the note on .seo-main--sign). The
   per-chapter `--accent` is the chapter's own colour from data/course/course.json, the same
   one the reader's cards use, so the two halves of the course match. */
.seo-main--chapter article {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; border-radius: 0; box-shadow: none; padding: .6rem 0 0;
}
.seo-ch-hero { margin: .4rem 0 1.6rem; }
.seo-ch-photo {
  position: relative; margin: 0 0 1.5rem; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-2xl); background: var(--surface-2); box-shadow: var(--e3);
}
.seo-ch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The number, set into the photograph: white on a dark frosted scrim, which clears AA on any
   frame (a white scrim would lighten its own backdrop — see the .studbar-tag note). */
.seo-ch-numeral {
  position: absolute; left: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem);
  display: grid; gap: .1rem; padding: .5rem .85rem .45rem; color: #fff;
  background: rgba(16,24,40,.58); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-md);
  font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.seo-ch-numeral small { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.seo-ch-head { max-width: 62rem; }
.seo-main .seo-ch-head h1 { margin-bottom: .6rem; letter-spacing: -.02em; text-wrap: balance; max-width: 26ch; }
.seo-ch-head .seo-lead { color: var(--text); max-width: 58ch; margin-bottom: 1.2rem; }
.seo-ch-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.seo-ch-facts { margin: 0 0 1.4rem; }
/* Two-up on phones: four stacked cards of one number each were a screen of scrolling. */
@media (max-width: 640px) {
  .seo-ch-facts .seo-facts { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .seo-ch-facts .seo-facts > div { padding: .8rem .85rem .9rem; }
  .seo-ch-facts dd small { font-size: .78rem; }
}

/* The two cards under the facts: the argument (wider) and the exam theme(s). Open glass, like
   every prose surface on these pages, so the edge shapes show through as colour. */
.seo-ch-card {
  background: var(--glass-open);
  -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--r-xl);
  box-shadow: var(--hairline), var(--shadow); padding: clamp(1.15rem, 3vw, 1.8rem);
}
.seo-ch-card > h2:first-child { margin-top: 0; }
.seo-ch-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0 0 1rem; }
@media (max-width: 860px) { .seo-ch-split { grid-template-columns: 1fr; } }
.seo-ch-h3 { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 1.4rem 0 .2rem; }
.seo-ch-card .seo-note { margin-top: 0; }
.seo-ch-sources { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.seo-ch-sources li { font-size: .82rem; line-height: 1.3; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .3rem .75rem; }
.seo-ch-themes { list-style: none; padding: 0; margin: .5rem 0 .9rem; display: grid; gap: .5rem; }
.seo-main article .seo-ch-themes a {
  display: grid; gap: .1rem; padding: .7rem .9rem; color: inherit; text-decoration: none;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.seo-main article .seo-ch-themes a:hover { transform: translateY(-1px); border-color: var(--muted); }
.seo-ch-themes span { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }

/* The route: the lessons as stops on a road drawn once behind them — a grey band with a
   broken yellow centre, because that is what a Norwegian centre line looks like. The stop
   sits on the road in the chapter's accent, the way the reader numbers its lessons. */
.seo-ch-routecard { margin: 0 0 1rem; }
.seo-ch-route { --road: #3b4048; list-style: none; padding: 0; margin: .4rem 0 .8rem; position: relative; }
.seo-ch-route::before {
  content: ""; position: absolute; left: calc(1.6rem - 7px); top: 1rem; bottom: 1rem; width: 14px;
  border-radius: 7px; background: var(--road);
}
.seo-ch-route::after {
  content: ""; position: absolute; left: calc(1.6rem - 1px); top: 1.4rem; bottom: 1.4rem; width: 2px;
  background: repeating-linear-gradient(180deg, #f2c94c 0 9px, transparent 9px 18px);
}
:root[data-theme="dark"] .seo-ch-route { --road: #262b34; }
.seo-main article .seo-ch-route a {
  position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: .9rem;
  align-items: start; padding: .8rem 0; color: inherit; text-decoration: none;
}
.seo-ch-route li + li a { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.seo-route-stop {
  position: relative; z-index: 1; justify-self: center; display: grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums;
  color: var(--accent, var(--brand)); background: var(--surface); border: 2px solid var(--accent, var(--brand)); box-shadow: var(--e1);
  transition: transform var(--dur-base) var(--ease-out);
}
.seo-ch-route a:hover .seo-route-stop { transform: scale(1.08); }
.seo-route-body { display: grid; gap: .15rem; padding-top: .2rem; }
.seo-route-body b { font-size: 1rem; line-height: 1.3; }
.seo-ch-route a:hover .seo-route-body b { text-decoration: underline; }
.seo-route-body span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.seo-route-min { padding-top: .35rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) {
  .seo-main article .seo-ch-route a { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .seo-route-min { grid-column: 2; padding-top: 0; }
}

/* Previous / next: two cards with the neighbour's photograph. The small label says which way,
   so there is no arrow glyph to point it. */
.seo-ch-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 0 0 1.8rem; }
.seo-main article .seo-ch-navcard {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .55rem;
  color: inherit; text-decoration: none;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.seo-main article .seo-ch-navcard:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.seo-ch-navcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
/* Needs the same three-part selector as the base rule, or it loses on specificity and the
   photograph lands in the wide column. */
.seo-main article .seo-ch-navcard.next { grid-template-columns: minmax(0, 1fr) 7.5rem; text-align: right; }
.seo-ch-navcard.next img { order: 2; }
.seo-ch-navcard small { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem; }
.seo-ch-navcard b { font-size: .96rem; line-height: 1.3; text-wrap: balance; }
@media (max-width: 640px) {
  .seo-ch-nav { grid-template-columns: 1fr; }
  .seo-main article .seo-ch-navcard.next { grid-template-columns: 7.5rem minmax(0, 1fr); text-align: left; }
  .seo-ch-navcard.next img { order: 0; }
}

/* Every chapter as a chip in one scrolling row; this one ringed. Bleeds to the rail's edge on
   phones so the row reads as scrollable rather than cut. */
.seo-ch-all { margin: 0 0 .4rem; }
.seo-ch-strip {
  list-style: none; margin: 0 -1.25rem; padding: .2rem 1.25rem .9rem; display: flex; gap: .55rem;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.seo-ch-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.seo-main article .seo-ch-strip a {
  display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); gap: .45rem; align-items: center; width: 12.5rem;
  padding: .5rem .7rem .5rem .5rem; color: inherit; text-decoration: none; font-size: .82rem; line-height: 1.25;
  background-color: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--hairline), var(--e1);
  transition: border-color var(--dur-base) var(--ease-out);
}
.seo-main article .seo-ch-strip a:hover { border-color: var(--muted); }
.seo-ch-strip b { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; text-align: center; }
.seo-ch-strip li.is-current a { border-color: var(--brand); box-shadow: var(--hairline), 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.seo-ch-strip li.is-current b { color: var(--brand); }

/* The course guide's grid of its chapters: photograph, number, name, size. */
.seo-ch-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.seo-main article .seo-ch-grid a {
  display: grid; gap: .5rem; height: 100%; padding: .55rem .55rem .85rem; color: inherit; text-decoration: none;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.seo-main article .seo-ch-grid a:hover { transform: translateY(-2px); border-color: var(--muted); box-shadow: var(--hairline), var(--e2); }
.seo-ch-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.seo-ch-grid-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .1rem .35rem 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.seo-ch-grid b { padding: 0 .35rem; font-size: .98rem; line-height: 1.3; text-wrap: balance; }
.seo-ch-grid small { padding: 0 .35rem; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .seo-main article .seo-ch-navcard, .seo-main article .seo-ch-grid a, .seo-main article .seo-ch-themes a, .seo-route-stop { transition: none; }
  .seo-main article .seo-ch-navcard:hover, .seo-main article .seo-ch-grid a:hover, .seo-main article .seo-ch-themes a:hover, .seo-ch-route a:hover .seo-route-stop { transform: none; }
}

/* The gift page's sample card (tools/build-seo.mjs giftAside): the app's own .gcard from
   styles.css, given breathing room in the first-row aside. */
.seo-giftcard .gcard { margin: .3rem 0 1rem; }
.seo-pricing { margin: 2rem 0 2.4rem; }
/* The cards are the app's own (.price-card, styles.css); undo the prose rules that reach into them:
   `.seo-main article a` would paint the seal and the free card's button brand red, and
   `.seo-main p` would squeeze the notes under the grid. */
.seo-main article .price-seal { color: var(--ok-ink, var(--ok)); }
.seo-main article .price-card .btn:not(.primary) { color: var(--text); }
.seo-main .seo-pricing .price-foot { margin: 1.2rem 0 0; }
.seo-main .seo-pricing .price-foot-stud { margin-bottom: .2rem; }

/* Sign pages without boxes (owner 2026-10-01): the facts, the sign tiles, the paired-article rows
   and the red practice band all sit straight on the page. Buttons keep theirs — they are controls. */
.seo-main--sign .seo-facts > div, .seo-main--sign .seo-pairs li, .seo-main--sign article .seo-tiles li a,
.seo-main--sign article .seo-tiles li.is-current a, .seo-main--sign article .seo-tiles li a:hover {
  background: none; border: 0; outline: 0; box-shadow: none; transform: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.seo-main--sign .seo-facts > div { padding: .2rem 0; }
.seo-main--sign article .seo-tiles a { padding: .35rem 0; }
.seo-main--sign .seo-tiles img { background: none; padding: 0; border-radius: 0; }
.seo-main--sign article .seo-tiles a:hover .seo-tile-name { color: var(--brand); }
.seo-main--sign .seo-tiles li.is-current .seo-tile-name { color: var(--brand); }
/* …and the facts as a spec sheet rather than four loose columns: label left, value right, one
   hairline between rows, so the unboxed text still lines up. */
.seo-main--sign .seo-facts { display: block; margin: 0 0 .2rem; border-top: 1px solid var(--border); }
.seo-main--sign .seo-facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.5rem;
  align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.seo-main--sign .seo-facts dt { margin: 0; }
.seo-main--sign .seo-facts dd small { margin-top: .2rem; }
.seo-main--sign .seo-facts + .seo-note { margin-top: .7rem; padding-left: 12.5rem; }
@media (max-width: 600px) {
  .seo-main--sign .seo-facts > div { grid-template-columns: 1fr; row-gap: .25rem; padding: .75rem 0; }
  .seo-main--sign .seo-facts + .seo-note { padding-left: 0; }
}

/* Driving-school city pages without boxes (owner 2026-10-01): the page panel, stat tiles, school
   cards, neighbour chips, checklist and FAQ cards go; order comes from columns and hairlines. */
/* As specific as the glass rule above (.seo-main:not(…):not(…) article), which would otherwise win. */
.seo-main.seo-main--city:not(.seo-main--sign):not(.seo-main--chapter) article { background: none; border: 0; outline: 0; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 0; }
/* Stats: one row, a hairline between the figures. */
.seo-main--city .seo-city-stats { gap: 0; }
.seo-main--city .seo-city-stats > div { background: none; border: 0; border-left: 1px solid var(--border);
  border-radius: 0; box-shadow: none; padding: .2rem 1.1rem; }
.seo-main--city .seo-city-stats > div:first-child { border-left: 0; padding-left: 0; }
/* Schools: two even columns of rows — number, name over address, org nr right-aligned. */
.seo-main--city .seo-schools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.2rem; }
.seo-main--city .seo-schools li { background: none; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; box-shadow: none; padding: .7rem 0; transform: none; align-items: baseline; }
.seo-main--city .seo-schools li:hover, .seo-main--city .seo-schools li.is-active { border-color: var(--border); box-shadow: none; transform: none; }
.seo-main--city .seo-row-org { text-align: right; min-width: 7.5rem; }
.seo-main--city .seo-area { border-bottom: 2px solid var(--text); padding-bottom: .35rem; margin-bottom: 0; }
/* Neighbours: plain links in a row, name over count. */
.seo-main--city article .seo-chips { gap: .4rem 1.8rem; }
.seo-main--city article .seo-chips a, .seo-main--city article .seo-chips a:hover {
  background: none; border: 0; box-shadow: none; padding: .2rem 0; transform: none; }
.seo-main--city article .seo-chips a:hover b { color: var(--brand); }
/* The five questions and the FAQ: a numbered list and plain rows. */
.seo-main--city .seo-check ol { gap: 1.1rem 2.2rem; }
.seo-main--city .seo-check li { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 0 2.4rem; }
.seo-main--city .seo-check li::before { left: 0; top: 0; }
.seo-main--city .seo-faq details { background: none; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; box-shadow: none; padding: .8rem 0; margin: 0; }
@media (max-width: 760px) {
  .seo-main--city .seo-schools { grid-template-columns: minmax(0, 1fr); }
  .seo-main--city .seo-schools li { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .seo-main--city .seo-row-org { grid-column: 2; text-align: left; min-width: 0; padding-top: .1rem; }
  .seo-main--city .seo-city-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
/* The red CTA band on EVERY public page (owner 2026-10-01), unboxed like the sign pages': centred copy between two fading red hairlines. */
.seo-main .cta-band { background: none; background-image: none; color: var(--text); box-shadow: none;
  border-radius: 0; padding: 2.2rem 0; overflow: visible; }
.seo-main .cta-band::after { content: ""; position: absolute; inset: auto 10% 0; height: 1px; animation: none; z-index: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 45%, transparent), transparent); }
.seo-main .cta-band::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 45%, transparent), transparent); }
.seo-main .cta-band p { color: var(--muted); }
.seo-main .cta-band .btn.primary { background-color: var(--grad-solid); background-image: var(--grad-ui); color: #fff; box-shadow: var(--shadow); }
.seo-main .seo-cta .btn.ghost { color: var(--text); border-color: var(--border); background: var(--surface); }
.seo-main .seo-cta .btn.ghost:hover { border-color: var(--muted); background: var(--surface-2); }
/* The two course hubs (class B and klasse A): no frosted panel around the page (owner 2026-10-01). */
.seo-main.seo-main--course:not(.seo-main--sign):not(.seo-main--chapter) article {
  background: none; border: 0; outline: 0; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 0; }
/* …and its chapter cards are the picture with its text under it, no card (owner 2026-10-01). */
.seo-main--course article .seo-ch-grid a, .seo-main--course article .seo-ch-grid a:hover {
  background: none; border: 0; box-shadow: none; outline: 0; padding: 0; transform: none; }
.seo-main--course .seo-ch-grid img { border-radius: var(--r-md); transition: scale .25s cubic-bezier(.2, .8, .3, 1); }
.seo-main--course .seo-ch-grid a:hover img { scale: 1.03; }
.seo-main--course .seo-ch-grid a:hover b { color: var(--brand); }
.seo-main--course :is(.seo-ch-grid-top, .seo-ch-grid b, .seo-ch-grid small) { padding-inline: 0; }
@media (prefers-reduced-motion: reduce) { .seo-main--course .seo-ch-grid img { transition: none; } }
.seo-main--course .seo-ch-grid { row-gap: 1.8rem; column-gap: 1.2rem; }

/* Every public page without the big frosted panel (owner 2026-10-01): the article sits on the page.
   Matches the specificity of both panel rules above (the base and the glass one). */
.seo-main.seo-main article, .seo-main.seo-main:not(.seo-main--sign):not(.seo-main--chapter) article {
  background: none; border: 0; outline: 0; box-shadow: none; border-radius: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding-inline: 0; }
/* …and the boxes inside it go too. Structure from hairlines, rules and type instead; the prev/next
   chapter links and the small white plate behind each sign face stay (controls; legibility). */
/* FAQ: rows on hairlines. */
.seo-main .seo-faq details { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: .85rem 0; margin: 0; }
.seo-main .seo-faq details:first-of-type { border-top: 1px solid var(--border); }
/* Sign lists on the group and theme pages: rows on hairlines, face left. */
.seo-main .seo-examples { gap: 0; }
.seo-main .seo-examples li { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: .85rem 0; }
.seo-main article .seo-tiles a, .seo-main article .seo-tiles a:hover { background: none; border: 0; outline: 0; box-shadow: none; transform: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: .35rem 0; }
.seo-main article .seo-tiles a:hover .seo-tile-name { color: var(--brand); }
/* Look-alike pairs: columns split by a hairline, the faces carry the comparison. */
.seo-main .seo-pairs { gap: 0 2rem; }
.seo-main .seo-pairs li { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; outline: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 1.1rem 0; }
/* Course figures on theme pages: the drawing and a plain caption line. */
.seo-main .seo-figure .cs { border: 0; box-shadow: none; background: none; overflow: visible; }
.seo-main .seo-figure .cs > svg, .seo-main .seo-figure .cs > .cs-svg { border-radius: var(--r-lg); }
.seo-main .seo-figure .cs.cs--road > svg, .seo-main .seo-figure .cs.cs--road > .cs-svg { background: linear-gradient(180deg, var(--sky1), var(--sky2)); }
.seo-main .seo-figure .cs figcaption { background: none; border: 0; padding: .45rem 0 0; font-weight: 600; }
/* Number tiles on theme pages: one row of figures split by vertical hairlines. */
.seo-main .statgrid { gap: 0; }
.seo-main .statgrid .stat { background: none; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: .2rem 1.1rem; }
.seo-main .statgrid .stat:first-child { border-left: 0; padding-left: 0; }
/* Topic link cards: icon + text rows. */
.seo-main a.card.tile, .seo-main a.card.tile:hover { background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
  outline: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; padding: .7rem 0; }
.seo-main a.card.tile:hover h3 { text-decoration: underline; }
/* Chapter pages: sections on hairlines; facts as a spec sheet (as on sign pages); the chapter strip as
   plain numbered links, the current one underlined in brand red. */
.seo-main.seo-main .seo-ch-card { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: 1.4rem 0 0; }
.seo-main--chapter .seo-facts { display: block; border-top: 1px solid var(--border); }
.seo-main--chapter.seo-main--chapter .seo-facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1.5rem; align-items: baseline;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; outline: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; padding: .85rem 0; }
.seo-main--chapter .seo-facts dt { margin: 0; }
.seo-main article .seo-ch-strip a, .seo-main article .seo-ch-strip a:hover, .seo-main article .seo-ch-strip li.is-current a {
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; padding: .45rem .2rem; }
.seo-main article .seo-ch-strip li.is-current a { border-bottom-color: var(--brand); }
.seo-main article .seo-ch-strip a:hover { border-bottom-color: var(--border); }
.seo-ch-photo { box-shadow: none; }
@media (max-width: 600px) {
  .seo-main--chapter.seo-main--chapter .seo-facts > div { grid-template-columns: 1fr; row-gap: .25rem; }
  .seo-main .statgrid .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
.seo-main article .seo-ch-themes a, .seo-main article .seo-ch-themes a:hover { background: none; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; box-shadow: none; transform: none; padding: .6rem 0; }
.seo-main article .seo-ch-themes a:hover b { color: var(--brand); }
.seo-main.seo-main .seo-ch-card { outline: 0; }

/* The quiz-widget page (/no/quiz-til-nettsiden/): the live widget beside the code to copy. */
.seo-embed { scroll-margin-top: 5rem; }
.seo-embed-frame { display: block; width: 100%; max-width: 640px; border: 0; border-radius: 16px; background: var(--surface); }
.seo-embed h2 + .seo-embed-frame { margin-top: .6rem; }
.seo-embed-frame + h2 { margin-top: 1.6rem; }
.seo-embed-code {
  margin: .6rem 0 .8rem; padding: .9rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  font: .8rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
}

/* The free-test pages' opening questions (build-seo.mjs quizBlock(), app/seo-quiz.js): the app's own
   exam card. The scene box is sized here because scenes.css loads off the critical path. */
.seo-quiz { max-width: 760px; margin: 1.6rem 0 1rem; scroll-margin-top: 5rem; }
.seo-main .seo-quiz h2 { margin-top: 0; }
.seo-quiz-lead { color: var(--muted); }
.seo-quiz-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.seo-quiz-q { margin: 0; }
.seo-main .seo-quiz .qtext { font-size: 1.2rem; margin: 0 0 1.1rem; }
.seo-quiz .scene { position: relative; margin: 0 0 1rem; max-width: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.seo-quiz .scene-art { position: relative; display: block; }
.seo-quiz .scene--photo .scene-art { aspect-ratio: 20 / 9; }
.seo-quiz .scene-photo, .seo-quiz .sc-svg { display: block; width: 100%; height: auto; }
.seo-quiz .scene--photo .scene-photo { height: 100%; object-fit: cover; }
.seo-quiz .scene figcaption { padding: .4rem .7rem; font-size: .72rem; font-weight: 700; color: var(--muted); }
.seo-quiz .nav-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; margin-top: 1rem; }
/* Until the script runs every question shows (readable, and what a crawler sees); then one at a time. */
.seo-quiz:not(.is-live) .qgrid, .seo-quiz:not(.is-live) .nav-row { display: none; }
.seo-quiz-q[hidden], .seo-quiz .explain[hidden] { display: none; }

/* The statistics page (build-seo.mjs statsBlock()): static SVG charts on the dataviz reference palette,
   slot 1 blue / slot 2 orange, validated for both surfaces (validate_palette.js, 2026-10-04). */
.seo-stats { --viz-1: #2a78d6; --viz-2: #eb6834; }
:root[data-theme="dark"] .seo-stats { --viz-1: #3987e5; --viz-2: #d95926; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) .seo-stats { --viz-1: #3987e5; --viz-2: #d95926; } }
.seo-stats { margin: 1.4rem 0; }
.seo-stat-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seo-stat-tiles .stat-label { font-size: .88rem; }
.viz { display: block; width: 100%; height: auto; max-width: 720px; overflow: visible; }
.viz-grid { stroke: var(--border); stroke-width: 1; }
.viz-tick { fill: var(--muted); font-size: 12px; }
.viz-label, .viz-val { fill: var(--text); font-size: 12.5px; font-weight: 650; }
.viz-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-line.is-partial { stroke-dasharray: 4 4; }
.viz-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.viz-dot.is-partial { fill: var(--surface); stroke: var(--c); }
.viz-bar { fill: var(--viz-1); }
.viz-bar.is-partial { fill: color-mix(in srgb, var(--viz-1) 45%, var(--surface)); }
.viz-hit { fill: transparent; }
.viz-pt:hover .viz-dot { r: 6; }
.viz-pt:hover .viz-bar { filter: brightness(1.12); }
.viz-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 .5rem; font-size: .88rem; color: var(--text); }
.viz-legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--c); margin-right: .45rem; vertical-align: middle; }
.seo-table-wrap { overflow-x: auto; margin-top: .5rem; }
.seo-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.seo-table th, .seo-table td { padding: .4rem .6rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.seo-table thead th { color: var(--muted); font-weight: 650; font-size: .82rem; }
.seo-table .num { text-align: right; }
.seo-table tbody th { font-weight: 600; }
.seo-stat-note, .seo-stat-src { color: var(--muted); font-size: .84rem; margin: .4rem 0 0; }
/* SVG text scales with the chart; a phone shrinks a 640-wide viewBox to ~0.55×, so the type is set larger there. */
@media (max-width: 600px) {
  .viz-tick { font-size: 18px; }
  .viz-label, .viz-val { font-size: 19px; }
  .viz-label { display: none; }   /* no room beside the line on a phone; the legend above names both */
}
/* The statistics page and the opening quiz questions take the app's copy block back (owner, 2026-10-04):
   our compiled figures and the bank's questions should not lift out in one drag. Deterrent only. */
.seo-main--stats, .seo-main--stats *, .seo-quiz, .seo-quiz * { -webkit-user-select: none; user-select: none; }
/* The one figures table and its filter row: every view is in the HTML; .is-live (inline script) shows one. */
.seo-stat-tabs { display: none; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.seo-stat-table.is-live .seo-stat-tabs { display: flex; }
.seo-stat-tabs button { font: inherit; font-size: .88rem; font-weight: 650; padding: .4rem .85rem; min-height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.seo-stat-tabs button[aria-selected="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.seo-stat-panel + .seo-stat-panel { margin-top: 1.2rem; }
.seo-stat-table.is-live .seo-stat-panel + .seo-stat-panel { margin-top: 0; }
.seo-stat-panel[hidden] { display: none; }

/* ---- Answer pages (build-seo.mjs answerPages): the answer in the hero, then facts and a picture
   of the numbers. Built from the app's tokens so they sit beside the landing and chapter pages. */
.seo-ans-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: center; margin: .4rem 0 1.6rem;
}
@media (max-width: 860px) { .seo-ans-hero { grid-template-columns: 1fr; } }
/* On a phone the quiz is the point of these pages, so it must start on the first screen. */
@media (max-width: 860px) { .seo-pv-quiz .seo-ans-photo { display: none; } }
.seo-main .seo-ans-head h1 { margin-bottom: .9rem; letter-spacing: -.02em; text-wrap: balance; }
.seo-ans-head .seo-lead { color: var(--muted); margin: 1rem 0 1.2rem; max-width: 58ch; }
.seo-ans-card {
  position: relative; display: grid; gap: .35rem; padding: 1.1rem 1.25rem 1.15rem 1.4rem;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border)); border-radius: var(--r-xl);
  box-shadow: var(--hairline), var(--e2, var(--e1)); overflow: hidden;
}
.seo-ans-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.seo-ans-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; padding-bottom: .08em; font-weight: 800; letter-spacing: -.035em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.seo-ans-card p { margin: 0; font-size: 1.05rem; line-height: 1.5; font-weight: 550; }
.seo-ans-photo {
  margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-2xl);
  background: var(--surface-2); box-shadow: var(--e3, var(--e1));
}
.seo-ans-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seo-ans-facts { margin: 0 0 1.4rem; }
@media (max-width: 640px) {
  .seo-ans-facts.seo-facts { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .seo-ans-facts.seo-facts > div { padding: .8rem .85rem .9rem; }
}
.seo-ans-vis {
  margin: 0 0 1.4rem; padding: clamp(1.1rem, 3vw, 1.7rem);
  background: var(--glass-open); -webkit-backdrop-filter: var(--glass-open-blur); backdrop-filter: var(--glass-open-blur);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: var(--r-xl);
  box-shadow: var(--hairline), var(--shadow);
}
.seo-main .seo-ans-vis > h2 { margin-top: 0; }
.seo-ans-vis .seo-note { color: var(--muted); font-size: .88rem; margin: .9rem 0 0; }

/* Steps: stops on a road, the chapter pages' route drawn horizontally on wide screens. */
.seo-ans-steps { --road: #3b4048; list-style: none; padding: 0; margin: .6rem 0 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; position: relative; }
:root[data-theme="dark"] .seo-ans-steps { --road: #262b34; }
.seo-ans-steps li { position: relative; display: grid; gap: .55rem; align-content: start; }
.seo-ans-steps li::before { content: ""; height: 10px; border-radius: 5px; background: var(--road); order: 1;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, #f2c94c 6px 14px, transparent 14px 22px);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 center; }
.seo-ans-tag { order: 0; justify-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand-on-white); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: var(--r-pill); padding: .2rem .65rem; }
.seo-ans-steps li > div { order: 2; display: grid; gap: .25rem; }
.seo-ans-steps b { font-size: 1rem; line-height: 1.3; }
.seo-ans-steps li > div > span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Bars: one row per amount, the highlighted row in the brand gradient. A range bar starts at --from. */
.seo-bars { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .75rem; }
.seo-bars li { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr) auto; gap: .9rem; align-items: center; }
@media (max-width: 640px) { .seo-bars li { grid-template-columns: minmax(0, 1fr) auto; } .seo-bar-track { grid-column: 1 / -1; grid-row: 2; } }
.seo-bar-label { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.seo-bar-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.seo-bar-track i { position: absolute; top: 0; bottom: 0; left: var(--from); width: calc(var(--to) - var(--from)); border-radius: 7px;
  background: color-mix(in srgb, var(--blue) 70%, var(--surface)); }
.seo-bars li.is-hi .seo-bar-track i { background: var(--grad); }
.seo-bars b { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1rem; }
.seo-bars li.is-hi b { color: var(--brand-on-white); }

/* Stack: how a whole splits into parts, with a legend underneath. */
.seo-stack { display: flex; gap: 3px; height: 3rem; margin: .7rem 0 1rem; border-radius: var(--r-md); overflow: hidden; }
.seo-stack span { display: grid; place-items: center; min-width: 2.2rem; color: #fff; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.seo-stack .s0, .seo-stack-legend i.s0 { background: var(--brand); }
.seo-stack .s1, .seo-stack-legend i.s1 { background: var(--blue); }
.seo-stack .s2, .seo-stack-legend i.s2 { background: var(--violet); }
.seo-stack .s3, .seo-stack-legend i.s3 { background: var(--amber); }
.seo-stack-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem 1.2rem; }
.seo-stack-legend li { display: grid; grid-template-columns: .9rem minmax(0, 1fr); gap: .6rem; align-items: start; }
.seo-stack-legend i { width: .9rem; height: .9rem; border-radius: 4px; margin-top: .25rem; }
.seo-stack-legend b { font-size: .95rem; line-height: 1.35; }
.seo-stack-legend small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: .15rem; }

.seo-ans-figure .cs { max-width: 640px; margin: .6rem 0 0; }

/* The nine sign groups: a face, the series number and the name, each a link to the group page. */
.seo-grp-grid { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem; }
.seo-main article .seo-grp-grid a {
  position: relative; display: grid; justify-items: center; gap: .35rem; text-align: center; padding: 1rem .8rem .9rem;
  color: inherit; text-decoration: none; background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.seo-main article .seo-grp-grid a:hover { transform: translateY(-2px); border-color: var(--muted); }
.seo-grp-grid img { width: 72px; height: 72px; object-fit: contain; }
.seo-grp-num { position: absolute; top: .5rem; left: .6rem; font-size: .72rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.seo-grp-grid b { font-size: .95rem; line-height: 1.25; }
.seo-grp-grid small { color: var(--muted); font-size: .8rem; }

.seo-ans-sources { margin: 1.4rem 0; }
.seo-main .seo-ans-sources h2 { margin-top: 0; }
.seo-main article .seo-ans-sources .seo-ch-sources a { color: inherit; }

/* Related questions: photograph cards, the answer's number above the question. */
.seo-ans-related { margin: 1.6rem 0; }
.seo-ans-related ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .9rem; }
.seo-main article .seo-ans-related a {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .85rem; align-items: center; padding: .5rem;
  color: inherit; text-decoration: none; background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--hairline), var(--e1);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.seo-main article .seo-ans-related a:hover { transform: translateY(-2px); border-color: var(--muted); }
.seo-ans-related img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
.seo-ans-related span { display: grid; gap: .15rem; }
.seo-ans-related small { font-weight: 800; color: var(--brand-on-white); font-size: .9rem; }
.seo-ans-related b { font-size: .95rem; line-height: 1.3; }
.seo-pv-hero .seo-ans-head .seo-lead { color: var(--muted); }
.seo-pv-hero .seo-ans-head .seo-actions { margin-bottom: 0; }
/* --brand-on-white is pinned for light grounds; on dark the lighter --brand reads. */
:root[data-theme="dark"] .seo-bars li.is-hi b, :root[data-theme="dark"] .seo-ans-tag,
:root[data-theme="dark"] .seo-main article .seo-ans-related small, :root[data-theme="dark"] .seo-ans-related small { color: var(--brand); }

/* Every image on these pages, not only the art classes styles.css covers: no drag-out, no iOS
   long-press "Save Image", no selection halo. Right-click is blocked by the page's inline script. */
.seo-main img, .seo-main svg, .seo-main video, .seo-main picture {
  -webkit-user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}

/* The sign quiz (build-seo.mjs signQuizBlock()): the exam card with the face in place of a scene. */
.seo-signq-face { margin: 0 0 1rem; display: grid; place-items: center; padding: 1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); max-width: 460px; }
.seo-signq-face img { width: 150px; height: 150px; object-fit: contain; }
.seo-signquiz .explain a { margin-left: .25rem; white-space: nowrap; }
.seo-signquiz-end { padding: 1.4rem; text-align: left; }
.seo-main .seo-signquiz-end h3 { margin: 0 0 .5rem; font-size: 1.35rem; }
.seo-signquiz-end[hidden] { display: none; }
/* Past the fifth sign: the price cards in a popup (the app's .pwdlg, widened for three cards). */
.seo-paydlg { width: min(64rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.seo-paydlg-body { padding: 1.4rem 1.5rem 1.5rem; }
.seo-main .seo-paydlg h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.seo-paydlg .lead { font-size: 1rem; max-width: 46rem; }
.seo-paydlg .seo-pricing { margin: 1rem 0 0; }

/* The product film (app/introvideo.js) on four guides — smaller than the home page's, centred, click to play. */
.seo-film { max-width: 720px; margin: 2.2rem auto; text-align: center; }
@media (min-width: 1025px) { .seo-film { max-width: 648px; } } /* desktop: 10% smaller (owner 2026-10-12) */
.seo-main .seo-film h2 { margin: 0 0 .9rem; font-size: 1.3rem; }
.seo-film .iv-frame { border-radius: var(--r-xl, 20px); text-align: left; }

/* Quiz pages: the hero's "Start hele prøven" button shows on phones only, where the quiz sits below the fold. */
.seo-quiz-start { display: none; }
@media (max-width: 700px) { .seo-quiz-start { display: block; } }

/* --- City pages: local facts (build-seo.mjs cityLocal, 2026-11-15) ------------------------- */
.seo-city-summary { max-width: 66ch; margin: .2rem 0 1rem; color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.seo-local { margin: 2.4rem 0 1rem; }
.seo-local > p { color: var(--muted); max-width: 62ch; }
.seo-local-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.seo-local-card {
  display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.2rem 1.1rem;
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--hairline), var(--e1);
}
.seo-local-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.seo-local-card p { margin: 0; }
.seo-local-k { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.seo-local-k svg { width: 1.05rem; height: 1.05rem; color: var(--brand); flex: none; }
.seo-local-note { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.seo-local-more { margin-top: auto !important; padding-top: .35rem; font-weight: 650; font-size: .92rem; }
.seo-local-more a::after { content: " →"; }
.seo-station-addr { font-weight: 600; }
.seo-station-km { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.seo-station-next { color: var(--muted); font-size: .84rem; }
.seo-station-tags { list-style: none; padding: 0; margin: .15rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.seo-station-tags li { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-ink); font-size: .8rem; font-weight: 700; }
.seo-station-tags svg { width: .85rem; height: .85rem; }
.seo-county-big { font-size: .95rem; color: var(--muted); }
.seo-county-big b { font-size: 2.2rem; line-height: 1; color: var(--text); font-weight: 800; letter-spacing: -.02em; margin-right: .2rem; font-variant-numeric: tabular-nums; }
.seo-cbar { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: .55rem; font-size: .84rem; }
.seo-cbar-l { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-cbar-t { height: .55rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.seo-cbar-t span { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.seo-cbar.is-county .seo-cbar-t span { background-color: var(--grad-solid, var(--brand)); background-image: var(--grad-ui, none); }
.seo-cbar b { text-align: right; font-variant-numeric: tabular-nums; }
.seo-tl { margin: .1rem 0 .4rem; }
.seo-tl svg { width: 100%; height: auto; display: block; overflow: visible; }
.seo-tl .tl-axis, .seo-tl .tl-tick line { stroke: var(--border); stroke-width: 1.5; }
.seo-tl .tl-tick text { fill: var(--muted); font-size: 13px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.seo-tl .tl-dot { fill: var(--muted); opacity: .75; }
.seo-tl .tl-dot.tl-new { fill: var(--brand); opacity: 1; }
.seo-tl figcaption { color: var(--muted); font-size: .8rem; line-height: 1.45; margin-top: .35rem; }
.seo-forms-h { font-weight: 700; font-size: .88rem; margin-top: .3rem !important; }
.seo-forms-bar { display: flex; height: .7rem; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.seo-forms-key { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; color: var(--muted); }
.seo-forms-key b { color: var(--text); font-variant-numeric: tabular-nums; }
.seo-forms-key i { display: inline-block; width: .65rem; height: .65rem; border-radius: 3px; margin-right: .35rem; vertical-align: -.05rem; }
.f-as { background: var(--brand); } .f-enk { background: var(--blue); } .f-oth { background: var(--amber); }
.seo-guide { margin: 2.2rem 0 1rem; padding: 1.2rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.seo-guide h2 { margin-top: 0; }
.seo-guide-q { list-style: none; counter-reset: g; padding: 0; margin: .6rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.seo-guide-q li { counter-increment: g; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem .4rem .45rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 650; font-size: .9rem; }
.seo-guide-q li::before { content: counter(g); width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--grad-solid, var(--brand)); background-image: var(--grad-ui, none); color: #fff; font-size: .72rem; font-weight: 800; }
.seo-source--short { margin: 1.4rem 0 0; }
.seo-source--short p { color: var(--muted); font-size: .8rem; line-height: 1.5; max-width: 80ch; }
.seo-guide-full { scroll-margin-top: 5rem; }
@media (max-width: 560px) {
  .seo-cbar { grid-template-columns: 5.6rem 1fr 2.6rem; }
  .seo-guide-q li { font-size: .85rem; }
}
.seo-towns { display: flex; flex-direction: column; gap: .35rem; }
.seo-cbar.is-town .seo-cbar-t span { background: var(--blue); }
/* review fixes (2026-11-15) */
.seo-local-grid { align-items: start; }
h3.seo-local-k { margin: 0; line-height: 1.3; }
.seo-station-name { font-size: 1.15rem; font-weight: 750; line-height: 1.25; }
h4.seo-forms-h { margin: .4rem 0 .15rem; font-size: .88rem; }
.seo-towns-rest { color: var(--muted); font-size: .84rem; }
.seo-towns-rest b { color: var(--text); }
.seo-station-tags li.is-no { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.seo-tl .tl-tick text { font-size: 17px; }
.tl-key { display: inline-flex; align-items: center; gap: .3rem; color: var(--text); font-weight: 600; margin-right: .25rem; }
.tl-key i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); display: inline-block; }
@media (max-width: 560px) {
  .seo-cbar { grid-template-columns: 1fr 2.6rem; row-gap: .15rem; }
  .seo-cbar-l { grid-column: 1 / -1; white-space: normal; }
}
.seo-main article .seo-local-card h3.seo-local-k { font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0; }
.seo-main article .seo-local-card h4.seo-forms-h { font-size: .88rem; font-weight: 700; margin: .4rem 0 .15rem; }

/* --- /no/beste-teoriprove-app/ (build-seo.mjs BEST_COPY, 2026-11-15) ------------------------- */
.seo-best-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; margin: .3rem 0 .6rem; }
.seo-best-intro h1 { margin-top: 0; }
.seo-best-pick {
  position: relative; padding: 1.25rem 1.3rem 1.2rem; border-radius: var(--radius);
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); box-shadow: var(--hairline), var(--e2);
}
.seo-best-pick::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--grad-solid, var(--brand)); background-image: var(--grad-ui, none); }
.seo-best-pick p { margin: 0; }
.seo-best-pick-k { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.seo-best-pick-name { margin: .45rem 0 .2rem !important; }
.seo-best-pick-name img { height: 2.4rem; width: auto; display: block; }
.seo-best-pick-why { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-ink); font-size: .8rem; font-weight: 700; }
.seo-best-pick svg, .seo-best-how svg { width: .95rem; height: .95rem; flex: none; }
.seo-best-pick ul { list-style: none; padding: 0; margin: .85rem 0 1rem; display: grid; gap: .55rem; }
.seo-best-pick li { display: flex; gap: .55rem; align-items: flex-start; font-size: .94rem; line-height: 1.4; }
.seo-best-pick li svg { color: var(--ok); margin-top: .15rem; }
.seo-best-pick-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.seo-best-disclose { color: var(--muted); font-size: .85rem; max-width: 70ch; margin: .2rem 0 1.6rem; padding-left: .8rem; border-left: 3px solid var(--border); }
.seo-best-list > p { color: var(--muted); max-width: 62ch; }
.seo-best-list ol { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.1rem; }
.seo-best-item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: center;
  padding: clamp(1rem, 2.4vw, 1.5rem); border-radius: var(--radius);
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); box-shadow: var(--hairline), var(--e1);
}
.seo-best-item:nth-child(even) .seo-best-shot { order: -1; }
.seo-best-item.no-shot { grid-template-columns: 1fr; }
.seo-best-item h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 .5rem; font-size: 1.2rem; }
.seo-best-n { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; font-weight: 800; color: #fff;
  background-color: var(--grad-solid, var(--brand)); background-image: var(--grad-ui, none); }
.seo-best-text p { margin: 0 0 .6rem; }
.seo-best-how { padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--text); font-size: .93rem; line-height: 1.5; margin: 0 !important; }
.seo-best-how b { display: inline-flex; align-items: center; gap: .3rem; color: var(--ok-ink); margin-right: .2rem; }
.seo-best-shot { margin: 0; }
.seo-best-shot img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--e2); }
.seo-best-pp { display: flex; gap: 1rem; align-items: flex-start; margin: 1.6rem 0; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.seo-best-pp h2 { margin: 0 0 .35rem; font-size: 1.3rem; }
.seo-best-pp p { margin: 0 0 .4rem; }
.seo-best-pp-ico { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ok); }
.seo-best-pp-ico svg { width: 1.5rem; height: 1.5rem; }
.seo-best-method { margin-top: 2rem; }
.seo-best-method p { color: var(--muted); max-width: 70ch; }
@media (max-width: 820px) {
  .seo-best-hero, .seo-best-item { grid-template-columns: 1fr; }
  .seo-best-item:nth-child(even) .seo-best-shot { order: 0; }
}
.seo-best-item { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.seo-best-shot img { aspect-ratio: 16 / 10; object-fit: cover; max-height: 15.5rem; }
@media (max-width: 820px) { .seo-best-item { grid-template-columns: 1fr; } .seo-best-shot img { max-height: 12rem; } }
.seo-best-answer { max-width: 62ch; margin: .2rem 0 .7rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .95rem; line-height: 1.55; }
.seo-best-intro .seo-best-disclose { margin: .5rem 0 0; }
.seo-main article .seo-best-pp a { color: var(--ok-ink); font-weight: 650; }
:root[data-theme="dark"] .seo-best-pick-name img { filter: brightness(0) invert(1); }

/* --- Sign pages: "Skiltet i praksis" (build-seo.mjs signDetails, 2026-11-15) ---------------------- */
.seo-sd { margin: 1.6rem 0 1.4rem; }
.seo-sd h2 { margin-bottom: .8rem; }
.seo-sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem; }
.seo-main article .seo-sd-card {
  padding: 1rem 1.1rem 1.05rem; border-radius: var(--radius);
  background-color: var(--surface); background-image: var(--surface-lift);
  border: 1px solid var(--border); box-shadow: var(--hairline), var(--e1);
}
.seo-main article .seo-sd-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: 1rem; }
.seo-sd-card h3 svg { width: 1.6rem; height: 1.6rem; padding: .3rem; border-radius: 50%; flex: none; }
.seo-sd-card.is-practice h3 svg { background: var(--ok-bg); color: var(--ok-ink); }
.seo-sd-card.is-mistake h3 svg { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.seo-sd-card.is-pair h3 svg { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.seo-sd-card p { margin: 0; line-height: 1.6; }
.seo-sd-card.is-pair { grid-column: 1 / -1; }
.seo-sd-pair { display: flex; align-items: center; gap: .9rem; margin: .2rem 0 .7rem; flex-wrap: wrap; }
.seo-sd-pair > i { font-style: normal; color: var(--muted); font-size: .85rem; font-weight: 650; }
.seo-main article .seo-sd-face { display: grid; grid-template-columns: 52px auto; grid-template-rows: auto auto; column-gap: .6rem; align-items: center;
  padding: .45rem .8rem .45rem .45rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; }
.seo-main article a.seo-sd-face:hover { border-color: var(--brand); }
.seo-sd-face img { grid-row: 1 / span 2; width: 52px; height: 52px; object-fit: contain; }
.seo-sd-face b { font-size: .9rem; line-height: 1.2; }
.seo-sd-face small { color: var(--muted); font-size: .76rem; }
.seo-sd-src { margin: .7rem 0 0; color: var(--muted); font-size: .8rem; }
/* Phones: the group grid in two columns instead of one 50-row list (visual only; same links). */
@media (max-width: 560px) {
  .seo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .6rem; }
  .seo-main article .seo-tiles a { grid-template-columns: 36px minmax(0, 1fr); column-gap: .5rem; }
  .seo-tiles img { width: 36px; height: 36px; }
  .seo-tile-name { font-size: .8rem; }
}
@media (max-width: 560px) {
  .seo-sd-pair { flex-direction: column; align-items: stretch; gap: .4rem; }
  .seo-sd-pair > i { text-align: center; }
}
