/* Internal pages: the same violet accent and pastel surfaces as the approved homepage. */
.VPContent.has-sidebar {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 32px 40px 88px;
  align-items: start;
  --content-link: var(--accent);
  --content-focus: var(--accent);
}

.dark .VPContent.has-sidebar {
  --content-link: var(--lavender);
  --content-focus: var(--lavender);
}

.workspace-sidebar {
  --text: #271039;
  --muted: #706280;
  --border: #e5deec;
  --accent: #721cff;
  --surface: #fffdfb;
  --surface-soft: #f1eafb;
  --sidebar-active-bg: #f1e8ff;
  --sidebar-active-text: #6815ed;
  --sidebar-active-muted: #60409b;
  --content-focus: var(--accent);
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-width: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.dark .workspace-sidebar {
  --text: #f6f3fb;
  --muted: #b8adc9;
  --border: #3c3748;
  --accent: #8650ff;
  --surface: #22232b;
  --surface-soft: #2d293a;
  --sidebar-active-bg: #362849;
  --sidebar-active-text: #c1a1ff;
  --sidebar-active-muted: #d2b9ff;
}

.section-nav {
  width: 100%;
}

.section-nav > summary {
  display: none;
  list-style: none;
}

.section-nav > summary::-webkit-details-marker { display: none; }
.sidebar-body { display: flex; flex-direction: column; gap: 24px; }

.sidebar-home,
.sidebar-platform-link,
.sidebar-section-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-home {
  gap: 9px;
  padding: 10px 12px;
  color: var(--muted);
}

.sidebar-home svg { width: 17px; height: 17px; transform: rotate(180deg); }
.sidebar-platforms { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.sidebar-platforms h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.sidebar-platform-link {
  justify-content: space-between;
  gap: 6px;
  margin: 3px 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-platform-link svg,
.sidebar-section-link > svg { width: 15px; height: 15px; flex: none; opacity: 0; }
.sidebar-sections { display: flex; flex-direction: column; gap: 5px; }
.sidebar-section-link { gap: 10px; padding: 11px 10px; }
.sidebar-section-link > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-section-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lavender);
  color: var(--ink);
}

.sidebar-section-icon img { width: 22px !important; height: 22px !important; }
.sidebar-section-link[data-tone="teal"] .sidebar-section-icon { background: var(--pink); }
.sidebar-section-link[data-tone="green"] .sidebar-section-icon { background: var(--sky); }
.sidebar-section-link[data-tone="coral"] .sidebar-section-icon { background: var(--lime); }
.sidebar-section-link strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; }
.sidebar-section-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sidebar-home:hover,
.sidebar-platform-link:hover,
.sidebar-section-link:hover { background: var(--surface-soft); color: var(--text); }

.sidebar-platform-link[aria-current],
.sidebar-section-link[aria-current] { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.sidebar-platform-link[aria-current] { font-weight: 700; }
.sidebar-platform-link[aria-current] svg,
.sidebar-section-link[aria-current] > svg { opacity: 1; }
.sidebar-section-link[aria-current] small { color: var(--sidebar-active-muted); }
.sidebar-section-link[aria-current] .sidebar-section-icon { background: var(--surface); }
.sidebar-theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.inner-page { min-width: 0; color: var(--text); font-size: 16px; line-height: 1.65; }
.inner-wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
.inner-page :where(h1, h2, h3) { font-family: Inter, sans-serif; text-wrap: balance; }
.inner-page :where(p, li, dd, td) { overflow-wrap: break-word; }
.inner-page :where(a, button, input):focus-visible,
.workspace-sidebar :where(a, button, summary):focus-visible {
  outline: 3px solid var(--content-focus);
  outline-offset: 4px;
}

.inner-page :where(section[id], a[id]) { scroll-margin-top: calc(var(--header-h) + 28px); }
.breadcrumb {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--content-link); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--text); }
.breadcrumb > span:not([aria-current]) { opacity: .65; }
.page-heading { padding: 36px 0 30px; }
.page-symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--lavender);
  color: var(--ink);
}

