@font-face {
  font-family: 'DM Sans';
  src: url('fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f6ee;
  --white: #fffef9;
  --ink: #172f27;
  --muted: #516257;
  --green: #25594b;
  --green-dark: #173f34;
  --accent: #914729;
  --sage: #e9eee4;
  --line: #d6dcd1;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 400 1rem/1.58 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); line-height: .99; }
h1 { font-size: clamp(3.5rem, 7vw, 6.25rem); letter-spacing: -.031em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.75rem); letter-spacing: -.019em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 74rem); margin-inline: auto; }
.visually-hidden { position: absolute; 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; z-index: 5; left: 1rem; top: 1rem; transform: translateY(-220%); background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; gap: .66rem; align-items: center; width: fit-content; text-decoration: none; font: 1.66rem/1 var(--serif); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green-dark); color: #f1eedb; }
.brand-mark svg { width: 1.35rem; height: 1.35rem; }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: clamp(1.15rem, 3.2vw, 2.75rem); }
.header-inner nav a { text-decoration: none; font-weight: 600; font-size: .93rem; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; }
.search-button, .icon-button { display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink); }
.search-button { justify-self: end; gap: .4rem; padding: .43rem .75rem; font-size: .88rem; font-weight: 600; min-height: 2.5rem; }
.search-button svg, .icon-button svg { width: 1.14rem; height: 1.14rem; }
.search-button:hover, .icon-button:hover { background: var(--sage); }

