/* /resilience/ v3 (founder 26 Nov 2026 05:52, design corrections): Learn's visual language. Near-black and navy grounds, Manrope
   headings, IBM Plex body, cinematic NASA photography with credits, open layouts (lists with rules, not boxes), one teal
   primary and one outlined secondary button (p2p-design.css), statistics that hold still, each in its own scientific colour.
   Native dark: excluded from the generated dark map. No inline styles (production CSP). */
main#main.rs3 { --rs-amber: #F4C463; --rs-blue: #5B9CFF; --rs-green: #7EE0A1; --rs-coral: #FF9E8A; --rs-violet: #C59BFF; --rs-teal: #00CED1;
  background: #05080E; color: #F1F5F9; font-family: var(--p2p-font-body); }
main#main.rs3 h1, main#main.rs3 h2, main#main.rs3 h3 { font-family: var(--p2p-font-head); color: #F1F5F9; letter-spacing: -.01em; }
main#main.rs3 h2::before, main#main.rs3 h2::after, main#main.rs3 h1::before, main#main.rs3 h1::after { content: none; display: none; }
main#main.rs3 a { color: #7FE6E8; }
main#main.rs3 a:focus-visible, main#main.rs3 summary:focus-visible { outline: 2px solid #00CED1; outline-offset: 3px; border-radius: 6px; }
main#main.rs3 .rs-wrap { max-width: 76rem; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
main#main.rs3 .rs-k, main#main.rs3 .rs-kicker { margin: 0 0 .5rem; font: 700 .76rem/1.2 var(--p2p-font-head); letter-spacing: .14em; text-transform: uppercase; color: #7FE6E8; }
main#main.rs3 h2 { margin: 0 0 .6rem; font-size: var(--p2p-fs-2xl); line-height: 1.15; }
main#main.rs3 .rs-p { margin: 0 0 1.1rem; max-width: 44rem; font-size: 1rem; line-height: 1.6; color: #AABFCE; }
main#main.rs3 .rs-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
main#main.rs3 .rs-actions .ds-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: 0 1.25rem; border-radius: 999px; border: 1px solid; font: 700 .95rem/1 var(--p2p-font-head); text-decoration: none; }
main#main.rs3 .rs-actions .ds-btn svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }

/* hero: a full-width photograph with the title on it, as on Learn's featured story */
main#main.rs3 .rs-hero { position: relative; min-height: clamp(26rem, 52vw, 38rem); display: flex; align-items: flex-end; overflow: hidden; }
main#main.rs3 .rs-hero-fig { position: absolute; inset: 0; margin: 0; }
main#main.rs3 .rs-hero-fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
main#main.rs3 .rs-hero-fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 14, .92) 0%, rgba(5, 8, 14, .7) 38%, rgba(5, 8, 14, .1) 70%), linear-gradient(0deg, #05080E 0%, rgba(5, 8, 14, 0) 35%); }
main#main.rs3 .rs-hero-fig figcaption { position: absolute; right: clamp(1rem, 4vw, 2rem); bottom: .8rem; z-index: 1; max-width: 26rem; margin: 0; font-size: .74rem; line-height: 1.35; color: #C9D6E0; text-align: right; }
main#main.rs3 .rs-hero-text { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.75rem); }
main#main.rs3 .rs-hero h1 { max-width: 15ch; margin: 0 0 .9rem; font-size: var(--p2p-fs-4xl); line-height: 1.06; }
main#main.rs3 .rs-lede { max-width: 36rem; margin: 0 0 1.5rem; font-size: var(--p2p-fs-l); line-height: 1.6; color: #C9D6E0; }
main#main.rs3 .rs-official { margin: 1.25rem 0 0; padding-left: .9rem; border-left: 3px solid var(--rs-amber); font-size: .95rem; line-height: 1.55; color: #C9D6E0; max-width: 76rem; }

/* statistics: still, each with its own colour, an illuminated value and its sources one tap away */
main#main.rs3 .rs-why { padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem); }
main#main.rs3 .rs-stats { max-width: none; list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
main#main.rs3 .rs-stat { --c: var(--rs-teal); display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 1.15rem 1.2rem 1rem; border-radius: 16px; background: #0B1724; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 34px -26px var(--c); }
main#main.rs3 .rs-stat[data-c=amber] { --c: var(--rs-amber); } main#main.rs3 .rs-stat[data-c=blue] { --c: var(--rs-blue); } main#main.rs3 .rs-stat[data-c=green] { --c: var(--rs-green); }
main#main.rs3 .rs-stat[data-c=coral] { --c: var(--rs-coral); } main#main.rs3 .rs-stat[data-c=violet] { --c: var(--rs-violet); } main#main.rs3 .rs-stat[data-c=teal] { --c: var(--rs-teal); }
main#main.rs3 .rs-stat-i { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
main#main.rs3 .rs-stat-k { margin: .35rem 0 0; font: 600 .86rem/1.3 var(--p2p-font-head); color: var(--c); }
main#main.rs3 .rs-stat-v { margin: 0; font: 800 clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem)/1.1 var(--p2p-font-head); color: var(--c); text-shadow: 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }
main#main.rs3 .rs-stat-t { margin: 0; font-size: .95rem; line-height: 1.5; color: #E2EAF0; }
main#main.rs3 .rs-stat-more { margin-top: auto; padding-top: .4rem; font-size: .88rem; color: #AABFCE; }
main#main.rs3 .rs-stat-more summary { cursor: pointer; color: #C9D6E0; font: 600 .84rem/1.4 var(--p2p-font-head); }
main#main.rs3 .rs-stat-more summary::after { content: " \2192"; }
main#main.rs3 .rs-stat-more[open] summary::after { content: ""; }
main#main.rs3 .rs-stat-more p { margin: .45rem 0 0; line-height: 1.5; }
main#main.rs3 .rs-stat-src { font-size: .8rem; color: #8fa6b6; }
main#main.rs3 .rs-fine { margin: 1rem 0 0; font-size: .82rem; color: #8fa6b6; }

