/* ==========================================================================
   WordTool — shared stylesheet (index.html, blog.html, article.html)
   Order: tokens · base · layout · components · header · footer · dock/sheets
          · home · blog · article · utilities
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #16181d;
  --ink-2: #3c414c;
  --muted: #646a77;
  --line: #e6e2d9;
  --line-2: #d6d1c5;

  --accent: #2346b5;
  --accent-hover: #1a378f;
  --accent-soft: #eaeefa;
  --mark: #ffdc5e;

  --c-write: #2346b5;  --t-write: #edf1fb;
  --c-find: #1c7449;   --t-find: #e7f3eb;
  --c-learn: #9c5a07;  --t-learn: #fbf0de;
  --c-game: #ab3358;   --t-game: #f9e9ee;
  --c-ok: #1c7449;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .05);
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 6px 18px rgba(22, 24, 29, .06);
  --shadow-lg: 0 18px 50px rgba(22, 24, 29, .16);

  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 14px;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --dock-space: 0px;
  --section-y: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  padding-bottom: var(--dock-space);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; font-size: var(--fs-body); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--mark); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 32px; height: 32px; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section-y) 0; }
.section:last-of-type { padding-bottom: var(--section-y); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(25px, 2.6vw, 32px); display: flex; align-items: center; gap: 10px; }
.section-head h2 .ic { color: var(--accent); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); color: var(--accent); white-space: nowrap; }
.link-more:hover { color: var(--accent-hover); }
.link-more:hover .ic { transform: translateX(3px); }
.link-more .ic { transition: transform .2s; width: 17px; height: 17px; }
/* Grid children may shrink below their content width (prevents mobile overflow) */
.hero-grid > *, .search-card > *, .counter-grid > *, .split > *, .seo-grid > *, .blog-layout > *,
.page-hero-grid > *, .article-layout > *, .footer-grid > *, .cat-grid > *, .dir-grid > *, .flow > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Panels are big framed boxes on desktop; on mobile the frame drops away
   so the items inside get the full width (only the 15px page gutter stays). */
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }

/* ---------- 4. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2f38; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  color: var(--ink-2); border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: var(--accent-soft); color: var(--accent); }
.btn-icon.is-outlined { border-color: var(--line); background: var(--surface); }
.btn-icon[aria-pressed="true"] { color: var(--c-game); }
.btn-icon[aria-pressed="true"] .ic { fill: currentColor; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .01em;
}
.badge-solid { background: var(--ink); color: #fff; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2);
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-size: 13px; opacity: .65; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
label.chip { cursor: pointer; }
.chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-hover { transition: border-color .18s, box-shadow .18s, transform .18s; }
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }

.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.t-write { background: var(--t-write); color: var(--c-write); }
.t-find  { background: var(--t-find);  color: var(--c-find); }
.t-learn { background: var(--t-learn); color: var(--c-learn); }
.t-game  { background: var(--t-game);  color: var(--c-game); }
.c-write { color: var(--c-write); } .c-find { color: var(--c-find); } .c-learn { color: var(--c-learn); } .c-game { color: var(--c-game); }

.input {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: var(--fs-body); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input::placeholder { color: #8a8f9a; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 44px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; padding: 0; list-style: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .ic { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 500; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; background: var(--t-learn); color: var(--c-learn); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--dock-space)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--mark); }

/* Tables never push the page wider than the screen */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0 0 1.4em; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--surface-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; color: var(--ink); }
.table-hint { display: none; font-size: 13px; color: var(--muted); margin: -0.9em 0 1.4em; align-items: center; gap: 6px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(247, 246, 242, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.03em; flex: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--mark); display: grid; place-items: center; font-size: 19px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { background: rgba(22, 24, 29, .05); color: var(--ink); }
.nav-link .ic { width: 15px; height: 15px; transition: transform .2s; }
.nav-item:hover > .nav-link .ic, .nav-item:focus-within > .nav-link .ic { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 320px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-link { display: flex; gap: 12px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.dd-link:hover { background: var(--surface-2); }
.dd-link .icon-tile { width: 36px; height: 36px; border-radius: 9px; }
.dd-link .ic { width: 18px; height: 18px; }
.dd-link strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.dd-link span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.kbd { font-size: 12px; font-family: ui-monospace, Menlo, monospace; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--fs-sm);
}
.search-trigger:hover { border-color: var(--line-2); color: var(--ink); }
.has-badge { position: relative; }
.dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mark); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--bg); }
.dot[hidden] { display: none; }

