/* Check, results and consultation share the typography and palette of the service page. */
body[data-view]:not([data-view="home"]) .site-header .desktop-nav,
body[data-view]:not([data-view="home"]) .site-header .header-consult,
body[data-view]:not([data-view="home"]) .site-header .menu-toggle {
  display: none;
}

body[data-view]:not([data-view="home"]) .header-inner {
  height: 64px;
}

.flow-view {
  min-height: calc(100svh - 90px);
  padding-block: 30px clamp(60px, 8vw, 108px);
}

.flow-shell {
  width: min(880px, calc(100% - 48px));
}

.flow-view small,
.flow-note,
.flow-context,
.quiet-link {
  font-size: var(--text-min);
}

.flow-view h1 {
  color: var(--button-ink);
  font-size: clamp(1.875rem, 4.4vw, 3.125rem);
  line-height: 1.42;
  letter-spacing: .01em;
  text-wrap: pretty;
}

.flow-view :is(h1, h2, .priority-title strong, .answer-list-question) {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.flow-view h1:focus,
.contact-fields h2:focus {
  outline: none;
}

.flow-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 26px;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  text-underline-offset: .28em;
  line-height: 1.65;
}

.quiet-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.flow-heading {
  margin-bottom: 26px;
}

.flow-heading p:not(.flow-context) {
  max-width: 42em;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.flow-context {
  margin-bottom: 8px;
  color: #286560;
  font-weight: 600;
  line-height: 1.55;
}

.flow-note {
  color: var(--muted);
  line-height: 1.7;
}

.check-view {
  background: #f5f8f7;
}

.check-shell {
  width: min(760px, calc(100% - 48px));
}

.check-shell .flow-toolbar {
  margin-bottom: 16px;
}

.check-progress {
  margin-bottom: clamp(18px, 3.8vw, 36px);
}

.check-progress > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.check-progress strong {
  color: var(--hero-bg);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.check-progress progress {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border: 0;
  background: #dce6e4;
  appearance: none;
}

.check-progress progress::-webkit-progress-bar {
  background: #dce6e4;
}

.check-progress progress::-webkit-progress-value {
  background: var(--accent);
}

.check-progress progress::-moz-progress-bar {
  background: var(--accent);
}

#question-title {
  max-width: 25em;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.55;
}

#question-instruction {
  margin-top: 10px;
}

.answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.answer-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid #bccdca;
  background: #fff;
  color: var(--button-ink);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  line-height: 1.6;
  transition: background .15s, border-color .15s;
}

.answer-choice:hover {
  border-color: #63958e;
}

.answer-choice[data-current="true"] {
  border-color: #007b77;
  background: #edf7f4;
}

.answer-icon,
.answer-arrow {
  color: #08716c;
  font-size: 18px;
  text-align: center;
}

.answer-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f2ef;
  line-height: 1;
}

.question-guidance {
  margin-top: 15px;
  padding: 0 0 4px;
  border-bottom: 1px solid #d7e2df;
}

.question-guidance summary,
.quiet-disclosure summary {
  min-height: 44px;
  padding-block: 9px;
  cursor: pointer;
  color: #286560;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.question-guidance p,
.quiet-disclosure p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.question-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 4px 20px;
  margin-top: 9px;
}

.question-foot .quiet-disclosure {
  margin-left: auto;
}

.question-foot .quiet-disclosure[open] {
  flex-basis: 100%;
}

.answer-list,
.priority-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #bfcdca;
}

.answer-list-item,
.priority-item,
.all-ready {
  border-bottom: 1px solid #d5dfdd;
}

.answer-list-link {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 17px 2px;
  line-height: 1.65;
}

.answer-list-link:hover {
  background: #f3f8f6;
}

.answer-list-question {
  font-weight: 600;
}

.answer-list-change {
  color: #08716c;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .3em;
}

.flow-end-action {
  margin-top: 28px;
}

