/* ================================================================
 * The article page
 *
 * The owner's brief for a single post, as CSS. Everything is scoped under
 * `.w2f-article` (plus the progress bar, which is fixed to the viewport and so
 * cannot live inside the article's box), which is what keeps the header, the
 * archives, the job board and every page untouched.
 *
 * THE COLOURS ARE THE SITE'S, NOT A SECOND PALETTE. This page keeps its own
 * editor's LAYOUT — the hero, the contents card, the step badges — but every
 * colour under it is the theme's token, so an article is the same white card
 * on the same porcelain page as the jobs board beside it, and the owner's
 * Customizer choices move it with the rest of the site. The earlier version
 * declared a private blue family (#0F1B3D / #FFB703 / #0B8F8B) and a private
 * prefers-color-scheme block, which is how a reader with a dark device got a
 * dark article under a light header: two palettes, two ideas of the mode.
 *
 * THE MODE IS THE THEME'S. There is no device-preference block here any more;
 * body.w2f-mode-dark already re-points --c-bg/--c-surface/--c-text/--c-muted/
 * --c-border, so the card follows the switch in the header like every other
 * page. Only the four values that are NOT simply "a theme token" are re-declared
 * for the dark skin at the foot of this block.
 *
 * TWO COLOURS ARE FIXED ON PURPOSE: the brand navy the hero, the table heads and
 * the closing CTA are painted in (white on it is 8.9:1, and it must not follow a
 * Customizer change into something white text cannot sit on), and the ink that
 * sits on the green (#04231a, 8.7:1) — the same ink-on-green the flash strip
 * uses.
 *
 * NO !important anywhere except the one rule that hides the theme's own title
 * from the eye and leaves it in the document for search engines and screen
 * readers, which is what the brief asks for.
 * ================================================================ */