/* ---------- 6. Footer ---------- */
.site-footer { margin-top: var(--section-y); background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: var(--fs-sm); max-width: 300px; margin: 14px 0 18px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: var(--fs-sm); color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-col .link-more { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding: 20px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 7. Rating (shared on every page) ---------- */
.rating { max-width: 760px; margin-inline: auto; padding: 32px; text-align: center; }
.rating h2 { font-size: 24px; margin-bottom: 6px; }
.rating > p { color: var(--muted); font-size: var(--fs-sm); }
.rating-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.rate-btn { min-width: 190px; }
.rate-btn[aria-pressed="true"].is-up { background: var(--t-find); border-color: var(--c-find); color: var(--c-find); }
.rate-btn[aria-pressed="true"].is-down { background: var(--t-game); border-color: var(--c-game); color: var(--c-game); }
.rating-meter { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); }
.rating-meter .bar { width: 140px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rating-meter .bar i { display: block; height: 100%; background: var(--c-ok); border-radius: 6px; }
.rating-form { text-align: left; margin-top: 22px; display: grid; gap: 14px; }
.rating-form[hidden], .rating-thanks[hidden] { display: none; }
.rating-form legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 10px; padding: 0; }
.rating-form fieldset { border: 0; padding: 0; margin: 0; }
.rating-form textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.rating-thanks { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-ok); }

/* ---------- 8. Mobile dock, sheets, drawer, back-to-top ---------- */
.dock { display: none; }
.to-top {
  position: fixed; right: 18px; bottom: calc(22px + var(--dock-space)); z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(22, 24, 29, .42); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.backdrop.is-on { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; z-index: 100; left: 50%; top: 12vh; width: min(640px, calc(100% - 32px)); max-height: 72vh;
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px) scale(.98); transition: opacity .2s, transform .2s, visibility .2s;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 20px; flex: 1; }
.sheet-search { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.sheet-group { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 6px; }
.sheet-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.sheet-item:hover, .sheet-item.is-focus { background: var(--surface-2); }
.sheet-item .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.sheet-item .ic { width: 18px; height: 18px; }
.sheet-item strong { display: block; font-weight: 600; font-size: 16px; }
.sheet-item span { display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.sheet-item > div { flex: 1; min-width: 0; }
.sheet-empty { text-align: center; padding: 36px 16px; color: var(--muted); font-size: var(--fs-sm); }
.sheet-empty .ic { margin: 0 auto 10px; width: 30px; height: 30px; color: var(--line-2); }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-weight: 600; }
.drawer-links a:hover { background: var(--surface-2); }
.drawer-links .ic { color: var(--muted); }

/* ---------- 9. Home ---------- */
.hero { padding: 40px 0 96px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.035em; margin: 16px 0 18px; }
.hero h1 .mark { background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%); padding: 0 .06em; }
.hero-lede { font-size: 19px; color: var(--ink-2); max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-sm); color: var(--ink-2); }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.checks .ic { width: 17px; height: 17px; color: var(--c-ok); stroke-width: 2.6; }

