/*
 * Golden claims — an extension of getgolden.insure.
 *
 * Every value below is Golden's own (their :root tokens): ink, parchment, the warm
 * gold, the violet range, Instrument Serif for display and Inter for everything else,
 * set in Golden's tracked uppercase for labels. The page is ink with the tunnel light
 * at the top; anything a claimant fills in is a parchment sheet, because a long medical
 * form reads better dark-on-light, and Golden itself uses parchment for its light ground.
 */

:root {
  --ink: #0d0b12;
  --ink-2: #1a1724;
  --ink-3: #24202f;
  --parchment: #f4f1eb;
  --card: #fbf8f1;
  --field: #fffdf8;
  --border: #e8e4dd;
  --muted: #6b6577;
  --gold: #e8b84a;
  --gold-bright: #f0d78c;
  --violet-deep: #1a0b2e;
  --violet-mid: #2d1654;
  --violet-glow: #6b2fb3;
  --danger: #c0392b;
  --success: #2f8a5c;

  --on-ink: rgb(244 241 235);
  --on-ink-70: rgb(244 241 235 / 0.7);
  --on-ink-55: rgb(244 241 235 / 0.55);
  --on-ink-12: rgb(244 241 235 / 0.12);

  --display: 'Instrument Serif', Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ the tunnel light */

.tunnel {
  position: absolute; inset: 0 0 auto 0; overflow: hidden; height: 720px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 72% 0%, rgb(107 47 179 / 0.38), transparent 70%),
    radial-gradient(45% 40% at 28% 0%, rgb(232 184 74 / 0.16), transparent 70%),
    linear-gradient(180deg, var(--violet-deep) 0%, var(--ink) 78%);
  animation: lights-up 1.6s ease-out both;
}
.beam {
  position: absolute; top: -40px; width: 38%; height: 620px;
  background: linear-gradient(180deg, rgb(240 215 140 / 0.22), transparent 75%);
  filter: blur(22px);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  opacity: 0.55;
}
.beam-l { left: 8%; transform: rotate(14deg); transform-origin: top center; }
.beam-r { right: 6%; transform: rotate(-16deg); transform-origin: top center; background: linear-gradient(180deg, rgb(182 91 240 / 0.24), transparent 75%); }

@keyframes lights-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.golden-shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ------------------------------------------------------------------ header */

.portal-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--on-ink-12);
}
.lockup { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.lockup-corgi { height: 20px; width: auto; }
.lockup-golden { height: 36px; width: auto; }
.lockup-rule { width: 1px; height: 22px; background: var(--on-ink-12); }
.header-section {
  font: 600 10px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-ink-70); text-decoration: none;
}
a.header-section:hover { color: var(--gold); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-link {
  font: 600 10px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--gold); padding: 10px 16px; border-radius: var(--radius-sm);
}
.header-link:hover { color: var(--ink); background: var(--gold-bright); }
.header-link.quiet { background: none; color: var(--on-ink-55); padding: 10px 0; }
.header-link.quiet:hover { color: var(--gold); }

/* ------------------------------------------------------------------ type */

.eyebrow {
  margin: 0; font: 600 10px/1.5 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-ink-55);
}
.eyebrow.gold { color: var(--gold); }

.portal-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(48px, 9vw, 112px) var(--gutter) 96px; }
.portal-main.narrow { max-width: 760px; }
/* The report form: one column, wide enough for two fields a row. */
.portal-main.medium { max-width: calc(880px + 2 * var(--gutter)); }

/* ------------------------------------------------------------------ compact pages */

/* Every claim page but the front door: a one-line header so the form is in the first
   screen; the tunnel light stays, shorter, so it frames rather than fills. */
body.compact .tunnel { height: 400px; }
body.compact .beam { height: 380px; opacity: 0.38; }
body.compact .portal-main { padding-top: clamp(26px, 3.6vw, 44px); }
.page-head { margin: 0 0 26px; animation: rise 0.5s ease-out both; }
.page-head .eyebrow { margin: 0; }
.page-head h1 {
  margin: 8px 0 0;
  font: 400 clamp(30px, 3.4vw, 40px)/1.08 var(--display);
  letter-spacing: -0.01em; color: var(--on-ink);
}
.page-sub { margin: 8px 0 0; max-width: 62ch; color: var(--on-ink-70); font-size: 15px; }
.portal-main > .button { margin-top: 4px; }

