/* ==========================================================================
   Shopify 问答 — Design System v1.0
   风格技术 · 问答社区
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #0a1626;
  --ink-800: #16273d;
  --ink-700: #33455c;
  --ink-600: #516379;
  --ink-500: #74859a;
  --ink-400: #9aa8ba;
  --ink-300: #c3cddb;

  --line: #e4e9f1;
  --line-soft: #eef2f8;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-softer: #fbfcfe;

  --brand: #0778b4;
  --brand-hover: #04598a;
  --brand-deep: #02386e;
  --brand-bright: #0599d7;
  --brand-bright2: #0bb3ec;
  --brand-tint: #e9f5fc;
  --brand-tint2: #cbeafa;

  --shopify: #007a5c;
  --shopify-tint: #e4f4ef;
  --amber: #a45c00;
  --amber-tint: #fff4e2;
  --rose: #a3264a;
  --rose-tint: #fdecf1;
  --violet: #5b3ec8;
  --violet-tint: #f0ecfe;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --r-xs: 5px;
  --r-s: 8px;
  --r-m: 11px;
  --r-l: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(10, 22, 38, .05);
  --sh-2: 0 6px 18px -8px rgba(10, 22, 38, .12);
  --sh-3: 0 22px 50px -24px rgba(10, 22, 38, .28);

  --wrap: 1180px;
  --header-h: 66px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
svg { width: 14px; height: 14px; flex-shrink: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
em, i { font-style: normal; }

::selection { background: var(--brand-tint2); color: var(--brand-deep); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 34px; align-items: start; }
.shell--wide { grid-template-columns: minmax(0, 1fr) 300px; }

/* ---------- 4. Announcement bar ---------- */
.announce {
  background: #012f52; color: #c6dced; font-size: 12.5px;
  letter-spacing: .2px;
}
.announce .wrap { display: flex; align-items: center; gap: 10px; height: 34px; }
.announce b { color: #fff; font-weight: 600; }
.announce a { color: #8fd6f6; }
.announce a:hover { color: #fff; }
.announce .dot { width: 4px; height: 4px; border-radius: 50%; background: #2d5b7d; }
.announce .spacer { margin-left: auto; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 6px 20px -16px rgba(10, 22, 38, .45); }
.header-inner {
  height: var(--header-h); display: flex; align-items: center; gap: 26px;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; flex-shrink: 0; display: block;
  object-fit: contain; background: transparent; transition: transform .2s;
  filter: drop-shadow(0 2px 5px rgba(3, 74, 152, .18));
}
.brand:hover .brand-mark { transform: scale(1.04); }
/* 页脚为深色底，logo 加深蓝底托以保证可读 */
.footer-brand .brand-mark,
.site-footer .brand-mark {
  width: 38px; height: 38px; padding: 4px; border-radius: 10px;
  background: #fff; object-fit: contain;
  filter: none; box-shadow: 0 3px 10px -6px rgba(0, 0, 0, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 15.5px; font-weight: 700; color: var(--ink-900); letter-spacing: -.2px; }
.brand-sub { font-size: 11px; color: var(--ink-500); letter-spacing: .3px; }

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.header-nav a {
  padding: 7px 11px; border-radius: var(--r-s); font-size: 13.5px;
  color: var(--ink-600); font-weight: 500; white-space: nowrap; transition: .15s;
}
.header-nav a:hover { background: var(--bg-soft); color: var(--ink-900); }
.header-nav a.is-active { color: var(--brand); background: var(--brand-tint); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* search */
.search { position: relative; width: 214px; }
.search input {
  width: 100%; height: 36px; padding: 0 34px 0 34px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--bg-soft); font-size: 13px; color: var(--ink-800);
  transition: .15s;
}
.search input::placeholder { color: var(--ink-400); }
.search input:focus {
  outline: none; background: #fff; border-color: var(--brand-tint2);
  box-shadow: 0 0 0 3px rgba(15, 87, 196, .08);
}
.search .s-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ink-400); pointer-events: none;
}
.search .s-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 15px;
  background: #fff; pointer-events: none;
}
.search input:focus ~ .s-kbd { opacity: 0; }
.search-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--sh-3); padding: 6px; display: none; max-height: 380px; overflow: auto; z-index: 95;
}
.search-panel.open { display: block; }
.search-panel a {
  display: block; padding: 8px 10px; border-radius: var(--r-xs); font-size: 13px;
  color: var(--ink-800); line-height: 1.5;
}
.search-panel a:hover, .search-panel a.on { background: var(--brand-tint); color: var(--brand-deep); }
.search-panel a em { display: block; font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.search-panel .empty { padding: 14px 10px; font-size: 13px; color: var(--ink-500); }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--r-s);
  border: 1px solid var(--line); color: var(--ink-700); place-items: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border-radius: var(--r-s);
  font-size: 14px; font-weight: 600; letter-spacing: .1px;
  transition: .16s; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -10px rgba(7, 120, 180, .85);
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-700); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-300); color: var(--ink-900); background: var(--bg-soft); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #012a4a; color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, #e4f4fd 0%, rgba(228, 244, 253, 0) 62%),
    radial-gradient(700px 380px at 92% 0%, #e8f0fd 0%, rgba(232, 240, 253, 0) 60%),
    linear-gradient(180deg, #fbfcfe, #ffffff);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { padding: 56px 0 44px; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-600); font-weight: 500;
  box-shadow: var(--sh-1); margin-bottom: 20px;
}
.hero-eyebrow b { color: var(--brand); font-weight: 700; }
.hero-eyebrow .live {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .16);
}
.hero h1 {
  font-size: clamp(29px, 4vw, 42px); line-height: 1.28; letter-spacing: -1.1px;
  color: var(--ink-900); font-weight: 750; margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(180deg, transparent 72%, rgba(190, 229, 248, .95) 72%);
  padding-bottom: 2px;
}
.hero-sub {
  font-size: 15.5px; line-height: 1.8; color: var(--ink-600); margin-bottom: 26px; max-width: 640px;
}
.hero-search { position: relative; margin-bottom: 14px; max-width: 620px; }
.hero-search input {
  width: 100%; height: 54px; padding: 0 132px 0 48px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-size: 15px; box-shadow: 0 10px 30px -18px rgba(10, 22, 38, .4);
  transition: .16s;
}
.hero-search input:focus { outline: none; border-color: var(--brand-tint2); box-shadow: 0 0 0 4px rgba(7, 120, 180, .10), 0 12px 30px -20px rgba(10, 22, 38, .5); }
.hero-search .s-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); }
.hero-search .hero-go {
  position: absolute; right: 6px; top: 6px; height: 42px; padding: 0 18px;
  border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
}
.hero-search .hero-go:hover { background: var(--brand-hover); }
.hero-search .search-panel { top: calc(100% + 10px); }

