/* Scoped corrections for the font menu and the signed-in home hero. */
html body .site-header .site-header__actions .kamusi-font-button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:11px!important;background:var(--surface,#fff)!important;border:1px solid var(--border,#e3d5ca)!important;color:var(--accent-dark,#87451f)!important;box-shadow:0 2px 5px #0000000c!important;display:grid!important;place-items:center!important;padding:0!important}
html body .site-header .site-header__actions .kamusi-font-mark{display:flex!important;align-items:baseline!important;gap:1px!important;line-height:1!important;color:var(--accent-dark,#87451f)!important;-webkit-text-fill-color:currentColor!important}
html body .site-header .site-header__actions .kamusi-font-mark span{font-size:10px!important;font-weight:700!important;line-height:1!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
html body .site-header .site-header__actions .kamusi-font-mark strong{font-size:17px!important;font-weight:800!important;line-height:1!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
html body #kamusi-font-menu{position:fixed!important;z-index:100010!important;box-sizing:border-box!important;width:230px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;padding:10px!important;right:auto!important;margin:0!important;border:1px solid var(--border,#e3ddd6)!important;border-radius:16px!important;background:var(--surface,#fff)!important;color:var(--text,#222b35)!important;box-shadow:0 14px 40px #00000026!important;text-align:left!important;line-height:1.4!important;max-height:calc(100dvh - 100px);overflow-y:auto}
html body #kamusi-font-menu[hidden]{display:none!important}
html body #kamusi-font-menu>span{display:block!important;margin:0 0 6px!important;padding:8px 10px!important;font:700 12px/1.4 system-ui,sans-serif!important;color:var(--muted,#66706b)!important;-webkit-text-fill-color:currentColor!important;letter-spacing:.02em!important}
html body #kamusi-font-menu button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:44px!important;margin:3px 0!important;padding:11px 12px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--text,#222b35)!important;-webkit-text-fill-color:currentColor!important;text-align:left!important;text-transform:none!important;font:600 15px/1.4 system-ui,sans-serif!important;letter-spacing:normal!important;box-shadow:none!important;cursor:pointer!important}
html body #kamusi-font-menu button:hover,html body #kamusi-font-menu button:focus-visible{background:var(--surface-soft,#f6f2ed)!important;outline:2px solid var(--accent,#a95528)!important;outline-offset:-2px}
html body #kamusi-font-menu button[aria-pressed=true]{background:var(--surface-soft,#f4eee7)!important;border-color:var(--border,#e2d6c9)!important;color:var(--accent-dark,#783914)!important}
html body #kamusi-font-menu button[aria-pressed=true]::after{content:'✓';font-size:17px;font-weight:800}
html[data-kamusi-theme=dark] body .site-header .site-header__actions .kamusi-font-button{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;background:#203029!important;border-color:#405247!important}
html[data-kamusi-theme=dark] body .site-header .site-header__actions .kamusi-font-mark{color:#dbe9df!important;-webkit-text-fill-color:currentColor!important}
html[data-kamusi-theme=dark] body #kamusi-font-menu{background:#18231f!important;color:#e4ece7!important;border-color:#405247!important;box-shadow:0 16px 40px #0008!important}
html[data-kamusi-theme=dark] body #kamusi-font-menu>span{color:#adbbb3!important}
html[data-kamusi-theme=dark] body #kamusi-font-menu button{color:#e4ece7!important}
html[data-kamusi-theme=dark] body #kamusi-font-menu button:hover,html[data-kamusi-theme=dark] body #kamusi-font-menu button:focus-visible,html[data-kamusi-theme=dark] body #kamusi-font-menu button[aria-pressed=true]{background:#263c30!important;border-color:#496453!important;color:#bde0c7!important}
html body .hero .kr-hero-compact{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:24px!important;margin:22px 0 12px!important}
html body .hero .kr-hero-compact .kr-hero-links{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important;width:auto!important;margin:0!important}
html body .hero .kr-hero-compact .kr-hero-links a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:44px!important;margin:0!important;padding:10px 14px!important;box-sizing:border-box!important;font-size:13px!important;line-height:1.35!important;white-space:nowrap!important;border-radius:12px!important}
html body .hero .kr-hero-compact .kr-hero-links svg{width:18px!important;height:18px!important;flex-shrink:0!important}
html body .hero .kr-hero-compact .kr-home-progress{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;flex:0 1 440px!important;min-width:0!important;margin:0!important}
html body .hero .kr-hero-compact .kr-home-progress a{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;padding:12px 15px!important;min-width:0!important;min-height:72px!important;margin:0!important;box-sizing:border-box!important;border:1px solid var(--border,#e8e0d8)!important;border-radius:12px!important;background:var(--surface,#fff)!important;color:var(--text,#222b35)!important;text-decoration:none!important}
html body .hero .kr-hero-compact .kr-home-progress span{font-size:12px!important;font-weight:650!important;line-height:1.2!important;white-space:nowrap!important}
html body .hero .kr-hero-compact .kr-home-progress strong{font-size:20px!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important;font-variant-numeric:tabular-nums!important}
html body .hero .kr-home-progress-note{margin:0 0 18px!important;line-height:1.55!important}
html[data-kamusi-theme=dark] body .hero .kr-hero-compact .kr-home-progress a{background:#1b2922!important;border-color:#405247!important;color:#e4ece7!important}
@media(max-width:760px){html body .hero .kr-hero-compact{flex-direction:column!important;align-items:stretch!important;gap:16px!important;margin:20px 0 14px!important}html body .hero .kr-hero-compact .kr-hero-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:10px!important}html body .hero .kr-hero-compact .kr-hero-links a{width:100%!important;padding:11px 10px!important}html body .hero .kr-hero-compact .kr-home-progress{flex:none!important;width:100%!important;gap:10px!important}html body .hero .kr-hero-compact .kr-home-progress a{padding:12px!important}}
@media(max-width:360px){html body .hero .kr-hero-compact .kr-hero-links a{font-size:12px!important;padding:10px 7px!important}html body .hero .kr-hero-compact .kr-home-progress{gap:7px!important}html body .hero .kr-hero-compact .kr-home-progress a{padding:10px 8px!important}html body .hero .kr-hero-compact .kr-home-progress strong{font-size:18px!important}}
/* Uniform topbar controls, including notification-wrapped avatars. */
html body .site-header .site-header__inner .site-header__actions{--kc-size:38px;display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:nowrap!important}
html body .site-header .site-header__inner .site-header__actions :is(button.kamusi-theme-toggle,button.kamusi-font-button,a.kr-header-avatar){display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:var(--kc-size)!important;height:var(--kc-size)!important;min-width:var(--kc-size)!important;min-height:var(--kc-size)!important;max-width:var(--kc-size)!important;max-height:var(--kc-size)!important;flex:0 0 var(--kc-size)!important;aspect-ratio:1!important;margin:0!important;padding:0!important;border:1px solid var(--border,#d9d5ce)!important;border-radius:50%!important;background:var(--surface,#fff)!important;background-image:none!important;box-shadow:0 2px 5px #0000000c!important;outline:none!important}
html body .site-header .site-header__inner .site-header__actions :is(.kamusi-font-control,.kn-avatar-wrap){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:var(--kc-size)!important;height:var(--kc-size)!important;min-width:var(--kc-size)!important;flex:0 0 var(--kc-size)!important;margin:0!important;padding:0!important}
html body .site-header .site-header__inner .site-header__actions a.kr-header-avatar{color:var(--text,#222b35)!important;overflow:hidden!important}
html body .site-header .site-header__inner .site-header__actions a.kr-header-avatar svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;color:inherit!important;stroke-width:1.7!important}
html body .site-header .site-header__inner .site-header__actions a.kr-header-avatar img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:50%!important;object-fit:cover!important}
html body .site-header .site-header__inner .site-header__actions a.kr-header-avatar-mahiri{border:3px solid #389f00!important;padding:2px!important;box-shadow:0 2px 7px #389f002b!important}
html body .site-header .site-header__inner .site-header__actions :is(button.kamusi-theme-toggle,button.kamusi-font-button,a.kr-header-avatar):focus-visible{outline:2px solid var(--accent,#a95528)!important;outline-offset:5px!important}
@media(max-width:920px){html body .site-header .site-header__inner{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:10px!important;padding:12px 14px!important}html body .site-header .site-header__inner .site-branding{min-width:0!important;flex:1 1 auto!important}html body .site-header .site-header__inner .site-header__actions{flex:0 0 auto!important;gap:10px!important}html body .site-header .site-header__inner .site-branding :is(.site-branding__link,.site-branding__name,.site-title,.brand-link){display:block!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-size:clamp(13px,3.5vw,19px)!important;line-height:1.2!important;letter-spacing:-.025em!important}html body .site-header .site-header__inner .site-branding__tagline{display:none!important}html body .site-header .site-header__inner .site-header__actions .site-mobile-toggle{margin:0!important;width:var(--kc-size)!important;height:var(--kc-size)!important;min-width:var(--kc-size)!important;padding:8px!important;flex:0 0 var(--kc-size)!important;border-radius:50%!important}}
@media(max-width:600px){html body .site-header .site-header__inner .site-header__actions{--kc-size:34px;gap:9px!important}html body .site-header .site-header__inner{padding:12px!important;gap:8px!important}html body .site-header .site-header__inner .site-branding :is(.site-branding__link,.site-branding__name,.site-title,.brand-link){font-size:clamp(17px,5.2vw,24px)!important}}
@media(max-width:360px){html body .site-header .site-header__inner .site-header__actions{--kc-size:32px;gap:8px!important}html body .site-header .site-header__inner{padding:12px 10px!important;gap:7px!important}}
/* KAMUSI_PHONE_TITLE_MANUAL_V1 */
/* Adjust --kamusi-phone-title-size here when changing the phone title. */
@media(max-width:600px){
 html body .site-header{--kamusi-phone-title-size:18px;}
 html body header.site-header .site-header__inner .site-branding :is(a.site-branding__link,.site-branding__name,.site-title,.brand-link),
 html body .site-header .site-header__inner .site-branding .site-branding__link *{
  font-size:var(--kamusi-phone-title-size)!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  letter-spacing:-.025em!important;
 }
}
@media(max-width:374px){html body .site-header{--kamusi-phone-title-size:16px;}}
/* END_KAMUSI_PHONE_TITLE_MANUAL_V1 */