.w2f-article {
  /* The page, the card, and the type: straight from the theme. */
  --ax-bg: var(--c-bg, #f4f7fa);
  --ax-card: var(--c-surface, #ffffff);
  --ax-text: var(--c-text, #1f2937);
  --ax-muted: var(--c-muted, #6b7280);
  --ax-border: var(--c-border, #dee7ef);
  /* The brand navy: hero, table heads, CTA. Fixed — see the note above. */
  --ax-navy: #0f4c81;
  /* The logo's green, and the two inks that live on it. --ax-link is the green
     dark enough to read as TEXT on a white card (4.6:1); --ax-accent is the
     mark's own green, used as a fill with --ax-accent-ink on it (8.7:1). */
  --ax-accent: var(--c-logo-green, #12b37f);
  /* Dark enough to read as a hover, light enough to keep the ink on it legible
     (5.1:1) — the token's own darker green would drop that to 3.7:1. */
  --ax-accent-hover: #0ea06f;
  --ax-accent-ink: #04231a;
  --ax-link: var(--c-accent-ink, #0b7a5a);
  --ax-tint-green: rgba(18, 179, 127, .10);
  --ax-tint-navy: rgba(15, 76, 129, .06);
  --ax-focus: var(--ax-navy);
  --ax-hero-text: #ffffff;
  --ax-hero-lead: rgba(255, 255, 255, .9);
  --ax-hero-meta: rgba(255, 255, 255, .78);
  /* ONE FAMILY, THE SITE'S OWN.

     This page used to set its headings in Bricolage Grotesque and its prose in
     a serif, which read as a different publication from the job board next to
     it — and cost two extra font requests on the heaviest page of the site. It
     is Inter, the family the theme already loads everywhere: an optical-size
     axis so the same face is right at 17px and at 34px, and a tall x-height that
     carries long prose without the extra weight a serif puts on a phone screen. */
  --ax-head: var(--font-head, "Inter"), system-ui, sans-serif;
  --ax-body: var(--font-body, "Inter"), system-ui, sans-serif;
  /* Section headings in the logo's green, at a value that is AA as text. The
     bright mark green stays on the badge and the rules. */
  --ax-green-ink: var(--c-heading-accent, #0b7a5a);
  --ax-radius: 22px;

  max-width: 100%;
  border-radius: var(--ax-radius);
  overflow: hidden;
  background: var(--ax-card);
  color: var(--ax-text);
  font-family: var(--ax-body);
  font-size: 1.0625rem;   /* 17px — Inter at 18px reads bigger than the serif did */
  line-height: 1.72;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 18px 40px -32px rgba(17, 24, 39, .35);
}

/* The dark skin. The five page/type tokens are already re-pointed by
   body.w2f-mode-dark, so only the green that has to stay legible on a dark card
   (9.0:1), its fill, the blue tint, and the focus ring are re-declared. */
body.w2f-mode-dark .w2f-article {
  --ax-link: #2fd49b;
  --ax-tint-green: rgba(18, 179, 127, .16);
  --ax-tint-navy: rgba(74, 134, 200, .18);
  --ax-focus: #2fd49b;
}

/* The page behind the card, on a post only. --c-bg is the site's own surface, so
   this follows the mode and the Customizer without a rule of its own. */
body.single-post,
body.single-post .w2f-page { background: var(--c-bg, #f4f7fa); }

/* ---- The theme's own H1: hidden visually, present in the document ---- */
.w2f-article-title-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================================================
 * 1. Reading progress
 * ================================================================ */

.w2f-read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  top: 0;
  height: 4px;
  z-index: 9999;
  background: transparent;
  pointer-events: none;
}
body.admin-bar .w2f-read-progress { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .w2f-read-progress { top: 46px; }
}
.w2f-read-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ax-accent);
  transition: width .08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .w2f-read-progress-bar { transition: none; }
}

/* ================================================================
 * 2. Hero
 * ================================================================ */

.w2f-article-hero {
  position: relative;
  overflow: hidden;
  background: var(--ax-navy);
  color: var(--ax-hero-text);
  padding: 52px 32px 64px;
}
.w2f-article-hero-inner { position: relative; z-index: 2; max-width: 820px; }

.w2f-article-tag {
  display: inline-block;
  background: var(--ax-accent);
  color: var(--ax-accent-ink);
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.w2f-article-tag:hover,
.w2f-article-tag:focus { color: var(--ax-accent-ink); }

.w2f-article-hero-title {
  font-family: var(--ax-head);
  font-weight: 700;
  /* 30–44px instead of 30–48: ExtraBold at 48px was the masthead twice over. */
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--ax-hero-text);
  margin: 18px 0 0;
}

.w2f-article-hero-lead {
  font-family: var(--ax-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ax-hero-lead);
  max-width: 640px;
  margin: 16px 0 0;
}

.w2f-article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  font-family: var(--ax-head);
  font-size: .84rem;
  letter-spacing: .02em;
  color: var(--ax-hero-meta);
}
.w2f-article-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.w2f-article-hero-meta span + span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
  margin-right: 8px;
}

.w2f-article-ring {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 46px solid var(--ax-accent);
  border-radius: 50%;
  opacity: .16;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 720px) {
  .w2f-article-hero { padding: 32px 20px 48px; }
  .w2f-article-hero-lead { font-size: 1.06rem; }
  .w2f-article-ring { right: -140px; bottom: -160px; opacity: .12; }
}

/* ================================================================
 * 3. The shell and the contents card
 * ================================================================ */

.w2f-article-shell { position: relative; padding: 0 32px 36px; }

.w2f-article-contents {
  position: relative;
  z-index: 3;
  margin: -34px 0 34px;
  background: var(--ax-card);
  border: 1px solid var(--ax-border);
  border-radius: 16px;
  padding: 22px 24px 20px;
  box-shadow: 0 2px 4px rgba(17, 24, 39, .04), 0 22px 40px -30px rgba(17, 24, 39, .45);
}

.w2f-article-contents-head {
  font-family: var(--ax-head);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ax-muted);
  margin: 0 0 12px;
}

.w2f-article-contents-list {
  list-style: none;
  counter-reset: ax-toc;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 28px;
}
.w2f-article-contents-list li { margin: 0; counter-increment: ax-toc; }
.w2f-article-contents-list a {
  display: block;
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ax-text);
  font-family: var(--ax-head);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.w2f-article-contents-list a::before {
  content: counter(ax-toc);
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  text-align: left;
  font-weight: 700;
  color: var(--ax-link);
}
.w2f-article-contents-list a:hover,
.w2f-article-contents-list a:focus {
  color: var(--ax-text);
  box-shadow: inset 0 -2px 0 var(--ax-accent);
  text-decoration: none;
}

@media (max-width: 720px) {
  .w2f-article-contents-list { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
 * 4. Body
 * ================================================================ */

.w2f-article-thumb { margin: 0 0 24px; }
.w2f-article-thumb img { display: block; width: 100%; height: auto; border-radius: 14px; }

.w2f-article-body { padding: 6px 0 8px; color: var(--ax-text); }
.w2f-article-body > *:first-child { margin-top: 0; }
.w2f-article-body p { margin: 0 0 1.15em; }
.w2f-article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.w2f-article-body a {
  color: var(--ax-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.w2f-article-body a:hover { color: var(--ax-navy); }

/* Drop cap on the opening paragraph only. Smaller than it was: at 3.4rem in a
   sans, a 54px capital next to 17px text is a poster, not a paragraph. */
.w2f-article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: .96;
  padding: 6px 9px 0 0;
  color: var(--ax-link);
}

/* ---- Headings ----

   SIZED AS SECTIONS, NOT AS POSTERS. The old h2 was clamp(1.45rem, 3.4vw, 1.95rem)
   — 31px at this column width — set ExtraBold, which put every section heading
   within a few pixels of the article's own title and made the body look like a
   series of announcements. 26px at Semibold, 1.26 line-height and −0.02em
   tracking is the editorial rung above 17px prose, and it is Inter's own display
   cut doing the work rather than a heavier weight. */
.w2f-article-body h2 {
  font-family: var(--ax-head);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  line-height: 1.26;
  letter-spacing: -.02em;
  color: var(--ax-green-ink);
  margin: 2em 0 .55em;
  scroll-margin-top: 90px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-wrap: balance;
}
.w2f-article-body h3 {
  font-family: var(--ax-head);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 1.8em 0 .4em;
  color: var(--ax-green-ink);
  text-wrap: balance;
}
.w2f-article-body h2 .w2f-step-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ax-accent);
  color: var(--ax-accent-ink);
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* ---- Lists ---- */
.w2f-article-body ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.w2f-article-body ul > li {
  position: relative;
  padding-left: 34px;
  margin: 0 0 .55em;
}
.w2f-article-body ul > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--ax-link);
  border-bottom: 3px solid var(--ax-link);
  transform: rotate(-45deg);
}
.w2f-article-body ol { list-style: none; counter-reset: ax-ol; margin: 0 0 1.2em; padding: 0; }
.w2f-article-body ol > li {
  position: relative;
  counter-increment: ax-ol;
  padding-left: 40px;
  margin: 0 0 .55em;
}
.w2f-article-body ol > li::before {
  content: counter(ax-ol);
  position: absolute;
  left: 0;
  top: .18em;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ax-navy);
  color: #fff;
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: .85rem;
  line-height: 1;
}

/* Nested lists inside a list item keep the design without doubling the badges. */
.w2f-article-body li > ul,
.w2f-article-body li > ol { margin-top: .5em; }

/* ---- Callouts and quotes ---- */
.w2f-article-body .w2f-callout,
.w2f-article-body blockquote {
  margin: 1.6em 0;
  padding: 16px 22px;
  border-left: 5px solid var(--ax-navy);
  border-radius: 0 12px 12px 0;
  background: var(--ax-tint-navy);
  color: var(--ax-text);
  font-family: var(--ax-body);
  font-size: 1.02rem;
  font-style: italic;
}
.w2f-article-body .w2f-callout p:last-child,
.w2f-article-body blockquote p:last-child { margin-bottom: 0; }

/* The two kinds of callout, in the site's two colours: a tip is the logo's
   green, a note is the same green on the plain card. Three tints of one blue
   was the old palette's problem — now the blue is the brand navy and the green
   is the accent, which is the pairing the rest of the site uses. */
.w2f-article-body .w2f-callout-tip {
  background: var(--ax-tint-green);
  border-left-color: var(--ax-accent);
  font-style: normal;
}
.w2f-article-body .w2f-callout-note {
  background: var(--ax-card);
  border-left-color: var(--ax-accent);
  font-style: normal;
}
.w2f-article-body .w2f-callout-label {
  font-family: var(--ax-head);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--ax-link);
}

/* ---- Tables: scroll inside their own box, never the page ---- */
.w2f-article .w2f-table-wrap {
  margin: 1.6em 0;
  border: 1px solid var(--ax-border);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--ax-card);
}
.w2f-article .w2f-table-wrap:focus-visible { outline: 3px solid var(--ax-focus); outline-offset: 2px; }
.w2f-article-body .w2f-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-family: var(--ax-head);
  font-size: .95rem;
}
.w2f-article-body .w2f-table-wrap th {
  background: var(--ax-navy);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}
