@font-face  {

  font-family: Inter;

  src: url("/youth-allowance/fonts/Inter-Regular.ttf") format("truetype");

  font-weight: 400;

  font-style: normal;

}

@font-face  {

  font-family: Inter;

  src: url("/youth-allowance/fonts/Inter-SemiBold.ttf") format("truetype");

  font-weight: 600;

  font-style: normal;

}

@font-face  {

  font-family: Inter;

  src: url("/youth-allowance/fonts/Inter-Bold.ttf") format("truetype");

  font-weight: 700;

  font-style: normal;

}

@font-face  {

  font-family: Inter;

  src: url("/youth-allowance/fonts/Inter-ExtraBold.ttf") format("truetype");

  font-weight: 800;

  font-style: normal;

}

@font-face  {

  font-family: Inter;

  src: url("/youth-allowance/fonts/Inter-Black.ttf") format("truetype");

  font-weight: 900;

  font-style: normal;

}



:root {
  --forest:#163300;
  --lime:#9FE870;
  --oatmeal:#F2EFE9;
  --ink:#163300;
  --muted:#58615d;
  --line:#d9d8ce;
  font-family:Inter,system-ui,sans-serif;
  color:var(--ink);
  background:var(--oatmeal);
  font-size:16px;
  line-height:1.5}
* {
  box-sizing:border-box}
[hidden] {
  display:none!important}
body {
  margin:0;
  padding:0 24px 40px}
main {
  max-width:1120px;
  margin:auto}
.brand-bar {
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px 0 18px;
  border-bottom:1px solid var(--line)}
.brand-name {
  font-weight:900;
  font-size:27px;
  letter-spacing:-1px}
.brand-divider {
  border-left:1px solid var(--muted);
  padding-left:20px;
  font-size:14px}
.intro {
  padding:28px 0 22px}
.intro h1 {
  font-size:40px;
  letter-spacing:-1.5px;
  line-height:1.16;
  margin:0 0 12px;
  font-weight:800}
.intro h1 span {
  font-weight:600}
.intro p {
  margin:0}
.planner {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);
  gap:24px;
  align-items:start}
.questions {
  grid-column:1;
  grid-row:1}
.question {
  border:1px solid var(--line);
  border-radius:18px;
  padding:22px;
  margin-bottom:16px;
  background:#fbf9f4}
h2 {
  font-size:18px;
  line-height:1.35;
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:12px}
.step {
  display:inline-flex;
  background:var(--lime);
  border-radius:50%;
  width:30px;
  height:30px;
  justify-content:center;
  align-items:center;
  flex-shrink:0;
  font-weight:700}
.choices,#living {
  display:flex;
  gap:10px;
  flex-wrap:wrap}
.choices button,#living button,.chips button {
  background:transparent;
  border:1px solid #aeb8b1;
  border-radius:9px;
  padding:11px 15px;
  color:var(--ink);
  font:inherit;
  cursor:pointer}
.choices button {
  flex:1}
.choices button[aria-pressed=true],#living button[aria-checked=true],.chips button[aria-checked=true] {
  background:var(--lime);
  border-color:#b5d86b}
.choices button::before,#living button::before {
  content:'○';
  margin-right:8px}
.choices button[aria-pressed=true]::before,#living button[aria-checked=true]::before {
  content:'●'}
.place-mark,.place-check {
  display:none}
#living button {
  flex:1 1 20%;
  text-align:left;
  font-size:13px;
  padding:10px 9px}
.small {
  font-size:12px;
  color:var(--muted);
  margin:10px 0}
.text-button {
  background:none;
  border:none;
  color:var(--ink);
  font:inherit;
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px;
  padding:4px 0;
  cursor:pointer}
.field-label {
  font-size:13px;
  font-weight:600;
  display:block;
  margin:16px 0 8px}
.income-entry {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #aeb8b1;
  border-radius:9px;
  background:white;
  padding:8px 12px;
  max-width:280px}
.income-entry input {
  border:0;
  width:100%;
  min-width:0;
  padding:0}
.income-entry span {
  white-space:nowrap}
input,select {
  font:inherit;
  color:var(--ink);
  border:1px solid #aeb8b1;
  border-radius:7px;
  padding:9px;
  background:white}
input[type=range] {
  width:100%;
  padding:0;
  accent-color:#68882f;
  margin:14px 0}
input[type=checkbox] {
  accent-color:#68882f}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible {
  outline:3px solid #638a3b;
  outline-offset:3px}
a {
  color:inherit}
summary {
  cursor:pointer}
#siblings-details {
  margin-top:12px}
#siblings-details>summary {
  font-size:13px;
  text-decoration:underline;
  text-underline-offset:3px}
.sibling {
  border-top:1px solid var(--line);
  padding:16px 0;
  margin-top:12px}
.sibling h3 {
  font-size:15px}
.sibling label {
  display:block;
  margin:12px 0}
.sibling input {
  display:block;
  width:150px;
  max-width:100%}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:10px 0}
.chips button {
  font-size:12px;
  padding:8px}
.pay-card {
  grid-column:2;
  grid-row:1;
  position:sticky;
  top:24px;
  background:var(--forest);
  color:white;
  border-radius:22px;
  padding:30px}
.pay-kicker {
  font-weight:700;
  letter-spacing:1px;
  color:var(--lime);
  font-size:14px;
  margin:0 0 18px}
.headline-line {
  display:flex;
  flex-direction:column;
  gap:0}
#headline {
  font-size:56px;
  font-weight:800;
  letter-spacing:-2px;
  line-height:1.15;
  overflow-wrap:anywhere}
.pay-unit {
  font-size:21px}
.pay-card #verdict {
  font-size:14px;
  margin:24px 0 12px}
.estimate-note {
  font-size:12px;
  opacity:.85}
.button {
  display:block;
  width:100%;
  border-radius:10px;
  padding:13px 16px;
  text-decoration:none;
  text-align:center;
  font:inherit;
  font-weight:600;
  cursor:pointer}