.page-symbol svg { width: 30px; height: 30px; }
.category-page .page-symbol,
.detail-page .page-symbol,
.page-symbol[data-tone="green"] { background: var(--sky); }
.page-symbol[data-tone="teal"] { background: var(--pink); }
.page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.page-heading p { max-width: 66ch; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.category-tabs a:hover { border-color: var(--content-link); color: var(--content-link); }
.category-tabs a[aria-current] { border-color: var(--accent); background: var(--accent); color: #fff; }
.demo-note { padding: 16px 20px; border-radius: 16px; background: var(--surface-soft); color: var(--muted); font-size: 14px; line-height: 1.7; }
.listing-section, .resource-section { padding-top: 34px; }
.listing-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.listing-title h2,
.tool-intro h2,
.detail-layout h2 { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.listing-title > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
/* Approved compact catalogue: colour belongs to marks and controls. */
body[data-page="category"] { min-width: 0; }
.platform-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 24px;
}
body[data-page="category"] .category-page .platform-catalog-header .page-heading { min-width: 0; padding: 0; }
.category-page .page-heading h1 { font-size: 44px; letter-spacing: -.035em; }
.platform-search {
  display: flex;
  align-items: center;
  flex: 0 1 360px;
  gap: 12px;
  min-height: 48px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  transition: border-color 160ms ease;
}
.platform-search svg { flex: 0 0 20px; width: 20px; height: 20px; }
.platform-search input { width: 100%; min-width: 0; height: 46px; padding: 10px 0; border: 0; background: transparent; color: var(--text); font-size: 16px; outline: none; }
.platform-search input::placeholder { color: var(--muted); }
.platform-search:focus-within { border-color: var(--content-focus); outline: 3px solid var(--content-focus); outline-offset: 3px; }
.platform-search:hover { border-color: var(--content-link); }
.platform-toolbar { border-bottom: 1px solid var(--border); }
.platform-toolbar .category-tabs { display: flex; flex-wrap: nowrap; gap: 28px; margin: 0; }
.platform-toolbar .category-tabs a {
  justify-content: center;
  min-height: 52px;
  margin-bottom: -1px;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  transition: color 160ms ease, border-color 160ms ease;
}
.platform-toolbar .category-tabs a:hover { color: var(--content-link); }
.platform-toolbar .category-tabs a[aria-current] { border-bottom-color: var(--content-link); color: var(--content-link); }
.platform-toolbar .category-tabs a:focus-visible { outline: 3px solid var(--content-focus); outline-offset: 4px; }
.platform-demo-note {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  margin: 16px 0 12px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.platform-card__terms { display: grid; gap: 10px; margin: 0 0 22px; }
.sb-tool-card-facts { display: grid; gap: 12px; margin: 0 0 18px; }
.sb-tool-card-facts > div { display: grid; gap: 4px; min-width: 0; }
.sb-tool-card-facts dt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.sb-tool-card-facts dd { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.sb-tool-price-details { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.platform-card__terms > div { display: grid; grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); align-items: baseline; gap: 12px; min-width: 0; }
.platform-card__terms dt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.platform-card__terms dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: break-word; text-align: right; }
.platform-empty { margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--muted); }

@media (min-width: 960px) and (max-width: 1199px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 681px) and (max-width: 1199px) {
  .platform-catalog-header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .platform-search { flex: none; width: min(100%, 420px); }
  .platform-toolbar .category-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 681px) and (max-width: 959px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .platform-catalog-header { align-items: stretch; flex-direction: column; gap: 20px; padding: 28px 0 20px; }
  .category-page .page-heading h1 { font-size: 34px; }
  .platform-search { flex: none; width: 100%; }
  .platform-toolbar .category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .platform-toolbar .category-tabs a { min-height: 56px; padding: 10px 0; font-size: 14px; }
  .platform-demo-note { margin: 16px 0 12px; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 460px) {
  .platform-card__terms { gap: 12px; }
  .platform-card__terms > div { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); }
  .platform-card__terms dt { font-size: 13px; }
  .platform-card__terms dd { margin: 0; font-size: 15px; }
}

.page-end-link { margin-top: 34px; }
.page-end-link a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--content-link); font-size: 15px; font-weight: 600; text-decoration: none; }
.page-end-link a:hover { text-decoration: underline; text-underline-offset: 5px; }
.page-end-link svg { width: 19px; height: 19px; }

