/* European Sovereignty Monitor: the Explore front page (redesign, 2026-11-19)
   ============================================================================
   Loaded by default.hbs on every page since the redesign went live (the same day), after system.css
   and screen.css. Every rule here sits under .xp (the front page), .xr (the Research page),
   .post-news (the item page) or .nav-menu-label (the two group labels in the Research menu), so
   nothing in this file can reach a page outside the redesign.

   It owns no colour: every value is a token from system.css, so the dark theme follows without a
   second set of rules. The three area tokens are bound once per area class (.xp-a-<area>) and read
   as --area (the text hue), --fill (the deep hue under white type) and --tint (the field).
   ============================================================================ */

.xp { display: flex; flex-direction: column; gap: 56px; padding: 28px 0 0; }

.xp-a-policy-and-law { --area: var(--area-policy-and-law); --fill: var(--area-policy-and-law-fill); --tint: var(--area-policy-and-law-tint); }
.xp-a-compute-and-infrastructure { --area: var(--area-compute-and-infrastructure); --fill: var(--area-compute-and-infrastructure-fill); --tint: var(--area-compute-and-infrastructure-tint); }
.xp-a-defence-and-space { --area: var(--area-defence-and-space); --fill: var(--area-defence-and-space-fill); --tint: var(--area-defence-and-space-tint); }
.xp-a-industry-investment-and-rd { --area: var(--area-industry-investment-and-rd); --fill: var(--area-industry-investment-and-rd-fill); --tint: var(--area-industry-investment-and-rd-tint); }

/* ---------- the area tabs ----------
   One tab per area, in the area's tint with the area's hue as type; the selected one takes the
   fill under white type, which is the same pair the column heads use today. Without JavaScript
   the tabs are hidden and the four stages stack, because a tab that cannot switch is a dead control. */
.xp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.xp:not(.js) .xp-tabs { display: none; }
.xp-tab { font: inherit; text-align: left; cursor: pointer; border: 0; margin: 0; padding: 14px 18px 13px;
          min-height: 76px; display: flex; flex-direction: column; gap: 5px;
          background: var(--tint); color: var(--area); }
