/* Shared identity from the supplied logo; legacy tokens remain compatible. */
:root {
  --brand-navy: #0a254a;
  --brand-green: #327638;
  --brand-blue: #6096c0;
  --brand-tint: #edf4f9;
  --brand-green-tint: #f0f6f1;
  --ink: var(--brand-navy);
  --muted: #536274;
  --line: #dbe3ec;
  --panel: #fff;
  --soft: #f7f9fc;
  --green: var(--brand-navy);
  --green-dark: var(--brand-navy);
  --gold: var(--brand-green);
  --leaf: var(--brand-green);
  --shadow: 0 18px 48px rgb(10 37 74 / 9%);
  --error: #b42318;
}
body { background: var(--soft); }
.scroll-word { display: inline-block; }
.standalone-page main { max-width: 1040px; margin: 0 auto; }
.standalone-page .entity-intake,.standalone-page .approve-section,.standalone-page .split { display: block; padding: 48px 28px 64px; }
.standalone-page .entity-form,.standalone-page .approve-form,.standalone-page .action-list { margin-top: 32px; }
.standalone-home { flex-shrink: 0; color: var(--brand-navy); font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.standalone-home:hover { color: var(--brand-green); }
@media(max-width:640px) {
  .standalone-page .site-header { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .standalone-page .brand-logo { max-width: 300px; }
  .standalone-page .entity-intake,.standalone-page .approve-section,.standalone-page .split { padding: 32px 18px 48px; }
}
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 15; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: var(--brand-navy); color: #fff; font: 28px/1 Arial,sans-serif; cursor: pointer; box-shadow: 0 4px 16px rgb(10 37 74 / 20%); }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--brand-green); }
body:has(.back-to-top:not([hidden])) .toast { bottom: 84px; }
@media(max-width:640px) { .back-to-top { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); } }
.eyebrow,.site-nav a,.button,.service-card a,.utility-card span { letter-spacing: 0; }
.site-header {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 2px 12px rgb(10 37 74 / 4%);
  backdrop-filter: none;
  gap: 20px;
}
.brand { min-width: 0; flex: 0 0 auto; }
.brand-logo { display: block; width: 310px; max-width: 100%; height: auto; aspect-ratio: 2135 / 520; }
.success-logo { width: 360px; max-width: 100%; height: auto; aspect-ratio: 2135 / 520; }
.site-nav a { color: var(--brand-navy); }
.site-nav a:hover,.site-nav a[aria-current="location"] { color: var(--brand-green); background: var(--brand-green-tint); }
.site-nav a::after { background: var(--brand-green); }
.menu-toggle { position: relative; padding: 0 12px 0 42px; color: var(--brand-navy); min-width: 90px; min-height: 44px; }
.menu-toggle span { position: absolute; left: 12px; width: 18px; height: 2px; margin: 0; background: var(--brand-navy); }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.hero { background-image: linear-gradient(90deg,rgb(10 37 74 / 94%),rgb(10 37 74 / 76%) 45%,rgb(10 37 74 / 18%)),url('./assets/hero.png'); }
.hero-panel { background: rgb(10 37 74 / 78%); border-color: rgb(255 255 255 / 25%); }
.hero-panel .panel-action { background: #fff; color: var(--brand-navy); }
.primary,#draft-confirm { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.primary:hover,#draft-confirm:hover { background: var(--brand-green); border-color: var(--brand-green); }
.secondary.light,.form-draft,.form-restore { background: #fff; color: var(--brand-navy); border-color: var(--line); }
.secondary.light:hover,.form-draft:hover,.form-restore:hover { background: var(--brand-green-tint); border-color: var(--brand-green); color: var(--brand-green); }
.section .eyebrow,.eyebrow { color: var(--brand-green); }
.section h2,.service-card h3,.entity-form-section h3,.success-page h1,.terms-hero h1,.payment-hero h1 { color: var(--brand-navy); }
.service-card,.service-card:nth-child(n) { border-top-color: var(--brand-navy)!important; }
.icon { background: var(--brand-tint); color: var(--brand-navy); }
.service-card a { color: var(--brand-navy); }
.service-card a:hover { color: var(--brand-green); }
@media(hover:hover) {
  .service-card:hover,.utility-card:hover,.refund-grid a:hover { border-color: var(--brand-blue); box-shadow: 0 8px 22px rgb(10 37 74 / 9%); }
}
.service-card:focus-within,.utility-card:focus-visible { border-color: var(--brand-green); box-shadow: 0 8px 22px rgb(10 37 74 / 9%); }
.entity-intake,.split,.approve-section,.terms-page,.payment-page { background: var(--soft); }
.terms-page,.payment-page,body:has(.success-page) { background: #fff; }
.entity-form,.approve-form,.contact-form { background: #fff; border-color: var(--line); box-shadow: 0 14px 38px rgb(10 37 74 / 7%); }
.form-group,.approve-bank,.consent-row { background: var(--soft); border-color: var(--line); }
.entity-form .entity-choice { background: transparent; border: 0; }
.entity-intake { display: block; }
.entity-intake > .entity-form { width: 100%; max-width: none; }
.entity-form > .radio-field > div { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.entity-form > .radio-field label { display: flex; align-items: center; min-width: 0; min-height: 64px; padding: 14px; }
.entity-form > .radio-field input,.approve-payment input { flex: 0 0 18px; }
.approve-form .approve-payment > div { grid-template-columns: minmax(0,1fr); }
.approve-form .approve-payment label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; }
@media(max-width:760px) {
  .entity-form > .radio-field > div { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .entity-form > .radio-field label { min-height: 56px; }
}
.approve-payment label { border-color: var(--line); }
.radio-field label:has(input:checked) { border-color: var(--brand-green); background: var(--brand-green-tint); }
input[type="checkbox"],input[type="radio"],.checklist-box input,.options-label input,.radio-field input,.consent-row input { accent-color: var(--brand-green); }
.progress { background: #e6ece8; }
.progress span { background: var(--brand-green); }
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.privacy-note,.approval-message,.entity-payment-message,.intake-notice { background: var(--brand-tint); color: var(--brand-navy); border-left-color: var(--brand-blue); }
.form-message,.draft-dialog .draft-error { color: var(--error); }
.form-message[data-status="success"] { color: var(--brand-green); padding: 14px 16px; border: 1px solid var(--brand-green); border-radius: 6px; background: var(--brand-green-tint); }
.terms-acknowledgment { background: var(--brand-tint); border-color: var(--line)!important; }
.terms-hero h1 { font-size: 40px; line-height: 1.15; }
.terms-hero .eyebrow { font-size: 15px; }
.terms-hero p:not(.eyebrow) { font-size: 16px; line-height: 1.55; margin-top: 14px; }
.terms-content h2 { font-size: 23px; line-height: 1.25; }
.terms-content p,.terms-content li { font-size: 15px; line-height: 1.55; }
.terms-content section { padding-top: 20px; margin-top: 20px; }
@media(max-width:640px) { .terms-hero h1 { font-size: 32px; } .terms-content h2 { font-size: 21px; } }
.payment-alt-link a { border-bottom-color: var(--brand-blue); }
.payment-alt-link a:hover { color: var(--brand-green); border-bottom-color: var(--brand-green); }
.copy-checkmark { border-color: var(--brand-green); }
.contact-section,.site-footer,.toast { background: var(--brand-navy); }
.contact-section h2 { color: #fff; }
.contact-section .eyebrow { color: #a8d5aa; }
.draft-dialog::backdrop { background: rgb(10 37 74 / 45%); }
.process-journey { --process-navy: var(--brand-navy); --process-red: var(--brand-green); }
.process-details { background: var(--soft); }
.process-step[aria-selected="true"] { box-shadow: 0 8px 24px rgb(10 37 74 / 10%),inset 0 0 0 1px var(--brand-navy); }
@media(hover:hover) { .process-step:hover { box-shadow: 0 8px 24px rgb(10 37 74 / 8%); } }
@media(max-width:1460px) {
  .site-nav { position: absolute; inset: 100% 18px auto; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); max-height: calc(100dvh - 110px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: flex; }
}
@media(max-width:640px) {
  .site-header { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 12px; padding: 12px 16px; }
  .brand-logo { width: 100%; max-width: 320px; }
  .menu-toggle { width: 44px; min-width: 44px; padding: 0; }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .success-logo { width: 340px; }
}
