/* OI-0045 front door. Selectors are scoped to the new page regions. */
.fd-hero,
.fd-page,
.fd-foundation {
  --fd-ink: #20242e;
  --fd-muted: #5c6470;
  --fd-paper: #faf7f1;
  --fd-line: #ded7ca;
  --fd-green: #286b60;
  --fd-gold: #87601e;
}
.fd-hero *,
.fd-page *,
.fd-foundation * { box-sizing: border-box; }
.fd-hero {
  background: var(--fd-paper);
  border-bottom: 1px solid var(--fd-line);
  min-height: min(760px, calc(100svh - 128px));
  display: grid;
  align-items: center;
}
.fd-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 70px) 0 34px;
}
.fd-kicker {
  color: var(--fd-gold) !important;
  font: 600 12px/1.6 "IBM Plex Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.fd-hero h1 {
  color: var(--fd-ink);
  font-size: clamp(34px, 4.15vw, 60px);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 1100px;
  margin: 0;
  text-wrap: balance;
}
.fd-hero h1 span { color: var(--fd-green); }
.fd-mission {
  max-width: 850px;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6;
  color: var(--fd-muted) !important;
  margin: 24px 0 0;
}
.fd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fd-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  color: var(--fd-ink) !important;
  background: transparent;
  border: 1px solid #a6a296;
  border-radius: 5px;
  font: 600 15px/1.5 "IBM Plex Sans", sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.fd-button-primary { background: var(--fd-ink); color: #fff !important; border-color: var(--fd-ink); }
.fd-button:hover { background: #eee8dc; border-color: var(--fd-ink); }
.fd-button-primary:hover { background: #343e49; color: #fff !important; }
.fd-text-links { display: flex; flex-wrap: wrap; column-gap: 25px; row-gap: 8px; margin: 16px 0 0; }
.fd-text-links a { font-size: 14px; color: var(--fd-muted); line-height: 1.65; text-underline-offset: 4px; }
.fd-proof { margin-top: 31px; border-top: 1px solid var(--fd-line); padding-top: 19px; }
.fd-proof p { color: var(--fd-muted) !important; font-size: 14px; line-height: 1.6; margin: 0; }
.fd-proof a { text-underline-offset: 3px; }
.fd-proof .fd-signoff { font: 600 13px/1.6 "IBM Plex Mono", monospace; color: var(--fd-gold) !important; margin-top: 8px; }
.fd-hero a:focus-visible,
.fd-foundation a:focus-visible,
.fd-page a:focus-visible,
.fd-page button:focus-visible,
.fd-page pre:focus-visible { outline: 3px solid var(--fd-green); outline-offset: 4px; }
.fd-foundation { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: 42px; margin: 26px 0 32px; }
.fd-foundation p { margin: 0 0 15px; color: var(--fd-muted) !important; line-height: 1.7; }
.fd-foundation .fd-foundation-proof { font-size: 13px; }
.fd-foundation img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--fd-line); }
.fd-foundation .fd-text-links { gap: 8px 20px; }
.fd-document { width: min(940px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 65px; }
.fd-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--fd-muted); font-size: 13px; margin-bottom: 48px; }
.fd-page a { color: inherit; text-underline-offset: 4px; }
.fd-page-heading { max-width: 820px; margin-bottom: 45px; }
.fd-page-heading h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
.fd-lead { color: var(--fd-muted) !important; font-size: 19px; line-height: 1.6; max-width: 700px; margin: 0; }
.fd-page h2 { font-weight: 600; letter-spacing: -.018em; line-height: 1.25; font-size: 25px; margin: 0 0 13px; }
.fd-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 25px; padding: 30px 0; border-top: 1px solid var(--fd-line); }
.fd-step-number { font: 500 14px/1.5 "IBM Plex Mono", monospace; color: var(--fd-gold); padding-top: 5px; }
.fd-step-content > p { margin: 0 0 22px; line-height: 1.75; color: var(--fd-muted) !important; }
.fd-code-panel { border: 1px solid var(--fd-line); border-radius: 8px; background: #fffdf9; overflow: hidden; }
.fd-code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 17px; background: #eee8dc; border-bottom: 1px solid var(--fd-line); color: var(--fd-ink); font: 500 12px/1.5 "IBM Plex Mono", monospace; }
.fd-copy { border: 1px solid #b8b09f; border-radius: 4px; background: #fffdf9; color: var(--fd-ink); font: 600 12px/1.5 "IBM Plex Sans", sans-serif; padding: 10px 14px; min-height: 40px; cursor: pointer; }
.fd-copy:hover { background: var(--fd-ink); color: white; }
.fd-copy:disabled { cursor: wait; opacity: .65; }
.fd-code-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; margin: 0; padding: 23px; color: var(--fd-ink); font: 400 13px/1.75 "IBM Plex Mono", monospace; tab-size: 2; }
.fd-code-panel code { font: inherit; padding: 0; background: transparent; }
.fd-step-content .fd-copy-status { min-height: 22px; margin: 8px 0 0; font-size: 13px; color: var(--fd-green) !important; }
.fd-badge-preview { margin: 0 0 21px; }
.fd-badge-preview img { display: block; max-width: 100%; height: auto; }
.fd-optional { color: var(--fd-muted); font-size: 18px; font-weight: 400; }
.fd-annex { margin-top: 26px; background: #eee8dc; border-left: 3px solid var(--fd-green); padding: 30px 33px; }
.fd-annex .fd-kicker { margin-bottom: 12px; }
.fd-annex p:last-child { margin: 0; color: var(--fd-muted) !important; line-height: 1.75; }
.fd-report { padding: 30px 33px; background: #fffdf9; border: 1px solid var(--fd-line); border-radius: 8px; margin-bottom: 12px; }
.fd-report p { color: var(--fd-muted) !important; margin: 0 0 24px; max-width: 700px; line-height: 1.75; }
.fd-policy section { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 25px; padding: 28px 0; border-bottom: 1px solid var(--fd-line); }
.fd-policy h2 { font-size: 19px; margin: 2px 0 0; }
.fd-policy p { margin: 0; color: var(--fd-muted) !important; line-height: 1.75; }
.fd-policy .fd-safe-harbor { border-left: 3px solid var(--fd-green); padding-left: 20px; grid-template-columns: 177px minmax(0, 1fr); background: #f0f3ec; }
.fd-footer { width: min(940px, calc(100% - 48px)); margin: 0 auto 35px; padding-top: 25px; border-top: 1px solid var(--fd-line); font-size: 13px; color: var(--fd-muted); }
.fd-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px; }
.fd-footer p { margin: 0; max-width: 800px; line-height: 1.8; overflow-wrap: anywhere; }
.fd-skip { position: absolute; z-index: 10000; top: 8px; left: 12px; transform: translateY(-180%); padding: 12px 18px; background: #fffdf9; border: 1px solid var(--fd-green); border-radius: 4px; }
.fd-skip:focus { transform: translateY(0); }
@media (max-width: 760px) {
  .fd-hero { min-height: auto; }
  .fd-hero-inner { padding-top: 35px; padding-bottom: 32px; }
  .fd-hero h1 { font-size: clamp(32px, 6.25vw, 45px); line-height: 1.13; }
  .fd-mission { font-size: 17px; margin-top: 22px; }
  .fd-kicker { font-size: 10px; letter-spacing: .065em; }
  .fd-foundation { grid-template-columns: 1fr; gap: 22px; }
  .fd-foundation img { max-width: 360px; margin: 0 auto; }
  .fd-breadcrumb { margin-bottom: 32px; }
  .fd-page-heading { margin-bottom: 30px; }
  .fd-page-heading h1 { font-size: clamp(34px, 7.25vw, 48px); }
  .fd-lead { font-size: 17px; }
  .fd-step { grid-template-columns: 27px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .fd-code-panel pre { padding: 17px; font-size: 12px; }
  .fd-code-toolbar { padding: 8px 12px; }
  .fd-report, .fd-annex { padding: 25px; }
  .fd-policy section, .fd-policy .fd-safe-harbor { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 440px) {
  .fd-hero-inner, .fd-document, .fd-footer { width: calc(100% - 36px); }
  .fd-hero h1 { font-size: 32px; }
  .fd-actions { flex-direction: column; gap: 10px; }
  .fd-button { width: 100%; padding: 12px 14px; gap: 10px; }
  .fd-text-links { flex-direction: column; row-gap: 10px; }
  .fd-proof { margin-top: 25px; }
  .fd-step { grid-template-columns: 1fr; gap: 9px; }
  .fd-step-number { padding: 0; }
  .fd-report, .fd-annex { padding: 22px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-button { transition: none; }
}

/* Keep the retained homepage origin grid inside narrow phone viewports. */
body.home-page .origin-layout > * { min-width: 0; }

/* Preserve the published first-screen heading design after its semantic move to h2. */
body.home-page .hero.hero-split h2 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}
