/** Editorial surfaces; channel queries and business states stay in their owning modules. */
html body { background:var(--dafa-bg); color:var(--dafa-text); }
/* A stable mark is readable on arrival and when focused. */
body .dafa-brand-svg__copy,
body .dafa-brand-svg__dollar,
body .dafa-brand-link:is(:hover,:focus-visible) .dafa-brand-svg__dollar { animation:none; }
body .dafa-login-brand { margin-bottom:24px; text-decoration:none; }
body .dafa-login-brand .dafa-brand-svg { max-width:100%; }
.editorial-home a, .editorial-footer-utility a { text-decoration:none; }
body .site-header { background:var(--dafa-surface); border-bottom:0; box-shadow:none; }
body .site-header.is-scrolled { box-shadow:0 4px 18px rgb(0 0 0 / 5%); }
body .primary-navigation > ul > li > a { font-weight:600; }
body :is(.header-search__panel,.header-user__panel,.header-notice__panel) { border-radius:8px; background:var(--dafa-surface); box-shadow:0 12px 40px rgb(0 0 0 / 12%); }
body :is(a,button,input,select,summary):focus-visible { outline:2px solid var(--dafa-accent); outline-offset:4px; }
/* Stationary search and distinct content channels. */
.editorial-home { padding-bottom:0; }
.editorial-home .editorial-hero { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); align-items:center; gap:clamp(40px,6vw,96px); padding:64px 0 56px; }
.editorial-eyebrow { margin:0 0 18px; color:var(--dafa-text-soft); font-size:12px; font-weight:650; letter-spacing:.08em; }
.editorial-hero h1 { margin:0 0 24px; font-size:clamp(36px,4vw,54px); line-height:1.32; letter-spacing:-.045em; font-weight:760; }
.editorial-hero__intro { max-width:38em; margin:0 0 30px; color:var(--dafa-text-soft); font-size:16px; line-height:1.9; white-space:pre-line; }
.editorial-home .scope-search { display:flex; gap:0; min-height:58px; padding:5px; border:1px solid var(--dafa-border); border-radius:6px; background:var(--dafa-surface); box-shadow:0 4px 12px rgb(0 0 0 / 3%); }
.editorial-home .scope-search:focus-within { border-color:var(--dafa-accent); }
.editorial-home .scope-search__select { flex:0 0 92px; width:92px; padding:0 8px; border:0; border-right:1px solid var(--dafa-border); border-radius:0; background-color:transparent; color:var(--dafa-text); font-size:14px; }
.editorial-home .scope-search__field { flex:1; min-width:0; width:100%; padding:10px 16px; border:0; background:transparent; color:var(--dafa-text); font-size:15px; }
.editorial-home .scope-search__submit { flex:0 0 48px; width:48px; min-height:46px; padding:12px; border:0; border-radius:4px; background:var(--dafa-accent); color:var(--dafa-on-accent); box-shadow:none; }
.editorial-home .scope-search__submit:is(:hover,:focus-visible):not(:disabled) { background:var(--dafa-accent-strong); color:var(--dafa-on-accent); }
.editorial-quick { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:16px; font-size:12px; color:var(--dafa-text-soft); }
.editorial-quick a { color:var(--dafa-text-soft); text-decoration:underline; text-decoration-color:var(--dafa-border); text-underline-offset:4px; }
.editorial-feature { align-self:stretch; display:flex; align-items:center; padding:28px; background:var(--dafa-surface); border-radius:8px; min-width:0; }
.editorial-feature > a { display:block; width:100%; color:var(--dafa-text); }
.editorial-feature__image { height:210px; overflow:hidden; margin-bottom:22px; background:var(--dafa-surface-muted); }
.editorial-feature__image img { width:100%; height:100%; object-fit:contain; }
.editorial-feature .editorial-eyebrow { display:block; margin:0 0 10px; color:var(--dafa-accent); }
.editorial-feature h2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:19px; line-height:1.6; margin:0 0 14px; font-weight:650; }
.editorial-feature__link { font-size:12px; color:var(--dafa-text-soft); }
.editorial-paths { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:var(--dafa-surface); border-radius:8px; }
.editorial-paths > a { display:flex; gap:16px; align-items:flex-start; padding:26px 24px; color:var(--dafa-text); }
.editorial-paths > a + a { border-left:1px solid var(--dafa-border); }
.editorial-paths > a:first-child { border-radius:8px 0 0 8px; }
.editorial-paths > a:last-child { border-radius:0 8px 8px 0; }
.editorial-paths > a:is(:hover,:focus-visible) { background:color-mix(in srgb,var(--dafa-accent) 4%,var(--dafa-surface)); }
.editorial-paths__index { padding-top:4px; color:var(--dafa-accent); font-size:12px; font-variant-numeric:tabular-nums; }
.editorial-paths strong { display:block; margin-bottom:4px; font-size:17px; font-weight:650; }
.editorial-paths small { color:var(--dafa-text-soft); font-size:12px; }
.editorial-paths__arrow { margin-left:auto; }
.editorial-home a:is(:hover,:focus-visible) { color:var(--dafa-accent); }
.editorial-section { padding:52px 0 0; }
.editorial-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-bottom:22px; border-bottom:1px solid var(--dafa-border); }
.editorial-heading h2 { margin:0 0 6px; font-size:25px; line-height:1.4; letter-spacing:-.025em; }
.editorial-heading p { margin:0; font-size:13px; color:var(--dafa-text-soft); }
.editorial-heading > a { flex-shrink:0; padding-block:10px; color:var(--dafa-text-soft); font-size:13px; }
.editorial-section__body { padding-top:8px; }
.editorial-section--files .editorial-section__body:has(.editorial-ai) { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr); gap:44px; padding-top:24px; }
.editorial-item { min-width:0; padding:22px 0; border-bottom:1px solid var(--dafa-border); }
.editorial-item:last-child { border-bottom:0; }
.editorial-item__meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:8px; color:var(--dafa-text-soft); font-size:12px; line-height:1.5; font-variant-numeric:tabular-nums; }
.editorial-item h3 { margin:0 0 9px; font-size:18px; line-height:1.65; font-weight:650; letter-spacing:-.012em; }
.editorial-item h3 a { color:var(--dafa-text); }
.editorial-item__excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--dafa-text-soft); font-size:14px; line-height:1.8; }
.editorial-item__excerpt p { margin:0; }
.editorial-item__excerpt .more-link { display:none; }
.editorial-ai { align-self:start; padding:30px; background:var(--dafa-surface); border-radius:8px; }
.editorial-ai > .editorial-eyebrow { display:flex; align-items:center; gap:8px; }
.editorial-ai > .editorial-eyebrow svg { width:20px; height:20px; }
.editorial-ai h3 { margin:24px 0 16px; font-size:28px; line-height:1.5; letter-spacing:-.035em; }
.editorial-ai p { color:var(--dafa-text-soft); font-size:14px; line-height:1.9; }
.editorial-ai button { width:100%; cursor:pointer; font:inherit; border-radius:4px; }
.editorial-ai button.editorial-ai__example { margin:16px 0; padding:17px; border:1px solid color-mix(in srgb,var(--dafa-text) 16%,transparent); background:transparent; color:var(--dafa-text); text-align:left; font-size:14px; line-height:1.8; }
.editorial-ai__example > span:first-child { display:block; margin-bottom:6px; color:var(--dafa-text-soft); font-size:11px; }
.editorial-ai button.editorial-ai__open { padding:12px 18px; border:1px solid transparent; background:var(--dafa-accent); color:var(--dafa-on-accent); font-size:14px; }
.editorial-ai button.editorial-ai__open:hover { background:var(--dafa-accent-strong); }
.editorial-ai small { display:block; margin-top:14px; color:var(--dafa-text-soft); font-size:11px; line-height:1.8; }
.editorial-section--news .editorial-items { display:grid; grid-template-columns:1.05fr 1fr; column-gap:48px; }
.editorial-section--news .editorial-item:first-child { grid-row:1 / span 20; align-self:start; padding:24px; border:0; background:var(--dafa-surface); border-radius:8px; }
.editorial-item__image { display:block; aspect-ratio:16 / 9; overflow:hidden; margin-bottom:18px; background:var(--dafa-surface-muted); }
.editorial-item__image img { width:100%; height:100%; object-fit:cover; }
.editorial-section--articles .editorial-section__body { padding-top:0; }
.editorial-section--articles .editorial-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 30px; padding-top:0; }
.editorial-section--articles .editorial-item { border:0; padding:24px 0; }
.editorial-section--articles .editorial-item:nth-child(n+3) { border-top:1px solid var(--dafa-border); }
.editorial-membership { display:flex; align-items:center; justify-content:space-between; gap:32px; margin:48px 0 56px; padding:32px; background:var(--dafa-surface); border-radius:8px; }
.editorial-membership .editorial-eyebrow { margin-bottom:10px; }
.editorial-membership h2 { margin:0 0 10px; font-size:24px; letter-spacing:-.025em; }
.editorial-membership p { margin:0; color:var(--dafa-text-soft); font-size:14px; }
.editorial-membership > a { flex-shrink:0; padding:12px 22px; border:1px solid var(--dafa-border); border-radius:4px; color:var(--dafa-text); font-size:14px; }
/* Lists retain their saved view and two-line summaries. */
body :is(.home-page,.archive-page,.search-results-page,.single-page,.blog-page) .entry-card { border-radius:6px; background:var(--dafa-surface); box-shadow:none; border:1px solid var(--dafa-border); transition:border-color 160ms ease; }
body :is(.home-page,.archive-page,.search-results-page,.single-page,.blog-page) .entry-card:hover { transform:none; box-shadow:none; border-color:color-mix(in srgb,var(--dafa-accent) 40%,var(--dafa-border)); }
body .archive-results[data-dafa-archive-view="list"] .entry-card,body .entry-grid[data-view="list"] .entry-card { background:transparent; border:0; border-bottom:1px solid var(--dafa-border); border-radius:0; box-shadow:none; }
body .archive-results[data-dafa-archive-view="list"] .entry-card__excerpt,body .entry-grid[data-view="list"] .entry-card__excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
body :is(.archive-hero,.search-hero) { background:var(--dafa-surface); border-bottom:1px solid var(--dafa-border); box-shadow:none; }
body :is(.archive-title,.search-hero h1) { font-weight:740; letter-spacing:-.035em; }
body .archive-description { max-width:52em; line-height:1.85; }
body .archive-description[data-collapsible] { position:relative; }
body .archive-description[data-collapsible="true"][data-expanded="false"] {
 max-height:3.7em;
 overflow:hidden;
}
body .archive-description-toggle {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:1.2em;
 min-width:1.2em;
 height:1.2em;
 margin:0 0 0 .45em;
 padding:0;
 border:0;
 border-radius:0;
 background:transparent;
 color:var(--dafa-accent);
 font:inherit;
 font-size:16px;
 font-weight:400;
 line-height:inherit;
 cursor:pointer;
 box-shadow:none;
 vertical-align:-.15em;
}
body .archive-description-toggle svg {
 width:1em;
 height:1em;
 transition:transform 160ms ease;
 pointer-events:none;
}
body .archive-description-toggle[aria-expanded="true"] svg {
 transform:rotate(180deg);
}
body .archive-description[data-collapsible="true"][data-expanded="false"] .archive-description-toggle {
 position:absolute;
 right:0;
 bottom:0;
 margin:0;
 padding-left:.45em;
 background:var(--dafa-surface);
}
body .archive-description-toggle:is(:hover,:focus-visible) {
 color:var(--dafa-accent-strong);
}
body .archive-description-toggle:focus-visible {
 outline:2px solid var(--dafa-accent);
 outline-offset:2px;
}
body .archive-description-toggle[hidden] { display:none; }
/* Channel metrics stay secondary to the title and content, with a shared quiet rhythm. */
body .archive-stats { gap:0; }
body .archive-stats__item { position:relative; gap:6px; min-width:100px; padding:8px 20px; border:0; border-radius:0; background:transparent; box-shadow:none; }
body .archive-stats__item + .archive-stats__item::before { content:""; position:absolute; inset-inline-start:0; top:50%; width:1px; height:26px; background:color-mix(in srgb,var(--dafa-border) 72%,transparent); transform:translateY(-50%); }
body .archive-stats__item strong { color:var(--dafa-text-soft); font-size:19px; font-weight:500; line-height:1.15; letter-spacing:-.02em; font-variant-numeric:lining-nums tabular-nums; white-space:nowrap; }
body .archive-stats__item span { display:flex; align-items:center; justify-content:center; gap:5px; color:var(--dafa-text-soft); font-size:11px; line-height:1.5; letter-spacing:.04em; white-space:nowrap; }
body .archive-stats__icon { width:13px; height:13px; flex:0 0 13px; stroke-width:1.6; }
body :is(.resource-filters,.archive-toolbar,.news-filter-form) { border:0; box-shadow:none; }
/* Content surfaces are grouped by their background; controls keep their own boundaries. */
body .single-page :is(.entry--single,.comments-area,.post-navigation .nav-links),
body .sidebar .widget { border:0; box-shadow:none; }
body :is(.archive-page,.search-results-page,.single-page,.blog-page) .content-shell { padding-block:32px 64px; }
.single-page .entry-header { margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--dafa-border); }
.single-page .entry-title { font-weight:740; line-height:1.4; letter-spacing:-.03em; }
.single-page .entry-deck { color:var(--dafa-text-soft); line-height:1.85; }
.single-page .entry-content { font-size:var(--dafa-content-font-desktop,17px); line-height:1.9; }
.single-page .entry-footer { margin-top:32px; padding-top:20px; border-top:1px solid var(--dafa-border); }
.single-page .entry-ai-summary { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:8px 16px; border:0; border-radius:4px; background:transparent; color:var(--dafa-accent); font:inherit; font-size:14px; cursor:pointer; }
.single-page .entry-ai-summary:is(:hover,:focus-visible) { background:transparent; color:var(--dafa-accent); }
.single-page .related-resources:not(.related-resources--sidebar) { margin-top:32px; padding:24px 0; border:0; border-top:1px solid var(--dafa-border); border-radius:0; background:transparent; box-shadow:none; }
.single-page .related-content { margin-top:32px; padding:24px; border:0; border-radius:8px; background:var(--dafa-surface); box-shadow:none; }
.single-page .related-content__title { margin:0 0 20px; font-size:20px; }
.related-content__heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.single-page .related-content__heading .related-content__title { margin:0; }
.related-content__refresh { flex:0 0 auto; min-height:44px; padding:8px 0 8px 16px; border:0; border-radius:0; background:transparent; color:var(--dafa-text-soft); font:inherit; font-size:14px; cursor:pointer; box-shadow:none; transition:color 160ms ease; }
.related-content__refresh:hover, .related-content__refresh:focus-visible { background:transparent; color:var(--dafa-accent); box-shadow:none; }
.related-content__refresh:disabled { cursor:wait; opacity:.65; }
.related-content__refresh[hidden] { display:none; }
.related-content__refresh { display:inline-flex; align-items:center; gap:6px; }
.related-content__refresh-icon { width:16px; height:16px; flex:0 0 16px; }
.related-content__refresh:disabled .related-content__refresh-icon { animation:dafa-related-spin .8s linear infinite; }
@keyframes dafa-related-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) {
  .related-content__refresh:disabled .related-content__refresh-icon { animation:none; }
}
.related-content__status.is-error { position:static !important; width:auto; height:auto; margin:-8px 0 16px; clip:auto; clip-path:none; overflow:visible; white-space:normal; color:var(--dafa-text-soft); font-size:14px; }
@media (max-width:640px) { .related-content__heading { margin-bottom:16px; } }
body .single-page .related-content .entry-card { background:transparent; border-color:transparent; }
.single-page .related-content .entry-card__media { border-radius:4px; }
.single-page .related-content .entry-card__body { padding:12px 0 0; }
@media (max-width:640px) {
  .single-page .related-content { padding:16px; }
  .single-page .related-content__title { margin-bottom:16px; }
  .single-page .related-content .entry-card { padding:0 0 12px; border-radius:0; }
  .single-page .related-content .entry-card:not(:last-child) { border-bottom-color:var(--dafa-border); }
  .single-page .related-content .entry-card:last-child { padding-bottom:0; border-bottom:0; }
  .single-page .related-content .entry-card__body { padding:0; }
}
/* Account and AI, without changes to entitlements or billing. */
/* Shared reading and service surfaces, including older page templates. */
body .entry-content > .wp-caption { max-width:min(100%,var(--dafa-reading)); }
body :is(.entry-content,.page-layout .su-spoiler) :is(p,li,span,a) { overflow-wrap:anywhere; }
body.chuhai-vc-page > .chuhai-vc { left:0; width:100%; max-width:100%; margin-inline:0; }
/* Consultation inherits the site's palette; semantic warning/error colors stay distinct. */
body.dafa-theme .chuhai-vc {
  --vc-ink:var(--dafa-text); --vc-muted:var(--dafa-text-soft); --vc-paper:var(--dafa-bg);
  --vc-white:var(--dafa-surface); --vc-line:var(--dafa-border);
  --vc-accent:var(--dafa-accent); --vc-accent-dark:var(--dafa-accent-strong);
  font-family:inherit;
}
body.dafa-theme:not(.dafa-color-dark) .chuhai-vc { --vc-navy:#202a29; --vc-navy-soft:#303b39; }
body.dafa-theme .chuhai-vc .chuhai-vc__hero::before { background:linear-gradient(90deg,rgb(16 23 22 / 97%) 0%,rgb(16 23 22 / 84%) 39%,rgb(16 23 22 / 20%) 69%,rgb(16 23 22 / 8%) 100%); }
body.dafa-theme .chuhai-vc .chuhai-vc__hero .chuhai-vc__eyebrow { color:color-mix(in srgb,var(--dafa-accent) 72%,white); }
body.dafa-theme .chuhai-vc :is(.chuhai-vc__button,.chuhai-vc__mobile-cta a) { border-radius:4px; transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease; }
body.dafa-theme .chuhai-vc .chuhai-vc__button:not(.chuhai-vc__button--ghost):not(.chuhai-vc__button--danger) { color:var(--dafa-on-accent) !important; }
body.dafa-theme .chuhai-vc .chuhai-vc__button:is(:hover,:focus-visible) { transform:none; }
body.dafa-theme .chuhai-vc :focus-visible { outline:2px solid var(--dafa-accent); outline-offset:4px; }
body.dafa-theme .chuhai-vc :is(.chuhai-vc__assurance,.chuhai-vc__panel,.chuhai-vc__policy details) { border-color:var(--dafa-border); border-radius:8px; background:var(--dafa-surface); box-shadow:none; }
body.dafa-theme .chuhai-vc :is(.chuhai-vc__problem-list,.chuhai-vc__problem-list article,.chuhai-vc__faq,.chuhai-vc__faq details) { border-color:var(--dafa-border); }
body.dafa-theme .chuhai-vc .chuhai-vc__offer-row.is-recommended { border-color:var(--dafa-accent); background:color-mix(in srgb,var(--dafa-accent) 4%,var(--dafa-surface)); box-shadow:none; }
body.dafa-theme .chuhai-vc .chuhai-vc__offer-badge { background:var(--dafa-accent-soft); color:var(--dafa-accent-strong) !important; }
@media (max-width:900px) {
  body.dafa-theme .chuhai-vc .chuhai-vc__hero::before { background:linear-gradient(90deg,rgb(16 23 22 / 97%) 0%,rgb(16 23 22 / 84%) 58%,rgb(16 23 22 / 42%) 100%); }
}
@media (max-width:640px) {
  body.dafa-theme .chuhai-vc .chuhai-vc__hero::before { background:linear-gradient(180deg,rgb(16 23 22 / 23%) 0%,rgb(16 23 22 / 77%) 43%,rgb(16 23 22 / 99%) 100%); }
}
@media (prefers-reduced-motion:reduce) {
  body.dafa-theme .chuhai-vc :is(.chuhai-vc__button,.chuhai-vc__mobile-cta a) { transition:none; }
}
/* Pricing cards share the normal surface; small membership marks retain their meaning. */
body .vip-content .erphpdown-vip-content .vip-item[data-dafa-vip-tier] { border:1px solid var(--dafa-border); border-radius:8px; background:var(--dafa-surface); box-shadow:none; transform:none; }
body .vip-content .erphpdown-vip-content .vip-item[data-dafa-vip-tier]:hover { border-color:var(--dafa-border); box-shadow:none; transform:none; }
body .vip-content .erphpdown-vip-content .vip-item--featured[data-dafa-vip-tier],
body .vip-content .erphpdown-vip-content .vip-item--featured[data-dafa-vip-tier]:hover { border-color:var(--dafa-accent); }
body :is(.directory-detail__hero,.directory-detail__content,.directory-detail__info,.tool-library__search,.links-directory__search,.links-directory__card,.links-directory__mobile-select,.topic-card,.login-panel,.notice-panel,.empty-state,.error-panel) { border-radius:8px; box-shadow:none; }
body .single-page .entry-header--center .entry-title { text-align:center; text-wrap:balance; font-size:clamp(26px,3.4vw,36px); }
body .single-page .entry-header--center .entry-meta { justify-content:center; }
body .single-page .entry-header--center .entry-deck { margin:20px 0 0; text-align:left; font-size:17px; line-height:1.85; }
body .entry-download-jump { margin:20px 0 0; text-align:left; }
body .entry-download-jump a { display:inline-flex; min-height:44px; align-items:center; padding:8px 16px; border:1px solid var(--dafa-border); border-radius:4px; font-size:14px; color:var(--dafa-accent-strong); text-decoration:none; }
body #erphpdown { scroll-margin-top:calc(var(--dafa-header-bottom,72px) + 20px); }
.page-service-notice { padding:24px; border:1px solid var(--dafa-border); border-left:3px solid var(--dafa-accent); border-radius:6px; background:var(--dafa-bg); color:var(--dafa-text); }
.entry-content .page-service-notice h2 { margin:0 0 12px; padding:0; border:0; font-size:20px; }
.page-service-notice p { color:var(--dafa-text-soft); font-size:15px; }
.page-service-notice nav { display:flex; flex-wrap:wrap; gap:12px 24px; }
.page-service-notice nav a { display:inline-flex; align-items:center; min-height:44px; font-size:14px; }
body .vip-member-banner { border-radius:8px; box-shadow:none; background:var(--dafa-surface); }
body .vip-manage-link { margin:20px 0 32px; }
body :is(.account-page,.vip-page)::before { display:none; }
body .account-page :is(.account-nav,.account-content),body .vip-compare__scroll { border-radius:8px; box-shadow:none; }
body .header-user__identity,body .account-page .account-identity { background:var(--dafa-surface); }
body .account-page .account-nav__menu a { border-radius:4px; }
body .account-page .account-content :is(.erphpdown-sc,.dafa-account-module,.amz-aikb-uc-panel,.vip-status) { border-radius:8px; background:var(--dafa-surface); box-shadow:none; }
body .account-content :is(input[type=checkbox],input[type=radio]) { accent-color:var(--dafa-accent); }
body .account-content .dafa-account-list__item > div { min-width:0; flex:1; }
body .account-content .dafa-account-list__item > form { flex:0 0 auto; }
body .account-content .button-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:8px; border:0; border-radius:4px; background:transparent; color:var(--dafa-text-soft); font:inherit; font-size:13px; white-space:nowrap; cursor:pointer; }
body .account-content .button-link:is(:hover,:focus-visible) { color:var(--dafa-accent); background:var(--dafa-bg); }
body .account-content :is(.dafa-ticket-thread,.dafa-ticket-message,.dafa-account-list__item) { min-width:0; max-width:100%; overflow-wrap:anywhere; }
body .account-content :is(.dafa-ticket-message,.dafa-account-list__item,.dafa-notification-item,.dafa-empty-state) { border-radius:6px; box-shadow:none; }
body .account-content .dafa-ticket-message header { flex-wrap:wrap; gap:4px 12px; }
body .account-content .dafa-ticket-detail > header { margin:20px 0; padding-bottom:16px; border-bottom:1px solid var(--dafa-border); }
body .account-content .dafa-ticket-detail > header h1 { margin:0 0 6px; font-size:20px; overflow-wrap:anywhere; }
body .account-page .account-panel-head::after { border-radius:0; background:var(--dafa-accent); }
body .account-page .account-content[data-account-action="wallet"] > .erphpdown-sc:first-of-type > .erphpdown-sc-table > tbody > tr { border-radius:6px !important; background:var(--dafa-bg); box-shadow:none; }
html body .amz-aikb-drawer-panel,html body .amz-aikb-app { border-radius:0; background:var(--dafa-surface); }
html body .amz-aikb-drawer-head { background:var(--dafa-surface); }
html body .amz-aikb-wallet { border-radius:6px; background:var(--dafa-bg); box-shadow:none; }
/* Utility navigation and disclosures remain accessible. */
body .site-footer { --dafa-footer-bg:var(--dafa-surface); --dafa-footer-bg-deep:var(--dafa-surface); --dafa-footer-ink:var(--dafa-text); --dafa-footer-muted:var(--dafa-text-soft); --dafa-footer-line:var(--dafa-border); padding:20px 0 28px; border-top:1px solid var(--dafa-border); background:var(--dafa-surface); color:var(--dafa-text); }
body .site-footer::before { display:none; }
.editorial-footer-information { position:relative; margin-bottom:16px; }
.editorial-footer-utility { min-height:44px; padding-inline-end:0; }
.editorial-footer-utility ul { display:flex; flex-wrap:wrap; gap:12px 26px; list-style:none; padding:12px 0; margin:0; font-size:13px; line-height:20px; }
body .site-footer :is(.footer-nav,.editorial-footer-utility) a,
body .site-footer .footer-nav button { color:var(--dafa-text-soft); }
body .site-footer :is(.footer-nav,.editorial-footer-utility) a:is(:hover,:focus-visible),
body .site-footer .footer-nav button:is(:hover,:focus-visible) { color:var(--dafa-accent); }
body .site-footer .footer-nav button { font:inherit; text-decoration:none; box-shadow:none; }
body .site-footer .footer-nav button:active { transform:none; }
.editorial-footer-details { margin:0; border:0; }
.editorial-footer-links { display:block; }
.editorial-footer-details summary { display:inline-flex; align-items:center; gap:6px; width:fit-content; padding:12px 0; color:var(--dafa-text-soft); font-size:13px; line-height:20px; list-style:none; cursor:pointer; }
.editorial-footer-details summary::-webkit-details-marker { display:none; }
.editorial-footer-details summary::after { content:""; width:6px; height:6px; border-inline-end:1.5px solid currentColor; border-block-end:1.5px solid currentColor; transform:rotate(45deg) translate(-1px,-1px); transition:transform 180ms ease; }
.editorial-footer-details[open] > summary::after { transform:rotate(-135deg) translate(-1px,-1px); }
.editorial-footer-utility + .editorial-footer-details > summary { position:absolute; inset-block-start:0; inset-inline-end:0; }
.editorial-footer-details summary:hover { color:var(--dafa-accent); }
.editorial-footer-details summary:focus-visible { outline:2px solid var(--dafa-accent); outline-offset:4px; }
.editorial-footer-details[open] .footer-widgets { border-top:1px solid var(--dafa-border); padding-top:20px; }
/* Compact footer: readable secondary links and legal information. */
body .site-footer .footer-row { padding-top:16px; gap:10px 16px; border-color:var(--dafa-border); }
body .site-footer .footer-nav { align-items:center; gap:8px 16px; font-size:13px; line-height:1.6; }
body .site-footer .footer-nav > :is(a,button) { display:inline-flex; align-items:center; min-height:32px; }
body .site-footer .footer-nav button { gap:5px; }
body .site-footer .footer-nav button svg { width:16px; height:16px; flex:none; }
body .site-footer .copyright { font-size:12px; line-height:1.7; }
body .site-footer .copyright a { color:inherit; text-decoration:none; }
body .site-footer .copyright a:is(:hover, :focus-visible) { color:var(--dafa-accent); text-decoration:none; }
body .site-footer .copyright a:focus-visible { outline:2px solid var(--dafa-text); outline-offset:3px; }
/* Match the appearance switcher to the compact footer links. */
body .site-footer .mobile-color-mode { gap:8px; }
body .site-footer .mobile-color-mode__label { letter-spacing:0; }
body .site-footer .mobile-color-mode__option { min-height:26px; gap:4px; padding-inline:8px; }
body .site-footer .mobile-color-mode__option svg { width:12px; height:12px; }
body .site-footer .mobile-color-mode__option:hover { background:var(--dafa-surface-muted); color:var(--dafa-text); }
body .site-footer .mobile-color-mode__option[aria-checked="true"] { background:var(--dafa-text); color:var(--dafa-surface); }
@media (max-width:1023px) {
 .editorial-home .editorial-hero { gap:32px; padding-top:40px; }
 .editorial-feature { padding:20px; }
 .editorial-feature__image { height:160px; }
 .editorial-paths > a { padding:22px 12px; gap:10px; }
 .editorial-paths small { font-size:11px; }
 .editorial-section--files .editorial-section__body:has(.editorial-ai) { gap:24px; grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); }
 .editorial-ai { padding:24px; }
}
@media (max-width:767px) {
 body .account-page .account-identity__hero { padding:14px 14px 10px; }
 body .account-page .account-identity__avatar { width:42px; height:42px; }
 body .account-page .account-identity__copy { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
 body .account-page .account-identity__greet { flex-basis:100%; }
 body .account-page .account-identity__meta { flex-basis:100%; }
 body .account-page .account-identity__stat { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:44px; padding:8px; border-radius:4px; }
 body .account-page .account-identity__stat b { font-size:14px; }
 body .account-page .account-nav__menu { padding:0 14px 12px; }
 body .account-page .account-nav__menu a { min-height:44px; display:inline-flex; align-items:center; }
 body .entry-content .su-custom-gallery-slide { max-width:calc(100% - 1em); height:auto !important; }
 body .entry-content .su-custom-gallery-slide img { height:auto; }
 body .archive-page .archive-hero { padding-block:22px; }
 body .archive-page .archive-hero__inner { gap:14px; }
 body .archive-page .archive-hero__aside { gap:10px; }
 body .archive-page .archive-description { margin-top:12px; font-size:14px; line-height:1.75; }
 body .archive-page .archive-subs { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; padding:4px 3px 8px; scrollbar-width:thin; }
 body .archive-page .archive-subs__chip { flex-shrink:0; white-space:nowrap; border-radius:4px; }
 body .account-page .account-content .erphpdown-sc-table { min-width:0; width:100%; white-space:normal; }
 body .account-page .account-content .erphpdown-sc-table :is(tbody,tr,td) { min-width:0; max-width:100%; }
 body .account-page .account-content .erphpdown-sc-table input:not([type=radio]):not([type=checkbox]) { max-width:100%; }
 body .single-page .entry-header--center .entry-deck { font-size:16px; }
 body .archive-page .archive-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
 /* A two- or three-metric bar must not reserve empty grid tracks: balanced-grids.js
    then re-flows the row after first paint, which reads as a jump. Matching the
    track count to the metric count keeps the first paint equal to the settled row. */
 body .archive-page .archive-stats:has(> .archive-stats__item:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body .archive-page .archive-stats:has(> .archive-stats__item:nth-child(3):last-child) { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body .archive-page .archive-stats__item { width:auto; min-width:0; padding:12px 4px; }
 body .archive-page .archive-stats__item strong { font-size:16px; }
 body .archive-page .archive-stats__item span { font-size:10px; }
 .editorial-home .editorial-hero { display:block; padding:36px 0 30px; }
 .editorial-hero h1 { font-size:clamp(31px,9vw,40px); margin-bottom:20px; }
 .editorial-hero__intro { font-size:15px; line-height:1.9; margin-bottom:24px; }
 .editorial-feature { display:none; }
 .editorial-eyebrow { font-size:11px; margin-bottom:16px; }
 .editorial-home .scope-search { min-height:54px; }
 .editorial-home .scope-search__select { flex-basis:74px; width:74px; font-size:12px; padding-left:4px; }
 .editorial-home .scope-search__field { padding-inline:10px; font-size:16px; }
 .editorial-home .scope-search__submit { flex-basis:42px; width:42px; min-height:42px; }
 .editorial-quick { gap:8px 14px; font-size:11px; }
 .editorial-paths { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .editorial-paths > a { padding:18px 12px; }
 .editorial-paths > a:nth-child(odd) { border-left:0; }
 .editorial-paths > a:first-child { border-radius:8px 0 0; }
 .editorial-paths > a:nth-child(2) { border-radius:0 8px 0 0; }
 .editorial-paths > a:nth-child(3) { border-radius:0 0 0 8px; }
 .editorial-paths > a:last-child { border-radius:0 0 8px; }
 .editorial-paths > a:nth-child(n+3) { border-top:1px solid var(--dafa-border); }
 .editorial-paths strong { font-size:16px; }
 .editorial-paths__index { display:none; }
 .editorial-section { padding-top:34px; }
 .editorial-heading { gap:12px; padding-bottom:18px; }
 .editorial-heading h2 { font-size:22px; }
 .editorial-heading p { max-width:19em; font-size:12px; }
 .editorial-heading > a { font-size:12px; }
 .editorial-section--files .editorial-section__body:has(.editorial-ai) { display:block; padding-top:0; }
 .editorial-item { padding-block:20px; }
 .editorial-item h3 { font-size:17px; }
 .editorial-item__excerpt { font-size:14px; -webkit-line-clamp:2; }
 .editorial-ai { margin-top:20px; padding:24px; }
 .editorial-ai h3 { margin-top:18px; font-size:26px; }
 .editorial-section--news .editorial-items,.editorial-section--articles .editorial-items { display:block; }
 .editorial-section--news .editorial-item:first-child { padding:20px 16px; border:0; }
 .editorial-section--articles .editorial-item { padding-block:20px; }
 .editorial-section--articles .editorial-item + .editorial-item { border-top:1px solid var(--dafa-border); }
 .editorial-membership { display:block; margin:32px 0; padding:24px 16px; }
 .editorial-membership h2 { font-size:22px; }
 .editorial-membership > a { display:inline-block; margin-top:22px; }
 .single-page .entry-content { font-size:var(--dafa-content-font-mobile,16px); }
 body :is(.archive-page,.search-results-page,.single-page,.blog-page) .content-shell { padding-block:24px 40px; }
 .editorial-footer-utility ul { gap:12px 20px; }
 .editorial-footer-utility + .editorial-footer-details > summary { position:static; }
}
/* Editorial hierarchy and quiet archive controls. */
body .archive-page .news-filter-select__toggle { border-color:transparent; background:var(--dafa-bg); }
/* Center the text ink as well as its line box at the existing 13px/16px sizes. */
body .archive-page :is(.news-filter-select__label,.news-filter-select__value) { line-height:20px; }
body .archive-page .news-filter-select__label { transform:translateY(-.5px); }
body .archive-page .news-filter-select__value { transform:translateY(-1.5px); }
body .archive-page .news-filter-select__toggle:is(:hover,:focus-visible),
body .archive-page .news-filter-select.is-open .news-filter-select__toggle { border-color:var(--dafa-border); color:var(--dafa-accent-strong); }
body .archive-page .news-filter-actions__reset { border-color:transparent; background:transparent; color:var(--dafa-text-soft); font-weight:400; }
body .archive-page .news-filter-actions__reset:is(:hover,:focus-visible) { border-color:transparent; background:transparent; color:var(--dafa-accent-strong); text-decoration:underline; }
body .archive-page .entry-card__kicker { order:0; margin:0 0 6px; color:var(--dafa-text-soft); font-size:12px; font-weight:500; line-height:1.5; }
body.tax-blogs .archive-results .entry-card--news .entry-card__title { order:1; margin:0; font-weight:650; line-height:1.5; letter-spacing:-.02em; }
body.tax-blogs .archive-results .entry-card--news .entry-meta { order:4; }
body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__title { font-size:22px; }
body.tax-blogs .archive-page .news-day-heading { font-size:17px; font-weight:600; color:var(--dafa-text-soft); }
@media (max-width:767px) {
 body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__title { font-size:17px; }
 body .archive-page .entry-card__kicker { margin-bottom:4px; font-size:11px; }
}
/* News platforms and information types share the compact resource directory layout. */
.news-filter-form--directory { --news-filter-selected-text:color-mix(in srgb,var(--dafa-accent) 55%,var(--dafa-text-soft)); --news-filter-selected-border:color-mix(in srgb,var(--dafa-accent) 65%,var(--dafa-border)); }
.news-filter-directory { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:16px; align-items:start; }
.news-filter-directory+.news-filter-directory { margin-top:14px; }
.news-filter-directory__heading { display:flex; align-items:center; min-height:34px; color:var(--dafa-text); font-size:13px; font-weight:600; white-space:nowrap; }
.news-filter-directory__choices { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
.news-filter-directory .news-filter-chip { position:relative; display:inline-flex; align-items:center; gap:6px; max-width:100%; min-height:34px; margin:0; padding:6px 10px; border:1px solid var(--dafa-border); border-radius:6px; background:var(--dafa-surface); color:var(--dafa-text); font:inherit; font-size:13px; line-height:1.5; cursor:pointer; box-shadow:none; }
.news-filter-chip>input { position:absolute; width:1px; height:1px; padding:0; margin:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.news-filter-chip>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-filter-chip>small { flex-shrink:0; color:var(--dafa-text-soft); font-size:11px; font-weight:400; font-variant-numeric:tabular-nums; }
.news-filter-directory .news-filter-chip:is(:has(input:checked),[aria-pressed="true"]) { color:var(--news-filter-selected-text); border-color:var(--news-filter-selected-border); }
.news-filter-chip:has(input:checked)>small { color:inherit; }
.news-filter-directory .news-filter-chip:hover { border-color:var(--news-filter-selected-border); }
.news-filter-directory .news-filter-directory__expand { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px; margin:0; padding:6px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--dafa-text-soft); font:inherit; font-size:12px; line-height:1.5; white-space:nowrap; cursor:pointer; box-shadow:none; }
.news-filter-directory__expand:after { content:'+'; width:12px; font-size:17px; line-height:1; text-align:center; }
.news-filter-directory__expand[aria-expanded="true"]:after { content:'−'; }
.news-filter-directory .news-filter-directory__expand:hover { color:var(--dafa-text); background:var(--dafa-bg); }
.news-filter-directory :is(button:focus-visible,.news-filter-chip:has(input:focus-visible)) { outline:2px solid var(--dafa-accent); outline-offset:3px; }
.news-filter-directory [hidden] { display:none!important; }
.news-filter-form--directory>.news-filter-controls { margin-top:18px; padding-top:16px; border-top:1px solid var(--dafa-border); }
@media (max-width:640px) {
 .news-filter-directory { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
 .news-filter-directory__heading { grid-column:1; grid-row:1; }
 .news-filter-directory__choices { grid-column:1/-1; grid-row:2; }
 .news-filter-directory .news-filter-directory__expand { grid-column:2; grid-row:1; min-height:40px; }
 .news-filter-directory .news-filter-chip { min-height:40px; font-size:12px; padding:8px 10px; }
}
/* Compact archive headers; search and hot tags share the sidebar. */
body .archive-page .archive-hero { padding-block:24px; }
body .archive-page .archive-hero__inner { align-items:center; gap:32px; }
body .archive-page .archive-hero__intro { flex:1; }
body .archive-page .archive-description { margin-top:10px; }
body .archive-page .archive-description p { margin-block:0; }
body .archive-page .archive-tools .archive-hero__search { width:100%; max-width:none; margin:0; }
body .archive-page .archive-hero__search input:focus { border-color:var(--dafa-accent); }
body .archive-page .archive-tools .archive-subs { flex-wrap:wrap; justify-content:flex-start; overflow:visible; padding:0; }
body .archive-page .archive-tools .archive-subs__chip { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
/* Once the archive sidebar drops below the results it shares the full column.
   A wrapped flex row would stretch the short search card to the ranking card's
   height, leaving a large empty panel; keep every widget on its own row. */
@media (max-width:1023px) {
 body .archive-page .content-shell.has-sidebar > .sidebar > .widget { flex-basis:100%; }
}
@media (max-width:782px) {
 body .archive-page .archive-hero { padding-block:18px; }
 body .archive-page .archive-hero__inner { align-items:stretch; gap:14px; }
}
/* 768-782px only: the shared <=782 flex rule lets a four-metric bar wrap 3 + 1 and
   balanced-grids.js then re-flows it to 2 x 2 after first paint. Land on 2 x 2 first. */
@media (min-width:768px) and (max-width:782px) {
 body .archive-page .archive-stats:has(> .archive-stats__item:nth-child(4):last-child) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
 .editorial-home *,body .site-header,body .entry-card { transition:none; }
}

/* Channel tags are distinct from the site-wide tag cloud. */
.archive-tools.archive-tags > .widget-title { display:flex; align-items:center; gap:8px; }
.archive-tags__icon { display:block; flex:0 0 18px; color:var(--dafa-accent); }

/* Semantic sidebar heading icons; decorative and independent of title wording. */
.sidebar :is(.dafa-widget--download-ranking,.dafa-widget--blog-list) > .widget-title,
.sidebar .related-resources--sidebar > .related-resources__title { display:flex; align-items:flex-start; gap:8px; }
.sidebar :is(.dafa-widget--download-ranking,.dafa-widget--blog-list) > .widget-title::before,
.sidebar .related-resources--sidebar > .related-resources__title::before { content:""; display:block; flex:0 0 18px; width:18px; height:18px; margin-top:3px; background-color:var(--dafa-accent); -webkit-mask:var(--dafa-icon-download) center / contain no-repeat; mask:var(--dafa-icon-download) center / contain no-repeat; }
.sidebar .dafa-widget--blog-list > .widget-title::before { -webkit-mask-image:var(--dafa-icon-articles); mask-image:var(--dafa-icon-articles); }

/* Section heading icons: content groups and discussion, not article headlines. */
.editorial-heading #editorial-files::before,
.single-page .related-resources:not(.related-resources--sidebar) > .related-resources__title::before,
.editorial-heading #editorial-articles::before,
.editorial-heading #editorial-news::before,
.single-page .related-content__title::before,
.comments-area > .comments-title::before,
.comments-area .comment-reply-title::before { content:""; display:inline-block; width:20px; height:20px; margin-right:8px; vertical-align:-.12em; background-color:var(--dafa-accent); -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; }
.editorial-heading #editorial-files::before,
.single-page .related-resources:not(.related-resources--sidebar) > .related-resources__title::before { -webkit-mask-image:var(--dafa-icon-files); mask-image:var(--dafa-icon-files); }
.editorial-heading #editorial-articles::before { -webkit-mask-image:var(--dafa-icon-articles); mask-image:var(--dafa-icon-articles); }
.editorial-heading #editorial-news::before { -webkit-mask-image:var(--dafa-icon-news); mask-image:var(--dafa-icon-news); }
.single-page .related-content__title::before { -webkit-mask-image:var(--dafa-icon-layers); mask-image:var(--dafa-icon-layers); }
.comments-area > .comments-title::before,
.comments-area .comment-reply-title::before { -webkit-mask-image:var(--dafa-icon-comment); mask-image:var(--dafa-icon-comment); }

/* Supporting reading headings reuse the site's muted text palette. */
.sidebar .dafa-widget--download-ranking > .widget-title::before,
.sidebar .dafa-widget--blog-list > .widget-title::before,
.single-page .related-content__title::before,
.comments-area .comment-reply-title::before { background-color:var(--dafa-text-soft); }
body .reading-sidebar__heading > .dafa-icon:first-child { color:var(--dafa-text-soft); }

/* One quiet ranking surface, with explicit cumulative metrics. */
.sidebar .dafa-ranking [hidden] { display:none !important; }
.sidebar .dafa-ranking__tabs { display:flex; gap:4px; padding:3px; margin:0 0 10px; border-radius:6px; background:var(--dafa-bg); }
.sidebar .dafa-ranking__tabs button { flex:1; min-width:0; min-height:40px; padding:8px 10px; border:0; border-radius:4px; background:transparent; color:var(--dafa-text-soft); font:inherit; font-size:13px; line-height:1.5; cursor:pointer; box-shadow:none; }
.sidebar .dafa-ranking__tabs button[aria-selected="true"] { background:var(--dafa-surface-elevated); color:var(--dafa-text); font-weight:600; }
.sidebar .dafa-ranking__tabs button:hover { color:var(--dafa-text); }
.sidebar .dafa-ranking__scope { margin:0 0 16px; color:var(--dafa-text-soft); font-size:11px; line-height:1.7; }
.sidebar .dafa-ranking__fallback-title { margin:16px 0 12px; font-size:14px; }
.sidebar .dafa-ranking [role="tabpanel"]:focus-visible { outline:2px solid var(--dafa-accent); outline-offset:4px; }

/* Match the enhanced ranking geometry from first paint; no-JS retains all lists. */
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) { display:grid; grid-template-columns:minmax(0,1fr); }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) > .dafa-ranking__tabs { display:flex !important; grid-area:1 / 1; }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) > .dafa-ranking__scope { grid-area:2 / 1; }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) > [data-ranking-panel] { grid-area:3 / 1; min-width:0; align-self:start; }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) > [data-ranking-panel] ~ [data-ranking-panel] { visibility:hidden; pointer-events:none; }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) .dafa-ranking__fallback-title { display:none; }
html.dafa-js .sidebar .dafa-ranking:not([data-ranking-ready]) .dafa-ranking__tabs button:first-child { background:var(--dafa-surface-elevated); color:var(--dafa-text); font-weight:600; }

/* Reserve every row before its markup and images arrive; keep the same floor after loading. */
body .archive-results[data-dafa-archive-view="list"] .entry-grid {
 --dafa-list-row-min-height:192px;
 /* Keep streamed rows at natural height inside the reserved full-page space. */
 align-content:start;
 min-block-size:calc(var(--dafa-list-row-count,0) * var(--dafa-list-row-min-height));
}
body .archive-results[data-dafa-archive-view="list"] .entry-card { min-block-size:var(--dafa-list-row-min-height); }
@media (max-width:767px) {
 body .archive-results[data-dafa-archive-view="list"] .entry-grid { --dafa-list-row-min-height:144px; }
}

/* Archive list placeholders inherit each real item's responsive dimensions. */
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card > * { visibility:hidden; }
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card__body { position:relative; }
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) :is(.entry-card__body,.entry-card__media)::after {
 content:""; position:absolute; inset:0; visibility:visible; pointer-events:none; border-radius:4px;
 animation:dafa-list-skeleton-pulse 1.4s ease-in-out infinite;
}
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card__media::after { background:var(--dafa-surface-muted); }
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card__body::after {
 background:
  linear-gradient(var(--dafa-surface-muted),var(--dafa-surface-muted)) 0 4px / 74% 18px no-repeat,
  linear-gradient(var(--dafa-surface-muted),var(--dafa-surface-muted)) 0 40% / 94% 12px no-repeat,
  linear-gradient(var(--dafa-surface-muted),var(--dafa-surface-muted)) 0 65% / 82% 12px no-repeat,
  linear-gradient(var(--dafa-surface-muted),var(--dafa-surface-muted)) 0 95% / 38% 10px no-repeat;
}
@keyframes dafa-list-skeleton-pulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@media (prefers-reduced-motion:reduce) {
 html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) :is(.entry-card__body,.entry-card__media)::after { animation:none; }
}

