/* ==========================================================================
   Work & Money — design system
   Tokens → base → layout → components → utilities. Documented in docs/design-system.md
   ========================================================================== */

[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;

  /* Colour */
  --navy-900: #0b1f3a;
  --navy-800: #13294b;
  --navy-700: #1c3a63;
  --blue-700: #174bb0;
  --blue-600: #1f5fd6;
  --blue-500: #3d7bea;
  --blue-200: #bfd5fb;
  --blue-100: #dce8fd;
  --blue-50: #eff5ff;
  --slate-700: #33445c;
  --slate-600: #4a5a72;
  --slate-500: #66758b;
  --line: #dde4ee;
  --line-soft: #ebf0f6;
  --surface: #ffffff;
  --surface-muted: #f6f8fb;

  --green-700: #116243;
  --green-50: #e6f5ee;
  --amber-700: #8a5300;
  --amber-50: #fff4e0;
  --teal-700: #0d6470;
  --teal-50: #e3f4f6;
  --red-700: #b42318;
  --red-50: #fdecea;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.6rem;
  --text-2xl: clamp(1.7rem, 2.6vw, 2.1rem);
  --text-3xl: clamp(2.1rem, 4.6vw, 3.25rem);

  /* Space (4px scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 8px 24px rgba(11, 31, 58, 0.06);
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--blue-600);

  --container: 1180px;
  --container-narrow: 820px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img,
svg {
  display: block;
  max-width: 100%;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy-900);
}
h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2 {
  font-size: var(--text-2xl);
  font-weight: 750;
}
h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
p {
  margin: 0 0 var(--s-4);
}
a {
  color: var(--blue-600);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--blue-700);
  text-decoration-thickness: 2px;
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  padding: 1px 5px;
  border-radius: 5px;
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}
main:focus {
  outline: none;
}
::selection {
  background: var(--blue-100);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--s-4);
  color: #fff;
}
.muted {
  color: var(--slate-600);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container--narrow {
  max-width: var(--container-narrow);
}
.section--narrow .section__body {
  max-width: var(--container-narrow);
}
.stack > * + * {
  margin-top: var(--s-4);
}
.section {
  padding: var(--s-16) 0;
}
.section--tint {
  background: var(--surface-muted);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section__head {
  max-width: 720px;
  margin-bottom: var(--s-8);
}
.section__intro {
  color: var(--slate-600);
  font-size: var(--text-md);
  margin: var(--s-3) 0 0;
}
.eyebrow {
  margin: 0 0 var(--s-3);
  color: var(--blue-600);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--navy-900);
  text-decoration: none;
}
.brand__amp {
  color: var(--blue-600);
}
.brand--inverse,
.brand--inverse:hover {
  color: #fff;
}
.brand--inverse .brand__amp {
  color: var(--blue-200);
}
.brand--inverse .brand-mark rect {
  fill: var(--blue-600);
}
.primary-nav {
  margin-left: var(--s-4);
}
.primary-nav ul {
  display: flex;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover {
  background: var(--blue-50);
  color: var(--navy-900);
}
.primary-nav a.is-active {
  color: var(--blue-700);
  background: var(--blue-50);
}
.site-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  position: relative;
  width: 280px;
}
.site-search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--navy-900);
}
.site-search input::placeholder {
  color: var(--slate-500);
}
.site-search input:focus-visible {
  background: #fff;
  border-color: var(--blue-600);
}
.site-search__button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
}
.site-search__button:hover {
  background: var(--blue-100);
  color: var(--navy-900);
}
.site-search-link {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--navy-900);
}
.site-search-link:hover {
  background: var(--blue-50);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: var(--s-5);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--slate-600);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--blue-200);
}
.breadcrumbs a {
  color: var(--slate-600);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}
.breadcrumbs [aria-current] {
  color: var(--navy-900);
  font-weight: 600;
}
/* breadcrumbs sit inside the hero tint when a hero follows */
main > .container:first-child + .hero {
  margin-top: 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-50) 0%, #f7faff 100%);
  border-bottom: 1px solid var(--blue-100);
  padding: var(--s-12) 0 var(--s-12);
}
main > .container:first-child {
  background: transparent;
}
main:has(> .container:first-child .breadcrumbs) > .hero {
  padding-top: var(--s-6);
}
main:has(> .container:first-child .breadcrumbs) > .container:first-child {
  max-width: none;
  background: var(--blue-50);
  padding-left: max(var(--s-6), calc((100% - var(--container)) / 2 + var(--s-6)));
  padding-right: var(--s-6);
}
.hero__inner {
  display: grid;
  gap: var(--s-10);
  align-items: center;
}
.hero--with-aside .hero__inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.hero__copy {
  max-width: 760px;
}
.hero h1 {
  margin-bottom: var(--s-4);
}
.hero__intro {
  font-size: var(--text-lg);
  color: var(--slate-700);
  max-width: 680px;
  margin: 0;
  line-height: 1.55;
}
.hero__meta {
  margin: var(--s-4) 0 0;
  font-size: var(--text-sm);
  color: var(--slate-600);
}
.hero--home {
  padding: var(--s-16) 0 var(--s-16);
}
.hero--home h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button--primary {
  background: var(--blue-600);
  color: #fff;
}
.button--primary:hover {
  background: var(--blue-700);
  color: #fff;
  text-decoration: none;
}
.button--secondary {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--blue-200);
}
.button--secondary:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  text-decoration: none;
}
.button--ghost {
  background: transparent;
  color: var(--slate-700);
}
.button--ghost:hover {
  background: var(--surface-muted);
  color: var(--navy-900);
}
.button--block {
  width: 100%;
}

