/* Forge — LHV Internal Tools Platform
   Placeholder palette. Swap the brand tokens below for the LHV design system
   (or import @lhv/ui) once the shared component package exists. */

:root {
  --bg:            #ffffff;
  --bg-subtle:     #f6f7f9;
  --bg-sunken:     #eef0f4;
  --border:        #dcdfe6;
  --border-strong: #c3c8d2;

  --text:          #16181d;
  --text-muted:    #5c6270;
  --text-faint:    #868d9b;

  --accent:        #1f5fd0;
  --accent-hover:  #1a4fae;
  --accent-soft:   #e8effb;

  --warn:          #9a5b00;
  --warn-soft:     #fdf3e3;
  --warn-border:   #e8d3a8;

  --ok:            #1a7f4b;

  --code-bg:       #f3f4f7;
  --code-text:     #24272e;

  --radius:        8px;
  --radius-lg:     12px;
  --wrap:          860px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #14161a;
    --bg-subtle:     #1a1d22;
    --bg-sunken:     #22262d;
    --border:        #2d323a;
    --border-strong: #3d444e;

    --text:          #e8eaee;
    --text-muted:    #a2a9b6;
    --text-faint:    #7b8290;

    --accent:        #6fa2f5;
    --accent-hover:  #8ab4f8;
    --accent-soft:   #1c2836;

    --warn:          #e0ac5c;
    --warn-soft:     #2a2318;
    --warn-border:   #4a3d24;

    --ok:            #5fbf8b;

    --code-bg:       #1d2126;
    --code-text:     #dfe3e9;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------- */

.hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 16px;
}

.logo-mark {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 13px;
  /* The badge already carries its own shadow-free fill; a soft glow keeps it from
     looking pasted onto the subtle hero background. */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 6px 18px -8px var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}

.status {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- nav ---------- */

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.tabs .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs .wrap::-webkit-scrollbar { display: none; }

.tabs a {
  flex: none;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tabs a:hover {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}

.tabs a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: 4px;
}

/* ---------- panels ----------
   One section at a time when JS is on; the whole document when it is not. */

.js .panel { display: none; }
.js .panel.is-active { display: block; }
.js .panel { border-bottom: 0; padding-bottom: 24px; }
.panel:focus, .subpanel:focus { outline: none; }

.js .subpanel { display: none; }
.js .subpanel.is-active { display: block; }

/* ---------- sub-tabs (template picker) ---------- */

.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 26px 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.subtabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.subtabs a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.subtabs a.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.subtabs .pill {
  font-family: var(--sans);
  font-size: 10px;
  padding: 1px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
}

.subtabs a.is-active .pill { opacity: 1; }

/* ---------- template views ---------- */

.tpl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  font-size: 19px;
}

.tpl-title code { font-size: 0.85em; }

