/* Shared typography; native REHub review markup, colored headings and scores remain intact. */
body.tbog-site{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.75}
.tbog-site .rh-outer-wrap{background:var(--paper);box-shadow:none;max-width:none;margin:0}
.tbog-site .post h1,.tbog-site .rh-post-wrapper h1,.tbog-site .page-title,.tbog-site .rh_page__title{font-family:var(--serif);font-weight:600;letter-spacing:-.03em;line-height:1.18}
body.tbog-site .rh_woo_layout_inimage h1,body.tbog-site .rh-post-wrapper h1,body.tbog-site .post h1{font-family:var(--serif);font-weight:600;letter-spacing:-.03em;line-height:1.18}
body.tbog-site .title_single_area h1{font-family:var(--serif)!important;font-weight:600;letter-spacing:-.03em;line-height:1.18}
.tbog-site .tbog-table-scroll{max-width:100%;overflow-x:auto;margin:1.25em 0;-webkit-overflow-scrolling:touch}
.tbog-site .tbog-table-scroll>table{margin-top:0;margin-bottom:0}
.tbog-site .tbog-table-scroll:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.tbog-site .post h2,.tbog-site .post h3,.tbog-site .post h4,.tbog-site .rh-post-wrapper h2,.tbog-site .rh-post-wrapper h3{font-family:var(--heading);line-height:1.4}
.tbog-site .post,.tbog-site .rh-post-wrapper{font-family:var(--sans)}
.tbog-site .meta{font-family:var(--sans)}
.tbog-site .cky-btn-revisit-wrapper{background:var(--ink)!important;box-shadow:none!important}
.tbog-ui{font-family:var(--sans);font-size:15px;line-height:1.6;color:var(--ink)}
.tbog-ui button,.tbog-ui input{box-shadow:none;text-transform:none;letter-spacing:normal;border-radius:0}
.tbog-ui h1,.tbog-ui h2,.tbog-ui h3,.tbog-ui h4{padding:0;border:0;background:none;text-transform:none;color:inherit}
.tbog-ui .button{border-radius:0;text-decoration:none;box-shadow:none}
.tbog-ui .wrap{float:none;max-width:none;padding-left:0;padding-right:0}
.tbog-ui .header-inner{position:relative;height:104px;gap:23px}
.tbog-ui .header .brand{font-size:12px;gap:9px}
.tbog-ui .header .brand img{width:34px;height:34px}
.tbog-ui .header-actions{gap:8px}
.tbog-ui .tbog-navigation{display:flex;gap:18px;align-items:center;margin-left:auto}
.tbog-ui .tbog-nav-start,.tbog-ui .tbog-menu{font-size:14px;font-weight:600;line-height:1.45}
.tbog-ui .tbog-nav-start{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}
.tbog-ui .tbog-menu{display:flex;gap:16px;align-items:center;list-style:none;margin:0;padding:0}
.tbog-ui .tbog-menu-item{position:relative;display:flex;align-items:center;margin:0;padding:0;list-style:none;gap:6px}
.tbog-ui .tbog-menu-item>a{display:flex;align-items:center;min-height:44px;padding:10px 0;white-space:nowrap}
.tbog-ui .tbog-menu-item>a:hover,.tbog-ui .tbog-nav-start:hover{color:var(--text-accent)}
.tbog-ui .tbog-submenu-toggle{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:26px;height:28px;padding:0;background:#edeee4;color:var(--ink);border:1px solid var(--line);line-height:1;cursor:pointer}
.tbog-ui .tbog-submenu-toggle span{display:inline-flex;pointer-events:none}
.tbog-ui .tbog-submenu-toggle svg{display:block;width:12px;height:12px}
.tbog-ui .tbog-submenu-toggle:hover,.tbog-ui .tbog-submenu-toggle[aria-expanded=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.tbog-ui .tbog-submenu-toggle:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.tbog-ui .tbog-menu-item.is-open>a{color:var(--text-accent)}
.tbog-ui .tbog-submenu-toggle[aria-expanded=true] span{transform:rotate(180deg)}
.tbog-ui .tbog-menu .sub-menu{display:none;position:absolute;top:100%;left:-18px;min-width:230px;max-width:340px;background:var(--paper);border:1px solid var(--line);box-shadow:0 18px 35px #24262012;padding:12px 18px;margin:0;z-index:30;list-style:none}
.tbog-ui .tbog-menu-item:last-child .sub-menu{left:auto;right:0}
.tbog-ui .tbog-menu .sub-menu .tbog-menu-item>a{white-space:normal;padding:10px 0;font-size:15px;line-height:1.6}
.tbog-ui .tbog-menu .is-open>.sub-menu{display:block}
.tbog-ui .menu-toggle{display:none}
.tbog-ui a.path-card{display:block;text-decoration:none;color:inherit}
.tbog-ui .article-card[hidden]{display:none}
.tbog-ui .footer{border-top:1px solid var(--line);margin-top:0;background:var(--paper)}
.tbog-ui .footer-links{display:flex;flex-wrap:wrap;gap:14px 24px;line-height:1.7}
.tbog-ui dialog{margin:auto;top:0;bottom:0;left:0;right:0;border-radius:0}
.tbog-ui dialog:not([open]){display:none}
.tbog-ui .content-dialog .dialog-top{justify-content:flex-end}
.tbog-ui .search-dialog form{padding:22px 28px 28px}
.tbog-ui .search-dialog .search-field{margin:0}
.tbog-ui .tbog-search-submit{margin-top:16px;min-height:44px;font-size:15px}
.tbog-ui .checklist-item input{appearance:auto;-webkit-appearance:auto;border-radius:2px}
.tbog-ui .cover-basics .math-art small{color:#657354}
.tbog-site .tbog-native-edit{display:block;margin:20px auto;max-width:1280px;padding:0 30px;font-size:12px}
@media(min-width:1500px){.tbog-ui .tbog-menu{gap:22px}.tbog-ui .header .brand{font-size:14px}}
@media(max-width:1320px){
 .tbog-ui .header-inner,.tbog-ui .tbog-navigation,.tbog-ui .tbog-menu{gap:12px}
 .tbog-ui .tbog-nav-start,.tbog-ui .tbog-menu{font-size:13px}
}
@media(min-width:1151px) and (max-width:1320px){.tbog-ui .search-toggle span{display:none}}
@media(max-width:1200px){.tbog-ui .header-inner{height:85px}.tbog-ui .header .brand{font-size:11px}.tbog-ui .header .brand img{width:31px;height:31px}}
@media(max-width:1150px){
 .tbog-ui .menu-toggle{display:inline-flex}.tbog-ui .header-actions{margin-left:auto}
 .tbog-ui .tbog-navigation{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);border:1px solid var(--line);padding:12px 22px 20px;max-height:calc(100dvh - 150px);overflow-y:auto;z-index:40}
 .tbog-ui .tbog-navigation.is-open{display:block}
 .tbog-ui .tbog-nav-start{display:flex;border-bottom:1px solid var(--line)}
 .tbog-ui .tbog-menu{display:block}
 .tbog-ui .tbog-nav-start,.tbog-ui .tbog-menu{font-size:16px}
 .tbog-ui .tbog-menu>.tbog-menu-item{flex-wrap:wrap;border-bottom:1px solid var(--line);gap:0}
 .tbog-ui .tbog-menu>.tbog-menu-item>a{padding:15px 0;white-space:normal;flex:1}
 .tbog-ui .tbog-submenu-toggle{height:46px;width:44px}
 .tbog-ui .tbog-menu .sub-menu{position:static;flex:0 0 100%;box-shadow:none;border:0;border-top:1px solid var(--line);padding:6px 0 10px 15px;max-width:none;min-width:0}
}
@media(max-width:650px){
 .tbog-ui .header-inner{height:76px}
 .tbog-ui .header-actions{gap:4px}
 .tbog-ui .header .brand{font-size:11px}
 .tbog-ui .header .brand img{width:31px;height:31px}
 .tbog-ui .footer-links{gap:8px 20px}
 .tbog-ui .tbog-navigation{left:-8px;right:-8px}
 .tbog-ui .footer-top>p{font-size:23px}
 .tbog-ui .search-dialog form{padding:18px 20px 22px}
}
