/* GEOPALU Fable styles (t291u). Derived from mock t500u/t510u site.css.
   Header/footer/overlay: sitewide.
   Hero, answer card, evidence, PALU, try-it, Easter egg: scoped under .gp-fable (homepages only).
   Does not replace typo.css. */

/* GEOPALU homepage mock (t500u) — shared styles for zh / zh-hans / en
   Static visual mock. Not production. */

/* ---------- Tokens ---------- */
:root{
  color-scheme: light;

  --ink: #16131d;          /* headings, body */
  --ink-2: #4a4556;        /* secondary text  (≈9:1 on paper) */
  --ink-3: #6b6577;        /* tertiary text   (≈5.4:1 on paper) */
  --paper: #fbfaf8;        /* page */
  --surface: #ffffff;      /* cards, header */
  --line: #e8e4ec;         /* hairlines */
  --line-2: #d9d3e0;

  --violet: #6b2fb3;       /* evolved from #7A3BB8: deeper, AA+ on white for text */
  --violet-ink: #4e1f88;   /* hover / pressed */
  --violet-tint: #f4eefb;
  --cyan: #22b8cc;         /* from logo, decorative only */
  --brand-grad: linear-gradient(90deg, #34c3d3 0%, #4a9fd4 38%, #6a6fca 68%, #7a3bb8 100%);

  --wrong: #c8423f;   --wrong-tint: #fdeceb;
  --mixup: #a86a12;   --mixup-tint: #fbf0dc;
  --gap:   #7d7788;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(22, 19, 29, .04), 0 2px 8px rgba(22, 19, 29, .04);
  --shadow-2: 0 2px 4px rgba(22, 19, 29, .04), 0 12px 32px -8px rgba(40, 20, 70, .14);

  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 56px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --font-latin: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-hant: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC";
  --font-hans: "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Heiti SC";
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
@media (min-width: 768px)  { :root{ --gutter: 32px; --header-h: 64px; } }
@media (min-width: 1280px) { :root{ --gutter: 48px; } }

/* ---------- Base ---------- */
.site-header *, .site-footer *, .panel *, .gp-fable *, .site-header *::before, .site-footer *::before, .panel *::before, .gp-fable *::before, .site-header *::after, .site-footer *::after, .panel *::after, .gp-fable *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body.menu-open{ overflow: hidden; }

.site-header img, .site-footer img, .gp-fable img{ max-width: 100%; display: block; }
.site-header a, .site-footer a, .panel a, .gp-fable a{ color: inherit; }
.site-header h1, .site-footer h1, .panel h1, .gp-fable h1, .site-header h2, .site-footer h2, .panel h2, .gp-fable h2, .site-header h3, .site-footer h3, .panel h3, .gp-fable h3, .site-header p, .site-footer p, .panel p, .gp-fable p, .site-header ul, .site-footer ul, .panel ul, .gp-fable ul, .site-header figure, .site-footer figure, .panel figure, .gp-fable figure{ margin: 0; }
.site-header ul, .site-footer ul, .panel ul, .gp-fable ul{ padding: 0; list-style: none; }

.site-header :focus-visible, .site-footer :focus-visible, .panel :focus-visible, .gp-fable :focus-visible, .menu-btn:focus-visible{ outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.skip{
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: .875rem; transition: top .15s;
}
.skip:focus{ top: 12px; }

.site-header .wrap, .site-footer .wrap, .gp-fable .wrap{ max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.gp-fable .nb{ display: inline-block; }   /* keep CJK phrase units together on line wrap */

/* ---------- Buttons ---------- */
.site-header .btn, .site-footer .btn, .panel .btn, .gp-fable .btn{
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out), box-shadow .15s;
}
.site-header .btn--primary, .site-footer .btn--primary, .panel .btn--primary, .gp-fable .btn--primary{ background: var(--violet); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(107, 47, 179, .55); }
.site-header .btn--primary:hover, .site-footer .btn--primary:hover, .panel .btn--primary:hover, .gp-fable .btn--primary:hover{ background: var(--violet-ink); }
.site-header .btn--secondary, .site-footer .btn--secondary, .panel .btn--secondary, .gp-fable .btn--secondary{ background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.site-header .btn--secondary:hover, .site-footer .btn--secondary:hover, .panel .btn--secondary:hover, .gp-fable .btn--secondary:hover{ border-color: var(--ink); }
.site-header .btn:active, .site-footer .btn:active, .panel .btn:active, .gp-fable .btn:active{ transform: translateY(1px); }
.site-header .btn--sm, .site-footer .btn--sm, .panel .btn--sm, .gp-fable .btn--sm{ --h: 36px; padding: 0 14px; font-size: .875rem; }
.site-header .btn .arr, .site-footer .btn .arr, .panel .btn .arr, .gp-fable .btn .arr{ transition: transform .2s var(--ease-out); }
.site-header .btn:hover .arr, .site-footer .btn:hover .arr, .panel .btn:hover .arr, .gp-fable .btn:hover .arr{ transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled, body.menu-open .site-header{ border-bottom-color: var(--line); }
.site-header__inner{
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  flex-wrap: nowrap;
}
.brand{ flex: 0 0 auto; display: block; line-height: 0; border-radius: 6px; }
.brand img{ height: 30px; width: auto; mix-blend-mode: multiply; }
@media (min-width: 768px) { .brand img{ height: 34px; } }

.mini-cta{ margin-left: auto; flex: 0 0 auto; }
.menu-btn{
  flex: 0 0 auto;
  width: 44px; height: 44px; margin-right: -8px;
  display: inline-grid; place-items: center;
  background: none; border: 0; border-radius: 10px; color: var(--ink); cursor: pointer;
}
.menu-btn:hover{ background: var(--violet-tint); }
.menu-btn__icon{ position: relative; width: 20px; height: 14px; }
.menu-btn__icon span{
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease-out), opacity .15s, top .25s var(--ease-out);
}
.menu-btn__icon span:nth-child(1){ top: 0; }
.menu-btn__icon span:nth-child(2){ top: 6px; }
.menu-btn__icon span:nth-child(3){ top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(1){ top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(2){ opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(3){ top: 6px; transform: rotate(-45deg); }
.gp-fable .vh{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Panel = desktop nav row  /  mobile overlay. One DOM, two layouts. */
.panel__nav a{ text-decoration: none; }
.lang{ display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #f2eff5; }
.lang a{
  min-width: 36px; height: 30px; padding: 0 10px;
  display: inline-grid; place-items: center;
  border-radius: 999px; text-decoration: none;
  font-size: .8125rem; font-weight: 600; color: var(--ink-3); line-height: 1;
}
.lang a:hover{ color: var(--ink); }
.lang a[aria-current="true"]{ background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Desktop ≥1024 */
@media (min-width: 1024px) {
  .mini-cta, .menu-btn{ display: none; }
  .panel{ margin-left: auto; display: flex; align-items: center; gap: 20px; }
  .panel__nav ul{ display: flex; gap: 2px; }
  .panel__nav a{
    position: relative; display: block; padding: 8px 12px; border-radius: 8px;
    font-size: .9375rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  }
  .panel__nav a:hover{ color: var(--ink); }
  .panel__nav a::after{
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out);
  }
  .panel__nav a:hover::after{ transform: scaleX(1); }
  .panel__lang{ order: 2; }
  .panel__cta{ order: 3; }
  .panel__cta .btn{ --h: 40px; padding: 0 18px; font-size: .9375rem; }
  .panel__langlabel{ display: none; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .panel{ gap: 12px; }
  .panel__nav a{ padding: 8px 9px; }
  .panel__nav a::after{ left: 9px; right: 9px; }
}

/* Mobile / tablet <1024: overlay */
@media (max-width: 1023px) {
  .panel{
    position: fixed; z-index: 49; inset: var(--header-h) 0 0 0;
    display: none; flex-direction: column;
    padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0;
    transition: opacity .22s var(--ease-out);
  }
  .panel.is-open{ display: flex; }
  .panel.is-visible{ opacity: 1; }
  .panel__nav{ order: 1; }
  .panel__nav li{ border-bottom: 1px solid var(--line); }
  .panel__nav a{
    display: flex; align-items: center; justify-content: space-between;
    min-height: 60px; font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  }
  .panel__nav a::after{ content: "→"; color: var(--ink-3); font-weight: 400; transition: transform .2s var(--ease-out), color .2s; }
  .panel__nav a:hover::after{ transform: translateX(4px); color: var(--violet); }
  .panel__cta{ order: 2; margin-top: 28px; }
  .panel__cta .btn{ width: 100%; --h: 54px; font-size: 1.0625rem; }
  .panel__lang{ order: 3; margin-top: auto; padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .panel__langlabel{ font-size: .8125rem; color: var(--ink-3); }
  .lang a{ min-width: 52px; height: 40px; font-size: .9375rem; }

  /* staggered entrance of overlay rows */
  .panel__nav li, .panel__cta, .panel__lang{
    transform: translateY(10px); opacity: 0;
    transition: transform .36s var(--ease-out), opacity .3s var(--ease-out);
  }
  .panel.is-visible .panel__nav li, .panel.is-visible .panel__cta, .panel.is-visible .panel__lang{ transform: none; opacity: 1; }
  .panel.is-visible .panel__nav li:nth-child(2){ transition-delay: .03s; }
  .panel.is-visible .panel__nav li:nth-child(3){ transition-delay: .06s; }
  .panel.is-visible .panel__nav li:nth-child(4){ transition-delay: .09s; }
  .panel.is-visible .panel__nav li:nth-child(5){ transition-delay: .12s; }
  .panel.is-visible .panel__cta{ transition-delay: .16s; }
  .panel.is-visible .panel__lang{ transition-delay: .2s; }

  body.menu-open .mini-cta{ opacity: 0; pointer-events: none; }
  .mini-cta{ transition: opacity .15s; }
}
/* without JS, keep mobile nav reachable (no overlay) */
@media (max-width: 1023px) { .no-js .menu-btn{ display: none; } }

/* ---------- Hero ---------- */
.gp-fable .hero{ padding: 40px 0 56px; }
@media (min-width: 768px)  { .gp-fable .hero{ padding: 72px 0 88px; } }
@media (min-width: 1024px) { .gp-fable .hero{ padding: 88px 0 112px; } }

.gp-fable .hero__grid{ display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .gp-fable .hero__grid{ grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }

.gp-fable .eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em;
}
.gp-fable .eyebrow::before{ content: ""; width: 20px; height: 3px; border-radius: 3px; background: var(--brand-grad); flex: 0 0 auto; }

.gp-fable .hero h1{
  margin-top: 20px;
  font-size: clamp(2.125rem, 1.25rem + 3.8vw, 4rem);
  font-weight: 700; line-height: 1.16; letter-spacing: -.005em;
  text-wrap: balance;
}
.gp-fable :lang(en) .hero h1{ letter-spacing: -.028em; line-height: 1.04; font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4.5rem); }
.gp-fable .hero h1 .accent{ background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }

.gp-fable .hero__lead{ margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }
.gp-fable :lang(en) .hero__lead{ max-width: 30em; }

.gp-fable .hero__path{
  margin-top: 28px; padding-left: 16px;
  border-left: 2px solid var(--line-2);
  font-size: .9375rem; color: var(--ink-2); max-width: 34em;
}
.gp-fable .hero__path strong{ color: var(--ink); font-weight: 600; }

.gp-fable .hero__cta{ margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .site-header .hero__cta .btn, .site-footer .hero__cta .btn, .panel .hero__cta .btn, .gp-fable .hero__cta .btn{ flex: 1 1 100%; } }

.gp-fable .disclaimer{ margin-top: 16px; max-width: 40em; font-size: .8125rem; line-height: 1.7; color: var(--ink-3); }
.gp-fable .disclaimer .dl{ display: block; }

/* Hero entrance — hierarchy, not decoration */
.js .gp-fable .rise{ animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Answer card (abstract, decorative) ---------- */
.gp-fable .answer{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 18px 20px 20px;
  max-width: 520px; width: 100%; justify-self: center;
}
.gp-fable .answer::before{ /* logo-underline echo */
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; border-radius: 3px;
  background: var(--brand-grad); opacity: .9;
}
.gp-fable .answer__bar{ display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.gp-fable .answer__ai{
  flex: 0 0 auto; height: 26px; padding: 0 10px; border-radius: 999px;
  display: inline-grid; place-items: center;
  font: 700 .75rem/1 var(--font-latin); letter-spacing: .06em; color: var(--violet); background: var(--violet-tint);
}
.gp-fable .answer__q{ flex: 1; height: 10px; border-radius: 5px; background: #ece8f0; max-width: 62%; }
.gp-fable .answer__dots{ margin-left: auto; display: flex; gap: 5px; }
.gp-fable .answer__dots i{ width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }

.gp-fable .answer__body{ padding: 18px 0 6px; display: grid; gap: 14px; }
.gp-fable .ln{ display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.gp-fable .sk{ display: block; height: 10px; border-radius: 5px; background: #ebe7ef; width: var(--w); flex: 0 0 auto; transform-origin: left; }
.gp-fable .mk{
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center;
  width: var(--w); height: 22px; border-radius: 6px; padding: 0 6px; background: transparent;
}
.gp-fable .mk .sk{ width: 100%; }
.gp-fable .mk b{
  position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font: 700 .6875rem/1 var(--font-latin); color: #fff;
}
.gp-fable .mk--wrong{ background: var(--wrong-tint); box-shadow: inset 0 -2px 0 var(--wrong); }
.gp-fable .mk--wrong .sk{ background: #f2c9c7; }
.gp-fable .mk--wrong b{ background: var(--wrong); }
.gp-fable .mk--mixup{ background: var(--mixup-tint); box-shadow: inset 0 -2px 0 var(--mixup); }
.gp-fable .mk--mixup .sk{ background: #ecd6ae; }
.gp-fable .mk--mixup b{ background: var(--mixup); }
.gp-fable .mk--gap{ outline: 1.5px dashed var(--gap); outline-offset: -1.5px; }
.gp-fable .mk--gap .sk{ background: transparent; }
.gp-fable .mk--gap b{ background: var(--gap); }

.gp-fable .answer__legend{ display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); }
.gp-fable .answer__legend li{ display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.gp-fable .answer__legend b{ width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 .6875rem/1 var(--font-latin); color: #fff; }
.gp-fable .k--wrong{ background: var(--wrong); } .gp-fable .k--mixup{ background: var(--mixup); } .gp-fable .k--gap{ background: var(--gap); }
.gp-fable .answer__fix{
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--violet-tint);
  font-size: .875rem; font-weight: 600; color: var(--violet);
}
.gp-fable .answer__fix svg{ flex: 0 0 auto; }
.gp-fable .answer__fix .sk{ background: #ddd0ee; flex: 1 1 auto; width: auto; max-width: 40%; margin-left: auto; }

/* sequence: lines draw → issues flagged → fix direction */
.js .gp-fable .answer .sk{ animation: draw .6s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 350ms); }
.js .gp-fable .answer .mk{ animation: flag .45s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 350ms); }
.js .gp-fable .answer .mk b{ animation: pop .35s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 550ms); }
.js .gp-fable .answer__legend li{ animation: fade .4s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms + 550ms); }
.js .gp-fable .answer__fix{ animation: rise .5s var(--ease-out) both; animation-delay: 2300ms; }
@keyframes draw { from { transform: scaleX(0); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes flag { from { background-color: transparent; box-shadow: none; outline-color: transparent; } }
@keyframes pop  { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Easter egg: mini ASCII Palu on the 「近名混淆」 bar ----------
   Hot spot = a 24px invisible button over the LEFT end of .mk--mixup, positioned by
   site.js. The stage (belt + Palu) is built by JS, aria-hidden, pointer-events:none,
   and stays inside the card around that one bar, so it never covers copy or CTAs. */
.gp-fable .egg{
  position: absolute; z-index: 3; width: 24px; height: 24px; padding: 0; margin: 0;
  border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gp-fable .egg:focus{ outline: none; }
.gp-fable .egg:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 1px; }
.gp-fable .egg-stage{ position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.gp-fable .egg-belt{ position: absolute; left: 0; top: 0; overflow: visible; opacity: 0; }
.gp-fable .egg-belt rect{ fill: none; stroke-width: 1.5; stroke-dasharray: 3 3; stroke-linecap: round; }
.gp-fable .egg-palu{
  position: absolute; left: 0; top: 0; margin: 0; opacity: 0;
  font: 700 12px/1 var(--font-mono); letter-spacing: 0; white-space: pre;
  /* rendered at 12px (above browser minimum font sizes) then scaled down → ~7px */
  transform: scale(.55); transform-origin: 50% 100%;
  offset-anchor: 50% 100%; offset-rotate: auto;
}
.gp-fable .egg-palu span{ display: block; }
.gp-fable .egg-palu .t{ color: #22b8cc; }                              /* tuft */
.gp-fable .egg-palu .h{                                                /* head: logo cyan → purple */
  background: linear-gradient(90deg, #22b8cc, #7a3bb8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gp-fable .egg-palu .g{ color: #6b2fb3; }                              /* glasses */

/* ---------- Sections ---------- */
.gp-fable .section{ padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px)  { .gp-fable .section{ padding: 96px 0; } }
.gp-fable .label{
  display: inline-flex; align-items: baseline; gap: 10px;
  font-size: .8125rem; font-weight: 600; color: var(--violet); letter-spacing: .02em;
}
.gp-fable .label .num{ font-family: var(--font-mono); color: var(--ink-3); font-weight: 500; }
.gp-fable :lang(en) .label{ text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.gp-fable .h2{
  margin-top: 14px;
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.5rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance;
}
.gp-fable :lang(en) .h2{ letter-spacing: -.022em; line-height: 1.12; }

/* ---------- Evidence: sample card ---------- */
.gp-fable .sample{
  position: relative; margin-top: 0;
  display: grid; gap: 32px; align-items: center;
  padding: 28px 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: box-shadow .3s var(--ease-out), border-color .3s;
}
@media (min-width: 768px)  { .gp-fable .sample{ grid-template-columns: minmax(0, 1fr) 280px; padding: 48px; } }
@media (min-width: 1024px) { .gp-fable .sample{ grid-template-columns: minmax(0, 1fr) 380px; padding: 56px 64px; gap: 64px; } }
.gp-fable .sample:hover{ box-shadow: var(--shadow-2); border-color: var(--line-2); }
.gp-fable .sample__link{
  margin-top: 28px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--violet); text-decoration: none;
}
.gp-fable .sample__link::after{ content: ""; position: absolute; inset: 0; border-radius: 22px; } /* whole card clickable */
.gp-fable .sample__link:focus-visible{ outline: none; }
.gp-fable .sample__link:focus-visible::after{ outline: 2px solid var(--violet); outline-offset: 4px; }
.gp-fable .sample__link .arr{ transition: transform .2s var(--ease-out); }
.gp-fable .sample:hover .sample__link .arr{ transform: translateX(4px); }
.gp-fable .sample__link span:first-child{ text-decoration: underline; text-decoration-color: rgba(107,47,179,.3); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* abstract report sheets — layout only, no scores, no data */
.gp-fable .sheets{ position: relative; height: 240px; width: 100%; max-width: 300px; justify-self: center; }
@media (min-width: 1024px) { .gp-fable .sheets{ height: 290px; max-width: 340px; } }
.gp-fable .sheet{
  position: absolute; inset: 0 20px 0 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22,19,29,.05), 0 8px 24px -10px rgba(40,20,70,.18);
  transition: transform .5s var(--ease-out);
}
.gp-fable .sheet--3{ transform: rotate(-7deg) translate(-14px, 10px); background: #f6f3f9; }
.gp-fable .sheet--2{ transform: rotate(4deg) translate(12px, 4px); background: #fbfafc; }
.gp-fable .sheet--1{ padding: 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.gp-fable .sample:hover .sheet--3, .gp-fable .sheets.peek .sheet--3{ transform: rotate(-11deg) translate(-26px, 14px); }
.gp-fable .sample:hover .sheet--2, .gp-fable .sheets.peek .sheet--2{ transform: rotate(7deg) translate(24px, 6px); }
.gp-fable .sample:hover .sheet--1, .gp-fable .sheets.peek .sheet--1{ transform: translateY(-6px); }
.gp-fable .sheet__logo{ height: 18px; width: auto; mix-blend-mode: multiply; align-self: flex-start; }
.gp-fable .sheet__rule{ height: 2px; border-radius: 2px; background: var(--brand-grad); opacity: .85; }
.gp-fable .sheet .sk{ height: 7px; border-radius: 4px; }
.gp-fable .sheet .sk--h{ height: 11px; background: #ddd6e6; }
.gp-fable .sheet__rows{ margin-top: 6px; display: grid; gap: 9px; }
.gp-fable .sheet__row{ display: flex; align-items: center; gap: 8px; }
.gp-fable .sheet__row i:first-child{ width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: 0 0 auto; }
.gp-fable .sheet__tag{
  margin-top: auto; align-self: flex-start;
  font: 600 .6875rem/1 var(--font-latin); letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-tint); padding: 6px 8px; border-radius: 6px;
}

/* ---------- Method: PALU ---------- */
.gp-fable .palu__head{ display: grid; gap: 20px; align-items: end; }
@media (min-width: 1024px) { .gp-fable .palu__head{ grid-template-columns: minmax(0, 1fr) auto; } }
.gp-fable .toggle{
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s;
}
.gp-fable .toggle:hover{ border-color: var(--ink); }
.gp-fable .toggle svg{ transition: transform .3s var(--ease-out); }
.gp-fable .toggle[aria-expanded="true"] svg{ transform: rotate(45deg); }
.no-js .gp-fable .toggle{ display: none; }

.gp-fable .palu__grid{ margin-top: 40px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px)  { .gp-fable .palu__grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gp-fable .palu__grid{ grid-template-columns: repeat(4, 1fr); } }
.gp-fable .dim{ background: var(--surface); padding: 24px 24px 26px; }
.gp-fable .dim__letter{
  display: block; font: 700 3.5rem/1 var(--font-latin); letter-spacing: -.04em;
  background: var(--brand-grad); background-size: 400% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gp-fable .dim:nth-child(1) .dim__letter{ background-position: 0% 0; }
.gp-fable .dim:nth-child(2) .dim__letter{ background-position: 33% 0; }
.gp-fable .dim:nth-child(3) .dim__letter{ background-position: 66% 0; }
.gp-fable .dim:nth-child(4) .dim__letter{ background-position: 100% 0; }
.gp-fable .dim h3{ margin-top: 14px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.gp-fable .dim h3 .sep{ color: var(--ink-3); font-weight: 400; }
.gp-fable .dim__pts{ display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease-out), opacity .3s; }
.gp-fable .dim__pts > ul{ overflow: hidden; min-height: 0; }
.gp-fable .dim__pts li{ position: relative; padding-left: 16px; margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.gp-fable .dim__pts li::before{ content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1.5px; background: var(--ink-3); }
.gp-fable .dim__pts li:first-child{ margin-top: 14px; }
.js .gp-fable .palu__grid:not(.is-open) .dim__pts{ grid-template-rows: 0fr; opacity: 0; }

.gp-fable .engines{
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  font-size: .9375rem; color: var(--ink-2);
}
.gp-fable .engines__icon{ flex: 0 0 auto; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,184,204,.15); }
.gp-fable .eng{ color: var(--ink); font-weight: 600; }
.gp-fable .engines .muted{ color: var(--ink-3); }

/* ---------- Try it ---------- */
.gp-fable .try{ text-align: center; }
.gp-fable .search{
  margin: 36px auto 0; max-width: 520px;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 10px 0 22px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  box-shadow: var(--shadow-2); text-align: left;
}
.gp-fable .search svg{ flex: 0 0 auto; color: var(--ink-3); }
.gp-fable .search__text{ flex: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: -.005em; color: var(--ink); white-space: nowrap; overflow: hidden; }
.gp-fable .caret{ display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.18em; background: var(--violet); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gp-fable .search__go{ flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; }
.gp-fable .try .h2{ margin-top: 44px; }
.gp-fable .try .h2 .emoji{ font-weight: 400; }
.gp-fable .try__again{ margin-top: 12px; font-size: 1.0625rem; color: var(--ink-2); }
.gp-fable .learn{ margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gp-fable .learn a{
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; font-size: .9375rem; font-weight: 600; color: var(--ink);
  transition: border-color .15s, color .15s;
}
.gp-fable .learn a:hover{ border-color: var(--violet); color: var(--violet); }

/* ---------- Footer ---------- */
.site-footer{ margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); font-size: .9375rem; }
.footer__top{ padding: 56px 0 40px; display: grid; gap: 40px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .footer__top{ grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 72px; } }
@media (min-width: 1024px) { .footer__top{ grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); } }
.footer__brand{ grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer__brand{ grid-column: auto; padding-right: 24px; } }
.footer__brand img{ height: 30px; width: auto; mix-blend-mode: multiply; }
.footer__tag{ margin-top: 16px; color: var(--ink-2); font-size: .875rem; }
.footer__tag .dot{ color: var(--line-2); padding: 0 .35em; }
.footer__app{ margin-top: 20px; }
.fcol h2{ font-size: .8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
:lang(en) .fcol h2{ text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.fcol ul{ margin-top: 14px; display: grid; gap: 4px; }
.fcol a{ display: inline-block; padding: 4px 0; text-decoration: none; color: var(--ink-2); line-height: 1.45; }
.fcol a:hover{ color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.fcol--social a{ display: inline-flex; align-items: center; gap: 8px; }
.fcol--social svg{ width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-3); }

.footer__bottom{
  padding: 24px 0 32px; border-top: 1px solid var(--line);
  display: grid; gap: 14px; font-size: .8125rem; line-height: 1.7; color: var(--ink-3);
}
@media (min-width: 1024px) { .footer__bottom{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } .identity{ text-align: right; } }
.identity a{ color: var(--ink-2); text-underline-offset: 3px; white-space: nowrap; }
.identity a:hover{ color: var(--violet); }
.footer__copy{ margin-top: 6px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-footer *, .panel *, .gp-fable *, .site-header *::before, .site-footer *::before, .panel *::before, .gp-fable *::before, .site-header *::after, .site-footer *::after, .panel *::after, .gp-fable *::after{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gp-fable .caret{ opacity: 1; }
}

/* ---------- Small-screen refinements ---------- */
.gp-fable .sample__link{ display: inline-block; }
.gp-fable .sample__link span{ display: inline; }
.gp-fable .sample__link .arr{ display: inline-block; margin-left: .35em; }
@media (max-width: 639px) {
  .gp-fable .dim{ display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: baseline; padding: 18px 20px; }
  .gp-fable .dim__letter{ font-size: 2.25rem; grid-row: 1 / span 2; }
  .gp-fable .dim h3{ margin-top: 0; }
  .gp-fable .dim__pts{ grid-column: 1 / -1; }
  .gp-fable .dim__pts li:first-child{ margin-top: 8px; }
}
/* backdrop-filter makes the header a containing block for position:fixed —
   drop it while the overlay is open so the panel fills the viewport. */
body.menu-open .site-header{ -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }


/* ---------- t291u WordPress adapter (do not edit mock originals) ---------- */
/* Theme template-part wrappers: zero padding so Fable chrome can be full-bleed. */
header.wp-block-template-part:has(.site-header),
footer.wp-block-template-part:has(.site-footer) {
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  background: transparent;
  box-sizing: border-box;
}
header.wp-block-template-part:has(.site-header) > .site-header,
footer.wp-block-template-part:has(.site-footer) > .site-footer {
  width: 100%;
}

/* Sticky header font + chrome typography on every page. */
.site-header, .site-footer {
  font-family: var(--font-latin), var(--font-hant), sans-serif;
}
:lang(zh-Hans) .site-header,
:lang(zh-Hans) .site-footer,
body:lang(zh-Hans) .site-header,
body:lang(zh-Hans) .site-footer {
  font-family: var(--font-latin), var(--font-hans), sans-serif;
}

/* Homepage only: Fable page colour / type. typo.css stays for inner pages. */
body.gp-fable-home {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin), var(--font-hant), sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(zh-Hans) body.gp-fable-home,
body.gp-fable-home:lang(zh-Hans) {
  font-family: var(--font-latin), var(--font-hans), sans-serif;
}
html:lang(zh) body.gp-fable-home { line-height: 1.8; }
html:lang(en) body.gp-fable-home { line-height: 1.6; }

/* Neutralise typo.css 60rem measure + theme constrained padding on Fable homes only. */
body.gp-fable-home main.wp-block-group,
body.gp-fable-home main.has-global-padding,
body.gp-fable-home .wp-block-group.has-global-padding.is-layout-constrained,
body.gp-fable-home .entry-content,
body.gp-fable-home .wp-block-post-content,
body.gp-fable-home .wp-block-post-content.is-layout-constrained,
body.gp-fable-home .wp-block-post-content.has-global-padding {
  max-width: none;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  padding-inline: 0;
  margin-top: 0;
  margin-bottom: 0;
}
body.gp-fable-home .wp-block-post-content > .gp-fable,
body.gp-fable-home .wp-block-post-content > #gp-fable-home,
body.gp-fable-home .is-layout-constrained > .gp-fable {
  max-width: none;
  margin: 0;
}
/* typo.css colours post-content links blue; Fable links inherit, CTAs use .btn */
body.gp-fable-home .wp-block-post-content .gp-fable a:not(.btn):not(.wp-block-button__link) {
  color: inherit;
  text-decoration: none;
}
body.gp-fable-home .wp-block-post-content .gp-fable .sample__link,
body.gp-fable-home .wp-block-post-content .gp-fable .learn a,
body.gp-fable-home .wp-block-post-content .gp-fable .disclaimer a {
  text-decoration: inherit;
}

/* Admin bar: keep sticky header below it when a logged-in editor previews. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* t291u specificity fixes: scoped .btn {display:inline-flex} beat the desktop
   .mini-cta {display:none} rule (0,2,0 vs 0,1,0), leaving two header CTAs at ≥1024.
   .vh was wrongly prefixed under .gp-fable, so the menu-button label was visible. */
@media (min-width: 1024px) {
  .site-header a.mini-cta.btn,
  .site-header .mini-cta { display: none; }
}
.site-header .vh, .site-footer .vh, .panel .vh, .menu-btn .vh, .gp-fable .vh {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* t317u Fable patch (2026-11-16, Asia/Hong_Kong)
   DRAFT ONLY. Append after live gp-fable-t291u.css
   (baseline sha256 01dacdf915f9aa846eea43989d3d6eee9fff071a0df8cbf305d684964ae8d86f,
   35828 B). Do not edit the t291u package in place. Do not replace typo.css.

   Cause of the mobile body left-shift / clipped line starts:
   t291u already zeroes theme `.has-global-padding` padding on Fable homes
   (`padding-inline: 0` on main / inner group / `.wp-block-post-content`)
   so Fable `.wrap` can provide the gutter. It does not cancel the theme rule
     .has-global-padding > .alignfull {
       margin-left:  calc(var(--wp--style--root--padding-left) * -1);
       margin-right: calc(var(--wp--style--root--padding-right) * -1);
     }
   `--wp--style--root--padding-left` is `var(--wp--preset--spacing--50)`,
   which is `clamp(30px, 5vw, 50px)`: 30px at 360 / 390, 38.4px at 768,
   50px at 1280. The inner `.wp-block-group.alignfull.has-global-padding`
   therefore starts that many pixels to the left of the viewport. Combined
   with `body.gp-fable-home { overflow-x: hidden }`, the wrap gutter and
   the start of hero / disclaimer lines are clipped (visible clip at
   360 / 390 ≈ 14px = 30px − 16px gutter). typo.css 60rem measure is not
   the cause (Fable body is not a direct typo-measure child).

   This patch only zeroes those compensating negative margins on Fable
   homes. It does not change inner-page typo measure or theme padding.
   Specificity 0,3,1 beats the theme 0,2,0 rule. margin-left/right are
   not !important, so `.wp-block-post-content { margin-left: auto !important }`
   from live custom CSS still centres the 1120px frame on desktop.
*/

body.gp-fable-home main.has-global-padding > .alignfull,
body.gp-fable-home .has-global-padding > .alignfull.wp-block-group,
body.gp-fable-home .has-global-padding > .alignfull.wp-block-post-content,
body.gp-fable-home .has-global-padding > .entry-content.alignfull,
body.gp-fable-home .has-global-padding > .alignfull {
  margin-left: 0;
  margin-right: 0;
}
