/* cooflestyle_value.css Last changed: v1289 - sticky calculator top bar and inline expanding YX help */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: #eef2f7;
    color: #233344;
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    letter-spacing: normal;
    padding: max(8px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
}
.calculatorform {
    width: min(960px, 100%);
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(35,55,86,.09);
    overflow: clip;
}
.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border-top: 4px solid #fff2af;
    border-bottom: 1px solid #dce4ee;
}
.calculator-identity { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.calculator-brand { color: #193d66; font-size: 18px; font-weight: 700; line-height: 1.15; }
.version-label { font-size: 11px; color: #66778b; line-height: 1.3; margin-top: 3px; }
.languagebar { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.languagebar button {
    min-width: 38px; min-height: 33px; padding: 5px 8px;
    border: 1px solid #cbd7e6; border-radius: 8px;
    background: #fff; color: #2c4d72; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.languagebar button:hover { background: #e9f1ff; }
.languagebar button.active { background: #155cda; border-color: #155cda; color: #fff; }
.calculator-content { padding: 16px 16px 22px; }
h1 { color: #1c395f; font-size: clamp(20px, 3.2vw, 28px); font-weight: 700; line-height: 1.3; text-align: left; margin: 0 0 18px; }
.fuel-settings {
    margin: 0 0 15px;
    padding: 14px 14px 12px;
    background: #f4f8ff;
    border: 1px solid #dce8fa;
    border-radius: 12px;
    text-align: left;
}
.fuel-settings > label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.fuel-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fuel-controls input, .fuel-controls select, .assumption-scenario select {
    min-height: 40px; padding: 7px 10px;
    border: 1px solid #c4d1e0; border-radius: 8px;
    color: #243850; background: #fff; font: inherit;
}
.fuel-controls input:focus-visible, .fuel-controls select:focus-visible,
.assumption-scenario select:focus-visible, .a:focus-visible { outline: 2px solid #2570e4; outline-offset: 1px; }
#GasolinePrice { width: 100px; text-align: right; }
#CurrencyUnit { max-width: min(325px, 100%); flex: 1 1 175px; }
.fuel-controls .other-currency { width: 130px; text-transform: uppercase; }
.fuel-controls [hidden] { display: none !important; }
.unitnote { font-size: 12px; color: #51647d; margin: 8px 0 0; }
.coin-rate-info { margin: 8px 0 0; font-weight: 700; font-size: 13px; color: #194e85; }
.assumptions {
    margin: 12px 0 0; padding: 8px 11px;
    font-size: 12px; color: #364c67;
    background: #fff; border: 1px solid #d7e0ec; border-radius: 8px;
}
.assumptions summary { cursor: pointer; font-size: 13px; font-weight: 650; color: #205a9d; }
.assumptions p { margin: 9px 0; line-height: 1.5; }
.assumptions a { color: #155cda; }
.assumption-scenario { margin-top: 12px; padding: 10px; border-radius: 8px; background: #f4f7fb; }
.assumption-scenario label { display: block; margin-bottom: 6px; font-weight: 650; }
.assumption-scenario select { max-width: 100%; width: min(430px, 100%); }
.assumption-scenario p { margin-bottom: 0; }
.intro { text-align: left; margin: 16px 2px; color: #405875; }
.box {
    text-align: left; margin: 11px 0; width: 100%;
    background: #eff5ff; border: 1px solid #d6e5fa;
    border-radius: 10px; padding: 13px 15px;
}
.summarybox { line-height: 1.65; }
.bottomsummary { margin-bottom: 2px; }
.a {
    width: 90px; max-width: 100%; text-align: center; font: inherit;
    padding: 7px 5px; border: 1px solid #c4d1e0; border-radius: 7px;
    background: white; color: #193d66;
}
.b { color: #163f74; font-size: 108%; font-weight: 750; font-variant-numeric: tabular-nums; }
table { margin: 12px 0; width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #dce4ee; border-radius: 10px; }
td { padding: 10px 9px; vertical-align: middle; border-bottom: 1px solid #e5eaf1; }
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) { background-color: #f5f8fc; }
tr:nth-child(odd) { background-color: #fff; }
td:nth-child(1) { padding-left: 13px; }
td:nth-child(2) { text-align: right; width: 105px; }
td:nth-child(3) { padding-left: 7px; width: 140px; color: #51647d; }
hr { border: 0; border-top: 1px solid #d3dfed; margin: 7px 0; }
.communitychoices { text-align: left; line-height: 2; }
.communitychoices label { display: inline-block; margin-right: 12px; white-space: nowrap; }
.communitychoices input { accent-color: #155cda; }
input:disabled { opacity: .66; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
@media (max-width: 650px) {
    body { padding: 0 0 max(12px, env(safe-area-inset-bottom)); font-size: 13px; }
    .calculatorform { border-radius: 0; border-left: 0; border-right: 0; }
    .calculator-header { padding: 9px 10px; gap: 6px; }
    .calculator-brand { font-size: 15px; }
    .languagebar { gap: 3px; }
    .languagebar button { min-width: 32px; min-height: 31px; padding: 4px 5px; font-size: 11px; }
    .calculator-content { padding: 12px 8px 20px; }
    h1 { margin-bottom: 12px; }
    .fuel-settings { padding: 11px 9px; }
    #CurrencyUnit { max-width: calc(100vw - 143px); }
    td { padding: 8px 4px; }
    td:nth-child(1) { padding-left: 7px; }
    td:nth-child(2) { width: 78px; }
    td:nth-child(3) { width: 80px; min-width: 65px; padding-left: 4px; }
    .a { width: 69px; }
    .box { padding: 10px; }
}

/* v1276: compact, Mapsites-like controls and collapsible details. */
.fuel-settings .inline-help-line { display:flex; align-items:center; gap:12px; margin-top:6px; min-height:20px; }
.inline-label { display:flex; align-items:center; gap:8px; margin-bottom:7px; }
.inline-label label { font-weight:650; }
.inline-help { display:inline-block; position:relative; vertical-align:middle; }
.inline-help > summary { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border:1px solid #c6d6e9; border-radius:50%; background:#f4f8ff; color:#205a9d; font:bold 12px/1 system-ui,sans-serif; cursor:pointer; list-style:none; user-select:none; }
.inline-help > summary::-webkit-details-marker { display:none; }
.inline-help > summary::marker { content:''; }
.inline-help[open] > div { position:relative; margin:5px 0 8px; max-width:min(520px,85vw); padding:10px; border:1px solid #ccdaeb; border-radius:9px; background:#fff; color:#43536a; font-size:12px; line-height:1.5; box-shadow:0 5px 15px rgba(20,40,70,.09); }
.fx-status { font-size:11px; color:#66788f; }
.assumption-scenario { margin-top:10px; padding:10px 0 3px; border-top:1px solid #dbe6f6; background:transparent; }
.assumption-scenario select { width:min(390px,100%); }
.custom-percentage { margin-top:8px; font-size:12px; }
.custom-percentage[hidden] { display:none; }
.custom-percentage input { width:72px; min-height:34px; margin:0 6px; padding:5px; border:1px solid #c4d1e0; border-radius:7px; font:inherit; }
.storage-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:12px; }
.storage-actions button { border:1px solid #155cda; border-radius:8px; background:#155cda; color:white; padding:7px 11px; font:600 12px/1.3 system-ui,sans-serif; cursor:pointer; }
.storage-actions button.secondary { color:#235587; border-color:#b7c9de; background:#fff; }
.storage-actions #storageStatus { font-size:11px; color:#486584; }
.result-details { margin:10px 0 12px; border:1px solid #d6e5fa; border-radius:10px; overflow:hidden; }
.result-details > summary { padding:12px 14px; font-weight:700; font-size:14px; cursor:pointer; color:#244a74; background:#eff5ff; }
.result-details > table { border:0; border-top:1px solid #dce4ee; border-radius:0; margin:0; }
.result-details .bottomsummary { margin:10px; width:calc(100% - 20px); }
.result-details table tr:first-child td { border-top:0; }
@media (max-width:650px) { .result-details > summary { font-size:13px; padding:11px; } .storage-actions { gap:6px; } .storage-actions button { font-size:11px; } }

/* v1277 — Samsung/mobile: one-row fuel controls and contextual help, not full-height fields. */
.fuel-controls { display:flex; flex-wrap:nowrap; gap:6px; align-items:center; min-width:0; }
.fuel-controls #GasolinePrice { flex:0 0 88px; width:88px; min-width:0; height:36px; min-height:36px; padding:5px 7px; text-align:right; }
.fuel-controls #CurrencyUnit { flex:1 1 0; width:0; min-width:0; max-width:none; height:36px; min-height:36px; padding:5px 4px; text-overflow:ellipsis; font-size:12px; }
.fuel-controls .fuel-help { flex:0 0 22px; min-width:22px; }
.fuel-controls .other-currency:not([hidden]) { flex:0 0 90px; width:90px; font-size:12px; }
.fuel-controls:has(.other-currency:not([hidden])) { flex-wrap:wrap; }
.fuel-help > .fuel-help-content { position:absolute !important; top:25px; right:0; left:auto; z-index:200; width:min(315px,calc(100vw - 38px)); max-width:none !important; max-height:60vh; overflow:auto; margin:0 !important; text-align:left; }
.fuel-help-content p { margin:4px 0 7px; }
.fuel-help-content a { color:#155cda; }
.source-links { margin-top:8px; border-top:1px solid #d9e3ef; padding-top:8px; }
.fuel-settings .fx-status { display:block; margin-top:5px; font-size:11px; }
.inline-help[open]:not(.fuel-help) > div { position:absolute; top:22px; left:0; z-index:150; width:min(285px,calc(100vw - 34px)); max-width:none; margin:0; }
table { overflow:visible; }
tr.section-heading > td { padding:12px 13px; background:#ecf4ff; color:#214b7b; border-top:2px solid #c4d7f1; }
.fee-assumption { display:block; margin-top:4px; font-size:12px; font-weight:400; color:#627692; }
tr.total-row > td { background:#eaf3ff; border-top:1px solid #cadcf2; font-weight:650; }
.validation-note { display:block; font-size:12px; color:#a24820; }
.validation-note:empty { display:none; }
.storage-actions.bottom-storage { margin-top:20px; padding:14px 2px 3px; border-top:1px solid #dae4f1; }
@media (max-width:650px) {
  .fuel-settings > label { margin-bottom:6px; font-size:12px; }
  .fuel-controls #GasolinePrice { flex-basis:78px; width:78px; }
  .fuel-controls #CurrencyUnit { font-size:12px; }
  .fuel-settings { padding:9px 7px; }
  td .inline-help > summary { width:18px; height:18px; font-size:11px; }
  .fee-assumption { font-size:11px; }
  tr.section-heading > td { padding:9px; }
}

#rideCountRow[hidden] { display:none; }

/* v1278: Help panels are viewport-contained, especially on Samsung-sized screens. */
.inline-help[open] > div { overflow-wrap:anywhere; overflow:auto; }
@media (max-width:650px) {
  .inline-help[open] > div,
  .inline-help.fuel-help[open] > .fuel-help-content {
    position:fixed !important;
    top:auto !important;
    left:12px !important;
    right:12px !important;
    bottom:max(12px,env(safe-area-inset-bottom)) !important;
    width:auto !important;
    max-width:none !important;
    max-height:min(60vh,440px) !important;
    overflow:auto !important;
    margin:0 !important;
    padding:14px !important;
    z-index:10000 !important;
    background:#fff;
    border:1px solid #b7cce6;
    border-radius:12px;
    box-shadow:0 8px 30px rgba(16,39,72,.26);
  }
  .calculatorform { overflow:visible; }
  .calculator-content { overflow:visible; }
  table { table-layout:fixed; }
  td,th { overflow-wrap:anywhere; min-width:0; }
}
/* Compact weekly costs with optional breakdown rather than duplicated totals. */
.fee-details .fee-summary { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.fee-summary-amount { white-space:nowrap; font-variant-numeric:tabular-nums; }
.fee-details .detail-inner { padding:10px 12px 13px; }
.fee-details .fee-assumption { font-size:12px; line-height:1.5; margin:3px 0 10px; }
.fee-details table { margin:0; width:100%; }
.fee-details td:last-child { width:62px; font-size:12px; }
#rideCountRow:not([hidden]) { margin:8px 0; }
/* Comparison: prominent student benefit, but transparent household accounting. */
.comparison { margin-top:19px; padding:15px 13px; border:1px solid #d0e0f4; background:#f8fbff; border-radius:12px; }
.comparison h2 { font-size:19px; margin:0 0 8px; color:#173f72; }
.results-explanation { margin:7px 0 12px; color:#445b72; line-height:1.5; }
.comparison-quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.comparison-quick > div { background:#fff; border:1px solid #d4e2f4; padding:12px 10px; border-radius:10px; min-width:0; display:flex; flex-direction:column; gap:5px; }
.comparison-quick > div.featured { border-color:#81addd; background:#edf5ff; }
.comparison-quick strong { color:#153f7c; font-size:clamp(15px,2.5vw,23px); overflow-wrap:anywhere; }
.comparison-quick small { color:#61738a; font-size:11px; }
.student-kickback { padding:10px 9px; background:#eff6ff; border-radius:9px; color:#1b4a80; }
.student-kickback strong { white-space:nowrap; }
.comparison-details { margin-top:14px; background:white; }
.comparison-scroll { overflow-x:auto; }
.comparison-table { font-size:12px; width:100%; border-collapse:collapse; table-layout:fixed; }
.comparison-table thead { background:#e5effc; }
.comparison-table td,.comparison-table th { border-bottom:1px solid #dbe5f1; padding:9px 7px; text-align:right; font-variant-numeric:tabular-nums; }
.comparison-table th:first-child { text-align:left; width:47%; }
.comparison-table th:not(:first-child),.comparison-table td { width:26.5%; overflow-wrap:anywhere; }
.comparison-table .subtotal { font-weight:650; background:#f4f8fc; }
.comparison-table .total-row { font-weight:800; background:#e4f1ff; }
.calculation-note { font-size:11px; color:#62758b; line-height:1.5; margin:11px 2px 5px; }
.other-estimates { margin-top:13px; }
@media(max-width:650px) {
  .comparison { padding:12px 8px; }
  .comparison h2 { font-size:17px; }
  .comparison-quick { gap:6px; }
  .comparison-quick > div { padding:9px 6px; }
  .comparison-quick strong { font-size:15px; }
  .comparison-table { font-size:11px; }
  .comparison-table td,.comparison-table th { padding:7px 4px; }
  .fee-details .fee-summary { font-size:12px; }
  .fee-summary-amount { font-size:12px; }
}

.comparison-quick .parent-payments { display:block; border-top:1px solid #e2eaf5; padding-top:7px; font-size:11px; color:#425d79; }
.comparison-quick .parent-payments strong { font-size:12px; color:#173f72; }

/* v1279 — driver/road data and proposed card allocation without horizontal overflow. */
.additional-benefit td { background:#eef6ff; border-top:1px solid #d3e3f7; }
.metrics-heading td { font-weight:650; color:#27547d; background:#f1f6fc; padding:11px 13px; }
.community-vip-section { margin:14px 10px 12px; border:1px solid #cadaee; border-radius:9px; overflow:hidden; }
.community-vip-section > summary { cursor:pointer; padding:12px; background:#edf4ff; color:#234d80; font-weight:700; line-height:1.35; }
.community-vip-body { padding:10px 0 12px; }
.community-vip-body > .calculation-note, .limited-vip-scenario > .calculation-note { margin:8px 13px; }
.community-vip-body table { margin:0; border:0; border-radius:0; }
.limited-vip-scenario { border-top:1px solid #d6e4f2; margin-top:13px; padding-top:12px; }
.limited-vip-heading { display:flex; align-items:center; gap:8px; padding:6px 13px; line-height:1.4; }
.limited-vip-heading label { flex:1; font-weight:650; }
.limited-vip-heading .a { flex:0 0 74px; width:74px; }
.community-vip-body .bottomsummary { margin:8px 10px 12px; }
@media(max-width:650px) {
  .community-vip-section { margin:10px 5px; }
  .community-vip-section > summary { padding:11px 9px; font-size:12px; }
  .community-vip-body table td { font-size:11px; padding:7px 4px; }
  .community-vip-body table td:nth-child(2) { width:85px; }
  .community-vip-body table td:nth-child(3) { width:52px; }
  .limited-vip-heading { padding:8px; font-size:12px; }
  .community-vip-body table strong { overflow-wrap:anywhere; }
}

/* v1281: annual narrative, with expandable savings components */
.top-story { display:flex; flex-direction:column; gap:9px; margin:10px 0 18px; }
.top-story .story-card { margin:0; padding:12px 15px; }
.top-story p { margin:0; line-height:1.55; }
.top-story .story-breakdown { margin:10px 0 0; background:white; }
.top-story .story-breakdown summary { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.top-story .story-breakdown .detail-inner { padding:8px 12px 12px; }
.top-story .story-breakdown .detail-inner p { padding:5px 0; }
.story-totals { margin:8px 0 0; }
.story-totals > div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:6px 0; border-top:1px solid #d6e5fa; }
.story-totals dt { flex:1; }
.story-totals dd { margin:0; text-align:right; white-space:nowrap; }
.story-totals > div:last-child { font-weight:750; }

/* v1282: numeric summary alignment and visible, accessible disclosure arrows. */
.top-story .story-breakdown { margin:0; }
.top-story .story-breakdown summary { display:flex; flex-wrap:nowrap; gap:10px; align-items:baseline; cursor:pointer; list-style:none; padding:9px 10px; }
.top-story .story-breakdown summary::-webkit-details-marker { display:none; }
.top-story .story-breakdown summary::marker { content:''; }
.top-story .story-summary-label { min-width:0; flex:1 1 auto; }
.top-story .story-summary-value { flex:0 0 auto; margin-left:auto; text-align:right; white-space:nowrap; font-weight:750; font-variant-numeric:tabular-nums; }
.top-story .story-arrow { display:inline-block; flex:0 0 auto; margin-left:2px; width:8px; height:8px; border-right:2px solid #205a9d; border-bottom:2px solid #205a9d; transform:translateY(-2px) rotate(45deg); transition:transform 120ms ease; }
.top-story details[open] .story-arrow { transform:translateY(2px) rotate(225deg); }
.top-story .story-amount-rows > div { display:flex; align-items:baseline; gap:12px; padding:5px 0; }
.top-story .story-amount-rows > div > span:first-child { flex:1 1 auto; min-width:0; }
.top-story .story-detail-value { margin-left:auto; flex:0 0 auto; white-space:nowrap; text-align:right; font-variant-numeric:tabular-nums; }
.top-story .story-household .story-totals { margin:0; padding:6px 12px 10px; }
.top-story .story-totals dd { font-variant-numeric:tabular-nums; }
@media(max-width:420px) {
 .top-story .story-breakdown summary { gap:7px; padding:8px; font-size:12px; }
 .top-story .story-summary-value { font-size:12px; }
 .top-story .story-amount-rows > div { font-size:12px; }
}

/* v1283: compact instruction and YX area explanation. */
.top-story .story-modify-hint { margin-top:8px; font-size:0.82em; font-style:italic; opacity:0.78; }
.top-story .story-offer-line { margin-top:10px; }
.top-story .story-yx-help { display:inline-block; vertical-align:middle; margin-left:3px; }
.top-story .story-yx-help > summary { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; font-size:12px; font-weight:700; cursor:pointer; }
.top-story .story-yx-help > div { max-width:460px; font-size:0.9em; padding:7px 0; }

/* v1285: Area-only allocation story; keep values aligned at narrow widths. */
.top-story .story-area-projection[hidden] { display:none; }
.top-story .story-area-projection .area-projection-intro { margin-bottom:9px; }
.top-story .area-projection-rows { margin:4px 0 12px; }
.top-story .area-projection-rows > div { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid #dbe7f4; }
.top-story .area-projection-rows dt { flex:1 1 60%; min-width:0; }
.top-story .area-projection-rows dd { margin:0; flex:0 1 auto; text-align:right; white-space:nowrap; font-size:0.94em; font-variant-numeric:tabular-nums; }
.top-story .area-projection-rows dd strong { color:#194b85; }
.top-story .area-company-intro { font-weight:650; margin-top:10px; }
.top-story .story-area-projection .calculation-note { font-size:11px; line-height:1.55; margin-top:8px; }
@media(max-width:440px) { .top-story .area-projection-rows > div { gap:7px; } .top-story .area-projection-rows dt { font-size:12px; } .top-story .area-projection-rows dd { font-size:12px; } }

/* v1286: A single savings ledger with a household recap; signs before right-aligned amounts. */
.top-story .story-savings-combined .detail-inner { padding:8px 12px 12px; }
.top-story .story-savings-combined .story-amount-rows > div { padding:7px 0; }
.top-story .story-savings-combined .story-math-prefix { display:inline-block; min-width:1.3em; text-align:center; font-weight:700; color:#234d80; }
.top-story .story-savings-combined .story-net-line { border-top:1px solid #cbdcf1; font-weight:750; padding-top:10px; }
.top-story .story-savings-combined .story-recap { border-top:2px solid #cbdcf1; margin-top:13px; padding-top:10px; }
.top-story .story-savings-combined .story-recap-heading { font-weight:750; margin:0 0 4px; }
.top-story .story-savings-combined .story-totals { margin:0; }
.top-story .story-savings-combined .story-totals > div:first-child { border-top:0; }
.top-story .story-savings-combined .story-totals > div:last-child { color:#184677; }
@media(max-width:420px) {
 .top-story .story-savings-combined .detail-inner { padding:7px 9px 11px; }
 .top-story .story-savings-combined .story-amount-rows > div { gap:7px; }
 .top-story .story-savings-combined .story-detail-value { font-size:12px; }
}


/* v1287 — Keep the help marker together with the final YX-area word. */
.top-story .story-yx-nowrap { display:inline; white-space:nowrap; }
.top-story .story-yx-help { display:inline-block; margin-left:3px; vertical-align:baseline; }
.top-story .story-yx-help > summary { vertical-align:middle; }
/* Area distributions have no intermediate rules; emphasize only the combined total. */
.top-story .area-projection-rows > div { border-bottom:0; }
.top-story .area-projection-rows > div.area-projection-total { border-top:1px solid #cbdcf1; border-bottom:1px solid #cbdcf1; padding:10px 0; margin-top:7px; font-weight:750; }
.top-story .area-projection-rows > div.area-projection-total dd { font-weight:750; }
.top-story .story-area-projection .area-tax-note { font-style:italic; font-size:0.78em; }
.top-story .story-area-projection .area-counterfactual { margin-top:12px; }
.top-story .story-area-projection .area-purpose { margin-top:12px; }
.top-story .story-governance-more { margin-top:5px; }
.top-story .story-governance-more > summary { display:list-item; cursor:pointer; color:#205a9d; font-weight:600; padding:2px 0; }
.top-story .story-governance-more > p { padding-top:7px; }


/* v1288 — Treat preposition + “YX area.” + inline ? as one atomic inline item.
   The entire tail may wrap, but the small ? must never wrap independently. */
.top-story .story-yx-nowrap {
    display:inline-flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:4px;
    white-space:nowrap;
    vertical-align:middle;
}
.top-story .story-yx-help { display:inline-flex; flex:0 0 auto; margin:0; vertical-align:middle; }
.top-story .story-yx-help > summary { flex:0 0 18px; }
.top-story .story-offer-reason { margin-top:8px; }
/* Distinct, readable invitation above the editable scenario controls. */
.top-story .story-participation {
    margin-top:4px;
    padding:12px 15px;
    border-left:3px solid #2a6c9c;
    border-radius:6px;
    background:#f2f7ff;
    color:#184677;
}
.top-story .story-participation p { font-weight:700; font-style:italic; line-height:1.6; }

/* v1289 — Sticky header, responsive Mapsites link and session indicator. */
.calculator-header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 900;
    box-shadow: 0 2px 8px rgba(35,55,86,.10);
}
.calculator-meta { display:flex; align-items:center; flex-wrap:wrap; gap:3px 10px; margin-top:4px; }
.calculator-meta .version-label { margin-top:0; }
.calculator-session { color:#586d81; font-size:11px; }
.calculator-mapsite-link { font-size:11px; color:#155cda; font-weight:650; text-decoration:underline; text-underline-offset:2px; }
.calculator-mapsite-link:focus-visible { outline:2px solid #155cda; outline-offset:3px; }
@media (max-width:650px) {
    .calculator-meta { gap:2px 7px; }
    .calculator-mapsite-link, .calculator-session, .calculator-meta .version-label { font-size:10px; }
    .calculator-header { padding-top: max(9px,env(safe-area-inset-top)); }
}
/* v1289 — Unlike contextual popovers, YX help opens as a normal full-width
   explanatory block; no fixed overlay, clipped text or horizontal scroll. */
.top-story .story-yx-help > div { display:none; }
.top-story .story-yx-expanded[hidden] { display:none !important; }
.top-story .story-yx-expanded {
    display:block;
    width:100%;
    margin:9px 0 7px;
    padding:10px 13px;
    border:1px solid #ccdaeb;
    border-radius:9px;
    background:#fff;
    color:#43536a;
    font-size:.86em;
    line-height:1.5;
    white-space:normal;
    overflow-wrap:break-word;
}

.story-yx-expanded .calculator-mapsite-link { display:block; width:max-content; max-width:100%; margin-top:6px; }