/* A card's metadata follows its title and excerpt; reveal it while later rows stream. */
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card:has(.entry-meta) > * { visibility:visible; }
html.dafa-js:not(.dafa-loading-fallback) .archive-results[data-dafa-archive-view="list"]:not([data-dafa-archive-ready]) .entry-card:has(.entry-meta) :is(.entry-card__body,.entry-card__media)::after { content:none; animation:none; }

/* Keep both tab panels in one grid cell so switching never changes block height.
   Hidden panels still size the grid, but visibility removes focus and hit targets. */
.sidebar .dafa-ranking[data-ranking-ready="1"] { display:grid; grid-template-columns:minmax(0,1fr); }
.sidebar .dafa-ranking[data-ranking-ready="1"] > .dafa-ranking__tabs { grid-area:1 / 1; }
.sidebar .dafa-ranking[data-ranking-ready="1"] > .dafa-ranking__scope { grid-area:2 / 1; }
.sidebar .dafa-ranking[data-ranking-ready="1"] > [data-ranking-panel] { grid-area:3 / 1; min-width:0; align-self:start; }
.sidebar .dafa-ranking[data-ranking-ready="1"] > [data-ranking-panel][hidden] { display:block !important; visibility:hidden; pointer-events:none; }

/* Homepage polish: quiet brand, useful metadata and natural mobile sizing. */
body .site-header .dafa-brand-svg__copy { animation:none; }
.editorial-mobile-brand, .editorial-ai__mobile-title { display:none; }
.editorial-item--feature-copy { display:none; }
.editorial-item__category { color:var(--dafa-accent); font-weight:600; }
.editorial-item__source { min-width:0; overflow-wrap:anywhere; }
.editorial-section--news .editorial-item__image { width:100%; aspect-ratio:auto; height:clamp(160px,18vw,240px); }
@media (max-width:767px) {
 .editorial-paths > a { position:relative; }
 .editorial-paths > a > span:nth-child(2) { flex:1; min-width:0; }
 .editorial-paths strong { padding-right:20px; }
 .editorial-paths__arrow { position:absolute; top:18px; right:12px; }
 .editorial-mobile-brand, .editorial-ai__mobile-title { display:inline; }
 .editorial-item--feature-copy { display:block; }
 .editorial-item--desktop-extra, .editorial-ai__desktop-title { display:none; }
 .editorial-section--files .editorial-item:has(+ .editorial-item--desktop-extra) { border-bottom:0; }
 .editorial-ai { padding:20px; }
 .editorial-ai > .editorial-eyebrow { margin-bottom:10px; }
 .editorial-ai h3 { margin:0 0 14px; font-size:20px; line-height:1.5; }
 .editorial-ai > p, .editorial-ai .editorial-ai__example { display:none; }
 .editorial-ai button.editorial-ai__open { min-height:44px; padding:10px 16px; }
 .editorial-ai small { margin-top:10px; }
 .editorial-section--news .editorial-item__image { height:160px; }
}