/* A platform detail keeps its comparable terms next to the available action. */
.operator-symbol { font-size: 30px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.detail-layout > section { padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.detail-terms { margin: 22px 0 0; }
.detail-terms > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.detail-terms dt { color: var(--muted); font-size: 14px; }
.detail-terms dd { margin: 0; font-size: 16px; font-weight: 600; }
.detail-summary h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 700; }
.detail-summary p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.detail-aside { padding: 28px; border-radius: 24px; background: var(--sky); color: var(--ink); }
.detail-aside > span { display: block; margin-bottom: 16px; color: #38475b; font-size: 14px; }
.detail-aside h2 { color: var(--ink); }
.detail-aside button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 24px 0 16px;
  padding: 12px 20px;
  border: 0;
  border-radius: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.detail-aside button:hover { background: var(--accent-hover); }
.detail-aside button svg { width: 18px; height: 18px; }
.detail-aside button:focus-visible { outline-color: var(--ink); }
.detail-aside p { margin: 0; color: #38475b; font-size: 14px; line-height: 1.7; }

/* Calculations: inputs remain neutral; stable numeric outputs use the brand's lavender. */
.tool-card { margin: 28px 0 0; padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.tool-intro { display: flex; align-items: flex-start; gap: 16px; }
.tool-intro > div { min-width: 0; }
.tool-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--lavender); color: var(--ink); }
.tool-icon svg { width: 25px; height: 25px; }
.tool-intro p { max-width: 60ch; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; margin-top: 30px; align-items: stretch; }
.calc-fields { display: flex; flex-direction: column; gap: 20px; }
.calc-fields label { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; }
.calc-fields input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  caret-color: var(--content-link);
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms ease;
}

.calc-fields input:hover { border-color: var(--muted); }
.calc-fields input:focus-visible { border-color: var(--content-focus); outline-width: 2px; outline-offset: 3px; }
.calc-fields input[aria-invalid="true"] { border-color: #b52739; }
.form-error { margin: -4px 0 0; color: #b52739; font-size: 14px; font-weight: 500; line-height: 1.6; }
.dark .form-error { color: #ffadb7; }
.dark .calc-fields input[aria-invalid="true"] { border-color: #ffadb7; }
.calc-results { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 18px; background: var(--lavender); color: var(--ink); }
.calc-results > div + div { padding-top: 16px; border-top: 1px solid rgba(23, 26, 36, .16); }
.calc-results span { display: block; color: #35405c; font-size: 14px; line-height: 1.5; }
.calc-results strong { display: block; margin-top: 4px; color: var(--ink); font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.calc-results > div:first-child strong { font-size: clamp(30px, 3vw, 38px); }
.calc-results p { margin: auto 0 0; color: #35405c; font-size: 14px; line-height: 1.7; }
.margin-result { background: var(--lime); }
.margin-result span, .margin-result p { color: #394c2e; }

/* Sources and reading use the same generous typography without oversized decoration. */
.statistics-page .resource-section { padding-top: 4px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 240px; padding: 24px; border-radius: 24px; background: var(--sky); color: var(--ink); text-decoration: none; }
.resource-card:nth-child(2) { background: var(--pink); }
.resource-card:nth-child(3) { background: var(--lime); }
.resource-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 14px; background: rgba(255, 255, 255, .68); color: var(--ink); }
.resource-icon svg { width: 26px; height: 26px; }
.resource-arrow { position: absolute; top: 25px; right: 23px; width: 20px; height: 20px; }
.resource-card strong { font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.resource-card > span:last-child { margin-top: 10px; color: #35465c; font-size: 16px; line-height: 1.65; }
.resource-card:nth-child(2) > span:last-child { color: #5d3c44; }
.resource-card:nth-child(3) > span:last-child { color: #3b4c30; }
.resource-card:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.resource-card:focus-visible { outline-color: var(--ink); }
.social-directory { display: flex; flex-direction: column; gap: 18px; }
.social-directory__section { padding: 26px 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.social-directory__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.social-directory__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--sky); color: var(--ink); font-size: 28px; line-height: 1; }
.social-directory__section[data-tone="green"] .social-directory__icon { background: var(--lime); }
.social-directory__section[data-tone="peach"] .social-directory__icon { background: var(--pink); }
.social-directory__heading h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.social-directory__status { margin-left: auto; padding: 7px 11px; border-radius: 20px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.5; }
.social-directory__section p { max-width: 67ch; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.blog-card { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 160ms ease; }
.blog-card__art { display: grid; place-items: center; flex: none; width: 100px; height: 120px; border-radius: 20px; background: var(--lavender); color: var(--ink); }
.blog-card[data-tone="blue"] .blog-card__art { background: var(--sky); }
.blog-card[data-tone="yellow"] .blog-card__art { background: var(--lime); }
.blog-card__body { min-width: 0; flex: 1; }
.blog-card h2 { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.blog-card__summary { display: block; max-width: 65ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.blog-card__tag { display: inline-flex; margin-top: 14px; color: var(--content-link); font-size: 12px; font-weight: 600; line-height: 1.5; }
.blog-card__arrow { flex: none; width: 21px; height: 21px; color: var(--content-link); }
.blog-card:hover { border-color: var(--content-link); }
.blog-card:hover h2 { color: var(--content-link); }
.article-layout { width: 100%; max-width: 740px; }
.article-page .page-heading h1 { font-size: clamp(32px, 3.3vw, 44px); }
.article-page .page-heading p { font-size: 18px; line-height: 1.75; }
.guide-article { padding: 4px 0 34px; font-size: 18px; line-height: 1.85; }
.guide-article p { margin: 0 0 22px; color: var(--text); font-size: 18px; line-height: 1.85; }
.guide-article h2 { margin: 42px 0 16px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.guide-article h3 { margin: 30px 0 12px; font-size: 22px; font-weight: 700; line-height: 1.4; }
.guide-article ul { margin: 20px 0 26px; padding-left: 24px; list-style: disc; }
.guide-article li { margin: 13px 0; padding-left: 4px; font-size: 18px; line-height: 1.8; }
.guide-article li::marker { color: var(--content-link); }
.guide-article strong { font-weight: 700; }
.guide-article a:not(.guide-action) { color: var(--content-link); text-underline-offset: 5px; }
.formula { margin: 24px 0; padding: 22px 24px; border-radius: 18px; background: var(--sky); color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.85; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.guide-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 12px 20px; border-radius: 26px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.guide-action:hover { background: var(--accent-hover); }
.guide-action svg { width: 19px; height: 19px; flex: none; }
.article-related { padding-top: 28px; border-top: 1px solid var(--border); }
.article-related h2 { margin: 0 0 14px; font-size: 23px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.article-related a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; color: var(--content-link); font-size: 16px; font-weight: 500; line-height: 1.6; text-decoration: none; }
.article-related a + a { border-top: 1px solid var(--border); }
.article-related a:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-related svg { width: 19px; height: 19px; flex: none; }

@media (min-width: 960px) and (max-width: 1199px) {
  .VPContent.has-sidebar { gap: 28px; padding-left: 28px; padding-right: 28px; }
  .resource-grid { grid-template-columns: 1fr; gap: 14px; }
  .resource-card { min-height: 0; padding: 24px 72px 24px 96px; }
  .resource-icon { position: absolute; top: 24px; left: 24px; margin: 0; }
  .resource-card > span:last-child { margin-top: 8px; }
  .detail-layout { grid-template-columns: 1fr; }
  .calc-body { gap: 20px; }
  .tool-card { padding: 24px; }
  .blog-card { gap: 18px; padding: 22px; }
  .blog-card__art { width: 76px; height: 100px; }
  .social-directory__status { margin-left: 66px; }
}

@media (max-width: 959px) {
  .VPContent.has-sidebar { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 24px 28px 64px; }
  .workspace-sidebar { position: static; }
  .section-nav > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 13px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
  .section-nav > summary svg { width: 21px; height: 21px; }
  .section-nav[open] > summary { border-radius: 14px 14px 0 0; }
  .section-nav[open] .sidebar-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; padding: 22px 18px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface); }
  .section-nav:not([open]) .sidebar-body { display: none; }
  .sidebar-home { grid-column: 1 / -1; }
  .section-nav[open] .sidebar-sections { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sidebar-platforms { padding-bottom: 0; border-bottom: 0; }
  .sidebar-theme { grid-column: 1 / -1; margin: 0 10px; }
  .breadcrumb { padding-top: 24px; }
  .page-heading { padding-top: 28px; }
  .page-heading h1 { font-size: clamp(32px, 4.6vw, 44px); }
  .detail-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .resource-card { padding: 22px; }
  .resource-grid { gap: 14px; }
}

@media (max-width: 680px) {
  .VPContent.has-sidebar { padding: 18px 20px 52px; }
  .section-nav[open] .sidebar-body { display: flex; gap: 20px; }
  .section-nav[open] .sidebar-sections { display: flex; }
  .sidebar-platforms { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .sidebar-section-link { padding: 10px 12px; }
  .sidebar-theme { margin: 0 12px; }
  .page-heading { padding: 28px 0 26px; }
  .page-symbol { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; }
  .page-heading h1 { font-size: 34px; letter-spacing: -.03em; }
  .page-heading p { margin-top: 16px; }
  .category-tabs { gap: 7px; margin-bottom: 20px; }
  .category-tabs a { padding: 10px 14px; font-size: 13px; }
  .demo-note { padding: 15px 17px; }
  .listing-title { gap: 6px; margin-bottom: 16px; }
  .listing-title h2, .tool-intro h2, .detail-layout h2 { font-size: 23px; }
  .detail-layout, .calc-body { grid-template-columns: 1fr; gap: 20px; }
  .detail-layout > section, .detail-aside { padding: 24px; border-radius: 20px; }
  .detail-terms > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .tool-card { margin-top: 22px; padding: 22px; border-radius: 20px; }
  .tool-intro { gap: 12px; }
  .tool-icon { width: 42px; height: 42px; border-radius: 12px; }
  .tool-icon svg { width: 23px; height: 23px; }
  .tool-intro p { margin-top: 8px; }
  .calc-body { margin-top: 24px; }
  .calc-fields { gap: 18px; }
  .calc-results { gap: 16px; padding: 22px; }
  .calc-results strong { font-size: 30px; }
  .calc-results > div:first-child strong { font-size: 36px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; padding: 24px 66px 24px 94px; border-radius: 20px; }
  .resource-icon { position: absolute; top: 24px; left: 24px; margin: 0; }
  .resource-card > span:last-child { margin-top: 8px; }
  .social-directory__section { padding: 22px; border-radius: 20px; }
  .social-directory__heading { gap: 12px; }
  .social-directory__heading h2 { font-size: 24px; }
  .social-directory__status { margin-left: 64px; }
  .social-directory__section p { margin-top: 16px; }
  .blog-card { align-items: flex-start; gap: 16px; padding: 22px; border-radius: 20px; }
  .blog-card__art { width: 60px; height: 72px; border-radius: 15px; }
  .blog-card__art img { width: 34px !important; height: 34px !important; }
  .blog-card h2 { font-size: 23px; }
  .blog-card__arrow { display: none; }
  .blog-card__tag { margin-top: 12px; }
  .article-page .page-heading h1 { font-size: 34px; }
  .article-page .page-heading p, .guide-article, .guide-article p, .guide-article li { font-size: 17px; }
  .guide-article h2 { margin-top: 34px; font-size: 26px; }
  .formula { padding: 19px 20px; font-size: 16px; }
}

@media (max-width: 420px) {
  .VPContent.has-sidebar { padding-left: 16px; padding-right: 16px; }
  .page-heading h1, .article-page .page-heading h1 { font-size: 31px; }
  .breadcrumb { font-size: 12px; }
  .tool-card { padding: 20px 18px; }
  .tool-intro { display: block; }
  .tool-icon { margin-bottom: 16px; }
  .detail-layout > section, .detail-aside { padding: 22px; }
  .detail-terms > div { grid-template-columns: 1fr; gap: 6px; }
  .resource-card { padding: 22px; }
  .resource-icon { position: static; margin-bottom: 20px; }
  .resource-arrow { top: 23px; right: 22px; }
  .social-directory__section { padding: 20px; }
  .social-directory__status { margin-left: 0; flex-basis: auto; }
  .blog-card { display: block; padding: 20px; }
  .blog-card__art { width: 64px; height: 64px; margin-bottom: 18px; }
  .blog-card h2 { font-size: 24px; }
  .guide-action { width: 100%; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-home, .sidebar-platform-link, .sidebar-section-link, .calc-fields input, .blog-card, .platform-search { transition: none; }
}
