@font-face{
  font-family:AtlasSerif;
  src:local("Noto Serif TC"),local("Songti TC");
  font-display:swap}

:root{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;
  color:#253c38;
  background:#eeeae2;
  font-synthesis:none;
  --ink:#243a35;
  --muted:#69756d;
  --accent:#426749;
  --line:#253c3824;
  --paper:#eeeae2;
  --pink:#b17d67;
  --male:#4c786c;
  --female:#ba8470}

*{
  box-sizing:border-box}
body{
  margin:0}
button,select,input{
  font:inherit}
button,select{
  color:inherit}
button{
  cursor:pointer;
  border:0;
  background:transparent;
  min-height:44px}
button:disabled{
  opacity:.28;
  cursor:default}
button:hover{
  background:#526e4910}
button:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{
  outline:3px solid #cb8b44;
  outline-offset:3px}
a{
  color:inherit;
  text-underline-offset:4px}
button,select,a{
  touch-action:manipulation}
select{
  background:transparent;
  border:0;
  border-radius:0;
  min-height:44px;
  cursor:pointer;
  max-width:100%}
option{
  color:#243a35;
  background:#eeeae2}
h1,h2,p{
  margin:0}
h1,h2{
  font-family:AtlasSerif,"Songti TC",serif;
  font-weight:500}
h1{
  font-size:clamp(28px,3.2vw,46px);
  letter-spacing:.08em;
  line-height:1.3}
.loading,.load-error{
  height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:20px}
.atlas{
  height:100dvh;
  min-height:600px;
  display:grid;
  grid-template-rows:76px 64px minmax(0,1fr) 95px;
  overflow:hidden;
  transition:background-color .3s ease,color .3s ease}
.topbar{
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 38px;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2}
.brand{
  display:flex;
  gap:12px;
  align-items:center;
  white-space:nowrap;
  font-size:17px;
  letter-spacing:.1em}
.brand-mark{
  width:33px;
  height:33px;
  border:1px solid currentColor;
  display:grid;
  place-items:center;
  font-family:serif;
  font-size:20px}
.brand small{
  display:block;
  font:9px/1.7 sans-serif;
  letter-spacing:.19em;
  margin-top:2px}
.concepts{
  display:flex;
  gap:8px;
  align-items:center;
  flex:1;
  justify-content:center}
.concepts button{
  padding:10px 16px;
  border-bottom:2px solid transparent;
  font-size:13px;
  white-space:nowrap;
  letter-spacing:.07em}
.concepts button span{
  font:11px Georgia,serif;
  display:inline-block;
  margin-right:12px;
  opacity:.55}
.concepts button[aria-pressed=true]{
  border-color:var(--accent)}
.tools{
  display:flex;
  gap:4px;
  align-items:center}
.tools button{
  padding:0 12px;
  font-size:13px}
.tools button[data-action=undo],.tools button[data-action=reset]{
  font-size:22px;
  min-width:40px}
.tools button[data-action=export]{
  font-size:21px;
  min-width:40px}
.control-edge{
  display:flex;
  align-items:center;
  gap:30px;
  padding:0 40px;
  z-index:1}
.region-control{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13px}
.region-control>span{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.12em}
.region-control select{
  width:160px;
  font-size:13px}
.metrics,.view-switch{
  display:flex;
  gap:4px}
.metrics button,.view-switch button{
  font-size:12px;
  min-width:56px;
  padding:8px 10px;
  border-radius:3px}
.metrics button[aria-pressed=true]{
  color:var(--paper);
  background:var(--ink)}
.view-switch{
  margin-left:auto}
.view-switch button[aria-pressed=true]{
  background:var(--line)}
.prototype-tag{
  font-size:10px;
  color:var(--muted);
  letter-spacing:.06em;
  padding-left:20px;
  border-left:1px solid var(--line)}
#workspace{
  min-height:0;
  position:relative;
  overflow:hidden}
.eyebrow{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.2em;
  color:var(--muted);
  display:block}
.chronicle-stage{
  height:100%;
  display:grid;
  grid-template-rows:126px minmax(0,1fr) 93px;
  padding:12px 56px 0}
.chronicle-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px}
.chronicle-heading h1{
  margin:12px 0 8px}
.chronicle-heading p{
  font-size:11px;
  color:var(--muted);
  letter-spacing:.06em}
.headline{
  text-align:right;
  align-self:center}
.headline strong{
  font:clamp(40px,4.1vw,62px)/1.2 Georgia,"Songti TC",serif;
  letter-spacing:-.05em;
  display:block}
.headline span{
  display:block;
  font-size:11px;
  letter-spacing:.12em;
  margin-top:8px;
  color:var(--muted)}
.chronicle-canvas{
  min-height:0;
  display:flex;
  flex-direction:column;
  position:relative;
  padding-top:24px}
.chart{
  min-height:0;
  min-width:0;
  flex:1;
  position:relative}
.chart svg{
  width:100%;
  height:100%;
  display:block;
  overflow:visible}
.chart-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:34px;
  font-size:10px;
  color:var(--muted);
  padding:0 4% 0 8%}