/* Footer appearance dropup; the original radios remain the no-script fallback. */
body .site-footer .has-appearance-picker > .mobile-color-mode__label { display:none; }
body .site-footer .footer-appearance { position:relative; }
body .site-footer .footer-appearance__trigger { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 10px; border:1px solid transparent; border-radius:6px; color:var(--dafa-text-soft); background:var(--dafa-surface); font-size:12px; line-height:1.5; list-style:none; cursor:pointer; user-select:none; }
body .site-footer .footer-appearance__trigger::-webkit-details-marker { display:none; }
body .site-footer .footer-appearance__trigger:hover,
body .site-footer .footer-appearance[open] > summary { color:var(--dafa-text); background:var(--dafa-surface-muted); }
body .site-footer .footer-appearance__icon { display:inline-flex; }
body .site-footer .footer-appearance__trigger svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
body .site-footer .footer-appearance[open] .footer-appearance__chevron { transform:rotate(180deg); }
body .site-footer .footer-appearance > .mobile-color-mode__options { position:absolute; z-index:20; inset-block-end:calc(100% + 8px); inset-inline-start:auto; inset-inline-end:0; display:flex; flex-direction:column; width:168px; gap:2px; padding:5px; border:1px solid var(--dafa-border); border-radius:9px; background:var(--dafa-surface); box-shadow:0 8px 28px rgb(0 0 0 / 14%); }
body .site-footer .footer-appearance:not([open]) > .mobile-color-mode__options { display:none; }
body .site-footer .footer-appearance .mobile-color-mode__option { width:100%; min-height:36px; justify-content:flex-start; gap:9px; padding:0 10px; border:0; border-radius:5px; color:var(--dafa-text-soft); font-size:13px; font-weight:400; }
body .site-footer .footer-appearance .mobile-color-mode__option svg { width:15px; height:15px; }
body .site-footer .footer-appearance .mobile-color-mode__option[aria-checked="true"] { color:var(--dafa-text); background:var(--dafa-surface-muted); font-weight:600; }
body .site-footer .footer-appearance .mobile-color-mode__option[aria-checked="true"]::after { content:""; width:8px; height:4px; margin-inline-start:auto; border-inline-start:1.5px solid currentColor; border-block-end:1.5px solid currentColor; transform:rotate(-45deg); }
body .site-footer .footer-appearance .mobile-color-mode__option:focus-visible { outline:2px solid var(--dafa-accent); outline-offset:-2px; text-decoration:none; }

