/* Shared Yuanba navigation and reading system; scoped to prevent map/guide regressions. */
:root{--yb-paper:#f5f1e8;--yb-surface:#fffefa;--yb-ink:#263c33;--yb-green:#294f44;--yb-muted:#53645b;--yb-line:#d8d6ca;--yb-accent:#85692f;--yb-header-height:88px}
.yb-global-header,.yb-global-header *{box-sizing:border-box}
.yb-experience>.skip-link{position:absolute;top:-100px;left:16px;z-index:3000;padding:12px;background:var(--yb-green);color:#fff}
.yb-experience>.skip-link:focus{top:8px}
.yb-global-header{padding-bottom:0;text-align:left;position:relative;z-index:1500;background:var(--yb-paper);border-bottom:1px solid var(--yb-line);color:var(--yb-ink);font-family:-apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif;line-height:1.5;isolation:isolate}
.yb-global-inner{max-width:1376px;min-height:88px;padding:14px 32px;margin:auto;display:flex;align-items:center;gap:28px}
.yb-global-brand{display:flex;align-items:center;gap:16px;flex:0 0 auto;text-decoration:none!important;color:var(--yb-ink)!important}
.yb-global-brand img{display:block;width:152px!important;height:51px!important;object-fit:contain;max-width:none}
.yb-global-brand strong{display:block;font-size:19px;letter-spacing:.04em;line-height:1.5}
.yb-global-brand small{display:block;font-size:13px;color:var(--yb-muted);letter-spacing:.06em}
.yb-global-nav{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto;min-width:0}
.yb-global-nav a{display:block;color:var(--yb-ink)!important;text-decoration:none!important;font-size:16px;font-weight:600;padding:11px 16px;min-height:46px;border-radius:6px;white-space:nowrap;border:1px solid transparent}
.yb-global-nav a[aria-current="page"]{background:var(--yb-green);color:#fff!important}
.yb-global-nav a:hover{border-color:var(--yb-line);background:#e9e7db}
.yb-global-nav a[aria-current="page"]:hover{background:#1d4036}
.yb-global-more{position:relative;flex:0 0 auto;margin:0;border:0;padding:0;background:none;color:var(--yb-ink)}
.yb-header-call{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border-radius:6px;white-space:nowrap;background:var(--yb-green);color:#fff!important;text-decoration:none!important;font-size:16px;font-weight:600;flex-shrink:0}
.yb-header-call .yb-call-short{display:none}
.yb-global-more>summary{cursor:pointer;min-height:46px;padding:11px 14px;font-size:16px;list-style:none;border:1px solid var(--yb-line);border-radius:6px;font-weight:600;white-space:nowrap;line-height:1.5}
.yb-global-more>summary::-webkit-details-marker{display:none}
.yb-global-more>summary::after{content:'＋';margin-left:12px;font-weight:400}
.yb-global-more[open]>summary::after{content:'−'}
.yb-global-menu{position:absolute;right:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--yb-line);border-radius:10px;background:var(--yb-surface);box-shadow:0 12px 32px #263c3320;z-index:1550}
.yb-global-menu a{display:block;min-height:46px;padding:11px 14px;color:var(--yb-ink)!important;text-decoration:none!important;font-size:16px;border-radius:5px}
.yb-global-menu a:hover{background:#eeeee3}
.yb-global-menu .yb-global-phone{margin-top:5px;background:var(--yb-green);color:#fff!important}
.yb-global-phone small{font-size:14px;display:block;color:inherit}
.yb-global-header a:focus-visible,.yb-global-header summary:focus-visible,.yb-experience :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--yb-accent)!important;outline-offset:4px;box-shadow:0 0 0 2px var(--yb-surface)}
.yb-experience :is(h1,h2,h3,p,li,dd){overflow-wrap:break-word}
.yb-experience :is(section,[id]){scroll-margin-top:22px}
.yb-secondary-disclosure{border-top:1px solid var(--yb-line);padding:18px 0;margin:18px auto;max-width:1184px;text-align:left}
.yb-secondary-disclosure>summary{cursor:pointer;font-size:18px;line-height:1.6;min-height:48px;padding:10px 0;color:var(--yb-green);font-weight:600}
.yb-secondary-disclosure>.section{padding:24px 0 12px;margin:0;background:transparent}
.yb-secondary-disclosure .shell{width:100%;max-width:none;padding:0}
.yb-tools .need-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.yb-tools .needs-heading{max-width:800px}
.yb-tools .need-card{min-height:256px;display:flex;flex-direction:column;border-radius:12px}
.yb-tools .need-card h3{font-size:27px}
.yb-tools .need-card p{font-size:17px;line-height:1.8}
.yb-tools .need-link{margin-top:auto;padding-top:24px}
.yb-tool-foot{margin-top:24px;font-size:17px;color:var(--yb-muted)}
.yb-method{background:#eaece2;border-block:1px solid var(--yb-line)}
.yb-method-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin:36px 0 0}
.yb-method-steps li{padding:28px;background:var(--yb-surface);border:1px solid var(--yb-line);border-radius:12px;display:flex;flex-direction:column;align-items:flex-start}
.yb-method-steps li>span{font:400 36px/1 Georgia,serif;color:var(--yb-accent)}
.yb-method-steps h3{font-size:23px;margin:20px 0 8px}
.yb-method-steps p{font-size:17px;line-height:1.85;margin:8px 0 24px}
.yb-method-steps a{font-size:17px;min-height:44px;display:inline-flex;align-items:center;color:var(--yb-green);font-weight:600;margin-top:auto}
.yb-method-steps small{display:block;font-size:16px;line-height:1.75;color:var(--yb-muted);margin-top:14px}
.yb-experience .yb-project-location,.yb-experience .yb-project-observation{font-size:17px;line-height:1.8;color:var(--yb-ink);margin:18px 0}
.yb-project-location>span,.yb-project-observation>span{display:block;color:var(--yb-muted);font-size:16px;font-weight:600;margin-bottom:5px}
.yb-experience .yb-project-location{padding-bottom:18px;border-bottom:1px solid var(--yb-line)}
.yb-experience .yb-locate-project{font:600 16px/1.6 inherit;color:var(--yb-green);background:#eef1e8;border:1px solid #a7b7a9;border-radius:7px;min-height:46px;padding:10px 16px;cursor:pointer;margin-top:16px}
.yb-experience .yb-location-note,.yb-experience .yb-project-map-note{font-size:16px;line-height:1.8;color:var(--yb-muted);margin:12px 18px}
.yb-project-selected{outline:3px solid var(--yb-green);outline-offset:4px}
.yb-project-marker{display:flex!important;align-items:center;justify-content:center;background:var(--yb-surface);color:var(--yb-green);border:2px solid var(--yb-green);border-radius:50%;box-shadow:0 2px 9px #263c3330;font:700 16px/1 -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif;transition:background .15s}
.yb-project-marker:hover,.yb-project-marker.yb-selected{background:#a33030;color:white;border-color:#a33030}
.yb-experience .section-nav{scroll-padding-inline:16px}
.yb-experience .section-nav a{min-height:46px;display:inline-flex;align-items:center}
.yb-experience .spotlight{border-radius:12px}
.yb-experience .project-card{border-radius:12px;scroll-margin-top:84px}
.yb-experience .project-card[hidden]{display:none!important}
.yb-experience .map-disclaimer,.yb-experience .map-foot,.yb-experience .street-map-status,.yb-experience .limit,.yb-experience .source-body,.yb-experience .map-foot a{font-size:16px;line-height:1.8}
.yb-experience .axis-button,.yb-experience .street-tools button,.yb-experience .filter-row button{min-height:46px}
.yb-experience .mast .brand{display:none}
.yb-experience .mast{justify-content:flex-end;min-height:0}
.yb-experience .site-context:empty{display:none}
.yb-experience #school-detail{font-size:16px;line-height:1.85}
.yb-experience #school-detail>strong{display:block;font-size:24px;line-height:1.6;margin:12px 0 8px}
.yb-experience #school-detail :is(p,a){font-size:16px;line-height:1.85}
.yb-experience #school-detail>a{display:inline-flex;min-height:44px;align-items:center;margin-right:12px}
.yb-experience #selected-panel dt{font-size:16px;line-height:1.7;color:var(--yb-muted)}
.yb-experience #selected-panel dd{font-size:17px;line-height:1.8}
@media(min-width:1000px){.yb-experience .hero-grid{gap:64px}.yb-experience .hero-copy h1{font-size:clamp(48px,4.6vw,76px)}}
@media(max-width:1000px){.yb-global-inner{gap:12px;padding:12px 24px}.yb-global-brand img{width:122px!important;height:41px!important}.yb-global-brand small{display:none}.yb-global-brand strong{font-size:17px}.yb-global-nav a{padding:11px 10px}}
@media(max-width:760px){
 .yb-global-inner{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;padding:12px 16px 8px;min-height:0}
 .yb-global-brand{gap:10px;min-width:0}.yb-global-brand img{width:105px!important;height:35px!important}.yb-global-brand strong{font-size:16px;letter-spacing:0}
 .yb-global-more{grid-column:3;grid-row:1}.yb-global-more>summary{font-size:15px;min-height:44px;padding:10px}
 .yb-header-call{grid-column:2;grid-row:1;padding:10px;font-size:15px;min-height:44px}.yb-header-call .yb-call-full{display:none}.yb-header-call .yb-call-short{display:inline}
 .yb-global-more>summary::after{margin-left:6px}
 .yb-global-nav{grid-row:2;grid-column:1/-1;margin:0;gap:5px;width:100%;justify-content:stretch}
 .yb-global-nav a{flex:1;text-align:center;padding:10px 4px;font-size:15px;min-height:44px}
 .yb-tools .need-grid,.yb-method-steps{grid-template-columns:1fr;gap:14px}
 .yb-tools .need-card{min-height:0;padding:24px}.yb-tools .need-link{padding-top:16px}
 .yb-method-steps li{padding:24px}.yb-method-steps h3{margin-top:14px}
 .yb-secondary-disclosure{margin:16px 0;padding:14px 0}
 .yb-experience .hero-grid{gap:32px}.yb-experience .hero-copy h1{font-size:clamp(35px,8.7vw,58px)}
 .yb-experience .hero{padding-top:40px}.yb-experience .section{padding-block:56px}
 .yb-experience .section-nav a{font-size:16px}
}
@media(max-width:420px){.yb-global-brand img{width:70px!important;height:24px!important}.yb-global-brand strong{font-size:14px}.yb-global-brand{gap:7px}.yb-global-inner{padding-inline:12px;gap:6px}.yb-global-nav a{font-size:14px}.yb-global-more>summary{padding-inline:8px}.yb-header-call{padding-inline:8px}}
@media(max-width:360px){.yb-global-brand img{display:none}.yb-global-brand strong{font-size:16px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.yb-experience *, .yb-experience *::before,.yb-experience *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.yb-global-header,.yb-global-menu{display:none!important}.yb-secondary-disclosure>summary{display:none}.yb-secondary-disclosure>*{display:block!important}.yb-method-steps{display:block}.yb-method-steps li{break-inside:avoid;margin-bottom:15px}}

/* Keep the existing phone and LINE actions, with sharing on the right. */
.research-contact-dock .yb-page-share-button{font:600 15px/1.4 -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif;border:1px solid var(--g);border-radius:6px;background:#fffefa;color:var(--g);cursor:pointer;min-width:0;min-height:48px;padding:8px 5px;white-space:nowrap}
.yb-page-share-dialog{box-sizing:border-box;width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #bcc9bd;border-radius:14px;background:#fffefa;color:#263c33;box-shadow:0 14px 50px #183d3430;font:16px/1.7 -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif}
.yb-page-share-dialog::backdrop{background:#172b2466}
.yb-page-share-dialog h2{font-size:23px;line-height:1.5;margin:0 0 12px}
.yb-page-share-dialog p{font-size:16px;line-height:1.7}
.yb-page-share-dialog label{display:block;font-size:15px;margin-top:18px}
.yb-page-share-dialog input{box-sizing:border-box;width:100%;padding:11px 10px;border:1px solid #9cae9f;border-radius:6px;font:inherit;font-size:16px;line-height:1.5;color:#263c33;background:white;min-height:46px}
.yb-page-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.yb-page-share-actions a,.yb-page-share-dialog button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 12px;border:1px solid #294f44;border-radius:6px;font:600 16px/1.5 -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif;text-decoration:none;color:#294f44;background:#fffefa;cursor:pointer}
.yb-page-share-actions a{background:#294f44;color:white}
.yb-page-share-dialog [role="status"]{min-height:27px;margin:10px 0;font-size:15px}
.yb-page-share-dialog [data-yb-share-close]{width:100%;border-color:#b7c1b5}
@media(max-width:600px){.research-contact-dock{grid-template-columns:1fr 1fr 1.15fr!important;gap:6px;padding-inline:10px}.research-contact-dock a{font-size:15px!important;white-space:nowrap;min-width:0}.research-contact-dock a:nth-child(2){background:var(--g);color:white}}
@media print{.yb-page-share-dialog{display:none!important}}

/* One shared mobile contact bar across the four primary pages. */
.yb-contact-dock{display:none}
@media(max-width:600px){
 body.has-shared-contact-dock{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))!important}
 .has-shared-contact-dock .yb-contact-dock{box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr 1.15fr!important;gap:6px;position:fixed;left:0;right:0;bottom:0;z-index:2000;margin:0;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));border-top:1px solid #d8d6ca;background:#fffefbf7;box-shadow:0 -4px 16px #173c3010}
 .has-shared-contact-dock .yb-contact-dock>a,.has-shared-contact-dock .yb-contact-dock>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;margin:0;padding:8px 5px;border:1px solid #174b3c;border-radius:6px;background:#fffefa;color:#174b3c;font:600 15px/1.4 -apple-system,BlinkMacSystemFont,"Microsoft JhengHei",sans-serif!important;text-decoration:none;white-space:nowrap;cursor:pointer;box-shadow:none}
 .has-shared-contact-dock .yb-contact-dock>a:nth-child(2){background:#174b3c;color:white}
 .has-shared-contact-dock .yb-consent{bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - 92px);overflow:auto}
 .has-shared-contact-dock .toast{bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:2100}
 .has-shared-contact-dock:has(input:not(#yb-share-url):focus,textarea:focus,select:focus) .yb-contact-dock{display:none}
}
@media print{.yb-contact-dock{display:none!important}}
.yb-shared-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px auto;padding:12px 16px;max-width:1160px;background:#f2f4ed;border:1px solid #d5ddcf;border-radius:8px;color:#294f44;font-size:15px;line-height:1.6}
.yb-shared-entry span{overflow-wrap:anywhere}.yb-shared-entry a{display:inline-flex;align-items:center;min-height:44px;color:#174b3c;font-weight:600;text-underline-offset:4px}
@media(max-width:600px){.yb-shared-entry{margin:12px 16px;padding:10px 12px;font-size:14px}}