.w2f-article-body .w2f-table-wrap td {
  padding: 12px 16px;
  border-top: 1px solid var(--ax-border);
  vertical-align: top;
}
.w2f-article-body .w2f-table-wrap td:first-child { font-weight: 700; }
.w2f-article-body .w2f-table-wrap tbody tr:nth-child(even) { background: rgba(15, 76, 129, .03); }
body.w2f-mode-dark .w2f-article-body .w2f-table-wrap tbody tr:nth-child(even) { background: rgba(255, 255, 255, .04); }

/* ---- Plan cards: three across, one on a phone ---- */
.w2f-article .w2f-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.8em 0;
}
.w2f-article .w2f-plan-card {
  background: var(--ax-card);
  border: 1px solid var(--ax-border);
  border-top: 5px solid var(--ax-accent);
  border-radius: 14px;
  padding: 18px 20px;
}
.w2f-article .w2f-plan-card:nth-child(2) { border-top-color: var(--ax-navy); }
.w2f-article .w2f-plan-card:nth-child(3) { border-top-color: var(--ax-link); }
.w2f-article .w2f-plan-card h3 {
  font-family: var(--ax-head);
  font-weight: 800;
  font-size: 1.02rem;
  margin: 0 0 8px;
}
.w2f-article .w2f-plan-card p,
.w2f-article .w2f-plan-card li { font-size: .97rem; margin: 0 0 .5em; }
.w2f-article .w2f-plan-card ul { margin: 0; }
@media (max-width: 780px) {
  .w2f-article .w2f-plan-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================
 * 5. FAQ
 * ================================================================ */

.w2f-article-faq { margin: 2.2em 0 0; }
.w2f-article-faq h2 { margin-top: 0; }

.w2f-article .w2f-faq {
  background: var(--ax-card);
  border: 1px solid var(--ax-border);
  border-radius: 12px;
  margin: 0 0 10px;
  overflow: hidden;
}
.w2f-article .w2f-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 15px 18px;
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ax-text);
  list-style: none;
}
.w2f-article .w2f-faq summary::-webkit-details-marker { display: none; }
.w2f-article .w2f-faq summary:focus-visible { outline: 3px solid var(--ax-focus); outline-offset: -3px; }
.w2f-article .w2f-faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform .18s ease;
}
.w2f-article .w2f-faq-icon::before,
.w2f-article .w2f-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ax-link);
  border-radius: 2px;
}
.w2f-article .w2f-faq-icon::before { left: 0; top: 7px; width: 16px; height: 2.5px; }
.w2f-article .w2f-faq-icon::after { left: 7px; top: 0; width: 2.5px; height: 16px; }
.w2f-article .w2f-faq[open] .w2f-faq-icon { transform: rotate(45deg); }
.w2f-article .w2f-faq-body { padding: 0 18px 16px; color: var(--ax-muted); }
.w2f-article .w2f-faq-body p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .w2f-article .w2f-faq-icon { transition: none; }
}