/* Footer disclosure: compact reading columns with consistent paragraph rhythm. */
body .site-footer .editorial-footer-details[open] .footer-widgets { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr); gap:28px; margin-bottom:0; padding:22px 0 8px; }
body .site-footer .footer-widgets > .widget { min-width:0; color:var(--dafa-text-soft); font-size:13px; line-height:1.85; }
body .site-footer .footer-widgets .widget-title { margin:0 0 12px; color:var(--dafa-text); font-size:14px; font-weight:650; line-height:1.5; letter-spacing:0; }
body .site-footer .footer-widgets .wp-widget-group__inner-blocks { display:grid; gap:10px; margin:0; }
body .site-footer .footer-widgets .wp-block-group { margin:0; }
body .site-footer .footer-widgets p { margin:0; font-size:inherit; line-height:inherit; overflow-wrap:break-word; }
body .site-footer .footer-widgets p:not(.wp-block-tag-cloud) a { display:inline-block; margin-top:6px; color:var(--dafa-text); font-size:12px; font-weight:550; text-decoration:none; }
body .site-footer .footer-widgets p:not(.wp-block-tag-cloud) a:is(:hover,:focus-visible) { color:var(--dafa-accent); text-decoration:underline; text-underline-offset:3px; }
body .site-footer .footer-widgets .wp-block-tag-cloud { display:flex; flex-wrap:wrap; align-content:flex-start; gap:7px; }
body .site-footer .footer-widgets .wp-block-tag-cloud a { display:inline-flex; align-items:center; gap:4px; margin:0; padding:5px 8px; border:1px solid var(--dafa-border); border-radius:5px; color:var(--dafa-text-soft); font-size:12px !important; line-height:1.5; text-decoration:none; }
body .site-footer .footer-widgets .tag-link-count { color:var(--dafa-text-soft); font-size:11px; }
body .site-footer .footer-widgets .wp-block-tag-cloud a:is(:hover,:focus-visible) { border-color:var(--dafa-accent); color:var(--dafa-accent); background:var(--dafa-surface-muted); }
@media (max-width:1023px) {
 body .site-footer .editorial-footer-details[open] .footer-widgets { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px; }
}
@media (max-width:640px) {
 body .site-footer .editorial-footer-details[open] .footer-widgets { grid-template-columns:minmax(0,1fr); gap:20px; padding-top:20px; }
 body .site-footer .footer-widgets > .widget { font-size:14px; line-height:1.8; }
 body .site-footer .footer-widgets > .widget + .widget { padding-top:18px; border-top:1px solid var(--dafa-border); }
 body .site-footer .footer-widgets .widget-title { margin-bottom:10px; }
}