.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-500); }
.hero-tags a {
  padding: 5px 11px; border-radius: 100px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-600); font-size: 12.5px; transition: .15s;
}
.hero-tags a:hover { border-color: var(--brand-tint2); color: var(--brand); background: var(--brand-tint); }

.hero-stats { display: flex; gap: 36px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero-stat b { display: block; font-size: 23px; font-weight: 750; color: var(--ink-900); letter-spacing: -.6px; line-height: 1.2; }
.hero-stat span { font-size: 12.5px; color: var(--ink-500); }

/* ---------- 8. Sections ---------- */
.section { padding: 52px 0; }
.section--tight { padding: 38px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--brand); margin-bottom: 7px;
}
.section-head h2 {
  font-size: 24px; letter-spacing: -.6px; color: var(--ink-900); font-weight: 700; line-height: 1.35;
}
.section-head p { font-size: 14px; color: var(--ink-500); margin-top: 6px; max-width: 620px; }
.section-more { font-size: 13.5px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.section-more svg { width: 14px; height: 14px; flex-shrink: 0; }
.section-more:hover { gap: 9px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }

/* ---------- 9. Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; gap: 13px; padding: 16px; border-radius: var(--r-m);
  background: #fff; border: 1px solid var(--line); transition: .16s;
}
.cat-card:hover {
  border-color: var(--brand-tint2); box-shadow: var(--sh-2); transform: translateY(-2px); color: inherit;
}
.cat-ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand);
}
.cat-ico svg { width: 19px; height: 19px; }
.cat-body { min-width: 0; }
.cat-body b { display: block; font-size: 14px; color: var(--ink-900); font-weight: 650; line-height: 1.4; }
.cat-body span { display: block; font-size: 12px; color: var(--ink-500); margin-top: 3px; line-height: 1.55; }
.cat-count { font-size: 11.5px; color: var(--ink-400); margin-top: 6px; display: block; }

/* ---------- 10. Feed / question list ---------- */
.feed { display: flex; flex-direction: column; }
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.feed-title { font-size: 15px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 9px; }
.feed-title .count {
  font-size: 11.5px; font-weight: 600; color: var(--ink-500);
  background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 7px; border-radius: 100px;
}
.tabs { display: flex; gap: 2px; }
.tabs a {
  padding: 6px 11px; border-radius: 7px; font-size: 13px; color: var(--ink-500);
  font-weight: 500; transition: .15s;
}
.tabs a:hover { background: var(--bg-soft); color: var(--ink-800); }
.tabs a.on { background: var(--ink-900); color: #fff; }

.q-item {
  display: flex; gap: 16px; padding: 18px 0 18px 16px;
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.q-item::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px;
  border-radius: 2px; background: transparent; transition: .18s;
}
.q-item:hover::before { background: var(--brand); }
.q-stats { width: 62px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.q-stat {
  display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-500);
  line-height: 1.3;
}
.q-stat svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--ink-300); }
.q-stat b { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.q-stat.answered b { color: var(--shopify); }
.q-stat.accepted { color: var(--shopify); }
.q-stat.accepted b { color: var(--shopify); }
.q-stat .chk {
  width: 13px; height: 13px; border-radius: 50%; background: var(--shopify);
  color: #fff; display: grid; place-items: center; flex-shrink: 0; align-self: center;
}
.q-stat .chk svg { width: 8px; height: 8px; }
.q-body { min-width: 0; flex: 1; }
.q-title {
  font-size: 15.5px; font-weight: 650; color: var(--ink-900); line-height: 1.5;
  letter-spacing: -.15px; display: block;
}
.q-title:hover { color: var(--brand); }
.q-excerpt {
  font-size: 13.2px; color: var(--ink-500); line-height: 1.65; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.q-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 12px; color: var(--ink-400);
}
.q-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.q-meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.q-meta .mi svg { width: 13px; height: 13px; }
.q-meta .who { color: var(--ink-600); font-weight: 500; }
.q-meta .who b { font-weight: 600; color: var(--ink-700); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--ink-600); font-weight: 500; white-space: nowrap; transition: .14s;
}
.tag:hover { background: var(--brand-tint); border-color: var(--brand-tint2); color: var(--brand); }
.tag i { color: var(--ink-400); font-size: 10.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px;
  border-radius: 5px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.pill-solved { background: var(--shopify-tint); color: var(--shopify); }
.pill-open { background: var(--amber-tint); color: var(--amber); }
.pill-hot { background: var(--rose-tint); color: var(--rose); }
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- 11. Sidebar widgets ---------- */
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px); }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.widget-head {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--ink-900); letter-spacing: -.1px; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.widget-head svg { width: 15px; height: 15px; color: var(--brand); }
.widget-head .more { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-500); }