.chart-tools button{
  font-size:11px;
  padding:0 10px;
  min-height:32px;
  border:1px solid var(--line)}
.chronicle-reading{
  display:flex;
  align-items:center;
  gap:32px;
  border-top:1px solid var(--line);
  margin-top:8px}
.chronicle-reading>div{
  display:grid;
  grid-template-columns:auto auto;
  column-gap:20px;
  row-gap:3px;
  min-width:290px}
.chronicle-reading strong{
  font:20px/1.5 Georgia,serif;
  letter-spacing:.015em}
.chronicle-reading .eyebrow{
  grid-column:1}
.reference-control{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  grid-column:2;
  grid-row:1/3}
.reference-control select{
  font:16px Georgia,serif}
.chronicle-reading>p{
  font-size:12px;
  color:var(--muted);
  max-width:420px;
  line-height:1.9}
.text-link{
  font-size:11px;
  text-align:left;
  white-space:nowrap;
  padding:0;
  border-bottom:1px solid transparent}
.text-link:hover{
  border-bottom-color:currentColor;
  background:transparent}
.chronicle-reading>.text-link{
  margin-left:auto}
.grid-line{
  stroke:var(--line);
  stroke-width:1;
  stroke-dasharray:3 5}
.axis-label{
  fill:var(--muted);
  font:13px sans-serif}
.trend-area{
  fill:var(--accent);
  opacity:.055}
.trend-line{
  fill:none;
  stroke:var(--accent);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round}
.point{
  fill:var(--paper);
  stroke:var(--accent);
  stroke-width:2.5}
.selected-point{
  fill:var(--accent)}
.data-point{
  cursor:pointer}
.data-point:hover .point{
  r:8}
.playhead{
  stroke:var(--accent);
  stroke-dasharray:3 7;
  opacity:.45}
.chart-value{
  fill:var(--ink);
  font:22px Georgia,serif}
.male-bar{
  fill:var(--male)}
.female-bar{
  fill:var(--female)}
.reference-bar{
  fill:none;
  stroke:var(--ink);
  stroke-width:1.2;
  opacity:.6}
.pyramid-key{
  fill:var(--male);
  font:15px sans-serif}
.female-key{
  fill:var(--female)}
.age-label{
  fill:var(--muted);
  font:12px sans-serif}
.age-row:hover{
  opacity:.65}
.time-edge{
  display:flex;
  align-items:center;
  gap:24px;
  border-top:1px solid var(--line);
  padding:10px 40px;
  background:var(--paper);
  z-index:2}
.time-edge>[data-action=play]{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:50%;
  font-size:13px;
  flex-shrink:0}
.year-field{
  display:flex;
  flex-direction:column;
  min-width:88px}
.year-field span{
  font-size:9px;
  letter-spacing:.15em;
  color:var(--muted)}
.year-field select{
  font:32px/1 Georgia,serif;
  min-height:40px}
.scrubber{
  position:relative;
  flex:1;
  min-width:0;
  padding:4px 0 25px}
.scrubber input{
  display:block;
  width:100%;
  margin:0;
  height:24px;
  cursor:ew-resize;
  accent-color:var(--accent)}
.year-ticks{
  position:absolute;
  left:8px;
  right:8px;
  bottom:-7px}
.year-ticks button{
  font:11px Georgia,serif;
  position:absolute;
  left:var(--position);
  transform:translateX(-50%);
  padding:0 8px;
  min-height:32px;
  top:-27px;
  color:var(--muted)}
.year-ticks button.active{
  color:var(--ink);
  font-weight:bold}
.coverage-note{
  font-size:10px;
  color:var(--muted);
  max-width:170px;
  line-height:1.7}