/* The selected tag remains within the current archive. */
.archive-tags .archive-subs__chip:is([aria-current="true"],.is-current) { color:color-mix(in srgb,var(--dafa-accent) 55%,var(--dafa-text-soft)); border-color:color-mix(in srgb,var(--dafa-accent) 65%,var(--dafa-border)); background:transparent; font-weight:inherit; }
.archive-tags .archive-subs__chip:is([aria-current="true"],.is-current) span { color:inherit; }

/* Count the complete current result set alongside pagination controls. */
.pagination-total { flex:0 0 auto; color:var(--dafa-text-soft); font-size:14px; line-height:1.5; white-space:nowrap; font-variant-numeric:tabular-nums; }

/* Fit the full desktop pagination row before falling back to stacked controls. */
.pagination-shell.dafa-pagination--compact { --dafa-pagination-control-size:36px; --dafa-pagination-control-gap:6px; --dafa-pagination-control-padding:8px; --dafa-pagination-font-size:14px; --dafa-pagination-jump-width:54px; column-gap:12px; }
.dafa-pagination--compact :is(.pagination-total,.pagination-jump) { font-size:13px; }
.dafa-pagination--compact .pagination-jump__submit { padding-inline:8px; }

/* Compact AI action disclosure; existing article actions keep their contracts. */
.single-page .entry-ai-menu { position:relative; flex:0 0 auto; }
.single-page .entry-ai-menu__trigger { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border:0; border-radius:6px; color:var(--dafa-accent); background:transparent; font-size:14px; line-height:1.5; list-style:none; cursor:pointer; }
.single-page .entry-ai-menu__trigger::-webkit-details-marker { display:none; }
.single-page .entry-ai-menu__trigger::marker { content:""; }
.single-page .entry-ai-menu__trigger .dafa-ai-icon { width:16px; height:16px; }
.single-page .entry-ai-menu__chevron { width:14px; height:14px; color:var(--dafa-text-soft); }
.single-page .entry-ai-menu[open] > .entry-ai-menu__trigger, .single-page .entry-ai-menu__trigger:hover { background:var(--dafa-accent-soft); }
.single-page .entry-ai-menu[open] .entry-ai-menu__chevron { transform:rotate(180deg); }
.single-page .entry-ai-menu__trigger:focus-visible, .single-page .entry-ai-menu .entry-ai-menu__item:focus-visible { outline:2px solid var(--dafa-accent); outline-offset:2px; }
.single-page .entry-ai-menu__panel { position:absolute; z-index:30; top:calc(100% + 6px); left:0; width:260px; max-width:calc(100vw - 48px); padding:6px; border:1px solid var(--dafa-border); border-radius:10px; background:var(--dafa-surface); box-shadow:0 8px 24px rgb(0 0 0 / .09); }
.single-page .entry-ai-menu:not([open]) > .entry-ai-menu__panel { display:none; }
.single-page .entry-ai-menu.is-above > .entry-ai-menu__panel { top:auto; bottom:calc(100% + 6px); }
.single-page .entry-ai-menu .entry-ai-menu__item { display:flex; flex-direction:column; align-items:flex-start; gap:3px; width:100%; min-height:64px; margin:0; padding:10px 12px; border:0; border-radius:6px; background:transparent; color:var(--dafa-text); text-align:left; white-space:normal; cursor:pointer; }
.single-page .entry-ai-menu .entry-ai-menu__item:hover, .single-page .entry-ai-menu .entry-ai-menu__item:focus-visible { background:var(--dafa-accent-soft); color:var(--dafa-text); }
.single-page .entry-ai-menu__label { font-size:14px; font-weight:600; line-height:1.5; }
.single-page .entry-ai-menu__description { color:var(--dafa-text-soft); font-size:12px; line-height:1.5; }

