/* Sitka Sales Tax Helper. IFS brand: _shared/brand/ifs/brand-guide.md. Mobile first. */

@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('../fonts/bebas-neue-latin.woff2') format('woff2');
  font-display: swap;
}

:root {
  --navy: #0b1724;
  --navy-2: #111f30;
  --navy-3: #0e1c2b;
  --fire: #e8480a;
  --ember: #ff7c3a;
  --fire-btn: #c73d08;
  --gold: #f5b946;
  --cream: #f5f0e8;
  --gray: #8a9ab0;
  --white: #fff;
  --line: #2a3b52;
  --error: #ff8a80;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .check, .row, etc. set display, which would beat the attribute */

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 17px/1.55 'DM Sans', system-ui, sans-serif;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

a { color: var(--ember); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Headings */
h1, h2 { font-family: 'Bebas Neue', Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; font-weight: 400; }
h1 { font-size: 2.4rem; line-height: 1.05; color: var(--white); margin: 28px 0 8px; }
h2 { font-size: 1.7rem; color: var(--white); margin: 0 0 6px; }
h3 { font-size: 1.05rem; color: var(--white); margin: 0 0 8px; }
.step {
  display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: 6px;
  border-radius: 50%; background: var(--fire-btn); color: var(--white); font-size: .8em; vertical-align: 2px;
}

/* Privacy callout */
.privacy-box { border-left: 4px solid var(--gold); background: var(--navy-3); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0 8px; }
.privacy-box h2 { font-size: 1.4rem; color: var(--gold); }
.privacy-box p { margin: 6px 0; }

/* Cards */
.card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; margin: 20px 0; }

/* Form fields */
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, .label, legend { display: block; font-weight: 600; color: var(--white); margin: 0 0 6px; padding: 0; }
.hint { color: var(--gray); font-size: .9rem; margin: 6px 0 0; }
.card > .hint { margin: 0 0 18px; }
.hint strong { color: var(--cream); }

input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--white); background: var(--navy);
  border: 1px solid #4a5d77; border-radius: 8px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder { color: #6f8098; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px var(--gold); }

.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray); }
.money input { padding-left: 26px !important; text-align: right; font-variant-numeric: tabular-nums; }

.row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }

.check, .yn label { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 44px; cursor: pointer; }
.check { margin: 0 0 18px; }
.yn { display: flex; gap: 24px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--fire-btn); margin: 0; }

/* Signature pad: white like paper so the dark ink shows the way it will on the form. */
.sig { display: block; width: 100%; height: 120px; background: var(--white); border-radius: 8px; touch-action: none; cursor: crosshair; }