.result-target {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.result-target select {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid #b8cbc8;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

.result-heading {
  margin-bottom: 18px;
}

.result-heading p:not(.flow-context) {
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.priority-summary {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem;
  align-items: start;
  gap: 8px 18px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
}

.priority-summary::-webkit-details-marker,
.flow-disclosure summary::-webkit-details-marker {
  display: none;
}

.priority-summary:hover .priority-title strong {
  color: var(--accent);
}

.priority-order {
  color: #147972;
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
}

.priority-title strong {
  display: block;
  color: var(--button-ink);
  font-family: var(--heading-font);
  font-size: clamp(1.0625rem, 2.3vw, 1.375rem);
  line-height: 1.6;
}

.priority-first-action {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.disclosure-mark {
  color: #08716c;
  font-size: 19px;
  text-align: center;
}

.priority-disclosure[open] .disclosure-mark {
  transform: rotate(45deg);
}

.priority-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding: 4px 2px 20px 3.625rem;
  font-size: 15px;
  line-height: 1.8;
}

.priority-detail-part {
  padding-top: 13px;
  border-top: 1px solid #d5dfdd;
}

.priority-detail h2,
.support-details h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.priority-detail ul,
.support-details ul {
  margin: 6px 0 8px;
  padding-inline-start: 1.25rem;
}

.priority-detail .status-tag {
  margin-bottom: 7px;
}

.priority-detail .flow-note {
  margin-top: 8px;
}

.priority-reference {
  grid-column: 1 / -1;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #edf2f3;
  color: #374b50;
  font-size: 14px;
  line-height: 1.55;
}

.status-no {
  background: #f5e9e0;
  color: #6f3d24;
}

.status-partial {
  background: #f4eee1;
  color: #69501f;
}

.status-yes {
  background: #e5f2ed;
  color: #285b4f;
}

.all-ready {
  padding-block: 18px;
}

.all-ready strong {
  font-size: 19px;
}

.all-ready p {
  margin-top: 5px;
  color: var(--muted);
}

#result-scope {
  margin-top: 14px;
}

.result-requirement {
  margin-top: 6px;
  color: #255e59;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.result-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--hero-bg);
  color: #fff;
}

.result-offer .flow-context {
  color: #c9e9e1;
}

.result-offer h2 {
  font-size: clamp(1.375rem, 2.9vw, 1.9rem);
  line-height: 1.55;
}

.result-offer p:not(.flow-context) {
  max-width: 37em;
  margin-top: 8px;
  color: #e0efeb;
  font-size: 15px;
  line-height: 1.75;
}

.result-offer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.result-offer-actions .text-link {
  min-height: 44px;
  color: #e0efeb;
}

.result-offer-actions .text-link:hover {
  color: #fff;
}

.result-offer :focus-visible {
  outline-color: #9be4d8;
}

.result-details {
  margin-top: 25px;
}

.flow-disclosure {
  border-bottom: 1px solid #d5dfdd;
}

.flow-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
  padding-block: 11px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}

.flow-disclosure summary::after {
  content: '＋';
  color: #08716c;
  font-size: 18px;
}

.flow-disclosure[open] summary::after {
  content: '−';
}

.flow-disclosure summary small {
  margin-right: auto;
  color: var(--muted);
  font-weight: 500;
}

.disclosure-content {
  padding-bottom: 18px;
}

.result-counts,
.category-summary {
  margin: 0 0 14px;
}

.result-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d5dfdd;
}

.count-item {
  padding: 10px 12px;
  background: #f3f7f6;
}

.count-item dt,
.category-row {
  font-size: 14px;
}

.count-item dd {
  margin: 0;
  color: var(--hero-bg);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 18px;
  padding-block: 8px;
  border-bottom: 1px solid #e3eae8;
}

.category-row dd {
  margin: 0;
}

.support-details {
  font-size: 15px;
}

.support-details p + p {
  margin-top: 9px;
}

.support-details .text-link {
  margin-top: 8px;
}

.print-result {
  margin-top: 10px;
}

.flow-form {
  display: grid;
  gap: 22px;
}

.flow-form legend,
.flow-field > span,
.message-label label {
  margin-bottom: 8px;
  color: var(--button-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.flow-form legend small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 500;
}

.flow-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.flow-field select,
.flow-field input,
.message-editor textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #b8cbc8;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.flow-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.interest-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.interest-options label,
.flow-checkbox {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.65;
}

.interest-options label {
  padding: 10px 12px;
  border: 1px solid #c4d3cf;
}

.interest-options label:has(input:checked) {
  border-color: #08716c;
  background: #edf7f4;
}

.interest-options input,
.flow-checkbox input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #007b77;
}