/* Homepage introduction: stronger type, one restrained brand accent. */
.editorial-home .editorial-hero { column-gap:clamp(32px,4.5vw,72px); padding-top:clamp(40px,5vw,72px); }
.editorial-home .editorial-hero__copy { min-width:0; }
.editorial-home .editorial-hero h1 { font-size:clamp(42px,4.8vw,68px); line-height:1.3; letter-spacing:-.045em; font-weight:800; margin-bottom:32px; }
.editorial-title-accent { display:inline-block; position:relative; color:var(--dafa-accent); white-space:nowrap; }
.editorial-title-accent::after { content:""; position:absolute; left:0; right:0; bottom:-.055em; height:.09em; border-top:1.5px solid currentColor; border-radius:50%; opacity:.65; pointer-events:none; }
.editorial-home .editorial-hero__intro { font-size:17px; line-height:1.95; margin-bottom:28px; }
.editorial-home .editorial-hero .scope-search { box-shadow:none; min-height:60px; }
@media(max-width:767px) {
 .editorial-home .editorial-hero { padding-top:32px; }
 .editorial-home .editorial-hero h1 { font-size:clamp(31px,9.8vw,48px); line-height:1.32; margin-bottom:24px; }
 .editorial-home .editorial-hero__intro { font-size:15px; line-height:1.85; margin-bottom:24px; }
 .editorial-home .editorial-hero .scope-search { min-height:54px; }
}

