* {
    box-sizing:border-box
}

:root {
    --dark:#103a2e;
    --deep:#08291f;
    --accent:#00d641;
    --paper:#f5f8f5;
    --ink:#15352c;
    --muted:#536960;
    --border:#d5e1db;
    --link:#146a43;
    --radius:12px;
    --container:1280px
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:100px
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font:17px/1.7 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

a {
    color:var(--link);
    text-underline-offset:3px
}

a:focus-visible,summary:focus-visible,button:focus-visible {
    outline:3px solid #007c37;
    outline-offset:3px
}

img {
    display:block;
    max-width:100%;
    height:auto
}

button,summary {
    font:inherit
}

h1,h2,h3 {
    line-height:1.16;
    letter-spacing:-.035em;
    overflow-wrap:anywhere
}

h2 {
    font-size:clamp(1.45rem,2.5vw,2rem);
    margin:0 0 18px
}

h3 {
    font-size:1.2rem
}

p {
    margin:0 0 1.15em
}

.wrap {
    width:min(var(--container),calc(100% - 64px));
    margin:auto
}

header {
    background:var(--deep);
    color:white;
    position:relative;
    z-index:5;
    border-bottom:1px solid #3e6654
}

.head {
    width:min(1480px,calc(100% - 48px));
    min-height:86px;
    margin:auto;
    display:grid;
    grid-template-columns:150px minmax(0,1fr) 153px;
    align-items:center;
    gap:22px
}

.brand img {
    width:148px;
    height:auto
}

.nav {
    display:grid;
    grid-template-columns:repeat(10,minmax(0,1fr));
    gap:8px
}

.nav a,.method,.mobile summary {
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:42px;
    padding:8px 5px;
    border:1px solid #547466;
    border-radius:12px;
    background:#164435;
    color:#fff;
    font-size:13px;
    font-weight:650;
    text-decoration:none;
    white-space:nowrap;
    line-height:1.2
}

.nav a:hover,.nav a[aria-current=page] {
    background:#277453;
    border-color:#00d641
}

.method {
    background:var(--accent);
    border-color:var(--accent);
    color:#062b1b;
    font-weight:800
}

.method:hover {
    background:#b4f6c1
}

.mobile {
    display:none
}

.mobile summary {
    cursor:pointer;
    list-style:none;
    padding:10px 13px
}

.mobile summary::-webkit-details-marker {
    display:none
}

.hero {
    position:relative;
    height:clamp(340px,32vw,460px);
    overflow:hidden;
    background:#082d24;
    color:white;
    isolation:isolate
}

.hero picture {
    position:absolute;
    inset:0;
    z-index:-2
}

.hero img {
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:right center;
    filter:brightness(.82) saturate(.86)
}

.hero:after {
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(90deg,#062a20 0%,#062a20ed 16%,#062a20b5 36%,#062a2030 65%,#062a2015 100%)
}

.hero .wrap {
    height:100%;
    display:flex;
    align-items:center;
    padding-bottom:40px
}

.hero h1 {
    font-size:clamp(2.15rem,4.1vw,3.8rem);
    max-width:680px;
    margin:0;
    color:white;
    text-shadow:0 3px 15px #0009;
    font-weight:780;
    line-height:1.08
}

.crumb {
    padding:18px 0 12px;
    font-size:.82rem;
    color:var(--muted);
    display:flex;
    gap:8px;
    flex-wrap:wrap
}

.notice {
    border-left:4px solid #a36b20;
    background:#fff5df;
    padding:15px 19px;
    border-radius:0 10px 10px 0;
    color:#583d1f;
    font-size:.92rem;
    margin:0 0 18px
}

.notice p {
    margin:0
}

.byline {
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    border-bottom:1px solid var(--border);
    padding:4px 0 18px;
    color:var(--muted);
    font-size:.85rem
}

.byline strong {
    color:var(--ink)
}

.byline .mark {
    display:inline-block;
    background:#deeee3;
    border-radius:50%;
    width:38px;
    height:38px;
    text-align:center;
    line-height:38px;
    font-weight:750;
    color:#15352c
}

.grid {
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:42px;
    padding:32px 0 64px;
    align-items:start
}

.toc {
    position:sticky;
    top:18px;
    min-width:0;
    max-height:calc(100vh - 36px);
    overflow:auto;
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
    padding:18px;
    box-shadow:0 5px 16px #123b2710
}

.toc summary {
    font-weight:800;
    list-style:none;
    cursor:default;
    margin-bottom:12px;
    font-size:1.05rem
}

.toc summary::-webkit-details-marker {
    display:none
}

.toc nav {
    display:grid;
    gap:7px
}

.toc a {
    display:block;
    border-radius:9px;
    border:1px solid #d5e3da;
    padding:10px 12px;
    background:linear-gradient(180deg,#f8fbf9,#e8f1eb);
    box-shadow:0 2px 0 #cbdad0;
    color:var(--ink);
    font-size:.84rem;
    line-height:1.3;
    text-decoration:none;
    font-weight:650;
    overflow-wrap:anywhere
}

.toc a:hover {
    background:#d9f3e0;
    border-color:#75b78b
}

.article {
    min-width:0;
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
    padding:32px 38px;
    box-shadow:0 5px 18px #123b2709;
    overflow-wrap:anywhere
}

.lead {
    font-size:1.09rem;
    font-weight:450;
    color:#25493b
}

.section {
    padding-top:28px;
    margin-top:28px;
    border-top:1px solid var(--border)
}

.section h2:before {
    content:"";
    display:block;
    width:32px;
    height:4px;
    border-radius:2px;
    background:var(--accent);
    margin-bottom:13px
}

.table-scroll {
    max-width:100%;
    overflow-x:auto;
    margin:20px 0;
    border:1px solid var(--border);
    border-radius:10px
}

table {
    border-collapse:collapse;
    width:100%;
    font-size:.9rem;
    text-align:left
}

th,td {
    padding:12px 14px;
    vertical-align:top;
    border-bottom:1px solid #e0e9e3
}

th {
    background:#e4f0e8;
    color:var(--ink)
}

tr:last-child td {
    border-bottom:0
}

figure {
    margin:24px 0
}

figure img {
    width:100%;
    height:auto;
    border-radius:12px;
    aspect-ratio:3/2;
    object-fit:contain;
    background:#102f25
}

figcaption {
    font-size:.78rem;
    line-height:1.5;
    color:var(--muted);
    padding-top:8px
}

.faq details {
    border:1px solid var(--border);
    border-radius:10px;
    margin:10px 0;
    padding:13px 15px;
    background:#f8faf8
}

.faq summary {
    font-weight:700;
    cursor:pointer;
    list-style:none;
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:center
}

.faq summary:after {
    content:'+';
    font-size:1.3rem;
    color:var(--link)
}

.faq details[open] summary:after {
    content:'−'
}

.faq details p {
    margin:12px 0 0
}

.sources {
    font-size:.9rem
}

.editorial {
    padding:15px;
    background:#edf4ee;
    border-radius:10px;
    font-size:.85rem
}

.footer {
    background:var(--deep);
    color:#fff;
    padding:42px 0
}

.footer a {
    color:#d9f3e0
}

.footer .wrap {
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap:32px
}

.footer img {
    width:142px;
    margin-bottom:16px
}

.footer p,.footer li {
    font-size:.85rem;
    color:#dae9df
}

.footer ul {
    list-style:none;
    padding:0;
    margin:0
}

.footer h2 {
    font-size:1rem
}

.plain-title {
    padding:40px 0 12px
}

.plain-title h1 {
    font-size:clamp(2rem,4vw,3rem);
    margin:0
}

.error {
    margin:48px auto 80px;
    padding:36px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    max-width:760px
}

.error a {
    display:inline-block;
    padding:10px 18px;
    background:var(--dark);
    color:white;
    border-radius:9px;
    text-decoration:none
}

.small-method {
    display:none
}

@media(max-width:1360px) {
    .head {
    display:flex;
    justify-content:space-between;
    gap:12px
}

.nav {
    display:none
}

.mobile {
    display:block;
    margin-left:auto
}

.mobile nav {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:14px max(24px,calc((100% - 1100px)/2));
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    background:var(--deep);
    box-shadow:0 9px 18px #0003
}

.mobile nav a {
    padding:10px;
    background:#164435;
    color:white;
    border:1px solid #547466;
    border-radius:9px;
    text-align:center;
    text-decoration:none;
    font-size:.9rem
}

.method {
    min-width:140px;
    padding:10px 12px
}


}

@media(max-width:940px) {
    .wrap {
    width:calc(100% - 40px)
}

.grid {
    grid-template-columns:minmax(0,1fr);
    gap:18px
}

.toc {
    position:static;
    max-height:none;
    padding:15px
}

.toc summary {
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    margin:0
}

.toc summary:after {
    content:'+'
}

.toc[open] summary:after {
    content:'−'
}

.toc[open] nav {
    margin-top:12px
}

.article {
    padding:25px 28px
}

.hero h1 {
    max-width:540px
}

.footer .wrap {
    grid-template-columns:1fr 1fr
}

.footer .identity {
    grid-column:1/-1
}


}

@media(max-width:700px) {
    .wrap {
    width:calc(100% - 32px)
}

.head {
    width:calc(100% - 24px);
    min-height:68px;
    gap:8px
}

.brand img {
    width:112px
}

.method {
    min-width:0;
    font-size:.75rem;
    padding:9px 10px
}

.large-method {
    display:none
}

.small-method {
    display:inline
}

.mobile summary {
    padding:9px 10px;
    font-size:.79rem
}

.mobile nav {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:12px
}

.hero {
    height:auto;
    aspect-ratio:4/5;
    max-height:530px
}

.hero img {
    object-position:center;
    object-fit:contain;
    filter:brightness(.79) saturate(.9)
}

.hero:after {
    background:linear-gradient(180deg,#08291fe6 0%,#08291f80 30%,#08291f05 65%,#08291f40 100%)
}

.hero .wrap {
    align-items:flex-start;
    padding:28px 0 0
}

.hero h1 {
    font-size:clamp(1.8rem,7vw,2.5rem);
    max-width:100%;
    text-shadow:0 2px 10px #000
}

.hero.fallback {
    aspect-ratio:auto;
    height:330px
}

.hero.fallback img {
    object-position:center bottom
}

.hero.fallback:after {
    background:linear-gradient(180deg,#08291f 0%,#08291f80 30%,#08291f00 70%)
}

.article {
    padding:20px 17px;
    font-size:16px;
    line-height:1.68
}

.grid {
    padding-top:20px
}

.crumb {
    font-size:.77rem
}

.notice {
    padding:12px 14px
}

.byline {
    font-size:.78rem
}

.footer .wrap {
    grid-template-columns:1fr
}

.footer .identity {
    grid-column:auto
}

.table-scroll table {
    min-width:460px
}

.section {
    margin-top:22px;
    padding-top:22px
}

.error {
    padding:25px 20px
}


}

@media(max-width:360px) {
    .brand img {
    width:100px
}

.head {
    gap:6px
}

.method,.mobile summary {
    padding:8px;
    font-size:.71rem
}


}

@media(prefers-reduced-motion:reduce) {
    html {
    scroll-behavior:auto
}


}


/* Keyboard navigation */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    padding: 10px 14px;
    background: white;
    color: var(--ink);
    z-index: 20;
}
.skip-link:focus {
    top: 8px;
}

/* R8: compact editorial notice, authorship and footer age note. */
.hero-credit { margin: -8px 0 4px; font-size: .72rem; color: var(--muted); }
.article .notice { padding: 10px 13px; margin: 0 0 12px; font-size: .86rem; line-height: 1.45; }
.article .byline { gap: 8px; padding: 0 0 12px; margin-bottom: 14px; font-size: .8rem; }
.article .byline .mark { width: 28px; height: 28px; line-height: 28px; }
.grid { padding-top: 18px; }
.footer .footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; border-top:1px solid #547466; padding-top:16px; margin-top:24px; }
.footer-bottom p { margin:0; }
.footer-bottom strong { color:white; }
@media(max-width:700px) { .hero { max-height: 430px; } .article .notice { font-size:.83rem; } .article .byline { font-size:.75rem; } .grid {padding-top:12px;} }
/* Full-width hero; preserve aspect ratio and fade the desktop image edge. */
.hero { width:100%; }
@media (min-width:701px) {
    .hero picture { display:flex; justify-content:flex-end; }
    .hero img { width:auto; max-width:100%; height:100%; object-fit:contain; mask-image:linear-gradient(90deg,transparent,#000 24%); }
}
@media (max-width:700px) {
    .hero { width:100%; height:auto; max-height:430px; }
    .hero img { width:100%; height:100%; }
    .hero.fallback { height:330px; }
}