.panel h4 {
  margin: 28px 0 6px;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.subpanel .split > div > p:first-child { margin-bottom: 6px; }

/* ---------- architecture diagram ----------
   Inline SVG on the page tokens, so it themes with everything else. */

/* Scroll rather than shrink: below ~620px the labels stop being readable.
   The panel is deliberately lighter than the page so the diagram lifts off it. */
.arch-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  padding: 6px 10px 10px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.arch {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  font-family: var(--sans);
}

.arch .a-zone {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.arch .a-zone-label {
  fill: var(--text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.arch .a-node rect {
  fill: var(--bg);
  stroke: var(--border-strong);
  stroke-width: 1;
}

/* CloudFront is the boundary, so it gets the accent outline. */
.arch .a-node-edge rect {
  fill: var(--accent-soft);
  stroke: var(--accent);
}

.arch .a-title {
  fill: var(--text);
  font-size: 14.5px;
  font-weight: 640;
}

.arch .a-sub {
  fill: var(--text-muted);
  font-size: 11.5px;
}

.arch .a-ico { fill: var(--accent); stroke: none; }

.arch .a-ico-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arch .a-flow {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.6;
}

.arch .a-arrowhead { fill: var(--border-strong); stroke: none; }

.arch .a-edge {
  fill: var(--text-faint);
  font-size: 11px;
}

.arch .a-edge-mid { text-anchor: end; }

/* ---------- "what it is" explainer ----------
   Deliberately fixed to the light palette: this one stays on white in dark mode,
   so the values below are literal rather than tokens. */

.arch-light {
  background: #ffffff;
  border-color: #dcdfe6;
}

.fx-bg        { fill: #ffffff; }
.fx-card      { fill: #ffffff; stroke: #c3c8d2; }
.fx-card-mut  { fill: #ffffff; stroke: #dcdfe6; }
.fx-card-hi   { fill: #e8effb; stroke: #1f5fd0; }
.fx-chip      { fill: #f6f7f9; stroke: #dcdfe6; }

.fx-lane-a    { fill: none;    stroke: #dcdfe6; stroke-dasharray: 5 5; }
.fx-lane-b    { fill: #f7faff; stroke: #1f5fd0; stroke-opacity: 0.35; }

.fx-h         { fill: #16181d; font-size: 15px; font-weight: 640; }
.fx-h-mut     { fill: #5c6270; }
.fx-h-sm      { font-size: 13px; }   /* long template names in a fixed-width card */
.fx-sub       { fill: #5c6270; font-size: 11.5px; }
.fx-chip-t    { fill: #5c6270; font-size: 11.5px; }

.fx-lane-t {
  fill: #868d9b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

.fx-lane-t-b  { fill: #1f5fd0; }
.fx-note      { fill: #868d9b; font-size: 12px; font-style: italic; }

.fx-flow      { fill: none; stroke: #c3c8d2; stroke-width: 1.6; }
.fx-flow-b    { fill: none; stroke: #1f5fd0; stroke-width: 1.6; }
/* A connection that has to exist but is not designed yet. */
.fx-flow-d    { fill: none; stroke: #1f5fd0; stroke-width: 1.6; stroke-dasharray: 6 5; }
.fx-head      { fill: #c3c8d2; }
.fx-head-b    { fill: #1f5fd0; }

.fx-ico {
  fill: none;
  stroke: #1f5fd0;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-ico-f     { fill: #1f5fd0; }

.fx-pill      { fill: #ffffff; stroke: #c3c8d2; }

.fx-pill-t {
  fill: #5c6270;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.fx-wall {
  fill: none;
  stroke: #9a5b00;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.arch .a-note {
  fill: var(--text-faint);
  font-size: 11.5px;
  font-style: italic;
}

/* Two-column spec table: a labelled term and its explanation. */
.spec {
  width: 100%;
  margin: 12px 0 8px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec tr:last-child td { border-bottom: 0; }

.spec td:first-child {
  width: 30%;
  padding-right: 18px;
  font-weight: 550;
  color: var(--text);
}

.spec td:last-child { color: var(--text-muted); }

@media (max-width: 600px) {
  .spec td, .spec tr { display: block; }
  .spec td:first-child { width: auto; padding: 0; }
  .spec td:last-child { padding-top: 2px; }
  .spec tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .spec td { border-bottom: 0; }
}

/* ---------- sections ---------- */

main { padding: 8px 24px 40px; }

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 640;
  scroll-margin-top: 70px;
}

section[id] { scroll-margin-top: 60px; }

h3 {
  margin: 32px 0 8px;
  font-size: 16px;
  font-weight: 640;
  letter-spacing: -0.005em;
}

.section-lede {
  margin: 0 0 8px;
  max-width: 64ch;
  font-size: 17px;
  color: var(--text-muted);
}

p { margin: 0 0 14px; max-width: 68ch; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.note {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- code ---------- */

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

pre {
  margin: 12px 0 18px;
  padding: 14px 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  font-size: 13.5px;
  line-height: 1.55;
  white-space: pre;
}

pre.diagram code,
pre.lifecycle code {
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.card {
  padding: 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- overview "where to go next" ---------- */

.next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.next a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.next a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.next strong {
  display: block;
  font-size: 15px;
  font-weight: 640;
  margin-bottom: 3px;
  color: var(--accent);
}

.next span {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 28px;
}

.split > div > h3:first-child { margin-top: 24px; }

/* ---------- steps ---------- */

.steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 44px;
  border-left: 1px solid var(--border);
  margin-left: 13px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -13.5px;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { font-size: 15px; }
.steps pre { margin-bottom: 12px; }

/* ---------- figures ---------- */

.figure {
  margin: 24px 0 0;
  padding: 0;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.figure figcaption {
  margin-top: 10px;
  max-width: 68ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- roadmap diagram: left-to-right flow ----------
   The panel is display:none until its tab is active, so the cascade replays each
   time the Roadmap tab is opened rather than firing once on page load. */

@keyframes rm-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* Dashes travel toward the arrowhead. One dash period is 10 units. */
@keyframes rm-march {
  to { stroke-dashoffset: -10; }
}

/* "both" holds the from-state through the delay, and the base opacity stays 1 so
   disabling the animation below leaves everything visible. */
.rm-stage { animation: rm-in 0.45s ease both; }

.rm-stage-1 { animation-delay: 0s; }
.rm-stage-2 { animation-delay: 0.35s; }
.rm-stage-3 { animation-delay: 0.7s; }
.rm-stage-4 { animation-delay: 1.05s; }

.rm-flow {
  stroke-dasharray: 5 5;
  animation: rm-in 0.45s ease both, rm-march 0.9s linear infinite;
}

.rm-flow-1 { animation-delay: 0.3s, 0.3s; }
.rm-flow-2 { animation-delay: 0.65s, 0.65s; }
.rm-flow-3 { animation-delay: 1.0s, 1.0s; }

@media (prefers-reduced-motion: reduce) {
  .rm-stage, .rm-flow { animation: none; }
  .rm-flow { stroke-dasharray: none; }
}

/* ---------- roadmap ----------
   Same rail as .steps, with dots instead of numbers: the stages are a sequence,
   not instructions to follow. */

.roadmap {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.roadmap > li {
  position: relative;
  padding: 0 0 22px 40px;
  margin-left: 6px;
  border-left: 1px solid var(--border);
}

.roadmap > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.roadmap > li::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

/* The stage that exists gets the only filled dot on the rail. */
.roadmap > li.is-now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.rm-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-height: 24px;
}

.rm-head code { font-size: 14px; }

.roadmap p {
  margin: 3px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.rm-open .rm-head {
  font-size: 14.5px;
  font-weight: 640;
  color: var(--text-faint);
}

/* ---------- callouts ---------- */

.callout {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.callout > h3:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.callout-warn {
  background: var(--warn-soft);
  border-color: var(--warn-border);
}

.callout-warn h3 { color: var(--warn); }

/* ---------- lists ---------- */

ul { max-width: 68ch; }

ul.plain {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}

ul.plain li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
}

/* Reasoning lists: plain bullets, sized to match the tick lists. */
ul.reasons {
  margin: 8px 0 14px;
  padding-left: 20px;
}

ul.reasons li {
  padding: 2px 0;
  font-size: 15px;
}

ul.ticks {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}

ul.ticks li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-size: 15px;
}

ul.ticks li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ok);
  font-weight: 700;
}

ul.ticks-warn li::before { content: "!"; color: var(--warn); }

.callout ul { padding-left: 20px; margin: 8px 0 14px; }
.callout li { font-size: 15px; padding: 2px 0; }

/* ---------- pills ---------- */

.pill {
  display: inline-block;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}

.pill-wip { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.pill-muted { background: var(--bg-sunken); color: var(--text-faint); }

/* ---------- trust levels ---------- */

.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.level {
  padding: 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.level-active {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.level .pill { margin: 0 0 10px; }
.level h3 { margin: 0 0 6px; font-size: 15px; }
.level p:last-child { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- roadmap table ---------- */

.roadmap, .limits {
  width: 100%;
  margin: 20px 0 8px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.roadmap th, .limits th {
  text-align: left;
  padding: 8px 12px 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-strong);
}

.roadmap td, .limits td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.roadmap td:last-child, .roadmap th:last-child { padding-right: 0; white-space: nowrap; }
.roadmap td:nth-child(2), .limits td:nth-child(2) { color: var(--text-muted); }

/* Limits: three prose columns, so give them explicit room. */
.limits { table-layout: fixed; }
.limits th:first-child, .limits td:first-child { width: 27%; font-weight: 550; }
.limits th:nth-child(2), .limits td:nth-child(2) { width: 33%; }
.limits td:last-child, .limits th:last-child { padding-right: 0; }

@media (max-width: 640px) {
  /* Stack each row as a labelled block rather than crushing three columns. */
  .limits, .limits tbody, .limits tr, .limits td { display: block; width: auto; }
  .limits thead { display: none; }
  .limits tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .limits td { border: 0; padding: 0 0 4px; }
  .limits td:first-child { width: auto; font-weight: 650; font-size: 15px; }
  .limits td:last-child::before { content: "→ "; color: var(--text-faint); }
}

/* ---------- footer ---------- */

footer {
  padding: 32px 0 48px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

footer p { margin: 0 0 4px; }

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 40px; }
  .logo { gap: 12px; }
  .logo-mark { width: 42px; height: 42px; border-radius: 10px; }
  .lede { font-size: 17px; }
  h2 { font-size: 24px; }
  section { padding: 36px 0; }
  .steps > li { padding-left: 36px; }
}

/* ---------- icons ---------- */

/* Off-screen rather than display:none so the mark gradient still resolves. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card badges: accent glyph in a soft tile. */
.icon-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* "Where to go next" cards: title row, then an arrow that slides on hover. */
.next a {
  position: relative;
  padding-right: 42px;
}

.icon-arrow {
  position: absolute;
  top: 15px;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.next a:hover .icon-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Template picker and headings. */
.subtabs .icon { width: 15px; height: 15px; opacity: 0.75; }
.subtabs a.is-active .icon { opacity: 1; }

.tpl-title .icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .icon-arrow, .next a { transition: none; }
  .next a:hover .icon-arrow { transform: none; }
}