.page-intro { margin-bottom: clamp(36px, 6vw, 64px); }
.page-intro h1 {
  margin: 18px 0 0;
  font: 400 clamp(56px, 9vw, 104px)/0.92 var(--display);
  letter-spacing: -0.025em;
  color: var(--on-ink);
  animation: rise 0.7s ease-out both;
}
/* The second line in gold, upright, as getgolden sets "Greatness." */
.page-intro h1 em { display: block; font-style: normal; color: var(--gold); animation: rise 0.7s 0.12s ease-out both; }
.page-intro .lede { margin: 26px 0 0; max-width: 46ch; color: var(--on-ink-70); font-size: 17px; }
.page-intro .button { margin-top: 28px; }
.ref { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; color: var(--gold); white-space: nowrap; }

.muted { color: var(--muted); }
.muted.on-dark { color: var(--on-ink-55); }
.muted a { color: var(--gold); }

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 14px 24px; border: 0; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--ink);
  font: 600 12px/1.5 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: var(--gold-bright); color: var(--ink); }
.button:active { transform: translateY(1px); }
.button[disabled] { background: #d9d3c6; color: #8c8696; cursor: not-allowed; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--parchment); }
.button.ghost { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--on-ink-12); }
.button.ghost:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ the report */

.claim-layout > * { min-width: 0; }
.claim-layout { display: block; }


