/*
Theme Name: usfans Finds
Theme URI: https://sheetfinds.com/
Author: usfans Studio
Author URI: https://sheetfinds.com/
Description: A light, SEO-first WordPress theme for the usfans Spreadsheet finds guide, with sourcing coverage for 1688, Taobao, Pinduoduo and Weidian. Ships with 11 category jumps to sheetfinds.com, a long-form homepage guide, 12 original SEO articles, product-icon category tiles, schema markup and fast Core Web Vitals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usfans
Tags: blog, one-column, custom-menu, custom-logo, featured-images, translation-ready
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --bg-warm: #fff8f3;
  --bg-mint: #f2fdf8;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #7c8798;
  --line: #e7ecf5;
  --line-2: #d6deec;

  --brand: #ff6b4a;
  --brand-dark: #ea4f2d;
  --brand-soft: #ffe9e2;
  --sky: #3d9bff;
  --sky-soft: #e6f2ff;
  --mint: #16b981;
  --mint-soft: #e2f8ef;
  --lilac: #8b6cff;
  --lilac-soft: #efeaff;
  --sun: #ffbe33;
  --sun-soft: #fff4d6;
  --pink: #ff74a9;
  --pink-soft: #ffe9f2;

  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
  --shadow: 0 18px 40px -20px rgba(16, 24, 40, .22);
  --shadow-lg: 0 40px 90px -36px rgba(16, 24, 40, .32);

  --max: 1160px;
  --gap: 24px;
  --header-h: 72px;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   2. Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
p { margin: 0 0 1.1em; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { padding-left: 1.25em; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* =========================================================
   3. Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: 820px; }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: linear-gradient(180deg, var(--bg-warm), #ffffff); }
.section--mint { background: linear-gradient(180deg, var(--bg-mint), #ffffff); }

.section-head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  margin-bottom: 16px;
}
.eyebrow--sky { color: #0b6bcb; background: var(--sky-soft); }
.eyebrow--mint { color: #0a8a61; background: var(--mint-soft); }
.eyebrow--lilac { color: #5f43d6; background: var(--lilac-soft); }

.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.section-sub { font-size: 17.5px; color: var(--ink-3); margin: 0; }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.visually-hidden, .screen-reader-text {
  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: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 12px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* =========================================================
   4. Buttons
   ========================================================= */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 12px 26px -14px rgba(255, 107, 74, .75);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 18px 34px -14px rgba(255, 107, 74, .8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--lg { padding: 17px 32px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { box-shadow: var(--shadow); border-color: var(--ink-3); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: 0 12px 26px -14px rgba(16,24,40,.8); }
.btn--sky { --btn-bg: var(--sky); --btn-fg: #fff; box-shadow: 0 12px 26px -14px rgba(61,155,255,.9); }
.btn--mint { --btn-bg: var(--mint); --btn-fg: #fff; box-shadow: 0 12px 26px -14px rgba(22,185,129,.9); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--brand-dark); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================
   5. Topbar
   ========================================================= */
.topbar {
  background: var(--ink);
  color: #dfe6f1;
  font-size: 13.5px;
  letter-spacing: .01em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; padding-block: 8px;
}
.topbar__msg { display: inline-flex; align-items: center; gap: 8px; }
.topbar__msg .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #37e0a4;
  box-shadow: 0 0 0 4px rgba(55,224,164,.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--sun); text-decoration: none; }

/* =========================================================
   6. Header + navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), #ff9d5c 55%, var(--sun));
  display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(255,107,74,.9);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-head); font-weight: 800; font-size: 17px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand__tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.site-nav { margin-left: auto; }
.nav-list {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--ink-2); text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li.is-open > button,
.nav-list > li.current-menu-item > a { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-list .caret { width: 12px; height: 12px; opacity: .65; transition: transform .18s ease; }
.nav-list > li:hover .caret,
.nav-list > li:focus-within .caret,
.nav-list > li.is-open .caret { transform: rotate(180deg); }

/* dropdown */
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 268px; max-width: 340px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 99;
  max-height: min(70vh, 520px); overflow-y: auto;
}
.drop-menu--wide { min-width: 340px; }
.nav-list > li:hover > .drop-menu,
.nav-list > li:focus-within > .drop-menu,
.nav-list > li.is-open > .drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.drop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  line-height: 1.35;
}
.drop-menu a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.drop-menu .thumb {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--bg-soft); object-fit: cover;
}
.drop-menu__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-3); font-weight: 700; padding: 8px 12px 6px;
}
.drop-menu hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }
.drop-menu .ext svg { width: 12px; height: 12px; opacity: .45; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 13px;
  border: 1px solid var(--line-2); background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  position: relative; transition: background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--ink); transition: transform .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   7. Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 12%, rgba(255, 190, 51, .28), transparent 62%),
    radial-gradient(55% 55% at 6% 18%, rgba(61, 155, 255, .22), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(255, 116, 169, .18), transparent 65%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 55%, #ffffff 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16,24,40,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero h1 .hl {
  position: relative; white-space: nowrap;
  background: linear-gradient(100deg, var(--brand), #ff9d5c 60%, var(--sun));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 18.5px; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; margin: 0; padding: 0;
  font-size: 14px; color: var(--ink-3);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 17px; height: 17px; color: var(--mint); flex: none; }

.hero__art { position: relative; }
.hero__art img { width: 100%; border-radius: var(--radius-lg); }
.hero__badge {
  position: absolute; left: -14px; bottom: 26px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.hero__badge .ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--mint-soft); color: #0a8a61; flex: none;
}
.hero__badge small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }

