/* Site styles, version 2 (22 Nov 2026). Sister look to Formsimplify: Newsreader for headings, Atkinson Hyperlegible Next
   for reading, deep green ink. Own accent: construction amber, like the permit card taped in a front window.
   One page width, one heading scale, one button shape. The one bold thing: the answer card with its three-stop scale.
   Mobile first, large type, high contrast, self-hosted fonts only (SIL OFL, see fonts/OFL-*.txt). */

@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:200 800;font-display:swap;src:url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --ink: #12261E;          /* text, 15:1 on white */
  --ink-soft: #46574F;     /* secondary text, 7.5:1 on white */
  --bg: #F1F4F0;           /* page */
  --paper: #FFFFFF;
  --forest: #0F3B2C;       /* brand, main buttons */
  --forest-deep: #0A2C21;
  --on-forest: #FFFFFF;
  --amber: #F2A51A;        /* the accent: fills only, never text on white */
  --amber-soft: #FDF1D6;
  --amber-ink: #7A4A00;    /* amber you can read, 7:1 on white */
  --line: #CBD5CE;
  --field: #5E726A;        /* field borders, 4.9:1 on white */
  --tint: #E8EEE9;
  --yes: #9B2C1C;  --yes-bg: #FBEDEA;
  --maybe: #1C6B43; --maybe-bg: #E6F3EB;
  --check: #7A4A00; --check-bg: #FDF1D6;
  --focus: #1D5BD8;
  --r: 12px;               /* every button, field, tile and box */
  --r-card: 6px;           /* the answer card: a printed card, barely rounded */
  --page: 62rem;           /* one centered width for every page */
  --measure: 42rem;        /* reading line length */
  --gap: 1.5rem;           /* the one vertical rhythm step */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(18, 38, 30, .06), 0 10px 28px -14px rgba(18, 38, 30, .28);
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFFFFF' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EAF0EC;
    --ink-soft: #B5C4BC;
    --bg: #0D1813;
    --paper: #14231C;
    --forest: #8FD3B0;
    --forest-deep: #6FBF98;
    --on-forest: #0A1F17;
    --amber-soft: #3A2A0B;
    --amber-ink: #F7C766;
    --line: #34473E;
    --field: #7F958B;
    --tint: #1B2C24;
    --yes: #FFB4A6; --yes-bg: #3A1A14;
    --maybe: #9FE6BF; --maybe-bg: #10301F;
    --check: #F7C766; --check-bg: #33270C;
    --focus: #8DB4FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%230A1F17' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; } /* 18px base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .005em;
  word-spacing: .04em;
  overflow-wrap: break-word;
}
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 40rem) { .wrap { padding: 0 28px; } }
/* the page width includes the side padding, so header, content and footer line up exactly */
@media (min-width: 40rem) { .wrap { max-width: calc(var(--page) + 56px); } }

/* ---------- One heading scale ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3rem); line-height: 1.06; margin: 0 0 .5rem; letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 2rem 0 .6rem; font-variation-settings: "opsz" 36; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 1.4rem 0 .4rem; }
p, li { max-width: var(--measure); }
a { color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #12261E; padding: .6rem 1rem; z-index: 20; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
[hidden] { display: none !important; }

/* Step numbers: the tool and the contractor page really are a 1-2-3 sequence. */
.step-n {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.7em; height: 1.7em; margin-right: .35em; border-radius: 50%;
  background: var(--amber); color: #12261E; border: 2px solid var(--ink);
  font-family: var(--display); font-size: .8em; font-weight: 700; line-height: 1; vertical-align: .12em;
}