/* Card metadata shares one wrapping row, keeping category, platform and facts aligned. */
.entry-meta > .entry-meta__kicker { display:none; }
.entry-card .entry-meta > .entry-meta__platform { min-width:0; max-width:100%; overflow-wrap:anywhere; }
body.tax-blogs .archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-card__body:has(> .entry-card__kicker) { row-gap:8px; }
body.tax-blogs .archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-card__body > .entry-card__kicker { display:none; }
body.tax-blogs .archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-card__body > .entry-meta { margin:0; padding:0; font-size:12px; line-height:20px; gap:4px 10px; }
body.tax-blogs .archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-meta > * { line-height:inherit; }
body.tax-blogs .archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-meta > .entry-meta__kicker { display:inline-flex; font-weight:400; }

/* News platform identity: compact icons in cards, readable names in lists. */
.entry-card--news .entry-meta__platform--icon { position:relative; gap:5px; }
.entry-card--news .entry-meta__platform-icon { display:block; flex:none; width:20px; height:20px; object-fit:contain; }
.entry-card--news .entry-meta__platform--icon:focus-visible { outline:2px solid var(--dafa-accent-strong); outline-offset:3px; border-radius:3px; }
.archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-meta__platform--icon .entry-meta__platform-label { display:none; }
.archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-meta__platform--icon::after { content:attr(data-platform-name); position:absolute; z-index:2; inset-inline-start:0; bottom:calc(100% + 7px); width:max-content; max-width:220px; padding:5px 8px; border-radius:4px; background:var(--dafa-text); color:var(--dafa-surface); font-size:12px; font-weight:400; line-height:1.5; white-space:normal; pointer-events:none; opacity:0; visibility:hidden; transform:translateY(3px); transition:opacity 140ms ease,transform 140ms ease,visibility 140ms ease; }
.archive-results[data-dafa-archive-view="grid"] .entry-card--news .entry-meta__platform--icon:is(:hover,:focus)::after { opacity:1; visibility:visible; transform:none; }
@media (prefers-reduced-motion:reduce) { .entry-card--news .entry-meta__platform--icon::after { transition:none; } }

/* News metadata links retain the quiet row styling and expose clear interaction. */
.entry-card .entry-card__category-link,.entry-card a.entry-meta__platform { color:inherit; text-decoration:none; }
.entry-card .entry-card__category-link:hover,.entry-card a.entry-meta__platform:hover { color:var(--dafa-accent-strong); }
.entry-card .entry-card__category-link:hover,.entry-card a.entry-meta__platform:hover .entry-meta__platform-label { text-decoration:underline; text-underline-offset:3px; }
.entry-card .entry-card__category-link:focus-visible { outline:2px solid var(--dafa-accent-strong); outline-offset:3px; border-radius:2px; }

/* Keep the pointer path continuous between the AI trigger and its panel. */
.single-page .entry-ai-menu__panel::before { content:""; position:absolute; left:0; right:0; top:-7px; height:7px; }
.single-page .entry-ai-menu.is-above > .entry-ai-menu__panel::before { top:auto; bottom:-7px; }
@media (prefers-reduced-motion:no-preference) {
 .single-page .entry-ai-menu__trigger,.single-page .entry-ai-menu__chevron { transition:background-color 160ms ease,transform 160ms ease; }
 .single-page .entry-ai-menu[open] > .entry-ai-menu__panel { animation:dafa-ai-menu-reveal 140ms ease-out; }
}
@keyframes dafa-ai-menu-reveal { from { opacity:0; } to { opacity:1; } }

/* Keep homepage lists light, with space around titles and metadata. */
.editorial-home .discovery-latest[data-latest] > .editorial-items > .editorial-item { padding-block:28px; }
.editorial-home .discovery-latest[data-latest] .editorial-item h3 { margin-bottom:0; }
@media (max-width:767px) {
 .editorial-home .discovery-latest[data-latest] > .editorial-items > .editorial-item { padding-block:24px; }
}

/* Mobile footer groups; preserve the original desktop layout. */
@media (max-width:767px) {
body .site-footer { padding-block:20px 24px; }
body .site-footer .editorial-footer-information { display:block; margin-bottom:12px; }
body .site-footer .editorial-footer-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 0; }
body .site-footer .editorial-footer-links > .editorial-footer-utility,
body .site-footer .editorial-footer-links > .editorial-footer-utility > ul,
body .site-footer .editorial-footer-links > .editorial-footer-details { display:contents; }
body .site-footer .editorial-footer-utility ul { margin:0; padding:0; }
body .site-footer .editorial-footer-utility li { display:flex; min-width:0; list-style:none; }
body .site-footer .editorial-footer-utility a { display:inline-flex; align-items:center; min-height:44px; }
body .site-footer .editorial-footer-details > summary { position:static; min-height:44px; min-inline-size:44px; padding:0; text-align:left; }
body .site-footer .footer-details__label-extra { display:none; }
body .site-footer .editorial-footer-details[open] { min-width:0; }
body .site-footer .editorial-footer-details[open] > .footer-widgets { flex-basis:100%; width:100%; margin-top:4px; }
body .site-footer .footer-row { margin-top:4px; padding-top:8px; flex-direction:row; align-items:center; justify-content:flex-start; gap:12px; }
body .site-footer .footer-nav { min-width:0; max-width:100%; gap:6px 12px; }
body .site-footer .copyright { flex:0 1 100%; min-width:0; width:100%; margin:0; justify-content:space-between; gap:6px 24px; text-align:left; }
body .site-footer .copyright p { max-width:100%; overflow-wrap:break-word; }
body .site-footer .footer-visitors { justify-content:flex-start; }
body .site-footer .footer-nav > :is(a,button) { min-height:44px; min-inline-size:44px; justify-content:center; }
body .site-footer .footer-appearance__trigger { min-height:44px; padding-inline:0; }
body .site-footer .footer-appearance .mobile-color-mode__option { min-height:44px; }
body .site-footer .mobile-color-mode { flex:0 0 auto; margin-inline-start:auto; margin-inline-end:0; }
body .site-footer .footer-appearance > .mobile-color-mode__options { inset-inline-start:auto; inset-inline-end:0; }
}

/* On tablets, group the information links and keep "更多" at the far right. */
@media (min-width:600px) and (max-width:767px) {
 body .site-footer .editorial-footer-links { justify-content:flex-start; gap:4px 24px; }
 body .site-footer .editorial-footer-details > summary { margin-inline-start:auto; }
}

/* On narrow phones, use balanced three-per-row information links.
   Flex items keep the expanded panel on its own full-width line. */
