:root {
  color-scheme: light;
  --ink: #193645;
  --teal: #205c57;
  --sea: #e5efe7;
  --rust: #9e4933;
  --cream: #faf7ef;
  --paper: #fffefa;
  --muted: #4f6268;
  --line: #ccd3c9;
  font: 100%/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header, main { width: min(100% - clamp(2rem, 8vw, 8rem), 74rem); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; border-bottom: 1px solid var(--line); }
header img { width: 4.8rem; height: 4.8rem; display: block; }
header a:last-child { font-size: .9rem; }
main { padding-bottom: 3rem; }
a { color: var(--teal); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #af572d; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, select, label:has(input[type="radio"]), label:has(input[type="checkbox"]), summary { cursor: pointer; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.13; }
.water-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; padding: clamp(1.4rem, 3.4vw, 3rem) 0; }
.intro-copy { min-width: 0; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
h1 { font-size: clamp(3.1rem, 5.5vw, 5.1rem); line-height: .98; letter-spacing: -.055em; margin: .55rem 0 .85rem; }
h1 em { white-space: nowrap; color: var(--teal); font-weight: 400; }
.intro-deck { max-width: 48ch; color: #354e54; font-size: clamp(1rem, 1.35vw, 1.14rem); }
.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.25rem; margin-top: 1.15rem; font-size: .94rem; font-weight: 630; }
.intro-links a { display: inline-flex; align-items: center; min-height: 44px; }
.start-link, .primary { border: 1px solid var(--ink); background: var(--ink); color: white; border-radius: .55rem; text-decoration: none; font-weight: 670; padding: .7rem 1.2rem; }
.start-link:hover, .primary:hover { color: white; background: var(--teal); border-color: var(--teal); }
.shore-art { width: 100%; max-height: 20rem; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center 52%; border-radius: 4.75rem .8rem 4.75rem .8rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(15rem, .95fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
#builder, #permit-information, #project-changes, section h2 { scroll-margin-top: 1rem; }
#builder { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 8px 28px #19364509; min-width: 0; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; background: #f1f4ed; border-radius: 1.25rem 1.25rem 0 0; border-bottom: 1px solid var(--line); }
.progress li { padding: .95rem .35rem; display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--muted); font-size: .9rem; box-shadow: inset 0 -3px transparent; }
.progress li[aria-current] { color: var(--teal); box-shadow: inset 0 -3px var(--teal); font-weight: 700; }
.progress b { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid #a4b2ab; border-radius: 50%; font: 650 .85rem/1 system-ui, sans-serif; }
.progress li[aria-current] b, .progress .complete b { background: var(--teal); color: white; border-color: var(--teal); }
#flow section { padding: clamp(1.25rem, 3.1vw, 2.35rem); }
h2 { font-size: clamp(1.85rem, 3vw, 2.4rem); letter-spacing: -.035em; }
section > h2 { margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin: .9rem 0 .35rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend, label { font-weight: 620; }
label[for], .choice-field legend { display: block; padding: 0; margin: 1rem 0 .45rem; }
.choice-field { margin-bottom: 1.1rem; }
.choice-field legend { margin: 0 0 .5rem; }
.permit-choices, .length-choices { display: grid; gap: .5rem; }
.permit-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.length-choices { max-width: 24rem; grid-template-columns: 1fr 1fr; }
.permit-choices label, .length-choices label { display: flex; align-items: center; gap: .55rem; border: 1px solid #abb9b2; border-radius: .6rem; padding: .75rem; background: white; line-height: 1.3; min-height: 44px; }
.length-choices label { padding: .62rem .75rem; }
.permit-choices label:has(:checked), .length-choices label:has(:checked), .priority:has(:checked) { background: var(--sea); border-color: var(--teal); }
.permit-choices label:hover, .length-choices label:hover, .priority:hover { border-color: var(--teal); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--teal); width: 1.1rem; height: 1.1rem; margin: 0; flex: 0 0 1.1rem; }
.permit-choices strong, .permit-choices small { display: block; }
small, .hint, .selection-count, .record-sources, .topic-source { font-size: .875rem; font-weight: 400; color: var(--muted); }
.permit-choices small { margin-top: .2rem; }
.hint { margin: .45rem 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; padding: .68rem .8rem; background: white; color: var(--ink); border: 1px solid #92a49b; border-radius: .55rem; }
select { appearance: auto; min-height: 46px; }
textarea { resize: vertical; line-height: 1.55; }
#opening-examples { margin: .25rem 0 .55rem; }
#opening-examples summary { color: var(--teal); cursor: pointer; width: fit-content; padding: .6rem 0; min-height: 44px; font-weight: 620; }
#opening-examples .hint { margin: 0 0 .4rem; }
.opening-options { display: grid; gap: .4rem; }
.opening-options button { min-height: 44px; text-align: left; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); color: var(--ink); }
.opening-options button:hover, .opening-options button:focus-visible { border-color: var(--teal); background: var(--sea); }
textarea::placeholder { color: #596b71; }
label small { margin-left: .38rem; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 1rem; }
.primary:disabled { opacity: .55; cursor: wait; }
.back, .draft-backup button { padding: .45rem .12rem; border: 0; background: transparent; color: var(--teal); text-decoration: underline; text-underline-offset: .2em; font-size: .93rem; min-height: 44px; }
.form-actions { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-top: 1rem; }
.form-actions .primary { margin: 0; }
#reset { display: block; margin: 0 clamp(1.25rem, 3.1vw, 2.35rem) .8rem; color: var(--muted); font-size: .875rem; }
#save-status:not(:empty) { padding: .5rem 1.25rem; }
#topic-error, #save-status { color: #843421; }
#topic-error:empty, #save-status:empty, #send-status:empty, [id$="selection-status"]:empty { display: none; }
.scope-label { color: var(--teal); font-weight: 650; margin: -.4rem 0 .45rem; }
.topic-group { background: white; border: 1px solid var(--line); border-radius: .7rem; margin: .65rem 0; }
.topic-group > summary, .side-detail > summary { display: flex; align-items: center; gap: .75rem; list-style: none; font-weight: 650; }
#export-priority { border-inline-start: .25rem solid var(--teal); }
.topic-group > summary { padding: .88rem 1rem; }
.topic-group > summary::-webkit-details-marker, .side-detail > summary::-webkit-details-marker { display: none; }
.topic-group > summary > span { flex: 1; }
.topic-group > summary::after, .side-detail > summary::after { content: ""; width: .52rem; height: .52rem; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateY(-2px) rotate(45deg); flex: 0 0 .52rem; }
.topic-group[open] > summary::after, .side-detail[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.selection-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.group-body { padding: 0 1rem .75rem; }
.group-body .priority { display: flex; align-items: flex-start; gap: .65rem; padding: .68rem .8rem; margin: .5rem 0 .15rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); font-weight: 450; }
.group-body .priority:has(:checked) { background: var(--sea); }
.priority input, .check input { margin-top: .2rem; }
.priority strong, .priority small { display: block; }
.priority small { margin: .2rem 0 0; }
#representatives { margin-top: 1.25rem; }
#representatives legend { padding: 0; }
#representatives .hint { margin: .15rem 0 .65rem; }
.office-choice { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem .85rem; margin: .45rem 0; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.office-choice input { margin-top: .2rem; }
.office-choice strong, .office-choice small, .office-request { display: block; }
.office-choice small { margin: 0; color: var(--teal); }
.office-request { margin-top: .3rem; font-size: .94rem; font-weight: 400; }
.office-choice:hover, .office-choice:has(:checked) { border-color: var(--teal); }
.office-choice:has(:checked) { background: var(--sea); }
.recipient-summary { padding: .65rem .85rem; margin: .85rem 0; border: 1px solid var(--line); border-radius: .55rem; }
.recipient-summary summary { color: var(--teal); font-weight: 650; }
.recipient-summary dl { margin: .55rem 0; }
#email-cc { white-space: pre-line; }
.topic-source { display: inline-block; padding: .4rem .1rem; color: var(--teal); }
.enforcement-detail { margin: .15rem 0 .55rem; font-size: .96rem; }
.enforcement-detail > summary { padding-block: .5rem; font-size: .9rem; color: var(--teal); }
details p { margin: .6rem 0; }
details a, .permit-info { overflow-wrap: anywhere; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 480; padding: .55rem 0; }
#draft { min-height: 16rem; max-height: 58vh; }
#draft, #letter-preview { width: 100%; max-height: 68vh; font-size: 1rem; line-height: 1.55; }
#letter-preview { overflow: auto; overflow-wrap: anywhere; padding: clamp(1rem, 3.5vw, 2.25rem); border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
#letter-preview .letter-content { margin: 0 auto; }
#letter-preview p:last-child { margin-bottom: 0 !important; }
.letter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin: 1rem 0 .5rem; }
.letter-toolbar h3 { margin: 0; }
.letter-toolbar small { display: inline-block; margin-left: .35rem; font-family: system-ui,sans-serif; }
.letter-toolbar button { flex-shrink: 0; }
.delivery, .draft-backup { margin: .8rem 0; padding: 1.15rem; background: var(--sea); border-radius: .75rem; }
.delivery .primary { margin: 0; }
.delivery p:not(:empty) { margin: .65rem 0; }
#email-step h3 { margin-top: 0; }
.secondary { min-height: 44px; border: 1px solid var(--teal); color: var(--teal); background: var(--paper); border-radius: .55rem; padding: .65rem 1rem; font-weight: 620; }
.secondary:hover, .providers a:hover { background: var(--sea); }
.providers a span, .providers a small { display: block; }
.providers a span { font-weight: 650; }
.providers a small { margin-top: .12rem; }
.email-fallback { margin-top: 1rem; border-top: 1px solid var(--line); }
.email-fallback summary { padding: .75rem 0; font-weight: 650; color: var(--teal); cursor: pointer; }
.email-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: .45rem; }
.email-field button { white-space: nowrap; }
#recommended-hint { max-width: 65ch; }
#send-status:not(:empty) { color: var(--ink); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .28rem .8rem; }
dt { font-weight: 650; }
dd { margin: 0; overflow-wrap: anywhere; }
.providers { display: flex; gap: .5rem; flex-wrap: wrap; }
.providers a { border: 1px solid var(--teal); padding: .62rem .8rem; background: var(--paper); border-radius: .5rem; text-decoration: none; font-size: .94rem; }
.permit-info { background: var(--sea); padding: clamp(1.15rem, 2.5vw, 1.8rem); border-radius: 1.15rem; border-top: .3rem solid var(--teal); }
.permit-info h2 { font-size: 1.8rem; }
.info-intro { padding: .4rem 0 .85rem; color: var(--muted); }
.permit-source { display: block; padding: .7rem .9rem; background: #fafcf6; border: 1px solid #bacac0; border-radius: .55rem; margin-bottom: .55rem; }
.permit-source span, .permit-source small { display: block; }
.permit-source { text-decoration: none; }
.permit-source span { text-decoration: underline; font-weight: 650; }
.side-detail { border-bottom: 1px solid #b6c8bd; }
.side-detail > summary { justify-content: space-between; padding: .85rem 0; }
.side-detail p { font-size: .94rem; }
.timeline-link { display: inline-block; margin-top: .75rem; padding-block: .45rem; font-weight: 600; font-size: .94rem; }
.mobile-return { display: none; }
.project-record { border-block: 1px solid var(--line); margin-top: 1.65rem; padding: 1rem .2rem; }
.project-record > summary { font-weight: 650; }
.project-record p, .project-record li { max-width: 82ch; }
.project-record h3 { color: var(--teal); }
.record-list { padding-left: 1.3rem; }
.record-list li { padding: .15rem 0 .6rem .3rem; }
.graphic-link img { display: block; width: min(100%, 18rem); height: auto; margin-top: .7rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 54rem) {
  .workspace { grid-template-columns: 1fr; }
  .shore-art { border-radius: 3rem .65rem; }
  .mobile-return { display: block; width: fit-content; padding: .6rem 0; font-size: .94rem; }
}
@media (max-width: 38rem) {
  header, main { width: calc(100% - 2rem); }
  header { min-height: 3.8rem; }
  header img { width: 3.8rem; height: 3.8rem; }
  .water-intro { grid-template-columns: minmax(0, 1fr) 26%; gap: .3rem .6rem; padding: 1rem 0 1.15rem; }
  .intro-copy { display: contents; }
  .eyebrow { grid-column: 1; font-size: .78rem; }
  h1 { grid-column: 1; font-size: clamp(2.55rem, 9vw, 3.4rem); margin: .15rem 0 .25rem; }
  h1 em { white-space: normal; }
  .intro-deck, .intro-links { grid-column: 1 / -1; }
  .intro-links { margin-top: .45rem; }
  .shore-art { grid-column: 2; grid-row: 1 / 3; aspect-ratio: .95; object-fit: cover; border-radius: 2rem .4rem; }
  .progress li { gap: .25rem; padding: .8rem .1rem; font-size: .83rem; }
  .progress b { width: 1.3rem; height: 1.3rem; font-size: .8rem; }
  #flow section { padding: 1.1rem; }
  .permit-choices { grid-template-columns: 1fr; gap: .35rem; }
  .permit-choices label { padding: .65rem; }
  .permit-choices label > span { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; width: 100%; }
  .permit-choices small { margin-top: 0; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .primary { width: 100%; }
  .group-body { padding-inline: .55rem; }
  .topic-group > summary { padding: .8rem .65rem; gap: .45rem; }
  .form-actions { flex-direction: column; align-items: stretch; gap: .2rem; }
  dl { display: block; } dd { margin-bottom: .4rem; }
}