/* ---------- Panels & calculator layout ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow);
}
.panel h2 {
  font-size: var(--text-lg);
}
.panel__intro {
  color: var(--slate-600);
  font-size: var(--text-sm);
  margin: var(--s-2) 0 var(--s-6);
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s-6);
  align-items: start;
  margin-top: calc(-1 * var(--s-6));
  position: relative;
}
.calc-form {
  display: grid;
  gap: var(--s-5);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.form-status {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  background: var(--red-50);
  color: var(--red-700);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Fields ---------- */
.field__label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: var(--s-2);
  color: var(--navy-900);
}
.field__optional {
  color: var(--slate-500);
  font-weight: 500;
}
.field__control {
  display: flex;
  align-items: stretch;
  border: 1px solid #c9d3e1;
  border-radius: var(--radius-sm);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  overflow: hidden;
}
.field__control:hover {
  border-color: #a9b8cc;
}
.field__control:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.18);
}
.field__control input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 50px;
  border: 0;
  padding: 0 var(--s-4);
  background: transparent;
  font: inherit;
  font-size: var(--text-md);
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.field__control input:focus-visible {
  box-shadow: none;
  outline: none;
}
.field__control input::placeholder {
  color: var(--slate-500);
}
.field__affix {
  display: flex;
  align-items: center;
  padding: 0 var(--s-3);
  color: var(--slate-600);
  font-size: var(--text-sm);
  background: var(--surface-muted);
  white-space: nowrap;
}
.field__affix--prefix {
  border-right: 1px solid var(--line-soft);
  font-weight: 600;
  font-size: var(--text-md);
}
.field__affix--suffix {
  border-left: 1px solid var(--line-soft);
}
.field__help {
  margin: var(--s-2) 0 0;
  font-size: var(--text-sm);
  color: var(--slate-600);
  line-height: 1.45;
}
.field__error {
  margin: var(--s-2) 0 0;
  font-size: var(--text-sm);
  color: var(--red-700);
  font-weight: 600;
}
.field__control:has(input[aria-invalid="true"]) {
  border-color: var(--red-700);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

/* ---------- Result panel ---------- */
.result-panel {
  border-color: var(--blue-100);
}
.result-panel__top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: flex-start;
}
.result-panel__headline {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}
.result-panel__caption {
  font-size: var(--text-sm) !important;
  font-weight: 500;
  color: var(--slate-600);
  margin-top: var(--s-2);
  letter-spacing: 0;
}
.result-panel__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex: none;
}
.result-panel__badges {
  margin-top: var(--s-4);
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.result-panel.is-stale .result-panel__headline,
.result-panel.is-stale .result-rows dd {
  opacity: 0.35;
}
.result-rows {
  margin: var(--s-6) 0 0;
  border-top: 1px solid var(--line);
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.result-row dt {
  color: var(--slate-700);
  font-size: 0.95rem;
}
.result-row__note {
  display: block;
  color: var(--slate-500);
  font-size: var(--text-xs);
}
.result-row dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.result-row--highlight {
  background: var(--blue-50);
  margin: 0 calc(-1 * var(--s-3));
  padding-left: var(--s-3);
  padding-right: var(--s-3);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}
.result-row--highlight dt,
.result-row--highlight dd {
  color: var(--navy-900);
  font-weight: 800;
}

/* ---------- Explain disclosure ---------- */
.explain {
  margin-top: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.explain summary {
  cursor: pointer;
  padding: var(--s-3) var(--s-4);
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--blue-700);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.explain summary::-webkit-details-marker {
  display: none;
}
.explain summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--slate-500);
}
.explain[open] summary::after {
  content: "–";
}
.explain__body {
  padding: 0 var(--s-4) var(--s-3);
  font-size: var(--text-sm);
  color: var(--slate-700);
}
.explain__body p {
  margin-bottom: var(--s-2);
}

/* ---------- Notes ---------- */
.note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
  margin-top: var(--s-4);
  font-size: var(--text-sm);
}
.note__icon {
  color: var(--slate-600);
  padding-top: 2px;
}
.note__title {
  margin: 0 0 var(--s-1);
  font-weight: 700;
  color: var(--navy-900);
}
.note__body {
  color: var(--slate-700);
}
.note__body > :last-child {
  margin-bottom: 0;
}
.note--info {
  background: var(--blue-50);
  border-color: var(--blue-100);
}
.note--info .note__icon {
  color: var(--blue-600);
}
.note--caution {
  background: var(--amber-50);
  border-color: #f3d9a8;
}
.note--caution .note__icon {
  color: var(--amber-700);
}