/* ---------- Hero photo mode ----------
   Activated automatically when a photo is uploaded in
   Appearance → Customize → usfans — Hero photo.
   Light, airy treatment: the photo stays visible and the copy sits
   on a soft cream wash, so it works with pale pastel imagery. */
.hero--photo {
  background-size: cover;
  background-repeat: no-repeat;
  padding: 104px 0 112px;
  display: flex;
  align-items: center;
}
.hero--photo::after { display: none; }
.hero--photo .hero__inner { grid-template-columns: 1fr; max-width: 660px; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(96deg,
      rgba(255, 253, 250, .97) 0%,
      rgba(255, 253, 250, .93) 34%,
      rgba(255, 254, 252, .72) 58%,
      rgba(255, 255, 255, .26) 82%,
      rgba(255, 255, 255, 0) 100%);
}
.hero--photo .container { position: relative; z-index: 2; }
.hero--photo h1 { color: var(--ink); text-shadow: 0 1px 20px rgba(255, 255, 255, .85); }
.hero--photo h1 .hl {
  background: linear-gradient(100deg, var(--brand), #ff8a5c 55%, #f0a52e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--photo .hero__lead { color: var(--ink-2); text-shadow: 0 1px 16px rgba(255, 255, 255, .95); }
.hero--photo .hero__trust li { color: var(--ink-2); }
.hero--photo .hero__trust svg { color: #0a8a61; }
.hero--photo .eyebrow {
  background: rgba(255, 255, 255, .82);
  color: var(--brand-dark);
  border: 1px solid rgba(255, 107, 74, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero--photo .btn--ghost {
  --btn-bg: rgba(255, 255, 255, .88);
  --btn-fg: var(--ink);
  border-color: rgba(16, 24, 40, .16);
  box-shadow: 0 10px 26px -18px rgba(16, 24, 40, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero--photo .btn--ghost:hover { background: #fff; border-color: rgba(16, 24, 40, .3); }
/* Dark backdrop fallback: if someone uploads a genuinely dark photo,
   the toggle below restores white-on-dark legibility. */
.hero--photo.hero--dark h1,
.hero--photo.hero--dark .hero__lead,
.hero--photo.hero--dark .hero__trust li { color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .45); }
.hero--photo.hero--dark .hero__trust svg { color: #4ee2ab; }
.hero--photo.hero--dark .eyebrow {
  background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3);
}
.hero--photo.hero--dark .btn--ghost {
  --btn-bg: rgba(255, 255, 255, .16); --btn-fg: #fff; border-color: rgba(255, 255, 255, .5);
}
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, .26); border-color: #fff; }

/* =========================================================
   8. Finder (category dropdown)
   ========================================================= */
.finder-wrap { position: relative; z-index: 5; margin-top: -46px; }
.finder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 22px; align-items: end;
}
.finder__label {
  display: block; font-family: var(--font-head); font-weight: 800;
  color: var(--ink); font-size: 15px; margin-bottom: 4px;
}
.finder__hint { font-size: 13.5px; color: var(--ink-3); margin: 0 0 12px; }
.finder__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.select-wrap { position: relative; flex: 1 1 260px; min-width: 0; }
.select-wrap svg {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}
.usfans-select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding: 15px 44px 15px 18px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-pill);
  background: #fff; color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease;
}
.usfans-select:hover { border-color: var(--ink-3); }
.usfans-select:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(61,155,255,.16); outline: 0; }
.finder__stat { text-align: right; }
.finder__stat strong {
  display: block; font-family: var(--font-head); font-size: 26px;
  color: var(--ink); line-height: 1;
}
.finder__stat span { font-size: 12.5px; color: var(--ink-3); }

/* =========================================================
   9. Category grid
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-xs);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
  text-decoration: none;
}
.cat-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}
.cat-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line);
}
.cat-card__name {
  font-family: var(--font-head); font-weight: 800; font-size: 16.5px;
  color: var(--ink); letter-spacing: -.01em; line-height: 1.25;
}
.cat-card__meta { font-size: 13px; color: var(--ink-3); }
.cat-card__go {
  margin-top: auto; padding-top: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  color: var(--brand-dark);
}
.cat-card__go svg { width: 14px; height: 14px; transition: transform .18s ease; }
.cat-card:hover .cat-card__go svg { transform: translateX(3px); }
.cat-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  backdrop-filter: blur(6px);
}

/* ---------- Icon mode for category tiles ----------
   Enabled by Appearance → Customize → usfans — Category images
   → “Icon — whole image on a tile”. Shows the entire uploaded
   image (product cut-out or illustration) instead of cropping it. */
.cat-style-icon .cat-card__media {
  display: grid;
  place-items: center;
  padding: 26px;
  background: linear-gradient(160deg, #fbfdff, var(--bg-soft));
}
.cat-style-icon .cat-card__media img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(16, 24, 40, .10));
}
.cat-style-icon .cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-style-icon .cat-card__badge { background: rgba(255,255,255,.96); }

/* =========================================================
   10. Prose (long article)
   ========================================================= */
.article-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 56px);
}
.prose { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  margin: 2.1em 0 .65em;
  padding-left: 16px;
  border-left: 4px solid var(--brand);
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: clamp(19px, 2vw, 22px);
  margin: 1.8em 0 .55em;
  scroll-margin-top: 96px;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,107,74,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote {
  margin: 1.6em 0; padding: 20px 24px;
  background: var(--bg-soft);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2); font-size: 17px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  margin: 1.6em 0; font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden;
}
.prose thead th {
  background: var(--bg-soft); text-align: left;
  font-family: var(--font-head); font-weight: 800; color: var(--ink);
  padding: 13px 16px; font-size: 14px; letter-spacing: .01em;
}
.prose tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: #fcfdff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-sm); }

