/* ============================================================
   Article library.

   Loaded after site.css and scoped to the same .fxs-site body, so
   every colour, the typeface and the wrap width come from the
   public site's own tokens. Nothing here invents a second look.

   The pages are static HTML with no JavaScript, so everything
   below has to work on first paint. No transitions that matter,
   nothing that depends on a script running.
   ============================================================ */

.fxs-site { margin: 0; }

/* ── breadcrumbs ─────────────────────────────────────────── */
.ar-crumbs {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 0.85rem 0;
}
.ar-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; color: var(--muted);
}
.ar-crumbs li + li::before {
  content: "›"; margin-right: 0.5rem; color: var(--line-2);
}
.ar-crumbs a { color: var(--muted); text-decoration: none; }
.ar-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.ar-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ── article layout ──────────────────────────────────────── */
.ar { padding: 3rem 0 1rem; }
.ar__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 3.5rem;
  align-items: start;
}
/* 68 characters is the line length prose is comfortable at, and the
   grid column is wider than that on a big screen, so the measure is
   capped on the text itself rather than on the column. */
.ar__body { max-width: 68ch; }

.fxs-site .ar__kicker {
  margin: 0 0 0.6rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.ar__body h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.12; letter-spacing: -0.022em;
  font-weight: 800; color: var(--ink); text-wrap: balance;
}
.fxs-site .ar__standfirst {
  margin: 0 0 1.1rem;
  font-size: 1.12rem; line-height: 1.55; color: var(--body);
}
.fxs-site .ar__meta {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  margin: 0 0 2rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem; color: var(--muted);
}
.fxs-site .ar__intro {
  font-size: 1.06rem; line-height: 1.7; color: var(--ink);
  margin: 0 0 2rem;
}

.ar__body h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.014em;
  font-weight: 800; color: var(--ink); text-wrap: balance;
  scroll-margin-top: 1.5rem;
}
.ar__body p { margin: 0 0 1.05rem; line-height: 1.72; }
.ar__body ul { margin: 0 0 1.05rem; padding-left: 1.2rem; }
.ar__body li { margin-bottom: 0.45rem; line-height: 1.7; }
.ar__body li::marker { color: var(--line-2); }
.ar__body strong { color: var(--ink); font-weight: 700; }
.ar__body a { color: var(--accent); }

/* A citation marker. Small, quiet, and it jumps to the source. */
.ar-cite { font-size: 0.72em; line-height: 0; }
.ar-cite a {
  color: var(--accent); text-decoration: none; font-weight: 700;
  padding: 0 0.1em;
}
.ar-cite a:hover { text-decoration: underline; }

/* An aside is the one place the page raises its voice. */
.ar-note {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: var(--sand);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.96rem; line-height: 1.65; color: var(--ink);
}