.xp-tab[hidden] { display: none; }
.xp-tab-name { font: 700 22px/1 var(--head); }
.xp-tab-sub { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.xp-tab[aria-selected="true"] { background: var(--fill); color: #fff; }
.xp-tab[aria-selected="true"] .xp-tab-sub { color: #fff; }
.xp-tab:focus-visible { outline: 2px solid var(--steel-deep); outline-offset: 2px; }
/* 2026-11-20: the rotation (assets/js/explore.js, 1b). The bar under the active tab fills over ten seconds; the
   button under the tabs stops the rotation for good and is hidden once it has. */
.xp-tab { position: relative; }
.xp-tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; opacity: .55;
              transform: scaleX(0); transform-origin: left center; transition: transform .1s linear; pointer-events: none; }
.xp:not(.is-rotating) .xp-tab-bar { display: none; }
.xp-rotate-pause { display: block; margin: 6px 0 0 auto; padding: 4px 0; border: 0; background: none; cursor: pointer;
                   font: 500 12px/1.3 var(--body); letter-spacing: .02em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.xp-rotate-pause:hover { color: var(--ink-head); }
.xp-rotate-pause[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .xp-tab-bar { transition: none; } }

/* ---------- the lead stage ---------- */
.xp-stage { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--tint); }
.xp.js .xp-stage:not(.is-active) { display: none; }
.xp:not(.js) .xp-stage + .xp-stage { margin-top: 24px; }
.xp-main { flex: 7 1 480px; min-width: 0; display: flex; flex-direction: column; padding: 36px 40px 38px;
           background: var(--paper); border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.xp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.xp-meta .grade-badge, .xp-more-meta .grade-badge, .xp-item-meta .grade-badge { margin-left: 0; }
.xp-meta .news-chip { margin-right: 0; }
.xp.js .xp-meta .news-chip { display: none; }   /* the selected tab already names the area */
.xp-title { font: 700 60px/1 var(--head); font-size: clamp(36px, 4.6vw, 60px); color: var(--ink-head);
            margin: 16px 0 0; max-width: 22ch; text-wrap: balance; }
.xp-title a { color: inherit; text-decoration: none; }
.xp-title a:hover { color: var(--steel-deep); }
.xp-title a:focus-visible { outline: 2px solid var(--steel-deep); outline-offset: 4px; }
.xp-text { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
.xp-card .news-item-card { margin: 18px 0 0; max-width: 66ch; }
.xp-card .news-boundary, .xp-card .news-made, .xp-card .news-keywords { display: none; }
.xp-actions { margin: 22px 0 0; }
.xp-btn { background: var(--ink); border-color: var(--ink); color: var(--paper); padding: 13px 18px; }
.xp-btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #f2f2f3; }

.xp-more { flex: 5 1 340px; min-width: 0; display: flex; flex-direction: column; padding: 34px 34px 30px; }
.xp-more-title { font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
                 color: var(--area); margin: 0 0 6px; }
.xp-more-row { display: block; padding: 14px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.xp-more-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 500 12px/1 var(--body);
                letter-spacing: .06em; color: var(--ink-head); font-variant-numeric: tabular-nums; }
.xp-more-t { display: block; margin-top: 7px; font: 700 20px/1.18 var(--head); color: var(--ink-head); text-wrap: balance; }
.xp-more-row:hover .xp-more-t { color: var(--area); }
.xp-more-all { margin-top: 18px; font: 600 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase;
               color: var(--area); text-decoration: none; }
.xp-more-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.xp-more-row:focus-visible, .xp-more-all:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- the latest items, with a filter ---------- */
.xp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px;
           border-top: 2px solid var(--ink); padding-top: 14px; }
.xp-head .section-title { border-top: 0; padding-top: 0; margin: 0; }
.xp-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.xp:not(.js) .xp-filters { display: none; }
.xp-filters .filter-btn { padding: 10px 14px; border-color: var(--edge); }
.xp-filters .filter-btn.is-active { border-color: var(--ink-head); }
.xp-filters .filter-btn:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.xp-count { margin: 12px 0 0; font-size: 13px; }
.xp-count[hidden] { display: none; }
.xp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; margin-top: 6px; }
.xp-item { display: block; padding: 20px 0 22px; border-bottom: 1px solid var(--hair); text-decoration: none; color: inherit; }
.xp-item[hidden] { display: none; }
.xp-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.xp-area { font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--area); }
.xp-item-date { font: 500 12px/1 var(--body); letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-item-title { display: block; margin-top: 10px; font: 700 26px/1.14 var(--head); color: var(--ink-head); text-wrap: balance; }
.xp-item:hover .xp-item-title { color: var(--steel-deep); }
.xp-item:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.xp-item-text { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.xp-all { margin: 20px 0 0; }

/* ---------- the research tools ----------
   The shared cell grid from system.css, four across. Each tile opens with a small drawing made of
   plain boxes: eight rungs for the map's eight layers, fourteen boxes for the ledger's cases, an
   axis for the timeline and a week for the calendar. They are decoration and say nothing a reader
   needs, so they are hidden from assistive technology in the markup. */
.xp-tools .section-title { margin-bottom: 6px; }
.xp-tools > .quiet { margin: 0 0 18px; max-width: 70ch; }
.xp-tile { padding: 20px 20px 22px; }
.xp-tile .tool-count { margin-top: 16px; }
.xp-tile h3 { font: 700 21px/1.1 var(--head); margin: 8px 0 0; }
.xp-tile p { font-size: 13.5px; line-height: 1.45; margin: 6px 0 0; }
.xp-pic { height: 76px; }
.xp-pic i { display: block; }
.xp-pic-rungs { display: flex; flex-direction: column; justify-content: space-between; }
.xp-pic-rungs i { height: 6px; background: var(--ink); }
.xp-pic-cases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-content: center; }
.xp-pic-cases i { height: 28px; border: 1.5px solid var(--ink); }
.xp-pic-axis { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.xp-axis { display: flex; justify-content: space-between; align-items: flex-end; height: 22px; border-bottom: 1.5px solid var(--ink); }
.xp-axis i { width: 1.5px; height: 10px; background: var(--ink); }
.xp-axis i.m { height: 16px; }
.xp-axis i.l { height: 22px; }
.xp-axis-ends { display: flex; justify-content: space-between; font: 500 12px/1 var(--body); letter-spacing: .06em;
                color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-pic-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; align-content: center; }
.xp-pic-days i { height: 22px; border: 1px solid var(--edge); }
.xp-pic-days i.on { background: var(--steel-deep); border-color: var(--steel-deep); }

/* ---------- coming up ---------- */
.xp-coming[hidden] { display: none; }
.xp-coming .news-all { padding: 8px 0; }
.xp-coming-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 8px; }
.xp-day { display: block; margin-top: 12px; padding: 14px 0 16px; border-top: 4px solid var(--fill, var(--edge));
          text-decoration: none; color: inherit; }
.xp-day-date { display: block; font: 700 24px/1 var(--head); color: var(--ink-head); }
.xp-day-what { display: block; margin-top: 8px; font: 500 15px/1.4 var(--body); color: var(--ink-head); }
.xp-day:hover .xp-day-what { text-decoration: underline; text-underline-offset: 3px; }
.xp-day-meta { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.xp-day:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

/* ---------- the sign-up band ----------
   The one place a dark ground is used on this page. The two colours are fixed and not tokens,
   because --ink turns light in the dark theme and the band has to stay a dark field under light
   type in both. */
.xp-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 44px;
           padding: 30px 34px; background: #1d1f20; color: #f2f2f3; border: 1px solid var(--hair); }
.xp-band-copy { flex: 1 1 420px; min-width: 0; }
.xp-band h2 { font: 700 34px/1.05 var(--head); color: #f2f2f3; margin: 0; }
.xp-band p { font-size: 16px; line-height: 1.5; color: #dcdcdf; max-width: 56ch; margin: 10px 0 0; }
.xp-band .btn { padding: 15px 18px; }

/* ---------- the two group labels in the Research menu ---------- */
.nav-menu-label { display: block; padding: 10px 16px 5px; font: 600 11.5px/1 var(--body); letter-spacing: .16em;
                  text-transform: uppercase; color: var(--muted); }
.nav-menu-label-next { border-top: 1px solid var(--hair-soft); margin-top: 5px; padding-top: 13px; }

/* ============================================================================
   The Research page (custom-research.hbs, 2026-11-19)
   ============================================================================
   Every rule sits under .xr. The tabs are neutral, ink for the selected one, because the four tools
   are not the four areas and must not borrow an area's colour. The stage repeats the front page's
   lead stage: the text on the paper ground with a hairline, the side panel on the soft hair. */
.xr { display: flex; flex-direction: column; gap: 56px; padding: 46px 0 0; }
.xr-head { display: flex; flex-direction: column; gap: 12px; }
.xr-head .kicker { margin: 0; }
.xr-h1 { font-size: clamp(38px, 4.4vw, 58px); margin: 0; }
.xr-lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 60ch; margin: 0; }
.xr-label { font: 600 11.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.xr:not(.js) .xr-label, .xr:not(.js) .xr-tabs { display: none; }
.xr-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.xr-tab { font: inherit; text-align: left; cursor: pointer; border: 0; margin: 0; padding: 14px 18px 13px; min-height: 80px;
          display: flex; flex-direction: column; gap: 6px; background: var(--hair-soft); color: var(--ink-head); }
.xr-tab-q { font: 700 22px/1.05 var(--head); }
.xr-tab-name { font: 500 11.5px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xr-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.xr-tab[aria-selected="true"] .xr-tab-name { color: var(--paper); }
.xr-tab:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

.xr-stage { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--hair-soft); }
.xr.js .xr-stage:not(.is-active) { display: none; }
.xr:not(.js) .xr-stage + .xr-stage { margin-top: 24px; }
.xr-main { flex: 7 1 480px; min-width: 0; display: flex; flex-direction: column; padding: 36px 40px 36px;
           background: var(--paper); border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.xr:not(.js) .xr-main { border-top: 1px solid var(--hair); }
.xr-stamp { font: 500 13px/1 var(--body); letter-spacing: .06em; color: var(--muted); margin: 0 0 14px; }
.xr-stamp[hidden] { display: none; }
.xr-title { font: 700 52px/1 var(--head); font-size: clamp(34px, 4vw, 52px); color: var(--ink-head); margin: 0; max-width: 20ch; text-wrap: balance; }
.xr-text { font-size: 19px; line-height: 1.5; color: var(--ink-body); max-width: 56ch; margin: 16px 0 0; }
.xr-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair); }
.xr-facts[hidden] { display: none; }
.xr-fact { display: flex; flex-direction: column; gap: 6px; }
.xr-fact b { font: 700 44px/1 var(--head); color: var(--steel-deep); font-variant-numeric: tabular-nums; }
.xr-fact span { font: 500 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.xr-actions { margin: 28px 0 0; }
.xr-side { flex: 5 1 340px; min-width: 0; display: flex; flex-direction: column; padding: 34px 34px 30px; }
.xr-side-title { font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-head); margin: 0 0 14px; }
.xr-side-next { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--edge); }
.xr-asks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xr-asks li { font: 500 14px/1.3 var(--body); color: var(--ink-head); padding: 9px 12px; background: var(--paper); border: 1px solid var(--edge); }
.xr-note { font-size: 15px; line-height: 1.5; color: var(--ink-body); margin: 0; }

.xr-ref .section-title { margin-bottom: 6px; }
.xr-ref > .quiet { margin: 0 0 18px; max-width: 70ch; }
.xr-cell { padding: 22px 22px 24px; }
.xr-cell h3 { font: 700 26px/1.08 var(--head); margin: 0 0 8px; }
.xr-cell p { font-size: 15px; line-height: 1.5; }
.xr-cell .cell-go { margin: 16px 0 0; }

.xr-index { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px;
            padding: 20px 24px; border: 1px solid var(--edge); }
.xr-index-copy { flex: 1 1 420px; min-width: 0; }
.xr-index-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.xr-index-title b { font: 700 24px/1.1 var(--head); color: var(--ink-head); }
.xr-index-title .grade-badge { margin-left: 0; }
.xr-index-copy p:last-child { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 70ch; margin: 0; }

@media (max-width: 1000px) {
  .xr-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-tab { min-height: 0; }
  .xr-main { padding: 28px 24px 30px; }
  .xr-side { padding: 26px 24px; }
}
@media (max-width: 600px) {
  .xr { gap: 44px; padding-top: 30px; }
  .xr-main { padding: 22px 18px 24px; }
  .xr-side { padding: 22px 18px; }
  .xr-index { padding: 18px; }
}
@media print {
  .xr-label, .xr-tabs { display: none; }
  .xr.js .xr-stage:not(.is-active) { display: flex; }
}

/* ============================================================================
   The news item page in the Explore design (2026-11-19)
   ============================================================================
   A restyle and nothing else: post.hbs is untouched. Every rule sits under .post-news, the class post.hbs gives a news or
   opinion item; a weekly post and an issue do not carry it and keep their layout.

   The page's own parts are laid on one grid. .post-head, .post-body and the item card are taken out
   of the box tree (display: contents), which makes the kicker, the title, the summary, the meta line
   and each paragraph of the card grid items in their own right. That is what lets the "how this item
   was made" line sit at the foot of the item, under "Still open", although the template prints it in
   the middle of the card.

   From Reidar's brief of the same day: the boundary line reads as its own box under a plain label,
   the AI paragraph becomes one quiet line at the foot, and the index score is not shown here while
   the index is being rethought. A correction notice keeps its place and its weight.

   The area comes from the item's first area chip, which post.hbs prints first because it is the
   primary tag. The body class cannot be used for this: it carries every tag of the item, so an item
   filed under two areas would take whichever rule came last. */
.post-news:has(.post-meta > a.news-chip:first-of-type.chip-policy-and-law) { --area: var(--area-policy-and-law); --fill: var(--area-policy-and-law-fill); --tint: var(--area-policy-and-law-tint); }
.post-news:has(.post-meta > a.news-chip:first-of-type.chip-compute-and-infrastructure) { --area: var(--area-compute-and-infrastructure); --fill: var(--area-compute-and-infrastructure-fill); --tint: var(--area-compute-and-infrastructure-tint); }
.post-news:has(.post-meta > a.news-chip:first-of-type.chip-defence-and-space) { --area: var(--area-defence-and-space); --fill: var(--area-defence-and-space-fill); --tint: var(--area-defence-and-space-tint); }
.post-news:has(.post-meta > a.news-chip:first-of-type.chip-industry-investment-and-rd) { --area: var(--area-industry-investment-and-rd); --fill: var(--area-industry-investment-and-rd-fill); --tint: var(--area-industry-investment-and-rd-tint); }

.post-news.issue-layout { grid-template-columns: minmax(0, 1fr); padding-top: 28px;
                          --area: var(--ink); --fill: var(--steel-dark); --tint: var(--hair-soft); }
.post-news > .issue-rail { display: none; }
.post-news .issue-main { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 41.5%); align-items: start; }
.post-news .post-head, .post-news .post-body, .post-news .news-item-card { display: contents; }
.post-news .tag-key-post { display: none; }   /* the key to the tags stands in the footer of every page */

/* row 1: the area as a filled tab, then the date and Share on a line ruled in the area's colour */
.post-news .post-head > .kicker { grid-column: 1; grid-row: 1; align-self: stretch; display: flex; align-items: center;
                                  margin: 0; padding: 14px 18px 13px; background: var(--fill); color: #fff;
                                  font: 700 22px/1 var(--head); letter-spacing: 0; text-transform: none; }
.post-news .post-meta { grid-column: 2 / -1; grid-row: 1; align-self: stretch; align-items: center;
                        margin: 0; padding: 10px 0 10px 18px; border-top: 0; border-bottom: 4px solid var(--fill); }
.post-news .post-meta > a.news-chip:first-of-type, .post-news .post-meta > .post-onward-link { display: none; }
.post-news .post-meta > .share { margin-left: auto; }

/* the left column, top to bottom */
/* 2026-11-19 (gate review): the left column is placed by ORDER and not by a row number each. A numbered row
   holds one thing, and an item can carry two correction notices: pinned to one row they printed on top of
   each other. Auto-placed in order, every paragraph takes the next free row, however many there are. The
   page head and the right column keep explicit rows, and the sign-up band, which needs all three columns,
   lands under the right column by itself. */
.post-news .post-title, .post-news .post-lede, .post-news .news-grade, .post-news .news-boundary,
.post-news .news-correction, .post-news .post-links, .post-news .news-keywords, .post-news .news-index, .post-news .news-made {
  grid-column: 1 / 3; margin-left: 0; margin-right: 0; padding-right: 44px; max-width: none; }
.post-news .post-title { order: 1; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; max-width: 24ch;
                         margin-top: 36px; text-wrap: balance; }
.post-news .post-lede { order: 2; font-size: 20px; line-height: 1.55; color: var(--ink-body); max-width: 64ch; margin-top: 20px; }
.post-news .news-grade { order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
                         margin: 22px 0 0; font-size: 16px; line-height: 1.45; }
.post-news .news-grade .grade-badge { margin-left: 0; }
.post-news .news-grade a { font-weight: 600; color: var(--steel-deep); text-underline-offset: 3px; }
.post-news .news-boundary { order: 4; margin: 34px 0 0; padding-top: 14px; border-top: 2px solid var(--ink);
                            font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.post-news .news-boundary strong { display: none; }
.post-news .news-boundary::before { content: "Not known from this source"; display: block; margin: 0 0 10px;
                                    font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-head); }
/* the index reading stays on the page, quiet, above the AI line. It was hidden in the first build while the
   index is being rethought; the gate review pointed out that the staging Ghost is also where staged items
   are previewed before they are approved, and a score nobody can see is a score nobody can catch. */
.post-news .news-item-card .news-index { order: 8; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--hair);
                                         font-size: 13px; line-height: 1.5; color: var(--muted); }
.post-news .news-item-card .news-index strong { font-weight: 500; color: inherit; }
.post-news .news-item-card .news-correction { order: 5; margin: 26px 0 0; padding-top: 14px; border-top: 2px solid var(--ink);
                                              font-size: 17px; line-height: 1.5; color: var(--ink-head); }
/* the rule above "Still open" runs to the column's edge like the one above the boundary box, so the
   padding moves from the block to its paragraphs */
.post-news .post-links { order: 6; padding-right: 0; }
.post-news .post-links .post-links-block > p { padding-right: 44px; }
.post-news .post-links[hidden] { display: none; }
.post-news .post-links .post-links-block { margin-top: 26px; max-width: none; }
.post-news .post-links .section-title { margin: 0 0 10px; padding-top: 14px; border-top: 2px solid var(--ink);
                                        font: 600 12px/1 var(--body); letter-spacing: .14em; color: var(--ink-head); }
.post-news .post-links .post-links-open { margin-top: 0; max-width: none; }
.post-news .news-item-card .news-keywords { order: 7; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--hair); }
.post-news .news-item-card .news-made { order: 9; margin: 14px 0 0; padding-top: 0; padding-bottom: 6px;
                                        border-top: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.post-news .news-item-card .news-made strong { font-weight: 500; color: inherit; }
.post-news .news-made .news-index-tag { display: inline; margin: 0; font: inherit; letter-spacing: 0; text-transform: none; }
.post-news .news-made .news-index-tag a { color: var(--steel-deep); text-underline-offset: 3px; }
/* 2026-11-19 evening, Reidar: the three blocks the front page dropped leave the item page too: the boundary
   ("Not known from this source"), the index reading and "How this item was made". They stay in each post's
   HTML, so the record, the MCP and any later design can still read them; only the page stops showing them.
   The AI disclosure on the page is now the AI-drafted badge in the grade line. Same selectors as the rules
   above and later in the file, so these win without !important. */
.post-news .news-boundary, .post-news .news-item-card .news-index, .post-news .news-item-card .news-made { display: none; }

/* the right column: the area's other items on the area's tint */
.post-news .issue-main > .post-onward { grid-column: 3; grid-row: 2 / span 24; align-self: stretch; margin: 0; max-width: none;
                                        padding: 34px 34px 30px; background: var(--tint); }
.post-news .issue-main > .post-onward > .section-title { margin: 0 0 6px; padding-top: 0; border-top: 0;
                                                         font: 600 11.5px/1 var(--body); letter-spacing: .14em; color: var(--area); }
.post-news .issue-main > .post-onward .onward-title { font-size: 20px; max-width: none; }
.post-news .issue-main > .post-onward .onward-row:hover .onward-title { color: var(--area); }
/* 2026-11-20: story.js hides a "Previously in" row the story above already lists; .onward-row sets display, so say it */
.post-onward .onward-row[hidden] { display: none; }
.post-news .issue-main > .post-onward .onward-all a { color: var(--area); }
/* 2026-11-19 (Reidar): the story column on top of "Previously in", drawn by assets/js/story.js. Follow the
   story is a dated line in the area colour with this item marked in place; Related is a short list; the
   "Previously in" heading then gets the same rule above it as the two blocks. */
.post-news .post-story .section-title { margin: 0 0 6px; padding-top: 0; border-top: 0; font: 600 11.5px/1 var(--body);
                                        letter-spacing: .14em; color: var(--area); }
.post-news .post-story .section-title + .story-topic { margin: 8px 0 14px; font: 700 22px/1.15 var(--head); color: var(--ink-head); }
.post-news .story-line { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--area); }
.post-news .story-rel { list-style: none; margin: 10px 0 0; padding: 0; }
.post-news .story-step { position: relative; display: block; margin: 0 0 14px; }
.post-news .story-line .story-step::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px;
                                            border-radius: 50%; background: var(--tint); border: 2px solid var(--area); }