.primary {
  background:var(--lime);
  border:1px solid var(--lime);
  color:#153b30}
.secondary {
  background:transparent;
  color:inherit;
  border:1px solid currentColor;
  margin-top:12px}
.desktop-actions {
  margin-top:28px}
.mobile-actions {
  display:none}
.how {
  border:1px solid var(--line);
  border-radius:14px;
  margin:8px 0 20px}
.how>summary {
  padding:18px 22px;
  display:flex;
  gap:18px;
  align-items:center;
  list-style:none}
.how>summary::after {
  content:'⌄';
  margin-left:auto;
  font-size:24px}
.how[open]>summary::after {
  content:'⌃'}
.how>summary span {
  font-size:13px;
  color:var(--muted)}
.how-body {
  padding:0 22px 20px}
.how-body section {
  border-top:1px solid var(--line);
  padding:20px 0}
.how-body h2 {
  font-size:17px}
.how-body p,.how-body label {
  font-size:14px}
.how-body input:not([type=range]),.how-body select {
  display:block;
  max-width:100%;
  margin-top:6px}
.pair {
  display:flex;
  gap:20px;
  flex-wrap:wrap}
.pair>label {
  flex:1;
  min-width:180px}
.rows {
  list-style:none;
  padding:0}
.rows li,.pay-line {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:7px 0;
  border-bottom:1px solid var(--line)}
.pay-strong {
  font-weight:700}
svg {
  width:100%}
.axis,.tick {
  fill:none;
  stroke:#58615d}
.series {
  stroke:#113e33;
  stroke-width:3}
.dot {
  fill:#113e33}
.band {
  fill:#f3f7eb}
.band-zero {
  fill:#eee}
.axis-label,.cut-label {
  font-size:12px;
  fill:#58615d}
.cut-amount {
  font-size:13px;
  font-weight:650;
  fill:#163300}
.subfold {
  font:inherit;
  color:inherit;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:10px 0;
  text-decoration:underline}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)}
.input-alert {
  border:1px solid #a75735;
  border-radius:10px;
  padding:14px;
  color:#713918}
.consent {
  display:block;
  margin:14px 0}
#email-panel {
  max-width:680px;
  margin-top:16px}
#email-panel input[type=email] {
  display:block;
  width:100%;
  margin-top:6px}
#email-panel h2 {
  margin-bottom:8px}
#email-panel p {
  font-size:14px}
footer {
  font-size:12px;
  color:var(--muted);
  padding:10px 0}

@media(max-width:700px) {
  body {
  padding:0 14px 24px}
.brand-bar {
  padding:18px 0 12px;
  gap:12px}
.brand-name {
  font-size:23px}
.brand-divider {
  padding-left:12px;
  font-size:12px}
.intro {
  padding:22px 0 18px}
.intro h1 {
  font-size:29px;
  letter-spacing:-1px}
.intro p {
  font-size:13px}
.planner {
  display:contents}
.pay-card {
  width:100%;
  top:0;
  z-index:5;
  border-radius:12px;
  background:var(--lime);
  color:var(--forest);
  padding:12px 16px;
  box-shadow:0 3px 12px #113e3310}
.pay-kicker {
  color:var(--forest);
  font-size:10px;
  letter-spacing:.4px;
  margin:0 0 4px}
.headline-line {
  flex-direction:row;
  align-items:baseline;
  gap:8px}
#headline {
  font-size:31px;
  letter-spacing:-1px}
.pay-unit {
  font-size:14px}
.pay-card #verdict {
  font-size:11px;
  margin:6px 0 0}
.estimate-note {
  display:none}
.desktop-actions {
  display:none}
.questions {
  width:100%}
.question {
  padding:16px;
  margin-bottom:12px;
  border-radius:13px}
h2 {
  font-size:15px;
  gap:9px;
  margin-bottom:12px}
.step {
  width:25px;
  height:25px}
.choices,#living {
  gap:8px}
.choices button,#living button {
  padding:9px 10px;
  font-size:13px}
.small {
  font-size:11px}
.field-label {
  font-size:12px}
.income-entry {
  font-size:14px}
.mobile-actions:not([hidden]) {
  display:block}
.how>summary {
  padding:15px;
  display:flex;
  flex-wrap:wrap;
  gap:3px}
.how>summary strong {
  font-size:14px}
.how>summary span {
  font-size:11px;
  width:85%}
.how>summary::after {
  position:absolute;
  right:28px}
.how-body {
  padding:0 15px 15px}
.button {
  font-size:14px;
  padding:12px}
.sibling input {
  font-size:16px}
input,select {
  font-size:16px}
.income-entry input {
  font-size:16px}
}


@media(max-width:700px) {
  #living button {
  flex:1 1 40%}
}

/* Input targets and scroll clearance for the pinned planning estimate. */
button, .button, summary, input:not([type="checkbox"]), select { min-height:44px; }
summary { display:flex; align-items:center; }
#planning-assumptions { font-size:12px; line-height:1.4; color:inherit; }
@media(max-width:700px) {
  html { scroll-padding-top:190px; }
  button, input, select, summary { scroll-margin-top:190px; }
  .pay-card { position:sticky; top:0; max-height:180px; overflow:auto; margin-bottom:16px; }
  #planning-assumptions { font-size:10px; margin:5px 0 0; }
  .questions { position:relative; z-index:1; }
}

/* Keep complete assumptions in normal flow, outside the pinned amount. */
a:not(.button) { display:inline-flex; align-items:center; min-height:44px; }
#siblings-details>summary::after { content:' +'; margin-left:auto; }
#siblings-details[open]>summary::after { content:' −'; }
.sibling label, .sibling input, #college-facts, #lodging { font-size:16px; }
@media(max-width:700px) {
  .pay-card { max-height:none; overflow:visible; padding:12px 16px; }
  .pay-card .pay-kicker { display:block; margin:0 0 4px; font-size:11px; }
  .pay-card #verdict { display:block; margin:4px 0 0; font-size:12px; }
  .pay-card #verdict.zero-verdict { display:block; margin:4px 0 0; font-size:12px; }
  .pay-card .estimate-note { display:block; margin:4px 0 0; font-size:12px; }
  #planning-assumptions { font-size:12px; margin:0 0 16px; }
}