.county path{
  fill:color-mix(in srgb,var(--accent) calc(var(--intensity)*100%),var(--map-base,#e6e7de));
  stroke:var(--paper);
  stroke-width:1.1;
  vector-effect:non-scaling-stroke;
  transition:fill .15s ease}
.county{
  cursor:pointer}
.county:hover path,.county:focus path{
  fill:var(--pink)}
.county-selected path{
  fill:var(--pink);
  stroke:var(--ink);
  stroke-width:1.8}
.map-label,.compass{
  fill:var(--muted);
  font:14px sans-serif}
.compass-arrow{
  fill:var(--muted)}
.empty-state{
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:28px;
  text-align:center}
.empty-state strong{
  font-family:AtlasSerif,serif;
  font-size:26px;
  font-weight:400}
.empty-state p{
  font-size:13px;
  line-height:1.9;
  max-width:340px;
  color:var(--muted)}
.empty-state button{
  margin-top:10px;
  border-bottom:1px solid currentColor;
  font-size:12px}
.island{
  --paper:#112e32;
  --ink:#e8ece0;
  --muted:#b1c8c4;
  --accent:#8bb4a0;
  --line:#dae7e425;
  --map-base:#25474c;
  --pink:#dbad75;
  --male:#91beae;
  --female:#d7a97e;
  background:var(--paper);
  color:var(--ink)}
.island .topbar{
  border-bottom-color:var(--line)}
.island .metrics button[aria-pressed=true]{
  color:#112e32}
.island .time-edge{
  background:#0d282d}
.island-stage{
  height:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  padding:0 40px 0 24px;
  gap:12px}
.island-canvas{
  position:relative;
  min-height:0;
  display:flex}
.island-canvas>.chart{
  height:100%;
  padding-left:16%;
  padding-right:6%}
.map-heading{
  position:absolute;
  left:24px;
  top:28px;
  z-index:1;
  pointer-events:none}
.map-heading h1{
  font-size:clamp(28px,2.9vw,42px);
  margin:18px 0;
  line-height:1.5}
.map-heading p{
  font-size:12px;
  color:var(--muted)}
.map-watermark{
  position:absolute;
  bottom:36px;
  left:24px;
  letter-spacing:.2em;
  font:10px/1.9 Georgia,serif;
  color:var(--muted);
  pointer-events:none}
.island-inspector{
  display:flex;
  flex-direction:column;
  border-left:1px solid var(--line);
  padding:26px 0 0 28px;
  min-height:0}
.inspector-head{
  display:flex;
  align-items:center;
  justify-content:space-between}
.inspector-head button{
  font-size:11px;
  min-height:30px}
.island-inspector h2{
  font-size:32px;
  letter-spacing:.12em;
  margin-top:14px}
.inspector-number{
  font:45px/1.3 Georgia,serif;
  margin:14px 0 10px}
.definition{
  font-size:10px;
  color:var(--muted);
  line-height:1.9}
.island-insight{
  font-size:12px;
  line-height:1.9;
  margin:24px 0 16px}
.age-strip{
  display:flex;
  gap:20px;
  font-size:10px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:13px 0}
.age-strip span{
  display:flex;
  flex-direction:column;
  gap:8px}
.age-strip b{
  font:21px Georgia,serif;
  color:var(--ink)}
.county-list{
  overflow:auto;
  flex:1;
  min-height:0;
  margin-top:18px;
  scrollbar-width:thin}
.list-title{
  font-size:10px;
  letter-spacing:.06em;
  padding:0 0 10px;
  color:var(--muted);
  display:flex;
  justify-content:space-between}
.list-title span{
  font-size:9px;
  opacity:.8}
.county-list button{
  width:100%;
  display:flex;
  align-items:center;
  gap:16px;
  font-size:12px;
  border-bottom:1px solid var(--line);
  padding:0 8px}
.county-list button[aria-pressed=true]{
  background:var(--line)}
.county-list .rank{
  font:10px Georgia,serif;
  color:var(--muted)}
.county-list b{
  margin-left:auto;
  font:14px Georgia,serif;
  font-weight:400}
.island-inspector>.text-link{
  margin-top:8px;
  min-height:40px}
.official-link{
  margin-top:30px;
  border:1px solid var(--line);
  font-size:12px}
.compare{
  --paper:#f4f1e9;
  --ink:#313946;
  --muted:#767b83;
  --accent:#535e70;
  --line:#31394624;
  --male:#647988;
  --female:#b68978;
  background:var(--paper);
  color:var(--ink)}
.compare-stage{
  height:100%;
  display:grid;
  grid-template-rows:86px minmax(0,1fr) 66px;
  padding:10px 40px 0}
.compare-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px}
.compare-top h1{
  font-size:32px;
  margin-top:9px}
.compare-top>p{
  font-size:11px;
  color:var(--muted)}
.comparison{
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);
  min-height:0;
  padding-top:16px}
.comparison-pane{
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:0 12px}
.pane-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:70px;
  padding:0 3%}
.pane-heading label{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:var(--muted)}
.pane-heading select{
  font:36px Georgia,serif;
  color:var(--ink);
  min-width:106px}
.pane-heading strong{
  font:22px Georgia,serif}
.comparison-pane>.chart{
  padding:0 12px}
.pane-note{
  font-size:10px;
  text-align:center;
  min-height:24px;
  color:var(--muted)}
.comparison-seam{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line)}
.comparison-seam span:first-child{
  font:24px Georgia,serif}