.post-news .story-line .story-here::before { background: var(--area); }
.post-news .story-line .story-next::before { border-style: dashed; }
.post-news .story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 3px;
                         font-size: 12px; line-height: 1.3; letter-spacing: .02em; color: var(--muted); }
.post-news .story-badges { display: inline-flex; gap: 6px; }
.post-news .story-badges .grade-badge { margin-left: 0; }
.post-news .story-kind { font-weight: 600; color: var(--ink-head); }
.post-news .story-title { display: block; font-size: 16px; line-height: 1.35; color: var(--ink-head); text-decoration: none; }
.post-news a.story-title:hover { color: var(--area); text-decoration: underline; text-underline-offset: 3px; }
.post-news .story-here .story-title { font-weight: 600; }
.post-news .story-here .story-meta { font-weight: 600; color: var(--area); text-transform: uppercase; letter-spacing: .1em; }
.post-news .story-next .story-title { font-style: italic; }
.post-news .story-deep { margin: 4px 0 30px; font-size: 14px; }
.post-news .story-deep a { color: var(--area); font-weight: 600; text-underline-offset: 3px; }
.post-news .post-story .story-rel { margin-bottom: 30px; }
.post-news .issue-main > .post-onward.has-story > .section-title { padding-top: 18px; border-top: 1px solid var(--hair); }
.post-news .issue-main > .post-onward.has-story > .section-title:first-child { padding-top: 0; border-top: 0; }

