/* Japan Chain Guide · v3 — modern, search-first editorial utility. No external fonts/frameworks. */
:root{color-scheme:light;--indigo:#244C71;--indigo2:#173856;--ink:#162432;--soft:#516475;--muted:#657485;--border:#E0E6EB;--light:#F7F9FB;--surface:#FFF;--accent:#B75943;--signal:#E2A34E;--signal-deep:#B67627;--signal-soft:#FFF8EC;--focus:#244C71;--max:1060px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--surface);color:var(--ink);font:16px/1.64 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}a{color:var(--indigo);text-underline-offset:3px}a:hover{color:var(--indigo2)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
::selection{background:var(--signal-soft);color:var(--ink)}
img{display:block;max-width:100%;height:auto}h1,h2,h3,p{overflow-wrap:break-word}h1,h2,h3{line-height:1.17;letter-spacing:-.032em}h1,h2,h3{margin-top:0}
.wrap{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
[hidden]{display:none!important}
/* Navigation: one quiet, consistent row */
.site-header{border-bottom:1px solid var(--border);background:#fff}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:14px}
.logo{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:1.04rem;font-weight:780;letter-spacing:-.035em;white-space:nowrap}
.brand-symbol{display:block;flex:none;width:36px;height:39px;object-fit:contain}
.site-nav{display:flex;align-items:center;gap:clamp(12px,3vw,32px);white-space:nowrap}
.site-nav a{font-size:.89rem;font-weight:600;text-decoration:none;color:var(--soft)}
.site-nav a:hover,.site-nav a[aria-current=page]{color:var(--indigo)}
.site-nav a[aria-current=page]{text-decoration:underline;text-decoration-color:var(--signal);text-decoration-thickness:2px;text-underline-offset:9px}
/* Buttons / typography */
.eyebrow{margin:0 0 13px;color:var(--indigo);font-size:.75rem;font-weight:680;letter-spacing:.035em;text-transform:none}
.eyebrow::before{content:none}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 17px;border-radius:8px;border:1px solid var(--indigo);background:var(--indigo);color:#fff!important;text-decoration:none;font-size:.89rem;font-weight:650;line-height:1.25;cursor:pointer}
.btn:hover{background:var(--indigo2)}.btn-quiet{color:var(--indigo)!important;background:transparent;border-color:#B9C9D7}.btn-quiet:hover{background:var(--light)}
/* Home: search is the main action, without cards or decorative illustration */
.hero{padding:68px 0 34px;border-bottom:1px solid var(--border)}
.hero h1{font-size:clamp(2.7rem,5.8vw,4.65rem);max-width:790px;letter-spacing:-.055em;line-height:1.075;font-weight:750;margin:0}
.hero h1 em{font-style:normal;color:var(--indigo)}
.hero .lead{max-width:620px;font-size:1.065rem;line-height:1.65;color:var(--soft);margin:21px 0 0}
.directory{padding:0 0 40px}
.controls{padding:29px 0 23px;border-bottom:1px solid var(--border);background:#fff}
.search-label{font-size:.95rem;font-weight:720;display:block;margin-bottom:11px}
.search-wrap{position:relative;max-width:780px}
.search-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);width:20px;height:20px;stroke:var(--indigo);fill:none;stroke-width:1.8;stroke-linecap:round;pointer-events:none}
.searchbox{width:100%;min-height:56px;max-width:780px;padding:12px 18px 12px 50px;border:1.5px solid #AFC0CF;border-radius:9px;background:#fff;color:var(--ink);font-size:1rem;outline-offset:3px}
.searchbox::placeholder{color:#7C8B99}
.searchbox:focus-visible{border-color:var(--indigo);box-shadow:0 0 0 4px #244C711C}
.filter-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:23px 0 8px;font-size:.8rem;font-weight:680;color:var(--soft)}
.filter-hint{font-weight:450;color:#7D8B98;font-size:.75rem}
.chips{display:flex;gap:8px;overflow-x:auto;padding:0 0 10px;scrollbar-width:thin;scrollbar-color:#CBD6DF transparent;overscroll-behavior-x:contain}
.chip{flex:none;min-height:42px;padding:8px 13px;border:1px solid var(--border);border-radius:7px;background:var(--light);font-size:.83rem;font-weight:540;color:var(--soft);cursor:pointer;white-space:nowrap}
.chip span{margin-left:3px;font-weight:470;color:#778696}
.chip.active{background:var(--indigo);border-color:var(--indigo);color:white;box-shadow:none}.chip.active span{color:var(--signal)}
.chip:hover:not(.active){background:#EAF0F5;border-color:#C4D0DC}
.directory-heading{display:flex;justify-content:space-between;gap:15px;align-items:baseline;padding:25px 0 8px}
.directory-heading h2{font-size:1.48rem;margin:0;font-weight:740}.count{color:var(--muted);font-size:.84rem;white-space:nowrap;margin:0}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:35px;row-gap:0}
.card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr auto;gap:0 14px;align-content:start;padding:21px 4px 22px 0;border-top:1px solid var(--border);background:#fff;text-decoration:none;color:var(--ink);min-height:163px}
.card .cat{grid-column:1;align-self:start;display:inline-flex;align-items:center;gap:7px;color:var(--soft);font-size:.71rem;font-weight:710;margin:0 0 6px}
.card .cat::before{content:'';width:7px;height:7px;border-radius:99px;background:var(--signal)}
.card h3{grid-column:1;margin:0 0 5px;font-size:1.29rem;font-weight:745;letter-spacing:-.032em;line-height:1.28;color:var(--ink)}
.card p{grid-column:1;margin:0;color:var(--soft);font-size:.84rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .card-more{grid-column:2;grid-row:2 / span 3;align-self:start;color:var(--indigo);font-size:.78rem;font-weight:650;white-space:nowrap;margin-top:2px}
.card .card-more span{display:inline-block;font-size:1rem;margin-left:3px}
.card:hover h3,.card:focus-visible h3{text-decoration:underline;text-decoration-color:var(--signal-deep);text-underline-offset:4px}
.empty{padding:30px 0 65px;color:var(--soft)}
/* Quiet publisher, email and affiliate modules */
.promo-band{border-top:1px solid var(--border);display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:37px 0 22px;margin:3px 0 33px}
.promo-band h2{font-size:1.87rem;margin:0;font-weight:730}.promo-band p:not(.eyebrow){margin:9px 0 0;color:var(--soft);max-width:540px;font-size:.92rem}
.newsletter{border-top:1px solid var(--border);padding:37px 0;margin:15px 0 30px}
.newsletter .inner{display:grid;grid-template-columns:1fr minmax(280px,.82fr);gap:35px;align-items:start}
.newsletter h2{font-size:1.65rem;line-height:1.24;max-width:480px;margin:0 0 13px}
.newsletter p{color:var(--soft);font-size:.9rem;margin:7px 0 9px}
.newsletter .input-label{display:block;font-size:.81rem;font-weight:650;margin:0 0 8px}
.email-row{display:flex;gap:8px}.newsletter input[type=email]{width:100%;min-width:0;min-height:45px;border:1px solid #B7C5D0;border-radius:7px;padding:10px 12px}
.newsletter .btn[disabled]{cursor:not-allowed;opacity:.58}.newsletter .form-note{font-size:.75rem;color:var(--muted);margin-top:9px}
.newsletter .consent-row{display:flex;gap:10px;align-items:flex-start;margin-top:11px;font-size:.8rem;color:var(--soft)}.newsletter .consent-row input{margin-top:3px;flex:none;accent-color:var(--indigo)}
.affiliate-slot{margin:22px 0;padding:16px 20px;border-left:2px solid var(--signal);background:var(--light)}.affiliate-slot .ad-label{font-weight:670;font-size:.72rem;color:var(--muted)}
.affiliate-slot h3{font-size:1rem;margin:5px 0 4px}.affiliate-slot p{font-size:.86rem;color:var(--soft);margin:4px 0}.affiliate-slot a{font-weight:650;font-size:.89rem}
.affiliate-slot.demo{border-left-style:dashed;color:var(--soft)}
/* Guides — task centered, readable and precise */
.guide-shell{max-width:820px;padding:28px 24px 62px;margin:0 auto}
.breadcrumb{font-size:.79rem;color:var(--muted);margin-bottom:27px}.breadcrumb a{color:var(--indigo);font-weight:610}
.guide-head{padding-bottom:26px}.guide-head .eyebrow{margin-bottom:10px}
.guide-head h1{font-size:clamp(2.15rem,4.3vw,3.25rem);letter-spacing:-.048em;line-height:1.14;font-weight:760;margin:0}
.guide-head .subtitle{color:var(--soft);font-size:1rem;line-height:1.55;margin:15px 0 0}
.guide-head .guide-subtitle{font-size:1.02rem;color:#5a6b7d;line-height:1.5;margin:10px 0 0}
.guide-toc{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px 26px;padding:15px 0 20px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin:0 0 3px}
.guide-toc p{font-size:.77rem;color:var(--muted);font-weight:700;margin:0 0 9px}
.guide-toc .toc-primary>div{display:flex;flex-wrap:wrap;gap:9px 19px}.guide-toc a{font-size:.84rem;font-weight:640}
.guide-toc a:hover{text-decoration-color:var(--signal-deep)}
.guide-section{padding:27px 0 29px;border-bottom:1px solid var(--border);scroll-margin-top:20px}
.guide-section h2{font-size:1.54rem;line-height:1.28;font-weight:745;margin:0 0 16px}
.guide-section h3{font-size:1.09rem;margin:18px 0 8px}.guide-section p{margin:9px 0 16px;line-height:1.72;color:#253746}
.guide-section ul,.guide-section ol{padding-left:1.4em;margin:12px 0 18px}.guide-section li{margin:10px 0;line-height:1.67;padding-left:2px}
.guide-section blockquote.note{background:var(--light);border-left:3px solid #C5D4E0;margin:19px 0;padding:13px 17px;color:var(--ink)}
.guide-section table.facts{border-collapse:collapse;width:100%;font-size:.92rem;line-height:1.5;border-top:1px solid var(--border)}
.guide-section table.facts th,.guide-section table.facts td{padding:12px 10px;border-bottom:1px solid var(--border);vertical-align:top;text-align:left;overflow-wrap:anywhere}
.guide-section table.facts thead{display:none}.guide-section table.facts td:first-child{width:30%;font-size:.86rem;font-weight:700;color:var(--ink)}
.guide-section#how-to-order ol{list-style:none;counter-reset:step;padding:0;margin-top:18px}
.guide-section#how-to-order ol>li{counter-increment:step;position:relative;padding:3px 0 17px 45px;border-bottom:1px solid var(--border);margin:0 0 16px;min-height:39px}
.guide-section#how-to-order ol>li::before{content:counter(step);position:absolute;top:1px;left:0;font-size:.94rem;font-weight:720;color:var(--indigo);display:grid;place-items:center;width:29px;height:29px;border:1px solid color-mix(in srgb,var(--signal) 45%, #C7D4DF);background:var(--signal-soft);border-radius:6px}
.guide-section#faq>p{border-bottom:1px solid var(--border);padding-bottom:12px}
.guide-section#sources{font-size:.88rem}.guide-section#sources li{overflow-wrap:anywhere}
/* Book from same publisher, plainly disclosed: a labeled promo frame
   placed after Sources, outside the article heading flow. */
.book-promo{display:grid;grid-template-columns:72px 1fr;gap:20px;align-items:center;padding:20px 22px;margin:26px 0 8px;border:1px solid var(--border);border-radius:10px;background:var(--light)}
.book-promo img{width:72px;height:auto;box-shadow:0 5px 16px #0C1E2B20;border-radius:2px}
.book-promo h3{font-size:1.08rem;font-weight:720;margin:3px 0 6px}
.book-promo p{color:var(--soft);font-size:.86rem;margin:0 0 7px}
.checked-line{color:var(--muted);font-size:.86rem;margin:0 0 14px}
.guide-notice{background:#fdf6e3;border:1px solid #e3cf8f;border-radius:8px;padding:12px 16px;font-size:.92rem;line-height:1.55;margin:0 0 18px;color:#5b4a1f}
.related{padding:18px 0 28px}.related h2{font-size:1.26rem;margin:0 0 11px}
.related-list{display:flex;gap:7px;flex-wrap:wrap}.related-list a{display:inline-flex;align-items:center;min-height:40px;padding:7px 12px;text-decoration:none;font-size:.85rem;font-weight:600;color:var(--indigo);background:var(--light);border-radius:6px}
.related-list a:hover{background:var(--signal-soft)}
/* Book page, editorial display is limited to actual book image */
.page-intro{padding:52px 0 30px}.page-intro h1{font-size:clamp(2.4rem,5vw,4rem);letter-spacing:-.05em;margin:0}
.page-intro .lead{max-width:680px;color:var(--soft);font-size:1.03rem;line-height:1.65;margin:17px 0 0}
.book-feature{display:grid;grid-template-columns:minmax(185px,265px) 1fr;gap:40px;padding:33px 0 38px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);align-items:center}
.book-feature img{width:100%;max-width:265px;box-shadow:0 12px 27px #0C1E2B22}
.book-feature h2{font-size:clamp(1.9rem,3.5vw,2.55rem);line-height:1.16;margin:0 0 9px;font-weight:760}
.book-feature p{color:var(--soft);font-size:.96rem}.book-feature .book-sub{font-size:1.11rem;color:var(--ink)}
.book-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.book-next{padding:26px 0 36px;border-bottom:1px solid var(--border)}.book-next h2{margin:5px 0 7px;font-size:1.65rem}.book-next p{color:var(--soft);font-size:.93rem}
/* footer */
.site-footer{background:var(--light);border-top:1px solid var(--border);padding:37px 0 24px;margin-top:32px;color:var(--soft)}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:31px}
.site-footer strong{font-size:1.05rem;color:var(--ink)}.site-footer p{font-size:.78rem;line-height:1.65;margin:10px 0;max-width:420px}
.site-footer .footer-label{color:var(--ink);font-size:.78rem;font-weight:700}
.site-footer ul{list-style:none;padding:0;margin:9px 0;display:grid;gap:7px}.site-footer a{font-size:.83rem;color:var(--indigo)}
.footer-bottom{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:29px;border-top:1px solid var(--border);padding-top:15px;font-size:.73rem;color:var(--muted)}
.utility-page{max-width:790px;margin:0 auto;padding:50px 24px 65px}.utility-page h1{font-size:2.4rem}.utility-page h2{font-size:1.3rem;margin-top:30px}.utility-page p{color:var(--soft)}
@media(max-width:750px){.wrap{width:min(calc(100% - 32px),var(--max))}.header-inner{min-height:62px}.logo{font-size:.94rem;gap:8px}.brand-symbol{width:34px;height:37px}.site-nav{gap:15px}.site-nav a{font-size:.81rem}.hero{padding:42px 0 25px}.hero h1{font-size:clamp(2.2rem,9vw,3.2rem)}.hero .lead{font-size:1rem;margin-top:17px}.grid{grid-template-columns:1fr}.card{min-height:135px}.controls{padding:23px 0 16px}.directory-heading{padding-top:23px}.newsletter .inner{grid-template-columns:1fr;gap:20px}.promo-band{grid-template-columns:1fr;gap:16px}.footer-grid{grid-template-columns:1fr 1fr;gap:24px}.book-feature{grid-template-columns:190px 1fr;gap:24px}}
@media(max-width:520px){.logo{font-size:.79rem;gap:6px}.site-nav{gap:11px}.site-nav a{font-size:.77rem}.brand-symbol{width:32px;height:35px}.hero{padding-top:33px}.hero h1{font-size:clamp(2.16rem,9.3vw,2.8rem)}.hero .lead{font-size:.95rem}.searchbox{font-size:.94rem}.card{min-height:135px;padding-right:0}.card h3{font-size:1.18rem}.card .card-more{font-size:.72rem}.guide-shell{padding:23px 16px 50px}.guide-head h1{font-size:clamp(1.95rem,8vw,2.5rem)}.guide-section table.facts td:first-child{width:37%}.guide-section table.facts td{padding:10px 7px}.guide-toc .toc-primary>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.email-row{flex-direction:column}.email-row .btn{width:100%}.book-feature{grid-template-columns:1fr}.book-feature img{max-width:180px}.footer-grid{grid-template-columns:1fr;gap:10px}.book-inline{grid-template-columns:56px 1fr;gap:14px}.book-inline img{width:56px}}
/* Very small screens (<=380px): the one-row header (logo + 4 nav links) is
   wider than the viewport and forces horizontal scrolling. Let the header
   wrap so the nav drops to a second line instead. Wider layouts untouched. */
@media(max-width:380px){.header-inner{flex-wrap:wrap;row-gap:6px;padding-top:10px;padding-bottom:10px;min-height:0}.site-nav{flex-wrap:wrap;row-gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* v8 photo layout: thumbnails are separate, readable elements; no image under text. */
.card.has-photo{grid-template-columns:minmax(0,1fr) 108px;grid-template-rows:auto auto 1fr auto;gap:0 17px;min-height:155px;padding-right:0;align-items:start}
.card.has-photo .cat,.card.has-photo h3,.card.has-photo p{grid-column:1}
.card.has-photo .card-more{grid-column:1;grid-row:4;justify-self:start;margin-top:10px}
.card.has-photo .card-thumb{grid-column:2;grid-row:1 / 5;width:108px;height:104px;border-radius:8px;object-fit:cover;object-position:center;background:#f3f5f7;display:block;filter:none;align-self:start}
.card.has-photo:hover .card-thumb,.card.has-photo:focus-visible .card-thumb{filter:brightness(.96)}
.card.has-photo h3{line-height:1.24}
/* Keep the reader's first actions before the illustration. */
.guide-photo{max-width:620px;margin:24px 0 20px}
.guide-photo img{display:block;width:100%;height:auto;aspect-ratio:3 / 2;object-fit:cover;object-position:center;border-radius:10px;background:#f3f5f7}
.guide-photo figcaption{font-size:.76rem;line-height:1.55;color:var(--muted);margin:7px 0 0}
.guide-photo figcaption a{color:inherit;text-decoration:underline}
.guide-photo + .guide-section{border-top:1px solid var(--border)}
@media(max-width:520px){
.card.has-photo{grid-template-columns:minmax(0,1fr) 92px;column-gap:12px;min-height:136px}
.card.has-photo .card-thumb{width:92px;height:96px;border-radius:7px}
.card.has-photo h3{font-size:1.14rem}
.card.has-photo p{-webkit-line-clamp:2}
.guide-photo{margin:22px 0 21px}
.guide-photo img{border-radius:8px}
}

/* v9 homepage: photographic editorial hero with the directory kept search-first.
   The home-only classes do not change the approved guide-detail and Books layouts. */
.hero.hero-editorial{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0.93fr);align-items:center;gap:clamp(28px,4vw,58px);padding:52px 0 30px;border-bottom:1px solid var(--border)}
.hero-editorial .hero-copy{min-width:0}
.hero-editorial h1{font-size:clamp(2.7rem,4.9vw,4.3rem);max-width:650px;line-height:1.08;letter-spacing:-.055em}
.hero-editorial .lead{font-size:1.02rem;line-height:1.64;margin:18px 0 0;max-width:550px}
.hero-meta{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;margin-top:25px;font-size:.78rem;line-height:1.4;color:var(--soft)}
.hero-count{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.hero-count::before{content:'';width:7px;height:7px;background:var(--signal);border-radius:50%}
.hero-count strong{color:var(--ink)}
.hero-book-link{font-weight:650;text-decoration:none;box-shadow:inset 0 -1px 0 #B9C9D7;padding-bottom:2px}
.hero-book-link:hover{box-shadow:inset 0 -2px 0 var(--signal)}
.hero-photos{min-width:0;margin:0}
.hero-photo-grid{display:grid;grid-template-columns:1.13fr .87fr;grid-template-rows:144px 144px;gap:8px;overflow:hidden;border-radius:12px}
.hero-photo-grid .hero-tile{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;background:#edf1f4;color:white;text-decoration:none}
.hero-photo-grid .hero-tile:first-child{grid-row:1/3}
.hero-photo-grid .hero-tile img{width:100%;height:100%;object-fit:cover;transition:transform 240ms ease}
.hero-photo-grid .hero-tile:first-child img{object-position:43% center}
.hero-photo-grid .hero-tile:nth-child(2) img{object-position:46% center}
.hero-photo-grid .hero-tile:nth-child(3) img{object-position:50% center}
.hero-photo-grid .hero-tile:hover img,.hero-photo-grid .hero-tile:focus-visible img{transform:scale(1.035)}
.hero-photo-grid .hero-tile::after{content:'';position:absolute;inset:55% 0 0;background:linear-gradient(to top,rgba(14,25,33,.73),transparent);pointer-events:none}
.hero-tile-label{position:absolute;bottom:11px;left:13px;z-index:1;color:#fff;font-size:.76rem;letter-spacing:.005em;font-weight:720;text-shadow:0 1px 2px #0008}
.hero-photo-grid.count-1{grid-template-columns:1fr;grid-template-rows:270px}
.hero-photo-grid.count-1 .hero-tile:first-child{grid-row:auto}
.hero-photo-grid.count-2{grid-template-columns:1fr 1fr;grid-template-rows:270px}
.hero-photo-grid.count-2 .hero-tile:first-child{grid-row:auto}
.hero-photos figcaption{font-size:.68rem;color:var(--muted);line-height:1.4;margin-top:7px;text-align:right}
.hero-photos figcaption a{color:var(--soft);text-decoration:underline}
.quick-start{border-bottom:1px solid var(--border);padding:23px 0 25px;margin:0}
.quick-start-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-bottom:13px}
.quick-start-heading .eyebrow{margin:0;font-size:.7rem;color:var(--soft)}
.quick-start-heading h2{font-size:1.15rem;font-weight:760;margin:0}
.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.quick-link{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 13px;min-height:71px;background:var(--light);border:1px solid var(--border);border-radius:9px;text-decoration:none;color:var(--ink)}
.quick-link:hover,.quick-link:focus-visible{border-color:#AFC3D3;background:#F0F5F8}
.quick-num{font-size:.75rem;font-weight:850;color:var(--signal-deep);font-variant-numeric:tabular-nums}
.quick-text{display:flex;flex-direction:column;min-width:0;flex:1}
.quick-text small{color:var(--soft);font-size:.69rem;font-weight:620;line-height:1.25}
.quick-text strong{font-size:.94rem;line-height:1.25;overflow-wrap:anywhere}
.quick-arrow{color:var(--indigo);font-size:1.15rem}
.photo-credits{border-top:1px solid var(--border);padding:18px 0 4px;font-size:.74rem;color:var(--muted)}
.photo-credits h2{font-size:.78rem;letter-spacing:0;color:var(--muted);margin:0 0 6px}
.photo-credits ul{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;margin:0;padding:0}
.photo-credits li{line-height:1.4}.photo-credits a{color:inherit}
.photo-credits p{margin:8px 0}
@media(max-width:820px){.hero.hero-editorial{gap:22px;grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}.hero-photo-grid{grid-template-rows:125px 125px}.hero-editorial h1{font-size:clamp(2.25rem,5.3vw,3.4rem)}}
@media(max-width:700px){
 .hero.hero-editorial{display:flex;flex-direction:column;align-items:stretch;gap:17px;padding:31px 0 22px}
 .hero-editorial h1{font-size:clamp(2.22rem,9.5vw,2.85rem)}
 .hero-editorial .lead{font-size:.94rem;line-height:1.53;margin:12px 0 0}
 .hero-meta{margin-top:13px;gap:9px 18px}
 .hero-photo-grid{grid-template-columns:1.2fr .8fr;grid-template-rows:77px 77px;gap:6px;border-radius:9px}
 .hero-photo-grid.count-1,.hero-photo-grid.count-2{grid-template-rows:160px}
 .hero-tile-label{bottom:8px;left:9px;font-size:.7rem}
 .hero-photos figcaption{text-align:left;font-size:.65rem}
 .controls{padding-top:17px}
 .quick-start{padding:17px 0 20px}
 .quick-links{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:5px}
 .quick-link{flex:0 0 min(67vw,220px);min-height:65px;scroll-snap-align:start}
}
@media(max-width:360px){.hero-editorial h1{font-size:2.05rem}.hero-meta{font-size:.7rem}.hero-photo-grid{grid-template-rows:67px 67px}}
@media(prefers-reduced-motion:reduce){.hero-photo-grid .hero-tile img{transition:none}}

/* v12 — single browsing path: photo links -> search/categories -> directory.
   The former 3-card Good places to start duplicated both photo links and guide directory. */
.browse-kicker{margin:0 0 4px;font-size:.76rem;font-weight:780;color:var(--indigo);letter-spacing:.025em}
.directory .controls{padding-top:26px;padding-bottom:18px}
.directory .search-label{font-size:1.19rem;line-height:1.3;letter-spacing:-.02em;font-weight:760;margin:0 0 14px}
.directory .directory-heading h2{font-size:1.55rem}
@media(max-width:700px){.directory .controls{padding-top:23px}.directory .search-label{font-size:1.11rem}.directory .directory-heading{padding-top:23px}}

/* v13 — Photo-card refinement. Preserve card sizes, image positions, content and navigation.
   Individual rounded tiles + consistent micro-caption over photos; no photography under body text. */
.hero-photo-grid{gap:10px;overflow:visible;border-radius:0}
.hero-photo-grid .hero-tile{
  isolation:isolate;border-radius:11px;
  box-shadow:0 2px 4px rgba(16,42,62,.09),0 10px 24px rgba(16,42,62,.055);
  outline:1px solid rgba(32,65,93,.07);outline-offset:-1px
}
.hero-photo-grid .hero-tile img{filter:saturate(.96) contrast(1.015);transition:transform 320ms ease,filter 320ms ease}
.hero-photo-grid .hero-tile:hover img,.hero-photo-grid .hero-tile:focus-visible img{transform:scale(1.045);filter:saturate(1.02) contrast(1.015)}
.hero-photo-grid .hero-tile::after{inset:56% 0 0;background:linear-gradient(to top,rgba(12,29,43,.48),transparent)}
.hero-tile-label{
  display:inline-flex;align-items:center;gap:7px;
  bottom:12px;left:12px;padding:5px 8px;
  border-radius:5px;background:rgba(15,38,58,.80);
  box-shadow:0 1px 3px rgba(0,0,0,.10);
  color:#fff;font-size:.74rem;font-weight:690;letter-spacing:.005em;line-height:1.25;text-shadow:none
}
.hero-tile-label::after{content:'↗';font-size:.84em;color:#E9EFF4;font-weight:600}
/* Directory thumbnails remain deliberately small and outside the text column. */
.card.has-photo .card-thumb{
  border-radius:10px;box-shadow:0 2px 7px rgba(16,42,62,.085);
  outline:1px solid rgba(22,52,75,.075);outline-offset:-1px;
  transition:transform 250ms ease,box-shadow 250ms ease;
}
.card.has-photo:hover .card-thumb,.card.has-photo:focus-visible .card-thumb{
  filter:none;transform:translateY(-2px);box-shadow:0 4px 14px rgba(16,42,62,.13)
}
@media(max-width:700px){
 .hero-photo-grid{gap:7px}
 .hero-photo-grid .hero-tile{border-radius:8px;box-shadow:0 2px 8px rgba(16,42,62,.075)}
 .hero-tile-label{bottom:7px;left:7px;gap:5px;padding:3px 6px;border-radius:4px;font-size:.66rem}
 .card.has-photo .card-thumb{border-radius:9px}
}
@media(max-width:360px){.hero-tile-label{font-size:.61rem;padding:3px 5px;gap:4px}}
@media(prefers-reduced-motion:reduce){
 .hero-photo-grid .hero-tile img,.card.has-photo .card-thumb{transition:none}
 .hero-photo-grid .hero-tile:hover img,.hero-photo-grid .hero-tile:focus-visible img{transform:none}
 .card.has-photo:hover .card-thumb,.card.has-photo:focus-visible .card-thumb{transform:none}
}

/* Show & Speak — adapted from the v7 "clear soft cards" design study */
.guide-toc .toc-speak-action{display:flex;align-items:center;text-align:left;gap:11px;width:272px;max-width:100%;min-height:62px;padding:10px 12px;border:1px solid #D6E1E9;border-radius:11px;background:#FAFCFD;color:var(--indigo);box-shadow:none;transition:background .15s,border-color .15s;text-decoration:none}
.guide-toc .toc-speak-action:hover{background:#FFF8EC;border-color:#DFC18D}
.guide-toc .toc-speak-action:focus-visible{outline:3px solid var(--indigo);outline-offset:3px}
.guide-toc .toc-speak-icon{display:inline-grid;place-items:center;flex:none;width:35px;height:35px;border-radius:50%;background:#F7E5C4;color:var(--indigo)}
.guide-toc .toc-speak-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.guide-toc .toc-speak-copy strong{font-size:.9rem;line-height:1.3;font-weight:760;letter-spacing:.005em}
.guide-toc .toc-speak-copy span{font-size:.72rem;line-height:1.4;font-weight:500;color:#5D7182}
.guide-toc .toc-speak-arrow{font-size:1.45rem;line-height:1;font-weight:400;color:#59758B;flex:none;align-self:center}
@media(max-width:720px){.guide-toc{display:flex;flex-direction:column;align-items:stretch;gap:15px}.guide-toc .toc-speak-action{width:100%;max-width:none;min-height:58px;padding:9px 12px}}
@media(min-width:721px) and (max-width:850px){.guide-toc{gap:10px}.guide-toc .toc-speak-action{width:242px}}
.ss-header{position:sticky;top:0;background:#fff;z-index:15;border-bottom:1px solid var(--border)}
.ss-header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:920px;padding:16px 24px;margin:0 auto;min-height:70px}
.ss-back,.ss-top-link{font:inherit;border:0;background:transparent;color:var(--indigo);cursor:pointer;font-size:.88rem;font-weight:680;padding:7px 2px;text-decoration:none}
.ss-back{display:flex;align-items:center;gap:7px;font-size:1.65rem;line-height:1}
.ss-back span{font-size:.87rem;line-height:1.5}
.ss-header-brand{font-size:.70rem;letter-spacing:.15em;font-weight:800;color:#778694}
.ss-main{max-width:790px;padding:56px 24px 100px;margin:0 auto}
.ss-kicker{color:var(--signal-deep);font-size:.71rem;letter-spacing:.14em;font-weight:800;margin:0 0 10px}
.ss-main h1{font-size:clamp(2.3rem,6vw,3.8rem);font-weight:770;letter-spacing:-.055em;line-height:1.04;margin:0 0 18px;color:#1F3447}
.ss-lead{font-size:1.025rem;color:#5F6E7D;line-height:1.65;max-width:530px;margin:0 0 40px}
.ss-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;border-bottom:1px solid #CBD7E1;padding:0 0 14px;margin:23px 0 14px}
.ss-section-heading h2{font-size:1.3rem;line-height:1.3;color:var(--indigo);margin:0}
.ss-section-heading span{color:#7F8E98;font-size:.77rem}
.ss-list{display:grid;gap:13px}
.ss-phrase-row{display:block;padding:15px 16px 14px;border:1px solid #C7D4DE;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(28,55,77,.055)}
.ss-phrase-info{min-width:0}
.ss-phrase-info .english{display:block;color:#18354C;font-size:1.05rem;font-weight:690;line-height:1.42}
.ss-phrase-info .japanese{display:block;color:#5D7181;font-size:.91rem;line-height:1.5;margin-top:3px}
.ss-phrase-info .context{display:block;color:#7D8B96;font-size:.77rem;line-height:1.4;margin-top:3px}
.ss-phrase-actions{display:flex;align-items:stretch;gap:9px;margin-top:11px}
.ss-phrase-actions button{min-height:45px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 11px;border-radius:9px;cursor:pointer;font-family:inherit;font-size:.81rem;font-weight:730;line-height:1.18;transition:background .15s,border-color .15s}
.ss-phrase-actions .ss-show-fullscreen{flex:1;min-width:0;text-align:center;border:1px solid #C8D8E5;background:#EDF4F9;color:var(--indigo)}
.ss-phrase-actions .ss-show-fullscreen:hover{background:#DDEBF5;border-color:#8FAFC7}
.ss-phrase-actions .ss-inline-play{flex:0 0 auto;min-width:105px;border:1px solid #EBD4AD;border-radius:9px;background:#FFF7E8;color:#755127}
.ss-phrase-actions .ss-inline-play:hover,.ss-phrase-actions .ss-inline-play.playing{background:#FBEBCF}
.ss-phrase-actions button:focus-visible,.ss-back:focus-visible,.ss-top-link:focus-visible{outline:3px solid var(--indigo);outline-offset:3px}
.ss-search-label,.ss-chip-label{display:block;margin-bottom:9px;font-size:.80rem;font-weight:760;color:var(--indigo)}
.ss-search-wrap{display:flex;align-items:center;gap:11px;border:1px solid #CDD8E0;border-radius:11px;background:#fff;padding:0 15px;margin-bottom:22px}
.ss-search-wrap svg{color:#62788A;flex-shrink:0}
.ss-search-wrap input{width:100%;height:54px;font-size:.99rem;border:0;outline:0;background:transparent;color:#20364A}
.ss-search-wrap:focus-within{outline:2px solid var(--indigo);outline-offset:2px}
.ss-chips{display:flex;gap:7px;overflow:auto;padding:3px 0 13px;scrollbar-width:thin}
.ss-chip{border:1px solid #D2DDE5;border-radius:999px;background:#fff;color:#40596D;padding:9px 14px;font-size:.82rem;white-space:nowrap;cursor:pointer;font-weight:620}
.ss-chip.active{background:var(--indigo);color:#fff;border-color:var(--indigo)}
.ss-note{font-size:.79rem;color:#75818D;line-height:1.5;margin-top:23px}
.ss-sample-note{font-size:.75rem;color:#657583;line-height:1.45;margin:2px 0 13px}
.ss-empty{padding:24px 0;color:#76818C;font-size:.95rem}
.ss-foot-link{padding-top:23px}
.ss-foot-link a{color:var(--indigo);font-size:.95rem;font-weight:720;text-decoration:none}
.ss-venue{margin-top:26px}
.ss-venue h3{font-size:1.02rem;color:var(--indigo);margin:0 0 11px}
.page-view[hidden]{display:none!important}
.ss-show-view{position:fixed;inset:0;background:#fff;z-index:80;overflow:auto;display:flex;flex-direction:column}
.ss-show-top{position:sticky;top:0;background:#fff;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:63px;padding:10px max(18px,calc((100vw - 920px)/2));border-bottom:1px solid #E4E9EC;font-size:.69rem;letter-spacing:.12em;font-weight:780;color:#8B949D}
.ss-show-main{display:flex;flex:1;min-height:calc(100dvh - 64px);flex-direction:column;justify-content:space-between;padding:20px 24px 40px}
.ss-show-centered{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:310px;max-width:940px;margin:auto;width:100%}
#ss-jp{font-weight:760;font-size:clamp(2.1rem,7.3vw,4.9rem);letter-spacing:-.035em;line-height:1.47;margin:20px 0 29px;overflow-wrap:anywhere;color:#182B3B}
#ss-jp.long{font-size:clamp(1.9rem,6.1vw,3.6rem)}
#ss-jp.very-long{font-size:clamp(1.7rem,5.3vw,2.9rem)}
#ss-en{color:#5F6E7D;font-size:1rem}
.ss-show-rule{height:2px;width:46px;background:var(--signal);margin:0 auto 20px}
.ss-show-controls{text-align:center;max-width:540px;width:100%;margin:auto auto 0}
#ss-play{height:72px;width:min(100%,380px);border:0;border-radius:13px;background:var(--indigo);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:14px;font-size:1.13rem;font-weight:760;cursor:pointer}
#ss-play:hover{background:var(--indigo2)}
#ss-play:focus-visible{outline:3px solid var(--signal);outline-offset:3px}
#ss-audio-status{color:#75818D;font-size:.85rem;margin-top:14px}
@media(max-width:650px){
.ss-main{padding:34px 20px 70px}
.ss-header-inner{padding:10px 18px;min-height:58px}
.ss-main h1{font-size:clamp(2.25rem,10vw,3rem)}
.ss-lead{font-size:.94rem;margin-bottom:34px}
.ss-show-top{min-height:58px}
.ss-show-main{padding:20px 22px 26px;min-height:calc(100dvh - 58px)}
.ss-show-centered{min-height:260px}
#ss-play{height:66px}
}
@media(max-width:390px){
.ss-phrase-actions{gap:7px}
.ss-phrase-actions button{padding:9px 8px;gap:6px;font-size:.775rem}
.ss-phrase-actions .ss-inline-play{min-width:94px}
.ss-phrase-row{padding:13px}
}
@media(prefers-reduced-motion:reduce){.ss-phrase-actions button{transition:none}}
/* Audit response (2026-11-06): Quick Facts stack on small phones (B3) —
   label line above the value, full width. Last in the file so these rules
   win over the earlier <=520px two-column compaction. */
@media(max-width:560px){
.guide-section table.facts,.guide-section table.facts tbody,.guide-section table.facts tr,.guide-section table.facts td{display:block;width:100%}
.guide-section table.facts tr{padding:11px 0;border-bottom:1px solid var(--border)}
.guide-section table.facts td{border-bottom:none;padding:2px 0}
.guide-section table.facts td:first-child{width:100%;padding-bottom:1px}
.book-promo{grid-template-columns:56px 1fr;gap:14px;padding:16px}
.book-promo img{width:56px}
}

/* Map search actions (approved v2 design, 2026-11-07): in-page button in the
   "On this page" action stack + persistent floating MAP shortcut. */
.guide-toc .toc-action-stack{display:flex;flex-direction:column;gap:9px;width:272px;max-width:100%}
.guide-toc .toc-action-stack .toc-speak-action{width:100%;max-width:100%}
.guide-toc .toc-maps-action{display:flex;align-items:center;gap:11px;min-height:61px;padding:9px 12px;border:1px solid #D9E5EA;border-radius:11px;background:#FFFFFF;color:var(--indigo);text-decoration:none;transition:background .15s,border-color .15s}
.guide-toc .toc-maps-action:hover{background:#F5FAFC;border-color:#A9C4D1;text-decoration:none}
.guide-toc .toc-maps-action:focus-visible{outline:3px solid var(--indigo);outline-offset:3px}
.guide-toc .toc-maps-icon{display:inline-grid;place-items:center;flex:none;width:35px;height:35px;border-radius:50%;background:#EAF2F6;color:#345F7A}
.guide-toc .toc-maps-copy{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
.guide-toc .toc-maps-copy strong{font-size:.88rem;line-height:1.32;font-weight:740;letter-spacing:0;color:var(--indigo)}
.guide-toc .toc-maps-copy span{font-size:.72rem;line-height:1.37;color:#5D7182;font-weight:500}
.guide-toc .toc-maps-external{flex:none;align-self:center;display:inline-grid;place-items:center;color:#59758B}
@media(max-width:720px){.guide-toc .toc-action-stack{width:100%;max-width:none}}
@media(min-width:721px) and (max-width:850px){.guide-toc .toc-action-stack{width:242px}}
.jcg-map-fab{
  position:fixed;
  right:clamp(14px,2vw,24px);
  bottom:calc(20px + env(safe-area-inset-bottom,0px));
  z-index:40;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:94px;
  height:52px;
  padding:0 16px 0 13px;
  box-sizing:border-box;
  border:2px solid #F7FAFC;
  border-radius:999px;
  background:#20546E;
  color:#FFFFFF;
  box-shadow:0 3px 0 rgba(27,63,83,.14),0 7px 24px rgba(16,43,59,.28);
  text-decoration:none;
  font:700 12px/1 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  letter-spacing:.07em;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.jcg-map-fab svg{width:24px;height:24px;display:block;flex:none}
.jcg-map-fab .jcg-map-fab-label{display:block;white-space:nowrap}
.jcg-map-fab:hover{background:#153E55;box-shadow:0 4px 0 rgba(27,63,83,.14),0 9px 26px rgba(16,43,59,.35);transform:translateY(-2px)}
.jcg-map-fab:active{transform:translateY(0)}
.jcg-map-fab:focus-visible{outline:3px solid #F2AA3F;outline-offset:3px}
@media(max-width:720px){
  .jcg-map-fab{right:14px;bottom:calc(18px + env(safe-area-inset-bottom,0px));height:50px;min-width:90px;padding:0 14px 0 12px}
}
@media(max-width:340px){
  .jcg-map-fab{right:10px;bottom:calc(14px + env(safe-area-inset-bottom,0px));height:46px;min-width:82px;padding:0 11px;gap:5px;font-size:11px}
  .jcg-map-fab svg{width:21px;height:21px}
}
@media(prefers-reduced-motion:reduce){.jcg-map-fab{transition:none}}

/* MAP-07 mitigation (2026-11-07): on small screens keep the page footer clear
   of the always-visible floating MAP button. Button design unchanged. */
@media (max-width: 720px) {
  body:has(.jcg-map-fab) .site-footer { padding-bottom: 96px; }
}


/* ===== v14 revision (2026-11-07): B7 taxonomy browser ===== */
/* Navigation prototype — scoped changes; original site.css remains intact. */

.tax-proto-band strong{color:#244c71}
.tax-overview{border-bottom:1px solid var(--border);padding:28px 0 26px}
.tax-search-controls{padding:26px 0 5px}
.tax-search-controls .browse-kicker,.tax-section-title .browse-kicker{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#63788a;font-weight:730;margin:0 0 7px}
.tax-search-controls .search-label{font-size:.92rem;margin-bottom:9px}
.tax-search-controls .search-wrap{max-width:none}
.tax-search-controls .searchbox{max-width:none;padding-right:45px}
.tax-clear-search{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:transparent;border:0;border-radius:5px;color:#567087;width:35px;height:35px;font-size:1.45rem;cursor:pointer}
.tax-section-title{display:flex;justify-content:space-between;gap:15px;align-items:end;margin:0 0 17px}
.tax-section-title h2{font-size:1.58rem;letter-spacing:-.035em;font-weight:740;margin:0}
.tax-reset{background:none;border:0;color:#2a587b;font-weight:680;font-size:.79rem;cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:6px 0}
.tax-top-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.tax-top{position:relative;display:grid;grid-template-columns:47px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:12px;min-height:104px;border:1px solid #dce4ea;background:#fafbfd;border-radius:11px;padding:16px 15px;color:var(--ink);text-align:left;box-shadow:0 1px 2px #10202b06;transition:background .18s,border-color .18s,transform .18s}
button.tax-top{cursor:pointer}
button.tax-top:hover{background:#f1f6f9;border-color:#a7bfce;transform:translateY(-1px)}
button.tax-top[aria-pressed="true"]{background:#edf4f8;border:2px solid #386482;padding:15px 14px}
.tax-icon{grid-row:1 / 3;display:flex;justify-content:center;align-items:center;width:44px;height:44px;border-radius:12px;background:var(--tone-bg,#eff3f6);color:var(--tone,#53728c)}
.tax-tone-food{--tone:#ae593d;--tone-bg:#faede8}
.tax-tone-shop{--tone:#9b6c3a;--tone-bg:#f8f0e6}
.tax-tone-hotel{--tone:#40658b;--tone-bg:#e8f0f6}
.tax-tone-transport{--tone:#42797c;--tone-bg:#e8f4f2}
.tax-tone-health{--tone:#946c83;--tone-bg:#f5edf2}
.tax-tone-entertain{--tone:#6b62a0;--tone-bg:#efedf8}
.tax-tone-culture{--tone:#5b7688;--tone-bg:#edf2f5}
.tax-tone-money{--tone:#688d67;--tone-bg:#ecf4eb}
.tax-tone-services{--tone:#74828a;--tone-bg:#f0f3f5}
.tax-name{grid-column:2;grid-row:1;align-self:end;font-size:.98rem;line-height:1.22;font-weight:720;letter-spacing:-.015em}
.tax-count{grid-column:2;grid-row:2;align-self:start;color:#6f8190;font-size:.74rem;line-height:1.3;margin-top:6px}
.tax-disabled{opacity:.64;background:#fafbfc}
.tax-disabled .tax-icon{filter:grayscale(.5)}
.tax-subpanel{border:1px solid #dae3ea;background:#f8fafc;border-radius:13px;padding:21px 22px 23px;margin:19px 0 0;scroll-margin-top:20px}
.tax-panel-heading{display:flex;justify-content:space-between;align-items:end;gap:10px;margin-bottom:15px;padding-bottom:14px;border-bottom:1px solid #dbe3e9}
.tax-panel-heading .tax-mini{font-size:.65rem;letter-spacing:.095em;font-weight:760;color:#6b7c8b;margin:0 0 5px}
.tax-panel-heading h3{font-size:1.48rem;letter-spacing:-.03em;margin:0}
.tax-alltop{background:none;border:0;padding:6px 0;color:#2a587b;font-size:.78rem;font-weight:690;cursor:pointer;text-align:right}
.tax-panel-intro{font-size:.82rem;color:#536778;margin:0 0 17px;line-height:1.5}
.tax-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 29px}
.tax-subgroup h4{font-size:.77rem;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:#65798a;margin:0 0 9px}
.tax-leaf-grid{display:grid;grid-template-columns:1fr;gap:6px}
.tax-leaf{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e0e7ed;border-radius:7px;padding:9px 11px;min-height:42px;background:white;color:#263a4a;font-size:.865rem;line-height:1.24;text-align:left;cursor:pointer}
.tax-leaf:hover{border-color:#9bb8ca;background:#f2f7fa}
.tax-leaf[aria-pressed="true"]{background:#e2eff7;border:1.5px solid #59829c;padding:8.5px 10.5px;font-weight:690}
.tax-leaf-num{font-size:.76rem;color:#8192a0;flex:none;font-variant-numeric:tabular-nums}
.tax-style-area{margin-top:24px;padding-top:17px;border-top:1px solid #dbe3e9}
.tax-style-area h4{font-size:.93rem;margin:0 0 12px;font-weight:740}
.tax-style-list{display:flex;flex-wrap:wrap;gap:9px}
.tax-style{border:1px solid #c9d7e2;border-radius:999px;background:#fff;color:#314b60;font-size:.81rem;padding:9px 13px;min-height:39px;cursor:pointer;font-weight:610}
.tax-style span{color:#6e8190;margin-left:4px;font-size:.74rem}
.tax-style:hover{background:#edf5f9}
.tax-style[aria-pressed="true"]{background:#244c71;color:white;border-color:#244c71}.tax-style[aria-pressed="true"] span{color:#dceafa}
.tax-quick-section{padding:23px 0 0}
.tax-quick-head{display:flex;align-items:baseline;gap:13px;margin-bottom:11px}
.tax-quick-head h3{font-size:1rem;margin:0;font-weight:750}.tax-quick-head span{font-size:.77rem;color:#6f8291}
.tax-quick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.tax-quick{min-height:40px;display:flex;align-items:center;justify-content:center;gap:6px;background:#fff;border:1px solid #d7e1e8;border-radius:7px;text-align:center;padding:8px 6px;color:#385a71;font-size:.75rem;font-weight:620;line-height:1.25;cursor:pointer}
.tax-quick span{font-size:.8rem;color:#7b9aaf}
.tax-quick:hover{background:#f1f6fa;border-color:#9db7c6}
.tax-quick.disabled{flex-direction:column;gap:0;background:#fafbfc;color:#9aa9b4;border-style:dashed;cursor:default}
.tax-quick.disabled small{font-size:.57rem;font-weight:500}
.directory-heading.tax-result-head{padding:25px 0 12px;align-items:end;gap:14px}
.tax-result-path{font-size:.74rem;color:#667b8b;margin:0 0 4px;line-height:1.4}
.tax-result-head h2{font-size:1.42rem}
.tax-result-tools{display:flex;align-items:end;flex-direction:column;gap:9px}
.tax-result-tools .count{font-size:.82rem}
.tax-result-head+.grid .card[hidden]{display:none}
@media(max-width:950px){
 .tax-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .tax-top{padding:14px 11px;column-gap:9px;grid-template-columns:40px 1fr;min-height:99px}
 .tax-icon{width:38px;height:38px}
 .tax-icon svg{width:25px;height:25px}
 .tax-name{font-size:.9rem}
}
@media(max-width:600px){
 .tax-overview{padding:22px 0}
 .tax-search-controls{padding:20px 0 8px}
 .tax-section-title{margin-bottom:12px;align-items:center}
 .tax-section-title h2{font-size:1.35rem}
 .tax-reset{font-size:.73rem;max-width:100px;text-align:right;line-height:1.25}
 .tax-top-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .tax-top{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:5px;min-height:113px;padding:11px 5px 8px;text-align:center;border-radius:9px}
 button.tax-top[aria-pressed="true"]{padding:10px 4px 7px}
 .tax-icon{width:38px;height:38px;border-radius:10px}
 .tax-icon svg{width:24px;height:24px}
 .tax-name{font-size:.76rem;line-height:1.24;min-height:30px;display:flex;align-items:center;justify-content:center}
 .tax-count{font-size:.65rem;line-height:1.2;margin-top:auto}
 .tax-subpanel{padding:14px 12px;margin-top:12px}
 .tax-panel-heading{margin-bottom:12px}
 .tax-panel-heading h3{font-size:1.25rem}
 .tax-alltop{font-size:.72rem;max-width:105px}
 .tax-groups{grid-template-columns:1fr;gap:16px}
 .tax-subgroup h4{font-size:.73rem;margin-bottom:6px}
 .tax-leaf-grid{grid-template-columns:1fr 1fr;gap:6px}
 .tax-leaf{font-size:.755rem;padding:9px 8px;min-height:51px}
 .tax-leaf[aria-pressed="true"]{padding:8.5px 7.5px}
 .tax-leaf-num{font-size:.7rem}
 .tax-style-list{gap:7px}
 .tax-style{font-size:.75rem;padding:8px 10px}
 .tax-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .tax-quick{min-height:38px;font-size:.71rem}
 .tax-quick-head span{font-size:.73rem}
 .directory-heading.tax-result-head{align-items:end}
 .tax-result-head h2{font-size:1.22rem}
 .tax-result-tools{gap:6px}
 .tax-result-tools .count{font-size:.74rem}
}
@media(max-width:365px){
 .tax-top{min-height:119px}
 .tax-name{font-size:.72rem}
 .tax-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.tax-top{transition:none}}

/* ===== v14 revision: hierarchy v2 ===== */
/* V2 visual hierarchy: search > category navigation > subcategories > quick links > guides. */
:root{--prototype-ink:#17344b;--prototype-accent:#c36b44;}
.tax-search-controls{margin:24px 0 26px;padding:23px 25px 25px;border-radius:12px;background:#193b57;color:white;box-shadow:0 3px 10px #12344d11}
.tax-search-controls .browse-kicker{color:#afd0e5;font-size:.69rem;letter-spacing:.11em;margin-bottom:7px}
.tax-search-controls .search-label{display:block;color:#fff;font-size:1.09rem;line-height:1.3;font-weight:730;margin-bottom:12px}
.tax-search-controls .search-wrap{max-width:100%}
.tax-search-controls .searchbox{background:#fff;color:#1c3348;border:2px solid #fff;border-radius:7px;min-height:52px;font-size:.93rem;box-shadow:0 1px 1px #00111a30}
.tax-search-controls .searchbox:focus{outline:3px solid #f0af65;outline-offset:2px}
.tax-search-controls .searchbox::placeholder{color:#687f90;opacity:1}
.tax-search-controls .search-icon{stroke:#2e5977}
.tax-search-controls .tax-clear-search{color:#304e64;background:#f2f6f8}
.tax-overview{background:#f5f7f8;border:1px solid #e2e9ef;border-radius:12px;padding:22px 23px 19px;margin:0 0 27px}
.tax-section-title{margin-bottom:16px;padding-left:13px;border-left:4px solid #bd6b48}
.tax-section-title .browse-kicker{color:#a15636;font-size:.7rem}
.tax-section-title h2{font-size:1.47rem;color:#17344b}
.tax-reset{color:#234a6b}
.tax-top-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tax-top{grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;min-height:74px;padding:10px 12px;border:1px solid #d6e0e8;border-radius:8px;background:white;box-shadow:none}
button.tax-top:hover{background:#eaf3f9;border-color:#94b0c2;transform:none}
button.tax-top[aria-pressed="true"]{background:#e9f3fa;border:2px solid #356c94;padding:9px 11px;box-shadow:inset 0 0 0 1px #fff}
.tax-icon{grid-row:1/3;width:33px;height:33px;border-radius:8px}
.tax-icon svg{width:20px;height:20px}
.tax-name{grid-column:2;grid-row:1;align-self:end;font-size:.89rem;line-height:1.18;font-weight:750;letter-spacing:-.018em}
.tax-count{grid-column:2;grid-row:2;align-self:start;margin-top:3px;font-size:.68rem;line-height:1.1;color:#62798b}
.tax-disabled{background:#f6f7f7;opacity:.72;border-style:dashed}
.tax-disabled .tax-count{color:#7e8b96}
.tax-subpanel{margin-top:16px;padding:18px;border-radius:9px;border:1px solid #bfd2e0;border-top:4px solid #386b8e;background:#e9f2f8}
.tax-panel-heading{border-bottom:1px solid #baccd9}
.tax-panel-heading .tax-mini{color:#3a6989}
.tax-panel-heading h3{color:#163b57}
.tax-panel-intro{color:#3b5a70}
.tax-groups{gap:14px}
.tax-subgroup{background:#fff;border:1px solid #d1e0e9;border-radius:8px;padding:13px 14px}
.tax-subgroup h4{color:#285c7b;font-size:.74rem;padding-bottom:7px;border-bottom:2px solid #d7e7ef;margin:0 0 4px}
.tax-leaf-grid{gap:0}
.tax-leaf{background:transparent;border:0;border-bottom:1px solid #e3ebf1;border-radius:0;padding:9px 5px;min-height:39px;color:#26465d;box-shadow:none}
.tax-leaf:hover{background:#f0f7fb;border-color:#adc4d4}
.tax-leaf[aria-pressed="true"]{background:#dff0f8;border:0;border-bottom:2px solid #397b9e;padding:9px 5px;font-weight:760}
.tax-leaf-num{color:#527d96;font-size:.72rem}
.tax-style-area{background:#f5f7ef;border-left:3px solid #91ab76;border-top:0;border-radius:0 6px 6px 0;padding:14px 15px;margin-top:15px}
.tax-style-area h4{color:#496337;margin-bottom:10px}
.tax-style{background:#fff;border-color:#bbccab;color:#3a5b36}
.tax-style:hover{background:#e9f2e0;border-color:#86a77c}
.tax-style[aria-pressed="true"]{background:#42664d;border-color:#42664d}
.tax-quick-section{padding:15px 16px 17px;margin-top:18px;border:1px solid #f0dec1;border-left:4px solid #d99841;border-radius:7px;background:#fff9ef}
.tax-quick-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.tax-quick-head h3{font-size:.91rem;color:#7f4f20}
.tax-quick-head span{color:#8f7557}
.tax-quick-grid{display:flex;flex-wrap:wrap;gap:7px}
.tax-quick{min-height:34px;padding:7px 10px;border:1px solid #e7d3b8;border-radius:999px;font-size:.78rem;line-height:1.18;background:#fff;color:#725126;justify-content:flex-start}
.tax-quick span{color:#a88048}
.tax-quick:hover{background:#fff0d7;border-color:#bc965f}
.tax-quick.disabled{display:inline-flex;flex-direction:row;gap:6px;border-style:dashed;background:transparent;color:#ae987c}
.directory-heading.tax-result-head{margin-top:27px;padding:19px 0 13px;border-top:4px solid #254b6c;border-bottom:1px solid #c9d8e1}
.tax-result-head h2{color:#183a56;font-size:1.44rem}
.tax-result-path{color:#47718a;font-weight:650}
.tax-result-tools .count{color:#375871;font-weight:600}
@media(max-width:950px){
 .tax-top{min-height:73px;grid-template-columns:32px minmax(0,1fr);padding:9px 10px;column-gap:9px}
 .tax-icon{width:32px;height:32px}
 .tax-name{font-size:.81rem}
 button.tax-top[aria-pressed="true"]{padding:8px 9px}
}
@media(max-width:600px){
 .tax-search-controls{margin:18px 0 22px;padding:18px 16px 19px;border-radius:9px}
 .tax-search-controls .search-label{font-size:1rem;margin-bottom:10px}
 .tax-search-controls .searchbox{min-height:49px;font-size:.89rem}
 .tax-overview{margin:0 0 24px;padding:17px 12px 14px;border-radius:8px}
 .tax-section-title{padding-left:11px;margin-bottom:13px;gap:8px}
 .tax-section-title h2{font-size:1.19rem}
 .tax-reset{max-width:95px;font-size:.7rem}
 .tax-top-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .tax-top{display:grid;grid-template-columns:29px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:7px;min-height:64px;padding:8px 7px;border-radius:7px;text-align:left;gap:0 7px}
 button.tax-top[aria-pressed="true"]{padding:7px 6px}
 .tax-icon{width:29px;height:29px;border-radius:7px;grid-row:1/3;grid-column:1}
 .tax-icon svg{width:18px;height:18px}
 .tax-name{grid-column:2;grid-row:1;align-self:end;display:block;min-height:0;font-size:.79rem;line-height:1.16;text-align:left;font-weight:750;overflow-wrap:normal}
 .tax-count{grid-column:2;grid-row:2;align-self:start;text-align:left;font-size:.64rem;line-height:1.2;margin-top:3px}
 .tax-subpanel{margin-top:13px;padding:11px 10px}
 .tax-panel-heading{padding-bottom:10px}
 .tax-panel-heading h3{font-size:1.24rem}
 .tax-panel-intro{margin-bottom:12px;font-size:.78rem}
 .tax-groups{gap:10px}
 .tax-subgroup{padding:10px 11px}
 .tax-subgroup h4{font-size:.7rem}
 .tax-leaf-grid{grid-template-columns:1fr;gap:0}
 .tax-leaf{min-height:34px;padding:8px 4px;font-size:.82rem}
 .tax-leaf[aria-pressed="true"]{padding:8px 4px}
 .tax-style-area{padding:10px 11px}
 .tax-style{font-size:.74rem;padding:7px 9px;min-height:34px}
 .tax-quick-section{padding:12px;margin-top:13px}
 .tax-quick-grid{display:flex;gap:6px}
 .tax-quick{min-height:32px;font-size:.73rem;padding:7px 9px}
 .directory-heading.tax-result-head{margin-top:24px;padding:15px 0 10px}
 .tax-result-head h2{font-size:1.3rem}
}
@media(max-width:360px){
 .tax-top{min-height:67px;padding:7px 6px;grid-template-columns:27px minmax(0,1fr);column-gap:6px}
 .tax-icon{width:27px;height:27px}
 .tax-name{font-size:.74rem}
 .tax-count{font-size:.61rem}
 button.tax-top[aria-pressed="true"]{padding:6px 5px}
}





/* ===== v14 revision: B6 soft search shadow (approved) ===== */

/* B6 / 2026-11-07: evenly lit search panel, Cloudflare-dashboard-inspired restraint. */
.tax-search-controls{
  background:#fff;
  color:#17344b;
  border:1px solid #e3e7eb;
  border-radius:14px;
  box-shadow:0 0 0 3px rgba(31,48,65,.024),0 0 16px rgba(31,48,65,.092),0 3px 12px rgba(31,48,65,.035);
}
.tax-search-controls .browse-kicker{color:#6f7f8b;}
.tax-search-controls .search-label{color:#253c4d;}
.tax-search-controls .searchbox{
  background:#fff;
  color:#21384b;
  border:1px solid #d7e0e7;
  border-radius:10px;
  box-shadow:0 1px 3px rgba(31,48,65,.035);
}
.tax-search-controls .searchbox:hover{border-color:#b5c7d5;}
.tax-search-controls .searchbox:focus{
  border-color:#7597af;
  outline:2px solid rgba(89,134,166,.18);
  outline-offset:2px;
  background:#fff;
}
.tax-search-controls .search-icon{stroke:#647d91;}
.tax-search-controls .searchbox::placeholder{color:#7b8b98;}
.tax-search-controls .tax-clear-search{color:#406681;background:#edf4f8;}
@media(max-width:600px){.tax-search-controls{border-radius:12px;padding:16px 16px 17px;}.tax-search-controls .search-label{margin-bottom:9px;}}

/* v14 revision additions: photo pairs, credits page, small contract fixes. */
.tax-search-controls .search-wrap{position:relative}
.tax-result-path{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#63788a;font-weight:700;margin:0 0 4px}
.guide-photo-pair{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;margin:24px 0 20px;max-width:940px;align-items:start}
.guide-photo-pair .guide-photo{max-width:none;margin:0;min-width:0}
.guide-photo-pair .guide-photo img{width:100%;height:auto;object-fit:contain;background:#f4f6f8;border-radius:10px}
.guide-photo-pair .guide-photo figcaption{line-height:1.6;overflow-wrap:anywhere}
@media(max-width:600px){.guide-photo-pair{grid-template-columns:minmax(0,1fr);gap:18px;margin-top:20px}.guide-photo-pair .guide-photo img{max-height:340px;object-fit:contain}}
.credits-list{margin:18px 0;padding-left:1.2em;line-height:1.65}
.credits-list li{margin-bottom:7px;overflow-wrap:anywhere}

/* ===== v14 revision v2 (2026-11-08): growing-count note + natural panel heights ===== */
.tax-search-controls .guides-growing{margin:12px 0 0;font-size:14px;line-height:1.45;font-weight:500;color:var(--soft)}
.tax-search-controls .guides-growing strong{font-weight:700;font-variant-numeric:tabular-nums}
.tax-groups{align-items:start}

/* Contact entry points — confined to navigation and guide feedback aside. */
.guide-feedback{margin:28px 0 22px;padding:18px 20px;border:1px solid var(--border);border-left:3px solid var(--signal);border-radius:9px;background:var(--light);display:flex;justify-content:space-between;align-items:center;gap:16px}
.guide-feedback strong{font-size:.97rem;font-weight:750;color:var(--ink)}
.guide-feedback p{margin:5px 0 0;font-size:.85rem;color:var(--soft);line-height:1.5}
.guide-feedback a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;flex-shrink:0;padding:9px 13px;border:1px solid var(--indigo);border-radius:7px;color:var(--indigo);background:white;text-decoration:none;font-size:.85rem;font-weight:700}
.guide-feedback a:hover{background:var(--signal-soft)}
@media(max-width:650px){.site-header .header-inner{flex-wrap:wrap;row-gap:3px;padding-top:9px;padding-bottom:10px}.site-header .site-nav{width:100%;justify-content:space-between;gap:8px;flex-wrap:nowrap}.site-header .site-nav a{font-size:.8rem;padding:4px 0}}
@media(max-width:520px){.guide-feedback{flex-direction:column;align-items:stretch;padding:16px}.guide-feedback a{width:100%}}

/* Search improvement proof-of-concept (2026-11-08), home page only. */
/* A custom clear button already exists; suppress the native WebKit x. */
#guide-search::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.jcg-search-suggestions[hidden]{display:none!important}
.jcg-search-suggestions{max-width:780px;margin-top:11px;padding:13px 15px;border:1px solid #D3DFE8;border-radius:9px;background:#fff;box-shadow:0 7px 20px rgba(31,59,79,.07)}
.jcg-search-suggestions-heading{font-size:.78rem;font-weight:750;color:#445C70;margin:0 0 7px}
.jcg-search-suggestions-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.jcg-search-suggestion{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #EAF0F3;text-decoration:none;color:#1B3F60;font-size:.86rem}
.jcg-search-suggestion strong{font-weight:700;overflow-wrap:anywhere}
.jcg-search-suggestion span{font-size:.73rem;color:#6C7C8B;white-space:normal;text-align:right}
.jcg-search-suggestion:hover strong,.jcg-search-suggestion:focus-visible strong{text-decoration:underline;text-underline-offset:3px}
.jcg-search-all{padding:12px 0 2px;background:none;border:0;color:#27587E;font-size:.82rem;font-weight:720;cursor:pointer;text-align:left}
.jcg-search-all:hover{text-decoration:underline;text-underline-offset:3px}
.jcg-search-empty-tip{font-size:.84rem;color:#5B6D7B;margin:5px 0 2px;line-height:1.6}
@media(max-width:620px){.jcg-search-suggestions-list{grid-template-columns:1fr}.jcg-search-suggestion{padding:8px 0}.jcg-search-suggestions{padding:12px 14px}}

/* ===== Search improvement v2: first-class genre suggestions and results ===== */
.jcg-genre-results[hidden]{display:none!important}
.jcg-genre-results{margin:24px 0 12px;padding:17px;border:1px solid #d9e5ed;border-radius:12px;background:#f7fafc}
.jcg-search-suggestions .jcg-genre-group{margin-bottom:13px}
.jcg-search-suggestions .jcg-genre-group+.jcg-search-suggestions-heading{padding-top:10px;border-top:1px solid #e5edf2}
.jcg-genre-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.jcg-genre-results .jcg-genre-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.jcg-genre-option{display:flex;justify-content:space-between;align-items:center;gap:8px;min-width:0;padding:9px 11px;border:1px solid #d8e6ef;border-radius:8px;background:#f9fcfe;color:#183e5b;text-align:left;cursor:pointer;font:inherit}
.jcg-genre-option:hover,.jcg-genre-option:focus-visible{border-color:#8caec4;background:#eef6fa;outline-offset:2px}
.jcg-genre-option-main{display:flex;flex-direction:column;min-width:0;gap:3px}
.jcg-genre-option-main strong{font-size:.83rem;line-height:1.35;overflow-wrap:anywhere}
.jcg-genre-option-main small{font-size:.69rem;color:#637889;line-height:1.35}
.jcg-genre-option-count{flex-shrink:0;color:#4c6a7f;font-size:.69rem;white-space:nowrap}
.jcg-search-suggestion{align-items:start}
.jcg-search-suggestion span{max-width:48%;line-height:1.35}
.tax-result-head h2:focus{outline:2px solid #779db5;outline-offset:3px}
@media(max-width:800px){.jcg-genre-results .jcg-genre-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.jcg-genre-list,.jcg-genre-results .jcg-genre-list{grid-template-columns:minmax(0,1fr)}.jcg-genre-results{margin:18px 0 10px;padding:13px}.jcg-genre-option{padding:9px 10px}}

/* Search v3: Enter/Search commits results; preview suggestions are a distinct state. */
.tax-search-controls .searchbox{padding-right:150px}
.tax-search-controls .tax-clear-search{right:94px}
.jcg-search-submit{position:absolute;right:7px;top:50%;transform:translateY(-50%);height:38px;min-width:79px;padding:0 10px;border:0;border-radius:6px;background:#244c71;color:#fff;font-size:.82rem;font-weight:750;cursor:pointer}
.jcg-search-submit:hover{background:#173856}
.jcg-search-submit:focus-visible{outline:3px solid #f0af65;outline-offset:2px}
@media(max-width:380px){.tax-search-controls .searchbox{padding-right:129px}.tax-search-controls .tax-clear-search{right:78px}.jcg-search-submit{min-width:67px;font-size:.77rem;padding:0 7px}}


