/* About Certidox. Shared header, footer and sticky offsets are unchanged. */
:root {
  --about-navy: #092860;
  --about-green: #007d4b;
  --about-ink: #263b50;
  --about-muted: #52687b;
  --about-line: #dce7ec;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.about-page { margin: 0; background: #fff; color: var(--about-ink); font: 18px/1.65 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.about-page img { display: block; max-width: 100%; height: auto; }
.about-content a { color: var(--about-green); text-underline-offset: 3px; }
.about-content a:hover { text-decoration-thickness: 2px; }
.about-page a:focus-visible, .about-page summary:focus-visible { outline: 3px solid #137db6; outline-offset: 5px; }
.about-skip-link { position: absolute; top: -100px; left: 18px; z-index: 13000; padding: 12px 18px; border-radius: 6px; background: var(--about-navy); color: #fff; }
.about-skip-link:focus { top: 10px; }
#cdx-global-header .cdx-about-link[aria-current="page"] { color: var(--about-green); border-bottom-color: var(--about-green); }
.about-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; width: calc(100% - 76px); max-width: 1704px; margin: 0 auto 76px; }
.about-rail { align-self: stretch; min-width: 0; padding-top: 40px; }
.about-toc { position: sticky; top: var(--cdx-page-nav-top); max-height: var(--cdx-page-nav-max-height); overflow-y: auto; scrollbar-width: thin; padding: 18px 18px 13px; border: 1px solid var(--about-line); border-radius: 14px; background: #f5f9fc; }
.about-toc-title { margin: 0 0 9px; color: var(--about-navy); font-size: 18px; line-height: 1.4; font-weight: 750; }
.about-toc ol { margin: 0; padding: 0; list-style: none; }
.about-toc li + li { border-top: 1px solid #e1eaf0; }
.about-toc a, .about-mobile-toc nav a { display: block; padding: 11px 0; color: #28435e; font-size: 14px; line-height: 1.4; font-weight: 650; text-decoration: none; }
.about-toc a:hover, .about-mobile-toc nav a:hover, .about-rail a[aria-current="location"] { color: var(--about-green); }
.about-rail a[aria-current="location"] { font-weight: 800; }
.about-mobile-toc { display: none; }
.about-content { min-width: 0; padding-top: 34px; }
.about-content h1, .about-content h2, .about-content h3 { margin: 0; color: var(--about-navy); font-weight: 750; line-height: 1.2; letter-spacing: -.028em; }
.about-content h1 { margin-bottom: 22px; font-size: clamp(38px, 3.65vw, 62px); line-height: 1.08; letter-spacing: -.042em; }
.about-content h2 { margin-bottom: 20px; font-size: clamp(29px, 2.65vw, 42px); }
.about-content h3 { margin-bottom: 13px; font-size: 22px; }
.about-content p { margin: 0 0 17px; }
.about-hero { display: block; }
.about-hero > p:last-child, .about-section > p:last-child { margin-bottom: 0; }
.about-content .about-deck { margin-bottom: 23px; color: #184d60; font-size: clamp(20px, 1.65vw, 25px); line-height: 1.45; }
.about-deck strong { font-weight: 650; }
.about-section { margin-top: 66px; }
.about-founder { padding: 30px 32px; border-left: 3px solid var(--about-green); border-radius: 0 14px 14px 0; background: #f5f9fb; }
.about-founder > h2 { margin-bottom: 26px; }
.about-founder-profile { display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; gap: 32px; }
.about-founder-photo { display: block; border-radius: 12px; }
.about-founder-photo img { width: 100%; height: auto; border-radius: inherit; }
.about-founder-bio { min-width: 0; }
.about-content .about-founder-bio h3 { margin-bottom: 7px; font-size: clamp(26px, 2.05vw, 33px); }
.about-content .about-founder-role { margin-bottom: 19px; color: var(--about-green); font-size: 15px; line-height: 1.5; }
.about-founder-role strong { font-weight: 750; }
.about-founder-bio p { font-size: 17px; }
.about-founder-bio .about-founder-link { margin: 20px 0 0; font-size: 15px; font-weight: 700; }
.about-privacy { margin-top: 32px; padding-top: 27px; border-top: 1px solid var(--about-line); }
.about-privacy > p:last-child { margin-bottom: 0; }
.about-direction-item { margin-top: 31px; }
.about-direction-item > p:last-child { margin-bottom: 0; }
.about-conversation { padding: 33px 35px; margin-top: 60px; border-radius: 16px; background: var(--about-navy); color: #f0f6ff; }
.about-conversation h2 { margin-bottom: 17px; color: #fff; font-size: clamp(28px, 2.3vw, 37px); }
.about-contact-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px; margin-top: 26px; }
.about-founder-contact { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 16px; font-style: normal; }
.about-contact-name { display: flex; flex-direction: column; gap: 1px; margin-bottom: 9px; }
.about-contact-name strong:first-child { font-size: 20px; }
.about-contact-name strong:last-child { font-size: 14px; }
.about-founder-contact a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #fff; font-weight: 650; }
.about-contact-icon { flex: 0 0 19px; }
.about-content .about-button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 13px 23px; border: 1px solid transparent; border-radius: 8px; font-size: 16px; line-height: 1.4; font-weight: 750; text-decoration: none; }
.about-content .about-button-light { background: #fff; color: #006e42; }
.about-content .about-button-light:hover { background: #e5f9ef; }
.about-conversation a:focus-visible { outline-color: #a2e9cb; }

@media screen and (max-width: 1250px) and (min-width: 1101px) {
  .about-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 30px; }
  .about-content h1 { font-size: 40px; }
  .about-founder { padding: 26px; }
  .about-founder-profile { grid-template-columns: 180px minmax(0, 1fr); gap: 26px; }
}
@media screen and (max-width: 1100px) {
  :root { --cdx-page-nav-extra: 64px; }
  .about-layout { display: block; width: calc(100% - 48px); margin-bottom: 56px; }
  .about-rail { position: sticky; top: var(--cdx-page-nav-top); z-index: 30; min-height: 49px; margin-top: 16px; padding: 0; pointer-events: none; }
  .about-toc { display: none; }
  .about-mobile-toc { position: relative; display: block; width: 174px; margin-left: auto; border: 1px solid #cfdfe8; border-radius: 9px; background: #f5f9fc; box-shadow: 0 3px 10px #183d4e09; pointer-events: auto; }
  .about-mobile-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 13px; min-height: 47px; padding: 11px 14px; color: var(--about-navy); font-size: 15px; line-height: 1.5; font-weight: 750; cursor: pointer; list-style: none; }
  .about-mobile-toc summary::-webkit-details-marker { display: none; }
  .about-mobile-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .about-mobile-toc[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .about-mobile-toc nav { position: absolute; top: calc(100% + 8px); right: 0; width: min(330px, calc(100vw - 48px)); max-height: calc(var(--cdx-page-nav-max-height) - 64px); overflow-y: auto; padding: 9px 18px; border: 1px solid #cfdfe8; border-radius: 10px; background: #fff; box-shadow: 0 12px 25px #16394b1c; }
  .about-mobile-toc nav a + a { border-top: 1px solid #e1eaf0; }
  .about-mobile-toc nav a { padding: 13px 0; }
  .about-content { padding-top: 28px; }
  .about-content h1 { font-size: clamp(38px, 5vw, 52px); }
  .about-section { margin-top: 59px; }
}
@media screen and (max-width: 780px) {
  .about-founder { padding: 27px; }
  .about-founder-profile { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .about-founder-photo { width: 190px; max-width: 100%; }
  .about-conversation { padding: 29px; }
}
@media screen and (max-width: 580px) {
  body.about-page { font-size: 16.5px; line-height: 1.65; }
  .about-layout { width: calc(100% - 34px); margin-bottom: 42px; }
  .about-mobile-toc { width: 170px; }
  .about-mobile-toc nav { width: min(330px, calc(100vw - 34px)); }
  .about-content { padding-top: 25px; }
  .about-content h1 { font-size: clamp(33px, 8.5vw, 45px); }
  .about-content h2 { font-size: 28px; }
  .about-content h3 { font-size: 22px; }
  .about-content .about-deck { font-size: 20px; }
  .about-section { margin-top: 45px; }
  .about-founder { padding: 25px 21px; }
  .about-founder > h2 { margin-bottom: 23px; }
  .about-founder-photo { width: 180px; }
  .about-founder-bio p { font-size: 16.5px; }
  .about-founder-bio .about-founder-role, .about-founder-bio .about-founder-link { font-size: 14px; }
  .about-privacy { margin-top: 27px; padding-top: 24px; }
  .about-direction-item { margin-top: 27px; }
  .about-conversation { padding: 27px 22px; margin-top: 45px; }
  .about-contact-row { flex-direction: column; align-items: flex-start; gap: 25px; }
  .about-founder-contact { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Print uses the same content order without the fixed navigation. */
@page { size: auto; margin: 12mm; }
@media print {
  html { scroll-behavior: auto; scroll-padding-top: 0; }
  body.about-page { font-size: 10.2pt; line-height: 1.42; color: #20364b; overflow: visible; }
  #cdx-global-header, #cdx-global-footer, .about-rail, .about-skip-link { display: none !important; }
  .about-layout { display: block; width: auto; max-width: none; margin: 0; }
  .about-content { padding: 0; }
  .about-content p { margin-bottom: 2.8mm; orphans: 3; widows: 3; }
  .about-content h1 { font-size: 27pt; line-height: 1.08; margin-bottom: 4mm; }
  .about-content h2 { font-size: 18pt; line-height: 1.2; margin-bottom: 3mm; }
  .about-content h3 { font-size: 12pt; margin-bottom: 2.5mm; }
  .about-content .about-deck { font-size: 12pt; line-height: 1.35; margin-bottom: 3mm; }
  .about-content h1, .about-content h2, .about-content h3 { break-after: avoid-page; page-break-after: avoid; }
  .about-hero { display: block; }
  .about-section { margin-top: 7mm; }
  .about-founder { padding: 5mm; border: 1px solid #d8e3e9; border-left: 2px solid #007d4b; background: #fff; }
  .about-founder > h2 { margin-bottom: 4mm; }
  .about-founder-profile { grid-template-columns: 32mm minmax(0, 1fr); gap: 6mm; }
  .about-founder, .about-founder-photo, .about-direction-item, .about-conversation { break-inside: avoid; page-break-inside: avoid; }
  .about-founder-photo { width: auto; }
  .about-content .about-founder-bio h3 { font-size: 16pt; }
  .about-founder-bio p { font-size: 9.8pt; }
  .about-content .about-founder-role { font-size: 9pt; margin-bottom: 3mm; }
  .about-founder-bio .about-founder-link { font-size: 9pt; margin-top: 3mm; }
  .about-privacy { margin-top: 4mm; padding-top: 4mm; }
  .about-direction-item { margin-top: 4.5mm; }
  .about-conversation { padding: 5mm; margin-top: 6mm; border: 1px solid #d8e3e9; border-radius: 3mm; background: #fff; color: #20364b; }
  .about-conversation h2 { color: #092860; font-size: 17pt; }
  .about-contact-row { margin-top: 4mm; gap: 5mm; }
  .about-founder-contact { gap: 1.5mm; font-size: 9pt; }
  .about-contact-name { margin-bottom: 1.5mm; }
  .about-contact-name strong:first-child { font-size: 11pt; }
  .about-contact-name strong:last-child { font-size: 9pt; }
  .about-founder-contact a { gap: 2mm; color: #006e42; }
  .about-contact-icon { width: 4mm; height: 4mm; flex-basis: 4mm; }
  .about-content .about-button { min-height: 0; padding: 2.4mm 4mm; border: 1pt solid #006b41; border-radius: 2mm; background: #fff; color: #006b41; font-size: 9pt; }
  .about-page img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
