/* Hallmark · v2.0.0 · redesign: polish · genre: editorial · built: VillageMeow R5 · scope: home, district, village */
/* Critique: One clear lookup, a compact local index, and room to read the published policy. */
/* VillageMeow: page structure, local navigation and working content surfaces. */
html:root body:has([data-vm-r5]){--paper:#f8f5ed;--card:#fffefa;--ink:#193e35;--text:#2e443c;--muted:#64736b;--line:#d9dfd4;--orange:#a7472b;--green:#1d5144;--mint:#e8eee2;font-size:16px;line-height:1.8;background:var(--paper)}
html:root body:has([data-vm-r5]) *,html:root body:has([data-vm-r5]) *::before,html:root body:has([data-vm-r5]) *::after{box-sizing:border-box}
html:root body:has([data-vm-r5]) main#main{display:block;position:relative;max-width:1456px;padding:0 40px 56px;min-height:65vh;isolation:auto}
html:root body:has([data-vm-r5]) main#main::before,html:root body:has([data-vm-r5]) main#main::after{content:none}
html:root body:has([data-vm-r5])>header{max-width:1456px;min-height:88px;padding:12px 40px;gap:24px;border-bottom:1px solid var(--line);background:var(--paper);flex-wrap:wrap}
html:root body:has([data-vm-r5])>header .brand{font-size:28px;letter-spacing:-.06em;display:inline-flex;align-items:baseline;gap:10px}
html:root body:has([data-vm-r5])>header .brand small{font-size:10px;letter-spacing:.08em}
html:root body:has([data-vm-r5]) #r5-navigation nav{display:flex;gap:24px;width:auto;flex-wrap:wrap;font-size:14px}
html:root body:has([data-vm-r5]) #r5-navigation a{padding:8px 0;border-bottom:2px solid transparent}
html:root body:has([data-vm-r5]) #r5-navigation a[aria-current=page]{border-color:var(--orange);color:var(--orange)}
html:root body:has([data-vm-r5]) [data-r5-menu]{display:none;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:50px;min-height:44px;padding:10px 18px;cursor:pointer}
html:root body:has([data-vm-r5]) .r5-skip-tools{width:100%;display:flex;gap:24px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:8px;font-size:12px}
html:root body:has([data-vm-r5])>footer{max-width:1456px;padding:32px 40px;color:var(--muted);font-size:13px;background:#edf0e6;border-top:1px solid #cdd7ca}
.r5-page{--r5-space:32px;min-width:0}
.r5-page [hidden]{display:none!important}
.r5-layout{display:grid;grid-template-columns:184px minmax(0,1fr);gap:44px;align-items:start;margin-top:32px}
.r5-rail{position:sticky;top:24px;max-height:calc(100dvh - 48px);overflow:auto;padding:6px 0 24px;font-size:13px;scrollbar-width:thin}
.r5-rail nav{display:block}
.r5-rail p,.r5-rail strong{display:block;font-weight:800;color:var(--ink);font-size:12px;letter-spacing:.05em}
.r5-rail a{display:block;padding:10px 12px 10px 0;line-height:1.6;text-decoration:none;border-bottom:1px solid #e3e6dc;overflow-wrap:anywhere}
.r5-rail a:hover,.r5-rail a[aria-current=true]{color:var(--orange)}
.r5-rail a[aria-current=true]{border-left:3px solid var(--orange);padding-left:10px;background:#f3ebdd}
.r5-rail>nav+nav,.r5-rail>div+nav{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.r5-body,.r5-body>*{min-width:0}
.r5-body{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-content:start}
.r5-body>.crumbs{margin:0}
html:root main .r5-page h1{font:600 clamp(32px,3.5vw,51px)/1.4 var(--vm-serif);letter-spacing:-.035em;margin:0 0 20px;color:var(--ink)}
html:root main .r5-page h2{font:650 clamp(23px,2.2vw,31px)/1.45 var(--vm-serif);letter-spacing:-.02em;margin:0 0 20px;color:var(--ink)}
html:root main .r5-page h3{font:650 21px/1.5 var(--vm-serif);letter-spacing:-.015em;margin:0 0 12px}
html:root main .r5-page p{margin:0 0 16px;line-height:1.9}
html:root main .r5-page .crumbs{font-size:12px;line-height:1.9;margin:0 0 8px;color:var(--muted)}
.r5-intro{position:relative;padding:28px 0 32px;border-bottom:1px solid var(--line);min-width:0}
.r5-intro>.eyebrow{margin-bottom:12px}
.r5-intro p:last-child{margin-bottom:0}
.r5-block{min-width:0;position:relative}
.r5-section{padding:28px;background:var(--card);border:1px solid var(--line);border-radius:18px;min-width:0}
.r5-section+.r5-section{margin-top:24px}
.r5-section:empty{display:none}
.r5-section:has(> :is(.official-card,.village-hero,.role-page-hero,.role-tool,.knowledge-section,.tool-section,.official-links,.tool-page,.home-hero,.role-section,.task-section,.trust-section,.district-map)){padding:0;border:0;background:transparent}
.r5-anchor{display:block;scroll-margin-top:24px}
.r5-next h2{font:600 25px/1.5 var(--vm-serif);margin:4px 0;color:#fff}
.r5-next .r5-kicker{font-size:12px;opacity:.8;margin:0}
.r5-next-links{display:flex;flex-wrap:wrap;gap:10px}
.r5-section-anchor{scroll-margin-top:24px;display:block}
.r5-next{margin-top:40px;padding:28px 32px;background:var(--ink);color:#fff;border-radius:18px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.r5-next a{color:#fff!important;display:inline-flex;min-height:44px;align-items:center;padding:8px 12px;border:1px solid #ffffff65;border-radius:8px;text-decoration:none;font-size:14px}
.r5-next strong,.r5-next p{color:#fff!important}
html:root main .r5-page .button,html:root main .r5-page button.button{background:var(--orange);color:#fff;min-height:48px;padding:12px 22px;border-radius:8px;box-shadow:none;font-size:15px}
html:root main .r5-page button,html:root main .r5-page input,html:root main .r5-page select,html:root main .r5-page textarea{font-family:inherit;max-width:100%;min-width:0}
html:root main .r5-page input:not([type=checkbox]):not([type=radio]),html:root main .r5-page select,html:root main .r5-page textarea{background:#fffefa;color:var(--ink);border:1px solid #a9baac;border-radius:8px;min-height:48px;padding:11px 13px;font-size:16px;line-height:1.5;width:100%}
html:root main .r5-page textarea{min-height:126px;resize:vertical}
.r5-page :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #a7472b;outline-offset:4px}
.r5-page a{overflow-wrap:anywhere}
.r5-page summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:700}
/* The directory is a usable local index, with a separate filter/results header. */
.r5-directory{padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--card);counter-reset:r5-item}
.r5-directory>label,.r5-directory label:has([data-r5-filter]){display:block;font-size:13px;font-weight:750;margin-bottom:18px;color:var(--ink)}
.r5-directory [data-r5-filter]{display:block;margin-top:8px;max-width:520px}
.r5-directory-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 16px;margin-bottom:24px}
.r5-directory-toolbar label{grid-column:1/-1;font-weight:750;font-size:13px}
.r5-directory-toolbar [data-r5-filter]{margin:0;max-width:none}
.r5-directory-toolbar [data-r5-count]{grid-column:1/-1;margin:0}
.r5-article-index .r5-intro{padding:28px 36% 28px 0;min-height:260px;background:linear-gradient(90deg,var(--paper) 60%,#f8f5ed00),var(--vm-street) right center/44% auto no-repeat;border:0}
.r5-article-index .r5-intro::after{content:'原創情境插畫・非實際村里照片';position:absolute;right:12px;bottom:12px;font:400 10px/1.5 sans-serif;background:#fffefae6;color:#3c5545;padding:4px 7px;border-radius:4px}
.r5-article .r5-rail::after,.r5-reference .r5-rail::after{content:'原創鄰里生活情境插畫';display:flex;align-items:flex-end;justify-content:center;height:168px;padding:8px;margin-top:26px;background:var(--vm-neighbors) 58% center/cover no-repeat;border-radius:12px;font-size:10px;color:var(--ink);text-shadow:0 0 5px #fff,0 0 8px #fff}
.r5-page :is(.empty,.unavailable){padding:22px;border:1px dashed #b9bda8;border-radius:12px;background:#f3f0e5;color:#5d6552;font-size:15px;line-height:1.9}
html:root main .r5-page .village-hero code{color:var(--ink);background:#dfebd9;border-radius:4px;padding:2px 5px}
.r5-directory-toolbar button{min-height:48px;border:1px solid var(--line);border-radius:8px;background:var(--card);padding:10px 16px;color:var(--ink);cursor:pointer}
.r5-category-filters{display:none;gap:8px;flex-wrap:wrap;margin:4px 0 28px}
.r5-ready .r5-category-filters{display:flex}
.r5-category-filters button{min-height:42px;padding:9px 15px;border:1px solid #cbd7c3;border-radius:50px;background:#f6f7ef;color:var(--ink);font-size:13px;cursor:pointer}
.r5-category-filters button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.r5-article-index .r5-flat-library{padding-top:0}
.r5-article-index .r5-flat-library>h2{margin-bottom:16px}
.r5-page li:has(>[data-r5-item][hidden]){display:none}
.r5-directory [data-r5-count]{display:block;font-size:12px;color:var(--muted);margin:12px 0 24px}
.r5-directory [data-r5-empty]{padding:24px;background:#f4eee1;border-radius:8px}
html:root main .r5-page .grid,html:root main .r5-page .content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.r5-directory [data-r5-item]{min-width:0;counter-increment:r5-item;position:relative}
html:root main .r5-page .card,html:root main .r5-page .content-card{height:100%;min-height:112px;padding:23px 20px;background:#f6f7ef;border:1px solid #dce3d6;border-radius:12px;color:var(--ink);font-size:19px;box-shadow:none;display:flex;flex-direction:column;justify-content:center;gap:8px;text-decoration:none}
.r5-directory [data-r5-item]>.card::after{content:'↗';position:absolute;right:14px;top:12px;color:var(--orange);font:500 16px/1 sans-serif}
html:root main .r5-page .card:hover,html:root main .r5-page .content-card:hover{border-color:var(--green);background:#edf2e6}
html:root main .r5-page .card span,html:root main .r5-page .content-card small{font-size:12px;color:var(--muted);font-weight:400;line-height:1.9}
html:root main .r5-page .village-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));columns:auto;gap:0 24px;padding:0;margin:0;list-style:none}
html:root main .r5-page .village-list li{padding:16px 4px;border-bottom:1px solid var(--line);font-size:17px;display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}
html:root main .r5-page .village-list li a{font-weight:750;flex:1;text-decoration:none}
html:root main .r5-page .village-list li>span{font-size:12px}
.r5-country .r5-intro{padding:40px 42% 40px 32px;min-height:330px;background:linear-gradient(90deg,#eaf0e1 30%,#eaf0e100 75%),var(--vm-island) right center/56% auto no-repeat;border:1px solid var(--line);border-radius:22px}
.r5-county .r5-intro{border-left:6px solid var(--orange);padding-left:26px}
.r5-district .r5-intro{display:block;border-bottom:3px solid var(--ink)}
/* Village data is a service dossier. Official geometry stays in its own module. */
html:root main .r5-page .village-hero{padding:28px 32px;min-height:0;background:var(--ink);color:#edf3e6;border:0;border-radius:20px;margin:0}
html:root main .r5-page .village-hero h1{max-width:900px;color:#fff;font-size:clamp(31px,3.1vw,46px)}
html:root main .r5-page .village-hero p,html:root main .r5-page .village-hero .eyebrow{color:#dfebd9}
html:root main .r5-page .village-hero .fav-btn{background:#fffefa;color:var(--ink);border-radius:8px;min-height:44px;border:1px solid #fff;float:none;margin:0 0 16px}
html:root main .r5-page .village-hero::after,html:root main .r5-page .content-hero::after,html:root main .r5-page .longform::before,html:root main .r5-page .tool-page::after{content:none}
html:root main .r5-page .two-col{grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr);gap:24px}
html:root main .r5-page .two-col>div{display:grid;gap:24px;align-content:start}
html:root main .r5-page .two-col>div>section,html:root main .r5-page .two-col>aside{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--card);margin:0}
html:root main .r5-page .two-col>aside h2{font-size:22px}
html:root main .r5-page .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}
html:root main .r5-page .stats>div{padding:18px 12px;background:#e7edde;border-radius:10px;min-width:0}
html:root main .r5-page .stats b{font:500 clamp(24px,2.2vw,35px)/1.3 Georgia,serif;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
html:root main .r5-page .stats span{font-size:12px;margin-top:6px}
html:root main .r5-page .official-card{padding:28px;border:1px solid var(--line);border-top:4px solid var(--green);border-radius:16px;background:var(--card);margin:0}
html:root main .r5-page .election-card{border-top-color:#b68b36;background:#faf3df}
html:root main .r5-page .official-details{display:grid;grid-template-columns:110px minmax(0,1fr);gap:0;margin:0 0 20px;font-size:16px}
html:root main .r5-page .official-details dt,html:root main .r5-page .official-details dd{margin:0;padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
html:root main .r5-page .official-details dt{font-size:13px;color:var(--muted);font-weight:500}
html:root main .r5-page .official-details dd{font-weight:650;overflow-wrap:anywhere}
html:root main .r5-page .chief-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}
html:root main .r5-page .chief-table{width:100%;border-collapse:collapse;font-size:14px}
html:root main .r5-page .chief-table th{background:var(--ink);color:#fff;white-space:normal;padding:14px;text-align:left}
html:root main .r5-page .chief-table td{padding:14px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
html:root main .r5-page .chief-table tr:nth-child(even){background:#f0f3e9}
html:root main .r5-page .district-map{padding:24px;background:var(--card);border:1px solid var(--line);border-radius:18px}
html:root main .r5-page .map{margin:0}
html:root main .r5-page .map svg{width:100%;max-height:390px;background:#eaf0e6;border-radius:8px}
html:root main .r5-page .district-map img{max-height:550px;object-fit:contain;width:100%;background:#edf2e6;border-radius:8px}
html:root main .r5-page .map figcaption,html:root main .r5-page .source-note{font-size:12px;line-height:1.8;margin-top:10px}
/* Role workspaces: all knowledge, forms and results receive their own structure. */
html:root main .r5-page .role-switcher{display:flex;flex-wrap:wrap;gap:6px;padding:5px;width:fit-content;border:1px solid var(--line);border-radius:50px;background:var(--card);margin:0}
html:root main .r5-page .role-switcher a{padding:8px 18px;font-size:13px;min-height:42px;display:flex;align-items:center}
html:root main .r5-page .role-page-hero{padding:36px 44% 36px 32px;border:0;min-height:330px;border-radius:18px;background:linear-gradient(90deg,#f0ecdc 34%,#f0ecdc00 75%),var(--vm-neighbors) right center/62% auto no-repeat;margin:0}
html:root main .r5-page .role-page-hero.chief{background-image:linear-gradient(90deg,#e7eedf 34%,#e7eedf00 75%),var(--vm-map);border:0}
html:root main .r5-page .role-page-hero.candidate{background-color:#f4ecdb;border-radius:18px;border:0;box-shadow:none}
html:root main .r5-page .role-page-hero.candidate::before{content:none}
html:root main .r5-page .role-page-hero h1{font-size:clamp(30px,3vw,43px)}
html:root main .r5-page .role-page-hero>p:last-child{font-size:15px;line-height:1.9}
html:root main .r5-page .role-library-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
html:root main .r5-page .role-library-links a{padding:24px;background:var(--card);border:1px solid var(--line);border-radius:12px;text-decoration:none}
html:root main .r5-page .role-library-links strong{font-size:21px}
html:root main .r5-page .role-tool{background:#e7edde;padding:28px;border-radius:18px;margin:0}
html:root main .r5-page .role-tool .searchbox{background:transparent;border:0;padding:0;margin:20px 0 0}
html:root main .r5-page .knowledge-section,html:root main .r5-page .tool-section,html:root main .r5-page .official-links{margin:0;padding:28px;background:var(--card);border:1px solid var(--line);border-radius:18px}
html:root main .r5-page .knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;counter-reset:knowledge}
html:root main .r5-page .knowledge-card{position:relative;counter-increment:knowledge;border:0;border-top:1px solid var(--line);border-radius:0;padding:24px 0 18px 36px;background:transparent;box-shadow:none}
html:root main .r5-page .knowledge-card::before{content:counter(knowledge,decimal-leading-zero);position:absolute;top:26px;left:0;color:var(--orange);font:500 17px/1.4 Georgia,serif}
html:root main .r5-page .knowledge-card h3{font-size:21px}
html:root main .r5-page .knowledge-card p{font-size:14px}
html:root main .r5-page .local-tool,html:root main .r5-page .calculator{background:transparent;border:0;border-radius:0;padding:0;margin-top:20px}
.r5-input-panel{padding:24px;background:#f4f5ed;border:1px solid var(--line);border-radius:12px;min-width:0}
.r5-result-panel{padding:24px;background:#e7eee0;border-left:4px solid var(--green);border-radius:12px;min-width:0;align-self:start;margin-top:24px}
.r5-result-panel::before{content:'整理結果';display:block;font-size:12px;letter-spacing:.08em;font-weight:750;margin-bottom:12px;color:var(--ink)}
html:root main .r5-page .tool-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
html:root main .r5-page .tool-fields>.wide{grid-column:1/-1}
html:root main .r5-page form label{display:block;font-size:14px;font-weight:700;line-height:1.7}
html:root main .r5-page form label>input,html:root main .r5-page form label>select,html:root main .r5-page form label>textarea{margin-top:8px}
html:root main .r5-page .tool-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 0}
html:root main .r5-page .quiet-button{min-height:44px;padding:9px 14px;border:1px solid #a7b7a5;border-radius:7px;background:var(--card);font-size:14px;color:var(--ink);cursor:pointer}
html:root main .r5-page .tool-output,html:root main .r5-page output{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;border:0;background:transparent;padding:0;margin:0;min-height:40px}
.r5-result-panel:not(:has([data-r5-result-ready])):not(:has(:is(.tool-output,output,#address-results,#search-results,#locate-result):not(:empty)))::after{content:'填寫上方欄位後，按下產生或計算即可查看。';font-size:14px;color:var(--muted);display:block;line-height:1.9}
.r5-result-panel:has(:is(#address-results,#search-results,#locate-result))::before{content:'查詢結果'}
.r5-result-panel:has(#address-results):not(:has(#address-results:not(:empty)))::after{content:'輸入完整地址並查詢，即可查看辨識到的行政區或村里。'}
.r5-result-panel:has(#search-results):not(:has(#search-results:not(:empty)))::after{content:'輸入村里名稱，這裡會顯示符合的項目。'}
.r5-result-panel:has(#locate-result):not(:has(#locate-result:not(:empty)))::after{content:'按下上方定位按鈕後，結果會顯示在這裡。'}
.r5-page.r5-locate #locate-result:empty::before{content:none}
.r5-result-panel:has([data-r5-result-ready]){border-left-color:var(--orange)}
@media(min-width:1200px){html:root main .r5-page :is(.local-tool,.calculator){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:24px;align-items:start}html:root main .r5-page :is(.local-tool,.calculator)>.r5-result-panel{grid-column:auto;margin:0;position:sticky;top:24px}html:root main .r5-page .calculator>.r5-input-panel{display:grid;grid-template-columns:1fr;gap:20px}}
html:root main .r5-page .tool-disclaimer,html:root main .r5-page .role-boundary,html:root main .r5-page .notice{padding:18px 22px;background:#f0ebdb;border:1px solid #ded8c1;border-radius:10px;color:#4b5c49;font-size:13px;line-height:1.9;margin:0}
html:root main .r5-page .tool-page{background:none;padding:28px;border:1px solid var(--line);border-radius:18px;background-color:var(--card);max-width:none}
html:root main .r5-page .tool-page>h1,html:root main .r5-page .tool-page>p,html:root main .r5-page .tool-page>.eyebrow{max-width:100%;background:none}
html:root main .r5-page .calculator{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
html:root main .r5-page .calculator .r5-input-panel{display:grid;gap:20px}
html:root main .r5-page .calculator>.button{align-self:end;justify-self:start}
html:root main .r5-page .calculator .r5-result-panel{grid-column:1/-1;margin:0}
html:root main .r5-page .calculator+aside{margin-top:24px}
/* Editorial pages: a sectional library and a reading layout, not one long stack. */
html:root main .r5-page .content-hero{padding:0;min-height:0;background:none;border:0;border-radius:0;margin:0}
html:root main .r5-page .topic-cluster{margin:0;display:block}
.r5-collection{margin-bottom:36px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.r5-article-index .r5-collection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;padding:24px 0;background:transparent;border:0;border-radius:0;grid-column:1/-1}
.r5-article-index .r5-collection>h2,.r5-article-index .r5-collection>.r5-anchor{grid-column:1/-1}
.r5-article-index .r5-collection+.r5-collection{margin-top:24px;border-top:1px solid var(--line)}
.r5-article-index .r5-directory>.content-grid{display:block}
.r5-article-index .r5-collection>[data-r5-item]{min-width:0}
.r5-article-index .r5-collection .content-card{min-height:170px;background:#f3f5eb;justify-content:flex-start}
.r5-article-index .r5-collection .content-card>span{color:var(--orange);font-size:11px}
.r5-article-index .r5-collection .content-card>strong{font-size:20px;line-height:1.6}
.r5-collection>h2{padding:0 0 16px;border-bottom:2px solid var(--ink)}
html:root main .r5-page .topic-cluster-card{padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;display:block}
html:root main .r5-page .topic-cluster-card h3{font-size:23px;margin-bottom:10px}
html:root main .r5-page .topic-cluster-card p{font-size:14px;color:var(--muted);max-width:70ch}
html:root main .r5-page .topic-cluster-card a{font-weight:750;text-decoration:none}
html:root main .r5-page .longform{max-width:none;margin:0;counter-reset:chapter}
html:root main .r5-page .longform>.r5-intro{padding:32px 36px 30px;background:var(--card);border:1px solid var(--line);border-top:5px solid var(--orange);border-radius:16px;margin-bottom:32px}
html:root main .r5-page .longform>.r5-intro h1{font-size:clamp(31px,3.2vw,46px)}
html:root main .r5-page .longform>.r5-section{counter-increment:chapter;padding:32px 36px;border-radius:12px;margin-bottom:24px}
html:root main .r5-page .longform>.r5-section>section>h2::before,html:root main .r5-page .longform>.r5-section>h2::before{content:counter(chapter,decimal-leading-zero);display:block;font:500 16px/1.6 Georgia,serif;letter-spacing:.05em;color:var(--orange);margin-bottom:10px}
html:root main .r5-page .longform p,html:root main .r5-page .longform li{font-size:16px;line-height:2.05;max-width:74ch}
html:root main .r5-page .longform ul,html:root main .r5-page .longform ol{padding-left:24px}
html:root main .r5-page .longform a{text-decoration-thickness:1px}
html:root main .r5-page .article-meta{font-size:12px!important;color:var(--muted)}
html:root main .r5-page .related-cluster,html:root main .r5-page .callout{background:#ecf0e2;padding:24px;border:1px solid var(--line);border-radius:12px}
html:root main .r5-page .sources,html:root main .r5-page .source-list{display:grid;grid-template-columns:1fr;gap:0;margin:0;padding:0;list-style:none}
html:root main .r5-page .sources li,html:root main .r5-page .source-list li{padding:22px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
html:root main .r5-page .source-list a{display:block;font-weight:750;text-decoration:none}
html:root main .r5-page .source-list small{display:block;margin-top:8px;font-size:12px;color:var(--muted)}
/* Home: each lower band has its own role, rhythm, and illustrated cues. */
.r5-home .r5-layout{grid-template-columns:1fr;gap:0}
.r5-home .r5-rail{position:static;max-height:none;display:flex;flex-wrap:wrap;gap:8px 20px;padding:0 0 16px;overflow:visible}
.r5-home .r5-rail nav{display:flex;gap:20px;flex-wrap:wrap}
.r5-home .r5-rail a{padding:4px 0;border:0}
.r5-home .r5-rail>nav+nav{margin:0;padding:0;border:0}
html:root main .r5-page .home-hero{padding:24px 0 0;min-height:0;background-size:58% 570px;background-position:right top;display:block}
html:root main .r5-page .home-hero .hero-copy{width:60%;max-width:760px}
html:root main .r5-page .home-hero h1{font-size:clamp(40px,4.2vw,62px)}
html:root main .r5-page .home-hero .lead{font-size:16px;line-height:2;max-width:570px}
html:root main .r5-page .home-hero::after{top:515px;bottom:auto}
html:root main .r5-page .home-hero .coverage-card{margin-top:40px;border-radius:0;padding:24px 0;border-width:1px 0;background:transparent}
html:root main .r5-page .home-hero .addressbox{background:var(--ink);border-radius:12px}
html:root main .r5-page .home-hero .addressbox>.r5-input-panel{background:transparent;border:0;padding:0}
html:root main .r5-page .home-hero .addressbox .r5-result-panel{background:#fffefa;color:var(--ink);border:0;padding:18px}
html:root main .r5-page .role-section,html:root main .r5-page .task-section,html:root main .r5-page .trust-section{padding:40px 0;margin:0;border-top:0}
html:root main .r5-page .role-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
html:root main .r5-page .role-card{min-height:350px;padding:24px;border-radius:14px;border:1px solid var(--line);background:var(--card);position:relative}
html:root main .r5-page .role-card::before{content:'';display:block;height:120px;margin:-24px -24px 18px;background:var(--vm-neighbors) center 58%/cover no-repeat;border-radius:14px 14px 0 0}
html:root main .r5-page .role-card.chief::before{background-image:var(--vm-map)}
html:root main .r5-page .role-card.candidate::before{background-image:var(--vm-street)}
html:root main .r5-page .role-card .role-label{margin:0}
html:root main .r5-page .role-card .role-number{position:absolute;top:16px;right:16px;border-radius:50px;padding:4px 9px;background:var(--card);font-size:12px;color:var(--ink)}
html:root main .r5-page .role-card h3{margin:8px 0 12px}
html:root main .r5-page .task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
html:root main .r5-page .task-grid a{padding:24px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;min-height:130px}
html:root main .r5-page .task-grid a:hover{transform:none}
html:root main .r5-page .trust-section{padding:32px;background:#e5ecdd;border-radius:18px;gap:32px}
html:root main .r5-page .trust-points{gap:16px}
html:root main .r5-page .trust-points article{padding:0 0 16px;border-radius:0;border-bottom:1px solid #c8d3bd;background:transparent}
.r5-locate .r5-intro{padding:36px 42% 36px 32px;background:linear-gradient(90deg,#eaf0e2 30%,#eaf0e200),var(--vm-map) right center/60% auto no-repeat;border-radius:18px;min-height:310px}
.r5-locate #locate-result{border:1px solid var(--line);border-radius:14px;min-height:100px;background:var(--card);padding:24px;white-space:normal}
.r5-locate #locate-result:empty::before{content:'定位結果會顯示在這裡。';color:var(--muted);font-size:14px}
.r5-reference .r5-section{max-width:100%;padding:32px}
/* Existing account UI remains owned by the shared account service. */
body:has([data-vm-r5]) .meow-auth-trigger{border-radius:9px;min-height:44px;font-size:13px}
body:has([data-vm-r5]) .meowacct-chip{max-width:calc(100vw - 24px);background:#fffefa;color:var(--ink);border:1px solid #c7d2c0;border-radius:12px;box-shadow:0 4px 16px #193e351a;padding:7px 12px;gap:12px;flex-wrap:wrap}
body:has([data-vm-r5]) .meowacct-chip :is(button,a){min-height:36px;display:inline-flex;align-items:center;font-size:12px;color:var(--ink);background:transparent;border-radius:6px}
body:has([data-vm-r5]) .meowacct-favpanel{width:min(380px,calc(100vw - 24px));max-height:65dvh;padding:24px 22px;background:#fffefa;color:var(--ink);border:1px solid #c4d1bd;border-radius:16px;box-shadow:0 12px 40px #193e3526;line-height:1.8}
body:has([data-vm-r5]) .meowacct-favpanel h2{font:650 23px/1.5 var(--vm-serif);padding-right:40px;margin-bottom:18px;color:var(--ink)}
body:has([data-vm-r5]) .meowacct-favpanel li{padding:14px 0;gap:12px;border-top:1px solid var(--line)}
body:has([data-vm-r5]) .meowacct-favpanel li a{color:var(--ink);font-size:14px;word-break:normal;overflow-wrap:anywhere}
body:has([data-vm-r5]) .meowacct-favpanel button{min-height:40px;min-width:44px;padding:8px;color:var(--orange);border:1px solid var(--line);border-radius:7px;background:#fffefa;font-size:12px;cursor:pointer}
body:has([data-vm-r5]) .meowacct-favpanel p{font-size:13px;color:var(--muted)}
.r5-toc-toggle{display:none;min-height:44px;border:0;padding:4px 0;color:var(--ink);background:none;font-family:inherit;font-size:13px;font-weight:750;line-height:1.5;text-align:left;cursor:pointer;width:100%}
body:has([data-vm-r5]) .meowacct-favpanel .r5-favorites-close{position:absolute;right:14px;top:14px;max-width:100px}
.r5-rail .r5-toc a>span{display:inline-block;min-width:25px;color:var(--orange);font-variant-numeric:tabular-nums}
@media(max-width:780px){.r5-ready .r5-toc-toggle{display:flex;justify-content:space-between;align-items:center}.r5-ready .r5-toc-toggle::after{content:'＋';font-size:18px}.r5-ready .r5-toc-toggle[aria-expanded=true]::after{content:'−'}.r5-ready .r5-rail[data-r5-toc-closed] nav{display:none}.r5-home .r5-rail{display:none}}
@media(min-width:1400px){.r5-layout{grid-template-columns:196px minmax(0,1fr);gap:52px}.r5-body{gap:32px}}
@media(max-width:1050px){.r5-layout{grid-template-columns:150px minmax(0,1fr);gap:26px}html:root body:has([data-vm-r5]) main#main{padding-inline:24px}html:root body:has([data-vm-r5])>header,html:root body:has([data-vm-r5])>footer{padding-inline:24px}.r5-section,.r5-directory{padding:22px}html:root main .r5-page .grid,html:root main .r5-page .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html:root main .r5-page .stats{grid-template-columns:repeat(2,minmax(0,1fr))}html:root main .r5-page .two-col{grid-template-columns:1fr}html:root main .r5-page .role-page-hero{padding-right:38%;background-size:66% auto}html:root main .r5-page .role-page-hero h1{font-size:34px}}
@media(max-width:780px){.r5-layout{grid-template-columns:1fr;gap:20px;margin-top:20px}.r5-rail{position:static;max-height:none;overflow:visible;border:1px solid var(--line);background:var(--card);border-radius:12px;padding:14px 18px}.r5-rail nav{display:flex;flex-wrap:wrap;gap:0 18px}.r5-rail a{font-size:12px;padding:9px 0}.r5-rail>nav+nav{margin-top:12px;padding-top:10px}.r5-body{gap:22px}html:root main .r5-page .longform>.r5-section,html:root main .r5-page .longform>.r5-intro{padding:26px}html:root main .r5-page .role-grid{grid-template-columns:1fr}.r5-home .r5-rail{display:none}html:root main .r5-page .home-hero .hero-copy{width:75%}html:root main .r5-page .role-card{min-height:0;padding-left:190px}html:root main .r5-page .role-card::before{position:absolute;left:24px;top:24px;width:140px;height:160px;margin:0;border-radius:10px}html:root main .r5-page .role-card .role-number{top:12px;right:12px}}
@media(max-width:600px){html:root body:has([data-vm-r5]) main#main{padding:0 16px 36px}html:root body:has([data-vm-r5])>header{padding:16px;min-height:78px;gap:12px;align-items:center}html:root body:has([data-vm-r5])>header .brand{font-size:25px}html:root body:has([data-vm-r5])>footer{padding:26px 16px}html:root body:has([data-vm-r5]) #r5-navigation{width:100%}html:root body:has([data-vm-r5]) #r5-navigation nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;font-size:13px}html:root body:has([data-vm-r5]) .r5-skip-tools{gap:6px 16px}.r5-ready [data-r5-menu]{display:inline-flex!important;margin-left:auto}.r5-ready #r5-navigation[data-r5-closed]{display:none}.r5-layout{margin-top:16px;gap:18px}.r5-rail{padding:12px 15px}.r5-rail nav{gap:0 14px}.r5-body{gap:20px}.r5-section,.r5-directory{padding:20px 17px;border-radius:12px}.r5-intro{padding:16px 0 22px}.r5-country .r5-intro,.r5-locate .r5-intro{padding:24px 20px 210px;min-height:0;background-position:center,bottom center;background-size:auto,100% auto;background-image:linear-gradient(180deg,#eaf0e2 35%,#eaf0e200 70%),var(--vm-island)}.r5-locate .r5-intro{background-image:linear-gradient(180deg,#eaf0e2 35%,#eaf0e200 70%),var(--vm-map)}html:root main .r5-page h1{font-size:31px;margin-bottom:16px}html:root main .r5-page h2{font-size:25px;margin-bottom:18px}html:root main .r5-page h3{font-size:21px}html:root main .r5-page .village-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}html:root main .r5-page .village-list li{font-size:16px;padding:14px 0;display:block}html:root main .r5-page .village-list li span{display:block;margin-top:4px}html:root main .r5-page .card,html:root main .r5-page .content-card{min-height:112px;padding:20px 14px;font-size:18px}html:root main .r5-page .grid,html:root main .r5-page .content-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}html:root main .r5-page .official-card,html:root main .r5-page .two-col>div>section,html:root main .r5-page .two-col>aside,html:root main .r5-page .district-map,html:root main .r5-page .tool-page{padding:20px 17px}html:root main .r5-page .official-details{grid-template-columns:80px minmax(0,1fr);font-size:15px}html:root main .r5-page .village-hero{padding:25px 20px}html:root main .r5-page .village-hero h1{font-size:31px}html:root main .r5-page .stats{gap:9px}html:root main .r5-page .stats>div{padding:16px 12px}html:root main .r5-page .stats b{font-size:29px}html:root main .r5-page .role-page-hero,html:root main .r5-page .role-page-hero.chief,html:root main .r5-page .role-page-hero.candidate{padding:25px 20px 0;min-height:0;background-image:none;border:0}html:root main .r5-page .role-page-hero::after{content:'原創情境插畫・非實際村里照片或官方里界';display:flex;align-items:flex-end;justify-content:flex-end;padding:12px;height:210px;margin:20px -20px 0;background:var(--vm-neighbors) center/cover no-repeat;border-radius:0 0 18px 18px;font-size:10px}html:root main .r5-page .role-page-hero.chief::after{background-image:var(--vm-map)}html:root main .r5-page .role-page-hero h1{font-size:32px}html:root main .r5-page .role-library-links{grid-template-columns:1fr;gap:12px}html:root main .r5-page .role-library-links a{padding:21px}html:root main .r5-page .knowledge-section,html:root main .r5-page .tool-section,html:root main .r5-page .official-links,html:root main .r5-page .role-tool{padding:22px 17px;border-radius:12px}html:root main .r5-page .knowledge-grid{grid-template-columns:1fr}html:root main .r5-page .tool-fields{grid-template-columns:1fr;gap:20px}html:root main .r5-page .tool-fields>.wide{grid-column:auto}.r5-input-panel,.r5-result-panel{padding:20px 16px}.r5-result-panel{margin-top:20px}html:root main .r5-page .calculator{grid-template-columns:1fr;gap:18px}html:root main .r5-page .longform>.r5-intro,html:root main .r5-page .longform>.r5-section{padding:23px 19px}html:root main .r5-page .longform>.r5-intro h1{font-size:30px}html:root main .r5-page .longform p,html:root main .r5-page .longform li{font-size:16px;line-height:2}html:root main .r5-page .topic-cluster-card h3{font-size:22px}.r5-next{padding:22px 18px;margin-top:28px;display:block}.r5-next a{margin:8px 8px 0 0}html:root main .r5-page .home-hero{background-image:none;padding-top:8px}html:root main .r5-page .home-hero .hero-copy{width:100%}html:root main .r5-page .home-hero .hero-copy::before{height:230px}html:root main .r5-page .home-hero h1{font-size:38px}html:root main .r5-page .home-hero .coverage-card{display:block;margin-top:24px;padding:22px 0}html:root main .r5-page .coverage-card>strong{margin:12px 0}html:root main .r5-page .coverage-card dl{margin:16px 0}html:root main .r5-page .role-card{padding:24px 20px}html:root main .r5-page .role-card::before{position:static;height:150px;width:auto;margin:-24px -20px 18px;border-radius:14px 14px 0 0}html:root main .r5-page .task-grid{grid-template-columns:1fr}html:root main .r5-page .role-section,html:root main .r5-page .task-section{padding:24px 0}html:root main .r5-page .trust-section{display:block;padding:24px 20px}html:root main .r5-page .trust-points{grid-template-columns:1fr;margin-top:24px}.r5-reference .r5-section{padding:24px 19px}}
@media(prefers-reduced-motion:reduce){html:has([data-vm-r5]){scroll-behavior:auto}.r5-page *{animation:none!important;transition:none!important}}
@media(min-width:1200px){html:root main .r5-page .calculator{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr)}html:root main .r5-page .calculator>.r5-input-panel{grid-column:auto;display:grid;grid-template-columns:1fr}html:root main .r5-page .calculator>.r5-result-panel{grid-column:auto;margin:0;position:sticky;top:24px}}
@media(max-width:600px){html:root main .r5-page .home-hero h1{font-size:clamp(32px,9.2vw,38px)}html:root body:has([data-vm-r5])>header{flex-direction:row;justify-content:space-between}html:root body:has([data-vm-r5])>header .brand small{font-size:9px;letter-spacing:.02em}html:root body:has([data-vm-r5]) [data-r5-menu]{padding:10px 14px}}
@media(max-width:780px){.r5-article .r5-rail::after,.r5-reference .r5-rail::after{display:none}.r5-article-index .r5-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){html:root main .r5-tool-index :is(.grid,.content-grid){grid-template-columns:1fr}html:root main .r5-tool-index .content-card{min-height:0;padding:22px}html:root main .r5-tool-index .content-card strong{font-size:22px;line-height:1.6}.r5-category-filters{gap:7px}.r5-category-filters button{font-size:12px;padding:8px 12px}}
@media(max-width:600px){.r5-article-index .r5-intro{padding:20px 0 185px;background-size:auto,100% auto;background-position:center,bottom center;background-image:linear-gradient(180deg,var(--paper) 44%,#f8f5ed00 80%),var(--vm-street);min-height:0}.r5-article-index .r5-collection{grid-template-columns:1fr}.r5-directory-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}.r5-directory-toolbar button{padding:10px;font-size:12px}.r5-directory-toolbar [data-r5-count]{grid-column:1/-1}}
@media(forced-colors:active){.r5-rail,.r5-section,.r5-directory,.r5-next,.r5-input-panel,.r5-result-panel{border:1px solid CanvasText;background:Canvas;color:CanvasText}html:root main .r5-page .village-hero{border:1px solid CanvasText;background:Canvas;color:CanvasText}html:root main .r5-page .village-hero h1{color:CanvasText}.r5-page .r5-intro,.r5-page .role-page-hero,.r5-page .home-hero{background-image:none!important}.r5-page .role-page-hero::after,.r5-page .role-card::before{content:none!important}.r5-next a{color:LinkText!important;border-color:LinkText}}
@media print{html:root body:has([data-vm-r5]) main#main{max-width:none;padding:0}.r5-layout{display:block}.r5-rail,[data-r5-menu],.r5-skip-tools,.r5-next,.r5-directory>label{display:none!important}.r5-body{display:block}.r5-section,.r5-directory,.r5-input-panel,.r5-result-panel{padding:12px 0;border:0;break-inside:auto}.r5-page .r5-intro,.r5-page .role-page-hero,.r5-page .home-hero,.r5-page .village-hero{background:none!important;color:#000!important;min-height:0!important;padding:12px 0!important}.r5-page .role-page-hero::after,.r5-page .role-card::before{content:none!important}html:root main .r5-page .village-hero h1{color:#000}.r5-page .calculator,.r5-page .local-tool,.r5-page .tool-output,.r5-page output{display:block!important}.r5-page h2{break-after:avoid}.r5-page input,.r5-page textarea,.r5-page select{border:1px solid #555!important}.r5-page [data-r5-item][hidden]{display:block!important}}

/* Mobile role landings: one readable card layer, not nested padded cards. */
@media screen and (max-width:600px){
  html:root main .r5-page.r5-role[data-r5-role] .r5-body>.r5-block.r5-section:has(>.role-checklist){padding:0;border:0;background:transparent}
  html:root main .r5-page.r5-role[data-r5-role] .role-checklist{grid-template-columns:minmax(0,1fr);gap:16px;margin:0;padding:0;border:0;background:transparent}
  html:root main .r5-page.r5-role[data-r5-role] .role-checklist>div{min-width:0;padding:0;border:0;background:transparent}
  html:root main .r5-page.r5-role[data-r5-role] .role-checklist>div>.r5-content-panel{padding:16px}
  html:root main .r5-page.r5-role[data-r5-role] .role-checklist>div>.r5-content-panel>ul{padding-inline-start:20px}
  html:root main .r5-page.r5-role[data-r5-role] :is(.role-tool,.knowledge-section,.tool-section,.official-links) .r5-content-panel{padding:0;border:0;background:transparent}
  html:root main .r5-page.r5-role[data-r5-role] .knowledge-card{padding-inline:0}
  html:root main .r5-page.r5-role[data-r5-role] .knowledge-card::before{position:static;display:block;margin-bottom:8px}
}

:root {
  --vm-look-paper: #f7f4ea;
  --vm-look-surface: #fffdf7;
  --vm-look-ink: #173b31;
  --vm-look-body: #32483f;
  --vm-look-muted: #4d6358;
  --vm-look-line: #cbd6c9;
  --vm-look-edge: #82978b;
  --vm-look-tint: #e9f0e5;
  --vm-look-accent: #8d3f29;
  --vm-look-radius: 12px;
  --vm-look-section: clamp(20px, 3vw, 40px);
}

html:has(.r5-page:is(.r5-home,.r5-district,.r5-village)),
html:root body:has(.r5-page:is(.r5-home,.r5-district,.r5-village)) {
  overflow-x: clip;
}
html:root body:has(.r5-page:is(.r5-home,.r5-district,.r5-village)) {
  --paper: var(--vm-look-paper);
  --card: var(--vm-look-surface);
  --ink: var(--vm-look-ink);
  --text: var(--vm-look-body);
  --muted: var(--vm-look-muted);
  --line: var(--vm-look-line);
  --orange: var(--vm-look-accent);
  --mint: var(--vm-look-tint);
}
html:root body:has(.r5-page:is(.r5-home,.r5-district,.r5-village)) :is(main#main, body > header, body > footer) {
  max-width: 1320px;
}
html:root body:has(.r5-page:is(.r5-home,.r5-district,.r5-village)) :is(a,button,summary,input,select):focus-visible {
  outline: 3px solid var(--vm-look-accent);
  outline-offset: 3px;
}
html:root main .r5-page:is(.r5-home,.r5-district,.r5-village) :is(h1,h2,h3) {
  overflow-wrap: break-word;
  min-width: 0;
  letter-spacing: normal;
  text-wrap: balance;
}
.r5-page:is(.r5-home,.r5-district,.r5-village) :is(.r5-rail-label,.eyebrow,.role-label) {
  letter-spacing: normal;
  text-transform: none;
}
html:root main .r5-page:is(.r5-home,.r5-district,.r5-village) :is(a,summary):active {
  text-decoration-thickness: 2px;
  text-decoration-line: underline;
}
html:root main .r5-page:is(.r5-home,.r5-district,.r5-village) button:active {
  box-shadow: inset 0 0 0 2px currentColor;
}
.r5-page:is(.r5-home,.r5-district,.r5-village) .r5-toc a > span[aria-hidden="true"] {
  display: none;
}
.r5-page:is(.r5-district,.r5-village) .r5-body {
  gap: var(--vm-look-section);
}
.r5-page:is(.r5-district,.r5-village) .r5-rail a[aria-current="true"] {
  background: var(--vm-look-tint);
  border-inline-start-color: var(--vm-look-ink);
  color: var(--vm-look-ink);
}
.r5-page:is(.r5-district,.r5-village) .r5-rail nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
}
html:root main .r5-page:is(.r5-district,.r5-village) .crumbs {
  font-size: 14px;
}

html:root main .r5-page.r5-home .home-hero {
  padding: clamp(20px, 4vw, 52px) 0 0;
  background-size: 53% min(48vw, 560px);
}
html:root main .r5-page.r5-home .home-hero .hero-copy {
  width: 58%;
  max-width: 670px;
}
html:root main .r5-page.r5-home .home-hero .r5-intro {
  padding: 0 0 16px;
  border: 0;
}
html:root main .r5-page.r5-home .home-hero h1 {
  font-size: clamp(35px, 4.8vw, 67px);
  line-height: 1.25;
  margin-bottom: 16px;
}
html:root main .r5-page.r5-home .home-hero .lead {
  max-width: 29em;
  line-height: 1.8;
}
html:root main .r5-page.r5-home .home-hero .addressbox {
  margin-top: 0;
  border-radius: var(--vm-look-radius);
  padding: clamp(16px, 2vw, 24px);
  gap: 12px;
}
html:root main .r5-page.r5-home .addressbox :is(input,button):focus-visible,
html:root main .r5-page:is(.r5-home,.r5-district,.r5-village) .r5-next a:focus-visible {
  outline-color: var(--vm-look-surface);
}
html:root main .r5-page.r5-home .addressbox .r5-input-panel label {
  font-size: 16px;
}
html:root main .r5-page.r5-home .addressbox .privacy-note {
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  margin: 8px 0 0;
}
html:root main .r5-page.r5-home .addressbox .r5-result-panel {
  padding: 12px 16px;
  border-radius: 6px;
}
html:root main .r5-page.r5-home .home-hero::after {
  top: min(44vw, 510px);
}
html:root main .r5-page.r5-home .home-hero .coverage-card {
  margin-top: var(--vm-look-section);
  padding-block: 20px;
}
html:root main .r5-page.r5-home .role-card {
  min-height: 0;
  border-radius: var(--vm-look-radius);
}
.r5-home .role-card .role-number {
  display: none;
}

.r5-district .r5-intro,
html:root main .r5-page.r5-village .village-hero {
  padding: clamp(20px, 3.6vw, 44px);
  background: var(--vm-look-tint);
  color: var(--vm-look-ink);
  border: 1px solid var(--vm-look-line);
  border-inline-start: 4px solid var(--vm-look-ink);
  border-radius: var(--vm-look-radius);
}
html:root main .r5-page.r5-village .village-hero .r5-intro {
  padding: 0;
  border: 0;
}
html:root main .r5-page.r5-village .village-hero :is(h1,p,.eyebrow) {
  color: var(--vm-look-ink);
}
html:root main .r5-page.r5-village .village-hero h1 {
  max-width: 22em;
  line-height: 1.32;
}
html:root main .r5-page.r5-village .village-hero .fav-btn {
  border-color: var(--vm-look-edge);
}
html:root main .r5-district .district-map > .r5-content-panel,
html:root main .r5-village .r5-data-layout aside > .r5-content-panel {
  border: 0;
  border-radius: 0;
}
html:root main .r5-village .r5-data-layout aside > .r5-content-panel {
  background: transparent;
  padding: 0;
}
html:root main .r5-district .village-list {
  gap: 0 clamp(12px, 2vw, 24px);
}
html:root main .r5-district .village-list li {
  padding: 0 4px;
  min-height: 52px;
  align-items: center;
}
html:root main .r5-district .village-list li a {
  display: flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: .25em;
}
html:root main .r5-district .village-list li a:hover {
  text-decoration: underline;
}

html:root main .r5-page:is(.r5-district,.r5-village) .election-card {
  background: var(--vm-look-surface);
  border-top-color: var(--vm-look-ink);
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--vm-look-radius);
}
.r5-page:is(.r5-district,.r5-village) [data-elected-policy-curation] {
  padding-block: 20px;
  margin-block: 20px;
  border-block: 1px solid var(--vm-look-line);
}
html:root main .r5-page:is(.r5-district,.r5-village) [data-elected-policy-curation] h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.35;
}
.r5-page:is(.r5-district,.r5-village) [data-elected-policy-curation] details {
  border-inline-start: 3px solid var(--vm-look-edge);
  padding-inline: 16px;
}
.r5-page:is(.r5-district,.r5-village) [data-elected-policy-curation] summary {
  color: var(--vm-look-ink);
  font-size: 16px;
  min-height: 44px;
}
html:root main .r5-page.r5-village [data-elected-policy-curation] details > p {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
}
.r5-page.r5-village [data-elected-policy-curation] > ul {
  padding-inline-start: 1.15em;
}
.r5-page.r5-village [data-elected-policy-curation] > ul > li::marker {
  color: var(--vm-look-accent);
}
.r5-page.r5-village [data-elected-policy-curation] > ul > li {
  padding: 12px 0;
  border-block-end: 1px solid var(--vm-look-line);
}
.r5-page.r5-village [data-elected-policy-curation] > ul > li:last-child {
  border-block-end: 0;
}
.r5-page:is(.r5-district,.r5-village) .election-card :is(th, td) {
  font-variant-numeric: tabular-nums;
}
.r5-page:is(.r5-district,.r5-village) .source-note a {
  text-underline-offset: .2em;
}

@media (max-width: 780px) {
  html:root main .r5-page.r5-home .home-hero {
    padding-block-start: 14px;
  }
  html:root main .r5-page.r5-home .home-hero .hero-copy {
    width: 64%;
  }
  .r5-page:is(.r5-district,.r5-village) .r5-rail {
    background: transparent;
    border-radius: 0;
    border-width: 0 0 1px;
  }
}
@media (601px <= width <= 780px) {
  html:root main .r5-page.r5-home .home-hero .lead {
    max-width: 22em;
  }
}
@media (max-width: 600px) {
  html:root main .r5-page.r5-home .home-hero .hero-copy {
    width: 100%;
  }
  html:root main .r5-page.r5-home .home-hero .hero-copy::before {
    order: 10;
    height: 180px;
  }
  html:root main .r5-page.r5-home .home-hero h1 {
    font-size: clamp(31px, 8.7vw, 47px);
  }
  html:root main .r5-page.r5-home .home-hero .lead {
    max-width: 25em;
  }
  html:root main .r5-page.r5-home .home-hero::after {
    top: auto;
  }
  html:root main .r5-district .village-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .r5-page:is(.r5-home,.r5-district,.r5-village) {
    scroll-behavior: auto;
  }
}
@media (forced-colors: active) {
  .r5-page:is(.r5-district,.r5-village) [data-elected-policy-curation] summary {
    color: ButtonText;
  }
}
