/* Period Power: "Periods Around the World" page-specific styles.
   Nav, hero, buttons, section headings and footer come from style.css; this file only adds the map, cards, tags and detail sheet. */
:root{
  --white:#FFFFFF; --line:#EFDCD8;
  --t-celebration:#2F7D6B; --t-restriction:#B26A12; --t-contested:#6B4FA3; --t-harmful:#D03A26; --t-stigma:#7A6168;
  --f-display:"Fraunces", Georgia, "Times New Roman", serif;
  --f-body:"DM Sans", "Helvetica Neue", Arial, sans-serif;
}
[hidden]{display:none !important}
html{scroll-padding-top:80px}
body.blog-page{font-size:16px;line-height:1.65}
.blog-page section[id]{scroll-margin-top:70px}
.blog-page h1,.blog-page h2,.blog-page h3{font-family:var(--f-display);line-height:1.08;text-wrap:balance}
.blog-page h3{font-weight:700}
.blog-page :focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:4px}

/* hero (uses .hero / .hero-left / .hero-right from style.css) */
.hero-blog{min-height:auto}
.hero-blog .hero-sub{max-width:480px}
.byline{display:flex;align-items:center;gap:12px;margin:-0.8rem 0 2rem;font-size:0.88rem;color:rgba(255,255,255,.72)}
.byline b{color:#fff;font-weight:500}
.byline::before{content:"";width:28px;height:2px;background:var(--pink);flex:none}
.hero-blog .hero-right{display:flex;align-items:center;justify-content:center;padding:3rem 2.5rem 8rem;background:linear-gradient(145deg,var(--burgundy-deep) 0%,var(--burgundy) 100%)}
.mosaic{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;min-width:0;width:100%;max-width:560px}
.mosaic figure{margin:0;border-radius:3px;overflow:hidden;aspect-ratio:1/1;background:var(--burgundy-deep);box-shadow:0 10px 30px rgba(0,0,0,.18)}
.mosaic figure:nth-child(2),.mosaic figure:nth-child(5){transform:translateY(18px)}
.mosaic svg{width:100%;height:100%;display:block}
@media(max-width:900px){ .hero-blog .hero-right{height:auto;padding:2.5rem 1.5rem 9rem} .byline{margin-top:-0.4rem} }

/* section bands + headings (uses .section-eyebrow / .section-title / .section-body) */
.band-cream{background:var(--cream)} .band-pink{background:var(--soft-pink)} .band-white{background:var(--warm-white)}
.head{max-width:720px;margin-bottom:2rem}
.head .section-body{max-width:60ch}
.btn-soft{display:inline-block;background:var(--soft-pink);color:var(--burgundy);padding:0.55rem 1.2rem;border-radius:24px;font-size:0.88rem;font-weight:500;text-decoration:none;transition:background .2s}
.btn-soft:hover{background:var(--petal)}

/* map */
.mapcard{background:var(--white);border-radius:3px;padding:14px;box-shadow:0 1px 2px rgba(42,26,31,.06)}
.mapscroll{overflow-x:auto}
svg.map{display:block;width:100%;min-width:600px;height:auto}
.map .land{fill:var(--petal);stroke:var(--blush);stroke-width:.7}
.map .ocean{fill:var(--white)}
.pin{cursor:pointer;outline:none}
.pin .halo{fill:var(--rose);opacity:.22}
.pin .dot{fill:var(--burgundy);stroke:var(--white);stroke-width:2.5}
.pin text{font:500 12px var(--f-body);fill:var(--white);text-anchor:middle;dominant-baseline:central;pointer-events:none}
.pin:hover .dot,.pin:focus-visible .dot,.pin.on .dot{fill:var(--red)}
.pin:focus-visible .halo{opacity:.5}
@media (prefers-reduced-motion:no-preference){ .pin .halo{animation:pulse 3.4s ease-in-out infinite} @keyframes pulse{50%{opacity:.06}} }
.tip rect{fill:var(--charcoal)} .tip text{font:500 12.5px var(--f-body);fill:var(--white)}
.regions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.chip{font:500 13.5px var(--f-body);background:var(--white);color:var(--charcoal);border:1px solid var(--line);border-radius:24px;padding:7px 14px;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.chip b{font-weight:500;color:var(--white);background:var(--burgundy);border-radius:12px;min-width:22px;padding:0 6px;font-size:12px;text-align:center}
.chip:hover,.chip[aria-pressed="true"]{border-color:var(--burgundy);background:var(--soft-pink)}
.legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px}
.mapnote{font-size:13px;color:var(--warm-gray);margin-top:10px}

/* tags */
.tag{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--c);white-space:nowrap}
.tag i{width:9px;height:9px;border-radius:50%;background:var(--c);display:inline-block;flex:none}
[data-t="Celebration"]{--c:var(--t-celebration)} [data-t="Restriction"]{--c:var(--t-restriction)}
[data-t="Contested"]{--c:var(--t-contested)} [data-t="Harmful"]{--c:var(--t-harmful)} [data-t="Modern stigma"]{--c:var(--t-stigma)}