/* ── tables ──────────────────────────────────────────────── */
.ar-tablewrap { overflow-x: auto; margin: 1.4rem 0; }
.ar-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.94rem; min-width: 340px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.ar-table th {
  text-align: left; padding: 0.7rem 1rem;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--sand); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ar-table td {
  padding: 0.65rem 1rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ar-table tr:last-child td { border-bottom: 0; }
.ar-table td:first-child { font-weight: 700; }

/* ── sources ─────────────────────────────────────────────── */
.ar-sources {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 2px solid var(--ink);
}
.ar-sources h2 { margin-top: 0 !important; font-size: 1.1rem !important; }
.ar-sources ol {
  margin: 0; padding-left: 1.3rem;
  font-size: 0.9rem; line-height: 1.65; color: var(--body);
}
.ar-sources li { margin-bottom: 0.8rem; scroll-margin-top: 1.5rem; }
.ar-sources li:target { background: var(--sand); border-radius: 4px; }
.ar-sources a {
  display: block; color: var(--accent);
  word-break: break-all; font-size: 0.84rem; margin-top: 0.15rem;
}

/* ── contents rail ───────────────────────────────────────── */
.ar__side { position: sticky; top: 1.5rem; }
.ar-toc {
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fxs-site .ar-toc__t {
  margin: 0 0 0.7rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.ar-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.ar-toc a {
  color: var(--body); text-decoration: none;
  font-size: 0.88rem; line-height: 1.4; display: block;
}
.ar-toc a:hover { color: var(--accent); }

/* ── cards, used by hubs and by read next ────────────────── */
.ar-related { margin: 3.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.ar-related h2 {
  margin: 0 0 1.2rem; font-size: 1.2rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.012em;
}
.ar-cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ar-cards--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ar-card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}
.ar-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ar-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ar-card__k {
  font-size: 0.71rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.ar-card__t {
  font-size: 1.02rem; font-weight: 700; line-height: 1.35;
  color: var(--ink); letter-spacing: -0.008em;
}
.ar-card__d { font-size: 0.89rem; line-height: 1.55; color: var(--body); }

/* ── hub and index ───────────────────────────────────────── */
.ar-hub { padding: 3rem 0 1rem; }
.ar-hub h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.08;
  letter-spacing: -0.024em; font-weight: 800; color: var(--ink);
}
.fxs-site .ar-hub__intro {
  max-width: 62ch; margin: 0 0 2.5rem;
  font-size: 1.1rem; line-height: 1.65; color: var(--body);
}
.ar-group { margin-bottom: 3rem; }
.ar-group__head { margin-bottom: 1.1rem; }
.ar-group__head h2 {
  margin: 0 0 0.3rem; font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.014em; color: var(--ink);
}
.ar-group__head h2 a { color: inherit; text-decoration: none; }
.ar-group__head h2 a:hover { color: var(--accent); }
.ar-group__head p { margin: 0; max-width: 62ch; font-size: 0.96rem; color: var(--body); }

/* ── closing call to action ──────────────────────────────── */
.ar-cta {
  margin-top: 4rem; padding: 3.5rem 0;
  background: var(--navy); color: #fff; text-align: center;
}
.ar-cta h2 {
  margin: 0 0 0.6rem; font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.ar-cta p {
  margin: 0 auto 1.6rem; max-width: 54ch;
  color: rgba(255, 255, 255, 0.78); font-size: 1.02rem; line-height: 1.6;
}

/* ── footer ──────────────────────────────────────────────── */
.ar-foot { padding: 2.5rem 0 3rem; background: var(--paper); border-top: 1px solid var(--line); }
.ar-foot__row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem;
}
.ar-foot__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.ar-foot__links a { color: var(--body); text-decoration: none; font-size: 0.92rem; }
.ar-foot__links a:hover { color: var(--accent); text-decoration: underline; }
.fxs-site .ar-foot__small {
  margin: 0; max-width: 70ch;
  font-size: 0.82rem; line-height: 1.6; color: var(--muted);
}

@media (max-width: 900px) {
  .ar__grid { grid-template-columns: 1fr; gap: 2rem; }
  /* On a narrow screen the contents rail goes above the article rather
     than sticking to a side that no longer exists. */
  .ar__side { position: static; order: -1; }
  .ar-toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ar-card { transition: none; }
  .ar-card:hover { transform: none; }
}

/* Hub pages carry real copy above the card list, so they can answer the broad
   question themselves rather than being a page of links. Same prose measure as
   an article. */
.ar-hub__body { max-width: 68ch; margin-bottom: 2.5rem; }
.ar-hub__body h2 {
  margin: 2rem 0 0.8rem; font-size: 1.24rem; font-weight: 800;
  color: var(--ink); letter-spacing: -0.014em;
}
.ar-hub__body h2:first-child { margin-top: 0; }
.fxs-site .ar-hub__body p { margin: 0 0 1rem; line-height: 1.72; }
.ar-hub__listing {
  margin: 0 0 1.2rem; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

/* A count beside a section heading on the Learn index, so the size of each
   topic is visible before you scroll it. Sits on the baseline of the heading
   and stays quiet. */
.fxs-site .ar-group__n {
  display: inline-block; margin-left: 0.5rem;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--sand); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 800; color: var(--muted);
  vertical-align: middle; font-variant-numeric: tabular-nums;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────
   <details> rather than a script, so every answer is in the HTML whether or not
   anything runs, and the page works with the keyboard for free. */
.fxs-site .fq-jump {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 2.5rem; padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.fxs-site .fq-jump a {
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 0.86rem; font-weight: 600; color: var(--body); text-decoration: none;
}
.fxs-site .fq-jump a:hover { border-color: var(--accent); color: var(--accent); }

.fxs-site .fq-group { margin-bottom: 2.6rem; scroll-margin-top: 1.5rem; }
.fxs-site .fq-group h2 {
  margin: 0 0 1rem; font-size: 1.28rem; font-weight: 800;
  letter-spacing: -0.014em; color: var(--ink);
}

.fxs-site .fq {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); margin-bottom: 0.6rem;
}
.fxs-site .fq summary {
  cursor: pointer; list-style: none;
  padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.45;
}
.fxs-site .fq summary::-webkit-details-marker { display: none; }
/* The chevron is drawn rather than a character, so it turns cleanly and does
   not depend on a font having the glyph. */
.fxs-site .fq summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 1.35rem;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 160ms ease;
}
.fxs-site .fq[open] summary::after { transform: rotate(-135deg); top: 1.55rem; }
.fxs-site .fq summary:hover { color: var(--accent); }
.fxs-site .fq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r); }
.fxs-site .fq__a { padding: 0 1.2rem 1.1rem; }
.fxs-site .fq__a p { margin: 0 0 0.7rem; line-height: 1.7; color: var(--body); font-size: 0.96rem; }
.fxs-site .fq__a p:last-child { margin-bottom: 0; }

/* Smooth accordion. The browser's ::details-content wrapper (everything after
   the summary) animates its height from 0 to auto — which needs interpolate-size
   on an ancestor — plus a fade, instead of the answer snapping in. Older
   browsers ignore ::details-content and keep the instant native toggle, so there
   is no regression and no script on the static page. */
.fxs-site { interpolate-size: allow-keywords; }
.fxs-site .fq::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 340ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease, content-visibility 340ms;
  transition-behavior: allow-discrete;
}
.fxs-site .fq[open]::details-content { block-size: auto; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fxs-site .fq summary::after { transition: none; }
  .fxs-site .fq::details-content { transition: none; }
}