/* chapters: photograph and text side by side, alternating, with links as a ruled list */
main#main.rs3 .rs-chap { padding-block: clamp(2.25rem, 5vw, 3.75rem); border-top: 1px solid rgba(170, 191, 206, .12); }
main#main.rs3 .rs-chap:nth-of-type(even) { background: #081321; }
main#main.rs3 .rs-chap-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
main#main.rs3 .rs-flip .rs-chap-in > .rs-fig { order: -1; }
main#main.rs3 .rs-fig { position: sticky; top: 6rem; margin: 0; }
main#main.rs3 .rs-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; border-radius: 16px; }
main#main.rs3 .rs-fig figcaption { margin-top: .5rem; font-size: .78rem; line-height: 1.4; color: #8fa6b6; }
main#main.rs3 .rs-list { max-width: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(170, 191, 206, .16); }
main#main.rs3 .rs-list li { margin: 0; border-bottom: 1px solid rgba(170, 191, 206, .16); }
main#main.rs3 .rs-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1rem; padding: .8rem .2rem; text-decoration: none; color: #F1F5F9; }
main#main.rs3 .rs-list a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #7FE6E8; transition: transform .2s ease; }
main#main.rs3 .rs-list a:hover::after { transform: translateX(3px); }
main#main.rs3 .rs-list strong { font: 700 1rem/1.3 var(--p2p-font-head); }
main#main.rs3 .rs-list span { font-size: .9rem; line-height: 1.45; color: #AABFCE; }
main#main.rs3 .rs-list a:hover strong { color: #7FE6E8; }
main#main.rs3 .rs-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 0; }
main#main.rs3 .rs-list-2 li:nth-child(-n+2) { border-top: 1px solid rgba(170, 191, 206, .16); }
main#main.rs3 .rs-list-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 0; }
main#main.rs3 .rs-list-3 li:nth-child(-n+3) { border-top: 1px solid rgba(170, 191, 206, .16); }

/* records lookup: one field and the teal primary button */
main#main.rs3 .rs-rec { margin-top: 1.6rem; }
main#main.rs3 .rs-rec h3 { margin: 0 0 .6rem; font-size: 1.1rem; }
main#main.rs3 .rs-rec label { display: block; margin-bottom: .35rem; font: 600 .86rem/1.3 var(--p2p-font-head); color: #AABFCE; }
main#main.rs3 .rs-rec-row { display: flex; flex-wrap: wrap; gap: .5rem; }
main#main.rs3 .rs-rec-row select { flex: 1 1 14rem; min-height: 2.9rem; padding: 0 .8rem; border-radius: 12px; border: 1px solid rgba(170, 191, 206, .34); background: #101D2B; color: #F1F5F9; font: inherit; }
main#main.rs3 .rs-rec-row button { min-height: 2.9rem; padding: 0 1.25rem; border-radius: 999px; border: 1px solid #00CED1; background: #00CED1; color: #05080E; font: 700 .95rem/1 var(--p2p-font-head); cursor: pointer; }
main#main.rs3 .rs-rec-row button:hover { background: #33DADD; }
main#main.rs3 .rs-rec-fine { margin: .5rem 0 0; font-size: .82rem; color: #8fa6b6; }

/* systems, tools and work with us */
main#main.rs3 .rs-systems { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid rgba(170, 191, 206, .12); background: #05080E; }
main#main.rs3 .rs-tools { padding-block: clamp(2.5rem, 5vw, 3.75rem); border-top: 1px solid rgba(170, 191, 206, .12); background: #081321; }
main#main.rs3 .rs-work { padding-block: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid rgba(170, 191, 206, .12); }
main#main.rs3 .rs-work-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
main#main.rs3 .rs-work-in .rs-p { margin: 0; }

@media (max-width: 63.99rem) { main#main.rs3 .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } main#main.rs3 .rs-list-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } main#main.rs3 .rs-list-3 li:nth-child(3) { border-top: 0; } }
@media (max-width: 47.99rem) {
  main#main.rs3 .rs-chap-in { grid-template-columns: minmax(0, 1fr); } main#main.rs3 .rs-flip .rs-chap-in > .rs-fig { order: 0; } main#main.rs3 .rs-fig { position: static; }
  main#main.rs3 .rs-fig img { aspect-ratio: 16 / 9; }
  main#main.rs3 .rs-list-2, main#main.rs3 .rs-list-3 { grid-template-columns: minmax(0, 1fr); } main#main.rs3 .rs-list-2 li:nth-child(2), main#main.rs3 .rs-list-3 li:nth-child(-n+3):not(:first-child) { border-top: 0; }
  main#main.rs3 .rs-hero { min-height: 34rem; } main#main.rs3 .rs-hero-text { padding-top: 13rem; } main#main.rs3 .rs-hero-fig::after { background: linear-gradient(0deg, #05080E 0%, rgba(5, 8, 14, .85) 45%, rgba(5, 8, 14, .05) 75%); }
  main#main.rs3 .rs-hero-fig figcaption { top: .6rem; bottom: auto; right: .8rem; left: .8rem; text-align: right; }
}
@media (max-width: 34rem) { main#main.rs3 .rs-stats { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { main#main.rs3 .rs-list a::after { transition: none; } }
/* the shared buttons keep their own colours inside the page's link colour */
main#main.rs3 .rs-actions .ds-btn-primary, main#main.rs3 .rs-actions .ds-btn-primary:hover { color: #05080E; }
main#main.rs3 .rs-actions .ds-btn-ghost { color: #F1F5F9; }