/* ---------- Formula card ---------- */
.formula-card {
  margin: 0 0 var(--s-6);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.formula-card__label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: var(--s-2);
}
.formula-card__expr {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--navy-900);
}
.formula-card__expr strong {
  color: var(--blue-700);
  overflow-wrap: anywhere;
}
.formula-card__example {
  margin: var(--s-2) 0 0;
  color: var(--slate-600);
  font-size: var(--text-sm);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live,
.badge--guaranteed {
  background: var(--green-50);
  color: var(--green-700);
  border-color: #bfe3d1;
}
.badge--soon {
  background: var(--surface-muted);
  color: var(--slate-600);
  border-color: var(--line);
}
.badge--target {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.badge--expected {
  background: var(--teal-50);
  color: var(--teal-700);
  border-color: #b9e0e5;
}
.badge--estimated {
  background: var(--amber-50);
  color: var(--amber-700);
  border-color: #f3d9a8;
}
.badge--unknown {
  background: #fff;
  color: var(--slate-600);
  border: 1px dashed #a9b8cc;
}
.badge--unknown::before {
  background: transparent;
  border: 1.5px solid currentColor;
  width: 5px;
  height: 5px;
}
.badge-row {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: var(--s-5);
}
.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.card__top {
  margin-bottom: var(--s-4);
}
.card__title {
  font-size: 1.12rem;
  margin-bottom: var(--s-2);
}
.card__body {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin: 0 0 var(--s-5);
  flex: 1;
}
.card__link {
  color: var(--navy-900);
  text-decoration: none;
}
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.card__link:focus-visible {
  box-shadow: none;
}
.card:has(.card__link:focus-visible) {
  box-shadow: var(--focus);
}
.card:has(.card__link):hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:has(.card__link):hover .card__link {
  color: var(--blue-700);
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--blue-600);
}
.card__cta--muted {
  color: var(--slate-500);
  font-weight: 600;
}
.tool-card--soon {
  background: var(--surface-muted);
  box-shadow: none;
}
.tool-card--soon .card__title {
  color: var(--slate-700);
}
.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-600);
  margin-bottom: var(--s-4);
}
.info-card .card__body {
  margin-bottom: 0;
}