/* Buttons */
.btn, .btn-secondary, .btn-link { font: inherit; cursor: pointer; min-height: 48px; border-radius: 8px; }
.btn { width: 100%; background: var(--fire-btn); color: var(--white); border: 0; font-weight: 700; font-size: 1.05rem; padding: 12px 20px; }
.btn:hover { background: #a93406; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--cream); border: 1px solid #4a5d77; padding: 10px 16px; font-weight: 600; margin: 0; }
.btn-secondary:hover { border-color: var(--gold); }
.btn-link { background: none; border: 0; color: var(--ember); text-decoration: underline; padding: 0 4px; min-height: 44px; }
.btn-link.danger { color: var(--error); }

.save-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.save-row > * { flex: 1 1 100%; }
@media (min-width: 560px) { .save-row > .btn-secondary { flex: 1 1 0; } }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

.status { min-height: 1.5em; margin: 10px 0 0; color: var(--gold); }
.status.error, .errors { color: var(--error); }
.errors:empty { display: none; }

/* Live summary */
.summary { background: var(--navy); border-radius: 8px; padding: 14px; margin-top: 8px; }
.summary table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary th { text-align: left; font-weight: 400; padding: 6px 0; }
.summary td { text-align: right; padding: 6px 0; white-space: nowrap; }
.summary tr + tr { border-top: 1px solid var(--line); }
.summary .line { display: inline-block; min-width: 2.2em; color: var(--gray); font-size: .85rem; }
.summary .total th, .summary .total td { font-weight: 700; color: var(--gold); font-size: 1.1rem; padding-top: 10px; }

.next { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.steps { padding-left: 1.3em; }
.steps li { margin: 8px 0; }
.disclaimer { margin: 22px 0 0; font-size: .85rem; color: var(--gray); border-top: 1px solid var(--line); padding-top: 14px; }

/* Privacy page */
.prose h2 { margin-top: 28px; }
.prose li { margin: 6px 0; }

/* ---- Step 2+ additions ---- */
input.short { max-width: 200px; }
.sub { border-left: 3px solid var(--line); padding-left: 14px; margin: -6px 0 22px; }
.sub h3 { margin-top: 4px; }
h3.gap { margin-top: 24px; }
.check.small { font-size: .92rem; margin: 10px 0 0; }

/* Repeating rows (3H list) */
.rows { display: grid; gap: 12px; margin: 12px 0; }
.rows:empty { display: none; }
.row-item { display: grid; gap: 0 12px; background: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 4px; }
.row-item .field { margin-bottom: 10px; }
.row-item .btn-link { justify-self: start; }
@media (min-width: 560px) {
  .row-item { grid-template-columns: 1fr 1fr; }
  .row-item .wide { grid-column: 1 / -1; }
}
.btn-secondary.small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.btn-secondary.wide { width: 100%; margin-top: 10px; }

/* Summary groups */
.summary .group th { padding-top: 14px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); }
.summary tr.group + tr { border-top: 0; }
.summary .sub-total th, .summary .sub-total td { font-weight: 700; }
.warnings { color: var(--gold); }
.warnings:empty { display: none; }

.total-line { font-size: 1.1rem; }
.total-line strong { color: var(--gold); }
.dates { padding-left: 1.2em; margin: 8px 0 14px; }
.dates li { margin: 4px 0; }
.dates strong { color: var(--white); margin-right: 6px; }

/* ---- Import from a file ---- */
.import { background: var(--navy-3); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 0 0 22px; }
.import h3 { margin-top: 0; }
.optional { color: var(--gray); font-weight: 400; font-size: .9rem; }
.drop {
  position: relative; display: grid; place-items: center; min-height: 88px; margin: 12px 0 0; padding: 12px;
  border: 2px dashed #4a5d77; border-radius: 8px; text-align: center; font-weight: 400; color: var(--cream); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(245, 185, 70, .06); }
.drop:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-text u { color: var(--ember); }
.import-setup { margin-top: 14px; }
.preview-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 0; }
.preview { border-collapse: collapse; font-size: .82rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview th, .preview td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.preview th { color: var(--white); background: var(--navy-2); }
.preview input[type=checkbox] { width: 20px; height: 20px; }
.import-result { background: var(--navy); border-radius: 8px; padding: 10px 14px; margin: 6px 0 14px; }
.import-result p { margin: 4px 0; }
.import-result strong { color: var(--gold); }
.import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.import-actions .btn { width: auto; flex: 1 1 220px; }

/* ---- Form picker (tabs) ---- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
@media (min-width: 560px) { .tabs { grid-template-columns: repeat(3, 1fr); } }
.tabs a {
  display: block; min-height: 56px; padding: 9px 12px; border: 1px solid #4a5d77; border-radius: 8px;
  background: var(--navy-2); color: var(--white); font-weight: 700; line-height: 1.25; text-decoration: none;
}
.tabs a span { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--gray); }
.tabs a:hover { border-color: var(--gold); color: var(--white); }
.tabs a[aria-current="page"] { background: var(--fire-btn); border-color: var(--fire-btn); }
.tabs a[aria-current="page"] span { color: var(--white); }
.tab-about { margin: 12px 0 0; color: var(--cream); font-size: .95rem; }

/* ---- Launch additions ---- */
.drop.small { min-height: 64px; margin: 6px 0 0; }
.btn-link.inline { min-height: 0; padding: 0; font-size: inherit; vertical-align: baseline; }
.gap-top { margin-top: 18px; }
.season { background: var(--navy-3); border: 1px solid var(--gold) !important; border-radius: 8px; padding: 12px 14px !important; }
.season .yn { flex-wrap: wrap; gap: 0 24px; }

/* ---- (i) buttons: the city's own instructions ---- */
.info-btn {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 4px; padding: 0;
  border: 1.5px solid var(--gold); border-radius: 50%; background: transparent; color: var(--gold);
  font: italic 700 .8rem/1 Georgia, serif; text-transform: none; letter-spacing: 0; vertical-align: 2px; cursor: pointer;
  position: relative;
}
.info-btn::after { content: ''; position: absolute; inset: -11px; } /* 44px tap target */
.info-btn[aria-expanded="true"] { background: var(--gold); color: var(--navy); }
h2 .info-btn { font-size: .8rem; vertical-align: 4px; }
.info-text { background: var(--navy-3); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 4px 0 10px; font-size: .88rem; color: var(--cream); font-family: 'DM Sans', system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 400; }
.info-text p { margin: 4px 0; }
.info-src { color: var(--gray); font-size: .78rem; font-style: italic; }
.req { color: var(--gold); font-weight: 400; font-size: .85rem; }
.blank-form { margin: 6px 0 0; }
.next .btn-secondary { margin-top: 6px; }

/* ---- Front page and picked forms ---- */
.blank-list { padding-left: 1.2em; }
.blank-list li { margin: 8px 0; }
/* Step numbers count only the cards on screen. */
#work { counter-reset: step; }
#work .card:not([hidden]) .step { counter-increment: step; }
.step:empty::before { content: counter(step); }

/* =====================================================================
   Island Fire & Safety header, phone menu, footer.
   Copied rule for rule from ifs/website/style.css (sections 5 and the
   footer), 2026-10-08, so this page looks like the rest of the site.
   ===================================================================== */
:root {
  --navy2: #111f30; --navy3: #0e1c2b; --ink: #08111b;
  --fire-btn-hover: #a83306;
  --rule: rgba(255,255,255,.1); --card-border: rgba(255,255,255,.25);
  --fs-micro: .75rem; --fs-xs: .875rem; --fs-sm: .9375rem; --fs-md: 1.125rem;
  --gutter: 16px; --tap: 44px;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
}
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 14px;
  background: rgba(11,23,36,.97);
  border-bottom: 1px solid rgba(232,72,10,.18);
  backdrop-filter: saturate(140%) blur(6px);
}
.logo { display: flex; align-items: center; gap: 8px; min-height: var(--tap); text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo span { font-family: var(--display); font-size: 1.3rem; letter-spacing: .05em; color: var(--white); line-height: 1; white-space: nowrap; text-transform: uppercase; }
.logo span i { font-style: normal; color: var(--fire); }
.nav-links { display: none; }
.nav-actions { display: flex; gap: 2px; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: var(--cream); cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.call { color: var(--ember); }
.menu { position: sticky; top: 57px; z-index: 19; background: var(--navy); border-bottom: 1px solid var(--line); padding: 6px 20px 14px; }
.menu a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: var(--fs-sm); color: var(--cream); }
.menu-label { padding: 16px 0 4px; border-bottom: 1px solid var(--rule); font-size: var(--fs-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.menu a.menu-sub { padding-left: 16px; }
.nav-drop { position: relative; }
.drop-panel { position: absolute; top: calc(100% + 6px); left: -18px; z-index: 30; min-width: 240px; padding: 6px 0; background: var(--navy2); border: 1px solid var(--card-border); border-radius: 8px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.nav-drop .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.foot { --gray: #c8d5e0; display: grid; gap: 22px 40px; margin-top: 40px; padding: 26px 20px 0; background: #070f1a; border-top: 1px solid rgba(232,72,10,.12); font-size: var(--fs-xs); color: var(--gray); }
.foot .logo span { font-size: 1.2rem; }
.foot-brand { display: grid; gap: 2px; align-content: start; }
.foot-brand p { line-height: 1.5; margin: 0; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-h { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); margin-bottom: 2px; }
.foot-col a { font-size: var(--fs-sm); color: var(--gray); text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-legal { grid-column: 1 / -1; margin: 0 -20px; padding: 10px 20px; border-top: 1px solid rgba(255,255,255,.05); font-size: var(--fs-xs); text-align: center; line-height: 1.6; }
.nowrap { white-space: nowrap; }
@media (max-width: 899px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 18px; }
  .foot-brand { grid-column: 1 / -1; gap: 0; }
  .foot-col { gap: 0; }
  .foot-h { margin-bottom: 0; }
  .foot-col a { min-height: var(--tap); display: flex; align-items: center; line-height: 1.3; }
  .foot-legal { padding: 8px 20px; }
}

/* =====================================================================
   Front page: rows, top to bottom. The form tiles are the main thing:
   each one looks like the top of the city's paper form (orange strip,
   the form's own title).
   ===================================================================== */
.hero { padding: 26px 0 0; }
.hero h1 { margin: 0 0 10px; }
.hero .lead { margin: 0; font-size: 1.05rem; max-width: 60ch; }

.how { margin: 22px 0 0; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.how-steps li { display: flex; gap: 12px; align-items: flex-start; }
.how-steps b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fire-btn); color: var(--white); font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
.how-steps span { padding-top: 3px; }

.privacy-band { margin: 24px -16px 0; padding: 18px 16px; background: var(--navy-3); border-top: 3px solid var(--gold); border-bottom: 1px solid var(--line); }
.privacy-band h2 { color: var(--gold); font-size: 1.45rem; margin: 0 0 6px; }
.privacy-band p { margin: 6px 0; }

.pick-section { margin: 28px 0 0; }
.pick-section h2 { font-size: 1.9rem; margin: 0 0 8px; }
.tiles-set { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.tiles-set legend { margin-bottom: 10px; }
.tiles { display: grid; gap: 10px; }
.tile { position: relative; display: block; padding: 14px 14px 14px 48px; background: var(--navy-2);
  border: 1px solid #4a5d77; border-top: 4px solid var(--fire); border-radius: 8px; cursor: pointer; font-weight: 400; margin: 0; }
.tile input { position: absolute; left: 14px; top: 15px; }
.tile-title { display: block; color: var(--white); font-weight: 700; line-height: 1.3; }
.tile-sub { display: block; margin-top: 4px; font-size: .85rem; color: var(--gray); line-height: 1.4; }
.tile:hover { border-color: var(--gold); border-top-color: var(--fire); }
.tile:has(input:checked) { border-color: var(--gold); border-top-color: var(--gold); background: #17283c; }
.tile:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile.tile-none { margin-top: 10px; padding-top: 11px; padding-bottom: 11px; border-top-width: 1px; border-top-color: #4a5d77; }
.tile.tile-none input { top: 12px; }
.tile.tile-none .tile-title { font-weight: 500; color: var(--cream); }
.pick-go { display: grid; gap: 12px; }
.pick-go .drop { margin: 0; }
.blank-card { margin-top: 28px; }
.blank-card summary { cursor: pointer; font-weight: 700; color: var(--white); min-height: var(--tap); display: flex; align-items: center; }
.blank-card[open] summary { margin-bottom: 4px; }

/* =====================================================================
   Desktop (900px and up): wider page, front page in two columns,
   each form's totals beside its inputs.
   ===================================================================== */
@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .wrap { max-width: 1120px; padding: 0 32px; }

  /* IFS desktop header */
  .nav { padding: 14px var(--gutter); gap: 22px; }
  .logo span { font-size: 1.5rem; }
  .nav-links { display: flex; align-items: center; gap: 19px; margin-left: auto; min-width: 0; flex-shrink: 0; }
  .nav-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); white-space: nowrap; transition: color .2s; }
  .nav-links a:hover { color: var(--ember); }
  .nav-drop-btn { display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap); padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
  .nav-drop-btn:hover { color: var(--ember); }
  .nav-links .drop-panel a { display: flex; min-height: 46px; padding: 0 18px; }
  .nav-links .drop-panel a:hover { background: rgba(255,255,255,.04); }
  .icon-btn, .menu { display: none !important; }
  .foot { grid-template-columns: 2fr 1fr 1fr; padding: 26px var(--gutter) 0; }
  .foot-legal { margin: 0 calc(var(--gutter) * -1); }

  /* Front page rows */
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 3.8rem; }
  .hero .lead { font-size: 1.15rem; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .privacy-band { margin: 28px 0 0; padding: 22px 28px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; border-radius: 0 0 10px 10px; }
  .privacy-band h2 { font-size: 1.7rem; margin: 0; }
  .privacy-band p:first-child { margin-top: 0; }
  .pick-section { margin-top: 36px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pick-go { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .pick-go .btn { width: auto; padding: 12px 32px; }
  .blank-list { columns: 2; column-gap: 32px; }
  .blank-list li { break-inside: avoid; }

  /* Your forms: business info fields two across. */
  #profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  #profile > .row { display: contents; }
  #profile > .check, #profile > .field:last-child { grid-column: 1 / -1; }
  .sig { max-width: 520px; }

  /* Inputs left, "What goes on your return" + download right, staying in view. */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 28px; align-items: start; }
  .split-side { position: sticky; top: 92px; }
  .split-side .summary { margin-top: 0; }
}

/* ---- UI review fixes (2026-10-08) ---- */
/* Front page: jump to the tiles (phones), and headings clear the sticky header. */
.jump { margin-top: 14px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ember); border-radius: 8px; background: transparent; color: var(--ember); font: inherit; font-weight: 700; cursor: pointer; }
#h-pick, .card { scroll-margin-top: 80px; }
.privacy-band { margin-top: 20px; padding-top: 14px; padding-bottom: 14px; }
.how { margin-top: 18px; }

/* "tap" on touch screens, "click" with a mouse */
.mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .mouse { display: inline; } .touch { display: none; } }

/* Fold-out lines look tappable */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: '\25B8'; display: inline-block; margin-right: 10px; color: var(--ember); transition: transform .15s; }
details[open] > summary::before { transform: rotate(90deg); }
.cal-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ember); font-weight: 600; }

/* Forms page title */
.work-head { margin: 26px 0 0; }
.work-head .work-title { font-size: 2.4rem; line-height: 1.05; margin: 0 0 8px; }
.picked-list { margin: 0 0 12px; padding-left: 1.2em; color: var(--cream); }
.picked-list li { margin: 2px 0; }
.work-head .btn-secondary { text-decoration: none; }

/* Summary rows: long line names wrap past the line number, not under it. */
.summary tr:not(.group) th { padding-left: calc(2.4rem + .26em); text-indent: calc(-2.4rem - .26em); } /* number column + the space after it */
.summary .line { min-width: 0; width: 2.4rem; text-indent: 0; }

/* One big orange button ("Download all"); each form's own download is a small link. */
.btn-link.side-dl { display: block; margin: 10px 0 0; padding: 0; text-align: left; font-weight: 600; }

/* No dead space at the bottom of cards */
.card > :last-child { margin-bottom: 0; }
.status:empty { min-height: 0; margin: 0; }

@media (min-width: 900px) {
  .jump { display: none; }
  /* The side box never runs off the screen: its table scrolls, Total Due stays pinned. */
  .split-side { max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
  .split-side .summary { min-height: 0; overflow-y: auto; }
  .split-side .summary, .preview-wrap { scrollbar-width: thin; scrollbar-color: #4a5d77 transparent; }
  .summary tr.total th, .summary tr.total td { position: sticky; bottom: 0; background: var(--navy); box-shadow: 0 -10px 12px -6px var(--navy); }
  .narrow > * { max-width: 680px; }
  .work-head { margin-top: 36px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; }
  .work-head .work-title { grid-column: 1 / -1; }
  .work-head .picked-list { margin: 0; }
}