.comparison-seam span:last-child{
  font-size:10px;
  writing-mode:vertical-rl;
  letter-spacing:.16em;
  color:var(--muted)}
.compare-reading{
  display:flex;
  align-items:center;
  gap:24px;
  border-top:1px solid var(--line)}
.compare-reading>strong{
  font:22px Georgia,serif;
  font-weight:400}
.compare-reading>p{
  font-size:11px;
  color:var(--muted);
  line-height:1.8}
.compare-reading .text-link{
  margin-left:auto}
.sources-dialog{
  width:min(700px,calc(100vw - 32px));
  max-height:85dvh;
  background:#f5f2eb;
  color:#263c36;
  border:1px solid #263c3633;
  padding:0;
  box-shadow:0 24px 100px #06171640}
.sources-dialog::backdrop{
  background:#091b24a6;
  backdrop-filter:blur(5px)}
.dialog-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 30px;
  border-bottom:1px solid #263c3624;
  position:sticky;
  top:0;
  background:#f5f2eb;
  z-index:1}
.dialog-head button{
  font-size:12px}
.dialog-body{
  padding:24px 30px 30px}
.dialog-body h2{
  font-size:30px;
  line-height:1.5;
  margin-bottom:14px}
.dialog-body p{
  font-size:13px;
  line-height:1.9;
  color:#526158;
  margin:12px 0}
.dialog-body h3{
  font-size:14px;
  margin:0 0 16px;
  font-weight:500;
  letter-spacing:.07em}
.dialog-body section{
  border-top:1px solid #263c3624;
  padding-top:24px;
  margin-top:24px}
.dialog-body a{
  font-size:12px;
  line-height:2}
.dialog-body .minor{
  font-size:10px}
.source-roadmap{
  display:flex;
  flex-direction:column}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0}

@media(min-width:1600px){
  .atlas{
  grid-template-rows:84px 72px minmax(0,1fr) 110px}
.chronicle-stage{
  padding:20px 6vw 0;
  grid-template-rows:150px minmax(0,1fr) 110px}
.island-stage{
  grid-template-columns:minmax(0,1fr) 380px;
  padding-right:5vw}
.comparison-pane>.chart{
  padding:0 5%}
.chronicle-reading>p{
  max-width:600px}
.chronicle-heading h1{
  font-size:52px}
}

@media(max-width:1050px){
  .topbar{
  padding:0 24px;
  gap:16px}
.brand small{
  display:none}
.brand{
  font-size:14px}
.concepts{
  gap:0}
.concepts button{
  padding:8px 10px}
.concepts button span{
  margin-right:5px}
.tools{
  gap:0}
.tools button{
  padding:0 9px}
.control-edge{
  padding:0 24px;
  gap:16px}
.prototype-tag{
  display:none}
.chronicle-stage{
  padding:8px 32px 0}
.chronicle-reading{
  gap:16px}
.chronicle-reading>p{
  font-size:11px}
.chronicle-reading>.text-link{
  display:none}
.island-stage{
  grid-template-columns:minmax(0,1fr) 270px;
  padding-right:24px}
.island-inspector{
  padding-left:18px}
.island-canvas>.chart{
  padding-left:12%;
  padding-right:0}
.map-heading{
  left:4px}
.map-heading h1{
  font-size:28px}
.island-inspector h2{
  font-size:27px}
.inspector-number{
  font-size:38px}
.compare-stage{
  padding:8px 24px 0}
.pane-heading{
  flex-direction:column;
  align-items:flex-start;
  gap:0}
.pane-heading label{
  gap:8px}
.pane-heading select{
  font-size:32px}
.pane-heading strong{
  font-size:19px}
.comparison-pane{
  padding:0}
.compare-reading>p{
  max-width:350px}
.time-edge{
  padding:10px 24px;
  gap:18px}
.coverage-note{
  display:none}
}