/* ---------- Home: quick calculator ---------- */
.quick-calc {
  padding: var(--s-6);
}
.quick-calc__title {
  font-size: 1.05rem !important;
  margin-bottom: var(--s-4);
}
.quick-calc__result {
  margin: var(--s-5) 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.quick-calc__value {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.quick-calc__unit {
  color: var(--slate-600);
  font-weight: 600;
}
.quick-calc__assume {
  color: var(--slate-500);
  font-size: var(--text-sm);
  margin: var(--s-1) 0 var(--s-5);
}
.quick-calc.is-stale .quick-calc__value {
  opacity: 0.35;
}

/* ---------- Home: journey ---------- */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4);
  counter-reset: step;
}
.journey__step {
  position: relative;
  padding: var(--s-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  right: calc(-1 * var(--s-4));
  width: var(--s-4);
  height: 2px;
  background: var(--blue-200);
}
.journey__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: var(--s-3);
}
.journey__label {
  font-size: 1.05rem;
  margin-bottom: var(--s-1);
}
.journey__desc {
  color: var(--slate-600);
  font-size: var(--text-sm);
  margin-bottom: var(--s-3);
  line-height: 1.45;
}
.journey__tools {
  list-style: none;
  margin: 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line-soft);
  font-size: var(--text-sm);
  display: grid;
  gap: 6px;
}
.journey__tools a {
  font-weight: 650;
}
.journey__tools .is-soon {
  color: var(--slate-500);
}
.journey__soon {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px;
  margin-left: 4px;
}

/* ---------- Prose & tables ---------- */
.prose {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--slate-700);
}
.prose h2 {
  margin: var(--s-10) 0 var(--s-4);
}
.prose h3 {
  margin: var(--s-8) 0 var(--s-3);
  color: var(--navy-900);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 var(--s-4);
}
.prose li + li {
  margin-top: var(--s-2);
}
.table-wrap {
  overflow-x: auto;
  margin: var(--s-5) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  font-weight: 650;
  color: var(--navy-900);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
}
th,
td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
.table--num td,
.table--num thead th:not(:first-child) {
  text-align: right;
}

/* ---------- Related ---------- */
.related {
  padding: var(--s-12) 0 var(--s-16);
  background: var(--surface-muted);
  border-top: 1px solid var(--line-soft);
}
.related h2 {
  margin-bottom: var(--s-6);
  font-size: var(--text-xl);
}