/* ---------- Header with the four-item menu ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.mark { width: 36px; height: 36px; flex: 0 0 auto; display: block; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.015em; line-height: 1; font-variation-settings: "opsz" 48; }
.nav-wrap { order: 3; flex: 1 0 100%; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.nav li { max-width: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.lang { margin-left: auto; font-weight: 700; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); padding: .2rem .8rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lang:hover { background: var(--tint); }
@media (max-width: 29.99rem) {
  .wordmark { font-size: 1.3rem; }
  .mark { width: 32px; height: 32px; }
  .nav { gap: 0 .9rem; }
  .nav a { font-size: .88rem; min-height: 40px; }
}
@media (min-width: 62rem) {
  .nav-wrap { order: 0; flex: 1 1 auto; margin-left: 1rem; }
  .nav { justify-content: flex-end; flex-wrap: nowrap; }
  .lang { margin-left: .25rem; }
}

/* ---------- Content ---------- */
main.wrap { padding-top: 2rem; padding-bottom: 3rem; }
main:focus { outline: none; }
.section { margin: 0 0 var(--gap); }
.section > :first-child, .block > :first-child { margin-top: 0; }
.lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 1.25rem; max-width: 38rem; }
.steps { padding-left: 1.5rem; }
.steps li { margin: .55rem 0; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--amber-ink); }
.links { padding-left: 1.2rem; }
.links li { margin: .45rem 0; }
.src { display: block; font-size: .88rem; margin-top: .25rem; color: var(--ink-soft); }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--forest); padding: .7rem 1rem; border-radius: var(--r); max-width: var(--measure); }
.alert { background: var(--check-bg); color: var(--ink); border: 2px solid var(--amber); padding: .7rem 1rem; border-radius: var(--r); font-weight: 600; max-width: var(--measure); }
.fine { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.fine-list { font-size: .9rem; color: var(--ink-soft); padding-left: 1.2rem; margin: .8rem 0 .3rem; }
.fine-list li { margin: .3rem 0; }
.hint { font-family: var(--body); font-weight: 400; font-size: .95rem; letter-spacing: 0; color: var(--ink-soft); }
.back { margin: .25rem 0 0; }
.block { margin: 0 0 2rem; }

/* ---------- One button shape ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  min-height: 52px; padding: .55rem 1.15rem; border-radius: var(--r);
  border: 2px solid var(--forest); background: var(--paper); color: var(--forest);
  font: inherit; font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--tint); }
.btn-main { background: var(--forest); color: var(--on-forest); }
.btn-main:hover { background: var(--forest-deep); }
.btn-danger { border-color: var(--yes); color: var(--yes); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 1rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.actions .btn { flex: 1 1 12rem; }
@media (min-width: 40rem) { .btn-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Forms ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend, .step-title, .q-label { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: .45rem; padding: 0; display: block; max-width: none; }
.group {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.1rem .3rem; margin-bottom: var(--gap);
}
.group > legend {
  float: left; width: 100%; font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em;
  padding-bottom: .5rem; margin-bottom: .9rem; border-bottom: 2px solid var(--amber);
}
.group > legend + * { clear: both; }
@media (min-width: 40rem) { .group { padding: 1.25rem 1.5rem .5rem; } }
.fields { display: grid; grid-template-columns: 1fr; column-gap: 1.25rem; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } }
.sub legend { font-size: 1.02rem; }
.help { margin: 0 0 .5rem; font-size: .92rem; color: var(--ink-soft); }
.choices { display: grid; gap: .5rem; }
.choices.grid { grid-template-columns: 1fr; }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
@media (min-width: 34rem) { .choices.grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .choices.grid { grid-template-columns: 1fr 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: .65rem; min-height: 52px; padding: .5rem .9rem;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font-weight: 600; line-height: 1.3;
}
.choice label:hover { border-color: var(--field); }
.choice label::before {
  content: ""; flex: 0 0 auto; width: 1.2rem; height: 1.2rem; border: 2px solid var(--field); border-radius: 50%;
  background: var(--paper) center / 85% no-repeat;
}
.choice input[type="checkbox"] + label::before { border-radius: 5px; }
.choice input:checked + label { border-color: var(--forest); background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.choice input[type="checkbox"]:checked + label::before { background-color: var(--forest); border-color: var(--forest); background-image: var(--tick); }
.choice input[type="radio"]:checked + label::before { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 3.5px var(--paper); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.remember { margin: 0 0 1rem; }
.job-icon { font-size: 1.35em; line-height: 1; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.req { font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background-color: var(--paper);
  border: 2px solid var(--field); border-radius: var(--r); padding: .55rem .8rem; min-height: 52px;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
[aria-invalid="true"] { border-color: var(--yes) !important; }
.error { color: var(--yes); font-weight: 700; margin: .3rem 0 0; }
.status { font-weight: 700; min-height: 1.5em; }
details > summary { cursor: pointer; font-weight: 700; color: var(--forest); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Job tiles (step 1) ---------- */
.choices.tiles { grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: .55rem; }
.tiles .choice label {
  flex-direction: column; justify-content: center; text-align: center; gap: .35rem;
  min-height: 6.2rem; padding: .7rem .5rem .6rem; font-size: .98rem;
}
.tiles .choice label::before { position: absolute; top: .5rem; left: .5rem; width: 1.05rem; height: 1.05rem; }
.tiles .job-icon { font-size: 1.9rem; }
.tiles-small .choice label { min-height: 4.8rem; }
.tiles-small .job-icon { font-size: 1.5rem; }

/* ---------- The tool page: 1 Where?  2 What job? (+ details)  then Your answer ---------- */
.jobs > legend, .block > legend { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin-bottom: .8rem; letter-spacing: -.01em; }
.jobs > legend .hint, .block > legend .hint { display: inline-block; }
#questions { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem .2rem; }
#questions .step-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; margin: 0 0 .6rem; }
.q { margin: 0 0 1rem; padding: .9rem 0 0; border-top: 1px solid var(--line); }
.q > legend { float: left; width: 100%; margin-bottom: .3rem; }
.q > legend ~ * { clear: both; }
.city-field { max-width: 26rem; }
.tiles + .city-field { margin-top: 1.25rem; }
#find-job .block { margin-bottom: 1rem; }
/* ---------- Step 1: where is the job? (v3: first, open, four big ways) ---------- */
.where-step { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.1rem .6rem; box-shadow: var(--shadow); }
@media (min-width: 40rem) { .where-step { padding: 1.4rem 1.6rem .8rem; } }
.where-step > h2 { margin: 0 0 .35rem; }
.where-lead { font-size: 1.05rem; margin: 0 0 .4rem; }
.where-step .fine { margin: 0 0 .9rem; }
.ways { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 0 0 1rem; }
@media (min-width: 34rem) { .ways { grid-template-columns: 1fr 1fr; } }
.way {
  display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 4.6rem; padding: .7rem 1rem;
  text-align: left; font: inherit; color: var(--forest); background: var(--paper);
  border: 2px solid var(--forest); border-radius: var(--r); cursor: pointer; transition: background-color .15s ease;
}
.way:hover { background: var(--tint); }
.way-main { background: var(--forest); color: var(--on-forest); }
.way-main:hover { background: var(--forest-deep); }
.way-icon { font-size: 1.8rem; line-height: 1; flex: 0 0 auto; }
.way-text { display: flex; flex-direction: column; gap: .1rem; }
.way-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.way-sub { font-size: .88rem; line-height: 1.3; opacity: .85; }
.ways input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.way[aria-expanded="true"] { background: var(--amber-soft); }
@media (prefers-reduced-motion: reduce) { .way { transition: none; } }
.addr-box { margin: 0 0 1rem; }
.addr-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.addr-row input { flex: 1 1 16rem; }
.addr-row .btn { flex: 0 0 auto; }
.addr-list { display: grid; gap: .45rem; margin: .5rem 0 0; }
.addr-list .btn { justify-content: flex-start; text-align: left; }
.addr-many { font-weight: 700; margin: 0; }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-weight: 700; color: var(--forest); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.city-open { margin: 0; }
.cam-img { display: block; max-width: 10rem; max-height: 10rem; border: 2px solid var(--line); border-radius: var(--r); margin: .5rem 0 1rem; }
.cam-source { font-weight: 700; margin: 0 0 .5rem; }
/* "Is the job here?" The one moment that waits for the person: amber edge, the question in the display face. */
.place-ask { border-left: 6px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--r) var(--r) 0; padding: .9rem 1rem; margin: 0 0 1rem; }
.place-q { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; margin: 0 0 .7rem; max-width: 36rem; }
.place-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.place-actions .btn { flex: 1 1 10rem; }
.place-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 0 0 .5rem; }
.place-done p { margin: 0; font-size: 1.15rem; }
.pin { font-size: 1.3rem; }
.where-step details.more { margin: 0 0 .4rem; }
.where-step details.more ul { font-size: .9rem; color: var(--ink-soft); padding-left: 1.2rem; }