/* The sheet: everything a claimant fills in. */
.claim-form, .card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 30px 80px -30px rgb(0 0 0 / 0.65);
}
.claim-form { padding: clamp(24px, 4vw, 48px); animation: rise 0.7s 0.2s ease-out both; }
.card { margin: 0 0 20px; }
.card.pad { padding: clamp(22px, 3.5vw, 36px); }
.card h2 { margin: 0 0 6px; font: 400 30px/1.1 var(--display); color: var(--ink); }
.card .muted { margin: 0 0 18px; }
.card a:not(.button) { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.card a:not(.button):hover { color: var(--ink); text-decoration-thickness: 2px; }

.form-topline {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
  font: 600 10px/1.5 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.form-topline span:first-child { color: var(--ink); }

.form-section { padding: 30px 0; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: 0; }
.section-heading { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font: 400 30px/1.1 var(--display); letter-spacing: -0.005em; }
.count { font: 500 11px/1 var(--sans); letter-spacing: 0.2em; color: #b08a2e; font-variant-numeric: tabular-nums; }
.count i { font-style: normal; color: #b9b3c2; }
.section-fields { display: grid; gap: 18px; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.form-field, .section-fields { min-width: 0; }
.form-field { display: grid; gap: 7px; align-content: start; }
.form-field label { font: 600 12px/1.4 var(--sans); color: var(--ink); }
.optional {
  margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: #ebe6db;
  font: 600 9px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); vertical-align: 1px;
}
.field-helper-inline { font-weight: 400; color: var(--muted); }
.field-helper { margin: 0; font-size: 13px; color: var(--muted); }

input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='time'], input:not([type]), select, textarea {
  width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 11px 14px;
  font: 400 15px/1.4 var(--sans); color: var(--ink);
  background: var(--field); border: 1px solid #d9d3c6; border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
input::placeholder, textarea::placeholder { color: #a39dab; }
input:hover, select:hover, textarea:hover { border-color: #b9b3c2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(232 184 74 / 0.45); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.field-error { margin: 0; font-size: 13px; color: var(--danger); }

.minor-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; width: fit-content; }
.minor-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.minor-fields { display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: #f3efe6; border-left: 2px solid var(--gold); }

/* Files. The box is a <label> for the input: a click anywhere opens the picker, with or
   without script. With script (html.js) the native input is hidden and the box takes
   drops; without it the native input stays visible and works as ever. */
.drop-zone {
  display: grid; justify-items: center; gap: 8px; padding: 26px 20px; text-align: center;
  border: 1.5px dashed #c9c2b4; border-radius: var(--radius-sm); background: var(--field);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--gold); background: #fffaf0; }
.drop-zone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(232 184 74 / 0.45); }
.drop-button {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--parchment);
  font: 600 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}
.drop-zone:hover .drop-button { background: #2a2534; }
.drop-hint { font-size: 14px; color: var(--ink); }
.drop-kinds, .upload-limits { font-size: 12px; color: var(--muted); }
.upload-limits { margin: 8px 0 0; }
.drop-button, .drop-hint { display: none; }
html.js .drop-button, html.js .drop-hint { display: inline-flex; }
html.js .drop-zone input[type='file'] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.drop-zone { position: relative; }
input[type='file'] { font: 400 14px var(--sans); color: var(--muted); max-width: 100%; }
input[type='file']::file-selector-button {
  margin-right: 14px; padding: 10px 16px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--ink); color: var(--parchment);
  font: 600 10px/1.5 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}
.file-picker + .button, .file-picker { margin-top: 4px; }
.role-other { margin-top: -4px; }
.is-me { margin-bottom: 2px; font-weight: 500; }
input[readonly] { background: #f3efe6; color: var(--muted); }
.file-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--border);
  font-size: 14px;
}
.file-name { display: grid; gap: 2px; min-width: 0; }
.file-name strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name span { font-size: 12px; color: var(--muted); }
.file-done { color: var(--success); font-weight: 700; }
.file-list progress { width: 120px; height: 4px; accent-color: var(--gold); }
.file-list.on-dark li { background: var(--ink-2); border-color: var(--on-ink-12); color: var(--on-ink); }
.file-list.on-dark .file-done { color: var(--gold); }

/* Submit */
.submit-section { display: grid; gap: 16px; padding-top: 26px; border-top: 1px solid var(--border); }
.human-check { min-height: 65px; }
.consent { margin: 0; font-size: 13px; color: var(--muted); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.submit-row .secure, .submit-row > span {
  font: 600 10px/1.5 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.submit-row.standalone { margin-top: 8px; padding: 22px clamp(22px, 3.5vw, 36px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--on-ink-12); }
.submit-row.standalone > span { color: var(--on-ink-55); }

.form-error, .notice { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; }
.form-error { background: #fbeceb; color: #8e2a20; border-left: 3px solid var(--danger); }
.notice { background: rgb(232 184 74 / 0.12); color: var(--on-ink); border-left: 3px solid var(--gold); }
.form-error[hidden] { display: none; }
.code-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-top: 18px; }
.code-form label { grid-column: 1 / -1; font: 600 12px/1.4 var(--sans); }
#code { font-variant-numeric: tabular-nums; letter-spacing: 0.4em; font-size: 22px; text-align: center; max-width: 220px; }

/* Signed in: the report is filed under the session's address, shown, never typed. */
.field-label { font: 600 12px/1.4 var(--sans); color: var(--ink); }
.signed-in-as {
  margin: 0; min-height: 46px; display: flex; align-items: center; padding: 11px 14px;
  border-radius: var(--radius-sm); background: #f3efe6; border: 1px dashed #d9d3c6;
  font-size: 14px; color: var(--muted); overflow-wrap: anywhere;
}
.signed-in-as strong { margin-left: 6px; font-weight: 600; color: var(--ink); }
.new-report { margin: 0 0 22px; }

/* ------------------------------------------------------------------ the pass (signature) */

.pass {
  position: relative; margin: 0 0 40px; max-width: 560px;
  border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(107 47 179 / 0.35), transparent 60%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px rgb(232 184 74 / 0.55), 0 40px 90px -40px rgb(107 47 179 / 0.6);
  animation: rise 0.8s 0.2s ease-out both;
}
/* The perforation between band and body, as on a credential. */
.pass::before, .pass::after {
  content: ''; position: absolute; top: 58px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(232 184 74 / 0.55);
}
.pass::before { left: -11px; }
.pass::after { right: -11px; }
.pass-band {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 69px; padding: 0 28px; border-bottom: 1px dashed rgb(232 184 74 / 0.45);
  background: linear-gradient(90deg, rgb(232 184 74 / 0.14), transparent);
}
.pass-band img { height: 29px; width: auto; }
.pass-band span { font: 600 10px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.pass-body { padding: 28px 28px 8px; }
.pass-ref {
  display: block; font: 600 clamp(30px, 6vw, 44px)/1.1 var(--sans); letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; color: var(--gold-bright); overflow-wrap: anywhere;
}
.pass-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 36px; margin: 24px 0 0; }
.pass-meta div { display: grid; gap: 4px; }
.pass-meta dt { font: 600 9px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-ink-55); }
.pass-meta dd { margin: 0; font-size: 14px; color: var(--on-ink); }
.pass-foot { margin: 20px 28px 26px; padding-top: 16px; border-top: 1px solid var(--on-ink-12); font-size: 13px; color: var(--on-ink-70); }

.received-files { margin: 0 0 36px; max-width: 560px; }
.received-files h2 { margin-bottom: 8px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* ------------------------------------------------------------------ account */

.claim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.claim-list li.claim-card {
  margin: 0; padding: clamp(20px, 3vw, 28px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.claim-list li.claim-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 30px 80px -30px rgb(0 0 0 / 0.65); }
.claim-card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.claim-card-head a { text-decoration: none; }
.claim-card-head h2 { margin: 0; }
.claim-list .mono { font: 600 20px/1.2 var(--sans); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.claim-card-head .tag { flex: none; white-space: nowrap; }
.tag.status-adjuster_assigned { background: var(--gold); color: var(--ink); }
.tag.status-closed { background: #e7e2d8; color: var(--muted); }

/* Who, when, where, sent: four facts in a row, two on a phone. */
.claim-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin: 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.claim-facts div { min-width: 0; }
.claim-facts dt { font: 600 9px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.claim-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }

/* The adjuster Dane assigned: the one thing a claimant most wants from this page. */
.adjuster { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #f3efe6; border-left: 3px solid var(--gold); }
.adjuster-label { grid-row: span 2; font: 600 9px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #8a6a1f; padding-top: 3px; }
.adjuster-name { font: 400 20px/1.2 var(--display); color: var(--ink); }
.adjuster-role { font: 400 13px var(--sans); color: var(--muted); }
.adjuster-email { font-size: 14px; color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.adjuster.compact { margin-top: 12px; padding: 10px 14px; }
.adjuster.compact .adjuster-name { font-size: 17px; }
.adjuster.pending { border-left-color: #c9c2b4; }
.adjuster.pending .adjuster-label { color: var(--muted); }
.adjuster.pending .muted { font-size: 14px; }
.claim-card-foot { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.claim-card-foot .relation { font: 600 9px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.claim-card-foot .relation.shared { color: #8a6a1f; }
.claim-card-foot .open-claim { margin-left: auto; font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.claim-card-foot .open-claim:hover { color: #8a6a1f; }
.claim-summary .claim-facts { border-bottom: 0; padding-bottom: 0; }

@media (max-width: 640px) {
  .claim-list .mono { font-size: 17px; letter-spacing: 0.05em; }
  .claim-card-head { align-items: flex-start; }
  .claim-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adjuster { grid-template-columns: 1fr; }
  .adjuster-label { grid-row: auto; }
}

/* People on a claim: who can sign in to it, and adding one more. */
.people-list { list-style: none; margin: 4px 0 20px; padding: 0; border-top: 1px solid var(--border); }
.people-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.person-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.person-role { flex: none; font: 600 9px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.add-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.add-person .form-field { margin: 0 !important; }

.tag {
  display: inline-block; padding: 5px 10px; border-radius: 99px; background: var(--ink); color: var(--gold);
  font: 600 9px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}
.crumbs { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: -8px 0 22px; font-size: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.signout { margin: 0; }
.crumbs .link { font-size: 14px; color: var(--on-ink-55); text-decoration: none; }
.crumbs .link:hover { color: var(--gold); }
.note { margin: 0 0 12px; padding: 12px 14px; background: #f3efe6; border-left: 2px solid var(--gold); font-size: 14px; }
.card form + form { margin-top: 18px; }
.card .human-check { margin: 4px 0 18px; }
.card .form-field { margin-bottom: 18px; }

/* ------------------------------------------------------------------ the front door */

/* The one page with a hero: centred and tight, so all six organisations are on the
   first screen. Each is a tile — its name above its logo on white (logos are drawn
   for white), a tap target sized for a phone at the side of a pitch. */
.chooser-main { max-width: calc(1040px + 2 * var(--gutter)); padding-top: clamp(32px, 4.5vw, 56px); }
.chooser-intro { text-align: center; margin: 0 auto clamp(26px, 3.4vw, 38px); }
.chooser-intro h1 {
  margin: 12px 0 0;
  font: 400 clamp(48px, 6.4vw, 80px)/0.94 var(--display);
  letter-spacing: -0.025em; color: var(--on-ink);
  animation: rise 0.7s ease-out both;
}
.chooser-intro h1 em { font-style: normal; color: var(--gold); animation: rise 0.7s 0.1s ease-out both; }
.chooser-intro .lede { margin: 16px auto 0; max-width: 58ch; color: var(--on-ink-70); font-size: 16px; }
/* What this portal is NOT for, said plainly and visibly: a gold-ruled pill under the lede. */
.scope-note {
  display: inline-block; margin: 18px auto 0; padding: 10px 18px; max-width: 62ch;
  border: 1px solid rgb(232 184 74 / 0.4); border-radius: 999px; background: rgb(232 184 74 / 0.08);
  font-size: 14px; line-height: 1.5; color: var(--on-ink);
}
.scope-note a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.scope-note a:hover { color: var(--gold-bright); }
.scope-inline { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--radius-sm); background: #f3efe6; border-left: 2px solid var(--gold); font-size: 13px; color: #3d3847; }
.scope-inline a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.eyebrow-sep { color: rgb(232 184 74 / 0.5); }
.eyebrow-line { color: var(--on-ink-70); }

.programme-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.programme-tile {
  display: grid; grid-template-rows: auto 1fr auto; height: 100%;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.6s ease-out both;
}
.programme-grid li:nth-child(2) .programme-tile { animation-delay: 0.04s; }
.programme-grid li:nth-child(3) .programme-tile { animation-delay: 0.08s; }
.programme-grid li:nth-child(4) .programme-tile { animation-delay: 0.12s; }
.programme-grid li:nth-child(5) .programme-tile { animation-delay: 0.16s; }
.programme-grid li:nth-child(n+6) .programme-tile { animation-delay: 0.2s; }
.programme-tile:hover, .programme-tile:focus-visible {
  color: var(--ink); transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--gold), 0 40px 80px -36px rgb(107 47 179 / 0.7);
}
.programme-name {
  display: block; padding: 18px 20px 0; text-align: center;
  font: 400 22px/1.15 var(--display); letter-spacing: -0.005em; color: var(--ink);
}
/* Logos differ wildly in shape: a fixed stage, each held to a box, centred optically. */
.programme-logo { display: grid; place-items: center; height: 150px; padding: 16px 28px; }
.programme-logo img { max-width: 80%; max-height: 104px; width: auto; height: auto; object-fit: contain; }
.programme-monogram {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(90% 90% at 70% 0%, rgb(107 47 179 / 0.5), transparent 62%), var(--ink);
  font: 400 40px/1 var(--display); color: var(--gold); letter-spacing: 0.02em;
}
.programme-go {
  display: block; padding: 12px 20px 16px; text-align: center; border-top: 1px solid var(--border);
  font: 600 10px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #a08a52;
  transition: color 0.18s ease;
}
.programme-tile:hover .programme-go { color: var(--ink); }
.chooser-filter { max-width: 420px; margin: 0 auto 22px; }
.chooser-filter.on-dark label { color: var(--on-ink-70); }
.chooser-none { max-width: 640px; margin: 0 auto; }
.chooser-empty { margin-top: 18px; text-align: center; }
.chooser-help { margin-top: 26px; text-align: center; }

@media (max-width: 960px) {
  .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .programme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .programme-name { padding: 14px 10px 0; font-size: 17px; min-height: calc(2 * 17px * 1.15 + 14px); }
  .programme-logo { height: 96px; padding: 8px 14px; }
  .programme-logo img { max-height: 64px; max-width: 84%; }
  .programme-monogram { width: 64px; height: 64px; font-size: 28px; }
  .programme-go { padding: 10px 8px 12px; font-size: 9px; letter-spacing: 0.12em; }
  .add-person { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ footer */

.portal-footer { padding: 72px var(--gutter) 36px; border-top: 1px solid var(--on-ink-12); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1240px; margin: 0 auto; }
.footer-logo { height: 64px; width: auto; }
.footer-brand p { margin: 22px 0 0; font-size: 14px; color: var(--on-ink-55); }
.footer-group { display: grid; gap: 14px; align-content: start; }
.footer-group h2 { margin: 0 0 6px; font: 600 10px/1.5 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.footer-group a { font-size: 14px; color: var(--on-ink-70); text-decoration: none; }
.footer-group a:hover { color: var(--gold); }
.footer-family { max-width: 1240px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--on-ink-12); display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer-family h2 { margin: 0; font: 600 10px/1.5 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-ink-55); }
.family-corgi { height: 28px; width: auto; }
.footer-family p { margin: 0; max-width: 560px; font-size: 12px; color: var(--on-ink-55); }
.footer-bottom { max-width: 1240px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--on-ink-12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--on-ink-55); }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { text-decoration: none; }

/* ------------------------------------------------------------------ the report's steps */

/* Without JavaScript every step shows, stacked, and the step controls are absent. */
html:not(.js) .js-only { display: none !important; }

.stepper {
  list-style: none; margin: 4px 0 6px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  counter-reset: step;
}
.stepper li { min-width: 0; }
.stepper a {
  display: grid; gap: 8px; padding: 12px 2px 0; text-decoration: none; color: var(--muted);
  border-top: 2px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stepper a:hover { color: var(--ink); }
.stepper-n { font: 500 11px/1 var(--sans); letter-spacing: 0.2em; color: #b9b3c2; font-variant-numeric: tabular-nums; }
.stepper-title { font: 600 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.is-done a { border-top-color: #b08a2e; color: var(--ink); }
.stepper li.is-done .stepper-n { color: #b08a2e; }
.stepper li.is-current a { border-top-color: var(--gold); color: var(--ink); }
.stepper li.is-current .stepper-n { color: #b08a2e; }
.stepper li.is-current .stepper-title::after { content: ''; }

.is-stepped .form-section.step { border-bottom: 0; padding-bottom: 6px; animation: step-in 0.28s ease-out both; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.section-heading h2:focus { outline: none; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.button.ghost-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #d9d3c6; }
.button.ghost-ink:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: transparent; }

/* ------------------------------------------------------------------ the coverage summary */

.coverage-review { margin: 30px 0 4px; display: grid; gap: 12px; }
.coverage-review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.coverage-review-head h3 { margin: 0; font: 400 26px/1.1 var(--display); color: var(--ink); }
.coverage-org { font: 600 10px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #b08a2e; }

/* Terms and conditions, Golden-style: a bounded sheet to scroll, the end fading in. */
.terms-box {
  position: relative; max-height: 360px; overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--field); border: 1px solid var(--border);
  box-shadow: inset 0 -24px 24px -24px rgb(13 11 18 / 0.18);
  scrollbar-width: thin; scrollbar-color: #c9c2b4 transparent;
}
.terms-box.is-read { box-shadow: none; }
.terms-box:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.terms-hint { margin: 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.terms-hint a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ack-check { margin-top: 6px; padding: 14px 16px; width: 100%; border-radius: var(--radius-sm); background: #f3efe6; border-left: 2px solid var(--gold); font-weight: 500; color: var(--ink); }
.terms-none { margin: 0; padding: 16px 18px; border-radius: var(--radius-sm); background: #f3efe6; border-left: 2px solid var(--gold); font-size: 14px; color: #3d3847; }

/* The summary itself, wherever it is shown. */
.coverage-doc { font-size: 14px; line-height: 1.65; color: #3d3847; }
.coverage-doc h2 { margin: 22px 0 8px; font: 400 22px/1.15 var(--display); color: var(--ink); }
.coverage-doc h2:first-child { margin-top: 0; }
.coverage-doc p { margin: 0 0 12px; }
.coverage-doc ul { margin: 0 0 14px; padding-left: 20px; }
.coverage-doc li { margin: 0 0 6px; }
.coverage-doc li::marker { color: #b08a2e; }
.coverage-doc strong { color: var(--ink); font-weight: 600; }

.coverage-sheet { color: var(--ink); }
.coverage-sheet .coverage-doc { font-size: 15px; }
.coverage-sheet .coverage-doc h2 { font-size: 26px; margin-top: 30px; }
.coverage-stamp { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.crumbs-right { display: inline-flex; align-items: baseline; gap: 18px; }
.new-report { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.coverage-link { color: var(--gold); font-size: 14px; text-decoration: none; }
.coverage-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ one claim */

/* The claim page alone is wide: the claim on the left, who is on it at the side. */
.portal-main.claim-page { max-width: calc(1180px + 2 * var(--gutter)); }
.claim-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.claim-main, .claim-side { min-width: 0; }
.claim-side { position: sticky; top: 24px; }
.claim-side .card h2 { font-size: 24px; }
.claim-side .add-person { grid-template-columns: 1fr; }
/* The side column is narrow: an address wraps whole, its role under it. */
.claim-side .people-list li { flex-direction: column; align-items: flex-start; gap: 3px; }
.claim-side .person-email { white-space: normal; overflow-wrap: anywhere; }
.claim-side .add-person .button { justify-self: start; }
.side-link a { font-size: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.muted.small, .small { font-size: 13px; }

/* Messages: a thread, oldest first. The adjuster's on the left in gold, yours on the right. */
.thread { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 14px; }
.msg { max-width: 86%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.msg-adjuster { border-left: 3px solid var(--gold); background: #f3efe6; }
.msg-mine { justify-self: end; background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.msg-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.msg-author { font-weight: 600; font-size: 14px; }
.msg-role { font: 600 9px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8a6a1f; }
.msg-mine .msg-role { color: var(--gold); }
.msg-time { margin-left: auto; font-size: 12px; color: var(--muted); }
.msg-mine .msg-time { color: rgb(244 241 235 / 0.6); }
.msg-subject { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.msg-files { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; }
.msg-files li { padding: 3px 9px; border-radius: 99px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--ink); }
.composer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.composer textarea { min-height: 96px; }
.composer .field-helper { margin-top: 6px; }

/* Upload new: closed until asked for; a <details>, so it works without JavaScript. */
.upload-new { margin-top: 16px; }
.upload-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.upload-new > summary::-webkit-details-marker { display: none; }
.upload-new[open] > summary { background: var(--ink); color: var(--parchment); }
.upload-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.upload-panel h3 { margin: 0 0 4px; font: 400 22px/1.2 var(--display); }

/* Your report: every answer, collapsed under its heading. */
.report-section details > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.report-section details > summary::-webkit-details-marker { display: none; }
.report-section details > summary h2 { margin: 0; }
.report-section details > summary h2::after { content: ' +'; color: #b08a2e; }
.report-section details[open] > summary h2::after { content: ' −'; }
.summary-hint { font-size: 13px; color: var(--muted); }
.report-group { margin: 22px 0 8px; font: 600 10px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #8a6a1f; }
.report-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; padding: 12px 0 2px; border-top: 1px solid var(--border); }
.report-facts div { min-width: 0; }
.report-facts .wide { grid-column: 1 / -1; }
.report-facts dt { font: 600 9px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.report-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .claim-grid { grid-template-columns: minmax(0, 1fr); }
  .claim-side { position: static; }
}
@media (max-width: 640px) {
  .msg { max-width: 100%; }
  .report-facts { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  body { background: #fff !important; color: #000; }
  .tunnel, .portal-header, .portal-footer, .no-print, .crumbs { display: none !important; }
  .portal-main { padding: 0 !important; max-width: none !important; }
  .claim-grid { display: block; }
  .composer, .upload-new { display: none !important; }
  .page-head .eyebrow { color: #7a5a12 !important; }
  .page-head h1 { color: #000 !important; }
  .page-sub { color: #333 !important; }
  .card { box-shadow: none !important; background: #fff !important; padding: 0 !important; }
  .coverage-doc, .coverage-doc strong, .coverage-doc h2 { color: #000 !important; }
  .coverage-doc h2 { break-after: avoid; }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .portal-header { grid-template-columns: 1fr auto; }
  .header-section, .header-link.quiet { display: none; }
  .lockup-corgi { height: 16px; }
  .lockup-golden { height: 30px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .claim-form { padding: 22px 18px; }
  .portal-main { padding-top: 40px; }
  .claim-form { border-radius: var(--radius); }
  .pass-meta { grid-template-columns: 1fr 1fr; }
  .submit-row .button, .success-actions .button { width: 100%; }
  .stepper { gap: 6px; }
  .stepper-title { display: none; }
  .stepper li.is-current .stepper-title { display: block; }
  .stepper { grid-template-columns: repeat(4, auto); justify-content: start; }
  .stepper li.is-current { flex: 1; }
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav .button { width: 100%; }
  .terms-box { max-height: 300px; padding: 16px; }
  .scope-note { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; }
  .code-form { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .beam { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ sharing: locked documents, people */
.file-list.docs li { align-items: center; min-width: 0; flex-wrap: wrap; }
.file-list.docs .file-name { flex: 1 1 220px; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; flex: none; max-width: 60%; }
.doc-open { font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--ink); text-decoration: none !important; }
.doc-open:hover { background: var(--ink); color: var(--parchment) !important; }
.doc-lock { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); text-align: right; }
.lock { flex: none; position: relative; width: 11px; height: 9px; margin-top: 5px; border-radius: 2px; background: var(--muted); }
.lock::before { content: ''; position: absolute; left: 2px; top: -6px; width: 7px; height: 7px; border: 1.6px solid var(--muted); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.doc.locked .file-name strong { color: var(--muted); }
.share { position: relative; }
.share > summary, .person-remove > summary { list-style: none; font-size: 13px; }
.share > summary::-webkit-details-marker, .person-remove > summary::-webkit-details-marker { display: none; }
.share-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(340px, 80vw); padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgb(13 11 18 / 0.16); }
.share-title { margin: 0 0 10px; font-size: 13px; }
.share-people { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.share-people label { display: flex; align-items: center; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.share-people .person-role { margin-left: auto; }
.person-meta { display: inline-flex; gap: 8px; align-items: baseline; }
.person-invited { font: 600 9px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #8a6a1f; }
.person-you { color: var(--muted); }
.person-remove .confirm { margin-top: 8px; padding: 12px 14px; border: 1px solid #e3c2bd; background: #fbf3f1; border-radius: var(--radius-sm); }
.person-remove .confirm p { margin: 0 0 10px; font-size: 13px; }
.button.danger { background: #a3332a; color: #fff; padding: 10px 14px; font-size: 11px; }
.button.danger:hover { background: #7f2620; color: #fff; }
.msg-delivery { margin: 8px 0 0; font: 600 9px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.msg-mine .msg-delivery { color: rgb(244 241 235 / 0.65); }
.msg-delivery.delivery-waiting { color: #8a6a1f; }
.msg-mine .msg-delivery.delivery-waiting { color: var(--gold); }
@media (max-width: 640px) {
  .doc-actions { max-width: none; width: 100%; justify-content: flex-start; }
  .doc-lock { text-align: left; }
  .share { position: static; }
  .share-panel { left: 0; right: 0; width: auto; }
  .file-list.docs li { position: relative; }
}