/* the sign-up band, as on the front page */
.post-news .post-signup { grid-column: 1 / -1; order: 99; margin: 56px 0 0; max-width: none; padding: 30px 34px;
                          background: #1d1f20; border: 1px solid var(--hair); }
.post-news .post-signup::before { content: "Free by email, every Friday"; flex: 1 0 100%; font: 700 34px/1.05 var(--head); color: #f2f2f3; }
.post-news .post-signup-note { color: #dcdcdf; }
.post-news .post-signup .btn { padding: 15px 18px; }

@media (max-width: 900px) {
  /* one column, in reading order; the page's own source order has the AI line above "Still open" */
  .post-news .issue-main { display: flex; flex-direction: column; align-items: stretch; }
  .post-news .post-head > .kicker { order: 1; align-self: flex-start; }
  .post-news .post-meta { order: 2; padding-left: 0; }
  .post-news .post-title { order: 3; margin-top: 26px; }
  .post-news .post-lede { order: 4; }
  .post-news .news-grade { order: 5; }
  .post-news .news-boundary { order: 6; }
  .post-news .news-item-card .news-correction { order: 7; }
  .post-news .post-links { order: 8; }
  .post-news .news-item-card .news-keywords { order: 9; }
  .post-news .news-item-card .news-index { order: 10; }
  .post-news .news-item-card .news-made { order: 11; }
  .post-news .issue-main > .post-onward { order: 12; margin-top: 36px; padding: 26px 20px; }
  .post-news .post-signup { order: 13; margin-top: 40px; padding: 24px 20px; }
  .post-news .post-title, .post-news .post-lede, .post-news .news-grade, .post-news .news-boundary,
  .post-news .news-correction, .post-news .post-links, .post-news .news-keywords, .post-news .news-index, .post-news .news-made { padding-right: 0; }
  .post-news .post-links .post-links-block > p { padding-right: 0; }
}

@media (max-width: 1000px) {
  .xp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-tab { min-height: 0; }
  .xp-grid { grid-template-columns: minmax(0, 1fr); }
  .xp-coming-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-main { padding: 28px 24px 30px; }
  .xp-more { padding: 26px 24px 26px; }
  .xp .cells.xp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .xp { gap: 44px; padding-top: 18px; }
  .xp-tabs { grid-template-columns: minmax(0, 1fr); }
  .xp-coming-grid { grid-template-columns: minmax(0, 1fr); }
  .xp .cells.xp-tiles { grid-template-columns: minmax(0, 1fr); }
  .xp-main { padding: 22px 18px 24px; }
  .xp-more { padding: 22px 18px; }
  .xp-band { padding: 24px 20px; }
  .xp-filters .filter-btn { min-height: 44px; }
}
@media print {
  .xp-tabs, .xp-rotate-pause, .xp-filters, .xp-band { display: none; }
  .xp.js .xp-stage:not(.is-active) { display: flex; }
}

/* ============================================================================
   The Reader view of the front page, and the switch (2026-11-19)
   ============================================================================
   The front page carries two views of the same record: Explore (.xp) and Reader (.xv,
   partials/home-reader.hbs). Exactly one shows. Which one is decided by the data-view attribute on
   the html element, which default.hbs sets to "explore" and changes to "reader" before the first
   paint when the reader chose that; the switch in the header changes it (assets/js/explore.js).
   Explore is the view when nothing was chosen and when there is no JavaScript.
   Every rule sits under .xv or .view-switch, and owns no colour of its own. */
.xv { display: none; }
html[data-view="reader"] .xv { display: flex; }
html[data-view="reader"] .xp { display: none; }
.xv { flex-wrap: wrap; align-items: flex-start; gap: 40px 80px; padding: 28px 0 0; }

/* the switch: two buttons in one box, the chosen one filled. Hidden everywhere except the front page,
   and there until the script has wired it, because a switch that cannot switch is a dead control. */
.view-switch { display: none; }
.home-template .view-switch.js { display: flex; }
/* the copy at the top of the front page (home.hbs): wherever the header has no room for the switch. On a
   phone it sat on the site's name (seen on staging, 2026-11-19); and up to about 1110px the name, the menu,
   the switch and the sign-up button do not fit on one line, so the name and the button wrapped (seen on the
   live site at 1010px the same evening). Measured: 304 + 318 + 334 of content, 64 of gaps, 88 of padding. */
.home-template .view-switch-page.js { display: none; }
.view-switch-page { align-self: flex-start; margin: 16px 0 0; }
@media (max-width: 1140px) {
  .home-template .site-head .view-switch.js { display: none; }
  .home-template .view-switch-page.js { display: inline-flex; }
}
.view-switch { border: 1px solid var(--ink); }
.view-btn { font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
            margin: 0; padding: 9px 12px; border: 0; background: none; color: var(--ink); }
.view-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.view-btn:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

/* ---------- the list ---------- */
.xv-main { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.xv-filters { display: flex; flex-wrap: wrap; gap: 0 22px; border-bottom: 1px solid var(--hair); }
.xv:not(.js) .xv-filters { display: none; }
.xv-filter { font: 500 13px/1 var(--body); letter-spacing: .06em; cursor: pointer; margin: 0 0 -1px; padding: 14px 0 12px;
             border: 0; border-bottom: 2px solid transparent; background: none; color: var(--area, var(--muted)); }
.xv-filter.is-active { font-weight: 600; color: var(--ink-head); border-bottom-color: var(--ink); }
.xv-filter:hover { color: var(--ink-head); }
.xv-filter:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.xv-count { margin: 18px 0 0; }
.xv-count[hidden] { display: none; }

.xv-day { margin: 40px 0 0; font: 600 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.xv-list > .xv-day:first-child { margin-top: 34px; }
.xv-item { padding: 22px 0 24px; border-bottom: 1px solid var(--hair); }
.xv-item[hidden] { display: none; }
.xv-day + .xv-item { padding-top: 18px; }
.xv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.xv-meta .grade-badge { margin-left: 0; }
.xv-date { font: 500 12px/1 var(--body); letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.xv.js .xv-date { display: none; }             /* the day label above carries the date */
.xv-title { margin: 10px 0 0; font: 600 28px/1.14 var(--head); color: var(--ink-head); text-wrap: balance; }
.xv-title a { color: inherit; text-decoration: none; }
.xv-title a:hover { color: var(--steel-deep); }
.xv-title a:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.xv-text { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-body); }
.xv-item.is-lead { padding-bottom: 30px; }
.xv-item.is-lead .xv-title { margin-top: 12px; font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.06; }
.xv-item.is-lead .xv-text { margin-top: 12px; font-size: 18px; }
.xv-all { margin: 26px 0 0; }

/* ---------- the side column ---------- */
.xv-side { flex: 1 1 240px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 34px; padding-top: 6px; }
.xv-box { display: flex; flex-direction: column; }
.xv-box[hidden] { display: none; }
.xv-box-title { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink);
                font: 600 11.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.xv-box-text { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-body); }
.xv-box-link { align-self: flex-start; padding: 12px 0; font: 600 11.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase;
               color: var(--ink); text-decoration: none; }
.xv-box-link:hover { color: var(--steel-deep); }
.xv-box-link[hidden] { display: none; }
.xv-up { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair-soft); text-decoration: none; color: inherit; }
.xv-up-date { display: block; font: 600 12px/1.3 var(--body); letter-spacing: .04em; color: var(--ink-head); }
.xv-up-what { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--ink-body); }
.xv-up:hover .xv-up-what { text-decoration: underline; text-underline-offset: 3px; }
.xv-up:focus-visible, .xv-box-link:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.xv-signup { margin-top: 14px; text-align: center; }

@media (max-width: 900px) {
  .xv-side { max-width: none; flex-basis: 100%; }
  .view-btn { padding: 9px 10px; }
}
@media (max-width: 600px) {
  .xv { padding-top: 12px; gap: 36px; }
  .xv-filters { gap: 0 18px; }
  .xv-filter { min-height: 44px; }
  .view-btn { min-height: 36px; }
  .xv-title { font-size: 24px; }
  .xv-item.is-lead .xv-title { font-size: 30px; }
}
@media print {
  .view-switch, .xv-filters { display: none !important; }
}
/* 2026-11-20 (Reidar: "for a normal, mobile view in vertical alignment, all menus should take as little space
   as possible"). On a portrait phone the four tabs stacked to about 350px before the story began. Here they are
   a two by two block of names only (the area's line of description is in the menu and on the area page), and
   the view switch, the pause link and the header sit tighter. The open foldable and anything wider keep the
   full tabs. Placed after every other rule for these selectors, so it wins at equal specificity. */
@media (max-width: 600px) {
  .xp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .xp-tab { min-height: 0; padding: 10px 12px 11px; gap: 0; justify-content: center; }
  .xp-tab-name { font-size: 16px; line-height: 1.1; }
  .xp-tab-sub { display: none; }
  .xp-tab-bar { height: 2px; }
  .xp-rotate-pause { margin-top: 2px; padding: 2px 0; font-size: 11.5px; }
  .xp { padding-top: 10px; }
  .view-switch-page { margin-top: 10px; }
  .view-btn { padding: 7px 10px; }
  .head-shell { padding-top: 8px; padding-bottom: 8px; gap: 8px 16px; }
  .site-nav { gap: 8px 18px; }
}