.flow-form > .button {
  justify-self: start;
}

.consult-purpose {
  margin-top: 16px;
}

.message-editor {
  padding: clamp(14px, 3.2vw, 26px);
  border-top: 2px solid #147972;
  background: #f2f7f5;
}

.message-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.review-overview {
  margin: 0;
}

.review-overview > div {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(0, 3fr);
  gap: 5px 18px;
  padding-block: 10px;
  border-bottom: 1px solid #d4e2de;
  font-size: 15px;
  line-height: 1.65;
}

.review-overview dt {
  color: #286560;
  font-size: 14px;
  font-weight: 600;
}

.review-overview dd,
.review-overview ul {
  margin: 0;
}

.review-overview ul {
  padding-inline-start: 1em;
}

.message-editor details[open] {
  padding-bottom: 12px;
}

.message-label label {
  margin: 0;
}

.message-label span {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.message-editor textarea {
  display: block;
  resize: vertical;
}

.message-tools {
  margin-top: 5px;
}

#review-custom-note {
  padding-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.flow-error {
  margin-top: 8px;
  color: #9a2b22;
  font-size: 15px;
}

.flow-action .flow-note {
  margin-top: 9px;
}

.contact-fields {
  display: grid;
  gap: 17px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #bfcdca;
}

.contact-fields h2 {
  font-size: 24px;
}

.contact-fields .flow-note {
  margin-top: -8px;
}

.contact-fields .flow-checkbox a {
  color: #08716c;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.contact-fields .review-submit {
  justify-self: start;
}

@media (max-width: 620px) {
  .flow-view {
    padding-block: 14px 48px;
  }

  .flow-shell,
  .check-shell {
    width: calc(100% - 40px);
  }

  .flow-toolbar {
    margin-bottom: 16px;
  }

  .flow-heading {
    margin-bottom: 18px;
  }

  .answer-options,
  .interest-options,
  .flow-field-grid,
  .priority-detail,
  .result-offer {
    grid-template-columns: 1fr;
  }

  .answer-options {
    gap: 7px;
    margin-top: 15px;
  }

  .answer-choice {
    min-height: 52px;
    padding-block: 8px;
  }

  .priority-summary {
    grid-template-columns: 1.85rem minmax(0, 1fr) 1.25rem;
    gap: 8px;
    padding-block: 12px;
  }

  .priority-order {
    font-size: 18px;
  }

  .priority-detail {
    padding-left: 2.35rem;
  }

  .answer-list-link {
    grid-template-columns: 1.8rem minmax(0, 1fr) auto;
    gap: 6px 9px;
    padding-block: 14px;
  }

  .answer-list-link .status-tag {
    grid-column: 2;
    justify-self: start;
  }

  .answer-list-change {
    grid-column: 3;
  }

  .result-offer {
    gap: 15px;
  }

  .result-offer-actions .button,
  .flow-form > .button,
  .flow-action .button {
    width: 100%;
  }

  .result-counts {
    grid-template-columns: 1fr 1fr;
  }

  .review-overview > div {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .review-overview > .overview-short {
    grid-template-columns: 6em minmax(0, 1fr);
    align-items: baseline;
    gap: 10px;
  }
}

@media (max-width: 365px) {
  .flow-shell,
  .check-shell {
    width: calc(100% - 32px);
  }

  #question-title {
    font-size: 1.375rem;
  }
}

@media print {
  body[data-view="result"] :is(.site-header, .preview-bar, .site-footer, .flow-toolbar, .result-offer-actions, .print-result, .skip-link) {
    display: none !important;
  }

  #result-view {
    padding: 0;
  }

  #result-view .flow-shell {
    width: 100%;
  }

  #result-view .result-offer {
    display: block;
    padding: 12px 0;
    background: #fff;
    color: #111b20;
  }

  #result-view .result-offer p {
    color: #111b20;
  }

  .priority-item,
  .category-row {
    break-inside: avoid;
  }
}

