/* Reading layout for the affirmation generator implementation article. */
.affirmation-technical-page {
  --technical-ink: #222;
  --technical-muted: #555;
  --technical-line: #dedede;
  --technical-surface: #f4f4f4;
  --technical-link: #a63e00;
}
.affirmation-technical-page .page-hero-copy h1 { max-width: 1100px; }
.affirmation-technical-page .blog-post-container { width: min(1120px, calc(100% - 48px)); }
.affirmation-technical-article { --blog-reading-width: 800px; padding: clamp(24px, 5vw, 70px); }
.technical-article-header, .affirmation-technical-article .blog-article-body { max-width: 800px; margin-inline: auto; }
.affirmation-technical-article .blog-article-meta { line-height: 1.8; margin: 12px 0 24px; }
.affirmation-technical-article .blog-article-meta a { color: inherit; text-underline-offset: 4px; }
.affirmation-technical-article p.technical-standfirst { color: var(--technical-ink); font-size: clamp(26px, 3vw, 36px); line-height: 1.3; font-weight: 700; }
.affirmation-technical-article .blog-article-body p { line-height: 1.8; }
.affirmation-technical-article .blog-article-body a:not(.button) { color: var(--technical-link); overflow-wrap: anywhere; text-decoration-thickness: 1px; }
.affirmation-technical-article :is(a, pre, [tabindex]):focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.affirmation-technical-article .kicker { font-size: .875rem; color: var(--technical-link); }
.affirmation-technical-article code { font-family: Consolas, "Courier New", monospace; font-size: .9em; overflow-wrap: anywhere; }
.affirmation-technical-article :not(pre) > code { background: var(--technical-surface); padding: 2px 5px; border-radius: 4px; color: inherit; }
.technical-facts { display: grid; grid-template-columns: 1fr .7fr 1.3fr; gap: 20px; margin: 32px 0; padding: 26px 0; border-block: 1px solid var(--technical-line); }
.technical-facts > div { min-width: 0; }
.technical-facts dt { color: var(--technical-link); font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.25; }
.technical-facts dd { margin: 7px 0 0; font-size: 1rem; line-height: 1.5; color: var(--technical-muted); }
.technical-contents { padding: 6px 0 24px; border-bottom: 1px solid var(--technical-line); }
.technical-contents ol { columns: 2; column-gap: 36px; padding-left: 24px; margin: 0; }
.technical-contents li { break-inside: avoid; padding: 5px 0; font-size: 1rem; line-height: 1.6; }
.technical-section { padding-top: 40px; scroll-margin-top: 145px; }
.technical-section + .technical-section { margin-top: 32px; border-top: 1px solid var(--technical-line); }
.technical-section > .kicker { margin: 0 0 12px; }
.affirmation-technical-article h2 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.17; text-wrap: balance; }
.affirmation-technical-article h3 { margin-top: 28px; font-size: 1.375rem; line-height: 1.3; }
.technical-code { margin: 26px 0; border-radius: 12px; overflow: hidden; background: #101720; color: #f4f7fb; }
.technical-code figcaption { padding: 16px 22px; background: #1d2835; color: #ffb789; font-size: .9375rem; line-height: 1.5; }
.technical-code pre { margin: 0; padding: 24px; max-width: 100%; overflow-x: auto; color: #f4f7fb; background: #101720; font-size: 1rem; line-height: 1.8; white-space: pre; }
.technical-code code { font-size: .9375rem; overflow-wrap: normal; }
.technical-table-wrap { margin: 26px 0; overflow-x: auto; border: 1px solid var(--technical-line); border-radius: 12px; }
.technical-table { width: 100%; border-collapse: collapse; color: var(--technical-ink); font-size: 1rem; line-height: 1.6; }
.technical-table caption { text-align: left; padding: 18px 22px; font-weight: 700; background: var(--technical-surface); }
.technical-table th, .technical-table td { text-align: left; padding: 16px 22px; vertical-align: top; border-top: 1px solid var(--technical-line); }
.technical-table th { width: 33%; }
.technical-note { margin: 28px 0 0; padding: 24px 28px; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--technical-surface); }
.affirmation-technical-article .technical-note h3 { margin-top: 0; }
.technical-note p:last-child { margin-bottom: 0; }
.technical-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; margin: 28px 0; }
.technical-flow li { counter-increment: flow; border-top: 3px solid var(--orange); padding: 18px 0; min-width: 0; color: var(--technical-ink); }
.technical-flow li::before { content: counter(flow, decimal-leading-zero); display: block; color: var(--technical-link); font-weight: 800; margin-bottom: 14px; }
.technical-flow strong, .technical-flow span { display: block; }
.technical-flow strong { font-size: 1.125rem; }
.technical-flow span { margin-top: 8px; color: var(--technical-muted); font-size: 1rem; line-height: 1.6; }
.technical-storage { margin: 24px 0; }
.technical-storage > div { padding: 20px 0; border-bottom: 1px solid var(--technical-line); }
.technical-storage dt { color: var(--technical-link); font-size: 1.0625rem; font-weight: 700; }
.technical-storage dd { margin: 10px 0 0; font-size: 1rem; line-height: 1.7; color: var(--technical-muted); }
.technical-references { padding: 28px; margin-top: 40px; border-radius: 12px; background: var(--technical-surface); }
.affirmation-technical-article .technical-references h2 { font-size: 1.5rem; line-height: 1.3; }
.affirmation-technical-article .technical-references p { font-size: .9375rem; line-height: 1.6; }
.technical-references ul { padding-left: 20px; margin-bottom: 0; }
.technical-references li { margin-top: 14px; color: var(--technical-muted); font-size: 1rem; line-height: 1.6; }
.technical-references li span { display: block; font-size: .875rem; }
.technical-references a { font-weight: 600 !important; }
.technical-try-card { flex-direction: column; align-items: flex-start; }
.technical-try-card .button, .technical-try-card .button.sv-pressable-button { flex-basis: auto !important; }
html[data-theme="dark"] .affirmation-technical-page { --technical-ink: #f4f7fb; --technical-muted: #c2cad5; --technical-line: #35404d; --technical-surface: #0b1118; --technical-link: #ffb789; }
html[data-theme="dark"] body.affirmation-technical-page .affirmation-technical-article p.technical-standfirst { color: var(--technical-ink) !important; }
html[data-theme="dark"] body.affirmation-technical-page .affirmation-technical-article .kicker { color: var(--technical-link) !important; }
@media (max-width: 767px) {
  .affirmation-technical-page .blog-post-container { width: calc(100% - 24px); }
  .technical-facts { grid-template-columns: 1fr 1fr; }
  .technical-facts > div:last-child { grid-column: 1 / -1; }
  .technical-contents ol { columns: 1; }
  .technical-flow { grid-template-columns: 1fr 1fr; }
  .technical-table th, .technical-table td { padding: 14px; }
  .technical-table th { width: 35%; }
  .technical-note, .technical-references { padding: 22px; }
  .technical-code pre { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .affirmation-technical-page .page-hero-video { display: none; }
}
