/* F10: neutral reading text; green interaction. Loaded last on every page.
   Color !important on controls deliberately resolves legacy page-specific rules.
   Images, article wording, destinations and behaviors are not changed. */
body.site-theme{
 --ink:#2c302e;--muted:#59605c;--gold:#4d5550;--green:#303733;
 --link:#246344;--link-hover:#17472f;--link-wash:#f1f6f2;
 color:var(--ink);
}
body.site-theme :is(.reader-context,.reader-nav-label,.reader-chapter-link>span,.reader-position,.scene-note,.topic-tag,.life-catalog-meta,.life-card-excerpt,.life-topic-section header p){color:var(--muted);}
body.site-theme :is(a,button,summary,select){color:var(--link)!important;}
body.site-theme :is(a,button,summary,select) :is(span,strong,small,em,b,i,p,h1,h2,h3,h4,div){color:inherit!important;}
body.site-theme a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.24em;text-decoration-skip-ink:auto;}
body.site-theme a:hover{color:var(--link-hover)!important;}
body.site-theme :is(a,button,summary,select):focus-visible{outline:3px solid #8c5f17;outline-offset:4px;}
body.site-theme a.button,body.site-theme button{background:var(--link);color:#fff!important;text-decoration:none;border:1px solid var(--link);min-height:44px;}
body.site-theme :is(a.button,button):hover{background:var(--link-hover);border-color:var(--link-hover);color:#fff!important;}
body.site-theme select{background:#fff;border:1px solid var(--link);min-height:44px;}
body.site-theme summary{min-height:44px;cursor:pointer;}
body.site-theme summary::marker,body.site-theme .reader-menu>summary>span:first-child::before{color:var(--link);}
body.site-theme :is(a[aria-current],a.selected,a.active){font-weight:600;}
body.site-theme .desktop-nav a[aria-current="page"]{border-bottom:2px solid var(--link);}
body.site-theme .mobile-menu nav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px;}
body.site-theme :is(.reader-nav a[aria-current],.life-browser-controls nav a[aria-current]){border-left-color:var(--link);background:var(--link-wash);}
body.site-theme :is(.tabs a.selected,.tabs a.active){border-color:var(--link);}
/* Standalone text links keep an underline, without a second rule underneath. */
body.site-theme .text-link{border-bottom:0;text-decoration:underline;}
body.site-theme .story-chapters>a{min-height:44px;padding-block:.3rem;}
/* Cards and rows have a visible arrow plus their complete clickable shape. */
body.site-theme :is(.life-photo-card,.route,.life-card,.timely>a,.plain-links a,.heading-link,.social-links a){text-decoration:none;}
body.site-theme .life-photo-card>div{border-bottom:0;padding-bottom:1.1rem;}
body.site-theme .life-photo-card strong,body.site-theme .route strong{text-decoration:none;}
body.site-theme .route{border-bottom:0;}
body.site-theme .plain-links a{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;}
body.site-theme .link-arrow{font-family:var(--sans);font-size:.9em;white-space:nowrap;flex-shrink:0;}
body.site-theme .plain-links .link-arrow{font-size:1.1rem;}
body.site-theme .think-act-grid h3{text-wrap:balance;}
body.site-theme .life-card:hover{border-color:var(--link);}


body.site-theme .media-full{color:var(--link)!important;}
/* Navigation is recognizable as navigation; preserve the current-page marker. */
body.site-theme :is(.brand,.desktop-nav a,.mobile-menu nav a){text-decoration:none;}
body.site-theme .desktop-nav a{min-height:44px;}
body.site-theme .desktop-nav a:hover{border-color:var(--link);}
body.site-theme .mobile-menu nav a{border-bottom:0;min-height:44px;}
body.site-theme .mobile-menu summary{border:1px solid var(--link);padding:.5rem .7rem;border-radius:3px;}
body.site-theme :is(.footer-links a,.footer-small a){display:flex;align-items:center;min-height:44px;}
body.site-theme .breadcrumb{align-items:center;line-height:1.6;}
body.site-theme .breadcrumb>*{display:inline-flex;align-items:center;min-height:44px;line-height:inherit;}
body.site-theme .breadcrumb>span{color:var(--muted);}
body.site-theme .review-bar .wrap{align-items:center;}
body.site-theme .review-bar a{display:inline-flex;align-items:center;min-height:44px;}
/* Monochrome service marks: geometry and existing accessible names are retained. */
body.site-theme .social-label{text-decoration:underline;}
@media(forced-colors:active){
 body.site-theme :is(a,summary,select){color:LinkText!important;}
 body.site-theme :is(a.button,button){background:ButtonFace;color:ButtonText!important;border-color:ButtonText;}
 body.site-theme :is(a,button,summary,select):focus-visible{outline-color:Highlight;}
 body.site-theme .home-block:focus-visible .section-head h2{outline-color:Highlight;}
}
body.site-theme .desktop-nav a.active{border-bottom-color:var(--link);}

/* F13: service marks keep their original pixels; only text links use site green. */
body.site-theme .social-item{display:flex;flex-wrap:wrap;align-items:center;gap:0 .35rem;max-width:100%;}
body.site-theme .social-links .social-item>a{display:inline-flex;align-items:center;gap:16px;min-height:44px;padding:7px 0;text-decoration:none;}
body.site-theme .social-brandmark{display:block;flex:0 0 30px;width:30px;height:30px;object-fit:contain;background:#fff;filter:none;opacity:1;forced-color-adjust:none;}
body.site-theme .social-item>.social-external{color:var(--muted);text-decoration:none;margin:0;font-weight:400;}
body.site-theme .site-footer :is(.footer-links a,.footer-small a){font-weight:500;}

/* F14: every page shares the homepage neutral header brand color. */
body.site-theme .site-header a.brand{color:var(--ink)!important;}
@media(forced-colors:active){body.site-theme .site-header a.brand{color:LinkText!important;}}

/* F14: stable link cues, pale green hover/focus, no size or weight changes. */
body.site-theme{--link-highlight:#edf4ef;}
body.site-theme :is(.footer-links a,.footer-small a){width:fit-content;max-width:100%;}
body.site-theme a:not(.brand,.button,.skip):not(.social-links a):focus-visible{background-color:var(--link-highlight);color:var(--link-hover)!important;}
@media(hover:hover){
body.site-theme a:not(.brand,.button,.skip):not(.social-links a):hover{background-color:var(--link-highlight);}
body.site-theme .social-links a:hover .social-label{background-color:var(--link-highlight);color:var(--link-hover)!important;}
}
body.site-theme .social-links a:focus-visible .social-label{background-color:var(--link-highlight);color:var(--link-hover)!important;}
/* Navigation, image cards and link rows keep their normal decoration. */
body.site-theme :is(.brand,.desktop-nav a,.mobile-menu nav a,.plain-links a,.heading-link,.timely>a,.life-photo-card,.route,.life-card,.meguri-issue-card,.social-links a):is(:hover,:focus-visible){text-decoration:none;}
body.site-theme :is(.life-photo-card,.route):is(:hover,:focus-visible) strong{text-decoration:none;}
body.site-theme.home-page .records-home a.record-card:focus-visible{background:var(--link-highlight);}
@media(hover:hover){body.site-theme.home-page .records-home a.record-card:hover{background:var(--link-highlight);}}
@media(forced-colors:active){
 body.site-theme a:not(.brand,.button,.skip):not(.social-links a):is(:hover,:focus-visible){background-color:Canvas;color:LinkText!important;}
 body.site-theme .social-links a:is(:hover,:focus-visible) .social-label{background-color:Canvas;color:LinkText!important;}
 body.site-theme.home-page .records-home a.record-card:is(:hover,:focus-visible){background:Canvas;}
}

/* F14: category navigation and footer use grouping instead of repeated rules. */
body.site-theme .tabs{border:0;gap:.5rem;margin-bottom:2rem;}
body.site-theme .tabs a{display:inline-flex;align-items:center;justify-content:center;gap:.4em;min-height:44px;padding:.6rem 1rem;border:0;border-radius:4px;text-decoration:none;font-weight:500;}
body.site-theme .tabs a:is(:hover,:focus-visible){text-decoration:none;}
body.site-theme .tabs a[aria-current="page"]{background:var(--link-highlight);color:var(--ink)!important;font-weight:600;}
body.site-theme .tabs .category-check{font-size:.85em;line-height:1;}
body.site-theme .site-footer :is(.footer-links a,.footer-small a,.social-label),
body.site-theme .site-footer :is(.footer-links a,.footer-small a):is(:hover,:focus-visible){text-decoration:none;border-bottom:0;}
body.site-theme .site-footer .footer-links a[aria-current]{font-weight:600;}
@media(max-width:600px){
 body.site-theme .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-bottom:1.5rem;}
}
@media(forced-colors:active){
 body.site-theme .tabs a[aria-current="page"]{background:Canvas;color:CanvasText!important;}
}

/* F14: onward choices are compact, fully clickable cards. */
body.site-theme .onward>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1rem;}
body.site-theme .onward>div>a.route{grid-column:auto;display:grid;grid-template-columns:minmax(0,1fr) 1.25rem;align-items:center;gap:1rem;padding:1.2rem 1.4rem;border:1px solid #a6bbb0;border-radius:4px;min-height:44px;text-decoration:none;background:#fff;}
body.site-theme .onward>div>a.route small{color:var(--muted)!important;}
body.site-theme .onward>div>a.route>span[aria-hidden]{font-family:var(--sans);font-size:1.25rem;}
body.site-theme .onward>div>a.route:is(:hover,:focus-visible){border-color:var(--link);text-decoration:none;}
body.site-theme .onward>div>a.route:focus-visible{background:var(--link-highlight);}
@media(hover:hover){body.site-theme .onward>div>a.route:hover{background:var(--link-highlight);}}
@media(max-width:600px){body.site-theme .onward>div{grid-template-columns:1fr;}body.site-theme .onward>div>a.route{padding:1rem;}}
@media(forced-colors:active){
 body.site-theme .onward>div>a.route{border-color:LinkText;background:Canvas;}
 body.site-theme .onward>div>a.route small{color:CanvasText!important;}
 body.site-theme .onward>div>a.route:is(:hover,:focus-visible){background:Canvas;border-color:LinkText;}
}