/* ---------- What is still needed + the one button ---------- */
.needs { border: 2px dashed var(--field); border-radius: var(--r); padding: .9rem 1rem 1rem; margin: 0 0 var(--gap); }
.needs.ready { border: 2px solid var(--forest); background: var(--maybe-bg); }
.needs-title { font-weight: 700; margin: 0 0 .3rem; }
.need-list { margin: 0 0 .9rem; padding-left: 1.3rem; }
.need-list li { margin: .25rem 0; }
.btn-check { width: 100%; min-height: 60px; font-size: 1.1rem; }
.btn-check[disabled] { opacity: 1; background: var(--tint); color: var(--ink-soft); border-color: var(--line); }

/* The answer card: at the END, below the questions, full width, on phone and desktop. Shown only after the button. */
#answer {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-head { background: var(--amber); color: #12261E; padding: .8rem 1.15rem .75rem; border-bottom: 2px solid var(--ink); }
.card-head h2 { margin: 0; color: #12261E; }
.card-body { padding: 1rem 1.15rem 1.1rem; }
.scale { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.scale li {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 3.1rem; padding: .35rem .4rem;
  border: 2px dashed var(--line); border-radius: var(--r); color: var(--ink-soft); font-weight: 700; font-size: .88rem; line-height: 1.2;
}
.scale li.on { border-style: solid; color: #12261E; }
.scale .scale-yes.on { background: var(--yes-bg); border-color: var(--yes); color: var(--yes); }
.scale .scale-check.on { background: var(--check-bg); border-color: var(--amber); color: var(--check); }
.scale .scale-no.on { background: var(--maybe-bg); border-color: var(--maybe); color: var(--maybe); }
#live-summary { font-family: var(--display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 .4rem; }
.result:empty, .sheet:empty { display: none; }
.result .ans { border-top: 1px dashed var(--line); padding-top: .2rem; margin-top: .9rem; }
.result .ans:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.result .ans:first-child > h3, .result .sum { display: none; } /* the summary line above already says it */
.result h3 { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.result p, .result li { font-size: .95rem; }
.job-lines, .bring, .where { list-style: none; padding: 0; margin: .4rem 0; }
.res-line { border-left: 5px solid var(--line); padding: .45rem .75rem; margin: .4rem 0; background: var(--tint); border-radius: 0 var(--r) var(--r) 0; max-width: none; }
.res-line.res-yes, .res-line.res-likely { border-color: var(--yes); background: var(--yes-bg); }
.res-line.res-probably_not { border-color: var(--maybe); background: var(--maybe-bg); }
.res-line.res-check { border-color: var(--amber); background: var(--check-bg); }
.res-line strong { font-weight: 700; }
details.why > summary, details.more > summary { min-height: 36px; font-size: .92rem; }
details.why[open], details.more[open] { padding-bottom: .3rem; }
.bring li, .where li { margin: .45rem 0; padding-left: 1.6rem; position: relative; }
.bring li::before { content: ""; position: absolute; left: 0; top: .3em; width: .95rem; height: .95rem; border: 2px solid var(--field); border-radius: 4px; }
.where li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .55rem; height: .55rem; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.result .btn { width: 100%; }
.next { border-top: 2px solid var(--ink); margin-top: 1rem; padding-top: .9rem; }
.next p { margin: 0 0 .5rem; font-weight: 700; }
.next .btn { width: 100%; }
#answer .fine { margin: 1rem 0 0; }

#answer h2:focus { outline: none; }
#answer { scroll-margin-top: 1rem; }
@media (min-width: 56rem) { #answer .card-body { padding: 1.3rem 1.6rem 1.4rem; } #answer .next .btn { width: auto; } }

/* The bar at the bottom of the screen (restored from the first version): what is still needed, or the button. */
.answer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: .75rem;
  padding: .5rem 16px; background: var(--paper); border-top: 4px solid var(--amber); box-shadow: 0 -2px 10px rgba(18, 38, 30, .18);
}
.answer-bar p { margin: 0; flex: 1; font-weight: 700; font-size: .95rem; max-width: none; }
.answer-bar .btn { min-height: 48px; flex: 0 0 auto; }
#bar { margin: 0; }
body[data-page="index"] { padding-bottom: 6rem; }

/* ---------- Form helper sheet ---------- */
.sheet { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 1.2rem; margin-top: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.sheet dl { display: grid; grid-template-columns: 1fr; gap: .1rem 1rem; margin: 0 0 .75rem; }
.sheet dt { font-weight: 700; }
.sheet dd { margin: 0 0 .5rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
@media (min-width: 34rem) { .sheet dl { grid-template-columns: 14rem 1fr; } .sheet dd { margin: 0; } }

/* ---------- Contractors (sample mode / coming soon) and Find a contractor ---------- */
.kcard { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; margin: .7rem 0; background: var(--paper); }
.kcard h3 { margin-top: 0; }
.kcard p { margin: .4rem 0; }
.ktag { font-family: var(--body); font-size: .45em; font-weight: 700; letter-spacing: .02em; background: var(--amber-soft); color: var(--amber-ink); border: 1.5px solid var(--amber); border-radius: 6px; padding: .05em .45em; vertical-align: .45em; }
.ksteps { padding-left: 0; list-style: none; }
.ksteps li { margin: .35rem 0; }
body[data-page="find"] #pick-section { display: grid; gap: 0 2.5rem; }
@media (min-width: 56rem) { body[data-page="find"] #pick-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Front door (language chooser) ---------- */
.hero { display: grid; gap: 2rem; padding: .5rem 0 1rem; align-items: center; }
.h1-es { display: block; color: var(--ink-soft); font-weight: 500; font-style: italic; font-size: .62em; margin-top: .35rem; letter-spacing: -.01em; }
.hero .lead + .lead { margin-top: -.6rem; font-size: 1rem; }
.lang-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.4rem; max-width: 28rem; }
.btn-lang { font-size: 1.15rem; min-height: 60px; }
.placard { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
.placard-demo { margin: 0; transform: rotate(-1.2deg); max-width: 27rem; justify-self: center; width: 100%; }
.placard-head { display: flex; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; flex-wrap: wrap; margin: 0; background: var(--amber); color: #12261E; padding: .8rem 1.15rem .75rem; border-bottom: 2px solid var(--ink); }
.placard-head p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.placard-head [lang="es"] { font-style: italic; font-weight: 500; opacity: .8; font-size: .85em; }
.placard-head .placard-city { font-family: var(--body); font-size: .88rem; font-weight: 700; }
.demo-lines { list-style: none; margin: 0; padding: .8rem 1.15rem .2rem; }
.demo-lines .res-line { display: grid; gap: .1rem; padding: .55rem .8rem; }
.demo-job { font-weight: 700; }
.demo-job [lang="es"] { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.demo-lines strong { font-family: var(--display); font-size: 1.12rem; }
.res-line.res-yes strong { color: var(--yes); }
.res-line.res-check strong { color: var(--check); }
.res-line.res-probably_not strong { color: var(--maybe); }
.placard-demo figcaption { padding: .4rem 1.15rem 1rem; color: var(--ink-soft); font-size: .92rem; }
.placard-demo figcaption [lang="es"] { display: block; }
.promises ul { list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 1.2rem; }
.promises li { max-width: none; }
.promises li > strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.promise-es { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .93rem; }
.promise-es strong { font-weight: 700; }
@media (min-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; padding: 1.5rem 0 2rem; }
  .promises ul { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .placard-demo { transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #E3ECE7; padding: 1.8rem 0 2rem; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #06110C; } }
.site-footer a { color: #FFFFFF; }
.foot { display: grid; gap: .8rem 3rem; }
.foot-name { display: flex; align-items: center; gap: .55rem; margin: 0 0 .3rem; color: #FFFFFF; }
.foot-name .mark { width: 30px; height: 30px; }
.foot-name .wordmark { font-size: 1.3rem; }
.foot-line { margin: 0 0 .3rem; color: #C3D3CA; }
.foot-text p { margin: 0 0 .5rem; }
.disclaimer { font-weight: 700; color: #FFFFFF; }
@media (min-width: 52rem) { .foot { grid-template-columns: 16rem minmax(0, 1fr); } }

/* ---------- Print: only the sheet (form page) or the main content ---------- */
@media print {
  html { font-size: 12pt; }
  .site-header, .skip, .nav, .actions, noscript, .lang, .next, .answer-bar, .ways, .needs { display: none !important; }
  body[data-page="form"] main > section:not(#sheet-section) { display: none !important; }
  body[data-page="index"] main { display: block !important; }
  .sheet, #answer, .placard { border: 0; padding: 0; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .site-footer { background: none; padding: 0; }
  * { color: #000 !important; background: #fff !important; }
}