.hero { display: grid; grid-template-columns: .98fr 1.02fr; align-items: center; gap: clamp(2rem, 5vw, 4.9rem); padding-block: 3.8rem 4.1rem; }
.hero h1 { font-size: clamp(3.9rem, 6.5vw, 6.15rem); margin-block: .95rem 1.15rem; }
.hero h1 em { color: var(--green); white-space: nowrap; }
.hero-copy > p:not(.eyebrow) { max-width: 29rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.62; color: var(--muted); }
.eyebrow { display: block; font: 700 .78rem/1.45 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.ruled { display: flex; align-items: center; gap: .66rem; }
.ruled::before { content: ''; width: 1.7rem; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero-image { height: clamp(22rem, 32vw, 30rem); background: #456c70; border-radius: 3px; overflow: hidden; }
.hero-image img { height: 100%; width: 100%; object-fit: cover; object-position: 52% center; }
.hero-actions, .calculator-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.1rem; padding: .62rem 1.12rem; border: 1px solid var(--green-dark); border-radius: 3px; font-size: .91rem; font-weight: 700; text-decoration: none; transition: background .15s ease, color .15s ease; }
.button.primary { background: var(--green-dark); color: #fffdf4; }
.button.primary:hover { background: #285f50; border-color: #285f50; }
.button.secondary { background: transparent; color: var(--green-dark); }
.button.secondary:hover { background: var(--sage); }

.tool-band { background: var(--sage); border-block: 1px solid var(--line); padding-block: 3rem 3.25rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem 2rem; margin-bottom: 1.45rem; }
.section-heading p { margin-top: .45rem; color: var(--muted); }
.text-link, .card-link { color: var(--green-dark); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: .27em; text-decoration-color: #739184; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.tool-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.tool-card, .guide-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.3rem 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: 3px; text-decoration: none; transition: background .17s ease, border-color .17s ease; }
.tool-card:hover, .guide-card:hover { background: #fdfcf4; border-color: #829989; }
.tool-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; background: #e4ede1; color: #275644; border-radius: 3px; margin-bottom: .85rem; }
.tool-icon svg { width: 1.55rem; height: 1.55rem; }
.tool-card:nth-child(2) .tool-icon { background: #ece8d8; color: #6e5728; }
.tool-card:nth-child(3) .tool-icon { background: #e0ebe9; color: #285750; }
.tool-card:nth-child(4) .tool-icon { background: #efe2d8; color: var(--accent); }
.tool-card h3, .guide-card h3, .article-aside h2 { margin: .1rem 0 .35rem; font: 400 2rem/1.02 var(--serif); letter-spacing: -.012em; }
.tool-card p, .guide-card p { color: var(--muted); line-height: 1.45; font-size: .97rem; margin-bottom: 1rem; }
.card-link { margin-top: auto; }
.guide-card .eyebrow { margin-bottom: .65rem; }
.reading { padding-block: 4.25rem 4.5rem; }
.feature { display: grid; grid-template-columns: 1.07fr 1fr; min-height: 21rem; margin-bottom: 3.6rem; background: var(--green-dark); color: var(--white); border-radius: 3px; overflow: hidden; }
.feature img { height: 100%; width: 100%; object-fit: cover; }
.feature-copy { align-self: center; padding: 2.65rem clamp(1.6rem, 4vw, 3.6rem); }
.feature-copy h2 { margin: .65rem 0 .9rem; }
.feature-copy p:not(.eyebrow) { color: #e1e9da; margin-bottom: 1.15rem; }
.feature-copy .eyebrow { color: #e3c7a2; }
.feature-copy .text-link { color: #f4eddc; text-decoration-color: #9fb9a8; }
.feature-copy a:focus-visible, .site-footer a:focus-visible { outline-color: #e3c7a2; }

.site-footer { background: #172f27; color: #fbf9ef; }
.footer-main, .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; }
.footer-main { padding-block: 2.4rem; }
.footer-main .brand-mark { background: #e5e9da; color: #1f493c; }
.footer-main p { color: #d7e0d5; margin-top: .65rem; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 1.35rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid #496157; color: #d7e0d5; padding-block: 1.15rem; }
.footer-bottom small { font-size: .83rem; }

.breadcrumbs { margin-top: 1.3rem; font-size: .86rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; margin-right: .6rem; color: #68786c; }
.page-intro { margin-block: 2.6rem 2.15rem; }
.page-intro h1 { margin-block: .64rem .8rem; }
.section-lead { color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.25rem); max-width: 46rem; }
.listing { min-height: 28rem; padding-bottom: 4.5rem; }
.page-grid { margin-top: 1.65rem; }
.topic-nav { display: flex; flex-wrap: wrap; gap: .6rem; }
.topic-nav a { display: inline-flex; align-items: center; min-height: 2.6rem; border: 1px solid #aab7ac; border-radius: 100px; padding: .35rem .92rem; font-weight: 600; font-size: .92rem; text-decoration: none; }
.topic-nav a[aria-current] { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.topic-nav a:not([aria-current]):hover { background: var(--sage); }
.topic-tools { margin-top: 3.15rem; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related { margin-block: 2.75rem 4.2rem; }

.article .page-intro { max-width: 56rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(15rem, 1fr); align-items: start; gap: clamp(2rem, 7vw, 6rem); }
.article-body { font-size: 1.1rem; max-width: 48rem; }
.article-body section { scroll-margin-top: 1rem; margin: 1.9rem 0; }
.article-body section h2, .methodology h2 { font-size: clamp(2.05rem, 4vw, 3rem); margin-bottom: .5rem; }
.article-body section p + p { margin-top: .8rem; }
.takeaway { padding: 1rem 1.15rem; border-left: 3px solid var(--green); background: var(--sage); color: var(--ink); font-size: 1.07rem; font-weight: 600; }
.sources { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.sources ul { padding-left: 1.15rem; }
.sources li { margin-bottom: .4rem; }
.sources a, .article-aside a { color: var(--green-dark); }
.article-aside { position: sticky; top: 1.25rem; }
.article-aside nav, .aside-tool { padding: 1.15rem; border: 1px solid var(--line); background: var(--white); border-radius: 3px; }
.article-aside ul { margin: .7rem 0 0; padding-left: 1.1rem; }
.article-aside li { margin-block: .3rem; font-size: .93rem; }
.aside-tool { margin-top: 1rem; background: var(--sage); }
.about { padding-bottom: 2.6rem; }
.idea-directory { padding-bottom: 4rem; }
.idea-notice { margin-bottom: 1.6rem; max-width: 60rem; }
.idea-family-nav { margin-bottom: 2.4rem; }
.idea-group { margin-top: 2.6rem; scroll-margin-top: 1rem; }
.idea-group .section-heading { margin-bottom: 1rem; }
.idea-group .section-heading h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.idea-card h3 { font-size: 1.55rem; }
.idea-card p { font-size: .9rem; }
.idea-page { padding-bottom: 3rem; }
.idea-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.idea-facts > div { padding: 1rem; border: 1px solid var(--line); background: var(--white); border-radius: 3px; }
.idea-facts p { margin-top: .3rem; font-weight: 600; }
.idea-section, .idea-content { margin-top: 2rem; max-width: 62rem; }
.idea-method, .idea-faq { min-width: 0; overflow-wrap: anywhere; margin-top: 2rem; max-width: 62rem; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.verified-rules { overflow-wrap: anywhere; margin-top: 2rem; max-width: 62rem; padding: 1.2rem; background: var(--sage); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 3px; }
.verified-rules h2 { font: 400 clamp(1.9rem, 3vw, 2.5rem)/1.05 var(--serif); margin-bottom: .55rem; }
.verified-rules ul { padding-left: 1.2rem; }
.verified-rules li + li { margin-top: .55rem; }
.verified-rules p { margin-top: .8rem; color: var(--muted); font-size: .92rem; }
.idea-method h2, .idea-faq h2 { font: 400 clamp(1.9rem, 3vw, 2.5rem)/1.05 var(--serif); margin-bottom: .55rem; }
.idea-method p, .idea-faq p { color: var(--muted); }
.idea-faq h3 { margin-top: 1rem; font-weight: 700; font-size: 1rem; }
.idea-section > h2, .idea-content h2 { font: 400 clamp(2rem, 4vw, 2.8rem)/1.05 var(--serif); margin-bottom: .5rem; }
.idea-section > p, .idea-content p { color: var(--muted); }
.idea-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.idea-content section { min-width: 0; overflow-wrap: anywhere; padding: 1.15rem; background: var(--sage); border: 1px solid var(--line); border-radius: 3px; }
.idea-content h2 { font-size: 1.65rem; }
.idea-content section p + p { margin-top: .55rem; }
.idea-content a { color: var(--green-dark); overflow-wrap: anywhere; }
.idea-input-list { margin: .65rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.idea-input-list li + li { margin-top: .3rem; }
.idea-disclaimer { margin-block: 1.4rem; max-width: 60rem; color: var(--muted); font-size: .91rem; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 1rem; }
.calculator-inputs, .calculator-results { min-width: 0; padding: clamp(1rem, 2vw, 1.65rem); background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
.calculator-results { background: #f0f3eb; }
.calculator-inputs:has(form[hidden]) { display: none; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
fieldset + fieldset { margin-top: 1.25rem; padding-top: .35rem; }
fieldset + fieldset legend { border-top: 1px solid var(--line); padding-top: 1.05rem; }
legend { padding: 0; margin-bottom: .65rem; width: 100%; font: 400 1.85rem/1.1 var(--serif); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.field label { display: block; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.35; font-weight: 700; margin-bottom: .28rem; }
.input-wrap { display: flex; align-items: center; min-height: 2.75rem; background: #fbfbf5; border: 1px solid #a5b2a7; border-radius: 3px; }
.input-wrap span { order: 1; color: var(--muted); font-size: .86rem; padding-right: .65rem; }
.input-wrap.currency span { order: -1; padding: 0 0 0 .67rem; }
.field input { appearance: textfield; width: 100%; min-width: 0; padding: .49rem .45rem .49rem .64rem; border: 0; background: transparent; outline: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.field select { width: 100%; min-width: 0; padding: .49rem .55rem; border: 0; background: transparent; color: var(--ink); }
.field input::-webkit-inner-spin-button { appearance: none; }
.input-wrap:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.input-wrap:has([aria-invalid]) { border-color: #872f21; }
.calculator-actions { margin-top: 1.3rem; }
#calculator-status:not(.form-error) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-error { margin-top: 1rem; font-weight: 600; color: #872f21; }
.result-top h2 { font: 700 .96rem/1.3 var(--sans); letter-spacing: 0; }
.result-value { font: 400 clamp(2.5rem, 6vw, 4.5rem)/1.05 var(--serif); overflow-wrap: anywhere; margin-block: .2rem; }
.result-top p:last-child { color: var(--muted); overflow-wrap: anywhere; }
.result-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-block: 1rem; }
.result-metrics div { overflow-wrap: anywhere; border: 1px solid var(--line); background: var(--white); padding: .65rem .7rem; border-radius: 3px; }
.result-metrics dt { font-size: .86rem; color: var(--muted); line-height: 1.3; margin-bottom: .3rem; }
.result-metrics dd { font-size: 1.03rem; font-weight: 700; line-height: 1.3; }
.chart { padding-top: .8rem; border-top: 1px solid var(--line); }
.chart figcaption { font-weight: 700; }
.chart ul { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .3rem 0 .65rem; padding: 0; list-style: none; }
.chart li { font-size: .84rem; display: flex; align-items: center; gap: .4rem; }
.chart li::before { content: ''; width: 1rem; border-top: 2px solid #25594b; }
.chart li + li::before { border-top: 2px dashed #a85030; }
.chart li:nth-child(3)::before { border-color: #4564a1; }
.chart li:nth-child(4)::before { border-color: #79508c; }
.chart canvas { display: block; width: 100%; height: 13rem; }
.chart-axis { display: block; text-align: center; font-size: .83rem; color: var(--muted); }
.chart details { margin-top: .5rem; }
.chart summary { width: fit-content; cursor: pointer; color: var(--green-dark); font-size: .9rem; font-weight: 700; }
.table-scroll { max-height: 15rem; overflow: auto; margin-top: .65rem; }
.chart table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .88rem; text-align: right; }
.chart th, .chart td { padding: .32rem .45rem; border-bottom: 1px solid var(--line); }
.chart th:first-child { text-align: left; }
.chart thead th { position: sticky; top: 0; background: var(--white); }
.methodology { margin-top: 2.7rem; max-width: 47rem; }
.methodology h3 { margin-top: 1.1rem; font: 700 1.03rem/1.4 var(--sans); }
.methodology p { margin-top: .34rem; color: var(--muted); }
.methodology p:last-child { margin-top: 1rem; }

dialog { width: min(34rem, 100% - 2rem); max-height: calc(100% - 2rem); padding: 1.4rem; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #11291fc2; }
dialog h2 { font-size: 2.7rem; margin-bottom: .9rem; padding-right: 2.9rem; }
dialog form { position: absolute; right: 1.05rem; top: 1.05rem; }
.icon-button { width: 2.45rem; height: 2.45rem; }
dialog input { width: 100%; padding: .7rem .75rem; background: var(--paper); color: var(--ink); border: 1px solid #9bad9f; border-radius: 3px; }
.search-status { margin-top: .7rem; color: var(--muted); font-size: .9rem; }
.search-results { margin: .5rem 0 0; padding: 0; list-style: none; }
.search-results a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .9rem; padding: .62rem .25rem; text-decoration: none; border-top: 1px solid var(--line); }
.search-results a:hover { background: var(--sage); }
.search-results span { font-size: .85rem; color: var(--muted); }

@media (max-width: 66rem) {
  .desktop-break { display: none; }
  .hero { gap: 2.2rem; }
  .hero h1 { font-size: clamp(3.6rem, 7.8vw, 5.8rem); }
}
@media (max-width: 52rem) {
  .wrap { width: calc(100% - 3rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .65rem 1rem; padding-block: .7rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: .8rem clamp(1.07rem, 4vw, 2.2rem); flex-wrap: wrap; }
  .header-inner nav a { padding-block: .2rem; }
  .hero { padding-block: 2.6rem 2.9rem; gap: 1.6rem; }
  .hero h1 { font-size: clamp(3.15rem, 7.6vw, 4.2rem); }
  .hero-image { height: 22.5rem; }
  .tool-card, .guide-card { padding: 1.05rem; }
  .article-layout { grid-template-columns: 1fr; gap: .75rem; }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .aside-tool { margin: 0; }
  .calculator-layout { grid-template-columns: 1fr; }
}
@media (max-width: 39rem) {
  .wrap { width: calc(100% - 2rem); }
  .brand { font-size: 1.5rem; }
  .search-button { padding-inline: .58rem; min-height: 2.55rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2rem 1.9rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5.3rem); margin-block: .72rem .78rem; }
  .hero-image { height: clamp(14rem, 65vw, 21rem); }
  .tool-band { padding-block: 2.1rem; }
  .tool-grid, .guide-grid { grid-template-columns: 1fr; gap: .7rem; }
  .section-heading { margin-bottom: 1rem; }
  .reading { padding-block: 2.4rem; }
  .feature { grid-template-columns: 1fr; margin-bottom: 2.4rem; }
  .feature img { height: 13.5rem; }
  .feature-copy { padding: 1.45rem 1.15rem 1.7rem; }
  .footer-main { padding-block: 1.65rem; }
  .footer-bottom { gap: .4rem; }
  .page-intro { margin-block: 1.9rem 1.5rem; }
  .page-intro h1 { font-size: clamp(3rem, 11vw, 4.55rem); }
  .listing { padding-bottom: 2.7rem; }
  .article-aside { grid-template-columns: 1fr; }
  .idea-facts, .idea-content { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 22rem) {
  .brand { font-size: 1.27rem; gap: .4rem; }
  .header-inner nav { column-gap: .85rem; }
  .header-inner nav a { font-size: .85rem; }
  .field-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.calculator-contents { display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; padding:1.1rem; margin:2rem 0; border:1px solid var(--line); background:var(--white); }
.calculator-contents a { color:var(--green-dark); text-underline-offset:4px; }
.calculator-editorial { max-width:64rem; overflow-wrap:anywhere; }
.calculator-editorial section { margin:2rem 0; padding:clamp(1rem,3vw,2rem); background:var(--white); border:1px solid var(--line); scroll-margin-top:2rem; }
.calculator-editorial h2 { font:400 clamp(1.8rem,3vw,2.5rem)/1.12 var(--serif); margin-bottom:1rem; }
.calculator-editorial h3 { margin:1.5rem 0 .5rem; }
.calculator-editorial p + p { margin-top:.8rem; }
.calculator-editorial ul, .calculator-editorial ol { padding-left:1.4rem; margin:1rem 0; }
.calculator-editorial li + li { margin-top:.6rem; }
.calculator-editorial details { margin:1rem 0; }
.calculator-editorial summary { cursor:pointer; font-weight:600; padding:.6rem 0; }
.example-assumptions { margin:1rem 0; }
.example-assumptions > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1rem; padding:.65rem 0; border-bottom:1px solid var(--line); }
.example-assumptions dd { margin:0; overflow-wrap:anywhere; }
.editorial-result { background:var(--sage); padding:1.2rem; margin:1rem 0; }
.editorial-result > p { font:400 clamp(2rem,5vw,3rem)/1.15 var(--serif); margin:.5rem 0; }
.calculator-editorial table { min-width:36rem; width:100%; border-collapse:collapse; text-align:left; }
.calculator-editorial caption { text-align:left; padding:.8rem 0; font-weight:600; }
.calculator-editorial th, .calculator-editorial td { vertical-align:top; padding:.8rem; border-bottom:1px solid var(--line); white-space:normal; }
.calculator-editorial th:first-child { min-width:10rem; }
@media (max-width:39rem) { .example-assumptions > div { grid-template-columns:1fr; gap:.2rem; } }

/* Structured monthly assumptions for the controller exemption comparison. */
.period-editor-field { grid-column: 1 / -1; }
.period-editor h3 { margin: .4rem 0; font-size: 1.12rem; }
.period-editor > p { margin: .35rem 0 1rem; font-size: .95rem; }
.period-card { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.period-card + .period-card { margin-top: 1rem; padding-top: 1rem; }
.period-card legend { padding: 0 .35rem; font-size: 1rem; font-weight: 700; }
.period-card + .period-card legend { border: 0; padding-top: 0; }
.period-card > .button { margin-top: .9rem; min-height: 2.75rem; }
.period-card .button:disabled { opacity: .5; cursor: default; }

.tour-hour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.annual-leave-editor input[type="date"] { width: 100%; min-height: 2.75rem; }
.leave-table-scroll { max-width: 100%; overflow-x: auto; margin-top: 1rem; }
.leave-table-scroll table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.leave-table-scroll th, .leave-table-scroll td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
[data-leave-dates] { margin-top: 1.25rem; min-width: 0; }
[data-leave-dates] summary { cursor: pointer; font-weight: 700; }

/* Pension record editors retain their own horizontal scroll on small screens. */
:is([data-iatse-editor], [data-nebf-editor]) .table-scroll { max-height: none; margin-bottom: .85rem; padding-bottom: .5rem; }
:is([data-iatse-editor], [data-nebf-editor]) table { width: 100%; border-collapse: collapse; font-size: .9rem; }
:is([data-iatse-editor], [data-nebf-editor]) caption { padding: .5rem 0 .85rem; text-align: left; }
:is([data-iatse-editor], [data-nebf-editor]) th, :is([data-iatse-editor], [data-nebf-editor]) td { padding: .65rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
:is([data-iatse-editor], [data-nebf-editor]) thead { background: var(--sage); }
:is([data-iatse-editor], [data-nebf-editor]) input, :is([data-iatse-editor], [data-nebf-editor]) select { min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: #fffdf7; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
:is([data-iatse-editor], [data-nebf-editor]) input:focus-visible, :is([data-iatse-editor], [data-nebf-editor]) select:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
:is([data-iatse-editor], [data-nebf-editor]) input:disabled, :is([data-iatse-editor], [data-nebf-editor]) select:disabled { opacity: .55; }
:is([data-iatse-editor], [data-nebf-editor]) .button { min-height: 2.75rem; white-space: nowrap; }

.ilwu-health-cards > fieldset { min-width: 0; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; background: #fffdf7; }
.ilwu-health-cards > fieldset > legend { max-width: 100%; padding: 0 .35rem; font-family: inherit; font-size: 1.05rem; font-weight: 700; }
.ilwu-health-cards .field label { display: block; margin-bottom: .35rem; }
.ilwu-health-cards :is(input, select) { box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; }
.ilwu-health-cards :is(input, select):focus-visible { outline: 2px solid var(--green-dark); outline-offset: 2px; }
.ilwu-health-cards .button { margin-top: 1rem; min-height: 2.75rem; }
.payment-export-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.payment-calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.25rem 0; }
.payment-month { min-width: 0; border: 1px solid #ccd5cb; border-radius: .6rem; padding: .8rem; background: #fffefa; }
.payment-month h4 { margin: 0 0 .7rem; font-size: 1rem; }
.payment-month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .15rem; text-align: center; }
.payment-weekday { font-size: .7rem; color: #56635b; }
.payment-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 2.5rem; font-size: .85rem; border-radius: .3rem; }
.payment-day.has-payment { background: #dcecdf; color: #183b2c; font-weight: 700; box-shadow: inset 0 0 0 1px #58846c; }
.payment-day small { font-size: .55rem; line-height: 1.1; }
.payment-month ul { margin: .7rem 0 0; padding-left: 1rem; font-size: .75rem; line-height: 1.6; }