@media (max-width:374px) {
 body .site-footer .editorial-footer-links { display:flex; flex-wrap:wrap; align-items:center; column-gap:8px; row-gap:4px; }
 body .site-footer .editorial-footer-utility li { flex:0 0 calc((100% - 16px) / 3); }
 body .site-footer .editorial-footer-details > summary { flex:0 0 calc((100% - 16px) / 3); margin:0; justify-content:flex-start; }
 body .site-footer .footer-nav { column-gap:6px; }
 body .site-footer .footer-row { column-gap:8px; row-gap:8px; }
 body .site-footer .footer-appearance__state { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
}

/* Keep the appearance control beside the quick links on phones below 390px. */
@media (min-width:375px) and (max-width:389px) {
 body .site-footer .footer-row { column-gap:8px; }
 body .site-footer .footer-nav { column-gap:6px; }
}
@media (max-width:354px) {
 body .site-footer .footer-appearance__trigger { gap:6px; }
 body .site-footer .footer-appearance__trigger svg { width:12px; height:12px; }
}

/* The floating control hides before the footer reaches it, so the footer keeps
   its natural full-width alignment at every viewport instead of reserving a
   permanently empty right-hand lane. */

/* Keep wrapped footer statistics at the start of their own row. */
@media (min-width:768px) and (max-width:899px) {
 body .site-footer .copyright { flex-basis:100%; min-width:0; margin:0; justify-content:space-between; text-align:left; }
 body .site-footer .footer-visitors { justify-content:flex-start; }
}

/* Refresh news filter delivery after stale edge cache: 2026-09-30. */

/* Native wrapping places overflow chips on fully clipped rows from first paint. */
.dafa-js [data-news-filter-stable] .news-filter-directory__choices {flex-wrap:wrap;max-height:34px;overflow:clip}
[data-news-filter-stable] .news-filter-chip {flex-shrink:0;height:34px;box-sizing:border-box}
[data-news-filter-stable] .news-filter-directory__expand {inline-size:10.5em}
[data-news-filter-stable] [data-news-selected-count]:not([data-news-selected-count="0"]):before {content:'已选' attr(data-news-selected-count);order:1;color:var(--news-filter-selected-text);font-size:11px}
[data-news-filter-stable] .news-filter-directory__expand:after {order:2}
.dafa-js [data-news-filter-stable] .news-filter-directory:has([data-news-directory-expand][aria-expanded=true]) .news-filter-directory__choices {max-height:none;overflow:visible}
/* Keep existing sidebar proportions while the document is still streaming. */
body.tax-blogs.term-news .content-shell.has-sidebar:not(:has(> .sidebar)):after {content:'';min-width:min(100%,19.375rem);flex:1 1 19.375rem}
/* Reserve list thumbnails before lazy images load or fail. */
[data-news-filter-stable] ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media {position:relative;aspect-ratio:16/10}
[data-news-filter-stable] ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media img {position:absolute;inset:0;width:100%;height:100%}
@media(max-width:640px) {
 [data-news-filter-stable] ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media {aspect-ratio:4/3}
}
/* No JavaScript, or failed initialization: expose the complete native form. */
html:not(.dafa-js) [data-news-filter-stable] [data-news-directory-expand],.dafa-loading-fallback [data-news-filter-stable] .news-filter-directory:not([data-news-directory-ready]) [data-news-directory-expand] {display:none}
.dafa-loading-fallback [data-news-filter-stable] .news-filter-directory:not([data-news-directory-ready]) .news-filter-directory__choices {flex-wrap:wrap;max-height:none;overflow:visible}
.dafa-loading-fallback [data-news-filter-stable] .news-filter-directory:not([data-news-directory-ready]) .news-filter-chip {display:inline-flex}
@media(max-width:640px) {
 .dafa-js [data-news-filter-stable] .news-filter-directory__choices {max-height:40px}
 [data-news-filter-stable] .news-filter-chip {height:40px}
 .dafa-js [data-news-filter-stable] .news-filter-directory:has([data-news-directory-expand][aria-expanded=true]) .news-filter-directory__choices,
 .dafa-loading-fallback [data-news-filter-stable] .news-filter-directory:not([data-news-directory-ready]) .news-filter-directory__choices {max-height:none}
}

/* Back-to-top: a compact control that expands its label on desktop hover or
   keyboard focus. It yields to the footer instead of covering its links. */
body .dafa-back-to-top {
 box-sizing:border-box;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:0;
 width:44px;
 min-width:44px;
 height:44px;
 padding:0;
 border-radius:999px;
 font-size:13px;
 font-weight:600;
 line-height:1;
 white-space:nowrap;
 overflow:hidden;
 transition:width .18s ease, gap .18s ease, padding .18s ease;
}
body .dafa-back-to-top svg { flex:0 0 auto; width:18px; height:18px; }
body .dafa-back-to-top__label {
 display:inline;
 max-width:0;
 overflow:hidden;
 opacity:0;
 transition:max-width .18s ease, opacity .12s ease;
}
body .dafa-back-to-top.is-footer-visible {
 opacity:0;
 visibility:hidden;
 pointer-events:none;
 transform:translateY(6px);
}
/* Compact viewports do not get a floating control. The footer keeps a quiet
   text entry with a full 44px touch target and no filled button treatment. */
body .site-footer .dafa-footer-back-to-top {
 display:none;
 align-items:center;
 gap:4px;
 min-width:44px;
 min-height:44px;
 margin:0 0 0 auto;
 padding:0 0 0 4px;
 border:0;
 border-radius:4px;
 background:transparent;
 box-shadow:none;
 color:var(--dafa-text-soft);
 font:inherit;
 font-size:12px;
 font-weight:500;
 line-height:1.4;
 letter-spacing:0;
 white-space:nowrap;
 cursor:pointer;
}
body .site-footer .dafa-footer-back-to-top svg { width:15px; height:15px; flex:none; opacity:.72; }
body .site-footer .dafa-footer-back-to-top:is(:hover,:focus-visible) { background:transparent; color:var(--dafa-accent); }
body .site-footer .dafa-footer-back-to-top:hover svg { transform:translateY(-1px); }
body .site-footer .dafa-footer-back-to-top:active { transform:none; }
body .site-footer .dafa-footer-back-to-top:focus-visible { outline:2px solid var(--dafa-accent); outline-offset:2px; }
@media (prefers-reduced-motion:no-preference) {
 body .site-footer .dafa-footer-back-to-top svg { transition:transform .16s ease; }
}
@media (max-width:1023px) {
 body .dafa-back-to-top { display:none; }
 body .site-footer .dafa-footer-back-to-top { display:inline-flex; }
 body .site-footer .copyright { justify-content:flex-start; column-gap:12px; }
}
@media (max-width:370px) {
 body .site-footer .copyright .footer-visitors { order:1; }
 body .site-footer .copyright .dafa-footer-back-to-top { order:2; }
 body .site-footer .copyright p { order:3; }
}
@media (min-width:1024px) {
 body .dafa-back-to-top { right:24px; bottom:88px; }
}
@media (min-width:1024px) and (hover:hover) and (pointer:fine) {
 body .dafa-back-to-top:hover,
 body .dafa-back-to-top:focus-visible {
  gap:7px;
  width:107px;
  padding:0 14px;
 }
 body .dafa-back-to-top:hover .dafa-back-to-top__label,
 body .dafa-back-to-top:focus-visible .dafa-back-to-top__label {
  max-width:78px;
  opacity:1;
 }
}

/* Lighter visual weight: the control stays a quiet icon button. Hover and
   keyboard focus only shift the border and text toward the accent colour, so
   it never fills with a heavy brand block or lifts off the page. */
body .dafa-back-to-top {
 background:var(--dafa-surface);
 box-shadow:0 1px 2px rgb(23 32 51 / 0.06);
 color:var(--dafa-text-soft);
 font-weight:500;
}
body .dafa-back-to-top svg {
 opacity:.8;
 transition:opacity .16s ease;
}
body .dafa-back-to-top:hover,
body .dafa-back-to-top:focus-visible {
 background:var(--dafa-surface);
 border-color:var(--dafa-accent);
 color:var(--dafa-accent);
 box-shadow:0 2px 8px rgb(23 32 51 / 0.08);
}
body .dafa-back-to-top:hover { transform:none; }
body .dafa-back-to-top:hover svg,
body .dafa-back-to-top:focus-visible svg { opacity:1; }
body .dafa-back-to-top:focus-visible {
 outline:2px solid var(--dafa-accent);
 outline-color:color-mix(in srgb, var(--dafa-accent) 45%, transparent);
 outline-offset:2px;
}

/* Mobile archive introductions keep every title, description, and metric while
   using a denser type and spacing rhythm before the result controls. */
@media (max-width:782px) {
 body .archive-page .archive-hero { padding-block:12px; }
 body .archive-page .archive-hero__inner { gap:10px; }
 body .archive-page :is(.archive-title,.archive-hero h1) { font-size:28px; line-height:1.2; }
 body .archive-page .archive-description { margin-top:6px; font-size:13px; line-height:1.55; }
 body .archive-page .archive-description[data-collapsible="true"][data-expanded="false"] { max-height:3.1em; }
 body .archive-page .archive-description-toggle { font-size:15px; }
 body .archive-page .archive-stats { gap:0; }
 body .archive-page .archive-stats__item { gap:5px; padding:7px 4px; }
 body .archive-page .archive-stats__item strong { font-size:clamp(17px,4.4vw,20px); line-height:1.15; }
 body .archive-page .archive-stats__item span { font-size:11px; line-height:1.5; }
 body .archive-page .archive-stats__item + .archive-stats__item::before { height:22px; }
 body .archive-page .archive-stats:has(> .archive-stats__item:nth-child(4)) strong { font-size:clamp(14px,3.6vw,18px); }
}

/* Phone footer: centered groups wrap only when their content needs more room. */
@media (max-width:767px) {
 body .site-footer { padding-block:16px 12px; }
 body .site-footer .editorial-footer-information { margin-bottom:6px; }
 body .site-footer .editorial-footer-links { justify-content:center; gap:0 24px; }
 body .site-footer .editorial-footer-utility li,
 body .site-footer .editorial-footer-details > summary { flex:0 0 auto; margin:0; justify-content:center; }
 body .site-footer .editorial-footer-utility a { width:100%; justify-content:center; }
 body .site-footer .footer-row { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:center; gap:2px 16px; }
 body .site-footer .footer-nav { display:flex; flex-wrap:wrap; justify-content:center; width:auto; gap:4px 16px; }
 body .site-footer .footer-nav > :is(a,button) { justify-content:center; white-space:nowrap; }
 body .site-footer .copyright { flex:1 1 auto; width:auto; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 12px; text-align:center; }
 body .site-footer .copyright .footer-visitors { order:1; align-items:center; justify-content:center; min-height:44px; }
 body .site-footer .copyright p { order:2; margin:0; text-wrap:balance; }
 body .site-footer .copyright p a { display:inline-block; white-space:nowrap; }
 body .site-footer .copyright .dafa-footer-back-to-top { order:3; margin:0; padding-inline:8px; }
}
