:root {
  --process-blue: #2f6873;
  --process-blue-soft: #e3eef0;
  --process-copper: #a9512e;
  --process-gold: #c99b3b;
  --process-green: #5f775f;
}

.process-page { background: #f7f3eb; }
.process-page main { overflow: hidden; }
.process-page .portal-hero { padding-bottom: 70px; padding-top: 72px; }
.process-page .portal-hero h1 { max-width: 960px; }
.process-page .portal-hero .lede { max-width: 880px; }
.process-page .portal-context { position: relative; }
.process-page .portal-home-link { align-items: center; display: flex; gap: 14px; }
.process-page .portal-home-link a { text-decoration: none; }

.process-nav {
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px max(20px, calc((100vw - 1184px) / 2));
  scrollbar-width: thin;
}
.process-nav a {
  border: 1px solid #d7d2c8;
  color: #405158;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 9px 11px;
  text-decoration: none;
}
.process-nav a:hover,
.process-nav a:focus-visible { background: var(--process-blue-soft); border-color: var(--process-blue); }

.process-section {
  margin: 0 auto;
  max-width: 1184px;
  padding: 78px 28px;
}
.process-section.alt { background: #ece5d8; max-width: none; }
.process-section.alt > .section-inner { margin: 0 auto; max-width: 1128px; }
.process-section .eyebrow {
  color: var(--process-copper);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.process-section h2 {
  color: var(--navy);
  font-size: clamp(31px, 4.1vw, 46px);
  font-weight: 450;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0;
  max-width: 850px;
}
.process-section h3 { color: var(--navy); font-size: 22px; font-weight: 550; line-height: 1.2; margin: 0; }
.process-section p,
.process-section li { color: #48575d; font-size: 14px; line-height: 1.7; }
.section-lede { font-size: 17px !important; margin: 20px 0 0; max-width: 850px; }
.back-top { color: var(--process-copper) !important; float: right; font-size: 11px !important; font-weight: 650; text-decoration: none; }

.status-key { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.status-item { background: #fffdf8; border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 22px; }
.status-item:nth-child(2) { border-top-color: var(--process-green); }
.status-item:nth-child(3) { border-top-color: var(--process-gold); }
.status-item:nth-child(4) { border-top-color: var(--process-copper); }
.status-item strong { color: var(--navy); display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.status-item p { font-size: 12px; line-height: 1.55; margin: 0; }

.plain-sequence { align-items: stretch; display: grid; gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 38px 0 18px; }
.plain-sequence > div { background: var(--navy); color: #fff; min-height: 106px; padding: 18px 15px; position: relative; }
.plain-sequence > div:not(:last-child)::after { color: var(--process-gold); content: "\2192"; font-size: 24px; position: absolute; right: -18px; top: 35px; z-index: 2; }
.plain-sequence span { color: #e7bd68; display: block; font-size: 10px; font-weight: 650; letter-spacing: .08em; margin-bottom: 12px; text-transform: uppercase; }
.plain-sequence strong { display: block; font-size: 15px; font-weight: 550; line-height: 1.25; }
.sequence-note { color: #657178 !important; font-size: 12px !important; margin: 0; }

.journey-list { border-left: 2px solid #b9c8c8; margin: 40px 0 0 18px; padding-left: 38px; }
.journey-step { background: #fffdf8; border: 1px solid var(--line); margin: 0 0 22px; padding: 28px 30px; position: relative; }
.journey-step::before { align-items: center; background: var(--process-blue); border: 5px solid #f7f3eb; border-radius: 50%; color: #fff; content: attr(data-step); display: flex; font-size: 12px; font-weight: 650; height: 38px; justify-content: center; left: -59px; position: absolute; top: 25px; width: 38px; }
.journey-step h3 { font-size: 25px; font-weight: 500; }
.journey-question { color: var(--process-copper) !important; font-size: 15px !important; font-weight: 600; margin: 8px 0 20px !important; }
.step-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-grid div { border-top: 1px solid var(--line); padding-top: 14px; }
.step-grid strong { color: #243e47; display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; margin-bottom: 5px; text-transform: uppercase; }
.step-grid p { font-size: 12px; line-height: 1.55; margin: 0; }

.calendar-note { background: #fff8e7; border-left: 5px solid var(--process-gold); margin-top: 32px; padding: 22px 25px; }
.calendar-note strong { color: #654b13; font-weight: 650; }
.calendar-note p { color: #665b44; font-size: 13px; margin: 7px 0 0; }
.calendar-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 30px; }
.month-card { background: #fffdf8; border: 1px solid var(--line); padding: 20px; }
.month-card span { color: var(--process-copper); display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; margin-bottom: 10px; text-transform: uppercase; }
.month-card p { font-size: 12px; line-height: 1.55; margin: 0; }

.actor-table,
.control-table { border-collapse: collapse; margin-top: 34px; width: 100%; }
.actor-table th,
.actor-table td,
.control-table th,
.control-table td { border-bottom: 1px solid var(--line); padding: 15px 14px; text-align: left; vertical-align: top; }
.actor-table th,
.control-table th { background: var(--navy); color: #fff; font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.actor-table td,
.control-table td { background: rgba(255,253,248,.82); color: #48575d; font-size: 12px; line-height: 1.55; }
.actor-table td:first-child,
.control-table td:first-child { color: var(--navy); font-weight: 650; }

.download-callout { align-items: center; background: #17333c; display: grid; gap: 36px; grid-template-columns: 1.45fr .55fr; margin-top: 34px; padding: 30px; }
.download-callout h3 { color: #fff; font-size: 23px; }
.download-callout p { color: #c8d4d1; font-size: 12px; margin-bottom: 0; }
.download-callout .eyebrow { color: #e7bd68; margin: 0 0 12px; }
.download-callout .download-boundary { color: #edcf9b; }
.download-callout > a { background: var(--process-copper); color: #fff; display: block; font-size: 14px; font-weight: 650; line-height: 1.45; padding: 24px; text-decoration: none; }
.download-callout > a:hover, .download-callout > a:focus-visible { background: #78422b; }
.download-callout > a span { color: #f3d6c8; display: block; font-size: 10px; letter-spacing: .08em; margin-top: 12px; text-transform: uppercase; }

.branch-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
.branch-card { background: #fffdf8; border: 1px solid var(--line); border-top: 4px solid var(--process-blue); padding: 28px; }
.branch-card:nth-child(2n) { border-top-color: var(--process-gold); }
.branch-card h3 { font-size: 23px; font-weight: 500; }
.branch-card .branch-purpose { color: var(--process-copper); font-size: 12px; font-weight: 650; margin: 9px 0 18px; }
.branch-path { color: #32474f !important; font-size: 13px !important; font-weight: 600; line-height: 1.6 !important; }
.branch-card ul { margin: 15px 0 0; padding-left: 19px; }
.branch-card li { font-size: 12px; line-height: 1.55; margin-bottom: 7px; }

.cpa-walk { counter-reset: cpa; display: grid; gap: 14px; margin-top: 26px; }
.cpa-walk article { background: #eef3ea; border-left: 4px solid var(--process-green); display: grid; gap: 18px; grid-template-columns: 54px 1fr; padding: 20px 22px; }
.cpa-walk article::before { align-items: center; background: var(--process-green); border-radius: 50%; color: #fff; content: counter(cpa); counter-increment: cpa; display: flex; font-size: 17px; font-weight: 600; height: 42px; justify-content: center; width: 42px; }
.cpa-walk h4 { color: var(--navy); font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.cpa-walk p { font-size: 12px; margin: 0; }

.authority-ladder { display: grid; gap: 1px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 34px; }
.authority-ladder article { background: #fffdf8; border-top: 5px solid #b9c5c5; min-height: 230px; padding: 23px 19px; }
.authority-ladder article:nth-child(4),
.authority-ladder article:nth-child(5) { border-top-color: var(--process-copper); }
.authority-ladder article:nth-child(6) { border-top-color: var(--process-green); }
.authority-ladder span { color: var(--process-copper); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.authority-ladder h3 { font-size: 18px; margin: 18px 0 10px; }
.authority-ladder p { font-size: 11px; line-height: 1.55; margin: 0; }

.resident-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
.resident-card { background: #fffdf8; border: 1px solid var(--line); padding: 26px; }
.resident-card span { color: var(--process-copper); display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; margin-bottom: 16px; text-transform: uppercase; }
.resident-card h3 { font-size: 21px; font-weight: 500; }
.resident-card p { font-size: 12px; line-height: 1.55; margin: 11px 0 0; }

.question-checklist { columns: 2; column-gap: 44px; margin: 30px 0 0; padding-left: 22px; }
.question-checklist li { break-inside: avoid; font-size: 13px; margin: 0 0 12px; }

.source-list { display: grid; gap: 9px; margin-top: 28px; }
.source-list a { background: #fffdf8; border: 1px solid var(--line); color: var(--process-blue); font-size: 12px; line-height: 1.5; padding: 13px 15px; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-boundary { background: #f7eade; border-left: 5px solid var(--process-copper); margin-top: 28px; padding: 22px 25px; }
.source-boundary p { font-size: 12px; margin: 0; }

.continue-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.continue-grid a { background: var(--navy); color: #fff; min-height: 145px; padding: 22px; text-decoration: none; }
.continue-grid a.source-route, .continue-grid a.accountability-route { grid-column: 1 / -1; min-height: 118px; }
.continue-grid a.accountability-route { background: #405b52; }
.continue-grid span { color: #e7bd68; display: block; font-size: 10px; font-weight: 650; letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase; }
.continue-grid strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.25; }
.continue-grid small { color: #bdcbc8; display: block; font-size: 11px; line-height: 1.5; margin-top: 8px; }

@media (max-width: 900px) {
  .status-key, .calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plain-sequence, .authority-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plain-sequence > div:not(:last-child)::after { display: none; }
  .continue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-callout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .process-page .portal-hero { padding-bottom: 54px; padding-top: 54px; }
  .process-section { padding: 58px 20px; }
  .process-page .portal-home-link { align-items: flex-end; flex-direction: column; gap: 5px; }
  .status-key, .plain-sequence, .step-grid, .calendar-grid, .branch-grid, .authority-ladder, .resident-grid, .continue-grid { grid-template-columns: 1fr; }
  .continue-grid a.source-route, .continue-grid a.accountability-route { grid-column: auto; }
  .journey-list { margin-left: 9px; padding-left: 27px; }
  .journey-step { padding: 24px 21px; }
  .journey-step::before { left: -47px; }
  .actor-table, .control-table { display: block; overflow-x: auto; white-space: normal; }
  .question-checklist { columns: 1; }
}

@media print {
  .process-nav, .back-top { display: none; }
  .process-section, .process-section.alt { background: #fff; padding: 34px 0; }
  .journey-step, .month-card, .branch-card, .resident-card, .cpa-walk article, .continue-grid a { break-inside: avoid; }
  .continue-grid a { background: #fff; border: 1px solid #777; color: #000; }
  .continue-grid small { color: #333; }
}