/* method cards */
.three{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}
.mcard{background:var(--white);border-radius:3px;padding:32px 28px;min-width:0}
.mcard .num{font-family:var(--f-display);font-style:italic;color:var(--rose);font-size:15px}
.mcard h3{font-size:22px;margin:6px 0 10px}
.mcard p,.mcard li{color:var(--warm-gray);font-size:15px}
.mcard ul{margin:10px 0 0;padding-left:18px;display:grid;gap:4px}
.defs{display:grid;gap:12px;margin-top:4px}
.defs div{display:grid;gap:2px}
.defs span.d{font-size:14px;color:var(--warm-gray)}
.conf{display:inline-flex;gap:3px;vertical-align:middle}
.conf i{width:16px;height:6px;border-radius:3px;background:var(--petal);display:block}
.conf[data-l="3"] i,.conf[data-l="2"] i:nth-child(-n+2),.conf[data-l="1"] i:first-child{background:var(--burgundy)}
.confrow{display:flex;gap:12px;align-items:baseline;font-size:14px;color:var(--warm-gray)}
.confrow b{color:var(--charcoal);font-weight:500}

.spectrum{background:var(--white);border-radius:3px;padding:28px;margin-top:18px}
.spectrum h3{font-size:22px}
.spectrum p{color:var(--warm-gray);font-size:15px;margin-top:6px;max-width:64ch}
.sscroll{overflow-x:auto;margin-top:14px}
svg.mx{display:block;width:100%;min-width:640px;height:auto}
.mx .frame{fill:var(--cream);stroke:none}
.mx .mid{stroke:var(--blush);stroke-dasharray:3 5}
.mx .q{font:italic 400 15px var(--f-display);fill:var(--rose)}
.mx .axl{font:500 10.5px var(--f-body);letter-spacing:.14em;fill:var(--warm-gray)}
.mx .pt{cursor:pointer;outline:none}
.mx .pt circle{stroke:var(--white);stroke-width:2.5}
.mx .pt text{font:500 12.5px var(--f-body);fill:var(--charcoal)}
.mx .pt line{stroke:var(--warm-gray);stroke-width:.8}
.mx .pt:hover text,.mx .pt:focus-visible text{fill:var(--red)}

/* themes + cards */
.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tabs button{font:500 14px var(--f-body);background:var(--white);color:var(--charcoal);border:1px solid var(--line);border-radius:24px;padding:9px 18px;cursor:pointer}
.tabs button small{color:var(--warm-gray);margin-left:6px;font-size:12px}
.tabs button[aria-pressed="true"]{background:var(--burgundy);border-color:var(--burgundy);color:var(--white)}
.tabs button[aria-pressed="true"] small{color:var(--pink)}
.filterline{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;justify-content:space-between;margin:18px 0 8px;font-size:14px;color:var(--warm-gray)}
.filterline .left{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.themeintro{font-family:var(--f-display);font-style:italic;font-size:19px;color:var(--burgundy);max-width:60ch;margin-bottom:26px;line-height:1.45}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:22px}
.card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;background:var(--white);border-radius:3px;overflow:hidden;box-shadow:0 1px 2px rgba(42,26,31,.06);transition:transform .18s, box-shadow .18s;min-width:0}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(123,30,46,.14)}
.card:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.card .cover{aspect-ratio:400/220;max-width:100%;background:var(--petal);display:block}
.card .cover svg{width:100%;height:100%;display:block}
.card .body{padding:20px 22px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-size:22px;line-height:1.15}
.card .place{font-size:13px;color:var(--warm-gray)}
.card p.s{font-size:15px;color:var(--charcoal);line-height:1.5}
.card .meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:12.5px;color:var(--warm-gray)}
.status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.status::before{content:"";width:9px;height:9px;border-radius:50%;border:2px solid var(--burgundy);flex:none}
.status[data-s="now"]::before{background:var(--burgundy)}
.status[data-s="changing"]::before{background:linear-gradient(90deg,var(--burgundy) 50%,transparent 50%)}
.status[data-s="court"]::before{border-style:dashed}
.backrow{display:flex;justify-content:center;margin-top:34px}
.empty{color:var(--warm-gray);font-style:italic}

