/* AI Chat Backup Guide — theme layer (v2, Nov 2026).
 * Loaded after styles.css on every page except the export viewer (which keeps styles.css only).
 * Soft, light, friendly: Nunito everywhere, warm paper background, soft cards, sticker icons. */
:root {
  --bg: #fbf7ef; --paper2: #f4ecdc; --card: #ffffff; --ink: #2a2723; --muted: #6a6157; --line: #ece3d2;
  --link: #b23a2a; --focus: #b23a2a; --teal: #2bb3a3; --yellow: #ffcc4d;
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 22px; --r-sm: 14px; --r-btn: 14px;
  --shadow: 0 1px 2px rgba(42,39,35,.05), 0 10px 30px -14px rgba(72,52,20,.22);
  --shadow-hi: 0 2px 4px rgba(42,39,35,.06), 0 18px 40px -16px rgba(72,52,20,.32);
  --sticker: var(--shadow);
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(1200px 520px at 85% -120px, #ffe9b8 0, rgba(255,233,184,0) 60%),
                    radial-gradient(900px 480px at -10% 10%, #dff3ee 0, rgba(223,243,238,0) 55%);
  background-repeat: no-repeat; color: var(--ink); font-size: 17.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 850; letter-spacing: -0.022em; color: var(--ink); }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2.5px; }
.card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: sticky, full-bleed frosted bar */
header.site { position: sticky; top: 0; z-index: 40; padding: 12px 0; margin-bottom: 6px;
  background: rgba(251,247,239,.86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 0 0 100vmax rgba(251,247,239,.86), 0 1px 0 100vmax rgba(0,0,0,0); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-head); font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }
.logo { width: 36px; height: 36px; }
nav.toc { gap: 4px; }
nav.toc a { font-weight: 750; font-size: 15px; padding: 7px 13px; color: var(--ink); border-radius: 999px; transition: background .15s; }
nav.toc a:hover { background: #fff3cf; }
nav.toc a[aria-current="page"] { background: var(--ink); color: #fff; }

/* buttons */
.btn { font-family: var(--font-head); font-weight: 850; font-size: 17px; min-height: 52px; padding: 13px 22px; border-radius: var(--r-btn);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 18px -10px rgba(72,52,20,.45); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 12px 24px -12px rgba(72,52,20,.5); }
.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-primary { background: var(--yellow); }

/* legacy page polish */
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.lede, .hero-answer { color: #3a352f; }
.disclaimer-bar { font-size: 14px; color: var(--muted); }
.qa h2, .block-head h2, .faq h2 { font-size: clamp(26px, 3vw, 34px); }
.faq details, .footer-grid section { border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-card, .stat-card, .list-card, .rel-card, .table-card { border: 1px solid var(--line); }
.checked { font-size: 14.5px; }

/* ===== footer v2 ===== */
.site2 { margin-top: 72px; background: #fff; border-top: 1px solid var(--line); padding: 44px 0 20px; font-size: 15.5px; color: var(--muted); }
.f2-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site2 h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 6px 0 12px; }
.site2 ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site2 a { color: var(--ink); text-decoration: none; }
.site2 a:hover { color: var(--link); text-decoration: underline; }
.f2-brand p { margin: 12px 0 0; max-width: 52ch; }
.f2-note { font-size: 13.5px; }
.f2-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 13.5px; }

/* ===== shared pieces ===== */
.catchip { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13.5px; color: var(--ink); text-decoration: none;
  background: #fff; border: 1px solid var(--line); padding: 4px 11px 4px 9px; border-radius: 999px; }
.catchip .dot, .fchip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1.5px rgba(42,39,35,.35); }
.art { position: relative; width: 240px; height: 210px; justify-self: center; }
.art .blob { position: absolute; inset: 18px 10px 6px 18px; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--tint, #ffe9a8); opacity: .55; }
.art .st { position: absolute; display: grid; place-items: center; background: #fff; border-radius: 26px; box-shadow: var(--shadow-hi); border: 1px solid var(--line); }
.art .st .ic { width: 64%; height: 64%; }
.art .st1 { width: 124px; height: 124px; left: 58px; top: 40px; transform: rotate(-4deg); z-index: 2; }
.art .st2 { width: 84px; height: 84px; left: 0; top: 118px; transform: rotate(6deg); }
.art .st3 { width: 76px; height: 76px; right: 0; top: 4px; transform: rotate(8deg); }
.sec { margin-top: 44px; }
.sec-h { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 16px; }
.sec-h.small { font-size: 20px; margin-top: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.more-link { font-weight: 800; font-size: 15px; text-decoration: none; }

/* question cards */
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.qcard { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s, border-color .14s; overflow: hidden; }
.qcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--tint, #ffe9a8); }
.qcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); border-color: #e2d6bf; }
.qc-top { display: flex; align-items: center; gap: 8px; }
.qc-ic { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--tint, #ffe9a8) 45%, #fff); display: grid; place-items: center; }
.qc-svg { width: 22px; height: 22px; }
.qc-cat { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.qc-q { font-family: var(--font-head); font-size: 17.5px; line-height: 1.3; font-weight: 850; letter-spacing: -0.01em; margin: 0; }
.qc-a { font-size: 14.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qc-go { margin-top: auto; font-size: 13.5px; font-weight: 800; color: var(--link); padding-top: 4px; }

/* ===== question page ===== */
.qhero { padding: 18px 0 8px; }
.crumbs2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 6px 0 18px; }
.crumbs2 > a { color: var(--muted); text-decoration: none; }
.crumbs2 > a:hover { color: var(--link); }
.qhero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: center; }
.qhero h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 22px; max-width: 22ch; text-wrap: balance; }
.ans2 { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px 16px; box-shadow: var(--shadow-hi); }
.ans2::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 6px 6px 0; background: var(--teal); }
.ans-label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #17695f; }
.ans-ic { width: 20px; height: 20px; }
.ans2 .ans2-text { font-size: 18.5px; line-height: 1.6; margin: 0 0 12px; color: #2f2b26; }
.verified { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.vdot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(43,179,163,.18); }
.qhero .cta { margin-top: 20px; gap: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.kf { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }
.kf-ic { width: 52px; height: 52px; flex: none; }
.kf-big { font-family: var(--font-head); font-weight: 900; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 2px; }
.kf-line { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.steps2 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.stp { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); font-size: 16px; line-height: 1.55; }
.stp-n { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 16px;
  background: var(--tint, #ffe9a8); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(42,39,35,.18); }
.page-q2 .steps2 .stp:nth-child(4n+1) .stp-n { background: #ffe08a; } .page-q2 .steps2 .stp:nth-child(4n+2) .stp-n { background: #bfe6f7; }
.page-q2 .steps2 .stp:nth-child(4n+3) .stp-n { background: #c9efe7; } .page-q2 .steps2 .stp:nth-child(4n+4) .stp-n { background: #e3d8fb; }
.stp-b { overflow-wrap: anywhere; }
.more2, .src2 { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.more2 summary, .src2 summary { cursor: pointer; list-style: none; padding: 15px 20px; font-weight: 850; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.more2 summary::-webkit-details-marker, .src2 summary::-webkit-details-marker, .faq2-item summary::-webkit-details-marker { display: none; }
.more2 summary::after, .src2 summary::after, .faq2-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper2); font-weight: 900; font-size: 18px; transition: transform .2s; }
.more2[open] summary::after, .src2[open] summary::after, .faq2-item[open] summary::after { transform: rotate(45deg); }
.more2-body, .src2-body { padding: 0 20px 16px; font-size: 16px; }
.src2 { background: transparent; box-shadow: none; }
.src2 summary { font-size: 15.5px; color: var(--muted); }
.src2-note { font-size: 14px; color: var(--muted); }
.changelog2 { font-size: 14px; color: var(--muted); padding-left: 18px; }
.faq2 { display: grid; gap: 10px; }
.faq2-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.faq2-item summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq2-a { padding: 0 18px 12px; font-size: 16px; color: #3a352f; }
.corelinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.corelinks a { display: flex; gap: 12px; align-items: center; background: #fff8e6; border: 1px solid #f1e2bd; border-radius: 16px; padding: 12px 14px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.corelinks a:hover { background: #fff1cc; }
.corelinks b { display: block; font-size: 15.5px; }
.cl-ic { width: 38px; height: 38px; flex: none; }

/* ===== hub ===== */
.hubhero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: center; padding: 26px 0 18px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; color: #17695f; background: #dff3ee; padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.hubhero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.04em; margin: 0 0 10px; }
.hl { background: linear-gradient(transparent 62%, #ffd666 62%, #ffd666 92%, transparent 92%); padding: 0 .08em; }
.sub { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.search { position: relative; max-width: 640px; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 16px 110px 16px 50px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow-hi); color: var(--ink); }
.search input:focus { outline: 3px solid rgba(43,179,163,.35); border-color: var(--teal); }
.s-ic { position: absolute; left: 17px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: var(--muted); }
.s-count { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 800; color: var(--muted); }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aud { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s; }
.aud:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.aud-ic { width: 42px; height: 42px; flex: none; }
.aud b { display: block; font-size: 15.5px; line-height: 1.25; }
.aud small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.filterbar { position: sticky; top: 64px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px; margin-top: 26px; scrollbar-width: none;
  background: linear-gradient(var(--bg) 70%, rgba(251,247,239,0)); }
.filterbar::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14.5px; font-weight: 800; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: background .15s, border-color .15s; }
.fchip > span:last-child { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.fchip:hover { border-color: #d9cbb0; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip[aria-pressed="true"] > span:last-child { color: #e8dfcf; }
.hubsec { margin-top: 30px; }
.hubsec-head { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.hs-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 50%, #fff); border: 1px solid var(--line); flex: none; }
.hs-svg { width: 34px; height: 34px; }
.hubsec-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.hubsec-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.noresults { text-align: center; color: var(--muted); padding: 40px 0; }
.qcard[hidden], .hubsec[hidden] { display: none; }

/* ===== home additions ===== */
.home-aud { margin-top: 8px; }
.home-q .qgrid { margin-top: 4px; }

@media (max-width: 1000px) {
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .qhero-grid, .hubhero { grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; }
  .art { transform: scale(.78); transform-origin: center; }
  .f2-grid { grid-template-columns: 1fr 1fr; }
  .f2-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  header.site { padding: 8px 0; }
  .brand span { font-size: 16px; }
  nav.toc a { padding: 6px 9px; font-size: 14px; }
  .qhero-grid, .hubhero { grid-template-columns: 1fr; }
  .art { display: none; }
  .qhero h1 { font-size: 30px; margin-bottom: 16px; }
  .ans2 { padding: 16px 18px 12px; border-radius: 18px; }
  .ans2 .ans2-text { font-size: 17px; }
  .qhero .cta .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; margin-top: 22px; gap: 10px; }
  .steps2 { grid-template-columns: 1fr; gap: 10px; }
  .kf { padding: 12px 14px; } .kf-ic { width: 42px; height: 42px; } .kf-big { font-size: 19px; }
  .sec { margin-top: 32px; }
  .corelinks { grid-template-columns: 1fr; }
  .hubhero h1 { font-size: 36px; }
  .sub { font-size: 17px; }
  .search input { padding-right: 16px; }
  .s-count { display: none; }
  .aud-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aud { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .aud-ic { width: 36px; height: 36px; }
  .filterbar { top: 52px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; width: auto; }
  .qgrid { grid-template-columns: 1fr; gap: 12px; }
  .f2-grid { grid-template-columns: 1fr; gap: 18px; }
  .site2 { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.more2 > summary::before, .src2 > summary::before, .faq2-item > summary::before { content: none; }
.more2 > summary, .src2 > summary, .faq2-item > summary { color: var(--ink); text-align: left; }
.ans2 .ans2-text { font-weight: 500; }
.sec-lede { color: var(--muted); margin: -6px 0 14px; }
.tick b, .big-stat, .step-n, .avatar { font-weight: 900; letter-spacing: -0.02em; }
.qa h2 + .big-stat { margin-top: 2px; }