/* table of contents */
.toc {
  background: linear-gradient(180deg, #fbfdff, var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 34px;
}
.toc__title {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3);
  margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; font-size: 15px; }
.toc li { margin-bottom: .4em; break-inside: avoid; }
.toc a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--brand-dark); text-decoration: underline; }

/* =========================================================
   11. Guide cards
   ========================================================= */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.guide-card__media { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; }
.guide-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.guide-card__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #5f43d6; background: var(--lilac-soft);
  border-radius: var(--radius-pill); padding: 5px 11px;
}
.guide-card__title {
  font-family: var(--font-head); font-size: 18.5px; font-weight: 800;
  color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -.015em;
}
.guide-card__excerpt { font-size: 14.5px; color: var(--ink-3); margin: 0; line-height: 1.6; }
.guide-card__foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}
.guide-card__foot .link-arrow { font-size: 13.5px; }

.guide-list { display: grid; gap: 0; }
.guide-list__item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.guide-list__item:last-child { border-bottom: 0; }
.guide-list__num {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink-3);
  font-family: var(--font-head); font-weight: 800; font-size: 13px;
}
.guide-list__item:hover .guide-list__num { background: var(--brand); color: #fff; }
.guide-list__t { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; color: var(--ink); line-height: 1.35; }

/* =========================================================
   12. FAQ
   ========================================================= */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 4px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3);
  line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 18px; font-size: 15.5px; color: var(--ink-2); }
.faq__a p:last-child { margin-bottom: 0; }

/* =========================================================
   13. CTA band
   ========================================================= */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 62px);
  background:
    radial-gradient(50% 80% at 90% 20%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(120deg, #ff8a5c 0%, #ff6b4a 45%, #ff5f7e 100%);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(255, 95, 126, .8);
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.14);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 17px; max-width: 52ch; margin: 0 auto 26px; position: relative; z-index: 1; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; z-index: 1; }
.cta-band .btn--ghost { --btn-fg: var(--brand-dark); box-shadow: 0 14px 30px -16px rgba(0,0,0,.4); }