/* guide */
.guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px}
.guide div{border-top:3px solid var(--red);padding-top:14px}
.guide h3{font-size:18px;margin-bottom:6px}
.guide p{font-size:15px;color:var(--warm-gray)}

/* detail sheet */
.scrim{position:fixed;inset:0;background:rgba(42,26,31,.5);z-index:30}
.sheet{position:fixed;top:0;right:0;bottom:0;width:min(660px,100%);background:var(--warm-white);z-index:31;overflow-y:auto;box-shadow:-24px 0 60px rgba(42,26,31,.25);padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}
@media (prefers-reduced-motion:no-preference){ .sheet{animation:slide .3s cubic-bezier(.2,.8,.2,1)} @keyframes slide{from{transform:translateX(48px);opacity:.3}} }
.sheetbar{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:8px;padding:calc(12px + env(safe-area-inset-top,0px)) max(20px, env(safe-area-inset-right,0px)) 12px 20px;background:rgba(255,250,247,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.sheetbar .x{font:500 14px var(--f-body);background:var(--white);border:1px solid var(--line);color:var(--charcoal);border-radius:24px;padding:8px 16px;cursor:pointer}
.sheet .banner{aspect-ratio:400/200;max-width:100%;overflow:hidden;background:var(--petal)}
.sheet .banner svg{width:100%;height:100%;display:block}
.sheet .inner{padding:24px max(24px, env(safe-area-inset-right,0px)) 0 24px}
.sheet h2{font-size:clamp(30px,5vw,42px);font-weight:900;margin:10px 0 4px}
.sheet .sub{color:var(--warm-gray);font-size:15px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;margin:22px 0 10px}
.facts div{background:var(--white);border-radius:3px;padding:14px 16px;min-width:0}
.facts dt{font-size:10.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--rose);margin-bottom:6px}
.facts dd{margin:0;font-size:14.5px;line-height:1.45}
.confwhy{font-size:14px;color:var(--warm-gray)}
.blk{margin-top:26px}
.blk h4{font-family:var(--f-display);font-weight:700;font-size:19px;color:var(--burgundy);margin:0 0 6px}
.blk p{font-size:16px;max-width:62ch}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:26px}
@media (max-width:560px){ .split{grid-template-columns:1fr} }
.split div{background:var(--white);border-radius:3px;padding:16px 18px;min-width:0}
.split div:first-child{border-top:3px solid var(--t-celebration)}
.split div:last-child{border-top:3px solid var(--red)}
.split h4{margin:0 0 6px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:500;color:var(--warm-gray)}
.split p{font-size:15px}
.tl{list-style:none;margin:10px 0 0;padding:0;position:relative}
.tl::before{content:"";position:absolute;left:97px;top:10px;bottom:10px;width:2px;background:var(--petal)}
.tl li{display:grid;grid-template-columns:86px 22px 1fr;gap:6px;align-items:start;padding:7px 0;font-size:15px}
.tl .yr{font-weight:500;font-size:13px;color:var(--burgundy);text-align:right;padding-top:2px;font-variant-numeric:tabular-nums}
.tl .nd{width:14px;height:14px;border-radius:50%;background:var(--warm-white);border:3px solid var(--rose);margin:4px 0 0 4px;position:relative;z-index:1}
.tl li:last-child .nd{background:var(--red);border-color:var(--red)}
.src{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:8px}
.src li{font-size:14.5px;display:grid;grid-template-columns:96px 1fr;gap:10px;align-items:baseline}
.src .kind{font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--warm-gray)}
.src .todo{color:var(--warm-gray);font-style:italic}
.hook{font-family:var(--f-display);font-style:italic;font-size:20px;line-height:1.4;color:var(--burgundy);border-left:3px solid var(--red);padding-left:16px}
.respect{background:var(--soft-pink);border-radius:3px;padding:14px 16px;font-size:15px;margin-top:22px}
.sheet .backrow{margin-top:30px}

/* Detail sheet must sit above the fixed site nav (z-index:100) */
.scrim{z-index:200}
.sheet{z-index:201}

/* Series note strip above the footer's bottom bar */
.series-note{background:var(--burgundy-deep);border-top:1px solid rgba(255,255,255,0.06);padding:1.2rem 6rem;font-size:0.8rem;line-height:1.7;color:rgba(255,255,255,0.5)}
.series-note a{color:var(--pink)}
@media(max-width:900px){ .series-note{padding:1.2rem 1.5rem} }