@media(max-width:650px){
  .atlas{
  min-height:520px;
  grid-template-rows:96px 96px minmax(0,1fr) 94px}
.topbar{
  padding:10px 16px 0;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:38px 48px;
  gap:0}
.brand{
  font-size:14px;
  gap:8px}
.brand-mark{
  width:26px;
  height:26px;
  font-size:16px}
.brand small{
  display:none}
.tools button{
  padding:0 9px;
  min-width:36px;
  font-size:11px}
.tools button[data-action=undo],.tools button[data-action=reset]{
  font-size:21px;
  min-width:36px}
.tools button[data-action=export]{
  display:none}
.concepts{
  grid-column:1/3;
  justify-content:space-between;
  align-self:end;
  height:46px}
.concepts button{
  font-size:12px;
  padding:0 7px;
  flex:1;
  letter-spacing:0;
  min-height:44px}
.concepts button span{
  margin-right:8px;
  font-size:10px}
.control-edge{
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:46px 46px;
  padding:2px 16px;
  gap:0}
.region-control{
  font-size:12px;
  gap:8px}
.region-control>span{
  display:none}
.region-control select{
  font-size:12px;
  width:148px;
  min-height:44px}
.metrics{
  gap:0}
.metrics button{
  font-size:12px;
  min-width:49px;
  padding:8px 6px}
.view-switch{
  grid-column:1/3;
  justify-content:flex-end;
  gap:4px;
  border-top:1px solid var(--line);
  margin:0;
  align-items:center}
.view-switch:before{
  content:"探索視角";
  font-size:9px;
  color:var(--muted);
  letter-spacing:.1em;
  margin-right:auto}
.view-switch button{
  font-size:11px;
  min-width:51px;
  min-height:36px}
.chronicle-stage{
  padding:12px 18px 0;
  grid-template-rows:123px minmax(0,1fr) 78px}
.chronicle-heading{
  gap:8px;
  align-items:flex-start;
  flex-direction:column;
  justify-content:space-between}
.chronicle-heading .eyebrow{
  font-size:8px}
.chronicle-heading h1{
  font-size:26px;
  margin:6px 0}
.chronicle-heading p{
  font-size:9px}
.headline{
  display:flex;
  align-items:baseline;
  gap:14px;
  text-align:left;
  align-self:auto}
.headline strong{
  font-size:36px;
  white-space:nowrap}
.headline span{
  font-size:9px;
  letter-spacing:0;
  max-width:120px;
  line-height:1.5}
.chronicle-canvas{
  padding-top:12px}
.chronicle-canvas .chart svg{
  height:100%;
  object-fit:contain}
.chronicle-reading{
  gap:0;
  margin-top:6px}
.chronicle-reading>div{
  min-width:0;
  width:100%;
  grid-template-columns:1fr auto;
  row-gap:5px}
.chronicle-reading strong{
  font-size:19px}
.chronicle-reading .eyebrow{
  font-size:8px}
.chronicle-reading>p{
  display:none}
.reference-control{
  font-size:10px}
.reference-control select{
  font-size:16px}
.chart-tools{
  padding:0;
  gap:10px;
  min-height:38px}
.chart-tools>span{
  font-size:9px;
  max-width:170px;
  text-align:right;
  line-height:1.6}
.chart-tools>button{
  font-size:10px;
  min-height:36px;
  white-space:nowrap}
.time-edge{
  padding:12px 17px max(12px,env(safe-area-inset-bottom));
  gap:12px;
  min-height:94px}
.time-edge>[data-action=play]{
  width:36px;
  height:36px;
  min-height:36px}
.year-field{
  min-width:66px}
.year-field select{
  font-size:25px;
  max-width:85px;
  min-height:36px}
.year-field span{
  font-size:8px}
.scrubber{
  padding-bottom:20px}
.year-ticks button{
  font-size:9px;
  padding:0 4px}
.island-stage{
  grid-template-columns:minmax(0,1fr) 146px;
  gap:0;
  padding:0 12px 0 4px}
.island-canvas{
  padding-bottom:6px}
.island-canvas>.chart{
  padding:45px 0 0}
.map-heading{
  top:15px;
  left:13px}
.map-heading .eyebrow{
  font-size:8px}
.map-heading h1{
  font-size:22px;
  line-height:1.35;
  margin:11px 0 4px}
.map-heading p{
  font-size:9px}
.map-watermark{
  left:14px;
  bottom:18px;
  font-size:7px}
.island-inspector{
  padding:18px 0 0 12px;
  min-height:0}
.inspector-head{
  gap:4px}
.inspector-head>.eyebrow{
  font-size:8px;
  letter-spacing:.06em}
.inspector-head button{
  font-size:9px;
  min-height:34px;
  padding:0}
.island-inspector h2{
  font-size:22px;
  letter-spacing:.04em;
  margin-top:11px}
.inspector-number{
  font-size:27px;
  margin:12px 0 6px;
  letter-spacing:-.03em}
.definition{
  font-size:8px;
  line-height:1.8}
.island-insight{
  font-size:10px;
  line-height:1.8;
  margin:12px 0}
.age-strip{
  gap:11px;
  padding:9px 0;
  font-size:8px}
.age-strip b{
  font-size:18px}
.county-list{
  margin-top:13px}
.list-title{
  font-size:8px;
  padding-bottom:5px}
.list-title>span{
  display:none}
.county-list button{
  padding:0;
  gap:7px;
  font-size:10px;
  min-height:38px}
.county-list .rank{
  font-size:8px}
.county-list b{
  font-size:10px;
  white-space:nowrap}
.island-inspector>.text-link{
  font-size:9px;
  min-height:32px;
  margin:0}
.official-link{
  font-size:10px;
  line-height:1.8;
  min-height:60px}
.island .empty-state{
  padding:10px}
.island .empty-state strong{
  font-size:18px}
.island .empty-state p{
  font-size:10px}
.compare-stage{
  padding:12px 16px 0;
  grid-template-rows:80px minmax(0,1fr) 72px}
.compare-top{
  display:block}
.compare-top .eyebrow{
  font-size:8px}
.compare-top h1{
  font-size:26px;
  margin:7px 0}
.compare-top>p{
  font-size:9px}
.comparison{
  grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);
  padding-top:7px}