/* =========================================================
   14. Single / page
   ========================================================= */
.breadcrumbs {
  font-size: 13px; color: var(--ink-3);
  padding: 18px 0 0;
}
.breadcrumbs a { color: var(--ink-3); font-weight: 600; }
.breadcrumbs span[aria-current] { color: var(--ink-2); }
.breadcrumbs .sep { margin: 0 7px; opacity: .6; }

.post-head { padding: 28px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.post-head__cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #5f43d6; background: var(--lilac-soft);
  border-radius: var(--radius-pill); padding: 6px 13px; margin-bottom: 16px;
}
.post-head h1 { font-size: clamp(28px, 4.2vw, 46px); margin-bottom: 14px; letter-spacing: -.03em; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  font-size: 14px; color: var(--ink-3);
}
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { width: 15px; height: 15px; opacity: .7; }

.post-hero { margin-bottom: 34px; }
.post-hero img { width: 100%; border-radius: var(--radius); }

.post-foot { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.post-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding: 26px 28px;
  background: linear-gradient(120deg, var(--bg-soft), #fff);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.post-cta p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 46ch; }
.post-cta strong { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 4px; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px;
}
.post-nav a {
  display: block; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.post-nav a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); text-decoration: none; }
.post-nav small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; margin-bottom: 5px; }
.post-nav span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.35; display: block; }
.post-nav .next { text-align: right; }

.related { margin-top: 56px; }
.related__title { font-size: 22px; margin-bottom: 20px; }

/* =========================================================
   15. Pagination
   ========================================================= */
.pagination { margin: 44px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px;
  padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink-2);
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--line-2); color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   16. Footer
   ========================================================= */
.site-footer {
  margin-top: 0; padding: 68px 0 0;
  background: linear-gradient(180deg, #fbfcff, var(--bg-soft));
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand p { font-size: 14.5px; color: var(--ink-3); max-width: 34ch; margin: 14px 0 18px; }
.footer-col h3 {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.footer-col a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-note {
  border-top: 1px solid var(--line); padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--ink-3);
}
.footer-note a { color: var(--ink-2); }
.socials { display: flex; gap: 8px; margin-top: 4px; }
.socials a {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.socials a:hover { border-color: var(--line-2); color: var(--brand-dark); }
.socials svg { width: 16px; height: 16px; }

/* disclaimer / notice */
.notice {
  font-size: 13.5px; color: var(--ink-3);
  background: var(--sun-soft);
  border: 1px solid #ffe3a3;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

/* =========================================================
   17. Misc blocks
   ========================================================= */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; box-shadow: var(--shadow-xs);
}
.stat b { display: block; font-family: var(--font-head); font-size: 28px; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-3); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split--rev { grid-template-columns: .9fr 1.1fr; }
.split img { border-radius: var(--radius-lg); }
.split h2 { font-size: clamp(26px, 3.2vw, 38px); }
.split ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.split ul li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
.split ul li svg { width: 20px; height: 20px; flex: none; color: var(--mint); margin-top: 3px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--ink-2);
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }

/* =========================================================
   18. Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 84px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { order: -1; max-width: 560px; }
  .hero__lead { font-size: 17px; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn:not(.nav-toggle) { display: none; }
  .topbar { display: none; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px;
    box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    margin: 0; z-index: 95;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .nav-list > li > button {
    width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px;
  }
  .drop-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: 0;
    padding: 0 0 8px 12px; max-height: none; min-width: 0;
    display: none;
  }
  .nav-list > li.is-open > .drop-menu { display: block; }
  .nav-list > li:hover > .drop-menu { display: none; }
  .nav-list > li.is-open:hover > .drop-menu { display: block; }
  .finder { grid-template-columns: 1fr; align-items: stretch; }
  .finder__stat { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .finder__stat strong { font-size: 20px; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 30px; }
  .split .split__media { order: -1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .section { padding: 60px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .guide-grid { grid-template-columns: 1fr; }
  .cat-card__body { padding: 13px 14px 15px; }
  .cat-card__name { font-size: 15px; }
  .topbar__links { display: none; }
  .toc ol { columns: 1; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .article-shell { padding: 22px 18px; border-radius: var(--radius); }
  .prose { font-size: 16.5px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { border-radius: var(--radius); }
  .hero__badge { left: 8px; bottom: 12px; padding: 10px 13px; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   19. Print
   ========================================================= */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .related, .post-nav, .finder-wrap { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .article-shell { border: 0; box-shadow: none; padding: 0; }
}