/* App reference: youth_allowance_checker_screen.dart _buildTaperChart. */
#chart { background:#fff; }
#chart .series { stroke:#9FE870; stroke-width:3; }
#chart .axis { stroke:none; }
#chart .dot { fill:#163300; }
#chart .payment-grid { stroke:#e5e7eb; stroke-width:1; }
#chart .income-marker { stroke:#163300; stroke-opacity:.5; stroke-dasharray:4 4; }
.sibling-extra { margin-top:8px; }

.sibling-extra > summary { min-height:44px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; }
.sibling-extra > summary::after { content:'+'; }
.sibling-extra[open] > summary::after { content:'−'; }

.sibling-add-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.sibling-add-buttons button,.sibling-add-other button { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; font:inherit; }
.sibling-add-other > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.sibling { position:relative; padding:12px 52px 12px 0; }
.sibling h3 { margin:4px 0; font-size:15px; }
.sibling-remove { position:absolute; top:8px; right:0; width:44px; height:44px; font-size:24px; border:1px solid var(--line); border-radius:8px; background:#fff; color:inherit; }
.sibling-extra > summary { font-size:13px; }

.sibling-add-other > summary::after { content:'+'; margin-left:auto; }
.sibling-add-other[open] > summary::after { content:'−'; }

/* Primary family controls are visible before income, never a disclosure. */
.siblings-visual { margin: 1.4rem 0; padding: 1rem; border: 1px solid #c5cfbd; border-radius: 16px; background: #f1f6e8; }
.siblings-visual h3 { margin: 0 0 .6rem; font-size: 1.12rem; }
.siblings-visual .sibling-add-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.siblings-visual .sibling-add-buttons button { min-height: 44px; flex: 1 1 145px; }

/* Housing amount and slider stay beside the living choice. */
#living-step .housing-money { display:flex; align-items:center; gap:6px; width:100%; max-width:380px; box-sizing:border-box; border:1px solid #dce4eb; border-radius:12px; background:#f7f9fb; padding:10px 16px; margin-top:8px; font-size:1.25rem; font-weight:700; }
#living-step .housing-money input { border:0; background:transparent; width:100%; min-width:0; padding:0; margin:0; font:inherit; box-shadow:none; }
#living-step #rent-number-label, #living-step #lodging-block label { display:block; }
#living-step #rent-block { max-width:380px; }
#living-step #rent { display:block; width:100%; margin:20px 0 12px; accent-color:#9ce463; }
#living-step #rent-label, #living-step #rent-readout, #living-step #rent-illustration { display:none; }
#living-step #rent-chart-panel { margin-top:12px; padding:12px; border:1px solid #dce4eb; border-radius:14px; background:#f7f9fb; }

#living-step #rent { appearance:none; -webkit-appearance:none; height:44px; background:transparent; cursor:pointer; }
#living-step #rent::-webkit-slider-runnable-track { height:5px; border-radius:4px; background:linear-gradient(to right,#9ce463 var(--rent-progress,50%),#dfe6ee var(--rent-progress,50%)); }
#living-step #rent::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:#9ce463; margin-top:-8.5px; border:0; }
#living-step #rent::-moz-range-track { height:5px; border-radius:4px; background:#dfe6ee; }
#living-step #rent::-moz-range-progress { height:5px; background:#9ce463; }
#living-step #rent::-moz-range-thumb { width:22px; height:22px; border:0; border-radius:50%; background:#9ce463; }

.lodging-label-row { display:flex; align-items:center; gap:6px; }
#living-step .lodging-label-row label { margin:0; }
.lodging-help-toggle { flex:none; min-width:44px; min-height:44px; padding:4px; border:0; background:transparent; color:inherit; font-size:1.25rem; }
.lodging-help { border:1px solid #dce4eb; border-radius:12px; background:#f7f9fb; padding:12px; margin:6px 0; }
.lodging-help p { margin:0 0 8px; }
.lodging-help a { display:inline-flex; align-items:center; min-height:44px; }

/* Approved compact app-style cards: value, slider, Chart; details expand in place. */
.control-card { background:#fff; border:1px solid #e7eaed; border-radius:22px; padding:20px; margin:16px 0; }
.income-top-row, #rent-number-label, #lodging-block { position:relative; }
.income-top-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.income-top-row .field-label { flex:1; margin:0; font-size:14px; }
.control-card .income-entry { background:transparent; border:0; padding:0; flex:0 1 180px; margin:0; }
.control-card .income-entry input { min-width:0; width:100%; font-weight:700; font-size:24px; text-align:right; }
#living-step .housing-money { background:transparent; border:0; padding:0; max-width:none; margin:0; }
#living-step .housing-money input { text-align:right; font-size:26px; }
#living-step #rent-number-label { display:flex; align-items:center; gap:14px; font-size:14px; }
#living-step #rent-number-label .housing-money { flex:0 1 150px; margin-left:auto; }
#lodging-block { display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,130px); align-items:center; gap:8px; }
#lodging-block[hidden] { display:none; }
.lodging-help { grid-column:1 / -1; grid-row:2; }
#lodging-block > .housing-money { grid-column:2; grid-row:1; }
.lodging-label-row label { font-size:14px; }
#living-step #rent-block { max-width:none; }
#living-step #rent, #income { appearance:none; -webkit-appearance:none; width:100%; height:44px; padding:0; border:0; background:transparent; cursor:pointer; margin:14px 0 4px; }
#income::-webkit-slider-runnable-track { height:5px; border-radius:4px; background:linear-gradient(to right,#9fe870 var(--rent-progress,0%),#e7edf4 var(--rent-progress,0%)); }
#income::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:#9fe870; margin-top:-8.5px; border:0; }
#income::-moz-range-track { height:5px; background:#e7edf4; }
#income::-moz-range-progress { height:5px; background:#9fe870; }
#income::-moz-range-thumb { width:22px; height:22px; border:0; border-radius:50%; background:#9fe870; }
.chart-disclosure { display:flex; align-items:center; justify-content:flex-end; gap:8px; width:100%; min-height:44px; border:0; background:transparent; padding:4px 0; color:inherit; text-decoration:none; }
.chart-disclosure .fold-plus::before { content:'⌄'; display:inline-block; font-size:22px; }
.chart-disclosure[aria-expanded=true] .fold-plus::before { content:'⌃'; }
#living-step #rent-chart-panel, #chart-panel { border:0; border-top:1px solid #e7eaed; border-radius:0; background:transparent; padding:16px 0 0; margin-top:4px; }
.chart-payment { font-size:22px; font-weight:700; margin:4px 0 12px; }
.chart-value-label { font-size:12px; margin:0; }
#rent-chart .series { stroke:#9fe870; stroke-width:3; }
#rent-chart .income-marker { stroke:#163300; stroke-opacity:.5; stroke-dasharray:4 4; }
#rent-chart .dot { fill:#163300; }
@media(max-width:440px) { .control-card { padding:14px; } .income-top-row { align-items:flex-start; } .control-card .income-entry { flex-basis:145px; } .control-card .income-entry input { font-size:21px; } #lodging-block { grid-template-columns:minmax(0,1fr) 95px; } #living-step .housing-money input { font-size:23px; } }

.siblings-visual .sibling { border:1px solid #dce3d6; background:#fff; border-radius:14px; padding:12px 48px 12px 12px; margin:12px 0; }
.sibling > summary { min-height:44px; cursor:pointer; }
.sibling > summary h3 { margin:0; font-size:16px; }
.sibling select { width:100%; box-sizing:border-box; margin:8px 0; }
.guided-add { width:100%; min-height:44px; border:1px solid #bcc9b8; border-radius:10px; background:white; color:inherit; margin-top:8px; }

/* Approved opening benchmark card: figures supplied by Dart. */
#opening-card { margin: 24px 0 32px; text-align: center; }
#opening-title { font-size: clamp(25px, 4vw, 44px); color: #003f32; }
.opening-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.opening-tile { padding: 28px; border-radius: 24px; background: #003f32; color: white; text-align: left; }
.opening-tile h2 { color: #d8ff6a; font-size: clamp(22px, 3vw, 32px); margin: 0 0 20px; }
.opening-tile p { margin: 6px 0; }
.opening-tile strong { font-size: clamp(36px, 6vw, 68px); letter-spacing: -2px; line-height: 1.2; }
.opening-up { font-size: 21px; font-weight: 700; }
.opening-tile .opening-annual { margin-top: 20px; font-size: 21px; font-weight: 700; }
.opening-ra { font-size: 16px; }
#opening-start { width: 100%; margin-top: 20px; background: #d8ff6a; color: #003f32; font-size: 22px; }
.planner.benchmark-mode { display: block; }
@media (max-width: 520px) {
 .opening-columns { gap: 10px; }
 .opening-tile { padding: 16px 10px; border-radius: 16px; }
 .opening-tile h2 { font-size: 19px; min-height: 48px; }
 .opening-tile strong { font-size: clamp(26px, 8vw, 38px); letter-spacing: -1px; }
 .opening-tile .opening-annual { font-size: 15px; }
 .opening-up { font-size: 17px; }
 .opening-ra { font-size: 13px; }
}

.bottom-actions { margin-top:24px; }
.bottom-actions .button { margin:8px 8px 0 0; }
.pay-card #verdict:empty { display:none; }


/* Unified private-preview design: the same app palette before and after housing. */
.brand-bar { gap:16px; }
.brand-name { display:inline-flex; align-items:center; gap:9px; font-size:25px; letter-spacing:-1.1px; }
.brand-mark { width:30px; height:30px; flex:none; color:var(--lime); }
.intro { max-width:850px; padding:32px 0 20px; }
.intro #opening-title { display:block; color:var(--forest); font-size:clamp(28px,4vw,44px); line-height:1.13; letter-spacing:-1.5px; text-wrap:balance; margin:0 0 14px; }
.intro .intro-subtitle { font-size:18px; line-height:1.5; }
.intro .intro-scope { margin-top:8px; }
#opening-card { background:var(--forest); color:white; border-radius:24px; padding:32px; margin:8px 0 28px; text-align:left; }
.opening-columns { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; }
.opening-tile { min-width:0; border-radius:0; background:transparent; padding:0 32px 8px 0; }
.opening-tile + .opening-tile { border-left:1px solid #ffffff40; padding:0 0 8px 32px; }
.opening-tile h2 { color:white; font-size:clamp(20px,2.5vw,28px); margin:0 0 18px; min-height:0; }
.opening-tile strong { display:block; color:var(--lime); font-size:clamp(40px,6vw,68px); font-weight:800; letter-spacing:-2px; overflow-wrap:anywhere; }
.opening-up { font-size:15px; font-weight:400; }
.opening-tile .opening-annual { margin-top:14px; font-size:20px; }
.opening-ra { color:#e4eedc; font-size:14px; }
#opening-start { background:var(--lime); color:var(--forest); border:1px solid var(--lime); border-radius:12px; font-size:18px; margin-top:28px; min-height:52px; }
#opening-card > .small { color:#e4eedc; text-align:center; margin:12px 0 0; }
.pay-card { background:var(--forest); color:white; border-radius:24px; }
.pay-card .pay-kicker { color:#e4eedc; letter-spacing:0; }
.pay-card #headline { color:var(--lime); }
.primary { color:var(--forest); }
.choices button[aria-pressed=true], #living button[aria-checked=true], .chips button[aria-checked=true] { background:var(--lime); border-color:var(--forest); box-shadow:inset 0 0 0 1px var(--forest); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible { outline-color:var(--forest); }
#opening-card button:focus-visible, .pay-card a:focus-visible { outline-color:white; }
.chart-disclosure { color:var(--forest); font-weight:600; }
.chart-disclosure:hover { text-decoration:underline; text-underline-offset:4px; }
#living-step #rent::-webkit-slider-runnable-track, #income::-webkit-slider-runnable-track { height:6px; border:1px solid #64745a; background:linear-gradient(to right,var(--lime) var(--rent-progress,0%),#e5e9e0 var(--rent-progress,0%)); }
#living-step #rent::-webkit-slider-thumb, #income::-webkit-slider-thumb { background:var(--lime); border:2px solid var(--forest); margin-top:-9px; }
#living-step #rent::-moz-range-track, #income::-moz-range-track { height:6px; border:1px solid #64745a; background:#e5e9e0; border-radius:4px; }
#living-step #rent::-moz-range-progress, #income::-moz-range-progress { background:var(--lime); height:6px; }
#living-step #rent::-moz-range-thumb, #income::-moz-range-thumb { background:var(--lime); border:2px solid var(--forest); }
@media(max-width:700px) {
  .brand-name { font-size:23px; }
  .intro { padding:24px 0 18px; }
  .intro .intro-subtitle { font-size:16px; }
  #opening-card { padding:22px 20px; border-radius:20px; }
  .opening-tile { padding:0 16px 8px 0; }
  .opening-tile + .opening-tile { padding:0 0 8px 16px; }
  .opening-tile h2 { font-size:18px; margin-bottom:14px; }
  .opening-tile strong { font-size:clamp(28px,7.5vw,46px); letter-spacing:-1px; }
  .opening-tile .opening-annual { font-size:15px; }
  .opening-tile > p { font-size:13px; }
  #opening-start { font-size:17px; margin-top:22px; }
  .pay-card { border-radius:16px; padding:16px 20px; }
  .pay-card .pay-kicker { color:#e4eedc; }
  .pay-card .headline-line { flex-wrap:wrap; }
}
@media(max-width:360px) {
  .opening-columns { grid-template-columns:minmax(0,1fr); }
  .opening-tile { padding:0 0 20px; }
  .opening-tile + .opening-tile { border-left:0; border-top:1px solid #ffffff40; padding:20px 0 0; }
  .opening-tile h2 { font-size:20px; margin-bottom:10px; }
  .opening-tile strong { font-size:42px; }
  .brand-bar { gap:10px; flex-wrap:wrap; }
  .brand-divider { font-size:11px; padding-left:10px; }
}


/* Keep the family questions as compact as the housing question above. */
#family-step #parents, #family-step #siblings-answer { gap:10px; }
#family-step #parents button, #family-step #siblings-answer button {
  flex:1; min-width:0; padding:10px 9px; font-size:13px;
}
#family-step .siblings-visual {
  background:transparent; border:0; border-radius:0; padding:0; margin:16px 0;
}
#family-step .siblings-visual > h3 {
  font-size:13px; font-weight:600; line-height:1.5; margin:0 0 8px;
}
#family-step .siblings-visual > .small { margin:8px 0; }
#family-step .sibling-add-other { font-size:12px; }
#family-step .siblings-visual .sibling { margin:10px 0; }
@media(max-width:700px) {
  #family-step #parents, #family-step #siblings-answer { gap:8px; }
  #family-step #parents button, #family-step #siblings-answer button { padding:9px 10px; }
  #family-step .siblings-visual > h3 { font-size:12px; }
}


/* Approved B: the Rent Assistance result and disclosure share one compact row. */
#living-step .rent-summary-row { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; width:100%; padding:4px 10px; margin-top:8px; background:#edf5e7; border-radius:12px; }
.rent-summary-label { font-size:12px; font-weight:600; }
.rent-summary-amount { margin-left:auto; font-size:14px; font-weight:700; white-space:nowrap; }
#living-step #rent-chart-toggle { width:auto; flex:none; min-height:44px; padding:4px 0 4px 12px; border-left:1px solid #c6d5bd; font-size:12px; gap:8px; }
#living-step #rent-chart-panel { border-top:0; margin-top:0; padding-top:8px; }
#rent-chart { display:block; width:100%; height:124px; }
#rent-chart .rent-y-label { opacity:0; }


/* Approved parents' income B: a full-width reveal within the input card. */
#parent-income-controls .income-top-row { flex-wrap:wrap; gap:8px 12px; }
#parent-income-controls .income-top-row .field-label { flex:1 1 100%; }
#parent-income-controls .income-entry { margin-left:auto; flex:0 1 240px; max-width:100%; border-radius:10px; background:var(--oatmeal); padding:4px 10px; }
#parent-income-controls .income-entry input { background:transparent; }
#parent-income-controls #chart-toggle { justify-content:center; width:100%; padding:4px 12px; margin-top:8px; border-radius:10px; background:#edf5e7; min-height:44px; font-size:14px; }
#parent-income-controls #chart-toggle .fold-plus::before { content:'↓'; font-size:18px; }
#parent-income-controls #chart-toggle[aria-expanded=true] .fold-plus::before { content:'↑'; }
#parent-income-controls #chart-panel { border-top:0; padding-top:16px; }
#parent-income-controls .chart-value-label { font-size:12px; color:var(--muted); margin:0 0 6px; }


/* Rent B fidelity: compact app typography, 40px paint and a 44px hit target. */
#housing-control-card { padding:16px; }
#living-step .lodging-label-row { gap:2px; align-items:center; }
#living-step .lodging-label-row label { font-size:14px; font-weight:600; line-height:1.3; }
#living-step #lodging-block { grid-template-columns:minmax(0,1fr) auto; gap:6px; }
#living-step #lodging-block > .housing-money { justify-content:flex-end; gap:2px; width:auto; max-width:130px; font-size:24px; font-weight:700; }
#living-step #lodging { field-sizing:content; width:auto; min-width:3ch; max-width:7ch; font-size:24px; text-align:right; appearance:textfield; -moz-appearance:textfield; }
#living-step #lodging::-webkit-inner-spin-button, #living-step #lodging::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
#living-step #rent { margin:8px 0 0; }
#living-step .rent-summary-row { position:relative; isolation:isolate; padding:0 10px; margin-top:0; background:transparent; gap:0 10px; }
#living-step .rent-summary-row::before { content:''; position:absolute; z-index:-1; inset:2px 0; background:#edf5e7; border-radius:10px; }
#living-step #rent-chart-toggle { position:relative; min-height:44px; border-left:0; padding:0 0 0 12px; }
#living-step #rent-chart-toggle::after { content:''; position:absolute; left:0; top:50%; height:24px; transform:translateY(-50%); border-left:1px solid #c6d5bd; }
#living-step #rent-chart-panel { padding-top:4px; }
#rent-chart { height:94px; }
#rent-chart .series { stroke:#5c9f30; stroke-width:2; }

/* Compact sibling chooser B: UI intent is separate from engine family facts. */
#family-step #parents, #family-step #siblings-answer { display:flex; flex-wrap:wrap; gap:0; width:100%; max-width:100%; padding:0; border:1px solid var(--line); border-radius:10px; background:#fff; overflow:hidden; }
#family-step #parents button, #family-step #siblings-answer button { flex:1 1 auto; min-height:44px; border:1px solid transparent; border-radius:0; padding:8px 12px; background:transparent; font-size:13px; }
#family-step #parents button[aria-pressed="true"], #family-step #siblings-answer button[aria-pressed="true"] { background:#c8f6a7; border-color:#163300; }
#family-step #parents button::before, #family-step #siblings-answer button::before { content:none; }
#family-step .siblings-visual { margin:12px 0; }
#family-step .siblings-visual .sibling-add-buttons { gap:6px; margin:8px 0; }
#family-step .siblings-visual .sibling-add-buttons button { flex:0 1 auto; min-width:0; min-height:44px; font-size:12px; padding:8px 10px; }
#sibling-empty-prompt { margin:8px 0 0; font-size:12px; }
#sibling-rows .sibling-row { position:relative; margin:6px 0; border:1px solid #dce3d6; border-radius:10px; background:#fff; padding-right:44px; }
#family-step .siblings-visual .sibling { position:static; border:0; border-radius:0; margin:0; padding:0 10px; background:transparent; }
#sibling-rows .sibling > summary { display:flex; align-items:center; gap:8px; min-height:44px; list-style:none; font-size:12px; }
#sibling-rows .sibling > summary::-webkit-details-marker { display:none; }
.sibling-edit-label { margin-left:auto; font-size:12px; text-decoration:underline; }
#sibling-rows .sibling-remove { top:0; right:0; width:44px; height:44px; min-height:44px; border:0; background:transparent; font-size:20px; }
#sibling-rows .sibling[open] { padding-bottom:10px; }
#family-step button:focus-visible, #family-step summary:focus-visible { outline:2px solid #163300; outline-offset:2px; }

/* One-parent care B: compact menu, percentage to the right, details secondary. */
#sibling-rows .sibling-compact-care[open] { display:grid; grid-template-columns:minmax(90px,auto) minmax(0,1fr); column-gap:14px; align-items:start; }
#sibling-rows .sibling-compact-care[open] > summary { min-height:60px; }
#sibling-rows .sibling-compact-care[open] > summary .sibling-edit-label { display:none; }
.sibling-care-inline { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; padding:8px 0; }
#sibling-rows .sibling-care-trigger { width:132px; max-width:100%; min-height:44px; margin:0; padding:8px 10px; background:#c8f6a7; border:1px solid #163300; border-radius:8px; font:inherit; font-size:13px; color:#163300; }
.sibling-care-percentage { display:flex; align-items:center; gap:10px; flex:1 1 120px; min-width:0; }
#sibling-rows .sibling-care-percentage input { width:100%; min-width:60px; margin:0; min-height:44px; flex:1; }
.sibling-care-percentage output { flex:none; font-size:13px; font-weight:600; min-width:32px; }
.sibling-care-help { grid-column:1 / -1; font-size:12px; }
.sibling-care-help > summary { min-height:44px; align-content:center; cursor:pointer; }
@media(max-width:520px) {
  #sibling-rows .sibling-compact-care[open] { display:block; }
  #sibling-rows .sibling-compact-care[open] > summary { min-height:44px; }
  .sibling-care-inline { gap:10px; }
  #sibling-rows .sibling-care-trigger { width:128px; }
  .sibling-care-percentage { flex-basis:100px; }
}

/* Keep the care menu in page coordinates, directly beneath its trigger. */
.sibling-care-menu { position:relative; flex:none; max-width:100%; }
#sibling-rows .sibling-care-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; text-align:left; }
.sibling-care-trigger::after { content:''; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; }
.sibling-care-options { position:absolute; top:calc(100% + 4px); left:0; min-width:100%; z-index:30; padding:4px; border:1px solid #b7c4ae; border-radius:9px; background:#fff; box-shadow:0 4px 14px #16330022; }
.sibling-care-options[hidden] { display:none; }
#sibling-rows .sibling-care-options button { display:block; width:100%; min-height:44px; padding:8px 10px; border:0; border-radius:5px; background:#fff; color:#163300; font:inherit; font-size:13px; text-align:left; white-space:nowrap; cursor:pointer; }
#sibling-rows .sibling-care-options button[aria-checked="true"] { background:#e7f5da; font-weight:600; }
#sibling-rows .sibling-care-options button:hover { background:#f2efe9; }

/* Short parent-payment prompt with a keyboard-operable explanatory disclosure. */
.parent-payment-heading { display:flex; align-items:center; gap:6px; position:relative; margin-top:16px; }
.parent-payment-heading .field-label { margin:0; }
.parent-payment-help { flex:none; }
.parent-payment-help > summary { list-style:none; display:flex; align-items:center; justify-content:center; width:44px; height:44px; cursor:pointer; font-size:13px; font-weight:600; }
.parent-payment-help > summary::-webkit-details-marker { display:none; }
.parent-payment-help > summary::before { content:''; position:absolute; width:20px; height:20px; border:1px solid #657063; border-radius:50%; pointer-events:none; }
.parent-payment-help-content { position:absolute; top:100%; left:0; right:0; padding:12px 14px; background:#fff; border:1px solid #b7c4ae; border-radius:10px; box-shadow:0 4px 14px #16330022; z-index:31; font-size:12px; line-height:1.5; }
.parent-payment-help-content p { margin:0 0 8px; }
.parent-payment-help-content p:last-child { margin:0; }
#family-step #parent-payment { display:flex; gap:12px; width:min(100%,246px); padding:0; border:0; background:transparent; overflow:visible; }
#family-step #parent-payment button { flex:1 1 0; min-width:0; min-height:44px; padding:8px 14px; border:0; border-radius:10px; background:#f2f5f0; color:#173500; font-size:13px; font-weight:600; }
#family-step #parent-payment button::before,#family-step #parent-payment button[aria-pressed="true"]::before { content:none; }
#family-step #parent-payment button[aria-pressed="true"] { background:#e3f2dc; }
#family-step #parent-payment .parent-payment-check { display:none; margin-right:6px; }
#family-step #parent-payment button[aria-pressed="true"] .parent-payment-check { display:inline; }

/* Parental-income plot: use the full card width; emphasise engine-provided zero segments. */
#parent-income-controls #chart { display:block; width:100%; }
#parent-income-controls #chart .series-zero { stroke:#5c9f30; stroke-width:4; stroke-linecap:round; }
#parent-income-controls #chart-legend:empty { display:none; }

/* One lodging entry; compact optional help, not a second calculator. */
#living-step .lodging-help-toggle { font-family:Inter,sans-serif; font-size:15px; font-weight:400; min-width:44px; min-height:44px; padding:0; color:var(--muted); }
#living-step .lodging-help { margin:0 0 2px; padding:10px 12px; border:0; border-radius:8px; background:var(--oatmeal); font-size:12px; line-height:1.5; }
#living-step .lodging-help p { margin:0; font-size:12px; line-height:1.5; }
#living-step .lodging-help a { font-size:12px; min-height:44px; }

/* Income guidance belongs beside its label, not in the chart disclosure. */
#parent-income-controls .income-label-row { position:relative; display:flex; align-items:center; gap:2px; flex:1 1 100%; min-width:0; }
#parent-income-controls .income-label-row .field-label { flex:0 1 auto; }
#parent-income-help { position:static; margin:0; padding:0; border:0; }
#parent-income-help > summary { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; margin:0; padding:0; list-style:none; font:400 15px Inter,sans-serif; color:var(--muted); cursor:pointer; }
#parent-income-help > summary::-webkit-details-marker { display:none; }
#parent-income-help > summary::before { content:''; position:absolute; width:16px; height:16px; border:1px solid currentColor; border-radius:50%; }
#parent-income-help .income-help-content { position:absolute; z-index:10; left:0; top:100%; width:min(340px,100%); max-height:360px; overflow:auto; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 4px 16px #16330018; font-size:12px; line-height:1.5; }
#parent-income-help .small { margin:0 0 10px; font-size:12px; line-height:1.5; }
#parent-income-help .income-help-subheading { font-size:12px; font-weight:600; margin:0 0 6px; }
#parent-income-help a { display:inline-flex; align-items:center; min-height:44px; font-size:12px; line-height:1.5; }

/* Approved C: one invitation panel, with official sources in the explanation. */
.next-considerations { margin:24px 0 18px; padding:20px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.next-considerations > h2 { margin:0 0 16px; font-size:20px; font-weight:700; line-height:1.3; }
.next-considerations p { color:var(--muted); font-size:14px; line-height:1.55; }
.next-considerations .support-lead { margin:0; padding:16px; background:#edf5e7; border-radius:12px; }
.support-points { list-style:none; padding:0; margin:20px 0; }
.support-points li { position:relative; padding-left:16px; margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.55; }
.support-points li::before { content:''; position:absolute; left:0; top:.6em; width:6px; height:6px; background:#6fa744; border-radius:50%; }
.support-points strong { font-weight:600; color:var(--ink); }
.next-considerations .support-invitation { margin:0 0 14px; }
.support-cta { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px; border-radius:10px; background:#163300; color:#fff; font-size:14px; font-weight:600; text-decoration:none; }
.support-cta:hover { background:#254b0c; color:#fff; }
.support-cta:focus-visible { outline:3px solid #6fa744; outline-offset:3px; }
.youth-pathways { margin-top:0; }
.pathways-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.pathways-social { display:inline-flex; align-items:center; min-height:44px; color:#254b0c; font-size:14px; text-underline-offset:3px; }
.pathways-social:focus-visible { outline:3px solid #6fa744; outline-offset:3px; }
.how-body .support-sources { font-size:12px; line-height:1.6; }
.how-body h3 { font-size:14px; margin:16px 0 8px; }
@media(max-width:400px) { .next-considerations { padding:16px; } .next-considerations > h2 { font-size:18px; } }

/* Approved B: live results and plots share one pale-green inset panel. */
#housing-control-card, #parent-income-controls { padding:16px; }
#living-step #rent-chart-panel, #parent-income-controls #chart-panel { padding:12px; margin-top:8px; border:0; border-radius:12px; background:#f1f7eb; }
#living-step .rent-summary-row, .chart-result-row { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:0; margin:0 0 4px; background:transparent; }
#living-step .rent-summary-row::before { content:none; }
.rent-summary-label, .chart-result-label { font-size:13px; font-weight:600; line-height:1.4; }
.chart-result-value { display:flex; flex-direction:column; align-items:flex-end; flex:none; font-size:20px; font-weight:700; line-height:1.25; }
.chart-result-value .rent-summary-amount { font-size:20px; }
.chart-result-value small { font-size:11px; font-weight:400; color:var(--muted); margin-top:2px; }
#parent-income-controls #chart, #living-step #rent-chart { display:block; width:100%; height:auto; background:transparent; }
#living-step #rent-chart .axis { stroke:none; }
#living-step #rent-chart .payment-grid, #parent-income-controls #chart .payment-grid { stroke:#dbe7d1; stroke-width:1; }
#living-step #rent-chart .income-marker { stroke:#163300; stroke-opacity:.5; stroke-dasharray:4 4; }
#living-step #rent-chart .series, #parent-income-controls #chart .series { stroke:#6fa744; stroke-width:2; }
#living-step #rent-chart .dot, #parent-income-controls #chart .dot { fill:#163300; stroke:#fff; stroke-width:1.5; }
#parent-income-controls .income-top-row { flex-wrap:nowrap; align-items:center; gap:8px; }
#parent-income-controls .income-label-row { flex:1 1 0; }
#parent-income-controls .income-label-row .field-label { font-size:14px; line-height:1.3; flex:1 1 auto; }
#parent-income-controls .income-entry { position:relative; flex:0 1 155px; padding:0 0 16px; border-radius:0; background:transparent; gap:2px; }
#parent-income-controls .income-entry input { font-size:24px; font-weight:700; }
#parent-income-controls .income-entry > span:first-child { font-size:24px; font-weight:700; }
#parent-income-controls .income-entry > span:last-child { position:absolute; right:0; bottom:0; font-size:11px; font-weight:400; color:var(--muted); }
#parent-income-controls #income { margin:8px 0 0; }
@media(max-width:400px) {
  #parent-income-controls .income-top-row { flex-wrap:wrap; gap:0; }
  #parent-income-controls .income-label-row { flex-basis:100%; }
  #parent-income-controls .income-entry { flex-basis:155px; }
  .chart-result-value, .chart-result-value .rent-summary-amount { font-size:18px; }
}

/* One answer-choice treatment. Excludes actions, add/remove, help and sliders. */
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips, #sibling-rows .sibling-care-options) > button {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  background:#fff;
  color:var(--forest);
  border-color:#aeb8b1;
  box-shadow:none;
}
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips, #sibling-rows .sibling-care-options) > button::before {
  content:'';
  display:inline-block;
  box-sizing:border-box;
  flex:0 0 12px;
  width:12px;
  height:12px;
  margin:0;
  border:1.5px solid currentColor;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
}
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips, #sibling-rows .sibling-care-options) > button:is([aria-checked="true"], [aria-pressed="true"]) {
  background:var(--lime);
  color:var(--forest);
  border-color:var(--forest);
  box-shadow:inset 0 0 0 1px var(--forest);
}
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips, #sibling-rows .sibling-care-options) > button:is([aria-checked="true"], [aria-pressed="true"])::before {
  content:'';
  background:currentColor;
}
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips, #sibling-rows .sibling-care-options) > button:focus-visible {
  outline:2px solid var(--forest);
  outline-offset:-3px;
}
#page #family-step #parent-payment .parent-payment-check { display:none; }

/* Separate answer buttons consistently, including formerly joined family segments. */
#page { --choice-gap:8px; }
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips),
#page #family-step .siblings-visual .sibling-add-buttons { gap:var(--choice-gap); }
#page #family-step :is(#parents, #siblings-answer) {
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
#page :is(#living, #parents, #siblings-answer, #parent-payment, #student-age, #sibling-count, #sibling-rows .chips) > button {
  border-width:1px;
  border-style:solid;
  border-radius:9px;
}
/* Menu choices stay a vertical list, with the same breathing room between answers. */
#page #sibling-rows .sibling-care-options > button + button { margin-top:var(--choice-gap); }

/* Copy remains local; a readable fallback works without clipboard permission. */
.calculation-copy .small { font-size:12px; line-height:1.5; }
#copy-calculation-status:empty { display:none; }
#copy-calculation-fallback label { display:block; margin:12px 0 6px; font-size:13px; }
#copy-calculation-text { display:block; width:100%; max-width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; font:13px/1.5 Inter,sans-serif; color:var(--ink); background:#fff; resize:vertical; }

/* A local-copy action first, with only a compact optional calculation ledger. */
.compact-calculation > .support-cta { border:0; cursor:pointer; font-family:inherit; }
.compact-calculation > p { margin:12px 0 0; }
.compact-calculation > .small { font-size:12px; margin-top:6px; }
.compact-calculation .compact-ledger { margin:16px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; box-shadow:none; background:transparent; }
.compact-calculation .compact-ledger > summary { padding:12px 28px 0 0; min-height:44px; font-size:13px; }
.compact-calculation .compact-ledger > summary::after { right:0; }
.compact-calculation .how-body { padding:0; }
.compact-calculation .how-body .pay-lines { padding:12px 0 0; border:0; }
.compact-calculation .how-body .calculation-scope, .compact-calculation .how-body .calculation-rule-links { font-size:12px; line-height:1.5; }
#page .pathways-social { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; min-height:44px; padding:0; text-decoration:none; }
#page .pathways-social svg { width:22px; height:22px; flex:none; }

/* One maximum-rate opening card, consistent with the selected-housing card. */
#opening-card #opening-away { color:var(--lime); font-size:clamp(36px,6vw,54px); font-weight:800; letter-spacing:-1.5px; }
#opening-card .opening-ra { margin:8px 0 0; }
#opening-card .pay-kicker { margin:0 0 4px; }

.entitlemate-links { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin-top:22px; }
.entitlemate-links a { display:inline-flex; align-items:center; justify-content:center; min-width:48px; min-height:48px; color:var(--forest); border-radius:10px; }
.entitlemate-links .app-store-link { padding:0; background:transparent; }
.entitlemate-links .app-store-link img { display:block; width:135px; height:45px; }
.entitlemate-links .social-logo { background:#fff; border:1px solid #16330020; }
.entitlemate-links .youtube-logo { color:#e52320; }
.entitlemate-links a:hover { opacity:.8; }
.entitlemate-links a:focus-visible { outline:3px solid var(--forest); outline-offset:4px; }

.compact-calculation > .copy-introduction { margin:0 0 16px; }

/* Announce only confirmed clipboard writes, without moving focus or blocking taps. */
#copy-calculation-status.copy-success-toast {
  position:fixed; left:50%; bottom:max(24px, env(safe-area-inset-bottom));
  transform:translateX(-50%); z-index:1000; width:max-content;
  max-width:calc(100vw - 32px); box-sizing:border-box; margin:0;
  padding:16px 20px; border:1px solid #a3e86b; border-radius:12px;
  background:#163300; color:#fff; font-size:15px; font-weight:600;
  line-height:1.45; box-shadow:0 8px 28px #0003; pointer-events:none;
}

/* Keep the ledger indicator beside its title, inside the native full-width summary. */
#how-details > summary {
  display:flex; flex-wrap:nowrap; align-items:center; justify-content:flex-start;
  gap:8px; width:100%; box-sizing:border-box; padding-right:0;
}
#how-details > summary strong { min-width:0; overflow-wrap:anywhere; }
#how-details > summary::after {
  position:static; margin-left:0; flex:0 0 auto; line-height:1;
}