.comparison-seam{
  border:0;
  gap:16px}
.comparison-seam span:first-child{
  font-size:16px}
.comparison-seam span:last-child{
  font-size:8px;
  letter-spacing:.12em}
.pane-heading{
  gap:4px;
  min-height:78px;
  padding:0;
  align-items:center;
  justify-content:center}
.pane-heading label{
  font-size:10px;
  gap:5px}
.pane-heading select{
  font-size:28px;
  min-width:85px}
.pane-heading strong{
  font-size:16px;
  text-align:center;
  white-space:nowrap}
.comparison-pane>.chart{
  padding:0}
.pane-note{
  font-size:8px;
  min-height:18px}
.compare-reading{
  display:grid;
  grid-template-columns:1fr auto;
  gap:5px}
.compare-reading strong{
  font-size:19px;
  grid-column:1}
.compare-reading>p{
  font-size:9px;
  grid-column:1;
  grid-row:2;
  line-height:1.5}
.compare-reading>.text-link{
  grid-column:2;
  grid-row:1/3;
  font-size:10px}
.comparison .empty-state{
  padding:10px}
.comparison .empty-state strong{
  font-size:17px}
.comparison .empty-state p{
  font-size:10px}
.comparison .empty-state button{
  font-size:10px}
.dialog-head{
  padding:6px 18px}
.dialog-body{
  padding:20px 18px}
.dialog-body h2{
  font-size:25px}
.sources-dialog{
  max-height:90dvh}
.dialog-body p{
  font-size:12px}
}