/* ── comparisons ─────────────────────────────────────────────────────────────
   The "checked on" line is deliberately prominent rather than a footnote. A
   comparison page is only trustworthy if the reader can see how old it is. */
.fxs-site .cmp__checked {
  margin: 0 0 2rem;
  padding: 0.9rem 1.1rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.9rem; line-height: 1.6; color: var(--body);
}
.fxs-site .cmp__table th:first-child { width: 26%; }
.fxs-site .cmp__table td em { color: var(--muted); font-style: italic; }
/* Our column carries a tint so the eye can follow it down the table without
   the row labels having to be read twice. */
.fxs-site .cmp__table th:nth-child(2),
.fxs-site .cmp__table td:nth-child(2) { background: rgba(11, 79, 212, 0.04); }
.fxs-site .cmp .ar-table td { vertical-align: top; }

/* ── comparison visuals ──────────────────────────────────────────────────────
   The prose was doing work a picture does faster. These carry the answer at a
   glance so the paragraphs underneath are there for anyone who wants them
   rather than being the only way to find out. */

/* The at a glance pair, first thing under the standfirst. */
.fxs-site .cmp-quick {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem; margin: 0 0 2.2rem;
}
.fxs-site .cmp-quick__side {
  padding: 1.1rem 1.2rem; border-radius: var(--r);
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.fxs-site .cmp-quick__side--ours {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.fxs-site .cmp-quick__who {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--muted);
}
.fxs-site .cmp-quick__side--ours .cmp-quick__who { color: var(--accent); }
.fxs-site .cmp-quick__what { font-size: 0.98rem; line-height: 1.5; color: var(--ink); font-weight: 600; }

/* Price bars. Two lengths per row: the solid block is the entry plan and the
   lighter one behind it reaches the top plan, so the spread of each product's
   pricing reads without a table. */
.fxs-site .cmp-bars { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.2rem 0 0.6rem; }
.fxs-site .cmp-bar {
  display: grid; grid-template-columns: 92px 1fr auto;
  align-items: center; gap: 0.8rem;
}
.fxs-site .cmp-bar__who { font-size: 0.86rem; font-weight: 700; color: var(--body); }
.fxs-site .cmp-bar--ours .cmp-bar__who { color: var(--accent); }
.fxs-site .cmp-bar__track {
  position: relative; height: 22px; border-radius: 999px;
  background: var(--sand); overflow: hidden;
}
.fxs-site .cmp-bar__fill {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  background: var(--line-2); border-radius: 999px;
}
.fxs-site .cmp-bar__lo {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  background: var(--muted); border-radius: 999px;
}
.fxs-site .cmp-bar--ours .cmp-bar__fill { background: rgba(11, 79, 212, 0.24); }
.fxs-site .cmp-bar--ours .cmp-bar__lo   { background: var(--accent); }
.fxs-site .cmp-bar__val {
  font-size: 0.86rem; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fxs-site .cmp-bars__key { font-size: 0.82rem; color: var(--muted); margin: 0 0 1.6rem; }

/* The hub matrix, which replaced three paragraphs about method. */
.fxs-site .cmp-matrix { margin: 0 0 2.6rem; }
.fxs-site .cmp-matrix__ours td { background: rgba(11, 79, 212, 0.06); font-weight: 700; }
.fxs-site .cmp-matrix__ours td:first-child { color: var(--accent); }
.fxs-site .cmp-matrix__note { font-size: 0.84rem; color: var(--muted); margin: 0.7rem 0 0; }

@media (max-width: 560px) {
  .fxs-site .cmp-bar { grid-template-columns: 76px 1fr; row-gap: 0.3rem; }
  .fxs-site .cmp-bar__val { grid-column: 2; text-align: right; }
}
