/* KENLIN LAB — one coherent editorial design language on all pages.
   Inspired by the clarity, paper surfaces and typographic hierarchy of kenlin.cc.
   No navigation is duplicated in product demos. */
:root{
  --kl-paper:#F7F5F0;--kl-ink:#242927;--kl-line:#E3DFD8;
  --kl-quiet:#756F67;--kl-muted:#9B9287;--kl-accent:#9C6756;
  --kl-head:72px;
}
#studio-header-mount{min-height:var(--kl-head)}
.kl-header,.kl-header *,.kl-footer,.kl-footer *{box-sizing:border-box}
.kl-header{
  height:var(--kl-head);min-height:var(--kl-head);
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:22px;align-items:center;position:sticky;top:0;z-index:100;
  padding:0 clamp(20px,4.5vw,76px);
  background:rgba(250,249,246,.97);backdrop-filter:blur(18px);
  color:var(--kl-ink);border-bottom:1px solid rgba(47,44,39,.11);
  font-family:"DM Sans","Noto Sans TC",system-ui,sans-serif;
}
.kl-header a{text-decoration:none;color:inherit}
.kl-brand{display:inline-flex;align-items:center;justify-self:start;gap:12px;min-width:0}
.kl-brand-mark{
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border:1px solid #c8c5bd;border-radius:9px;background:#fbfaf7;
  font-size:15px;font-weight:650;letter-spacing:-.08em;flex:none;
}
.kl-brand-name{display:grid;font-size:17px;line-height:1.2;white-space:nowrap;font-weight:700;letter-spacing:-.045em}
.kl-brand-name small{
  margin-top:4px;font-size:8px;line-height:1.2;letter-spacing:.15em;
  font-weight:650;color:#9A9086;
}
.kl-main-nav{display:flex;align-items:center;justify-self:center;gap:clamp(14px,2.4vw,35px);height:100%}
.kl-main-nav a{
  position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;
  min-height:44px;padding:4px 1px;font-size:12px;font-weight:640;color:#66645f;
  letter-spacing:.008em;white-space:nowrap;transition:color .18s ease;
}
.kl-main-nav a:hover,.kl-main-nav a[aria-current="page"]{color:#252a28}
.kl-main-nav a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#333c3c;
}
.kl-portfolio{
  display:inline-flex;justify-self:end;align-items:center;gap:14px;
  color:#484d4b!important;padding:10px 14px;min-height:42px;
  border:1px solid #d2cfc8;border-radius:8px;font-size:12px;font-weight:700;
  white-space:nowrap;transition:background .18s ease;
}
.kl-portfolio:hover{background:#efede8}
.kl-portfolio span{font-size:16px;font-weight:500}
.kl-menu-toggle,.kl-compact-nav,.kl-menu{display:none}
.kl-menu[hidden]{display:none!important}
.kl-header a:focus-visible,.kl-header button:focus-visible,
.kl-footer a:focus-visible{outline:3px solid #8aadb9;outline-offset:4px;border-radius:4px}
.kl-footer{
  margin:0;display:block;width:100%;padding:clamp(40px,5vw,80px) clamp(24px,5.8vw,100px) 22px;
  color:#272b2a;background:#F2F0EA;border-top:1px solid #ddd9d0;
  font-family:"DM Sans","Noto Sans TC",system-ui,sans-serif;
}
.kl-footer a{color:inherit;text-decoration:none}
.kl-footer-top{
  display:grid;grid-template-columns:minmax(300px,2fr) minmax(135px,1fr) minmax(135px,1fr);
  gap:clamp(24px,5vw,90px);max-width:1420px;margin:0 auto;padding-bottom:52px;
}
.kl-footer-identity{display:flex;flex-direction:column;align-items:flex-start}
.kl-footer-logo{font-size:clamp(28px,3vw,41px);font-weight:650;letter-spacing:-.06em;line-height:1.15}
.kl-footer-identity>span{margin-top:8px;font-size:10px;letter-spacing:.18em;color:#8D867C}
.kl-footer-identity p{
  margin:24px 0 14px;font-family:Georgia,"Noto Serif TC",serif;
  font-size:clamp(17px,2vw,24px);line-height:1.65;color:#66645d;font-weight:400;
}
.kl-footer-founder{font-size:12px;color:#6B6962!important;border-bottom:1px solid #b3aba0;padding-bottom:4px}
.kl-footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.kl-footer-column strong{font-size:11px;letter-spacing:.18em;color:#959086;margin:4px 0 12px}
.kl-footer-column a{font-size:13px;color:#484844;line-height:1.4;transition:color .15s}
.kl-footer-column a:hover,.kl-footer a:hover{color:#916351}
.kl-footer-bottom{
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;
  max-width:1420px;margin:0 auto;border-top:1px solid #d9d6cd;padding:22px 0 0;
}
.kl-footer-bottom p,.kl-footer-bottom span{
  margin:0;font-size:11px;line-height:1.7;color:#77736d;letter-spacing:.01em
}
.kl-footer-disclosure{
  max-width:1420px;margin:16px auto 0;color:#968e83;
  font-size:10px;line-height:1.8;
}
.kl-demo-chooser{
  max-width:1500px;margin:0 auto;
  padding:13px clamp(16px,3vw,48px) 0;display:flex;gap:14px;
  align-items:center;justify-content:space-between;color:#817b72;
  font-family:"DM Sans","Noto Sans TC",system-ui,sans-serif;
}
.kl-demo-chooser .kl-demo-label{font-size:10px;letter-spacing:.18em;font-weight:750}
.kl-demo-chooser .kl-demo-switch{
  display:inline-flex;padding:4px;border-radius:9px;gap:4px;
  border:1px solid #ddd8ce;background:#eae6df;
}
.kl-demo-switch a{
  display:flex;justify-content:center;align-items:center;gap:8px;
  min-height:38px;padding:9px 18px;white-space:nowrap;border-radius:6px;
  font-size:12px;font-weight:750;color:#747068;text-decoration:none;
  transition:background .16s ease;
}
.kl-demo-switch a.selected,.kl-demo-switch a[aria-current="page"]{background:#fffdfa;color:#2b302f;box-shadow:0 2px 8px #0001}
.kl-demo-note{font-size:11px;color:#8B8379}
@media(max-width:1090px){
  .kl-header{gap:12px;padding:0 22px}
  .kl-brand-name{font-size:15px}
  .kl-main-nav{gap:18px}
  .kl-main-nav a{font-size:11px}
  .kl-portfolio{padding:9px 12px;gap:8px}
}
@media(max-width:820px){
  :root{--kl-head:60px}
  .kl-header{
    height:var(--kl-head);min-height:var(--kl-head);padding:0 13px;
    grid-template-columns:auto 1fr auto;gap:8px;
  }
  .kl-brand{gap:9px}
  .kl-brand-mark{height:34px;width:34px;font-size:12px}
  .kl-brand-name{font-size:12px}
  .kl-brand-name small{display:none}
  .kl-main-nav,.kl-portfolio{display:none}
  .kl-compact-nav{display:flex;align-items:center;justify-content:center;gap:12px}
  .kl-compact-nav a{font-size:12px;font-weight:650;color:#706c66;white-space:nowrap;padding:12px 2px}
  .kl-compact-nav a[aria-current="page"]{color:#232928;border-bottom:2px solid #343e3e}
  .kl-menu-toggle{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    justify-self:end;gap:4px;height:36px;width:38px;border:1px solid #d9d5ce;
    border-radius:7px;background:#fbfaf7;cursor:pointer;
  }
  .kl-menu-toggle span{width:16px;height:1.7px;border-radius:2px;background:#363d3a}
  .kl-menu:not([hidden]){
    display:grid;position:absolute;top:calc(100% + 6px);right:12px;
    width:min(280px,calc(100vw - 24px));z-index:101;gap:3px;
    padding:10px;background:#fbfaf7;border:1px solid #d9d4ca;
    border-radius:11px;box-shadow:0 22px 55px #2d281e30;
  }
  .kl-menu a{
    display:block;padding:12px 15px;border-radius:6px;
    font-size:13px;font-weight:640;color:#575149;
  }
  .kl-menu a:hover,.kl-menu a[aria-current="page"]{background:#f0ece5;color:#2e3433}
  .kl-demo-chooser{padding:9px 13px 0;gap:7px}
  .kl-demo-label,.kl-demo-note{display:none}
  .kl-demo-switch{width:100%;display:grid!important;grid-template-columns:1fr 1fr}
  .kl-demo-switch a{width:100%;min-height:40px}
  .kl-footer-top{grid-template-columns:minmax(0,1fr) 1fr;gap:35px}
  .kl-footer-identity{grid-column:span 2}
}
@media(max-width:420px){
  .kl-brand-name{font-size:11px}
  .kl-compact-nav{gap:9px}
  .kl-compact-nav a{font-size:11px}
  .kl-footer{padding:45px 21px 18px}
  .kl-footer-top{grid-template-columns:1fr 1fr;gap:24px}
  .kl-footer-column strong{margin-bottom:2px}
  .kl-footer-column a{font-size:12px}
  .kl-footer-bottom{gap:8px}
}
@media(prefers-reduced-motion:reduce){.kl-header *, .kl-footer *{transition:none!important}}