/* ---------- Search page ---------- */
.search-page-form {
  margin: var(--s-8) 0 var(--s-4);
}
.search-page-form__row {
  display: flex;
  gap: var(--s-3);
}
.search-page-form input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 var(--s-4);
  border: 1px solid #c9d3e1;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--text-md);
}
.search-page-form input:focus-visible {
  border-color: var(--blue-600);
}
.search-status {
  color: var(--slate-600);
  font-size: var(--text-sm);
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-10);
  display: grid;
  gap: var(--s-3);
}
.search-result {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.search-result a {
  font-weight: 700;
  font-size: 1.05rem;
}
.search-result__meta {
  margin: 2px 0 var(--s-1);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  font-weight: 700;
}
.search-result p:last-child {
  margin: 0;
  color: var(--slate-600);
  font-size: var(--text-sm);
}

/* ---------- Styleguide ---------- */
.swatches {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.swatch {
  display: grid;
  gap: 2px;
  font-size: var(--text-sm);
}
.swatch__chip {
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: var(--s-2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #c8d4e6;
  padding: var(--s-16) 0 var(--s-8);
  margin-top: 0;
}
.site-footer a {
  color: #e6edf7;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--s-8);
}
.site-footer__brand p {
  margin-top: var(--s-4);
  font-size: var(--text-sm);
  max-width: 340px;
  line-height: 1.6;
}
.site-footer__group h2 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8fa3c0;
  margin-bottom: var(--s-4);
}
.site-footer__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
  font-size: var(--text-sm);
}
.site-footer__bottom {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: var(--s-6);
  font-size: var(--text-xs);
  color: #9db0cb;
}
.site-footer__bottom p {
  margin: 0;
  max-width: 720px;
}
.site-footer :focus-visible {
  box-shadow:
    0 0 0 3px var(--navy-900),
    0 0 0 6px #8eb8ff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-search {
    width: 220px;
  }
  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .journey__step::after {
    display: none;
  }
  .card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__top {
    grid-template-columns: repeat(4, 1fr);
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 var(--s-4);
    min-height: 0;
    padding-top: var(--s-3);
  }
  .site-search {
    display: none;
  }
  .site-search-link {
    display: grid;
  }
  .primary-nav {
    order: 3;
    width: 100%;
    margin: var(--s-2) 0 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .primary-nav::-webkit-scrollbar {
    display: none;
  }
  .primary-nav ul {
    padding-bottom: var(--s-2);
    padding-right: var(--s-8);
  }
  .hero--with-aside .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: calc(-1 * var(--s-4));
  }
  .card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--s-4);
  }
  main:has(> .container:first-child .breadcrumbs) > .container:first-child {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .section {
    padding: var(--s-12) 0;
  }
  .hero,
  .hero--home {
    padding: var(--s-8) 0 var(--s-10);
  }
  .hero__intro {
    font-size: var(--text-md);
  }
  .panel {
    padding: var(--s-5);
    border-radius: var(--radius);
  }
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .journey {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-actions .button {
    flex: 1;
  }
  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-6);
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: var(--s-3);
  }
  .search-page-form__row {
    flex-direction: column;
  }
  .formula-card {
    padding: var(--s-4);
  }
  .formula-card__expr {
    font-size: var(--text-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .related,
  .form-actions,
  .skip-link {
    display: none !important;
  }
  .panel {
    box-shadow: none;
  }
}

/* ---------- Phase 04: selects, choices, groups, share, sources, toc ---------- */
.field__control--select {
  position: relative;
}
.field__control--select select {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  padding: 0 44px 0 var(--s-4);
  background: transparent;
  font: inherit;
  font-size: var(--text-md);
  color: var(--navy-900);
  cursor: pointer;
}
.field__control--select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate-600);
  border-bottom: 2px solid var(--slate-600);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__control--select select:focus-visible {
  outline: none;
  box-shadow: none;
}
.choice {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.choice__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #c9d3e1;
  border-radius: var(--radius-sm);
  padding: 3px;
  background: var(--surface-muted);
}
.choice__option {
  flex: 1 1 auto;
  position: relative;
}
.choice__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice__option span {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--slate-700);
  white-space: nowrap;
}
.choice__option input:checked + span {
  background: #fff;
  color: var(--blue-700);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px var(--blue-200);
}
.choice__option input:focus-visible + span {
  box-shadow: var(--focus);
}
.field-group {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.field-group[hidden] {
  display: none;
}
.field-group__title {
  margin: 0;
  font-weight: 750;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-600);
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-4);
}
.button--small {
  min-height: 40px;
  padding: 0 var(--s-4);
  font-size: var(--text-sm);
}
.share {
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
}
.share__note {
  margin: var(--s-2) 0 0;
  font-size: var(--text-xs);
  color: var(--slate-600);
}
.sources {
  font-size: var(--text-sm);
  color: var(--slate-700);
  padding-left: 1.3em;
}
.sources li + li {
  margin-top: var(--s-2);
}
.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  margin: 0 0 var(--s-8);
  background: var(--surface-muted);
}
.toc__title {
  margin: 0 0 var(--s-2);
  font-weight: 750;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
}
.toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2;
  column-gap: var(--s-8);
  font-size: var(--text-sm);
}
.toc li {
  break-inside: avoid;
  margin-bottom: 6px;
}
.result-row[hidden] {
  display: none;
}
.result-group {
  margin-top: var(--s-6);
}
.result-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin: 0 0 var(--s-2);
  font-size: var(--text-xs);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
}
.result-group .result-rows {
  margin-top: 0;
}
.unknown-list {
  margin: var(--s-2) 0 0;
  padding-left: 1.2em;
  font-size: var(--text-sm);
  color: var(--slate-700);
}
.callout-number {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: var(--navy-900);
}
.faq h3 {
  font-size: 1.08rem;
}
.guide {
  padding-top: var(--s-12);
}
.guide .prose h2 {
  font-size: var(--text-xl);
}
.guide .prose h2:first-child {
  margin-top: 0;
}
@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc ol {
    columns: 1;
  }
  .choice__option span {
    padding: 10px 8px;
  }
}
.calc-form,
.field-group {
  grid-template-columns: minmax(0, 1fr);
}
.field__control--select select {
  width: 100%;
}
@media (max-width: 640px) {
  .choice__option span {
    white-space: normal;
  }
}