/* ================================================================
 * 6. Closing call to action
 * ================================================================ */

.w2f-article-cta {
  margin: 2.6em 0 0;
  background: var(--ax-navy);
  color: #fff;
  border-radius: 18px;
  padding: 32px 30px;
}
.w2f-article-cta-title {
  font-family: var(--ax-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.22;
  color: #fff;
  margin: 0 0 10px;
}
.w2f-article-cta-text {
  color: var(--ax-hero-lead);
  font-size: 1.02rem;
  margin: 0 0 20px;
  max-width: 56ch;
}
.w2f-article-cta-btn {
  display: inline-block;
  background: var(--ax-accent);
  color: var(--ax-accent-ink);
  font-family: var(--ax-head);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
}
.w2f-article-cta-btn:hover,
.w2f-article-cta-btn:focus { color: var(--ax-accent-ink); background: var(--ax-accent-hover); text-decoration: none; }

/* ================================================================
 * 7. Phones and focus
 * ================================================================ */

@media (max-width: 720px) {
  .w2f-article { font-size: 1.04rem; border-radius: 0; }
  .w2f-article-shell { padding: 0 18px 28px; }
  .w2f-article-body { padding: 2px 0 6px; }
  .w2f-article-body h2 { margin: 1.8em 0 .5em; }
  .w2f-article-body h2 .w2f-step-badge { width: 32px; height: 32px; font-size: .95rem; }
  .w2f-article-cta { padding: 26px 22px; }
  .w2f-article-cta-title { font-size: 1.35rem; }
}

/* A visible focus ring on every control inside the article. The navy ring is
   8.9:1 on the white card; on the two navy surfaces it would be invisible, so
   the links inside the hero and the CTA take a white one instead, and the dark
   skin swaps the ring for the green that reads on a dark card. */
.w2f-article a:focus-visible,
.w2f-article summary:focus-visible,
.w2f-article .w2f-table-wrap:focus-visible {
  outline: 3px solid var(--ax-focus);
  outline-offset: 2px;
}
.w2f-article-hero a:focus-visible,
.w2f-article-cta a:focus-visible { outline-color: #fff; }

/* Room for the in-article ad units, reserved so the page does not jump when
   one loads. A slot with no ad in it collapses to nothing. */
.w2f-article .w2f-ad { margin: 1.8em 0; }
.w2f-article .w2f-ad ins { display: block; min-height: 0; }

/* ================================================================
 * 8. The page shell and the side rail
 *
 * The article used to sit in the blog's two-column grid, with a sidebar that
 * held one ad: 340px of a 1200px page doing nothing, and an article squeezed
 * into what was left. This shell replaces that grid on single posts only.
 *
 * ONE COLUMN ON A PHONE, TWO ON A DESKTOP, and the article keeps the wide
 * column. The rail is 296px, so the card gets the rest of the page, and the
 * container is allowed to grow 140px on a post — the article is the page's only
 * content, and the extra measure is what makes it read as an article rather
 * than as a card with a gap beside it.
 * ================================================================ */

/* The article page's own container. It is named on the wrapper rather than read
   off `body.single-post`, because the extra width belongs to this page and to
   nothing else that happens to be a single post. */
.w2f-post-wrap { max-width: calc(var(--container) + 140px); }

.w2f-post-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
/* The column that holds the rail. A grid item needs min-width: 0 or a long job
   title sets the floor for the whole track, and it stretches to the height of
   the article — a sticky box stops sticking the moment it fills its container,
   which is what a 663px rail beside a 5600px article would do. */
.w2f-post-aside { min-width: 0; align-self: stretch; }
.w2f-rail { height: 100%; }

/* The comments sit under the article column on a desktop, and LAST on a phone —
   after the rail, so the tools and the jobs board come before the comment form
   on the page a fresher is most likely reading. */
.w2f-post-comments { grid-column: 1; min-width: 0; }
@media (max-width: 1139px) {
  .w2f-post-comments { order: 3; }
}
@media (min-width: 1140px) {
  .w2f-post-shell { grid-template-columns: minmax(0, 1fr) 296px; }
}

/* The rail. It sits outside .w2f-article, so it declares the same values from
   the same source — the site's tokens — rather than a copy of the article's
   palette. Card, border, text and muted all move with the theme and the dark
   switch on their own; only the hover tint is its own value. */
.w2f-rail {
  --rail-card: var(--c-surface, #ffffff);
  --rail-border: var(--c-border, #dee7ef);
  --rail-text: var(--c-text, #1f2937);
  --rail-muted: var(--c-muted, #6b7280);
  --rail-tint: rgba(18, 179, 127, .10);
  --rail-head: var(--font-head, "Inter"), system-ui, sans-serif;
  font-family: var(--font-body, system-ui), system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.w2f-mode-dark .w2f-rail { --rail-tint: rgba(18, 179, 127, .16); }

.w2f-rail-sticky { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1140px) {
  .w2f-rail-sticky { position: sticky; top: 96px; }
}

.w2f-rail-card {
  background: var(--rail-card);
  border: 1px solid var(--rail-border);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 14px 30px -26px rgba(17, 24, 39, .35);
}
.w2f-rail-head {
  margin: 0 0 10px; font-family: var(--rail-head); font-weight: 800;
  font-size: .74rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--rail-muted);
}
.w2f-rail-list { list-style: none; margin: 0; padding: 0; }
.w2f-rail-list > li + li { border-top: 1px solid var(--rail-border); }
.w2f-rail-list > li > a {
  display: block; padding: 9px 8px; margin: 0 -8px; border-radius: 10px;
  text-decoration: none; color: inherit;
}
.w2f-rail-list > li > a:hover,
.w2f-rail-list > li > a:focus-visible { background: var(--rail-tint); text-decoration: none; }
.w2f-rail-tool-label {
  display: block; font-family: var(--rail-head); font-weight: 700;
  font-size: .92rem; line-height: 1.3; color: var(--rail-text);
}
.w2f-rail-tool-note { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.45; color: var(--rail-muted); }
.w2f-rail-job-title {
  display: block; font-family: var(--rail-head); font-weight: 700;
  font-size: .9rem; line-height: 1.35; color: var(--rail-text);
}
.w2f-rail-job-meta { display: block; margin-top: 2px; font-size: .77rem; color: var(--rail-muted); }
.w2f-rail-more {
  display: inline-block; margin-top: 8px; padding: 2px 0;
  font-family: var(--rail-head); font-weight: 800; font-size: .8rem;
  color: var(--rail-text); text-decoration: none;
}
.w2f-rail-more:hover { text-decoration: underline; }

/* The rail on a phone is the last block on the page, so its cards sit flat
   instead of floating: two stacked shadows under a finished article read as
   two more articles. */
@media (max-width: 1139px) {
  .w2f-rail-card { box-shadow: none; }
  .w2f-rail-sticky { margin-top: 4px; }
}
