/* endsarv.net/svri: SVRI Forum 2026 companion to the UNFPA PNG poster.
   System fonts only (no web font download) for low-bandwidth visitors. */
:root{
  --ink:#1F1F1F; --muted:#545454; --line:#E2DED9;
  --orange:#F58220;      /* UNFPA orange: decoration only (rules, bars, dots) */
  --orange-text:#A84A0C; /* orange that passes 4.5:1 on white and on --pale */
  --pale:#FDF1E7; --paler:#FFF8F2; --band:#1F1F1F;
  --focus:#1A5FB4;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Calibri,Carlito,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6;font-size:18px}
a{color:var(--orange-text);text-underline-offset:2px}
a:hover{color:var(--ink)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:2px}
img{max-width:100%;height:auto;display:block}
.wrap{max-width:1040px;margin:0 auto;padding:0 18px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:10px 14px;z-index:100;font-weight:700}
.skip:focus{left:10px;top:10px}

/* header + navigation */
header.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
header.top .bar{display:flex;align-items:center;gap:12px;min-height:60px}
header.top .brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);flex:1;min-width:0}
header.top .brand img{height:34px;width:auto;flex:none}
header.top .brand span{font-size:14px;line-height:1.25;font-weight:700}
header.top .brand small{display:block;font-weight:400;color:var(--muted);font-size:13px}
details.menu{position:static}
details.menu summary{list-style:none;cursor:pointer;font-weight:700;font-size:16px;border:1.5px solid var(--ink);border-radius:6px;padding:7px 12px;display:flex;gap:8px;align-items:center;min-height:44px}
details.menu summary::-webkit-details-marker{display:none}
details.menu summary .ic{display:inline-block;width:18px;height:2px;background:currentColor;position:relative}
details.menu summary .ic::before,details.menu summary .ic::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor}
details.menu summary .ic::before{top:-6px}details.menu summary .ic::after{top:6px}
details.menu[open] summary{background:var(--ink);color:#fff}
details.menu nav{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(0,0,0,.08)}
details.menu nav ol{list-style:none;max-width:1040px;margin:0 auto;padding:6px 18px 14px}
details.menu nav a{display:flex;gap:12px;align-items:baseline;padding:11px 4px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);font-weight:700;font-size:17px}
details.menu nav a .n{color:var(--orange-text);font-size:14px;min-width:1.4em}
details.menu nav a[aria-current=page]{color:var(--orange-text)}
details.menu nav a span.d{display:block;font-weight:400;color:var(--muted);font-size:14px}
nav.tabs{display:none}
@media(min-width:900px){
  details.menu{display:none}
  nav.tabs{display:block;border-top:1px solid var(--line)}
  nav.tabs ol{list-style:none;display:flex;gap:2px;flex-wrap:wrap}
  nav.tabs a{display:block;padding:10px 8px;font-size:14.5px;font-weight:700;color:var(--muted);text-decoration:none;border-bottom:3px solid transparent}
  nav.tabs a:hover{color:var(--ink)}
  nav.tabs a[aria-current=page]{color:var(--ink);border-bottom-color:var(--orange)}
}