/* ask CTA widget */
.widget-ask {
  background: linear-gradient(165deg, #04447e, #021f3c 70%); color: #fff;
  border: 0; position: relative; overflow: hidden;
}
.widget-ask::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(5, 153, 215, .34); filter: blur(30px);
}
.widget-ask h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.45; letter-spacing: -.2px; position: relative; }
.widget-ask p { font-size: 12.8px; color: #a9cde6; line-height: 1.65; margin: 7px 0 14px; position: relative; }
.widget-ask .btn { position: relative; }
.widget-ask .wk {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8fb4cd;
  margin-top: 11px; position: relative;
}
.widget-ask .wk svg { width: 13px; height: 13px; flex-shrink: 0; }
.widget-ask .wk b { color: #cfe9f8; font-weight: 600; }

/* mini q list */
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.mini-list a {
  display: flex; gap: 9px; padding: 8px 0; font-size: 12.8px; color: var(--ink-700);
  line-height: 1.55; border-bottom: 1px dashed var(--line-soft);
}
.mini-list a:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list a:hover { color: var(--brand); }
.mini-list a i { margin-left: auto; padding-left: 10px; font-size: 11px; color: var(--ink-400); flex-shrink: 0; }
.mini-num {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--ink-500);
  margin-top: 2px;
}
.mini-list a:nth-child(-n+3) .mini-num { background: var(--brand-tint); color: var(--brand); }

/* experts */
.expert { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.expert:last-child { border-bottom: 0; padding-bottom: 0; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; position: relative;
}
.avatar.blue { background: #e6effd; color: #14488f; }
.avatar.green { background: #e2f3ee; color: #08614c; }
.avatar.amber { background: #fdeed8; color: #8a4d00; }
.avatar.violet { background: #ece7fd; color: #4a2fae; }
.avatar.rose { background: #fce7ee; color: #94204a; }
.avatar.cyan { background: #dff2f8; color: #0b5c76; }
.avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.expert-name { font-size: 13px; font-weight: 650; color: var(--ink-900); display: flex; align-items: center; gap: 5px; }
.expert-role { font-size: 11.5px; color: var(--ink-500); line-height: 1.5; }
.verify-badge {
  width: 13px; height: 13px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.verify-badge svg { width: 7px; height: 7px; }

/* ---------- 12. Question detail ---------- */
.page-empty-top { padding-top: 26px; }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-400); padding: 20px 0 0;
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--ink-300); }
.crumbs .cur { color: var(--ink-600); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.q-header { padding: 18px 0 18px; border-bottom: 1px solid var(--line); }
.q-header h1 {
  font-size: clamp(22px, 2.6vw, 29px); line-height: 1.42; letter-spacing: -.6px;
  color: var(--ink-900); font-weight: 700;
}
.q-header .q-sub-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px;
  font-size: 12.5px; color: var(--ink-500);
}
.q-header .q-sub-meta .mi { display: flex; align-items: center; gap: 5px; }
.q-header .q-sub-meta svg { width: 14px; height: 14px; color: var(--ink-400); }

.detail-body { padding-top: 24px; }

/* post */
.post { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; }
.vote-col { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; }
.vote-btn {
  width: 34px; height: 30px; border-radius: 7px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-400); background: #fff; transition: .14s;
}
.vote-btn svg { width: 15px; height: 15px; }
.vote-btn:hover { border-color: var(--brand-tint2); color: var(--brand); background: var(--brand-tint); }
.vote-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.vote-num { font-size: 17px; font-weight: 750; color: var(--ink-900); line-height: 1.2; letter-spacing: -.4px; }
.vote-txt { font-size: 10.5px; color: var(--ink-400); }

.post-main { min-width: 0; }
.post-text { font-size: 15px; line-height: 1.85; color: var(--ink-700); }
.post-text p { margin-bottom: 13px; }
.post-text p:last-child { margin-bottom: 0; }
.post-text strong { color: var(--ink-900); font-weight: 650; }
.post-text code, .answer-text code {
  font-family: var(--font-mono); font-size: .86em; background: var(--bg-soft);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; color: #064c78;
  overflow-wrap: break-word;
}
.post-text ul, .answer-text ul { margin: 12px 0; display: flex; flex-direction: column; gap: 7px; }
.post-text ul li, .answer-text ul li { position: relative; padding-left: 17px; }
.post-text ul li::before, .answer-text ul li::before {
  content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--ink-300);
}
.post-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px;
  padding-top: 14px; border-top: 1px dashed var(--line-soft);
}
.post-tags { margin-right: auto; }
.share-row { display: flex; gap: 6px; }
.icon-btn {
  height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-500);
  background: #fff; transition: .14s;
}
.icon-btn:hover { border-color: var(--brand-tint2); color: var(--brand); background: var(--brand-tint); }
.icon-btn svg { width: 13px; height: 13px; }

/* author block */
.author-block { display: flex; gap: 11px; margin-top: 18px; padding: 13px 15px; background: var(--bg-soft); border-radius: var(--r-m); }
.author-block .ab-body { min-width: 0; }
.ab-name { font-size: 13px; font-weight: 650; color: var(--ink-900); display: flex; align-items: center; gap: 6px; }
.ab-badge { font-size: 10.5px; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: 1px 6px; border-radius: 4px; }
.ab-role { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }
.ab-time { font-size: 11.5px; color: var(--ink-400); margin-top: 3px; }

/* answers */
.answers-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 34px 0 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink-900);
}
.answers-head h2 { font-size: 17px; font-weight: 700; color: var(--ink-900); letter-spacing: -.2px; }
.answers-head h2 b { color: var(--brand); }
.answers-head .sort { display: flex; gap: 3px; font-size: 12.5px; }

