/* Open bookmarked sections immediately, below the sticky site header. */
html { scroll-behavior: auto; }
.subpage {
  width: min(1160px, calc(100% - clamp(36px, 9vw, 112px)));
  padding-block: clamp(18px, 3.5vw, 48px) clamp(48px, 7vw, 96px);
  color: var(--ink);
  overflow-wrap: break-word;
}
.subpage h1, .subpage h2, .subpage h3 {
  margin: 0;
  font-weight: 550;
  text-wrap: balance;
}
.subpage :is(h1, h2, h3):is(:lang(de), :lang(lb)) { hyphens: auto; }
.subpage h1 { font-size: clamp(2.4rem, 4.9vw, 4.65rem); line-height: 1.035; letter-spacing: -.055em; }
.subpage h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.14; letter-spacing: -.04em; }
.subpage h3 { margin-block: 1.35em .4em; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.35; }
.subpage p { line-height: 1.65; }
.subpage .subpage-lead { margin-block-start: 20px; max-width: 56ch; color: #38566e; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.55; }
.subpage-back, .subpage-link, .preview-link { display: inline-flex; align-items: center; min-height: 44px; gap: .65rem; color: var(--brand); font-weight: 600; line-height: 1.4; }
.subpage-back { color: #475f73; font-size: .9rem; margin-bottom: clamp(16px, 2.2vw, 32px); }
.subpage-back .icon { width: 17px; transform: rotate(180deg); }
.subpage-link { margin-block-start: .65rem; text-decoration: underline; text-underline-offset: .2em; }
.subpage-link .icon, .preview-link .icon { width: 18px; height: 18px; }
.subpage-back:hover, .preview-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.subpage a:hover { text-decoration-thickness: 2px; }

.service-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding-bottom: clamp(32px, 5vw, 72px); }
.service-preview {
  padding: clamp(20px, 3vw, 38px);
  border-radius: 10px;
  color: #fff;
  background-color: #123852;
  background-image: radial-gradient(circle, #89b5d72e 1px, transparent 1px), linear-gradient(115deg, #102d45, #174666);
  background-size: 15px 15px, auto;
}
.service-preview figcaption { display: grid; gap: .3rem; margin-bottom: 1rem; }
.preview-label { color: #c5def0; font-size: .78rem; font-weight: 600; letter-spacing: .055em; }
.service-preview figcaption strong { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 550; line-height: 1.2; letter-spacing: -.025em; }
.preview-sheet { overflow: hidden; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 3px 0 #94afc1, 0 10px 16px #041a2826; }
.preview-sheet-header { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid #d2e1eb; padding: 12px 18px; background: #f1f6fa; font-size: .9rem; font-weight: 600; }
.preview-sheet-header .icon { width: 18px; height: 18px; color: var(--brand); }
.preview-sheet-body { padding: 16px 18px; }
.preview-sheet-body p { line-height: 1.45; }
.preview-caption, .preview-total span { color: #4c657a; font-size: .88rem; }
.preview-message { font-size: 1.13rem; font-weight: 550; margin: .25rem 0 .85rem; }
.preview-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.preview-total strong, .preview-readings dd { font-size: 1.65rem; font-weight: 600; letter-spacing: -.035em; }
.preview-readings { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 12px; }
.preview-readings > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.preview-readings dt { font-size: .88rem; color: #4c657a; }
.preview-readings dd { margin: .25rem 0 0; }
.preview-readings small { font-size: .9rem; }
.quantity-row + .quantity-row { margin-top: 10px; }
.quantity-row > div { display: flex; align-items: baseline; justify-content: space-between; font-size: .9rem; gap: 10px; }
.quantity-row strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.quantity-row meter { display: block; width: 100%; height: 6px; margin-top: 4px; border: 0; border-radius: 2px; background: #dfebf4; appearance: none; }
.quantity-row meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 2px; background: #dfebf4; }
.quantity-row meter::-webkit-meter-optimum-value { background: #3979af; }
.quantity-row meter::-moz-meter-bar { background: #3979af; }
.preview-result { display: flex; align-items: center; gap: .55rem; margin-top: 14px; padding: 9px 10px; border-radius: 3px; background: #e9f2f9; color: #224c6d; font-size: .86rem; font-weight: 600; }
.preview-result .icon { width: 16px; height: 16px; }
.preview-link { color: white; margin-top: 9px; margin-bottom: -9px; font-size: .94rem; }

.chapter, .funding-terms { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.chapter { border-top: 1px solid #bfcedb; padding: clamp(26px, 3.8vw, 50px) 0; }
.chapter > p, .chapter > div > p, .funding-terms > div > p { max-width: 66ch; color: #354f64; }
.chapter p + p { margin-top: 1rem; }
.chapter-guide { border-top: 3px solid #3777ab; }
.workflow-list details { border: 1px solid #c5d4df; border-radius: 6px; background: #fff; }
.workflow-list details + details { margin-block-start: 10px; }
.workflow-list summary { position: relative; padding: 17px 48px 17px 18px; border-radius: 6px; cursor: pointer; list-style: none; font-weight: 600; line-height: 1.4; }
.workflow-list summary::-webkit-details-marker { display: none; }
.workflow-list summary::after { content: ""; position: absolute; inset-inline-end: 20px; top: calc(50% - 6px); width: 8px; height: 8px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.workflow-list details[open] summary::after { top: calc(50% - 2px); transform: rotate(225deg); }
.workflow-list summary:hover { background: #eef5fb; }
.workflow-steps { padding: 0 18px 14px; }
.workflow-steps ol { padding-left: 1.45rem; margin: 1rem 0 0; }
.workflow-steps li { padding-inline-start: .35rem; margin: .7rem 0 0; }
.workflow-steps li::marker { color: var(--brand); font-size: .85rem; font-weight: 700; }
.workflow-steps p { color: #435d71; }
.workflow-steps li p { font-size: .94rem; margin-top: .15rem; }
.funding-resource { border-top: 1px solid var(--line); padding: 12px 0; }
.service-contact { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: .7rem 26px; padding: clamp(24px, 4vw, 50px); background: #e1edf7; border-radius: 8px; }
.service-contact img { grid-row: span 2; width: 86px; height: 86px; border-radius: 50%; }
.service-contact-copy { max-width: 68ch; }
.subpage .service-contact .button { margin-top: 1rem; }
.related-services { padding-top: clamp(30px, 5vw, 66px); }
.related-services ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.related-services a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; border-block: 1px solid #c5d4df; padding: 12px 0; color: var(--brand); font-weight: 600; line-height: 1.4; }
.related-services a:hover { text-decoration: underline; }
.related-services .icon { width: 17px; }

.funding-intro { max-width: 960px; }
.funding-intro .subpage-lead { max-width: 65ch; }
.package-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: clamp(28px, 4vw, 52px) 0 24px; }
.package-options > div { display: flex; flex-direction: column; padding: clamp(20px, 2.7vw, 34px); border: 1px solid #c5d4df; border-radius: 7px; background: #fff; }
.package-options dt { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.22rem, 2.3vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; }
.package-options dt .icon { width: 26px; height: 26px; color: var(--brand); }
.package-options dd { display: flex; flex-direction: column; align-items: start; flex: 1; margin: .75rem 0 0; }
.package-options dd p { flex: 1; }
.funding-terms { padding: clamp(22px, 3vw, 40px); background: #e1edf7; border-radius: 7px; margin-bottom: clamp(26px, 4vw, 50px); }
.funding-terms blockquote { margin: 0 0 14px; font-weight: 550; }
.privacy-layout { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: clamp(30px,7vw,95px); }
.privacy-layout header .subpage-lead { max-width: 39ch; }
.privacy-sections section { border-top: 1px solid #bfcedb; padding: 24px 0 30px; }
.privacy-sections h2 { font-size: clamp(1.35rem,2.2vw,1.8rem); margin-bottom: 12px; }
.privacy-sections a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 760px) {
  .service-intro, .chapter, .funding-terms, .privacy-layout { grid-template-columns: minmax(0, 1fr); }
  .service-intro { gap: 24px; }
  .chapter, .funding-terms { gap: 12px; }
  .subpage .subpage-lead { margin-top: 14px; }
  .service-preview { max-width: 540px; }
  .related-services ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .related-services li + li a { border-top: 0; }
}
@media (max-width: 550px) {
  .subpage-back { margin-bottom: 12px; }
  .service-contact { grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: center; }
  .service-contact img { grid-row: auto; width: 58px; height: 58px; }
  .service-contact-copy { grid-column: 1 / -1; }
  .package-options { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