@media(max-height:680px) and (min-width:651px){
  .atlas{
  grid-template-rows:60px 54px minmax(0,1fr) 80px}
.chronicle-stage{
  grid-template-rows:88px minmax(0,1fr) 62px}
.chronicle-heading h1{
  font-size:28px;
  margin:6px 0}
.headline strong{
  font-size:40px}
.chronicle-canvas{
  padding-top:8px}
.island-inspector{
  padding-top:10px}
.island-insight{
  margin:12px 0}
.inspector-number{
  margin:8px 0}
.compare-stage{
  grid-template-rows:60px minmax(0,1fr) 50px}
.compare-top h1{
  font-size:27px}
.pane-heading{
  min-height:50px}
.pane-heading select{
  font-size:29px}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
  transition:none!important;
  animation:none!important;
  scroll-behavior:auto!important}
}

/* Graph labels use dedicated mobile geometry instead of shrinking desktop artwork. */
.axis-label{
  font-size:16px}
.plot-note{
  font-size:12px}
.age-label{
  font-size:18px}
.pyramid-key{
  font-size:20px}
.pyramid-note{
  font-size:15px}
.map-legend{
  position:absolute;
  bottom:28px;
  right:7%;
  display:flex;
  align-items:center;
  gap:8px;
  font:10px Georgia,serif;
  color:var(--muted)}
.map-legend i{
  display:block;
  width:80px;
  height:4px;
  background:linear-gradient(to right,var(--map-base,#e6e7de),var(--accent))}

@media(max-width:650px){
  .topbar>.brand{
  grid-column:1;
  grid-row:1}
.topbar>.tools{
  grid-column:2;
  grid-row:1}
.topbar>.concepts{
  grid-row:2}
.view-switch button{
  min-height:44px}
.time-edge>[data-action=play]{
  width:44px;
  height:44px;
  min-height:44px}
.year-field select{
  min-height:44px}
.chart-tools>button{
  min-height:44px}
.county-list button{
  min-height:44px}
.island-inspector>.text-link{
  min-height:44px}
.age-label{
  font-size:23px}
.pyramid-key{
  font-size:23px}
.pyramid-note{
  font-size:20px}
.plot-note{
  font-size:11px}
.map-label,.compass{
  font-size:28px}
.map-chart .axis-label{
  display:none}
.map-legend{
  right:4px;
  left:4px;
  bottom:0;
  gap:4px;
  font-size:9px;
  justify-content:center}
.map-legend i{
  width:42px}
.chronicle-canvas .map-legend{
  bottom:10px}
.compare .map-legend{
  bottom:5px;
  left:0;
  right:0;
  font-size:8px}
.compare .map-legend i{
  width:25px}
.year-ticks button{
  min-height:44px;
  top:-29px}
.pyramid-note{
  font-size:19px}
}

@media(max-width:650px){
  .island-stage{
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr) 100px;
  padding:0 16px;
  gap:0}
.island-canvas>.chart{
  padding:42px 0 18px}
.map-heading{
  top:10px;
  left:0}
.map-heading h1{
  display:none}
.map-heading p{
  margin-top:8px;
  font-size:11px}
.map-watermark{
  left:0;
  bottom:26px;
  font-size:8px}
.island-inspector{
  display:grid;
  grid-template-columns:1fr 150px;
  grid-template-rows:40px 52px;
  border-left:0;
  border-top:1px solid var(--line);
  padding:4px 0;
  align-items:center}
.island-inspector>.inspector-head{
  grid-column:2;
  grid-row:1}
.inspector-head .eyebrow{
  font-size:9px}
.inspector-head button{
  min-height:40px;
  padding:0 5px;
  font-size:10px}
.island-inspector h2{
  grid-column:1;
  grid-row:1;
  font-size:20px;
  margin:0}
.inspector-number{
  grid-column:1;
  grid-row:2;
  font-size:30px;
  margin:0}
.island-inspector .age-strip{
  grid-column:2;
  grid-row:2;
  border:0;
  padding:0;
  justify-content:space-between;
  font-size:9px}
.age-strip span{
  gap:4px}
.age-strip b{
  font-size:20px}
.island-inspector>.definition,.island-inspector>.island-insight,.island-inspector>.county-list,.island-inspector>.text-link{
  display:none}
.island-inspector>.official-link{
  grid-column:2;
  grid-row:2;
  min-height:44px;
  margin:0}
.island .map-legend{
  left:auto;
  right:0;
  bottom:2px;
  font-size:10px}
.island .map-legend i{
  width:64px}
}

@media(max-width:650px){
  .compare .chart .axis-label{
  font-size:24px}
.compare .chart .plot-note{
  font-size:14px}
.compare .chart .pyramid-note{
  font-size:19px}
.compare .chart-value{
  font-size:26px}
}