/* hero + page heads */
.hero{position:relative;background:#2a2622;color:#fff;overflow:hidden}
.hero picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,18,16,.15) 0%,rgba(20,18,16,.72) 55%,rgba(20,18,16,.9) 100%)}
.hero .wrap{position:relative;z-index:2;padding-top:180px;padding-bottom:30px}
@media(min-width:800px){.hero::after{background:linear-gradient(90deg,rgba(20,18,16,.88) 0%,rgba(20,18,16,.6) 48%,rgba(20,18,16,.05) 80%)}.hero .wrap{padding-top:70px;padding-bottom:60px}.hero .copy{max-width:600px}}
.kicker{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--orange-text)}
.hero .kicker{color:#FFB77A}
.hero h1{font-size:clamp(32px,6vw,52px);line-height:1.08;margin:8px 0 4px;font-weight:700}
.hero h1 span{display:block;font-weight:400;font-size:.62em;margin-top:6px}
.hero p{font-size:19px;margin-top:14px;color:#F3EEE9}
.hero .q{border-left:4px solid var(--orange);padding-left:14px}
.pagehead{background:var(--pale);padding:34px 0 28px}
.pagehead h1{font-size:clamp(30px,5vw,44px);line-height:1.12;margin-top:6px}
.pagehead .lede{font-size:19px;max-width:760px;margin-top:10px}
.rule{width:56px;height:4px;background:var(--orange);margin:12px 0}

/* sections */
main section{padding:34px 0}
main section+section{border-top:1px solid var(--line)}
h2{font-size:clamp(24px,4vw,30px);line-height:1.2;margin-bottom:12px}
h3{font-size:20px;line-height:1.3;margin:22px 0 6px}
p+p,p+ul,ul+p,p+ol,ol+p{margin-top:12px}
.measure{max-width:760px}
ul.dots,ol.steps{padding-left:22px}ul.dots li,ol.steps li{margin:7px 0}
ul.dots li::marker{color:var(--orange)}
.small{font-size:15px;color:var(--muted)}
sup.cite{font-size:.68em;line-height:0;margin-left:1px;white-space:nowrap}
sup.cite a{text-decoration:none;font-weight:700}
abbr{text-decoration:none;border-bottom:1px dotted var(--muted);cursor:help}
.tp{font-style:italic}

/* layout helpers */
.two{display:grid;gap:26px;align-items:start}
@media(min-width:800px){.two{grid-template-columns:1.15fr .85fr;gap:36px}}
.grid3{display:grid;gap:14px}
@media(min-width:720px){.grid3{grid-template-columns:repeat(3,1fr)}}
.cards{display:grid;gap:16px}
@media(min-width:620px){.cards{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.cards{grid-template-columns:repeat(3,1fr)}}

/* components */
figure{margin:0}
figure img{border-radius:8px;width:100%}
figcaption{font-size:14px;color:var(--muted);margin-top:6px}
.pillar{background:var(--paler);border-top:4px solid var(--orange);padding:14px 16px 16px;border-radius:0 0 8px 8px}
.pillar h3{margin-top:0}
.pillar ul{padding-left:18px;font-size:16.5px}.pillar li{margin:5px 0}
.card{display:flex;flex-direction:column;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.card:hover{border-color:#bdb4ab}
.card img{aspect-ratio:16/9;object-fit:cover;width:100%}
.card .c{padding:12px 14px 16px}
.card h3{margin:0 0 4px;font-size:19px}
.card p{font-size:16px;color:var(--muted)}
.figs{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.fig{border-top:4px solid var(--orange);padding:10px 2px 2px}
.fig b{display:block;font-size:32px;line-height:1.05;font-weight:700}
.fig span{display:block;font-size:15.5px;color:var(--ink);margin-top:4px}
.fig em{display:block;font-style:normal;font-size:13.5px;color:var(--muted);margin-top:3px}
.group-label{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:22px 0 8px}
.note{background:var(--pale);border-radius:8px;padding:14px 16px;font-size:16.5px}
.note.plain{background:#F4F4F2}
.note h3{margin-top:0;font-size:18px}
blockquote{border-left:4px solid var(--orange);padding:4px 0 4px 16px;margin:18px 0}
blockquote p{font-size:22px;line-height:1.35}
blockquote footer,blockquote .by{font-size:15px;color:var(--muted);margin-top:8px}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;flex-direction:column;justify-content:center;min-height:48px;border:1.5px solid var(--ink);border-radius:8px;padding:9px 14px;font-weight:700;font-size:16px;text-decoration:none;color:var(--ink);background:#fff}
.btn small{font-weight:400;font-size:13.5px;color:var(--muted)}
.btn:hover{background:var(--ink);color:#fff}.btn:hover small{color:#ddd}
.btn.primary{background:var(--ink);color:#fff}.btn.primary small{color:#ddd}
.btn.primary:hover{background:#000}
.help{border:2px solid #B42318;border-radius:8px;padding:12px 14px;font-size:16px}
.help b{color:#B42318}
table{width:100%;border-collapse:collapse;font-size:15.5px}
caption{text-align:left;font-weight:700;padding-bottom:6px;font-size:16px}
th,td{text-align:left;padding:8px 8px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:13.5px;color:var(--muted);font-weight:700}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
details.data{margin-top:10px;font-size:15.5px}
details.data summary{cursor:pointer;font-weight:700;color:var(--orange-text);min-height:32px}
.gloss dt{font-weight:700;margin-top:10px}
.gloss dd{margin-left:0}
.chain{list-style:none;display:grid;gap:10px}
@media(min-width:720px){.chain{grid-template-columns:repeat(3,1fr)}}
.chain li{background:var(--paler);border-radius:8px;padding:12px 14px;border-left:4px solid var(--orange)}
.chain b{display:block}
.practices{list-style:none;counter-reset:p;display:grid;gap:12px}
@media(min-width:720px){.practices{grid-template-columns:repeat(2,1fr)}}
.practices li{counter-increment:p;background:var(--paler);border-radius:8px;padding:12px 14px 14px 52px;position:relative}
.practices li::before{content:counter(p);position:absolute;left:14px;top:9px;font-size:28px;font-weight:700;color:var(--orange-text)}
.practices b{display:block}

/* charts */
.charts{display:grid;gap:14px}
@media(min-width:720px){.charts{grid-template-columns:repeat(3,1fr)}}
.chart{border:1px solid var(--line);border-radius:8px;padding:12px 12px 8px}
.chart h3{margin:0;font-size:17px}
.chart p.sub{font-size:13.5px;color:var(--muted)}
.chart svg{width:100%;height:auto;display:block;margin-top:4px}
.chart .foot{font-size:13.5px;color:var(--muted)}
.dumb svg{width:100%;height:auto}
.map svg{width:100%;height:auto;display:block;background:#FAF7F3;border-radius:8px;border:1px solid var(--line)}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:14.5px;color:var(--muted);margin-top:8px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px;margin-right:6px}

/* pager + footer */
.pager{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:22px 0 8px}
.pager a{display:block;text-decoration:none;border:1px solid var(--line);border-radius:8px;padding:10px 14px;min-width:46%;flex:1;color:var(--ink)}
.pager a small{display:block;color:var(--muted);font-size:13.5px}
.pager a b{color:var(--orange-text)}
.pager a.nx{text-align:right}
footer.site{background:var(--pale);margin-top:30px}
footer.site .wrap{padding-top:26px;padding-bottom:22px}
footer.site h2{font-size:20px;margin-bottom:6px}
footer.site .cols{display:grid;gap:20px}
@media(min-width:760px){footer.site .cols{grid-template-columns:1.2fr 1fr}}
footer.site p,footer.site li{font-size:15.5px}
footer.site ul{list-style:none}
footer.site .logos{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:16px}
footer.site .logos img{height:40px;width:auto}
footer.site .band{background:var(--band);color:#fff;font-size:14px}
footer.site .band .wrap{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}
footer.site .band a{color:#fff}
@media print{header.top,.pager,details.menu,nav.tabs{display:none}.hero{background:none;color:#000}.hero::after,.hero picture{display:none}.hero .wrap{padding:0}.hero p{color:#000}}

/* responsive dot plot (types chart) */
ul.dp{list-style:none;display:grid;gap:12px;max-width:760px}
ul.dp li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:end}
.dp-l{font-size:15.5px;line-height:1.3}
.dp-v{font-size:14.5px;white-space:nowrap;color:var(--muted)}.dp-v b{color:var(--ink)}
.dp-t{grid-column:1/-1;position:relative;height:16px;background:linear-gradient(90deg,#EDE8E2 1px,transparent 1px) 0 0/22.22% 100%;border-left:1px solid #CFC6BC}
.dp-t i{position:absolute;top:50%}
.dp-r{height:4px;margin-top:-2px;background:#D8CFC5}
.dp-b,.dp-e{width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%}
.dp-b{background:#fff;border:2.5px solid #8A8A8A}
.dp-e{background:#A84A0C}
.key-b,.key-e{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px}
.key-b{border:2.5px solid #8A8A8A}.key-e{background:#A84A0C}

/* tables that stack into cards on phones */
@media(max-width:640px){
  table.stack thead{position:absolute;left:-9999px}
  table.stack caption{display:block;width:100%}
  table.stack,table.stack tbody,table.stack tr,table.stack th,table.stack td{display:block;width:100%}
  table.stack tr{border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:10px}
  table.stack th[scope=row]{border:0;padding:2px 0 6px;font-size:16px;color:var(--ink)}
  table.stack td{border:0;padding:3px 0;text-align:left;display:flex;justify-content:space-between;gap:12px}
  table.stack td::before{content:attr(data-label);color:var(--muted);font-size:14px}
  table.stack td.num{white-space:normal}
}
@media(min-width:800px){.hero picture img{object-position:85% 35%}}

/* simple horizontal bars (gender page) */
ul.bars{list-style:none;display:grid;gap:10px;max-width:640px}
ul.bars li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:end}
.bl{font-size:16px}.bv{font-weight:700;font-variant-numeric:tabular-nums}.bv small{font-weight:400;color:var(--muted)}
.bt{grid-column:1/-1;height:12px;background:#EFEAE4;border-radius:6px;overflow:hidden}
.bt i{display:block;height:100%;background:var(--orange-text)}

/* poster page */
.poster-map{position:relative;max-width:900px;margin:0 auto;border:1px solid var(--line)}
.poster-map img{width:100%;height:auto}
.poster-map a.hs{position:absolute;display:block;border:2px solid transparent;border-radius:4px}
.poster-map a.hs span{position:absolute;left:-9999px}
.poster-map a.hs:hover,.poster-map a.hs:focus-visible{border-color:var(--orange);background:rgba(245,130,32,.12)}
.poster-map a.hs:focus-visible span,.poster-map a.hs:hover span{left:4px;top:4px;background:var(--ink);color:#fff;font-size:13px;padding:2px 6px;border-radius:3px}
.posterstrip{padding:14px 0!important;background:var(--pale)}
.posterstrip a{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink)}
.posterstrip img{width:56px;height:auto;border:1px solid var(--line);border-radius:2px}
.posterstrip span{font-size:17px}.posterstrip b{display:block}
main section.posterstrip+section{border-top:0}

/* work-in-progress notice */
.wip{background:#FFF6D6;border:1px solid #E3C766;border-radius:8px;padding:10px 14px;font-size:15.5px;margin-top:14px;max-width:760px}
.wip b{color:#5C4A00}

/* hero v2 (1 Oct): keep the headline off her face. Phone: photo above, text below. Desktop: text panel left, photo right. */
.hero picture{display:block}
.hero picture img{position:static;display:block;width:100%;height:62vw;max-height:440px;object-fit:cover;object-position:42% 30%}
.hero::after{display:none}
.hero .wrap{padding-top:22px;padding-bottom:30px}
@media(min-width:1000px){
.hero{min-height:400px;display:flex;align-items:center}
.hero picture{position:absolute;top:0;right:0;bottom:0;width:52%}
.hero picture img{position:absolute;inset:0;height:100%;max-height:none;object-position:42% 28%}
.hero::after{display:block;left:48%;right:auto;width:16%;background:linear-gradient(90deg,#2a2622 0%,rgba(42,38,34,.75) 35%,rgba(42,38,34,0) 100%)}
.hero .wrap{width:100%;padding-top:56px;padding-bottom:56px}
.hero .copy{max-width:min(560px,44vw)}
}

/* link back to the main endsarv.net site (1 Oct) */
.util{background:#2a2622;color:#E9E2DA;font-size:14px}
.util .wrap{display:flex;gap:14px;align-items:center;min-height:34px;flex-wrap:wrap}
.util a{color:#fff;font-weight:700;text-decoration:none;padding:6px 0}
.util a:hover,.util a:focus-visible{text-decoration:underline}
.util span{opacity:.85}
@media(max-width:480px){.util span{display:none}}

/* where people went (type movements) */
ul.moves{list-style:none;display:grid;gap:16px;max-width:760px}
ul.moves li{display:grid;gap:5px}
.mv-l{font-size:16px}.mv-l small{color:var(--muted)}
.mv-bar{display:flex;height:26px;gap:2px;border-radius:4px;overflow:hidden}
.mv-bar i{display:flex;align-items:center;justify-content:center;font-style:normal;font-size:13px;font-weight:700;color:#fff;min-width:0}
.mv-t{font-size:14.5px;color:var(--muted)}
.mv-lie{background:#2468bd}.mv-ns{background:#77716b}.mv-real{background:#bf4a10}
.mv-key{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;margin-bottom:10px}
.mv-key span{display:inline-flex;align-items:center;gap:6px}
.mv-key i{display:inline-block;width:14px;height:14px;border-radius:3px}
table.wide7{font-size:14px}
table.wide7 th small{color:var(--muted);font-weight:400}

/* final visual sweep (1 Oct) */
/* narrow text sections line up with full-width sections instead of floating centred */
.wrap.measure{max-width:1040px}
.wrap.measure>*{max-width:724px}
/* citation numbers stay legible inside small print */
sup.cite{font-size:max(12px,.68em)}
/* comfortable tap targets for standalone small links */
footer.site .band a,.help a{display:inline-block;padding:4px 0}
/* phone header: keep the brand to two lines */
@media(max-width:420px){header.top .brand small{display:none}}
/* "Three words": the long Sorcery card spans the row on wider screens */
@media(min-width:720px){.grid3.words{grid-template-columns:1fr 1fr}.grid3.words>:first-child{grid-column:1/-1}}
/* hero: kicker on two lines, title sized to keep "Standing together against" on one line */
.hero .kicker span{display:block}
.hero h1{font-size:clamp(26px,3.1vw,40px)}
@media(min-width:1000px){.hero .copy{max-width:min(620px,47vw)}}
@media(min-width:1000px){.hero .q{max-width:540px}}
/* hero photo: right-cropped so Margaret sits on the right third of the frame at any size */
.hero picture img{object-position:64% 30%}
@media(min-width:1000px){.hero picture img{object-position:64% 30%}}

/* v18: Method strip on the poster is thin; give it a tappable height */
.poster-map a.hs.thin{min-height:32px;transform:translateY(-50%);z-index:1}