.answer { padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; }
.answer.accepted { background: linear-gradient(180deg, rgba(228, 244, 239, .5), rgba(255, 255, 255, 0) 74%); }
.answer-accepted-flag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 6px; background: var(--shopify); color: #fff; font-size: 11.5px; font-weight: 600;
  margin-bottom: 14px;
}
.answer-accepted-flag svg { width: 11px; height: 11px; }
.answer-text { font-size: 14.8px; line-height: 1.88; color: var(--ink-700); min-width: 0; }
.answer-text > p { margin-bottom: 12px; }
.answer-text > p:last-child { margin-bottom: 0; }
.answer-text .lead { color: var(--ink-800); }
.answer-text h3 {
  font-size: 14px; font-weight: 700; color: var(--ink-900); margin: 18px 0 9px;
  display: flex; align-items: center; gap: 7px;
}
.answer-text h3:first-child { margin-top: 0; }
.answer-text h3 .n {
  width: 19px; height: 19px; border-radius: 5px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 800; flex-shrink: 0;
}

ol.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
ol.steps > li {
  counter-increment: s; position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.8;
  color: var(--ink-700);
}
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 1px solid var(--brand-tint2);
}
ol.steps > li strong { color: var(--ink-900); font-weight: 650; }

.verify-box {
  display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px;
  background: var(--shopify-tint); border-radius: var(--r-s); border-left: 3px solid var(--shopify);
  font-size: 13.2px; line-height: 1.7; color: #0a5545;
}
.verify-box .vb-ico { flex-shrink: 0; width: 16px; height: 16px; color: var(--shopify); margin-top: 2px; }
.verify-box b { color: #073d31; font-weight: 700; }

.code-block { margin: 14px 0; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: #fbfcfe; }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; background: #f2f5fa; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: .3px;
}
.code-copy { font-size: 11px; color: var(--ink-500); padding: 1px 7px; border-radius: 4px; }
.code-copy:hover { background: #e6ecf5; color: var(--ink-800); }
.code-block pre {
  margin: 0; padding: 13px 14px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.4px; line-height: 1.75; color: #12293f;
}
.code-block code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.answer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.helpful {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; color: var(--ink-600);
  background: #fff; transition: .14s;
}
.helpful:hover { border-color: var(--shopify); color: var(--shopify); }
.helpful.on { background: var(--shopify-tint); border-color: var(--shopify); color: var(--shopify); }
.helpful svg { width: 13px; height: 13px; }
.answer-foot .ab-left { margin-right: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-400); }

/* answer composer */
.composer { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: #fff; }
.composer-head { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.composer-head h3 { font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.composer-head p { font-size: 13px; color: var(--ink-500); margin-top: 5px; }
.composer-body { padding: 18px 20px; }
.composer-fake {
  border: 1px dashed var(--line); border-radius: var(--r-s); padding: 14px;
  font-size: 13.5px; color: var(--ink-400); background: var(--bg-softer); min-height: 92px;
}
.composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.composer-actions .hint { font-size: 12px; color: var(--ink-400); }

/* related */
.related-box { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.related-box h2 { font-size: 16px; font-weight: 700; color: var(--ink-900); margin-bottom: 14px; }
.related-list { display: flex; flex-direction: column; }
.related-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft); font-size: 13.8px; color: var(--ink-700);
}
.related-item:last-child { border-bottom: 0; }
.related-item .ri-score {
  width: 40px; flex-shrink: 0; text-align: center; font-size: 11px; color: var(--ink-400);
}
.related-item .ri-score b { display: block; font-size: 13px; color: var(--shopify); font-weight: 700; }
.related-item .ri-t { flex: 1; min-width: 0; }
.related-item:hover { color: var(--brand); }
.related-item .ri-arrow { color: var(--ink-300); }
.related-item .ri-arrow svg { width: 15px; height: 15px; }

/* ---------- 13. Inline CTA band ---------- */
.cta-band {
  margin: 34px 0; padding: 26px; border-radius: var(--r-l);
  background: linear-gradient(150deg, #05447e, #021d38 72%);
  color: #fff; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(5, 153, 215, .5), transparent 68%);
}
.cta-band .cb-text { position: relative; }
.cta-band .cb-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: #96d7f5; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px;
}
.cta-band .cb-kicker svg { width: 13px; height: 13px; }
.cta-band h3 { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -.3px; line-height: 1.5; }
.cta-band p { font-size: 13.2px; color: #a8c3e4; line-height: 1.7; margin-top: 7px; max-width: 560px; }
.cta-band .cb-actions { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cta-band .cb-actions .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .cb-actions .btn-primary:hover { background: #e9f5fc; color: var(--brand-deep); }
.cta-band .cb-actions .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #dbe9fb; }
.cta-band .cb-actions .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .cb-contact { font-size: 11.5px; color: #7d9bc0; margin-top: 4px; text-align: center; }

/* ---------- 14. Tag pages ---------- */
.page-head { padding: 30px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.page-head h1 { font-size: 27px; font-weight: 700; color: var(--ink-900); letter-spacing: -.6px; line-height: 1.4; }
.page-head p { font-size: 14px; color: var(--ink-500); margin-top: 8px; max-width: 680px; line-height: 1.7; }
.page-head .ph-meta { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--ink-500); }
.page-head .ph-meta b { color: var(--ink-800); font-weight: 700; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--ink-700);
  background: #fff; transition: .14s;
}
.tag-cloud a:hover { border-color: var(--brand-tint2); color: var(--brand); background: var(--brand-tint); }
.tag-cloud a .n { font-size: 11.5px; color: var(--ink-400); }
.tag-cloud a .n::before { content: "×"; margin-right: 2px; }

/* ---------- 15. Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 32px 0 8px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-600); border: 1px solid var(--line); background: #fff;
}
.pager a:hover { border-color: var(--brand-tint2); color: var(--brand); background: var(--brand-tint); }
.pager .on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: none; color: var(--ink-400); }
.pager .nav-arrow { gap: 4px; }
.pager .nav-arrow svg { width: 14px; height: 14px; }

/* ---------- 16. Ask page / form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 34px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; color: var(--ink-900); margin-bottom: 6px; }
.field label .req { color: var(--rose); }
.field .hint { font-size: 12px; color: var(--ink-500); margin-bottom: 8px; line-height: 1.6; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-s);
  font-size: 14px; background: #fff; transition: .15s; color: var(--ink-800);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-tint2);
  box-shadow: 0 0 0 3px rgba(15, 87, 196, .08);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.7; }
.field .row { display: flex; gap: 12px; }
.field .row > * { flex: 1; }

.tips-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.tips-box h3 { font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin-bottom: 10px; }
.tips-box li { font-size: 12.8px; color: var(--ink-600); line-height: 1.7; padding-left: 16px; position: relative; margin-bottom: 7px; }
.tips-box li::before { content: ""; position: absolute; left: 2px; top: .66em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .5; }

.steps-mini { display: flex; flex-direction: column; gap: 14px; }
.steps-mini .sm { display: flex; gap: 11px; }
.steps-mini .sm-n {
  width: 24px; height: 24px; border-radius: 7px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex-shrink: 0;
}
.steps-mini b { display: block; font-size: 13px; color: var(--ink-900); font-weight: 650; }
.steps-mini p { font-size: 12.5px; color: var(--ink-500); line-height: 1.65; margin-top: 2px; }

/* ---------- 17. Experts ---------- */
.expert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.expert-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; }
.expert-card .ec-top { display: flex; gap: 12px; align-items: flex-start; }
.expert-card h3 { font-size: 15px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 6px; }
.expert-card .ec-role { font-size: 12.5px; color: var(--ink-500); margin-top: 3px; line-height: 1.6; }
.expert-card .ec-desc { font-size: 13px; color: var(--ink-600); line-height: 1.75; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-soft); }
.expert-card .ec-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 11.5px; color: var(--ink-500); }
.expert-card .ec-stats b { color: var(--ink-900); font-weight: 700; font-size: 13px; }

/* ---------- 18. Article prose (about/contact) ---------- */
.prose { font-size: 15px; line-height: 1.9; color: var(--ink-700); max-width: 800px; }
.prose h2 { font-size: 20px; font-weight: 700; color: var(--ink-900); margin: 34px 0 12px; letter-spacing: -.3px; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--ink-900); margin: 24px 0 8px; }
.prose p { margin-bottom: 13px; }
.prose ul, .prose ol { margin: 12px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .45; }
.prose ol { counter-reset: p; }
.prose ol li { position: relative; padding-left: 26px; counter-increment: p; }
.prose ol li::before {
  content: counter(p); position: absolute; left: 0; top: 2px; width: 19px; height: 19px;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.prose a { text-decoration: underline; text-decoration-color: var(--brand-tint2); text-underline-offset: 3px; }
.prose strong { color: var(--ink-900); font-weight: 650; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; color: #064c78; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.info-card .ic-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.info-card .ic-ico svg { width: 17px; height: 17px; }
.info-card b { display: block; font-size: 13.5px; color: var(--ink-900); }
.info-card span { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.6; }

/* ---------- 19. Footer ---------- */
.site-footer { background: #041c30; color: #8fb0c8; padding: 48px 0 26px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7ba2bf; }
.footer-brand p { font-size: 12.8px; line-height: 1.8; color: #7e97b4; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12.8px; color: #8fb0c8; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 12px; color: #5f7a97; }
.footer-bottom a { color: #8fb0c8; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 12.5px; }
.footer-contact a { color: #b9cde3; }
.footer-contact a:hover { color: #fff; }

/* ---------- 20. Contact modal ---------- */
.cmodal { position: fixed; inset: 0; z-index: 300; display: none; }
.cmodal.open { display: block; }
.cmodal-veil { position: absolute; inset: 0; background: rgba(6, 16, 30, .55); backdrop-filter: blur(3px); }
.cmodal-card {
  position: relative; width: min(460px, calc(100vw - 32px)); margin: 8vh auto 0;
  background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--sh-3);
  max-height: 84vh; overflow: auto;
}
.cmodal-x { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-400); }
.cmodal-x:hover { background: var(--bg-soft); color: var(--ink-800); }
.cmodal-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint); padding: 4px 9px; border-radius: 100px; margin-bottom: 11px;
}
.cmodal-kicker svg { width: 12px; height: 12px; }
.cmodal-head h2 { font-size: 19px; font-weight: 700; color: var(--ink-900); letter-spacing: -.3px; }
.cmodal-head p { font-size: 13px; color: var(--ink-500); line-height: 1.7; margin-top: 6px; }
.cmodal-wx { display: flex; gap: 13px; align-items: center; margin: 18px 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-softer); }
.cmodal-wx img { border-radius: 8px; border: 1px solid var(--line); }
.cw-label { font-size: 12.5px; font-weight: 600; color: var(--ink-800); }
.cw-id { display: flex; align-items: center; gap: 7px; margin: 5px 0; }
.cw-id code { font-family: var(--font-mono); font-size: 13px; color: var(--brand-deep); background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.cw-copy { font-size: 11px; color: var(--brand); border: 1px solid var(--brand-tint2); background: var(--brand-tint); padding: 2px 7px; border-radius: 5px; }
.cw-tip { font-size: 11.5px; color: var(--ink-500); line-height: 1.6; }
.cmodal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cm-item { display: flex; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: var(--r-s); }
.cm-item:hover { border-color: var(--brand-tint2); background: var(--brand-tint); }
.cm-ico { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.cm-ico svg { width: 14px; height: 14px; }
.cm-txt em { display: block; font-size: 10.5px; color: var(--ink-500); }
.cm-txt strong { display: block; font-size: 12.5px; color: var(--ink-900); font-weight: 650; margin: 1px 0; }
.cm-txt i { display: block; font-size: 10.5px; color: var(--ink-400); }
.cmodal-submit {
  display: block; margin-top: 14px; padding: 13px 15px; border-radius: var(--r-s);
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600; text-align: center;
}
.cmodal-submit:hover { background: var(--brand-hover); color: #fff; }
.cmodal-submit span { display: block; font-size: 11.5px; font-weight: 400; color: #c3d9f8; margin-top: 3px; }

/* ---------- 21. Misc ---------- */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; background: var(--brand); z-index: 200; transition: width .1s; }
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
  display: grid; place-items: center; color: var(--ink-600); opacity: 0; pointer-events: none;
  transition: .2s; z-index: 80;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--brand); border-color: var(--brand-tint2); }
.to-top svg { width: 16px; height: 16px; }

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 auto; background: #fff;
  border-bottom: 1px solid var(--line); padding: 10px 20px 20px; z-index: 89;
  box-shadow: 0 20px 40px -24px rgba(10, 22, 38, .4); max-height: calc(100vh - var(--header-h)); overflow: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 4px; font-size: 14px; color: var(--ink-700); border-bottom: 1px solid var(--line-soft); }
.mobile-nav .m-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-400); margin: 16px 0 4px; }
.mobile-nav .m-cta { margin-top: 16px; text-align: center; background: var(--brand); color: #fff; border-radius: var(--r-s); border: 0; font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1080px) {
  .shell, .shell--wide, .form-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .header-nav { display: none; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  :root { --header-h: 60px; }
  .wrap, .header-inner { padding: 0 18px; }
  .shell, .shell--wide, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .search { display: none; }
  .hero-inner { padding: 38px 0 34px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .hero-search input { padding-right: 112px; }
  .section { padding: 38px 0; }
  .cta-band { grid-template-columns: 1fr; padding: 22px; }
  .cta-band .cb-actions { flex-direction: row; flex-wrap: wrap; }
  .expert-grid, .info-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .q-stats { width: 52px; }
  .post { grid-template-columns: 1fr; gap: 12px; }
  .vote-col { flex-direction: row; align-items: center; gap: 8px; }
  .vote-btn { width: 30px; height: 26px; }
  .vote-txt { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .hero h1 { font-size: 26px; letter-spacing: -.6px; }
  .hero-sub { font-size: 14px; }
  .hero-search input { height: 48px; padding-left: 42px; font-size: 14px; }
  .hero-search .hero-go { height: 36px; top: 6px; font-size: 13px; padding: 0 13px; }
  .hero-stat b { font-size: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .q-item { gap: 12px; padding-left: 12px; }
  .q-stats { width: 46px; }
  .q-title { font-size: 14.8px; }
  .q-excerpt { -webkit-line-clamp: 2; font-size: 12.8px; }
  .footer-top { grid-template-columns: 1fr; }
  .cmodal-grid { grid-template-columns: 1fr; }
  .pager a, .pager span { min-width: 30px; height: 30px; font-size: 12px; }
  .answers-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-text, .answer-text { font-size: 14.2px; }
}

/* ---------- 23. Unsolved grid ---------- */
.unsolved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uc-card {
  display: flex; flex-direction: column; gap: 9px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  transition: .16s; color: inherit;
}
.uc-card:hover { border-color: var(--brand-tint2); box-shadow: var(--sh-2); color: inherit; transform: translateY(-2px); }
.uc-top { display: flex; align-items: center; gap: 9px; }
.uc-time { font-size: 11.5px; color: var(--ink-400); }
.uc-title { font-size: 14.6px; font-weight: 650; color: var(--ink-900); line-height: 1.55; letter-spacing: -.1px; }
.uc-card:hover .uc-title { color: var(--brand); }
.uc-tags { margin-top: 2px; }

@media (max-width: 880px) { .unsolved-grid { grid-template-columns: 1fr; } }

/* ---------- 23. Unsolved grid ---------- */
.unsolved-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uc-card {
  display: flex; flex-direction: column; gap: 9px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  transition: .16s; color: inherit;
}
.uc-card:hover { border-color: var(--brand-tint2); box-shadow: var(--sh-2); color: inherit; transform: translateY(-2px); }
.uc-top { display: flex; align-items: center; gap: 9px; }
.uc-time { font-size: 11.5px; color: var(--ink-400); }
.uc-title { font-size: 14.6px; font-weight: 650; color: var(--ink-900); line-height: 1.55; letter-spacing: -.1px; }
.uc-card:hover .uc-title { color: var(--brand); }
.uc-tags { margin-top: 2px; }

@media (max-width: 880px) { .unsolved-grid { grid-template-columns: 1fr; } }

/* ---------- 24. Mobile announce ---------- */
@media (max-width: 880px) {
  .announce .wrap { height: auto; padding-top: 7px; padding-bottom: 7px; gap: 6px; flex-wrap: wrap; }
  .announce a, .announce .dot, .announce .spacer, .announce .spacer ~ span { display: none; }
  .announce { font-size: 11.5px; line-height: 1.5; }
}

/* ---------- 24. Mobile announce ---------- */
@media (max-width: 880px) {
  .announce .wrap { height: auto; padding-top: 7px; padding-bottom: 7px; gap: 6px; flex-wrap: wrap; }
  .announce a, .announce .dot, .announce .spacer, .announce .spacer ~ span { display: none; }
  .announce { font-size: 11.5px; line-height: 1.5; }
}

/* ---------- 25. Vote icon in list ---------- */
.q-stat.accepted svg { color: var(--shopify); width: 13px; height: 13px; flex: 0 0 13px; }

/* ---------- 25. Vote icon in list ---------- */
.q-stat.accepted svg { color: var(--shopify); width: 13px; height: 13px; flex: 0 0 13px; }

/* ---------- 26. Top answer flag ---------- */
.answer-accepted-flag.is-top { background: var(--brand); }

/* ---------- 26. Top answer flag ---------- */
.answer-accepted-flag.is-top { background: var(--brand); }

/* ---------- 27. Sidebar ad slot ---------- */
.widget-ad {
  background: linear-gradient(158deg, #05447e 0%, #02305c 46%, #021a33 100%);
  border: 0; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: box-shadow .2s, transform .2s;
}
.widget-ad:hover { box-shadow: 0 14px 30px -18px rgba(9, 38, 82, .75); }
.widget-ad::before {
  content: ""; position: absolute; right: -52px; top: -64px; width: 170px; height: 170px;
  border-radius: 50%; background: rgba(5, 153, 215, .42); filter: blur(32px); z-index: 0;
}
.widget-ad::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, #0599d7, #7fd0f2 45%, rgba(127, 208, 242, 0));
}
.ad-hit {
  position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; border-radius: inherit;
  background: transparent; cursor: pointer; font: inherit; color: inherit;
}
.ad-hit:focus-visible { outline: 2px solid #8fd4f5; outline-offset: -3px; }
.widget-ad > *:not(.ad-hit) { position: relative; z-index: 2; }
.ad-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.6px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #9bd8f6;
}
.ad-label svg { width: 12px; height: 12px; }
.ad-title {
  display: block; margin-top: 8px; font-size: 16.5px; line-height: 1.45;
  letter-spacing: -.2px; font-weight: 700; color: #fff;
}
.ad-desc {
  display: block; margin-top: 6px; font-size: 12.6px; line-height: 1.68; color: #a7cae3;
}
.ad-btn {
  display: flex; align-items: center; justify-content: center; height: 36px; margin-top: 13px;
  border-radius: var(--r-s); background: #fff; color: var(--brand-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .1px; transition: .18s;
}
.widget-ad:hover .ad-btn { background: #e8f5fc; color: var(--brand); }
.widget-ad .wk {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11.5px; color: #8fb4cd;
}
.widget-ad .wk svg { width: 13px; height: 13px; flex-shrink: 0; }
.widget-ad .wk b { color: #cfe9f8; font-weight: 600; }

/* ---------- 28. Home promo banner ---------- */
.promo-strip { padding-top: 30px; }
.promo-banner {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 17px 22px 17px 24px; border-radius: var(--r-l); text-align: left;
  background: linear-gradient(102deg, #eaf6fd 0%, #fafdff 55%, #e9f3fc 100%);
  border: 1px solid #d2e9f8; cursor: pointer; overflow: hidden;
  font: inherit; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.promo-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #0bb3ec, #0778b4);
}
.promo-banner:hover {
  border-color: #b0d9f0; transform: translateY(-1px);
  box-shadow: 0 16px 34px -24px rgba(10, 47, 107, .5);
}
.promo-banner:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.pb-kicker {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
}
.pb-kicker svg { width: 13px; height: 13px; }
.pb-text { flex: 1; min-width: 0; }
.pb-title {
  display: block; font-size: 15.2px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -.2px; line-height: 1.5;
}
.pb-sub { display: block; margin-top: 3px; font-size: 12.6px; color: var(--ink-500); line-height: 1.6; }
.pb-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
  border-radius: var(--r-s); background: var(--brand); color: #fff;
  font-size: 13.4px; font-weight: 600; transition: background .18s;
}
.pb-cta svg { width: 15px; height: 15px; }
.promo-banner:hover .pb-cta { background: var(--brand-hover); }
@media (max-width: 780px) {
  .promo-banner { flex-wrap: wrap; gap: 10px; padding: 16px 18px; }
  .pb-text { flex-basis: 100%; order: 2; }
  .pb-kicker { order: 1; }
  .pb-cta { width: 100%; justify-content: center; order: 3; }
  .pb-title { font-size: 14.4px; }
}