/* ---------- Phase 05 ---------- */
.checkbox {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue-600);
  flex: none;
}
.result-footnote {
  margin: var(--s-2) 0 0;
  font-size: var(--text-xs);
  color: var(--slate-600);
}
.result-footnote:empty {
  display: none;
}
.w4 {
  margin-top: 0;
}
.w4 .explain__body {
  padding-top: var(--s-2);
}

/* ---------- Phase 06: data tables ---------- */
.cell-sub {
  display: block;
  font-size: var(--text-xs);
  color: var(--slate-500);
  font-weight: 500;
}
.data-table th[scope="row"] {
  font-weight: 650;
  color: var(--navy-900);
  min-width: 220px;
}
.table-source {
  font-size: var(--text-xs);
  color: var(--slate-600);
  margin-top: calc(-1 * var(--s-3));
}
.hash {
  font-size: 0.78rem;
}
.group-card .card__body {
  margin-bottom: 0;
}

/* ---------- Phase 07: occupations ---------- */
.occupation-grid {
  margin-top: 0;
}
.occupation-median {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: var(--s-3) 0 var(--s-6);
  font-variant-numeric: tabular-nums;
}
.occupation-median span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--slate-600);
}
.range-chart {
  margin: 0 0 var(--s-8);
  padding: 0 var(--s-8);
}
.range-chart__track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--blue-100);
}
.range-chart__iqr {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--blue-500);
  border-radius: 999px;
}
.range-chart__median {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 26px;
  margin-left: -2px;
  background: var(--navy-900);
  border-radius: 2px;
}
.range-chart__labels {
  position: relative;
  height: 44px;
  margin-top: var(--s-3);
  font-size: var(--text-xs);
  color: var(--slate-600);
}
.range-chart__labels span {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
}
.range-chart__labels strong {
  color: var(--navy-900);
  font-size: var(--text-sm);
}
.range-chart figcaption {
  margin-top: var(--s-3);
  font-size: var(--text-xs);
  color: var(--slate-600);
}
.tool-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  display: grid;
  gap: var(--s-2);
}
.tool-links a {
  display: block;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 650;
  text-decoration: none;
}
.tool-links a:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
}