.hero-art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 56 / 42; margin-left: auto; }
.hero-art .blob { position: absolute; inset: 6% 6% 4% 14%; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; background: #e9e5da; }
.hero-art .blob::after { content: ""; position: absolute; inset: 14% -8% -6% 46%; border-radius: 50%; background: #f1dfa7; opacity: .55; z-index: -1; }
.screen { position: absolute; left: 32.6%; top: 26.6%; width: 36.8%; height: 34.6%; border-radius: 4px; background: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 6%; padding: 4% 5%; }
.screen .bar { display: flex; align-items: center; gap: 5%; font-family: var(--font-head); font-weight: 800; font-size: clamp(8px, 1.1vw, 13px); color: var(--ink); }
.screen .bar b { width: 1.5em; height: 1.5em; border-radius: 4px; background: var(--ink); color: var(--mark); display: grid; place-items: center; font-size: .85em; }
.screen .bar i { margin-left: auto; width: 22%; height: .5em; border-radius: 9px; background: var(--accent); opacity: .85; }
.screen .ln { height: 7%; border-radius: 9px; background: #e6e2d9; }
.screen .ln.w2 { width: 72%; } .screen .ln.w3 { width: 52%; }
.screen .box { flex: 1; border-radius: 4px; border: 1px solid #e6e2d9; background: var(--surface-2); }
.hero-art img { position: absolute; filter: drop-shadow(0 18px 24px rgba(22, 24, 29, .14)); }
.hero-art .a-laptop { width: 54%; left: 24%; top: 20%; }
.hero-art .a-books { width: 27%; left: 9%; bottom: 3%; }
.hero-art .a-plant { width: 25%; right: 5%; top: 6%; }
.hero-art .a-pencil { width: 14%; right: 12%; bottom: 8%; transform: rotate(-12deg); }
.hero-art .a-memo { width: 15%; left: 64%; top: 54%; transform: rotate(8deg); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: transform .2s, border-color .2s; animation: bob 6s ease-in-out infinite;
}
.float-chip:hover { border-color: var(--ink); }
.float-chip .ic { width: 18px; height: 18px; }
.float-chip:nth-of-type(2) { animation-delay: -1.5s; } .float-chip:nth-of-type(3) { animation-delay: -3s; } .float-chip:nth-of-type(4) { animation-delay: -4.5s; }
.fc-1 { left: 30%; top: 0; } .fc-2 { left: 4%; top: 28%; } .fc-3 { right: 0; top: 30%; } .fc-4 { right: 18%; bottom: -4%; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.search-card { position: relative; z-index: 5; margin-top: -60px; display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 32px; box-shadow: var(--shadow); }
.search-card .spark { width: 56px; height: 56px; border-radius: 16px; background: var(--mark); color: var(--ink); display: grid; place-items: center; margin-top: 4px; }
.search-card h2 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 14px; }
.search-box { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box > .ic { margin: 0 2px 0 10px; align-self: center; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-body); height: 44px; }
.search-box .btn { height: 44px; min-height: 44px; }
.suggest {
  position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 8px); z-index: 20; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.suggest.is-open { display: block; }
.popular { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.popular > span { font-size: var(--fs-sm); font-weight: 600; flex: none; }
.popular .chip-row { flex-wrap: wrap; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { position: relative; border-radius: var(--r-lg); padding: 22px; border: 1px solid transparent; transition: border-color .18s, transform .18s; display: flex; flex-direction: column; }
.cat-card:hover { border-color: currentColor; transform: translateY(-2px); }
.cat-card.t-write { color: var(--c-write); } .cat-card.t-find { color: var(--c-find); } .cat-card.t-learn { color: var(--c-learn); } .cat-card.t-game { color: var(--c-game); }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cat-head h3 { font-size: 21px; color: var(--ink); flex: 1; }
.cat-head .ic-lg { stroke-width: 1.9; }
.cat-head .go { width: 18px; height: 18px; color: var(--ink-2); transition: transform .2s; }
.cat-card:hover .go { transform: translateX(3px); }
.cat-card > p { color: var(--ink-2); font-size: var(--fs-sm); margin-bottom: 16px; }
.cat-card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pill-list { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid rgba(22, 24, 29, .04); }
.pill:hover { box-shadow: var(--shadow); }
.pill .ic { width: 16px; height: 16px; }

.counter-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.counter-intro h2 { font-size: clamp(25px, 2.6vw, 32px); margin: 12px 0 8px; }
.counter-intro p { color: var(--ink-2); max-width: 560px; }
.editor { border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.editor textarea { display: block; width: 100%; min-height: 200px; padding: 16px 18px; border: 0; outline: 0; resize: vertical; background: none; font-size: var(--fs-body); line-height: 1.65; }
.editor-bar { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.editor-bar .meta { display: flex; gap: 18px; font-size: var(--fs-xs); color: var(--muted); margin-right: auto; }
.editor-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.editor-head::-webkit-scrollbar { display: none; }
.editor-head > span { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 4px 0 4px; flex: none; }
.editor-head .case-btn { flex: none; }
.editor-bar .meta b { color: var(--ink); font-weight: 700; }
.case-btn { height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.case-btn:hover { border-color: var(--ink); color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat .icon-tile { width: 44px; height: 44px; }
.stat b { display: block; font-family: var(--font-head); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }
.analyze { margin-top: 12px; }
.analysis { margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.analysis[hidden] { display: none; }
.analysis dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 12px; }
.analysis dt { color: var(--muted); } .analysis dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.analysis h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-list span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr 220px; gap: 14px; align-items: center; }
.step { display: flex; gap: 14px; padding: 18px; height: 100%; align-items: flex-start; }
.step .icon-tile { border-radius: 50%; }
.step h3 { font-size: 18px; margin: 2px 0 4px; }
.step p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.5; }
.step-num { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.flow-arrow { color: var(--line-2); }
.flow-art { position: relative; height: 150px; }
.flow-art img { position: absolute; }
.flow-art .a1 { width: 120px; left: 20px; top: 6px; transform: rotate(-6deg); filter: drop-shadow(0 12px 16px rgba(22,24,29,.12)); }
.flow-art .a2 { width: 66px; right: 24px; bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 40px; }
.split-rule { background: var(--line); }
.wotd { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 18px; align-items: center; }
.wotd-tile { align-self: stretch; border-radius: var(--r); background: var(--t-learn); color: var(--c-learn); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 700; padding: 14px 8px; line-height: 1.25; }
.wotd-word { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wotd-word h3 { font-size: 32px; letter-spacing: -.03em; }
.wotd-def { margin: 8px 0 10px; color: var(--ink-2); }
.wotd-ex { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--muted); margin: 0; font-style: italic; }
.wotd-ex .ic { width: 16px; height: 16px; margin-top: 4px; }
.wotd-ex b { color: var(--ink); font-style: normal; }
.wotd-side { display: flex; flex-direction: column; gap: 8px; align-self: stretch; justify-content: space-between; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.why-list .ok { width: 24px; height: 24px; border-radius: 50%; background: var(--c-ok); color: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; }
.why-list .ok .ic { width: 14px; height: 14px; stroke-width: 3; }
.why-wrap { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; }
.why-art { position: relative; height: 170px; }
.why-art img { position: absolute; filter: drop-shadow(0 14px 18px rgba(22,24,29,.12)); }
.why-art .a1 { width: 130px; left: 0; top: 10px; }
.why-art .a2 { width: 72px; right: 0; bottom: 0; }

.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tool-card { position: relative; padding: 22px 16px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tool-card .icon-tile { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
.tool-card .ic { width: 26px; height: 26px; }
.tool-card h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.01em; }
.tool-card p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.45; }

.dir-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.tabs::-webkit-scrollbar { display: none; }
.dir-filter { width: 300px; max-width: 100%; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-row { display: flex; align-items: center; gap: 14px; padding: 14px 10px 14px 14px; }
.tool-row[hidden] { display: none; }
.tool-row .info { flex: 1; min-width: 0; }
.tool-row h3 { font-size: 17px; letter-spacing: -.01em; }
.tool-row h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-row { position: relative; }
.tool-row p { font-size: var(--fs-xs); color: var(--muted); margin: 2px 0 0; line-height: 1.4; }
.tool-row .actions { display: flex; position: relative; z-index: 1; }
.tool-row .btn-icon { width: 36px; height: 36px; }
.tool-row .ic { width: 18px; height: 18px; }
.dir-empty { text-align: center; padding: 32px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.dir-empty[hidden] { display: none; }
.dir-count { font-size: var(--fs-xs); color: var(--muted); margin-top: 14px; }

.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.aside-card { padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.aside-card h3 { font-size: 18px; margin-bottom: 12px; }
.aside-card + .aside-card { margin-top: 16px; position: static; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; }
.mini-list a:hover { background: var(--surface-2); }
.mini-list .icon-tile { width: 32px; height: 32px; border-radius: 8px; }
.mini-list .ic { width: 16px; height: 16px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 16px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- 10. Posts (shared by home teaser, blog list, related) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img, .post-row:hover .post-thumb img, .post-feature:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); margin-top: auto; }
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .ic { width: 15px; height: 15px; }
.tag-write { background: var(--t-write); color: var(--c-write); } .tag-grammar { background: var(--t-find); color: var(--c-find); }
.tag-vocab { background: var(--t-learn); color: var(--c-learn); } .tag-games { background: var(--t-game); color: var(--c-game); }
.tag-study { background: #eceae4; color: var(--ink-2); }

/* ---------- 11. Blog list page ---------- */
.page-hero { padding: 36px 0 32px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px; }
.page-hero p { color: var(--ink-2); max-width: 620px; margin: 0; font-size: 18px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; padding-top: 32px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.filter-bar .tabs { flex: 1 1 560px; min-width: 0; }
.sort { margin-left: auto; }
.post-feature .post-thumb img { object-position: 78% 50%; }
.sort { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); flex: none; }
.sort select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-size: var(--fs-xs); color: var(--ink); }
.post-feature { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; margin-bottom: 28px; }
.post-feature .post-thumb { aspect-ratio: auto; min-height: 100%; }
.post-feature .post-body { padding: 28px; justify-content: center; gap: 12px; }
.post-feature h2 { font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.2; }
.post-feature h2 a::after { content: ""; position: absolute; inset: 0; }
.post-feature h2 a:hover { color: var(--accent); }
.post-feature .post-meta { margin-top: 6px; }
.list-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-row { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 40px; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-row[hidden] { display: none; }
.post-row .post-thumb { border-radius: var(--r); aspect-ratio: 16 / 11; }
.post-row .post-body { padding: 0; gap: 6px; }
.post-row .post-body h3 { font-size: 21px; }
.post-row .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.post-row:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--surface); }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sidebar { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 22px; }
.side-card h2 { font-size: 18px; margin-bottom: 12px; letter-spacing: -.01em; }
.side-card p { font-size: var(--fs-sm); color: var(--muted); }
.newsletter { background: var(--ink); color: #fff; border-color: var(--ink); }
.newsletter h2 { color: #fff; }
.newsletter p { color: #c4c7cf; }
.newsletter form { display: grid; gap: 10px; }
.newsletter .input { background: #23262e; border-color: #3a3e48; color: #fff; }
.newsletter .input:focus { box-shadow: 0 0 0 4px rgba(255, 220, 94, .25); border-color: var(--mark); }
.newsletter .btn { background: var(--mark); color: var(--ink); }
.newsletter .btn:hover { background: #ffe68a; }
.newsletter small { color: #9aa0ab; font-size: 13px; }
.rank-list { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 14px; }
.rank-list li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.rank-list li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-head); color: var(--line-2); font-weight: 800; font-size: 18px; line-height: 1.2; }
.rank-list a:hover { color: var(--accent); }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state[hidden] { display: none; }

/* ---------- 12. Article page ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 80; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.article-head { padding-block: 32px 24px; }
.article-head h1 { font-size: clamp(31px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 14px; }
.article-lede { font-size: 20px; color: var(--ink-2); line-height: 1.55; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.byline strong { display: block; font-size: var(--fs-sm); }
.byline .who span { font-size: var(--fs-xs); color: var(--muted); }
.share { display: flex; gap: 6px; }
.share svg.brand { width: 17px; height: 17px; fill: currentColor; }
.cover { margin: 8px auto 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 7.4; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-cap { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 56px; padding-top: 40px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc details { border: 0; }
.toc summary { list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .ic { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-tool { margin-top: 22px; padding: 16px; }
.toc-tool strong { display: block; font-size: var(--fs-sm); margin-bottom: 4px; }
.toc-tool p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; line-height: 1.45; }

.prose { font-size: 18px; line-height: 1.75; color: #24272e; min-width: 0; }
.prose p { font-size: inherit; margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(25px, 2.6vw, 30px); margin: 1.8em 0 .6em; letter-spacing: -.025em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; letter-spacing: -.015em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--mark); font-family: var(--font-head); font-size: 22px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.prose blockquote p { margin-bottom: .4em; }
.prose blockquote cite { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-style: normal; color: var(--muted); }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; background: #efece5; padding: 2px 6px; border-radius: 6px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose .table-wrap { font-size: var(--fs-sm); line-height: 1.5; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); margin: 1.6em 0; font-size: 16.5px; line-height: 1.6; }
.callout .ic { margin-top: 3px; }
.callout p { margin: 0; }
.callout strong { display: block; margin-bottom: 2px; }
.callout-tip { background: var(--t-find); color: #154f33; }
.callout-tip strong { color: #0f3d27; }
.callout-warn { background: var(--t-learn); color: #6a3d04; }
.callout-warn strong { color: #4f2d02; }
.inline-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; margin: 1.8em 0; border-radius: var(--r-lg); background: var(--ink); color: #d6d8de; }
.inline-cta .icon-tile { background: var(--mark); color: var(--ink); }
.inline-cta strong { display: block; color: #fff; font-size: 18px; font-family: var(--font-head); }
.inline-cta p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.inline-cta .btn { background: #fff; color: var(--ink); text-decoration: none; }
.takeaways { padding: 22px 24px; margin: 0 0 2em; background: var(--surface); }
.takeaways h2 { font-size: 19px !important; margin: 0 0 10px !important; display: flex; gap: 8px; align-items: center; }
.takeaways ul { margin: 0; }
.takeaways li { font-size: 16.5px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px; margin-bottom: 8px; }
.author-box .avatar { width: 64px; height: 64px; font-size: 22px; }
.author-box h2 { font-size: 19px; margin-bottom: 4px; }
.author-box p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 10px; }
.author-box .link-more { font-size: var(--fs-xs); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1600px) {
  .search-trigger .label { display: none; }
}
@media (max-width: 1200px) {
  .header-actions .about-link, .search-trigger .kbd { display: none; }
  .nav-link { padding: 0 9px; }
}
@media (max-width: 1060px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 980px) {
  .nav-link { padding: 0 7px; }
  .header-inner { gap: 14px; }
}
@media (max-width: 1140px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .flow-art { display: none; }
}

@media (max-width: 1024px) {
  :root { --section-y: 60px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-rule { display: none; }
  .seo-grid, .blog-layout { grid-template-columns: 1fr; }
  .aside-card, .sidebar { position: static; }
  .sidebar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, 720px); gap: 0; padding-top: 28px; }
  .toc { position: static; margin-bottom: 28px; }
  .toc details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .toc summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 14px 16px; font-size: 13px; }
  .toc summary .ic { display: block; margin-left: auto; transition: transform .2s; }
  .toc details[open] summary .ic { transform: rotate(180deg); }
  .toc ol { margin: 0 16px 14px; }
  .toc-tool { display: none; }
}

/* Mobile + tablet: nav moves into the dock */
@media (max-width: 900px) {
  :root { --header-h: 60px; --dock-space: calc(92px + env(safe-area-inset-bottom)); }
  .nav, .header-actions .btn, .header-actions .about-link { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding: 28px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { max-width: 460px; margin: 8px auto 0; }
  .hero-art .screen .bar { font-size: clamp(7px, 2.2vw, 12px); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; margin: -6px 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { aspect-ratio: 16 / 9; }

  /* Creative dock: dark floating capsule with a highlighter-yellow centre key */
  .dock {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; z-index: 75; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    height: 66px; padding: 0 6px 8px; border-radius: 24px; background: var(--ink);
    box-shadow: 0 14px 34px rgba(22, 24, 29, .28);
  }
  .dock-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #9da2ad; font-size: 12px; font-weight: 600; letter-spacing: .01em; padding-top: 10px; height: 100%; justify-content: flex-end;
    transition: color .2s;
  }
  .dock-item .ic { width: 22px; height: 22px; transition: transform .2s; }
  .dock-item:active .ic { transform: scale(.88); }
  .dock-item.is-active { color: #fff; }
  .dock-item.is-active::before { content: ""; position: absolute; top: 4px; width: 18px; height: 3px; border-radius: 3px; background: var(--mark); }
  .dock-main { justify-content: flex-end; color: #fff; }
  .dock-main .key {
    position: absolute; top: -26px; width: 58px; height: 58px; border-radius: 18px; transform: rotate(45deg);
    background: var(--mark); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg), 0 10px 20px rgba(22,24,29,.25);
    transition: transform .25s;
  }
  .dock-main .key .ic { transform: rotate(-45deg); color: var(--ink); width: 24px; height: 24px; stroke-width: 2.2; }
  .dock-main:active .key { transform: rotate(45deg) scale(.92); }
  .dock-main span:last-child { margin-top: 30px; }

  /* Sheets become bottom sheets */
  .sheet { top: auto; bottom: 0; left: 0; width: 100%; max-height: 86vh; border-radius: 22px 22px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .sheet.is-open { transform: translateY(0); }
  .sheet::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 8px auto 0; flex: none; }
  .site-footer { padding-top: 44px; }
}

@media (max-width: 640px) {
  :root { --gutter: 15px; --section-y: 48px; }
  body { font-size: var(--fs-body); }
  .section-head { margin-bottom: 18px; }
  .section-head .link-more { font-size: var(--fs-xs); }

  /* Boxes lose their frame + padding so inner items get the room */
  .panel { padding: 0; border: 0; background: none; border-radius: 0; }

  .hero { padding: 20px 0 72px; }
  .hero-lede { font-size: 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .checks { gap: 6px 16px; }
  .hero-art { max-width: 340px; }
  .float-chip { font-size: 12.5px; padding: 7px 10px; gap: 6px; border-radius: 10px; }
  .float-chip .ic { width: 15px; height: 15px; }
  .fc-1 { left: 26%; } .fc-2 { left: 0; top: 30%; } .fc-3 { top: 36%; } .fc-4 { right: 8%; }

  .search-card { grid-template-columns: 1fr; gap: 0; padding: 18px 15px; margin-top: -48px; border-radius: var(--r-lg); }
  .search-card .spark { display: none; }
  .search-box { padding: 4px; }
  .search-box > .ic { margin-left: 8px; }
  .search-box .btn { padding: 0 14px; }
  .search-box .btn .label { display: none; }
  .popular { flex-direction: column; align-items: stretch; gap: 8px; }
  .popular .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -15px; padding-inline: 15px; }
  .popular .chip-row::-webkit-scrollbar { display: none; }

  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { padding: 18px; }
  .cat-card > p { margin-bottom: 12px; }
  .pill-list { flex-direction: row; flex-wrap: wrap; }

  .editor textarea { min-height: 170px; padding: 14px; }
  .editor-bar { padding-left: 12px; }
  .editor-bar .meta { gap: 12px; }
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .icon-tile { width: 38px; height: 38px; border-radius: 10px; }
  .stat b { font-size: 22px; }

  .wotd { grid-template-columns: 1fr auto; padding: 16px; gap: 14px; }
  .wotd-tile { grid-column: 1; grid-row: 1; flex-direction: row; justify-content: flex-start; padding: 10px 14px; }
  .wotd-side { grid-column: 2; grid-row: 1; flex-direction: row; align-self: center; }
  .wotd > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .wotd-word h3 { font-size: 28px; }
  .why-wrap { grid-template-columns: 1fr; }
  .why-art { display: none; }

  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card { padding: 18px 12px; }
  .dir-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tabs { margin-inline: -15px; padding-inline: 15px; }
  .dir-filter { width: 100%; }
  .dir-grid { grid-template-columns: 1fr; gap: 10px; }

  .post-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -15px; padding: 2px 15px 8px; scrollbar-width: none; }
  .post-grid::-webkit-scrollbar { display: none; }
  .post-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
  .post-grid.is-static { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }

  .faq summary { padding: 14px 15px; font-size: 16.5px; }
  .faq .answer { padding: 0 15px 14px; }
  .rating { padding: 0; }
  .rating-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .rate-btn { min-width: 0; width: 100%; }
  .rating-meter { flex-direction: column; gap: 8px; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .page-hero { padding: 22px 0 22px; }
  .page-hero p { font-size: 17px; }
  .blog-layout { padding-top: 20px; gap: 32px; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sort { margin-left: 0; }
  .filter-bar .tabs { margin-inline: -15px; padding-inline: 15px; }
  .post-feature { border-radius: var(--r-lg); margin-bottom: 20px; }
  .post-feature .post-body { padding: 18px; }
  .post-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 16px 0; align-items: start; }
  .post-row .post-thumb { order: 2; aspect-ratio: 1; border-radius: 12px; }
  .post-row .post-thumb img { object-position: 85% 50%; }
  .post-row .post-body h3 { font-size: 18px; }
  .post-row .post-body p { display: none; }
  .post-row .go { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .side-card { padding: 20px; }

  .article-head { padding-block: 20px 18px; }
  .article-lede { font-size: 18px; }
  .byline .who { width: 100%; }
  .cover { border-radius: var(--r-lg); aspect-ratio: 16 / 9; }
  .prose { font-size: 17px; }
  .prose blockquote { font-size: 19px; padding-left: 16px; }
  .callout { padding: 16px; gap: 10px; }
  .inline-cta { grid-template-columns: auto 1fr; padding: 16px; }
  .inline-cta .btn { grid-column: 1 / -1; }
  .takeaways { padding: 18px 16px; }
  .author-box { grid-template-columns: 52px 1fr; padding: 18px 16px; gap: 14px; }
  .author-box .avatar { width: 52px; height: 52px; font-size: 18px; }
  .table-hint { display: flex; }
}

@media (max-width: 380px) {
  .hero-cta .btn { width: 100%; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .dock-item { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