/* ---------- Phase 08: offer comparison ---------- */
.offers-layout {
  display: grid;
  gap: var(--s-6);
  margin-top: calc(-1 * var(--s-6));
  position: relative;
}
.offer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}
.offer-col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  margin: 0;
  min-width: 0;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  background: #fff;
}
.offer-col[data-offer="3"] {
  background: var(--surface-muted);
}
.offer-col__legend {
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0 var(--s-2);
  color: var(--navy-900);
}
.offer-col .field-group {
  padding: var(--s-4);
  gap: var(--s-4);
}
.offers-form__global {
  margin: var(--s-6) 0 var(--s-2);
  max-width: 520px;
}
.offers-results__title {
  font-size: var(--text-xl) !important;
}
.offers-table th[scope="row"] {
  min-width: 220px;
  font-weight: 600;
  color: var(--navy-900);
}
.offers-table thead th {
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy-900);
  font-weight: 800;
}
.offers-table td .badge {
  margin-left: 4px;
}
.offers-table__group th {
  background: var(--surface-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-600);
  font-weight: 750;
}
.offers-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.offers-insights h3 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
}
.offers-insights ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: var(--text-sm);
  color: var(--slate-700);
  display: grid;
  gap: 6px;
}
.small {
  font-size: var(--text-xs);
}
@media (max-width: 900px) {
  .offer-cols,
  .offers-insights {
    grid-template-columns: minmax(0, 1fr);
  }
}
.offers-layout {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Phase 11: simulator ---------- */
.weights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
.sim-table th[scope="row"] {
  min-width: 240px;
  font-weight: 600;
  color: var(--navy-900);
}
.sim-priority {
  margin-top: var(--s-6);
}
.sim-priority h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-2);
}
.sim-notes {
  font-size: var(--text-sm);
  color: var(--slate-700);
  padding-left: 1.2em;
}
@media (max-width: 900px) {
  .weights-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phase 12 ---------- */
.stale-banner {
  background: var(--amber-50);
  border-bottom: 1px solid #f3d9a8;
  color: var(--amber-700);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--s-3) 0;
}
.hub-subhead {
  font-size: var(--text-xl);
  margin: var(--s-10) 0 var(--s-5);
}

/* ---------- Phase 13: state paycheck, insights, pay check ---------- */
.state-grid {
  list-style: none;
  padding: 0;
  margin: var(--s-4, 16px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--s-2) var(--s-4, 16px);
}
.state-grid li {
  display: flex;
  flex-direction: column;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--text-sm);
}
.state-grid a {
  font-weight: 600;
}
.result-notes {
  margin: var(--s-3) 0 0;
  padding-left: 1.2em;
  font-size: var(--text-sm);
  color: var(--slate-600);
}
.result-notes:empty {
  display: none;
}
.result-notes li + li {
  margin-top: var(--s-1);
}
.panel__subhead {
  margin: 28px 0 var(--s-2);
  font-size: var(--text-md);
}
.check-result {
  margin-top: var(--s-3);
  padding: var(--s-3) 16px;
  border-radius: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.check-result p {
  margin: 0;
}
.check-result p + p {
  margin-top: var(--s-2);
}
.check-result__main {
  font-weight: 600;
  color: var(--navy-900);
}
.insight-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-bottom: var(--s-2);
}
.insight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.insight__rank {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
}
.insight__name {
  margin: 0;
  font-weight: 600;
}
.insight__value {
  margin: 2px 0 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-900);
}
.insight__value span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--slate-600);
}
.calc-form--inline {
  padding: 20px;
}
@media print {
  .site-header,
  .site-footer,
  .form-panel,
  .related,
  .toc,
  .share,
  .breadcrumbs,
  .skip-link {
    display: none !important;
  }
  .calc-grid {
    display: block !important;
  }
  .result-panel {
    box-shadow: none !important;
    border: 1px solid #999;
  }
  details.explain {
    display: none;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  body {
    background: #fff;
  }
}

.pf-headline {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: var(--s-2);
}

.share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.saved-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.saved-item {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.saved-item__meta {
  font-size: var(--text-sm);
  color: var(--slate-600);
}

.is-embed main {
  padding-block: 12px;
}
.embed-credit {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--slate-600);
  margin: 12px 0 0;
}
.embed-code {
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: var(--text-sm);
}

.is-embed .share {
  display: none;
}
