/* assets/css/shared-content-meta.css */
/* Shared styles in their original enqueue order. Sources remain independently maintained. */

/* Source: footer-visitors.css */
.site-footer .copyright {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-footer .footer-visitors {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  color: var(--dafa-text-soft);
  font-size: 12px;
  line-height: 1.7;
}
.footer-visitors__metric { white-space: nowrap; }
.footer-visitors strong { display: inline-block; min-inline-size: 1.5em; margin-inline-start: 4px; font-weight: inherit; font-variant-numeric: tabular-nums; }
.footer-visitors [data-visitor-count="today"] { min-inline-size: 2em; }
.footer-visitors__separator { opacity: .65; }
@media (max-width: 360px) {
  .site-footer .footer-visitors { gap: 2px 8px; }
  .footer-visitors__separator { display: none; }
}


/* Source: content-parameters.css */
.entry--single .entry-title,.dafa-home-promotion h3{color:var(--dafa-title-color,inherit)}
.entry-card__title{color:var(--dafa-title-color,var(--dafa-text));transition:color .18s}
.entry-card__title a,.entry-card:hover .entry-card__title a{color:inherit;transition:none}
.entry-card:hover .entry-card__title{color:var(--dafa-accent-strong)}
.entry-card.entry-card--special,.archive-results .entry-grid .entry-card.entry-card--special{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:0;padding:0;position:relative;isolation:isolate;min-height:300px;overflow:hidden;background:#182333;color:#fff}
.entry-card--special .entry-card__media{position:absolute;inset:0;height:100%;width:100%;z-index:-2}
.entry-card--special .entry-card__media img{height:100%;width:100%;object-fit:cover}
.entry-card--special:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,17,29,.28),rgba(8,17,29,.96));z-index:-1;pointer-events:none}
.entry-card.entry-card--special>.entry-card__body,.archive-results .entry-card.entry-card--special>.entry-card__body{flex:0 0 auto;min-height:0;width:100%;margin-top:auto;padding:20px;background:transparent;color:#fff}
.entry-card--special .entry-card__title{color:var(--dafa-title-color,#fff)}
.entry-card--special .entry-card__excerpt,.entry-card--special .entry-meta,.entry-card--special .entry-meta a{color:#fff}
.entry-title__badge{display:inline-block;position:static;max-width:100%;margin-inline-end:.35em;padding:1px 7px;border:0;border-radius:4px;background:color-mix(in srgb,var(--dafa-badge-color,var(--dafa-accent)) 16%,var(--dafa-surface));color:var(--dafa-text);font-size:12px;font-weight:650;line-height:1.5;letter-spacing:0;vertical-align:middle;transform:translateY(-.2em);overflow-wrap:anywhere}
.entry--single .entry-title__badge{padding:2px 8px;border:0;font-size:14px;vertical-align:middle;transform:translateY(-.25em)}
.entry-notice.entry-notice--modown{max-width:80%;margin:0 auto 20px;padding:0;border:0;border-radius:0;background:transparent;text-align:center;font-size:13px;line-height:1.7}
.entry-notice__inner{display:inline-flex;align-items:flex-start;gap:7px;max-width:100%;padding:4px 18px 5px;border-radius:5px;background:#fff3e9;color:#b46322}
.entry-notice__icon{flex:none;width:16px;height:16px;margin-top:3px;color:#f58b36}
.entry-notice__text{min-width:0;text-align:left;overflow-wrap:anywhere}
.entry-notice__text>:first-child{margin-top:0}.entry-notice__text>:last-child{margin-bottom:0}
.entry-notice__text p{margin:.25em 0}.entry-notice__text img{max-width:100%;height:auto}
.entry-notice.entry-notice--modown a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}
@media(prefers-color-scheme:dark){html:not(.dafa-color-light) .entry-notice__inner{background:#2b2b2b;color:#f2a66b}}
html.dafa-color-dark .entry-notice__inner,body.dafa-color-dark .entry-notice__inner{background:#2b2b2b;color:#f2a66b}
@media(max-width:700px){.entry-notice.entry-notice--modown{max-width:100%}.entry-notice__inner{padding:6px 12px}.entry--single .entry-title__badge{font-size:12px}}
.dafa-article-demo{display:flex;align-items:center;justify-content:center;gap:.5em;border:1px solid currentColor;border-radius:8px;padding:10px 16px;margin:12px 0;text-decoration:none;font-weight:600}
.dafa-article-media,.dafa-gallery{margin:24px 0;border:1px solid var(--dafa-border,#e1e5eb);border-radius:14px;padding:16px;background:var(--dafa-surface,#fff);max-width:100%;min-width:0}
.dafa-article-media video,.dafa-article-media iframe{display:block;width:100%;max-height:70vh;aspect-ratio:16/9;border:0;background:#111;border-radius:9px}
.dafa-article-media audio{display:block;width:100%}
.dafa-media-preview{margin:0 0 16px}.dafa-media-preview summary{cursor:pointer;padding:8px 0}
.dafa-media-playlist{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.dafa-media-playlist button,.dafa-slider-controls button{font:inherit;border:1px solid var(--dafa-border,#d9dfe7);border-radius:8px;background:transparent;color:inherit;cursor:pointer;padding:8px 12px}
.dafa-media-playlist button[aria-pressed=true]{background:#173a63;color:#fff;border-color:#173a63}
.dafa-media-playlist button:disabled{opacity:.6;cursor:wait}
.dafa-media-status,.dafa-reply-required{font-size:14px;line-height:1.7;margin:12px 0 0}
.dafa-slider-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;min-width:0}
.dafa-slider-track>*{scroll-snap-align:start;flex:0 0 100%;min-width:0}
.dafa-gallery figure{margin:0}.dafa-gallery img{display:block;width:100%;height:auto;max-height:65vh;object-fit:contain;border-radius:8px}

/* The frame sets the ratio; existing images are cropped without stretching. */
.editorial-home .discovery-card__image{position:relative}
:is(.editorial-home .discovery-card__image,:is(.home-page,.archive-results,.search-results-page,.related-content) .entry-card__media){
  width:100%;height:auto!important;aspect-ratio:16/9!important;align-self:start;overflow:hidden
}
:is(.editorial-home .discovery-card__image,:is(.home-page,.archive-results,.search-results-page,.related-content) .entry-card__media) :is(img,.entry-card__placeholder){
  position:absolute!important;inset:0;width:100%;height:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;transform:none!important
}
:is(.editorial-home .discovery-card__image,:is(.home-page,.archive-results,.search-results-page,.related-content) .entry-card__media) picture{display:block;width:100%;height:100%}
:is(.home-page,.archive-results,.search-results-page,.related-content) .entry-card--special > .entry-card__media{inset-block-end:auto}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :is(.home-page,.archive-results,.search-results-page) .entry-card__media img,
  .editorial-home .discovery-slide .discovery-card__image img{transition:scale 360ms cubic-bezier(0.22,1,0.36,1)}
  :is(.home-page,.archive-results,.search-results-page) .entry-card:hover .entry-card__media img,
  .editorial-home .discovery-slide:hover .discovery-card__image img{scale:1.045}
}
/* Related titles: one line with ellipsis, 20261107. */
body .related-content .entry-card__title{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset}
/* Inactive slides must not hold a taller cover's empty space open. */
body .editorial-home .discovery-carousel[data-discovery-ready] .discovery-track > [data-discovery-slide][hidden]{display:none!important}
.dafa-gallery figcaption{font-size:14px;text-align:center;padding:10px}
.dafa-slider-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.dafa-slider-controls[hidden]{display:none}
.dafa-home-promotions{margin:36px 0 32px;min-width:0}.dafa-home-promotions>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.dafa-home-promotions h2{margin:0;font-size:22px}.dafa-home-promotions .dafa-slider-controls{margin:0}
.dafa-home-promotion{position:relative;display:block;flex-basis:calc((100% - 32px)/3);aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#192c41;color:#fff;text-decoration:none}
.dafa-home-promotion:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.8));pointer-events:none}
.dafa-home-promotion img{width:100%;height:100%;object-fit:cover}.dafa-home-promotion h3{position:absolute;inset:auto 18px 14px;z-index:1;margin:0;font-size:17px;line-height:1.6}
.dafa-slider-track:focus-visible,.dafa-media-playlist button:focus-visible,.dafa-slider-controls button:focus-visible{outline:3px solid #477ba7;outline-offset:3px}
@media(max-width:700px){.dafa-home-promotions{margin-top:24px}.dafa-home-promotion{flex-basis:88%}.dafa-article-media,.dafa-gallery{padding:12px}.dafa-media-playlist button{min-height:44px}.dafa-slider-controls button{min-width:44px;min-height:44px}}
/* 0.5.433: keep the featured card's dark identity inside a normal list row. */
html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special {
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--dafa-border);
  border-radius: 0;
  background: transparent;
}

html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special > .entry-card__media {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: auto;
}

html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special > .entry-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special:after {
  display: none;
}

html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special > .entry-card__body {
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 20px 22px;
  background: #182333;
  color: #fff;
}

html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special .entry-card__title,
html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special .entry-card__excerpt,
html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special .entry-meta,
html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special .entry-meta a {
  color: #fff;
}

@media (max-width: 640px) {
  html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special {
    grid-template-columns: minmax(132px, 38%) minmax(0, 1fr);
  }

  html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special > .entry-card__body {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  html[data-dafa-archive-view="list"] .archive-results .entry-card.entry-card--special {
    grid-template-columns: 108px minmax(0, 1fr);
  }
}

/* assets/css/shared-workflow-search.css */
/* Shared styles in their original enqueue order. Sources remain independently maintained. */

/* Source: resource-workflow.css */
/* Task-oriented browsing uses the existing theme surfaces and accent. */
.entry-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; order: 1; }
body .entry-card .entry-card__footer .entry-meta { order: 0; margin: 0; padding: 0; }
.archive-results[data-dafa-archive-view="list"] .entry-card__footer { order: 4; margin-top: auto; padding-top: 14px; }
body .resource-quick-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--dafa-text-soft); font-size: 12px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
body .resource-quick-link:hover { color: var(--dafa-accent-strong); }
.resource-quick-link svg { flex: 0 0 16px; }
.resource-preview:not([open]) { display: none; }
.resource-preview[open] { display: flex; flex-direction: column; }
.resource-preview { position: fixed; inset: 0 0 0 auto; box-sizing: border-box; margin: 0; padding: 0; width: min(720px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: none; border: 0; border-left: 1px solid var(--dafa-border); background: var(--dafa-surface); color: var(--dafa-text); box-shadow: -12px 0 48px #0002; }
.resource-preview::backdrop { background: #17231f66; }
.resource-preview__header { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; padding: 12px 24px; border-bottom: 1px solid var(--dafa-border); font-size: 13px; color: var(--dafa-text-soft); }
body .resource-preview__header button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; color: var(--dafa-text); }
.resource-preview__scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1 1 auto; padding: 24px 32px 36px; }
.resource-preview h2 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); line-height: 1.5; overflow-wrap: anywhere; }
.resource-preview__meta, .resource-preview__status { font-size: 12px; line-height: 1.8; color: var(--dafa-text-soft); }
.resource-preview__content { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.resource-preview__content h3 { margin: 24px 0 8px; font-size: 16px; }
.resource-preview__content p { margin: 10px 0; }
.resource-preview[aria-busy="true"] .resource-preview__content { min-height: 360px; border-radius: 6px; background: linear-gradient(var(--dafa-surface-muted), var(--dafa-surface-muted)) 0 16px / 70% 24px no-repeat, repeating-linear-gradient(to bottom, var(--dafa-surface-muted) 0 12px, transparent 12px 34px) 0 64px / 100% 260px no-repeat; }
.resource-preview__footer { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--dafa-border); background: var(--dafa-surface); font-size: 13px; }
.resource-preview__footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--dafa-text); }
body .resource-preview__footer button, body .resource-tasks__ai button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 0; border-radius: 6px; background: var(--dafa-accent-soft); color: var(--dafa-accent-strong); font: inherit; cursor: pointer; }
.resource-preview__footer svg, .resource-tasks__ai svg { width: 18px; height: 18px; flex: 0 0 18px; }
.resource-preview__footer small { flex-basis: 100%; color: var(--dafa-text-soft); font-size: 12px; line-height: 1.6; }
.resource-preview [hidden], .resource-tasks [hidden] { display: none !important; }
/* Editorial task entry: retain the homepage canvas and reserve accent for actions. */
.resource-tasks { margin:12px 0 64px; }
.resource-tasks__heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:26px; }
.resource-tasks__heading h2 { margin:0; font-size:28px; line-height:1.4; letter-spacing:-.035em; }
.resource-tasks__heading p { margin:8px 0 0; color:var(--dafa-text-soft); font-size:14px; line-height:1.7; }
.resource-tasks__heading > a { min-height:44px; display:inline-flex; align-items:center; font-size:13px; color:var(--dafa-text-soft); text-decoration:none; }
.resource-tasks__heading > a:hover { color:var(--dafa-accent); }
.resource-tasks__choices { display:flex; gap:36px; border-bottom:1px solid var(--dafa-border); }
.resource-tasks__choices > a { position:relative; display:inline-flex; align-items:center; min-height:52px; padding:4px 0 14px; border:0; border-radius:0; background:transparent; color:var(--dafa-text-soft); text-decoration:none; }
.resource-tasks__choices > a::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--dafa-accent); transform:scaleX(0); transform-origin:left; }
.resource-tasks__choices strong { font-size:17px; font-weight:500; }
.resource-tasks__choices > a[aria-selected="true"],html.dafa-js .resource-tasks:not([data-tasks-ready]) [data-resource-task="launch"] { color:var(--dafa-text); background:transparent; }
.resource-tasks__choices > a[aria-selected="true"] strong { font-weight:650; }
.resource-tasks__choices > a[aria-selected="true"]::after,html.dafa-js .resource-tasks:not([data-tasks-ready]) [data-resource-task="launch"]::after { transform:scaleX(1); }
.resource-tasks__choices > a:hover { color:var(--dafa-accent); }
html.dafa-js:not(.dafa-loading-fallback) .resource-tasks:not([data-tasks-ready]) [data-resource-task-panel]:not([data-resource-task-panel="launch"]) { display:none; }
.resource-tasks__panel { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:32px 64px; padding:28px 0 0; margin:0; border:0; border-radius:0; background:transparent; }
.resource-tasks__intro { grid-column:1/-1; display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.resource-tasks__intro > p { margin:6px 0 0; font-size:17px; line-height:1.8; color:var(--dafa-text); }
.resource-tasks__ai { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex:0 1 370px; }
body .resource-tasks__ai button { min-height:44px; padding:10px 16px; border-radius:5px; background:var(--dafa-accent); color:var(--dafa-on-accent); font-size:13px; white-space:nowrap; }
body .resource-tasks__ai button:hover { background:var(--dafa-accent-strong); }
.resource-tasks__ai small { max-width:100%; font-size:11px; color:var(--dafa-text-soft); line-height:1.7; text-align:right; }
.resource-tasks__panel h3 { margin:0 0 14px; color:var(--dafa-text-soft); font-size:13px; font-weight:500; }
.resource-tasks__resources,.resource-tasks__tools { min-width:0; }
.resource-tasks__resources ul { padding:0; margin:0; list-style:none; counter-reset:task-document; }
.resource-tasks__resources li { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:82px; padding:14px 0; border-bottom:1px solid var(--dafa-border); counter-increment:task-document; }
.resource-tasks__resources li::before { content:counter(task-document,decimal-leading-zero); align-self:start; padding-top:3px; color:var(--dafa-text-soft); font-size:12px; line-height:1.8; font-variant-numeric:tabular-nums; }
.resource-tasks__document { min-width:0; display:grid; gap:6px; color:var(--dafa-text); text-decoration:none; }
.resource-tasks__document > span { font-size:15px; line-height:1.65; overflow-wrap:anywhere; }
.resource-tasks__document small { color:var(--dafa-text-soft); font-size:12px; line-height:1.5; }
.resource-tasks__document:hover > span { color:var(--dafa-accent); }
.resource-tasks__tools { border-left:1px solid var(--dafa-border); padding-left:32px; }
.resource-tasks__tool { display:grid; gap:8px; padding:14px 0; margin:0; font-size:13px; line-height:1.8; text-decoration:none; color:var(--dafa-text); }
.resource-tasks__tool strong { font-size:15px; font-weight:600; }
.resource-tasks__tool span { color:var(--dafa-text-soft); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.resource-tasks__tool:hover strong { color:var(--dafa-accent); }
.resource-tasks__more { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; font-size:13px; text-decoration:none; color:var(--dafa-accent-strong); }
.resource-tasks__more:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:767px) {
 .resource-tasks { margin:0 0 44px; }
 .resource-tasks__heading { gap:6px; margin-bottom:16px; }
 .resource-tasks__heading h2 { font-size:24px; }
 .resource-tasks__heading p { font-size:13px; }
 .resource-tasks__choices { justify-content:space-between; gap:16px; }
 .resource-tasks__choices strong { font-size:15px; }
 .resource-tasks__choices > a { min-height:48px; padding-bottom:12px; }
 .resource-tasks__panel { grid-template-columns:minmax(0,1fr); padding-top:20px; gap:28px; }
 .resource-tasks__intro { flex-direction:column; gap:14px; }
 .resource-tasks__intro > p { font-size:15px; margin:0; }
 .resource-tasks__ai { align-items:flex-start; flex-basis:auto; }
 .resource-tasks__ai small { text-align:left; }
 .resource-tasks__resources li { grid-template-columns:22px minmax(0,1fr); gap:4px 8px; padding:14px 0; }
 .resource-tasks__resources .resource-quick-link { grid-column:2; justify-self:start; min-height:44px; }
 .resource-tasks__tools { border-left:0; padding-left:0; }
}
@media(prefers-reduced-motion:no-preference) {
 .resource-tasks__choices > a,.resource-tasks__document,.resource-tasks__tool,body .resource-tasks__ai button { transition:color 160ms,background-color 160ms; }
 .resource-tasks__choices > a::after { transition:transform 180ms ease; }
 .resource-tasks[data-tasks-ready] .resource-tasks__panel:not([hidden]) { animation:task-panel-enter 180ms ease-out; }
 @keyframes task-panel-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
}
.resource-preview :is(a,button):focus-visible, .resource-tasks :is(a,button):focus-visible, .resource-quick-link:focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: 3px; }
@media (max-width: 767px) {
  .resource-preview { width: 100%; border: 0; }
  .resource-preview__scroll { padding: 20px; }
  .resource-preview__header, .resource-preview__footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .resource-preview[open] { animation: resource-preview-enter 160ms ease-out; }
  @keyframes resource-preview-enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
}

/* Card view keeps its footer compact; preview remains available in list view. */
html[data-dafa-archive-view="grid"] .archive-results .resource-quick-link,
.archive-results[data-dafa-archive-view="grid"] .resource-quick-link { display: none; }


/* Source: workbench.css */
/* Follow the site's existing warm surfaces, typography and restrained accent. */
.header-search__panel:has(.quick-search){width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain}
.quick-search__actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 10px}
.quick-search__actions a,.quick-search__actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid var(--dafa-border,#deded7);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px;text-decoration:none;cursor:pointer}
.quick-search__actions svg{width:16px;height:16px}
.quick-search__shortcut{display:block;color:var(--dafa-text-soft,#737770);font-size:11px}
.quick-search__results{min-height:260px;margin-top:12px;border-top:1px solid var(--dafa-border,#deded7)}
.quick-search__results[hidden]{display:none}
.quick-search__results [role=status]{font-size:12px;color:var(--dafa-text-soft,#737770);margin:14px 0}
.quick-search__results h3{font-size:12px;letter-spacing:.04em;color:var(--dafa-text-soft,#737770);margin:16px 0 6px}
.quick-search__results a{display:grid;gap:3px;padding:10px 8px;min-height:44px;border-radius:6px;text-decoration:none;color:inherit}
.quick-search__results strong{font-size:14px;font-weight:550;line-height:1.6}
.quick-search__results small{font-size:11px;color:var(--dafa-text-soft,#737770);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.quick-search a:hover,.quick-search button:hover,.quick-search a:focus-visible{background:var(--dafa-surface-muted,#f2f1eb)}
.quick-search :focus-visible,.workbench a:focus-visible{outline:2px solid var(--dafa-accent,#d65d35);outline-offset:2px}
.workbench{min-width:0}
.workbench-shortcuts{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:24px}
.workbench-shortcuts a{display:flex;align-items:center;gap:22px;min-height:44px;padding:9px 14px;background:var(--dafa-surface-muted,#f2f1eb);border-radius:7px;text-decoration:none;color:inherit;font-size:13px}
.workbench-shortcuts span{color:var(--dafa-text-soft,#737770)}
.workbench-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px}
.workbench-section{min-width:0;margin-bottom:32px}
.workbench-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--dafa-border,#deded7);padding-bottom:12px}
.workbench-section h2{font-size:17px;margin:0;line-height:1.5}
.workbench-section>header>a,.workbench-section>header>span{font-size:12px;color:var(--dafa-text-soft,#737770);white-space:nowrap}
.workbench-list{list-style:none!important;padding:0!important;margin:0!important}
.workbench-list li{margin:0!important;border-bottom:1px solid var(--dafa-border,#deded7)}
.workbench-list a{display:grid;gap:6px;padding:16px 0;text-decoration:none;color:inherit;min-height:64px}
.workbench-list strong{font-weight:550;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.workbench-list small{font-size:11px;color:var(--dafa-text-soft,#737770)}
.workbench-note,.workbench-empty{font-size:13px;color:var(--dafa-text-soft,#737770);line-height:1.85;margin:18px 0}
.workbench-interests{display:inline-block;font-size:12px;line-height:1.8;margin-bottom:8px;color:var(--dafa-accent,#b84d2c)}
@media(max-width:700px){.workbench-columns{grid-template-columns:minmax(0,1fr);gap:0}.workbench-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-shortcuts a{justify-content:space-between}.header-search__panel:has(.quick-search){max-height:calc(100dvh - 90px)}.quick-search__actions{gap:6px}.quick-search__actions a,.quick-search__actions button{padding:8px;font-size:12px}}

.archive-personal-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--dafa-accent);text-underline-offset:4px}
.quick-search__results a,.quick-search__results strong,.quick-search__results small{min-width:0;white-space:normal;overflow-wrap:anywhere}.quick-search__results strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

.account-page .account-nav__menu a[data-account-action="workbench"]{--dafa-ac-icon:var(--dafa-icon-home)}

/* Brand search: one elevated dialog, soft controls and calm interaction feedback. */
html.dafa-search-open { overflow:hidden; }
body dialog.header-search__panel[data-search-modal] {
 --search-soft:color-mix(in srgb,var(--dafa-surface-muted) 48%,var(--dafa-surface));
 --search-line:color-mix(in srgb,var(--dafa-border) 72%,var(--dafa-surface));
 position:fixed; inset:0; margin:auto; width:min(736px,calc(100vw - 48px));
 max-width:none; min-width:0; max-height:min(800px,calc(100dvh - 64px)); height:fit-content;
 padding:24px 28px 16px; border:1px solid var(--search-line); border-radius:20px;
 background:var(--dafa-surface); color:var(--dafa-text);
 box-shadow:0 24px 80px rgb(30 43 37 / 20%),0 2px 8px rgb(30 43 37 / 5%);
 overflow:hidden; overscroll-behavior:contain;
}
body dialog.header-search__panel[open] { display:flex; flex-direction:column; animation:dafa-search-enter 220ms cubic-bezier(.2,.7,.2,1) both; }
body dialog.header-search__panel[hidden] { display:none; }
dialog.header-search__panel::backdrop { background:rgb(25 35 32 / 38%); backdrop-filter:blur(6px); animation:dafa-search-backdrop 180ms ease-out both; }
body dialog.header-search__panel .header-search__heading { flex:none; align-items:center; margin:0 0 16px; gap:16px; }
body dialog.header-search__panel .header-search__title { font-size:22px; line-height:1.45; font-weight:700; letter-spacing:-.025em; }
body dialog.header-search__panel .header-search__close { display:inline-flex; flex:none; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:0; border:0; background:transparent; color:var(--dafa-text-soft); border-radius:50%; cursor:pointer; transition:background-color 160ms,color 160ms,transform 160ms; }
body dialog.header-search__panel .header-search__close:hover { background:var(--search-soft); color:var(--dafa-text); }
body dialog.header-search__panel .scope-search--modal { display:grid; flex:none; position:relative; grid-template-columns:auto minmax(0,1fr) 56px; gap:0; padding:0; border:0; background:transparent; box-shadow:none; border-radius:0; }
body dialog.header-search__panel .scope-search--modal::before { content:""; grid-column:1/-1; grid-row:1; border:1px solid var(--search-line); border-radius:12px; background:var(--search-soft); pointer-events:none; transition:border-color 180ms,box-shadow 180ms,background-color 180ms; }
body dialog.header-search__panel .scope-search--modal:has(.scope-search__field:focus-visible)::before { border-color:var(--dafa-accent); background:var(--dafa-surface); box-shadow:0 0 0 3px color-mix(in srgb,var(--dafa-accent) 12%,transparent); }
body dialog.header-search__panel .scope-search__field { position:relative; grid-column:2; grid-row:1; min-width:0; width:100%; min-height:56px; padding:12px 16px; font-size:17px; border:0; border-radius:12px 0 0 12px; background:transparent; color:var(--dafa-text); box-shadow:none; }
body dialog.header-search__panel .scope-search__field::placeholder { color:var(--dafa-text-soft); opacity:1; }
body dialog.header-search__panel .scope-search__field:focus-visible { outline:0; box-shadow:none; }
body dialog.header-search__panel .scope-search__submit { position:relative; grid-column:3; grid-row:1; display:inline-flex; align-items:center; justify-content:center; align-self:center; width:44px; min-height:44px; margin:6px; padding:0; border:0; border-radius:9px; color:var(--dafa-on-accent); background:var(--dafa-accent); box-shadow:none; transition:background-color 160ms,transform 160ms; }
body dialog.header-search__panel .scope-search__submit:hover { background:var(--dafa-accent-strong); color:var(--dafa-on-accent); }
body dialog.header-search__panel .quick-search { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; margin-top:22px; padding:0 6px 2px 0; }
body dialog .quick-search__topics { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 24px; color:var(--dafa-text-soft); font-size:13px; }
body dialog .quick-search__topics > span { flex-basis:100%; margin:0 0 3px; font-size:12px; font-weight:600; }
body dialog .quick-search__topics button { min-height:40px; max-width:100%; padding:8px 14px; border:1px solid var(--search-line); border-radius:999px; color:var(--dafa-text); background:var(--dafa-surface); font:inherit; line-height:1.5; overflow-wrap:anywhere; cursor:pointer; transition:background-color 160ms,border-color 160ms,color 160ms,transform 160ms; }
body dialog .quick-search__topics button:hover,body dialog .quick-search__topics button.is-selected { background:color-mix(in srgb,var(--dafa-accent) 7%,var(--dafa-surface)); border-color:color-mix(in srgb,var(--dafa-accent) 32%,var(--dafa-surface)); color:var(--dafa-accent); }
.quick-search__browse[hidden] { display:none; }
body dialog .quick-search__section-label { color:var(--dafa-text-soft); font-size:12px; font-weight:600; margin:0 0 8px; }
body dialog .quick-search__results { min-height:140px; margin:0; border:0; }
body dialog .quick-search__results [role=status] { margin:0 0 16px; font-size:12px; line-height:1.6; }
body dialog .quick-search__results h3 { margin:20px 0 8px; font-size:12px; font-weight:600; letter-spacing:0; }
body dialog .quick-search .search-result { position:relative; display:grid; align-content:center; gap:5px; min-height:76px; margin:2px 0; padding:12px 44px 12px 12px; border:0; border-radius:10px; color:var(--dafa-text); text-decoration:none; white-space:normal; transition:background-color 160ms,color 160ms; }
body dialog .quick-search .search-result strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; line-height:1.6; font-weight:500; min-width:0; overflow-wrap:anywhere; }
body dialog .quick-search .search-result small { font-size:11px; font-weight:400; line-height:1.5; color:var(--dafa-text-soft); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
body dialog .search-result__arrow { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--dafa-text-soft); font-size:20px; font-weight:400; line-height:1; transition:transform 180ms,color 180ms; }
body dialog .quick-search .search-result:hover,body dialog .quick-search .search-result:focus-visible { background:var(--search-soft); color:var(--dafa-accent); }
body dialog .quick-search .search-result:is(:hover,:focus-visible) .search-result__arrow { color:var(--dafa-accent); transform:translate(2px,calc(-50% - 2px)); }
body dialog .quick-search__actions { gap:4px 14px; margin:18px 0 6px; }
body dialog .quick-search__actions a,body dialog .quick-search__actions button { min-height:40px; padding:4px 0; border:0; border-radius:6px; font-size:12px; color:var(--dafa-text-soft); background:transparent; }
body dialog .quick-search__actions a:hover,body dialog .quick-search__actions button:hover { color:var(--dafa-accent); }
body dialog .quick-search__shortcut { margin-bottom:4px; }
body dialog .header-search__hint { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; flex:none; margin:16px 0 0; padding-top:12px; border-top:1px solid var(--search-line); color:var(--dafa-text-soft); font-size:11px; }
body dialog .header-search__hint span { display:inline-flex; align-items:center; gap:6px; }
body dialog .header-search__hint kbd { padding:2px 5px; border:1px solid var(--search-line); border-radius:4px; background:var(--search-soft); color:inherit; font:inherit; line-height:1.3; }
body dialog.header-search__panel :is(button,a):focus-visible { outline:2px solid var(--dafa-accent); outline-offset:2px; }
body dialog.header-search__panel button:active { transform:scale(.97); }
body dialog .quick-search__results[aria-busy="true"]::after { content:""; display:block; height:92px; border-radius:10px; background:linear-gradient(90deg,var(--search-soft) 25%,var(--dafa-surface) 50%,var(--search-soft) 75%); background-size:200% 100%; animation:dafa-search-loading 1.5s ease-in-out infinite; }
@keyframes dafa-search-enter { from { opacity:0; transform:translateY(10px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes dafa-search-backdrop { from { opacity:0; } to { opacity:1; } }
@keyframes dafa-search-loading { to { background-position:-200% 0; } }
@media(max-width:640px) {
 body dialog.header-search__panel[data-search-modal] { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:18px 18px 14px; border-radius:16px; }
 body dialog.header-search__panel .header-search__heading { margin-bottom:12px; gap:8px; }
 body dialog.header-search__panel .header-search__title { font-size:19px; }
 body dialog.header-search__panel .scope-search__field { font-size:16px; padding-inline:12px; }
 body dialog.header-search__panel .quick-search { margin-top:20px; }
 body dialog .quick-search__topics { margin-bottom:20px; gap:7px; }
 body dialog .quick-search__topics button { min-height:44px; padding:8px 12px; }
 body dialog .quick-search .search-result { min-height:76px; padding-left:8px; padding-right:32px; }
 body dialog .search-result__arrow { right:8px; }
 body dialog .quick-search__actions a,body dialog .quick-search__actions button { min-height:44px; }
 body dialog .header-search__hint { gap:8px 14px; }
 body dialog .header-search__hint .header-search__keys { display:none; }
}
@media(prefers-reduced-motion:reduce) {
 body dialog.header-search__panel[open],dialog.header-search__panel::backdrop,body dialog .quick-search__results[aria-busy="true"]::after { animation:none; }
 body dialog.header-search__panel :is(button,a),body dialog .search-result__arrow,body dialog.header-search__panel .scope-search--modal::before { transition:none; }
 body dialog.header-search__panel button:active { transform:none; }
 body dialog .quick-search .search-result:is(:hover,:focus-visible) .search-result__arrow { transform:translateY(-50%); }
}

/* A completed search with no matches needs one message, not empty result cards. */
body dialog .quick-search.is-empty :is(.quick-search__topics,.quick-search__actions,.quick-search__shortcut) { display:none; }
body dialog .quick-search.is-empty .quick-search__results { min-height:0; }
body dialog .quick-search.is-empty [role=status] { margin:8px 0 16px; padding:12px 0; font-size:14px; }
body dialog .quick-search.is-empty .quick-search__retry { display:inline-flex; min-height:44px; align-items:center; padding:0; color:var(--dafa-accent); font-size:13px; text-decoration:underline; text-underline-offset:3px; }
body dialog:has(.quick-search.is-empty) .header-search__keys { display:none; }

/* Shared scope picker; keep the surrounding search surfaces unchanged. */
body .scope-search:not(.scope-search--modal) { position:relative; overflow:visible; grid-template-columns:auto minmax(0,1fr) auto; }
body .scope-search:has(.search-scope-picker__trigger[aria-expanded="true"]) { z-index:6; }
body .scope-search .search-scope-picker { flex:0 0 auto; }
body .sidebar .scope-search:not(.scope-search--modal) { grid-template-columns:minmax(0,1fr) auto; }
body .sidebar .scope-search .search-scope-picker { grid-column:1/-1; justify-self:start; margin-block:4px; }
body dialog.header-search__panel .scope-search--modal { overflow:visible; z-index:5; }
body .scope-search .search-scope-picker { position:relative; grid-column:1; grid-row:1; align-self:center; margin-left:6px; z-index:4; }
body .scope-search .search-scope-picker::after { content:""; position:absolute; right:0; top:50%; width:1px; height:22px; transform:translateY(-50%); background:var(--search-line, color-mix(in srgb,var(--dafa-border) 72%,var(--dafa-surface))); pointer-events:none; }
body .scope-search .search-scope-picker__trigger { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-width:80px; min-height:44px; padding:8px 12px; border:0; border-radius:8px; background:transparent; color:var(--dafa-text); font:inherit; font-size:14px; font-weight:500; cursor:pointer; transition:background-color 160ms,color 160ms; }
body .scope-search .search-scope-picker__trigger:hover,body .scope-search .search-scope-picker__trigger[aria-expanded="true"] { background:var(--search-soft, color-mix(in srgb,var(--dafa-surface-muted) 48%,var(--dafa-surface))); color:var(--dafa-text); }
body .scope-search .search-scope-picker__chevron { flex:none; width:14px; height:14px; color:var(--dafa-text-soft); transition:transform 160ms; }
body .scope-search .search-scope-picker__trigger[aria-expanded="true"] .search-scope-picker__chevron { transform:rotate(180deg); }
body .scope-search .search-scope-picker__menu { position:absolute; top:calc(100% + 10px); left:0; width:160px; max-height:240px; overflow:auto; padding:8px; border:1px solid color-mix(in srgb,var(--dafa-border) 55%,var(--dafa-surface)); border-radius:12px; background:var(--dafa-surface); box-shadow:0 12px 28px rgb(30 43 37 / 9%),0 2px 5px rgb(30 43 37 / 3%); }
body .scope-search .search-scope-picker__menu[hidden] { display:none; }
body .scope-search .search-scope-picker__menu button { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:44px; padding:9px 12px; border:0; border-radius:7px; background:transparent; color:var(--dafa-text); font:inherit; font-size:14px; text-align:left; cursor:pointer; transition:background-color 160ms,color 160ms; }
body .scope-search .search-scope-picker__menu button:hover,body .scope-search .search-scope-picker__menu button:focus-visible { background:var(--search-soft, color-mix(in srgb,var(--dafa-surface-muted) 48%,var(--dafa-surface))); }
body .scope-search .search-scope-picker__menu button[aria-selected="true"] { color:var(--dafa-text); background:transparent; font-weight:500; }
body .scope-search .search-scope-picker__check { visibility:hidden; color:var(--dafa-accent); font-size:15px; }
body .scope-search [aria-selected="true"] > .search-scope-picker__check { visibility:visible; }
body .scope-search .search-scope-picker__menu button:focus-visible { outline-offset:-2px; }
@media(max-width:640px) {
 body .scope-search .search-scope-picker__trigger { min-width:70px; padding-inline:8px; gap:5px; }
 body dialog.header-search__panel .scope-search__field { padding-inline:10px; }
}
@media(prefers-reduced-motion:no-preference) {
 body .scope-search .search-scope-picker__menu:not([hidden]) { animation:dafa-scope-open 140ms ease-out; }
 @keyframes dafa-scope-open { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
}
@media(prefers-reduced-motion:reduce) { body .scope-search .search-scope-picker__chevron { transition:none; } }

body .scope-search .search-scope-picker__trigger [data-search-scope-label] { white-space:nowrap; }
body .scope-search .search-scope-picker__menu button[aria-selected="true"]:is(:hover,:focus-visible) { background:var(--search-soft, color-mix(in srgb,var(--dafa-surface-muted) 48%,var(--dafa-surface))); }


/* Source: search-brand.css */
/* Search belongs to the same brand as account entry, with a compact masthead. */
body dialog.header-search__panel[data-search-style="brand-v2"] {
  --search-brand-start: color-mix(in srgb, var(--dafa-accent) 78%, #592517);
  --search-brand-end: var(--dafa-accent);
  --search-brand-ink: #fffaf6;
  --search-logo-fill: #fffaf6;
  --search-logo-stroke: var(--dafa-accent);
  padding: 0 26px 14px;
  border: 0;
  border-radius: 16px;
}
html.dafa-color-dark body dialog.header-search__panel[data-search-style="brand-v2"] {
  --search-brand-start: color-mix(in srgb, var(--dafa-accent) 8%, var(--dafa-surface));
  --search-brand-end: var(--dafa-surface-muted);
  --search-brand-ink: var(--dafa-text);
  --search-logo-fill: var(--dafa-accent);
  --search-logo-stroke: var(--dafa-on-accent);
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead {
  position: relative;
  flex: none;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -26px 20px;
  padding: 22px 64px 20px 26px;
  background: linear-gradient(115deg, var(--search-brand-start), var(--search-brand-end));
  color: var(--search-brand-ink);
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 32px 0 auto;
  width: 260px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20260%20136%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%2238%22%20y%3D%2226%22%20width%3D%22122%22%20height%3D%2286%22%20rx%3D%2210%22%20opacity%3D%22.45%22%2F%3E%3Cpath%20d%3D%22M57%2048h46M57%2061h67M57%2074h34M57%2087h49%22%20opacity%3D%22.55%22%2F%3E%3Crect%20x%3D%2217%22%20y%3D%2213%22%20width%3D%22122%22%20height%3D%2286%22%20rx%3D%2210%22%20opacity%3D%22.2%22%2F%3E%3Ccircle%20cx%3D%22175%22%20cy%3D%2262%22%20r%3D%2235%22%2F%3E%3Ccircle%20cx%3D%22175%22%20cy%3D%2262%22%20r%3D%2225%22%20opacity%3D%22.25%22%2F%3E%3Cpath%20d%3D%22m201%2088%2028%2028%22%20stroke-width%3D%229%22%2F%3E%3Ccircle%20cx%3D%22234%22%20cy%3D%2233%22%20r%3D%223%22%20fill%3D%22white%22%20stroke%3D%22none%22%20opacity%3D%22.35%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand { display: flex; align-items: center; margin-bottom: 12px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg { color: inherit; gap: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__svg { flex-basis: 30px; width: 30px; height: 30px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__coin-fill { fill: var(--search-logo-fill); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__dollar { stroke: var(--search-logo-stroke); animation: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__copy { display: flex; transform: none; animation: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__name { font-size: 20px; line-height: 1.25; color: inherit; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__tagline { display: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand img { display: block; width: auto; max-width: 170px; max-height: 34px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__heading { margin: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__title { display: block; color: inherit; font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close { position: absolute; top: 12px; right: 12px; color: inherit; border-radius: 10px; background: transparent; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close:is(:hover,:focus-visible) { color: inherit; background: color-mix(in srgb, var(--search-brand-ink) 13%, transparent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close:focus-visible { outline-color: var(--search-brand-ink); }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search--modal::before { background: var(--dafa-surface); border-color: color-mix(in srgb, var(--dafa-accent) 26%, var(--dafa-border)); border-radius: 10px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search--modal:has(.scope-search__field:focus-visible)::before { border-color: var(--dafa-accent); box-shadow: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__field { min-height: 54px; padding-inline: 14px; font-size: 16px; caret-color: var(--dafa-accent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__submit { border-radius: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search { margin-top: 20px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--dafa-border) transparent; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics { gap: 6px; margin-bottom: 20px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics > span,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__section-label,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__results h3 { font-weight: 600; letter-spacing: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button { min-height: 34px; padding: 6px 11px; border-radius: 7px; border-color: transparent; background: var(--search-soft); font-size: 12px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button:is(:hover,.is-selected) { border-color: color-mix(in srgb, var(--dafa-accent) 24%, var(--dafa-surface)); background: color-mix(in srgb, var(--dafa-accent) 8%, var(--dafa-surface)); color: var(--dafa-accent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result { min-height: 66px; margin: 0; padding: 12px 48px 12px 10px; border-radius: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result + .search-result { border-top: 1px solid var(--search-line); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result strong { font-size: 14px; line-height: 1.6; font-weight: 500; }
body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { display: grid; place-items: center; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 0; color: var(--dafa-text-soft); background: var(--search-soft); transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translate(-65%,-50%) rotate(45deg); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result:is(:hover,:focus-visible) .search-result__arrow { transform: translate(2px,-50%); color: var(--dafa-accent); background: color-mix(in srgb, var(--dafa-accent) 9%, var(--dafa-surface)); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions { gap: 6px 16px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--search-line); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions a,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions button { color: var(--dafa-text); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__hint { margin-top: 12px; padding-top: 10px; gap: 8px 16px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__hint > span { white-space: nowrap; }
body dialog.header-search__panel[data-search-style="brand-v2"] ::selection { background: color-mix(in srgb, var(--dafa-accent) 20%, var(--dafa-surface)); color: var(--dafa-text); }
@media (max-width: 640px) {
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__hint .header-search__open { display: none; }
  body dialog.header-search__panel[data-search-style="brand-v2"] { padding: 0 18px 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead { margin: 0 -18px 16px; padding: 20px 58px 18px 18px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead::before { right: 0; width: 160px; opacity: .10; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand { margin-bottom: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__title { font-size: 17px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__name { font-size: 19px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search { margin-top: 18px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button { min-height: 44px; padding-inline: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__field { padding-inline: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result { padding-left: 4px; padding-right: 36px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { right: 2px; width: 26px; height: 26px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { transition: none; }
}

/* assets/css/resource-classification-directory-v3.css */
/* Department and business choices share one compact filter language. */
.classification-filters {
  --classification-collapsed-height:74px;
  --classification-selected-bg:var(--dafa-surface);
  --classification-selected-border:color-mix(in srgb,var(--dafa-accent) 65%,var(--dafa-border));
  --classification-selected-text:color-mix(in srgb,var(--dafa-accent) 55%,var(--dafa-text-soft));
  --classification-primary-selected-bg:color-mix(in srgb,var(--dafa-accent) 10%,var(--dafa-surface));
  margin:0; padding:20px 24px; position:relative; z-index:8; scroll-margin-top:90px;
  color:var(--dafa-text); background:var(--dafa-surface); border:0; border-radius:12px;
}
.classification-directory {display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:16px;align-items:start}
.classification-directory-toggle {display:none}
.classification-directory-panel {display:contents}
.classification-directory+.classification-directory {margin-top:14px}
.classification-directory-heading {display:flex;align-items:center;gap:8px;min-height:34px;line-height:20px}
.classification-directory-heading>span {color:var(--dafa-text);font-size:13px;font-weight:600;white-space:nowrap}
.classification-filters button,.classification-filters summary,.classification-pager button {
  font:inherit;font-size:13px;cursor:pointer;color:var(--dafa-text);background:transparent;border:1px solid transparent;
  border-radius:6px;padding:9px 12px;min-height:40px;line-height:1.5;box-shadow:none;
}
.classification-categories {display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.classification-categories button {display:inline-flex;align-items:center;text-align:left;padding:6px 10px;min-height:34px;white-space:nowrap;position:relative;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.classification-filters [data-business] {background:var(--dafa-surface);border-color:var(--dafa-border)}
.classification-filters [data-business=""] {color:var(--dafa-text);border-color:var(--dafa-border);background:var(--dafa-bg)}
.classification-filters [data-business=""][aria-pressed=true] {color:var(--dafa-text-soft);border-color:var(--dafa-border);background:var(--dafa-bg)}
.classification-filters [data-business]:not([data-business=""])[aria-pressed=true] {background:var(--classification-primary-selected-bg);border-color:var(--classification-selected-border);color:var(--classification-selected-text);font-weight:600}

.classification-filters button:hover,.classification-filters summary:hover {color:var(--dafa-accent-strong);background:var(--dafa-bg)}
.classification-refine {display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px 16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--dafa-border)}
.classification-toolbar,.classification-more {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.classification-more {grid-column:2;margin-top:0;padding:12px;border-radius:8px;background:var(--dafa-bg)}
.classification-facet {position:relative;min-width:0}
.classification-facet summary {display:flex;align-items:center;gap:7px;list-style:none;white-space:nowrap;background:var(--dafa-bg);border-color:transparent;min-height:36px;padding:7px 10px}
@media(min-width:641px) {
 .classification-toolbar {gap:6px}
 .classification-toolbar>.classification-facet>summary {padding-inline:8px}
 .classification-refine-heading {align-self:start;min-height:36px}
}
.classification-facet summary::-webkit-details-marker {display:none}
.classification-facet summary:after {content:'';width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 8px}
.classification-facet[open] summary:after {transform:rotate(225deg);margin-bottom:0}
.classification-facet.has-selection summary,.classification-facet[open] summary {border-color:var(--classification-selected-border)}
.classification-facet.has-selection summary {color:var(--classification-selected-text);background:var(--dafa-surface);font-weight:500}
.classification-facet [data-legacy-selected]:empty,.classification-facet [data-selected]:empty,[data-filter-count]:empty {display:none}
.classification-facet [data-legacy-selected],.classification-facet [data-selected] {font-size:12px;line-height:18px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--classification-selected-text)}
[data-filter-count] {font-size:11px;line-height:18px;min-width:18px;text-align:center;border-radius:4px;background:var(--classification-selected-bg);color:var(--classification-selected-text)}
.classification-options {position:absolute;top:calc(100% + 8px);left:0;width:300px;max-width:calc(100vw - 48px);max-height:min(420px,60dvh);display:flex;flex-direction:column;background:var(--dafa-surface-elevated);border:1px solid var(--dafa-border);box-shadow:var(--dafa-shadow);border-radius:10px;padding:10px;z-index:12}
.classification-option-list {overflow:auto;overscroll-behavior:contain;min-height:0}
.classification-options label {display:flex;gap:10px;padding:10px;min-height:42px;align-items:center;font-size:13px;line-height:1.6;cursor:pointer;border-radius:5px}
.classification-options label:hover {background:var(--dafa-bg)}
.classification-options label:has(input:checked) {background:var(--classification-selected-bg);color:var(--classification-selected-text)}
.classification-options input:is([type=checkbox],[type=radio]) {flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--dafa-accent)}
.classification-option-search {flex-shrink:0;display:block;width:100%;max-width:100%;min-height:42px;box-sizing:border-box;border:1px solid var(--dafa-border);border-radius:6px;padding:9px 10px;margin-bottom:8px;background:var(--dafa-surface);color:var(--dafa-text);font:inherit;font-size:14px}
.classification-option-search::placeholder {color:var(--dafa-text-soft);opacity:1}
.classification-option-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;margin-top:8px;padding:10px 2px 0;border-top:1px solid var(--dafa-border)}
.classification-filters .classification-done {min-height:34px;padding:6px 18px;background:var(--dafa-accent);color:var(--dafa-on-accent)}
.classification-filters .classification-done:hover {background:var(--dafa-accent-strong);color:var(--dafa-on-accent)}
.classification-filters [data-facet-clear] {min-height:34px;padding:6px 8px;font-size:12px;color:var(--dafa-text-soft)}
.classification-filters [data-facet-clear]:disabled {opacity:.45;cursor:default;background:transparent}
.classification-filters :is(.classification-expand,[data-classification-more]) {display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:12px;color:var(--dafa-text-soft);padding:6px;min-height:34px}
.classification-filters :is(.classification-expand,[data-classification-more]):after {content:'+';font-size:17px;line-height:1;width:12px;text-align:center}
.classification-filters :is(.classification-expand,[data-classification-more])[aria-expanded=true]:after {content:'−'}
.classification-filters [data-classification-more] {margin-left:auto}
/* Price and file type keep their native menus and server-generated URLs. */
body .archive-page .classification-filters .news-filter-select {flex:0 1 auto;min-width:0;max-width:none}
body .archive-page .classification-filters .news-filter-select__toggle {min-height:40px;border:1px solid var(--dafa-border);border-radius:6px;background:var(--dafa-surface);padding:8px 11px;gap:7px;font-size:13px;grid-template-columns:auto auto auto}
body .archive-page .classification-filters .news-filter-select__label {font-size:13px;color:var(--dafa-text)}
body .archive-page .classification-filters .news-filter-select__value {font-size:12px;color:var(--dafa-text-soft)}
body .archive-page .classification-filters :is(.news-filter-select__label,.news-filter-select__value) {transform:none;line-height:20px}
body .archive-page .classification-filters .news-filter-select.has-selection .news-filter-select__toggle {border-color:var(--classification-selected-border);background:var(--classification-selected-bg)}
body .archive-page .classification-filters .news-filter-select__panel {border-radius:10px}
.classification-selected {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:16px;padding-top:14px;border-top:1px solid var(--dafa-border)}
.classification-selected:before {content:'已选条件';width:82px;flex-shrink:0;color:var(--dafa-text-soft);font-size:12px}
.classification-filters .classification-chip {display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:30px;padding:4px 8px;border-color:var(--dafa-border);background:var(--dafa-bg);color:var(--dafa-text);font-size:12px;text-align:left;overflow-wrap:anywhere}
.classification-chip span {font-size:17px;line-height:1;color:var(--dafa-text-soft)}
.classification-filters [data-classification-clear] {min-height:30px;padding:4px 8px;margin-left:auto;color:var(--dafa-text-soft);font-size:12px}
.classification-filters [data-classification-clear]:hover {text-decoration:underline}
/* 0.5.412: one results-toolbar row on every screen size.
   0.5.409-0.5.411 switched the row at the 640px media boundary: phones stacked
   排序 / 方向 / 视图 under the status, hid the 排序 / 方向 labels, widened the
   value column to 5em and grew the controls to 44px. A phone therefore showed a
   different control than a desktop did, and the switch was a jump.
   Every one of those values is now a ramp inside the toolbar, which is its own
   inline-size container. Each ramp starts at the phone value and reaches the
   exact 0.5.411 desktop value by a 560-585px content box, so a 768px-and-wider
   archive renders pixel for pixel as before while a phone keeps the labels, the
   order and the desktop geometry. Padding and margin sit on the container
   itself, where container units would be circular, so those two ramps read the
   viewport instead. The trailing padding reaches its 10px floor at 320px so the
   status keeps the width it needs to stay on one line. --toolbar-control is read
   by the toggle, the view toolbar and the view toggle. */
body .archive-page .classification-results-toolbar {margin:clamp(16px,calc(9.36px + 1.66vw),20px) 0 0;padding:clamp(10px,calc(5.8px + 1.31vw),14px) clamp(10px,calc(-4px + 4.375vw),24px);background:var(--dafa-surface);border:0;border-bottom:1px solid var(--dafa-border);border-radius:10px 10px 0 0;position:relative;z-index:7;container-type:inline-size;--toolbar-control:clamp(36px,calc(59.95px - 4.1cqi),44px)}
body .classification-results-toolbar .news-filter-controls {display:flex;align-items:center;gap:clamp(3px,calc(-2.77px + 1.92cqi),8px);flex-wrap:wrap}
.classification-status {flex:1 1 150px;min-width:0;font-size:15px;font-weight:600;color:var(--dafa-text);margin:0;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.classification-status:empty {display:none}
/* The status is the only item allowed to give way: it balances its sentence across
   two lines instead of shrinking the controls, and its 3em floor keeps the row on
   one line until the controls and the count truly cannot share 300px - a physical
   limit, not a breakpoint. */
body .classification-results-toolbar .classification-status {flex:1 1 3em;min-width:min(100%,3em);font-size:clamp(9px,calc(3.9px + 1.98cqi),15px);text-wrap:balance}
body .archive-page .classification-results-toolbar .news-filter-select {flex:0 0 auto;min-width:0;margin-left:0}
/* 0.5.409: the results-toolbar triggers (排序 / 方向 / 视图) read as quiet text on
   the toolbar surface instead of framed buttons; the 新闻 and 资料 archives both
   asked for the same treatment. A frame only appears as a hover / focus / open
   surface, and the dropdown panels keep their own border because they are menus. */
body .archive-page .classification-results-toolbar .news-filter-select__toggle {display:flex;border:1px solid transparent;border-radius:6px;background:transparent;height:var(--toolbar-control);min-height:var(--toolbar-control);padding:6px clamp(1px,calc(-6.96px + 2.65cqi),8px);font-size:clamp(9.4px,calc(5.5px + 1.33cqi),13px);gap:clamp(2px,calc(-2.55px + 1.52cqi),6px)}
body .archive-page .classification-results-toolbar .news-filter-select__label {flex:0 0 auto}
body .archive-page .classification-results-toolbar .news-filter-select__chevron {flex:0 0 auto;width:clamp(8px,calc(4.7px + 1.3cqi),12px);height:clamp(8px,calc(4.7px + 1.3cqi),12px)}
body .archive-page .classification-results-toolbar :is(.news-filter-select__label,.news-filter-select__value) {transform:translateY(-1px);align-self:center;line-height:20px}
body .archive-page .classification-results-toolbar .news-filter-select__panel {left:auto;right:0}
body .classification-results-toolbar .news-filter-controls>.archive-view-toolbar {flex:0 0 auto;width:auto;min-height:var(--toolbar-control);margin-left:0;padding-left:0;border:0}
body .classification-results-toolbar .archive-view-toggle {flex:0 0 auto;flex-basis:var(--toolbar-control);width:var(--toolbar-control);height:var(--toolbar-control);min-width:var(--toolbar-control);min-height:var(--toolbar-control);border:1px solid transparent;border-radius:6px;color:var(--dafa-text-soft);background:transparent}
body .classification-results-toolbar .archive-view-toggle svg {width:18px;height:18px}
body .archive-page .classification-results-toolbar :is(.news-filter-select__toggle,.archive-view-toggle):is(:hover,:focus-visible) {border-color:transparent;background:var(--dafa-bg);color:var(--dafa-text)}
body .archive-page .classification-results-toolbar .news-filter-select.is-open .news-filter-select__toggle {border-color:transparent;background:var(--dafa-bg);color:var(--dafa-accent-strong)}
body .classification-results-toolbar :is(.news-filter-select__toggle,.archive-view-toggle):focus-visible {outline:2px solid var(--dafa-accent);outline-offset:3px}
.classification-meta {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;order:1;min-width:0;margin-bottom:8px}
.classification-labels {font-size:12px;line-height:1.6;color:var(--dafa-text-soft);margin:0;overflow-wrap:anywhere;min-width:0}
.classification-match {display:inline-flex;flex:0 0 auto;align-items:center;padding:2px 6px;border-radius:4px;background:var(--dafa-surface-muted);color:var(--dafa-text-soft);font-size:11px;line-height:1.5;white-space:nowrap}
.classification-match[data-match="可能适用"] {background:transparent;border:1px dashed var(--dafa-border)}
.classification-pager {display:flex;gap:14px;justify-content:center;margin:22px 0}
.classification-pager button {border-color:var(--dafa-border);background:var(--dafa-surface)}
.classification-pager button:disabled {opacity:.45;cursor:default}
.classification-empty {grid-column:1/-1;padding:48px 20px;text-align:center;color:var(--dafa-text-soft)}
.classification-details {margin:24px 0;padding:18px;border:1px solid var(--dafa-border);border-radius:8px;font-size:13px;background:var(--dafa-surface);color:var(--dafa-text)}
.classification-details dl {margin:12px 0 0}
.classification-details dl>div {display:flex;gap:18px;margin:7px 0}
.classification-details dt {flex:0 0 98px;color:var(--dafa-text-soft)}
.classification-details dd {margin:0;overflow-wrap:anywhere}
.classification-filters [hidden],.classification-pager[hidden],.archive-results [data-dafa-pagination][hidden] {display:none!important}
.classification-filters :focus-visible,.classification-pager :focus-visible {outline:2px solid var(--dafa-accent);outline-offset:3px}
.classification-filters .classification-mobile-toggle {display:none}
/* Keep the previous result readable while a new query is in flight. */
@media(max-width:640px) {
 .classification-filters {padding:16px;border-radius:10px}
 .classification-directory {grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .classification-directory-toggle {display:none}
 .classification-directory-panel {display:contents}
 .classification-directory--business {display:block}
 .classification-directory--business .classification-directory-toggle {display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:10px 12px;border-color:transparent;background:var(--dafa-bg);text-align:left;font-size:13px}
 .classification-directory--business .classification-directory-toggle:after {content:'+';font-size:18px;line-height:1}
 .classification-directory--business .classification-directory-toggle[aria-expanded=true]:after {content:'−'}
 .classification-directory--business .classification-directory-toggle [data-directory-count]:not(:empty) {display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:auto;border-radius:4px;background:var(--classification-selected-bg);color:var(--classification-selected-text);font-size:11px}
 .classification-directory--business .classification-directory-panel {display:none}
 .classification-directory--business.is-open .classification-directory-panel {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:8px}
 .classification-directory--business .classification-directory-panel>.classification-directory-heading {grid-column:1;grid-row:1;align-self:start}
 .classification-directory--business .classification-directory-panel>.classification-directory-heading>span {display:none}
 .classification-directory--business .classification-directory-panel>.filter-selection-actions {grid-column:2;grid-row:1;align-self:end}
 .classification-directory--business .classification-directory-panel>.classification-categories {grid-column:1/-1;grid-row:2}
 .classification-directory>.classification-directory-heading {grid-column:1;grid-row:1;align-self:center;margin:0}
 .classification-directory>.classification-expand {grid-column:2;grid-row:1;min-height:40px}
 .classification-categories {grid-column:1/-1;grid-row:2}
 .classification-directory+.classification-directory {margin-top:16px}
 .classification-directory-heading {min-height:0;margin-bottom:10px}
 .classification-categories {display:flex;flex-wrap:wrap;gap:6px;min-width:0}
 .classification-categories button {padding:6px 10px;font-size:12px;min-height:36px;white-space:nowrap}
 /* 0.5.411: the phone fold row is part of the frameless filter card family -
    its own var(--dafa-bg) fill already separates it from the card surface, so
    the outline was a second frame nobody asked for. Only border-color moves;
    the fill, the 44px target, the +/- affordance and the hover / focus colour
    change all stay. */
 .classification-filters .classification-mobile-toggle {display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:12px;border-color:transparent;background:var(--dafa-bg);font-size:13px}
 .classification-mobile-toggle:after {content:'+';margin-left:auto;font-size:18px}
 .classification-mobile-toggle[aria-expanded=true]:after {content:'−'}
 .classification-refine:not(.is-expanded) {display:none}
 .classification-refine {display:block;margin-top:12px;padding-top:0;border:0}
 .classification-refine-heading {display:none}
 .classification-toolbar,.classification-more {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
 .classification-more {padding:8px;margin-top:8px}
 .classification-facet,.classification-filters .news-filter-select {position:static}
 .classification-facet summary {position:relative;min-height:44px;height:100%;width:100%;padding:9px 26px 9px 10px;font-size:12px;gap:2px;flex-wrap:wrap}
 .classification-facet [data-selected],.classification-facet [data-legacy-selected] {flex-basis:100%;max-width:100%;font-size:11px}
 .classification-facet summary:after {position:absolute;right:12px;top:18px;margin:0}
 .classification-options {left:12px;right:12px;top:auto;width:auto;max-width:none;max-height:min(390px,55dvh);margin-top:6px}
 body .archive-page .classification-filters .news-filter-select__toggle {min-height:44px;padding:9px 10px;gap:4px}
 body .archive-page .classification-filters .news-filter-select__label {font-size:12px}
 body .archive-page .classification-filters .news-filter-select__panel {top:auto;left:12px;right:12px;width:auto;min-width:0;margin-top:6px}
 .classification-filters [data-classification-more] {grid-column:1/-1;justify-self:end;margin:0;min-height:36px}
 .classification-filters .classification-chip,.classification-filters [data-classification-clear] {min-height:36px}
 .classification-selected {margin-top:12px;padding-top:12px}
 .classification-selected:before {width:100%}
 /* 0.5.412: the results toolbar row is container-measured now, so this phone
    block keeps only the filter-card, facet and pager rules. */
 .classification-details dl>div {gap:8px}
 .classification-details dt {flex-basis:86px}
 .classification-meta {gap:5px;margin-bottom:6px}
 .classification-labels {font-size:11px}
}
/* Bound document previews before lazy images acquire their intrinsic height. */
.classification-filters ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media {position:relative;aspect-ratio:16/10}
.classification-filters ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media img {position:absolute;inset:0;width:100%;height:100%}
@media(max-width:640px) {
 .classification-filters ~ .archive-results[data-dafa-archive-view="list"] .entry-card__media {aspect-ratio:4/3}
}

/* A random sequence has no ascending or descending direction. */
body .classification-results-toolbar [data-resource-order] .news-filter-select__toggle:disabled {opacity:.55;cursor:default}

/* Result navigation is independent of filter choices. */
.classification-pager {align-items:center;flex-wrap:wrap;gap:10px}
.classification-page-status {font-size:13px;color:var(--dafa-text-soft);font-variant-numeric:tabular-nums}
.classification-page-jump {display:flex;align-items:center;gap:6px;margin:0}
.classification-page-jump input {width:64px;min-height:40px;border:1px solid var(--dafa-border);border-radius:6px;padding:6px;background:var(--dafa-surface);color:var(--dafa-text);font:inherit;font-size:13px}
.classification-error {padding:16px;margin-bottom:16px;border:1px solid var(--dafa-border);border-radius:8px;background:var(--dafa-bg)}
.classification-error[hidden] {display:none!important}
.classification-error p {margin:0 0 8px;font-size:14px}
.classification-empty button,.classification-error button {min-height:40px;padding:8px 12px;margin:4px;border:1px solid var(--dafa-border);border-radius:6px;background:var(--dafa-surface);color:var(--dafa-text);font:inherit;font-size:13px;cursor:pointer}
.classification-empty button:focus-visible,.classification-error button:focus-visible {outline:2px solid var(--dafa-accent);outline-offset:3px}
.classification-options label span {min-width:0;overflow-wrap:anywhere}
.classification-results-toolbar {scroll-margin-top:90px}
@media(max-width:640px) {
 .classification-options label,.classification-pager button,.classification-empty button,.classification-error button {min-height:44px}
 .classification-filters .classification-directory button,.classification-filters .classification-chip,.classification-filters [data-classification-clear],.classification-filters [data-facet-clear],.classification-filters .classification-done,.classification-filters [data-classification-more] {min-height:44px}
 .classification-page-jump {flex-basis:100%;justify-content:center}
}

/* These first-frame rules match the hydrated layout before the deferred script runs. */
.dafa-js:not(.dafa-files-fallback) .classification-legacy-source {display:none!important}
.dafa-js:not(.dafa-files-fallback) .classification-directory:not(:has([data-directory-expand][aria-expanded=true])) .classification-categories {flex-wrap:wrap;max-height:var(--classification-collapsed-height);overflow:clip}
.classification-categories button {flex-shrink:0;height:34px;box-sizing:border-box}
.classification-selected {min-height:45px}
.dafa-files-selected .classification-filters .classification-selected[hidden] {display:flex!important;visibility:hidden}
/* Reserve the existing sidebar proportion even while HTML is still streaming. */
body.category-files .content-shell.has-sidebar:not(:has(> .sidebar)):after {content:'';min-width:min(100%,19.375rem);flex:1 1 19.375rem}
.dafa-files-pending .classification-filters ~ .archive-results {position:relative;min-height:420px}
.dafa-files-pending .classification-filters ~ .archive-results :is(.entry-grid,[data-dafa-pagination],.classification-pager) {display:none!important}
.dafa-files-pending .classification-filters ~ .archive-results:before {content:'正在加载所选资料…';display:flex;align-items:center;justify-content:center;height:360px;color:var(--dafa-text-soft);font-size:14px;background:var(--dafa-surface);border-radius:10px}
.dafa-files-pending .classification-status {visibility:hidden}
/* 0.5.412: the value column reserve used to switch from 5em to 3em at the 640px
   media boundary, which is why the phone row was wider than the same row on a
   desktop. One container ramp replaces both floors: 0 for a phone-sized row and
   exactly the old 3em from a 560px content box up, so the desktop row keeps its
   previous geometry. */
body .classification-results-toolbar [data-news-filter-select]:not([data-resource-order]) .news-filter-select__value {min-width:clamp(0px,calc(3em + 17cqi - 95px),3em)}
body .classification-results-toolbar [data-resource-order] .news-filter-select__value {min-width:clamp(0px,calc(3em + 17cqi - 95px),3em)}
html:not(.dafa-js) .classification-filters,.dafa-files-fallback .classification-filters {display:none}
html:not(.dafa-js) .classification-legacy-source .news-filter-select__panel[hidden],.dafa-files-fallback .classification-legacy-source .news-filter-select__panel[hidden] {display:flex!important;position:static;flex-wrap:wrap}
@media(max-width:640px) {
 .classification-filters {--classification-collapsed-height:78px}
 .classification-categories button {height:36px}
 .classification-filters .classification-directory .classification-categories button {height:36px;min-height:36px;padding:6px 10px}
 .classification-selected {min-height:72px}
 .classification-filters .classification-selected :is(.classification-chip,[data-classification-clear],[data-news-clear]) {min-height:34px;padding:4px 7px;line-height:1.35}
 .classification-filters .classification-selected .classification-chip {gap:6px}
 .classification-filters .classification-selected .classification-chip span {font-size:15px}
}

/* Reserve the same control width when expanding and collapsing. */
.classification-expand {inline-size:6.5em}
.classification-filters :is(.classification-expand,.news-filter-directory__expand):disabled {cursor:default;color:var(--dafa-text-soft);background:transparent;opacity:1}

/* Facet counts: a fixed pill that never steals width from the option label. */
.classification-filters .classification-count {
  flex:0 0 auto;white-space:nowrap;margin-left:auto;padding:1px 6px;border-radius:999px;
  background:var(--dafa-bg);color:var(--dafa-text-soft);font-size:11px;font-weight:400;
  line-height:16px;font-variant-numeric:tabular-nums;letter-spacing:0
}
.classification-filters [data-business] {gap:6px;min-width:0}
.classification-filters [data-business]>.classification-label {
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
.classification-filters [data-business]>.classification-count {margin-left:0;background:transparent;padding-inline:0}
.classification-options label>.classification-count {margin-left:auto;background:var(--dafa-bg)}
.classification-options label:has(input:checked)>.classification-count {
  background:color-mix(in srgb,var(--dafa-surface) 70%,transparent)
}
.classification-options label>span:not(.classification-count) {flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
/* A choice with no result in the current combination stays visible but cannot be picked. */
.classification-filters [data-business]:disabled {
  opacity:.45;cursor:not-allowed;background:var(--dafa-surface);border-color:var(--dafa-border);color:var(--dafa-text)
}
.classification-filters [data-business]:disabled:hover {
  background:var(--dafa-surface);border-color:var(--dafa-border);color:var(--dafa-text)
}
.classification-options label.is-empty {opacity:.45;cursor:not-allowed}
.classification-options label.is-empty:hover {background:transparent}
.classification-options label.is-empty input {cursor:not-allowed}
.classification-notice {
  margin:12px 0 0;padding:8px 12px;border:1px solid var(--dafa-border);border-radius:6px;
  background:var(--dafa-bg);color:var(--dafa-text-soft);font-size:12px;line-height:1.6
}
@media(max-width:640px) {
  .classification-filters {--classification-collapsed-height:120px}
  .classification-filters .classification-count {font-size:10px;padding-inline:4px}
  .classification-options label>.classification-count {padding-inline:5px}
}

/* News uses the same filter card, selected strip and result toolbar as resources. */
body .archive-page .news-filter-form[data-news-unified] {display:contents;padding:0;margin:0 0 0;background:transparent;border:0;box-shadow:none}
[data-news-unified] .news-filter-directory__expand {inline-size:6.5em}
.dafa-js [data-news-unified] .news-filter-directory__choices {max-height:var(--classification-collapsed-height)}
[data-news-unified] .classification-selected button {text-decoration:none;border:1px solid transparent;border-radius:6px;line-height:1.5;cursor:pointer}
[data-news-unified] .classification-selected .classification-chip {border-color:var(--dafa-border)}
[data-news-unified] .classification-selected button:hover {color:var(--dafa-accent-strong);background:var(--dafa-bg)}
[data-news-unified] .classification-selected [data-news-clear] {display:inline-flex;align-items:center}
[data-news-unified] .news-filter-directory .news-filter-chip:has(input:checked) {background:var(--classification-primary-selected-bg)}
body .archive-page [data-news-unified] .classification-results-toolbar .news-filter-controls {padding:0;margin:0;border:0}
body .archive-page [data-news-unified] .classification-results-toolbar .news-filter-select {margin-left:0}
body .archive-page [data-news-unified] .classification-results-toolbar .news-filter-select__toggle:disabled {opacity:.55;cursor:default}
[data-news-unified] .classification-error {margin-top:12px}
body .archive-page [data-news-unified]:has(+ .archive-results[data-dafa-archive-view="grid"]) .classification-results-toolbar {margin-bottom:16px;border:0;border-radius:10px}
@media(max-width:640px) {
 [data-news-unified] .news-filter-directory .news-filter-chip {height:36px;min-height:36px;padding:6px 10px}
 [data-news-unified] .news-filter-directory .news-filter-directory__expand {min-height:44px}
 [data-news-unified] .news-filter-directory+.news-filter-directory {margin-top:16px}
 [data-news-unified] .classification-selected button {min-height:44px}
 .dafa-js [data-news-unified] .news-filter-directory:has([data-news-directory-expand][aria-expanded=true]) .news-filter-directory__choices,
 .dafa-loading-fallback [data-news-unified] .news-filter-directory:not([data-news-directory-ready]) .news-filter-directory__choices {max-height:none}
}

html:not(.dafa-js) [data-news-selected] {display:none}

/* Selection modes share the same quiet control in both archives. */
.filter-selection-actions {display:flex;align-items:center;gap:4px}
/* Reserve control space from first paint; only show expand when folding hides choices. */
.classification-directory .classification-expand,
[data-news-unified] .news-filter-directory__expand {visibility:hidden;pointer-events:none}
.classification-directory[data-directory-overflow="true"] .classification-expand,
[data-news-unified] .news-filter-directory[data-directory-overflow="true"] .news-filter-directory__expand {visibility:visible;pointer-events:auto}
/* Keep the title on the first choice centerline and group the mode closely below it. */
body .archive-page [data-news-unified] .news-filter-directory__heading,
.classification-directory>.classification-directory-heading {display:grid;grid-template-rows:20px 34px;align-items:center;justify-items:start;gap:0;min-height:0;margin:0;padding-top:7px;line-height:20px}
/* The importance group is the only news group without a selection-mode control.
   With the fixed second row reserved for that control the group would be 61px
   tall while its single chip row is 34px, leaving an empty band above the next
   group. An auto second row collapses to 0 when nothing occupies it and still
   measures 34px/44px wherever a mode control exists. (release 0.5.387) */
body .archive-page [data-news-unified] .news-filter-directory--flags .news-filter-directory__heading {grid-template-rows:20px auto}
@media(min-width:641px) {
 body .archive-page [data-news-unified] .news-filter-directory {grid-template-columns:72px minmax(0,1fr) auto}
 .classification-directory-panel>.classification-directory-heading {display:grid;grid-template-columns:1fr;grid-template-rows:20px 34px;align-items:center;justify-items:start;gap:0;min-height:0;margin:0;padding-top:7px;line-height:20px}
}
.classification-filters .filter-selection-mode {display:inline-flex;align-items:center;justify-content:center;gap:6px;inline-size:5.5em;min-height:34px;box-sizing:border-box;margin:0;padding:6px;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.5;color:var(--dafa-text-soft);cursor:pointer;user-select:none}
.classification-filters .filter-selection-mode input {appearance:auto;flex:0 0 15px;width:15px;height:15px;margin:0;accent-color:var(--classification-selected-text);cursor:inherit}
.classification-filters :is(.classification-directory-heading,.news-filter-directory__heading)>.filter-selection-mode {justify-content:flex-start;padding-inline:0}
.classification-filters .filter-selection-mode:has(input:checked) {color:var(--classification-selected-text)}
.filter-selection-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid var(--dafa-border);flex-shrink:0;font-size:12px;color:var(--dafa-text-soft)}
[data-selection-multiple=true] :is(button[data-selection-option][aria-pressed=true],label.news-filter-chip:has(input:checked)):after {content:'✓';position:absolute;right:2px;top:1px;font-size:9px;line-height:1;color:var(--classification-selected-text);pointer-events:none}
html:not(.dafa-js) .filter-selection-mode {display:none}
/* Align each row on its centerline, including different text sizes and icons. */
.classification-filters :is(.classification-categories button,.classification-facet>summary,.filter-selection-mode,.classification-expand,[data-classification-more]),
body .archive-page [data-news-unified] :is(.news-filter-chip,.news-filter-directory__expand) {line-height:20px}
body .archive-page [data-news-unified] .news-filter-chip :is(span,small),
.classification-filters .filter-selection-mode>span {display:inline-flex;align-items:center;line-height:20px}
/* One optical text offset for the whole row; checkbox and icon boxes stay centered.
   Full line boxes avoid clipping CJK fallback fonts or mixing cap-height metrics. */
body .archive-page [data-news-unified] .news-filter-chip,
.classification-filters :is(.classification-categories button,.classification-expand,[data-classification-more]),
body .archive-page [data-news-unified] .news-filter-directory__expand {padding-block:5px 7px}
body .archive-page [data-news-unified] .news-filter-chip :is(span,small) {line-height:20px;transform:none}
body .archive-page [data-news-unified] .filter-directory-label,
.classification-filters :is(.classification-directory-heading>span,.filter-selection-mode>span) {transform:translateY(-1px)}
/* Draw +/- around the control center instead of using a font-dependent baseline. */
.classification-filters :is(.classification-expand,.news-filter-directory__expand,[data-classification-more]) {position:relative;padding-inline-end:25px}
.classification-filters :is(.classification-expand,.news-filter-directory__expand,[data-classification-more]):after {content:'';position:absolute;inset-inline-end:6px;top:50%;width:10px;height:10px;transform:translateY(-50%);background:linear-gradient(currentColor,currentColor) center/10px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 10px no-repeat}
.classification-filters :is(.classification-expand,.news-filter-directory__expand,[data-classification-more])[aria-expanded=true]:after {content:'';background-size:10px 1.5px,0 0}
@media(max-width:640px) {
 .classification-directory>.filter-selection-actions,.news-filter-directory>.filter-selection-actions {grid-column:2;grid-row:1}
 .classification-filters .filter-selection-mode {min-height:44px}
 body .archive-page [data-news-unified] .news-filter-directory__heading,
 .classification-directory>.classification-directory-heading {grid-template-rows:20px 44px;padding-top:0;align-self:start}
 .classification-directory>.filter-selection-actions,.news-filter-directory>.filter-selection-actions,
 body .archive-page [data-news-unified] .news-filter-directory>.news-filter-directory__expand {align-self:end}
}
/* 0.5.399: on phones every news facet group folds on its own — 平台 and 类型 are
   two separate rows, the same contract the resource archive facets use. Desktop
   keeps every group inline, so the per-group wrapper has to stay out of the way
   there: display:contents leaves the heading, the choices and the expand button
   exactly where the group grid already expects them. */
@media(min-width:641px) {
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine {display:contents}
}
@media(max-width:640px) {
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-mobile-toggle {grid-column:1/-1;grid-row:1;margin-top:0}
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine.is-expanded {display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0;padding:0;border:0}
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine>.filter-selection-actions {grid-column:2;grid-row:1;align-self:end}
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine>.news-filter-directory__heading {grid-template-rows:auto 44px}
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine>.news-filter-directory__heading>.filter-directory-label {display:none}
 body .archive-page [data-news-filter-collapse] .news-filter-directory>.classification-refine>.news-filter-directory__heading>.filter-selection-mode {grid-row:2}
 /* 0.5.472: the two collapsed news facets share one phone row. Opening either
    facet returns both groups to the full-width layout so choices keep usable
    targets instead of being squeezed into half a phone. */
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse] {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
 }
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse]:has(
  >.news-filter-directory>.classification-mobile-toggle[aria-expanded=true]
 ) {grid-template-columns:minmax(0,1fr)}
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse]>.news-filter-directory {min-width:0}
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse]>.news-filter-directory+.news-filter-directory {margin-top:0}
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse]>.classification-selected,
 body .archive-page [data-news-unified] .classification-filters[data-news-filter-collapse]>.classification-error {grid-column:1/-1}
}
@media(max-width:640px) {
  /* 0.5.473: match the news archive's compact phone filter row. The business
     directory and the "other filters" trigger share one row while collapsed;
     opening either one restores the full-width stacked layout. */
  body.category-files .classification-filters[data-classification-layout="business-first"] {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    align-items:start;
  }
  body.category-files .classification-filters[data-classification-layout="business-first"]:has(
    >.classification-directory.is-open,
    >.classification-mobile-toggle[aria-expanded=true]
  ) {
    grid-template-columns:minmax(0,1fr);
  }
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-directory,
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-mobile-toggle {
    min-width:0;
  }
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-mobile-toggle {
    margin-top:0;
  }
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-refine {
    grid-column:1/-1;
    margin-top:0;
  }
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-selected,
  body.category-files .classification-filters[data-classification-layout="business-first"]>.classification-error {
    grid-column:1/-1;
  }
}
/* 重要程度/风险等级 sit directly in the results toolbar, matching the resource
   archive controls between the result count and the sort controls. */
body .archive-page .classification-results-toolbar .news-filter-levels {display:contents}
body .archive-page .classification-results-toolbar .news-filter-levels .news-filter-select {margin-left:0}
body .archive-page .news-filter-levels .news-filter-select--levels .news-filter-select__label {display:inline}
body .archive-page .news-filter-levels .news-filter-select--levels .news-filter-select__value.has-selection {color:var(--dafa-accent-strong);font-weight:600}
body .archive-page .news-filter-levels .news-filter-select--levels > .news-filter-select__panel {width:192px;min-width:0;max-width:calc(100vw - 32px)}
body .archive-page .news-filter-levels .news-filter-select--levels:first-child > .news-filter-select__panel {left:0;right:auto}
body .archive-page .news-filter-levels .news-filter-select--levels:last-child > .news-filter-select__panel {left:auto;right:0}
body .archive-page .news-filter-levels .news-filter-select--levels {
  --classification-selected-bg:var(--dafa-surface);
  --classification-selected-border:color-mix(in srgb,var(--dafa-accent) 65%,var(--dafa-border));
  --classification-selected-text:color-mix(in srgb,var(--dafa-accent) 55%,var(--dafa-text-soft));
}
body .archive-page .news-filter-levels .news-filter-select--levels :is(.filter-selection-heading,.classification-option-actions) {padding-inline:2px}
body .archive-page .news-filter-levels .news-filter-select--levels .filter-selection-heading {gap:8px;margin:0 0 6px;padding-bottom:8px}
body .archive-page .news-filter-levels .news-filter-select--levels .filter-selection-mode {display:inline-flex;align-items:center;justify-content:center;gap:6px;inline-size:5.5em;min-height:34px;box-sizing:border-box;margin:0;padding:6px;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.5;color:var(--dafa-text-soft);cursor:pointer;user-select:none}
body .archive-page .news-filter-levels .news-filter-select--levels .filter-selection-mode input {appearance:auto;flex:0 0 15px;width:15px;height:15px;margin:0;accent-color:var(--classification-selected-text);cursor:inherit}
body .archive-page .news-filter-levels .news-filter-select--levels .filter-selection-mode>span {display:inline-flex;align-items:center;line-height:20px;transform:translateY(-1px)}
body .archive-page .news-filter-levels .news-filter-select--levels .filter-selection-mode:has(input:checked) {color:var(--classification-selected-text)}
body .archive-page .news-filter-levels .news-filter-select--levels .classification-option-actions {margin-top:0;padding-top:8px}
body .archive-page .news-filter-levels .news-filter-select--levels .classification-done {min-height:34px;padding:6px 16px;border:0;background:var(--dafa-accent);color:var(--dafa-on-accent);font:inherit;font-size:13px;cursor:pointer}
body .archive-page .news-filter-levels .news-filter-select--levels .classification-done:hover,body .archive-page .news-filter-levels .news-filter-select--levels .classification-done:focus-visible {background:var(--dafa-accent-strong);color:var(--dafa-on-accent)}
body .archive-page .news-filter-levels .news-filter-select--levels [data-news-flag-clear] {min-height:34px;padding:6px 8px;border:0;background:transparent;color:var(--dafa-text-soft);font:inherit;font-size:12px;cursor:pointer}
body .archive-page .news-filter-levels .news-filter-select--levels [data-news-flag-clear]:hover:not(:disabled),body .archive-page .news-filter-levels .news-filter-select--levels [data-news-flag-clear]:focus-visible:not(:disabled) {color:var(--dafa-accent-strong)}
body .archive-page .news-filter-levels .news-filter-select--levels [data-news-flag-clear]:disabled {opacity:.45;cursor:default}
@media(max-width:640px) {
 body .archive-page .news-filter-levels .news-filter-select--levels :is(.classification-done,[data-news-flag-clear],.filter-selection-mode) {min-height:44px}
 body .archive-page .news-filter-levels .news-filter-select--levels > .news-filter-select__panel {max-height:min(340px,55dvh)}
}
/* The empty 已选条件 strip must not paint: .classification-selected prints its
   label through :before, and its display:flex outranks the [hidden] default that
   the template already emits when no condition is chosen. (0.5.401) */
[data-news-unified] .classification-selected[hidden] {display:none}

/* 0.5.463: result toolbars keep their controls inline on desktop and merge the
   filter and sort controls into one disclosure entry when the toolbar's own
   content box is narrower than 840px, reserving room for scoped search. The server emits this final structure so
   the narrow first paint does not move controls or flash a temporary row. */
body .classification-results-toolbar .archive-toolbar-group,
body .classification-results-toolbar .archive-toolbar-panel,
body .classification-results-toolbar .archive-toolbar-panel__content {display:contents}
body .classification-results-toolbar .archive-toolbar-trigger {display:none}
body .classification-results-toolbar .archive-toolbar-group--combined {display:none}
/* Resources share one control tree across viewport sizes, in reading order. */
body .classification-results-toolbar[data-archive-toolbar-render="source-order"] .archive-toolbar-group--combined {display:contents}

@container (max-width:839px) {
 body .classification-results-toolbar .news-filter-controls {
  display:grid;
   grid-template-columns:minmax(0,1fr) max-content max-content;
  grid-template-areas:"status combined view";
  align-items:center;
   gap:4px;
 }
 body .classification-results-toolbar .classification-status {
  grid-area:status;
  align-self:center;
  min-width:0;
  min-height:44px;
  margin:0;
  font-size:14px;
  line-height:44px;
  white-space:nowrap;
 }
 body .classification-results-toolbar .news-filter-controls>.archive-view-toolbar {
  grid-area:view;
  align-self:center;
   justify-self:end;
  margin:0;
 }
 body .classification-results-toolbar .archive-toolbar-group {
  display:block;
  min-width:0;
 }
 body .classification-results-toolbar .archive-toolbar-group--filter,
 body .classification-results-toolbar .archive-toolbar-group--sort {display:none}
 body .classification-results-toolbar .archive-toolbar-group--combined {grid-area:combined}
 body .classification-results-toolbar[data-archive-toolbar-render="source-order"] .archive-toolbar-group--combined {display:block}
 body .classification-results-toolbar .archive-toolbar-trigger {
  display:flex;
   width:auto;
  min-width:0;
  height:44px;
  align-items:center;
  gap:6px;
   padding:0 6px;
   border:0;
  border-radius:7px;
  background:var(--dafa-surface);
  color:var(--dafa-text);
  font:inherit;
  font-size:13px;
  line-height:1;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
 }
 body .classification-results-toolbar .archive-toolbar-trigger__label {
  flex:0 0 auto;
  font-weight:600;
  white-space:nowrap;
 }
 body .classification-results-toolbar .archive-toolbar-count {
  display:inline-flex;
  flex:0 0 auto;
  min-width:19px;
  height:19px;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  background:var(--dafa-accent);
  color:var(--dafa-on-accent);
  font-size:11px;
  font-variant-numeric:tabular-nums;
 }
 body .classification-results-toolbar .archive-toolbar-count[hidden] {display:none}
  body .classification-results-toolbar .archive-toolbar-summary {display:none}
 body .classification-results-toolbar .archive-toolbar-trigger--combined:after {
   content:'';
   flex:0 0 auto;
   width:6px;
   height:6px;
   margin:0 3px 3px auto;
   border-right:1.5px solid currentColor;
   border-bottom:1.5px solid currentColor;
   transform:rotate(45deg);
  }
 body .classification-results-toolbar .archive-toolbar-group--combined.is-open .archive-toolbar-trigger--combined:after {
   margin-bottom:0;
   transform:rotate(225deg);
  }
 body .classification-results-toolbar .archive-toolbar-trigger:is(:hover,:focus-visible),
 body .classification-results-toolbar .archive-toolbar-group.is-open .archive-toolbar-trigger {
  background:var(--dafa-bg);
 }
 body .classification-results-toolbar .archive-toolbar-trigger:focus-visible {
  outline:2px solid var(--dafa-accent);
  outline-offset:2px;
 }
 body .classification-results-toolbar .archive-toolbar-group.has-selection .archive-toolbar-trigger {
   background:color-mix(in srgb,var(--dafa-accent) 8%,transparent);
 }
 body .classification-results-toolbar .archive-toolbar-panel {
  position:absolute;
  z-index:70;
  top:calc(100% + 8px);
  left:0;
  right:0;
  display:none;
  max-width:100%;
  box-sizing:border-box;
  padding:10px;
  border:1px solid var(--dafa-border);
  border-radius:9px;
  background:var(--dafa-surface);
  box-shadow:var(--dafa-shadow);
 }
 body .classification-results-toolbar .archive-toolbar-group.is-open .archive-toolbar-panel {display:block}
 body .classification-results-toolbar .archive-toolbar-panel__content {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
 }
 body .archive-page .classification-results-toolbar .news-filter-levels {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
 }
 body .archive-page [data-news-unified] .classification-results-toolbar .archive-toolbar-panel__content>.news-filter-levels {
   grid-column:1/-1;
 }
 body .classification-results-toolbar .archive-toolbar-panel .news-filter-select {
  width:100%;
  min-width:0;
  max-width:none;
 }
 body .archive-page .classification-results-toolbar .archive-toolbar-panel .news-filter-select__toggle {
  width:100%;
  height:44px;
  min-height:44px;
  padding-inline:10px;
  border-color:var(--dafa-border);
  background:var(--dafa-surface);
  font-size:12px;
 }
 body .archive-page .classification-results-toolbar .archive-toolbar-panel .news-filter-select__panel {
  max-width:calc(100vw - 32px);
 }
 body .classification-results-toolbar .archive-view-toggle {
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
 }
}

/* At the narrowest phone width the count, combined filter entry and view
   toggle no longer fit on one line together. Keep the view toggle beside the
   count and wrap the compact filter entry beneath them. */
@media (max-width:340px) {
 body .classification-results-toolbar .news-filter-controls {
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-areas:"status view" "combined combined";
  row-gap:0;
 }
 body .classification-results-toolbar .archive-toolbar-group--combined {
  justify-self:start;
 }
}

@media (max-width:340px) {
 body .classification-results-toolbar[data-archive-toolbar-render="source-order"] .news-filter-controls {grid-template-areas:"status status" "combined view"}
}

/* Without the disclosure enhancement, retain access to every original control
   rather than leaving an empty two-row toolbar. */
html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-trigger,
.dafa-files-fallback .classification-results-toolbar .archive-toolbar-trigger {display:none}
html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-group,
.dafa-files-fallback .classification-results-toolbar .archive-toolbar-group {display:block}
html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-group--combined,
.dafa-files-fallback .classification-results-toolbar .archive-toolbar-group--combined {display:none}
html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-panel,
.dafa-files-fallback .classification-results-toolbar .archive-toolbar-panel {display:contents}
html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-panel__content,
.dafa-files-fallback .classification-results-toolbar .archive-toolbar-panel__content {display:flex;flex-wrap:wrap;gap:8px}
@container (max-width:839px) {
 html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-group--filter,
 html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-group--sort,
 .dafa-files-fallback .classification-results-toolbar .archive-toolbar-group--filter,
 .dafa-files-fallback .classification-results-toolbar .archive-toolbar-group--sort {display:none}
 html:not(.dafa-js) .classification-results-toolbar .archive-toolbar-group--combined,
 .dafa-files-fallback .classification-results-toolbar .archive-toolbar-group--combined {display:block}
}

/* News and resource directories share a quiet filter treatment. */
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) {
  --directory-choice-bg:color-mix(in srgb,var(--dafa-bg) 58%,var(--dafa-surface));
  --directory-default-bg:color-mix(in srgb,var(--dafa-border) 28%,var(--dafa-surface));
  --directory-selected-bg:color-mix(in srgb,var(--dafa-accent) 5%,color-mix(in srgb,var(--dafa-border) 36%,var(--dafa-surface)));
  --directory-count-ink:color-mix(in srgb,var(--dafa-text-soft) 90%,var(--dafa-text));
}
html[data-dafa-color-scheme="dark"] body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) {
  --directory-choice-bg:color-mix(in srgb,var(--dafa-border) 16%,var(--dafa-surface));
  --directory-default-bg:color-mix(in srgb,var(--dafa-border) 37%,var(--dafa-surface));
  --directory-selected-bg:color-mix(in srgb,var(--dafa-accent) 8%,color-mix(in srgb,var(--dafa-border) 54%,var(--dafa-surface)));
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-directory .news-filter-chip,.classification-categories [data-business]) {
  border-color:transparent;border-radius:999px;background:var(--directory-choice-bg);color:var(--dafa-text-soft);box-shadow:none;
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-directory .news-filter-chip,.classification-categories [data-business]):where(:hover:not(:disabled):not(:has(input:disabled))) {
  background:var(--directory-default-bg);color:var(--dafa-text);
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-chip[data-news-directory-clear],[data-business=""])[aria-pressed="true"] {
  background:var(--directory-default-bg);color:var(--dafa-text-soft);font-weight:600;
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-directory .news-filter-chip:has(input:checked),.classification-categories [data-business]:not([data-business=""])[aria-pressed="true"]) {
  border-color:transparent;background:var(--directory-selected-bg);color:var(--dafa-text);font-weight:600;
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-directory .news-filter-chip>small,.classification-categories [data-business]>.classification-count) {
  color:var(--directory-count-ink);font-weight:400;
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) [data-selection-multiple="true"] :is(.news-filter-chip:has(input:checked),[data-business][aria-pressed="true"])::after {content:none}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) .filter-selection-mode:has(>input:checked) {color:var(--dafa-text-soft)}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) .filter-selection-mode>input:checked {accent-color:var(--dafa-accent)}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.classification-expand,.news-filter-directory__expand,[data-classification-clear],.classification-chip):not(:disabled):hover {
  color:var(--dafa-text);background:var(--directory-default-bg);
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.classification-chip,[data-directory-count],[data-filter-count]) {
  border-color:transparent;background:var(--directory-default-bg);color:var(--dafa-text-soft);
}
body .archive-page [data-classification-filters][data-classification-layout="business-first"] .classification-refine .classification-facet>summary {
  border-color:transparent;background:transparent;color:var(--dafa-text-soft);
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(.news-filter-directory .news-filter-chip,.classification-categories [data-business],.classification-refine .classification-facet>summary) {
  font-size:12px;
}
@media (hover:hover) {
  body .archive-page [data-classification-filters][data-classification-layout="business-first"] .classification-refine .classification-facet>summary:hover {
    background:var(--directory-default-bg);color:var(--dafa-text);
  }
}
body .archive-page [data-classification-filters][data-classification-layout="business-first"] .classification-refine .classification-facet:is([open],.has-selection)>summary {
  background:var(--directory-default-bg);color:var(--dafa-text);
}
body .archive-page [data-classification-filters][data-classification-layout="business-first"] .classification-refine .classification-facet>summary [data-selected] {color:var(--dafa-text-soft)}
body .archive-page [data-classification-filters][data-classification-layout="business-first"] .classification-refine .classification-facet .classification-option-list>label {
  font-size:12px;
}
body .archive-page :is([data-news-filter-collapse],[data-classification-filters][data-classification-layout="business-first"]) :is(button,summary,input):focus-visible,
body .archive-page [data-news-filter-collapse] .news-filter-chip:has(>input:focus-visible) {
  outline:2px solid var(--dafa-text-soft);outline-offset:-2px;
}

/* The same source controls remain available when enhancement is unavailable. */
:is(html:not(.dafa-js),html.dafa-files-fallback) body .classification-results-toolbar[data-archive-toolbar-render="source-order"] .archive-toolbar-group--combined {display:contents}

/* assets/css/resource-download.css */
/* ErphpDown keeps the links, copy handlers and permission checks. */
body.erphpdown-body {
  --dafa-download-text: #172033;
  --dafa-download-muted: #687386;
  --dafa-download-surface: #fff;
  --dafa-download-soft: #f5f6f8;
  --dafa-download-border: #e1e5ec;
  --dafa-download-accent: #b2431d;
  --dafa-download-on-accent: #fff;
  /* This standalone document does not load site.css. Keep its action tokens aligned. */
  --dafa-download-hover-gradient: var(--dafa-button-hover-gradient-light, linear-gradient(110deg, #b85614 0%, #9c285f 100%));
  --dafa-download-hover-text: #fffaf6;
  --dafa-download-hover-shadow: var(--dafa-action-hover-shadow, 0 5px 12px rgb(0 0 0 / 18%), 0 1px 3px rgb(0 0 0 / 12%));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--dafa-download-surface);
  color: var(--dafa-download-text);
}

html.dafa-color-dark body.erphpdown-body {
  --dafa-download-text: #e6e9ee;
  --dafa-download-muted: #abb3bf;
  --dafa-download-surface: #181d25;
  --dafa-download-soft: #242b35;
  --dafa-download-border: #353e4c;
  --dafa-download-hover-gradient: var(--dafa-button-hover-gradient-dark, linear-gradient(110deg, #efaf61 0%, #d874a0 100%));
  --dafa-download-hover-text: #16110f;
}

#erphpdown-download {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  min-height: 0;
  flex-shrink: 0;
  margin: auto;
  padding: 20px;
  font: 14px/1.65 "Microsoft Yahei", sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}

#erphpdown-download .msg > p {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dafa-download-border);
  text-align: left;
}

#erphpdown-download .msg p .tit {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  color: var(--dafa-download-text);
  font-weight: 600;
}

#erphpdown-download .link {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--dafa-download-accent);
  color: var(--dafa-download-on-accent);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}

#erphpdown-download a:not(.link):not(.erphpdown-copy) { color: var(--dafa-download-accent); }
#erphpdown-download .link:is(:hover, :focus-visible) {
  background: var(--dafa-download-accent) var(--dafa-download-hover-gradient);
  color: var(--dafa-download-hover-text);
  box-shadow: var(--dafa-download-hover-shadow);
  filter: none;
  opacity: 1;
}
#erphpdown-download a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#erphpdown-download .link:focus-visible { outline-color: var(--dafa-download-accent); }

@media (prefers-reduced-motion: no-preference) {
  #erphpdown-download .link { transition: transform 160ms ease, box-shadow 160ms ease; }
  #erphpdown-download .link:is(:hover, :focus-visible) { transform: translateY(-1px); }
}
#erphpdown-download .title { color: var(--dafa-download-muted); font-size: 13px; }
#erphpdown-download .title span::before,
#erphpdown-download .title span::after { display: none; }
#erphpdown-download .hidden-title { margin: 12px 0 6px; }
#erphpdown-download .hidden-content { margin-top: 0; text-align: center; }
#erphpdown-download .hidden-content > div { margin: 8px 0; }
#erphpdown-download .erphpdown-code {
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 7px;
  border: 0;
  border-radius: 4px;
  background: var(--dafa-download-soft);
  color: var(--dafa-download-text);
  font: inherit;
  line-height: 1.6;
  vertical-align: middle;
  user-select: all;
  overflow-wrap: anywhere;
}

#erphpdown-download .erphpdown-copy {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 6px;
  color: var(--dafa-download-muted);
  font-size: 13px;
  line-height: 1.6;
  vertical-align: middle;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#erphpdown-download img { max-width: 100%; height: auto; }

/* Compact download document. The unenhanced/waiting page retains the legacy fallback. */
html.dafa-download-document { background: #f5f6f8; color-scheme: light; }
html.dafa-download-document.dafa-color-dark { background: #11161d; color-scheme: dark; }
.dafa-download-document body.erphpdown-body { display: block; min-height: 0; padding: 32px 16px; background: transparent; }
.dafa-download-document #erphpdown-download { width: 100%; max-width: 400px; margin: 0 auto; padding: 0; border: 1px solid var(--dafa-download-border); border-radius: 10px; background: var(--dafa-download-surface); overflow: hidden; }
.dafa-download-embedded body.erphpdown-body { padding: 0; }
.dafa-download-embedded #erphpdown-download { max-width: none; border: 0; border-radius: 0; }
.dafa-download-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; min-height: 54px; box-sizing: border-box; border-bottom: 1px solid var(--dafa-download-border); }
#erphpdown-download .dafa-download-header h1 { margin: 0; font: 500 15px/1.6 "Microsoft Yahei",sans-serif; color: var(--dafa-download-text); }
.dafa-download-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--dafa-download-muted); cursor: pointer; }
.dafa-download-close:hover { background: var(--dafa-download-soft); }
.dafa-download-document #erphpdown-download .msg { padding: 22px; }
.dafa-download-document #erphpdown-download [hidden] { display: none !important; }
.dafa-download-document #erphpdown-download .msg > .dafa-download-row { margin: 0; padding: 15px 0; border: 0; border-bottom: 1px solid var(--dafa-download-border); text-align: left; }
.dafa-download-document #erphpdown-download .msg > .dafa-download-row:first-of-type { padding-top: 0; }
.dafa-download-document #erphpdown-download .msg > .dafa-download-row:last-of-type { padding-bottom: 0; border-bottom: 0; }
.dafa-download-multi .dafa-download-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; align-items: center; }
.dafa-download-file { display: block; min-width: 0; }
.dafa-download-document #erphpdown-download .dafa-download-file .tit { display: block; margin: 0 0 6px; color: var(--dafa-download-text); font-size: 14px; font-weight: 500; line-height: 1.6; text-align: left; overflow-wrap: anywhere; }
.dafa-download-document #erphpdown-download.dafa-download-single .tit { font-size: 16px; font-weight: 600; }
.dafa-download-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--dafa-download-muted); font-size: 12px; line-height: 1.6; }
.entry-card__filetype { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 5px; background: rgb(71 85 105 / 8%); color: rgb(71 85 105); font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.entry-card__filetype-icon { width: 14px; height: 14px; flex: 0 0 auto; }
.entry-card__filetype--doc { color: rgb(43 108 176); background: rgb(43 108 176 / 8%); }
.entry-card__filetype--pdf { color: rgb(185 28 28); background: rgb(185 28 28 / 8%); }
.entry-card__filetype--xls { color: rgb(47 133 90); background: rgb(47 133 90 / 8%); }
.entry-card__filetype--ppt { color: rgb(192 86 33); background: rgb(192 86 33 / 8%); }
.entry-card__filetype--zip { color: rgb(107 70 193); background: rgb(107 70 193 / 8%); }
.dafa-color-dark .entry-card__filetype--doc { color: #60a5fa; background: #60a5fa18; }
.dafa-color-dark .entry-card__filetype--pdf { color: #f87171; background: #f8717118; }
.dafa-color-dark .entry-card__filetype--xls { color: #4ade80; background: #4ade8018; }
.dafa-color-dark .entry-card__filetype--ppt { color: #fb923c; background: #fb923c18; }
.dafa-color-dark .entry-card__filetype--zip { color: #c084fc; background: #c084fc18; }
.dafa-color-dark .entry-card__filetype--txt { color: #abb3bf; }
.dafa-download-document #erphpdown-download .dafa-download-action,
.dafa-download-document #erphpdown-download a.dafa-download-recover { display: flex; align-items: center; justify-content: center; gap: 7px; box-sizing: border-box; min-height: 44px; padding: 10px 14px; margin: 20px 0 0; border: 0; border-radius: 7px; font-size: 14px; font-weight: 400; line-height: 1.6; text-decoration: none; background: var(--dafa-download-accent); color: var(--dafa-download-on-accent); cursor: pointer; }
.dafa-download-document #erphpdown-download.dafa-download-multi .dafa-download-action { width: auto; min-height: 38px; margin: 0; padding: 7px 10px; background: transparent; border: 1px solid var(--dafa-download-border); color: var(--dafa-download-accent); white-space: nowrap; }
.dafa-download-document #erphpdown-download.dafa-download-multi .dafa-download-action:hover { border-color: var(--dafa-download-accent); }
.dafa-download-icon { width: 17px; height: 17px; flex: 0 0 auto; }
.dafa-download-extras { grid-column: 1 / -1; display: block; margin-top: 6px; }
.dafa-download-extras:empty { display: none; }
.dafa-download-status { grid-column: 1 / -1; display: block; margin-top: 8px; color: var(--dafa-download-muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.dafa-download-status:empty { display: none; }
.dafa-download-document #erphpdown-download .erphpdown-download-da { margin: 0 22px; padding: 17px 0 22px; border-top: 1px solid var(--dafa-download-border); text-align: center; font-size: 13px; line-height: 1.7; }
.dafa-download-document #erphpdown-download .erphpdown-download-da:empty { display: none; }
.dafa-download-document #erphpdown-download .erphpdown-download-da a { color: var(--dafa-download-accent); }
.dafa-download-document #erphpdown-download .erphpdown-download-da p { margin: 0; }
.dafa-download-error { display: flex; gap: 9px; color: var(--dafa-download-muted); text-align: left; }
.dafa-download-error > svg { flex: 0 0 auto; margin-top: 3px; color: var(--dafa-download-accent); }
.dafa-download-error p { margin: 0; }
.dafa-download-error a { text-decoration: underline; }
.dafa-download-close:focus-visible { outline: 2px solid var(--dafa-download-accent); outline-offset: -2px; }
/* Only the actual download links animate; login, payment and advertising stay still. */
.dafa-download-action { position: relative; isolation: isolate; overflow: hidden; transition: transform .22s ease,box-shadow .22s ease; }
.dafa-download-action::before { content: ""; position: absolute; inset: -50% auto -50% -65%; width: 45%; background: linear-gradient(90deg,transparent,#ffffff60,transparent); transform: skewX(-22deg); pointer-events: none; z-index: -1; }
.dafa-download-single .dafa-download-action::before { animation: dafa-download-shine 4s ease-in-out 3; }
@media(hover:hover) { .dafa-download-action:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #b2431d33; } .dafa-download-action:hover::before { animation: dafa-download-shine 1.1s ease-out infinite; } .dafa-download-action:hover .dafa-download-icon { animation: dafa-download-arrow .85s ease-in-out infinite; } }
.dafa-download-action:active { transform: translateY(0) scale(.97); }
.dafa-download-action.is-launching .dafa-download-icon { animation: dafa-download-arrow .65s ease-in-out infinite; }
@keyframes dafa-download-shine { 0%,60% { left: -65%; } 100% { left: 135%; } }
@keyframes dafa-download-arrow { 0%,100% { transform: translateY(-2px); opacity: 1; } 55% { transform: translateY(4px); opacity: .5; } }
@media(prefers-reduced-motion:reduce) { .dafa-download-action,.dafa-download-action .dafa-download-icon,.dafa-download-action::before { animation: none !important; transition: none !important; transform: none !important; } .dafa-download-action::before { display: none; } }
@media(max-width:360px) { .dafa-download-document #erphpdown-download .msg { padding: 18px; } .dafa-download-multi .dafa-download-row { gap: 8px; } }

/* Soften article covers in the dark appearance. Keep inline illustrations at full brightness. */
html[data-dafa-color-scheme="dark"] .entry--single :is(.entry-featured-image > img, .dafa-entry-cover, .wechat-rss-ai-cover img, .amz-video-article__figure--cover img) {
  filter: brightness(.93);
}

/* assets/css/resource-acquisition.css */
/* Download experience: scoped to the existing resource card. */
body.dafa-theme .sidebar .dafa-resource-card {
  --dafa-resource-card-note-color: color-mix(in srgb, var(--dafa-text-soft) 95%, var(--dafa-surface));
  padding:18px 20px 4px;
  border-radius:12px;
}
body.dafa-theme .dafa-resource-card__summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; text-align:start; }
body.dafa-theme .dafa-resource-card__price { justify-content:flex-start; }
body.dafa-theme .dafa-resource-card__price { align-items:center; }
body.dafa-theme .dafa-resource-card__price strong { font-size:40px; font-weight:600; letter-spacing:-.02em; line-height:1; }
body.dafa-theme .dafa-resource-card__price span { font-size:12px; }
body.dafa-theme .dafa-resource-card__price--items strong { font-size:22px; }
body.dafa-theme .dafa-resource-card__vip { align-items:center; margin:0; padding:5px 7px; border-radius:5px; background:color-mix(in srgb, var(--dafa-accent-soft) 55%, var(--dafa-surface)); font-size:12px; line-height:1.4; }
.dafa-resource-card__specs { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 16px; padding:0; }
.dafa-resource-card__specs .dafa-resource-card__detail { display:flex; gap:5px; padding:0; margin:0; border:0; font-size:12px; line-height:1.6; }
.dafa-resource-card__specs dt { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.dafa-resource-card__specs dd { margin:0; color:var(--dafa-text-soft); }
body.dafa-theme .dafa-resource-card__actions { margin:0; }
.dafa-resource-card__action-row { display:grid; grid-template-columns:minmax(0, 4fr) minmax(0, 5fr); gap:8px; }
body.dafa-theme .sidebar .dafa-resource-card .dafa-resource-card__action-row > :is(a,button) { min-width:0; height:auto; min-height:44px!important; margin:0!important; padding:8px 4px!important; border-radius:7px!important; font-size:13px!important; font-weight:600!important; line-height:1.5!important; white-space:normal; transform:none!important; transition:none!important; }
body.dafa-theme .sidebar .dafa-resource-card .dafa-resource-card__action-row .amz-files-ai-reader-trigger { border:1px solid var(--dafa-border)!important; background:var(--dafa-surface)!important; color:var(--dafa-text)!important; box-shadow:none!important; }
.dafa-resource-card__action-row .amz-files-ai-reader-trigger__vip,
.dafa-resource-card__action-row .amz-files-ai-reader-trigger__copy small { display:none!important; }
.dafa-resource-card__action-row .amz-files-ai-reader-trigger__copy strong { font-size:13px!important; line-height:1.5!important; font-weight:600!important; }
.dafa-resource-card__access-note { margin:9px 0 0; font-size:12px; line-height:1.6; color:var(--dafa-text-soft); }
.dafa-resource-card__conversion > .dafa-resource-card__access-note { color:var(--dafa-resource-card-note-color); }
.dafa-resource-card__actions + .dafa-resource-card__access-note { margin-top:10px; }
.dafa-resource-card__access-note + .dafa-resource-card__access-note { margin-top:5px; }
.dafa-resource-card__notes-content .dafa-resource-card__refund-note { margin:0 0 8px; }
.dafa-resource-card__notes-content .dafa-resource-card__refund-note:last-child { margin-bottom:0; }
.dafa-resource-card > .dafa-resource-card__access-note { margin:12px 0 14px; }
body.dafa-theme .dafa-resource-card__notes { margin-top:12px; padding:0; border-top:1px solid var(--dafa-border); }
body.dafa-theme .dafa-resource-card__notes > summary { display:flex; align-items:center; min-height:44px; padding:8px 0; color:var(--dafa-resource-card-note-color); font-size:12px; font-weight:550; }
.dafa-resource-card__notes-content { padding-top:2px; color:var(--dafa-resource-card-note-color); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.dafa-resource-card__notes-content a { color:inherit; }
body.dafa-theme .sidebar .dafa-resource-card .dafa-resource-card__actions a.erphpdown-vip:not([data-aikb-primary-purchase]) { min-height:44px!important; margin:0 auto!important; padding:10px 8px!important; font-size:12px!important; }
.dafa-resource-card :is(a,button,summary):focus-visible { outline:2px solid var(--dafa-accent-strong); outline-offset:3px; }
@media(max-width:390px) { body.dafa-theme .sidebar .dafa-resource-card { padding-inline:16px; } }

body.dafa-theme .sidebar .dafa-resource-card .amz-files-ai-reader-trigger__copy strong { color:var(--dafa-text)!important; }

.dafa-resource-card__benefit-link { display:inline-flex; align-items:center; min-height:44px; margin:-12px -3px -12px 6px; padding:0 3px; color:inherit; font-size:12px; }

.dafa-resource-card__context { display:grid; gap:4px; margin:16px 0 0; padding:10px 12px; border-radius:6px; background:color-mix(in srgb, var(--dafa-surface-muted) 45%, var(--dafa-surface)); }
.dafa-resource-card__context-row { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); column-gap: 8px; margin: 0; font-size: 12px; line-height: 1.6; }
.dafa-resource-card__context dt { margin: 0; color: var(--dafa-resource-card-note-color); }
.dafa-resource-card__context dd { margin: 0; color: var(--dafa-text-soft); overflow-wrap: anywhere; }

body.dafa-theme .dafa-resource-card__notes > summary { justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
body.dafa-theme .dafa-resource-card__notes > summary::-webkit-details-marker { display:none; }
body.dafa-theme .dafa-resource-card__notes > summary::marker { content:""; }
body.dafa-theme .dafa-resource-card__notes > summary::after { content:""; width:16px; height:16px; flex:none; border:0; background-color:var(--dafa-text-soft); -webkit-mask-mode:alpha; mask-mode:alpha; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.4 8.6 12 13.2l4.6-4.6 1.4 1.4-6 6-6-6z'/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.4 8.6 12 13.2l4.6-4.6 1.4 1.4-6 6-6-6z'/%3E%3C/svg%3E") center / 16px 16px no-repeat; transform:none; transition:transform 160ms ease; }
body.dafa-theme .dafa-resource-card__notes[open] > summary::after { transform:rotate(180deg); }

body.dafa-theme .dafa-resource-card__notes[open] > .dafa-resource-card__notes-content { padding-bottom: 14px; }

body.dafa-theme .dafa-resource-card__notes-list { margin:0; padding:0 0 0 1.5em; }
body.dafa-theme .dafa-resource-card__notes-list:not(:last-child) { margin-bottom:12px; }
body.dafa-theme .dafa-resource-card__notes-list li { margin:0; padding:0; }
body.dafa-theme .dafa-resource-card__notes-list li + li { margin-top:4px; }

body.dafa-theme .dafa-resource-card__price--waived,
body.dafa-theme .dafa-resource-card__price--waived strong { color:var(--dafa-text-soft); }
body.dafa-theme .dafa-resource-card__price--waived strong { text-decoration-line:line-through; text-decoration-thickness:2px; text-decoration-color:currentColor; }


body.dafa-theme .sidebar .dafa-resource-card :is(#erphpdown, .dafa-resource-card__action-row) a.dafa-resource-card__primary-action.erphpdown-down:not(.erphpdown-buy) {
  background: #1c7c4a !important;
  color: #fff !important;
}
body.dafa-theme .sidebar .dafa-resource-card :is(#erphpdown, .dafa-resource-card__action-row) a.dafa-resource-card__primary-action.erphpdown-down:not(.erphpdown-buy):is(:hover, :focus-visible) {
  background: #16643c !important;
  color: #fff !important;
}
body.dafa-theme .sidebar .dafa-resource-card :is(#erphpdown, .dafa-resource-card__action-row) a.dafa-resource-card__primary-action.erphpdown-down:not(.erphpdown-buy):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
body.dafa-theme:has(.dafa-resource-card a.dafa-resource-card__primary-action.erphpdown-down:not(.erphpdown-buy)) .dafa-resource-purchase-bar__action {
  background: #1c7c4a;
  color: #fff;
}
body.dafa-theme:has(.dafa-resource-card a.dafa-resource-card__primary-action.erphpdown-down:not(.erphpdown-buy)) .dafa-resource-purchase-bar__action:is(:hover, :focus-visible) {
  background: #16643c;
  color: #fff;
}

body.dafa-theme .sidebar .dafa-resource-card .dafa-resource-card__action-row > :is(a, button):is(:hover, :focus-visible, :active) {
  transform: none !important;
}

/* assets/css/public-rail-0.5.845.css */
/* Source: desktop-navigation-0.5.516.css */
/* The same WordPress menu serves the desktop rail and existing mobile drawer. */
/* Hover stays quieter than the selected destination. */
.dafa-navigation-rail { display: contents; }
.dafa-navigation-collapse,
.dafa-desktop-search-label { display: none; }
.dafa-rail-menu-heading { display: none !important; }

@media (min-width: 1024px) {
  html[data-dafa-layout="sidebar"] { --dafa-rail-width: 220px; }
  html[data-dafa-layout="sidebar"].dafa-nav-collapsed { --dafa-rail-width: 76px; }
  html[data-dafa-layout="sidebar"] body { padding-left: var(--dafa-rail-width); }

  /* A filtered sticky ancestor would make the fixed rail scroll with it. */
  html[data-dafa-layout="sidebar"] .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--dafa-surface);
  }
  html[data-dafa-layout="sidebar"] .header-row {
    display: flex;
    min-height: 72px;
    gap: 0;
  }
  .site-header .dafa-navigation-rail {
    position: fixed;
    z-index: 25;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--dafa-rail-width);
    flex-direction: column;
    border-right: 1px solid var(--dafa-border);
    background: var(--dafa-surface);
  }
  .dafa-navigation-rail .site-branding {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 94px;
    padding: 20px 16px;
  }
  .dafa-navigation-rail .dafa-brand-link { justify-content: flex-start; min-width: 0; }
  .dafa-navigation-rail .dafa-brand-svg { gap: 8px; }
  .dafa-navigation-rail .dafa-brand-svg__svg { flex-basis: 34px; width: 34px; height: 34px; }
  .dafa-navigation-rail .dafa-brand-svg__name { font-size: 21px; }
  .dafa-navigation-rail .dafa-brand-svg__tagline { font-size: 10px; letter-spacing: 0; }

  #site-navigation.primary-navigation {
    position: static;
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--dafa-border) transparent;
    padding: 0 12px 18px;
    max-height: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  #site-navigation > ul { display: grid; gap: 4px; width: 100%; }
  #site-navigation > ul > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
  }
  #site-navigation > ul > li > a {
    display: flex;
    grid-column: 1;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 44px;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 14px;
    font-weight: 500;
  }
  #site-navigation > ul > li:not(.menu-item-has-children) > a { grid-column: 1 / -1; }
  #site-navigation > ul > li > a::after { display: none; }
  #site-navigation > ul > li > a .dafa-nav-icon {
    display: inline-flex;
    width: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
  }
  #site-navigation > ul > li > a .dafa-nav-icon svg { width: 20px; height: 20px; }
  #site-navigation > ul > li > a .dafa-nav-label { min-width: 0; }
  #site-navigation > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-blog-ancestor) > a,
  #site-navigation > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-blog-ancestor) > a:hover {
    color: var(--dafa-accent-strong);
    background: color-mix(in srgb, var(--dafa-accent) 6%, var(--dafa-surface));
  }
  #site-navigation > ul > li > a:hover { background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)); }
  .dafa-navigation-rail .dafa-rail-appearance .footer-appearance__trigger:hover { background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)); }
  #site-navigation > ul > li > a .dafa-nav-badge {
    position: static;
    display: inline-flex;
    margin-left: 5px;
    vertical-align: middle;
  }
  #site-navigation .submenu-toggle {
    position: static;
    display: grid;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    width: 32px;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--dafa-text-soft);
    font-size: 0;
  }
  #site-navigation .submenu-toggle::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-2px, -2px);
  }
  #site-navigation .submenu-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  #site-navigation .submenu-toggle:hover { color: var(--dafa-accent); background: var(--dafa-surface-muted); }

  /* Explicit disclosure wins over legacy hover/focus and mega-menu grids. */
  #site-navigation.primary-navigation .sub-menu {
    position: static;
    inset: auto;
    display: none;
    grid-column: 1 / -1;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 4px 0 8px 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    white-space: normal;
  }
  #site-navigation.primary-navigation > ul > li > .sub-menu { margin-left: 22px; padding-left: 17px; border-left: 1px solid var(--dafa-border); }
  #site-navigation.primary-navigation .is-submenu-open > .sub-menu { display: block; }
  #site-navigation .sub-menu li { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: start; }
  #site-navigation .sub-menu a { grid-column: 1; padding: 8px 4px; border: 0; font-size: 13px; line-height: 1.6; }
  #site-navigation .sub-menu li:not(.menu-item-has-children) > a { grid-column: 1 / -1; }
  #site-navigation .sub-menu .submenu-toggle { width: 28px; height: 36px; }
  #site-navigation .sub-menu .sub-menu { padding-left: 12px; }
  #site-navigation .dafa-mega-card__title { font-size: 13px; font-weight: 500; }
  #site-navigation .dafa-mega-card__desc { display: none; }
  .dafa-navigation-collapse {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 48px;
    margin: 0 12px;
    padding: 12px 16px 12px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dafa-text-soft);
    font-size: 13px;
  }
  .dafa-navigation-collapse:hover { background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)); color: var(--dafa-text); }
  .dafa-navigation-collapse span { flex: 1; text-align: left; }
  .dafa-navigation-collapse svg { flex: 0 0 20px; }
  .dafa-navigation-collapse .dafa-collapse-arrow { transform: rotate(-90deg); }
  html.dafa-nav-collapsed .dafa-navigation-collapse .dafa-collapse-arrow { transform: rotate(90deg); }
  html.dafa-nav-collapsed .dafa-navigation-collapse .dafa-collapse-context { display: none; }

  html.dafa-nav-collapsed .dafa-navigation-rail .site-branding { justify-content: center; padding-inline: 12px; }
  html.dafa-nav-collapsed .dafa-navigation-rail .dafa-brand-svg__copy { display: none; }
  html.dafa-nav-collapsed #site-navigation > ul > li { grid-template-columns: minmax(0, 1fr); }
  html.dafa-nav-collapsed #site-navigation > ul > li > a { grid-column: 1 / -1; justify-content: center; padding-inline: 0; }
  html.dafa-nav-collapsed #site-navigation > ul > li > .submenu-toggle,
  html.dafa-nav-collapsed #site-navigation.primary-navigation .sub-menu { display: none; }
  html.dafa-nav-collapsed #site-navigation.primary-navigation > ul > .is-rail-menu-open > .sub-menu {
    position: fixed;
    z-index: 40;
    inset: var(--dafa-flyout-top, 12px) auto auto var(--dafa-flyout-left, 84px);
    display: block;
    width: 240px;
    max-width: calc(100vw - 100px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: var(--dafa-surface);
    color: var(--dafa-text);
    box-shadow: 0 12px 40px rgb(0 0 0 / 12%);
    scrollbar-width: thin;
    scrollbar-color: var(--dafa-border) transparent;
  }
  html.dafa-nav-collapsed #site-navigation > ul > .is-rail-menu-open > a {
    color: var(--dafa-accent-strong);
    background: color-mix(in srgb, var(--dafa-accent) 6%, var(--dafa-surface));
  }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .dafa-rail-menu-heading { display: block !important; margin: 0 4px 6px; border-bottom: 1px solid var(--dafa-border); }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .sub-menu a { min-height: 40px; padding: 9px 12px; border-radius: 6px; font-size: 13px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .dafa-rail-menu-heading > a { display: flex; min-height: 40px; padding: 8px; font-size: 14px; font-weight: 600; }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .sub-menu a:hover { color: var(--dafa-accent-strong); background: var(--dafa-surface-muted); }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .sub-menu :is(a, button):focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: -2px; }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .sub-menu .is-submenu-open > .sub-menu { display: block; }
  html.dafa-nav-collapsed #site-navigation .is-rail-menu-open .sub-menu .sub-menu { padding: 0 0 4px 12px; }
  html.dafa-nav-collapsed #site-navigation > ul > li > a .dafa-nav-label,
  html.dafa-nav-collapsed .dafa-navigation-collapse span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
  html.dafa-nav-collapsed .dafa-navigation-collapse { justify-content: center; padding-inline: 0; }

  html[data-dafa-layout="sidebar"] .header-actions { display: flex; width: 100%; gap: 16px; }
  html[data-dafa-layout="sidebar"] .header-search { order: -1; flex: 1 1 auto; margin-right: auto; }
  html[data-dafa-layout="sidebar"] .header-search__toggle {
    display: flex;
    width: min(420px, 100%);
    min-height: 40px;
    height: auto;
    gap: 10px;
    justify-content: flex-start;
    padding: 8px 14px;
    border: 1px solid var(--dafa-border);
    border-radius: 8px;
    background: var(--dafa-bg);
    color: var(--dafa-text-soft);
  }
  .header-search__toggle .dafa-desktop-search-label { display: inline; font-size: 13px; }
}

/* Source: desktop-layout-0.5.519.css */
/* Responsive content layout for the desktop navigation rail. */
/* Outer page regions are separated by their surfaces, without framing rules. */
html[data-dafa-layout="sidebar"] body .site-footer { border-top: 0; }
html[data-dafa-layout="sidebar"] body .archive-hero { border-bottom: 0; }
/* Local search is part of the browsing task, not the optional sidebar. */
html[data-dafa-layout="sidebar"] .archive-page .content-column > .archive-search:not(.dafa-scoped-search-panel) {
  width: min(460px, 100%);
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-dafa-layout="sidebar"] .archive-page .content-column > .archive-search:not(.dafa-scoped-search-panel) .archive-hero__search {
  width: 100%;
  max-width: none;
  margin: 0;
}

.dafa-rail-appearance { display: none; }

@media (min-width: 1024px) {
  html[data-dafa-layout="sidebar"] .site-footer [data-dafa-color-mode-control] { display: none; }
  html[data-dafa-layout="sidebar"]:not(.dafa-nav-collapsed) { --dafa-rail-width: 208px; }
  html[data-dafa-layout="sidebar"]:not(.dafa-nav-collapsed) .dafa-rail-appearance .mobile-color-mode__options { width: 100%; }
  /* Keep menu geometry stable when expanding children creates a scrollbar. */
  html[data-dafa-layout="sidebar"]:not(.dafa-nav-collapsed) #site-navigation { scrollbar-gutter: stable; }
  /* Hidden button text must not create a second grid row for the chevron. */
  #site-navigation .submenu-toggle { position: relative; }
  #site-navigation .submenu-toggle:hover { background: transparent; }
  #site-navigation .submenu-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 2px)) rotate(45deg);
  }
  #site-navigation .submenu-toggle[aria-expanded="true"]::after {
    transform: translate(-50%, calc(-50% + 2px)) rotate(225deg);
  }
  html[data-dafa-layout="sidebar"] .site-header .dafa-navigation-rail { border-right: 0; }
  /* Give right-hand widgets useful measure while preserving the main column. */
  html[data-dafa-layout="sidebar"] body:has(.content-shell.sidebar-right > .sidebar) { --dafa-container: 1360px; }
  /* The content canvas now has two navigation widths; protect its primary column. */
  html[data-dafa-layout="sidebar"] .content-shell.has-sidebar { gap: 28px; }
  html[data-dafa-layout="sidebar"] .content-shell.has-sidebar > .content-column { flex-basis: 42rem; }
  html[data-dafa-layout="sidebar"] .content-shell.has-sidebar > .sidebar { flex-basis: 16rem; min-width: min(100%, 16rem); }
  html[data-dafa-layout="sidebar"] .archive-page .content-shell.has-sidebar > .sidebar { flex-basis: 15rem; min-width: min(100%, 15rem); }
  html[data-dafa-layout="sidebar"] .content-shell.has-sidebar.sidebar-right { gap: clamp(24px, calc(2.5vw - 12px), 32px); }
  html[data-dafa-layout="sidebar"] .content-shell.has-sidebar.sidebar-right > .sidebar {
    flex-basis: clamp(288px, calc(25vw - 24px), 336px);
    min-width: min(100%, clamp(288px, calc(25vw - 24px), 336px));
  }

  /* A compact introduction leaves the first useful task within the initial viewport. */
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
    gap: 32px;
    padding-block: 32px;
  }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-eyebrow { margin-bottom: 12px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-hero h1 {
    font-size: clamp(36px, 3.2vw, 48px);
    line-height: 1.3;
    letter-spacing: -.03em;
    margin-bottom: 20px;
  }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-hero__intro { font-size: 15px; line-height: 1.85; margin-bottom: 20px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-hero .scope-search { min-height: 52px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-hero .scope-search__submit { min-height: 40px; }
  html[data-dafa-layout="sidebar"] .editorial-home .discovery-carousel--files { padding: 20px; }
  html[data-dafa-layout="sidebar"] .editorial-home .discovery-carousel--files .discovery-heading { margin-bottom: 12px; }
  html[data-dafa-layout="sidebar"] .editorial-home .discovery-carousel--files .editorial-feature__image { height: 140px; margin-bottom: 12px; }
  html[data-dafa-layout="sidebar"] .editorial-home .discovery-carousel--files h3 { font-size: 17px; line-height: 1.55; margin-bottom: 8px; }
  html[data-dafa-layout="sidebar"] .editorial-home .discovery-carousel--files .discovery-reason { margin-bottom: 6px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks { margin-block: 8px 32px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__heading { margin-bottom: 16px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__heading h2 { font-size: 24px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__heading p { margin-top: 6px; font-size: 13px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__choices > a { min-height: 44px; padding-bottom: 10px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__panel { gap: 20px 32px; padding-top: 20px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__intro > p { font-size: 15px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__resources li { min-height: 64px; padding-block: 10px; }
  html[data-dafa-layout="sidebar"] .editorial-home .resource-tasks__tools { padding-left: 24px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-section { padding-top: 32px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-heading { padding-bottom: 16px; }
  html[data-dafa-layout="sidebar"] .editorial-home .editorial-heading h2 { font-size: 23px; }

  /* Browsing rows use their available column, rather than scaling type with the viewport. */
  html[data-dafa-layout="sidebar"] .archive-page .archive-hero { padding-block: 20px; }
  html[data-dafa-layout="sidebar"] .archive-page .archive-title { font-size: 34px; }
  html[data-dafa-layout="sidebar"] .archive-page .archive-description { margin-top: 10px; font-size: 14px; }
  html[data-dafa-layout="sidebar"] .archive-page .content-shell { padding-top: 24px; }
  html[data-dafa-layout="sidebar"] .archive-results[data-dafa-archive-view="list"] .entry-grid { padding-inline: 20px; }
  html[data-dafa-layout="sidebar"] body .archive-results[data-dafa-archive-view="list"] .entry-card {
    grid-template-columns: minmax(144px, min(30%, 280px)) minmax(0, 1fr);
    gap: 20px;
    padding-block: 18px;
  }
  html[data-dafa-layout="sidebar"] body .archive-results[data-dafa-archive-view="list"] .entry-card__title { font-size: 20px; line-height: 1.45; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__title { font-size: 20px; line-height: 1.45; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news { padding-block: 16px; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 12px; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__kicker { grid-column: 1; grid-row: 1; align-self: center; margin-bottom: 8px; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .news-flags { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 8px; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__title { grid-column: 1 / -1; grid-row: 2; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-card__excerpt { grid-column: 1 / -1; grid-row: 3; }
  html[data-dafa-layout="sidebar"] body.tax-blogs .archive-results[data-dafa-archive-view="list"] .entry-card--news .entry-meta { grid-column: 1 / -1; grid-row: 4; padding-top: 8px; }
  html[data-dafa-layout="sidebar"] body .archive-results[data-dafa-archive-view="list"] .entry-card__excerpt { margin-top: 8px; font-size: 14px; line-height: 1.7; }
  html[data-dafa-layout="sidebar"] body .archive-results[data-dafa-archive-view="list"] .entry-card__footer { padding-top: 10px; }

  /* Detail text and media use the content column, including wrapped sidebars. */
  html[data-dafa-layout="sidebar"] .single-page { --dafa-reading: 100%; }
  html[data-dafa-layout="sidebar"] .single-page .entry { padding: 28px; }
  html[data-dafa-layout="sidebar"] .single-page .entry-content { max-width: none; margin-inline: auto; }
  html[data-dafa-layout="sidebar"] body .single-page .entry-content > * { max-width: 100%; }
  html[data-dafa-layout="sidebar"] body .single-page .entry-header--center .entry-title {
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(26px, 2.4vw, 32px);
  }
  html[data-dafa-layout="sidebar"] .single-page .entry-header { padding-bottom: 20px; margin-bottom: 20px; }
  html[data-dafa-layout="sidebar"] body .single-page .entry-header--center .entry-deck { max-width: 100%; margin-inline: auto; font-size: 16px; }
  html[data-dafa-layout="sidebar"] .search-hero { padding-block: 24px; }
  html[data-dafa-layout="sidebar"] .search-hero h1 { font-size: 34px; line-height: 1.4; }
}


/* Source: sidebar-tools-0.5.516.css */
.dafa-search-modal-host { display: contents; }

/* Mobile keeps the original header; rail-only labels are progressive enhancement. */
.dafa-rail-tool-label,
.dafa-rail-login-icon,
.dafa-desktop-search-scope { display: none; }

/* Rail tools share the navigation's subtle hover feedback. */
@media (min-width: 1024px) {
  html[data-dafa-sidebar-tools] body { --dafa-header-height: 0px; }
  html[data-dafa-sidebar-tools] body .site-header {
    position: static;
    height: 0;
    min-height: 0;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  html[data-dafa-sidebar-tools] .site-topbar { display: none; }
  html[data-dafa-sidebar-tools] .site-header .header-row { height: 0; min-height: 0; padding-block: 0; }
  html[data-dafa-sidebar-tools] .site-header .dafa-navigation-rail {
    top: var(--wp-admin--admin-bar--height, 0px);
    bottom: 0;
  }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .header-actions > .header-search {
    order: 0;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
  }
  html[data-dafa-sidebar-tools] .header-search__toggle {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--dafa-text);
  }
  html[data-dafa-sidebar-tools] .header-search__toggle .dafa-desktop-search-label { font-size: 14px; font-weight: 500; line-height: 1.6; }
  html[data-dafa-sidebar-tools] .header-search__toggle .dafa-desktop-search-scope { display: inline; margin-left: auto; color: color-mix(in srgb, var(--dafa-text-soft) 60%, var(--dafa-surface)); font-size: 12px; font-weight: 400; line-height: 1.6; white-space: nowrap; }
  html[data-dafa-sidebar-tools] .header-search__toggle:hover { background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)); }
  html[data-dafa-sidebar-tools] .header-search__toggle svg { flex: 0 0 20px; }
  html[data-dafa-sidebar-tools] #site-navigation { padding-bottom: 12px; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .header-actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    gap: 4px;
    margin: 0 12px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--dafa-border);
  }
  html[data-dafa-sidebar-tools] .header-actions > .header-auth-controls { order: -2; }
  html[data-dafa-sidebar-tools] .header-actions > .header-ai { order: -1; }
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-user { order: -1; }
  html[data-dafa-sidebar-tools] .header-auth-controls { flex-direction: column; align-items: stretch; gap: 4px; }
  html[data-dafa-sidebar-tools] .header-auth-controls > :is(.header-user, .header-notice) { display: block; }
  html[data-dafa-sidebar-tools] .header-auth-controls:has(> .header-user) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 4px;
  }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail .header-actions > .header-ai,
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-login-link,
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-user > .header-user__toggle,
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-notice > .header-notice__toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 10px 12px;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dafa-text);
    background: transparent;
  }
  html[data-dafa-sidebar-tools] .header-actions > .header-ai svg,
  html[data-dafa-sidebar-tools] .dafa-rail-login-icon,
  html[data-dafa-sidebar-tools] .header-notice__toggle > svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-user > .header-user__toggle { width: 48px; height: 48px; min-height: 48px; padding: 4px; gap: 0; border-radius: 50%; }
  html[data-dafa-sidebar-tools] .header-user__toggle .header-user__avatar { flex: 0 0 40px; width: 40px; height: 40px; }
  html[data-dafa-sidebar-tools] .header-user__toggle > .dafa-rail-tool-label { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-user > .header-user__toggle { width: 100%; }
  html[data-dafa-sidebar-tools] .header-actions > .header-ai .dafa-ai-icon { margin: 0; }
  html[data-dafa-sidebar-tools] .dafa-rail-tool-label { display: inline; }
  html[data-dafa-sidebar-tools] .header-user__crown {
    left: 32px;
    right: auto;
    top: auto;
    bottom: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--dafa-surface);
    border-radius: 50%;
    box-shadow: none;
  }
  html[data-dafa-sidebar-tools] .header-user__crown svg { width: 11px; height: 11px; }
  html[data-dafa-sidebar-tools] .header-auth-controls > .header-notice > .header-notice__toggle { width: 44px; height: 44px; min-height: 44px; justify-content: center; padding: 12px; gap: 0; }
  html[data-dafa-sidebar-tools] .header-notice__toggle > .dafa-rail-tool-label { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls:has(> .header-user) { flex-direction: column; align-items: stretch; gap: 4px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-notice > .header-notice__toggle { width: 100%; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-user__crown { left: calc(50% + 12px); }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail :is(.header-ai, .header-login-link, .header-user__toggle, .header-notice__toggle):hover {
    background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface));
    color: var(--dafa-accent-strong);
  }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail :is(button, a):focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: -2px; }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail :is(.header-user__panel, .header-notice__panel) {
    position: fixed;
    top: auto !important;
    bottom: 12px;
    left: calc(var(--dafa-rail-width) + 8px) !important;
    right: auto !important;
    width: min(360px, calc(100vw - var(--dafa-rail-width) - 32px));
    max-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px) - 24px) !important;
  }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-search__toggle { justify-content: center; padding-inline: 0; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-desktop-search-scope,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-desktop-search-label,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-tool-label { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed body .dafa-navigation-rail .header-actions > .header-ai,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-login-link,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-user > .header-user__toggle,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-notice > .header-notice__toggle {
    justify-content: center;
    gap: 0;
    padding-inline: 0;
    font-size: 0;
  }
}

/* Keep desktop controls reachable when the window has little vertical space. */
@media (min-width: 1024px) and (max-height: 560px) {
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .site-branding { min-height: 64px; padding-block: 8px; }
  html[data-dafa-sidebar-tools] #site-navigation { padding-bottom: 4px; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .header-actions { gap: 0; padding-block: 8px 0; }
  html[data-dafa-sidebar-tools] .header-auth-controls:has(> .header-user) { margin-bottom: 0; padding-bottom: 0; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls:has(> .header-user) { gap: 0; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .dafa-rail-appearance { margin-bottom: 0; }
}


/* Source: sidebar-appearance-0.5.517.css */
/* The same picker returns to its original footer on mobile. */
@media (min-width: 1024px) {
  .dafa-navigation-rail > .dafa-rail-appearance {
    display: block;
    flex: 0 0 auto;
    margin: 0 12px 8px;
    padding: 0;
    border: 0;
  }
  .dafa-rail-appearance > .mobile-color-mode__label { display: none; }
  .dafa-rail-appearance .footer-appearance { position: relative; }
  .dafa-rail-appearance .footer-appearance__trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dafa-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
  }
  .dafa-rail-appearance summary::-webkit-details-marker { display: none; }
  .dafa-rail-appearance .footer-appearance__trigger:hover,
  .dafa-rail-appearance details[open] > summary { background: var(--dafa-surface-muted); }
  .dafa-rail-appearance .footer-appearance__icon { display: flex; flex: 0 0 20px; }
  .dafa-rail-appearance svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dafa-rail-appearance .footer-appearance__text { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 6px; white-space: nowrap; }
  .dafa-rail-appearance .footer-appearance__state { font-size: 0; color: color-mix(in srgb, var(--dafa-text-soft) 60%, var(--dafa-surface)); }
  .dafa-rail-appearance [data-dafa-appearance-label] { color: inherit; font-size: 12px; font-weight: 400; }
  .dafa-rail-appearance .footer-appearance__chevron { display: none; }
  .dafa-rail-appearance .mobile-color-mode__options {
    position: absolute;
    z-index: 30;
    inset: auto 0 calc(100% + 8px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 196px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 5px;
    border: 0;
    border-radius: 9px;
    background: var(--dafa-surface);
    box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
  }
  .dafa-rail-appearance details:not([open]) > .mobile-color-mode__options { display: none; }
  .dafa-rail-appearance .mobile-color-mode__option {
    display: flex; align-items: center; justify-content: flex-start; gap: 9px;
    width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 5px;
    background: transparent; color: var(--dafa-text); font-size: 13px; font-weight: 400;
  }
  .dafa-rail-appearance .mobile-color-mode__option svg { width: 16px; height: 16px; }
  .dafa-rail-appearance .mobile-color-mode__option:hover,
  .dafa-rail-appearance .mobile-color-mode__option[aria-checked="true"] { background: var(--dafa-surface-muted); }
  .dafa-rail-appearance .mobile-color-mode__option[aria-checked="true"]::after { content: ""; width: 8px; height: 4px; margin-left: auto; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
  .dafa-rail-appearance :is(summary, button):focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: -2px; }
  html.dafa-nav-collapsed .dafa-rail-appearance .footer-appearance__trigger { justify-content: center; padding-inline: 0; }
  html.dafa-nav-collapsed .dafa-rail-appearance .footer-appearance__text { display: none; }
  html.dafa-nav-collapsed .dafa-rail-appearance .mobile-color-mode__options { inset: auto auto 0 calc(100% + 8px); }
}


/* Source: scoped-search-0.5.506.css */
/* Scope stays visible; the existing count/controls share their original toolbar row. */
.dafa-scoped-search-summary { display:flex; flex:1 1 160px; min-width:0; align-items:center; gap:8px; }
body .has-scoped-search .dafa-scoped-search-summary > .classification-status { flex:1 1 auto; min-width:0; min-height:0; line-height:1.4; white-space:normal; }
.dafa-scoped-search-controls { display:inline-flex; flex:0 0 auto; align-items:center; max-width:160px; }
body .dafa-scoped-search-trigger, body .dafa-scoped-search-clear {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:var(--toolbar-control, 40px);
  padding:6px 8px; border:0; border-radius:6px; background:transparent; color:var(--dafa-text); font:inherit; font-size:13px; cursor:pointer;
}
body .dafa-scoped-search-trigger { min-width:0; }
.dafa-scoped-search-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dafa-scoped-search-label--short { display:none; }
.dafa-scoped-search-icon { flex:0 0 16px; width:16px; height:16px; }
body .dafa-scoped-search-clear { flex:0 0 28px; width:28px; padding-inline:4px; }
.dafa-scoped-search-clear svg { width:16px; height:16px; }
.dafa-scoped-search-clear[hidden] { display:none; }
.dafa-scoped-search-controls.has-keyword { border-radius:6px; background:var(--dafa-accent-soft); }
body .dafa-scoped-search-controls.has-keyword button { color:var(--dafa-accent-strong); }
body :is(.dafa-scoped-search-trigger, .dafa-scoped-search-clear):hover { background:var(--dafa-bg); }
body :is(.dafa-scoped-search-trigger, .dafa-scoped-search-clear):focus-visible { outline:2px solid var(--dafa-accent); outline-offset:2px; }
body .archive-search.dafa-scoped-search-panel {
  display:none; position:fixed; inset:auto; z-index:90; box-sizing:border-box; width:min(380px, calc(100vw - 24px));
  max-width:none; margin:0; padding:18px; border:0; border-radius:10px; overflow:auto; overscroll-behavior:contain;
  background:var(--dafa-surface); color:var(--dafa-text); box-shadow:0 8px 32px color-mix(in srgb, var(--dafa-text) 18%, transparent);
}
body .archive-search.dafa-scoped-search-panel:popover-open { display:block; }
body .archive-search.dafa-scoped-search-panel.is-open { display:block; }
.dafa-scoped-search-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dafa-scoped-search-heading strong { font-size:16px; line-height:1.5; }
body .dafa-scoped-search-dismiss { min-height:36px; padding:4px 6px; border:0; background:transparent; color:var(--dafa-text-soft); font:inherit; font-size:12px; cursor:pointer; }
.dafa-scoped-search-hint { margin:4px 0 14px; color:var(--dafa-text-soft); font-size:12px; line-height:1.6; }
body .dafa-scoped-search-panel .archive-hero__search { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; max-width:none; margin:0; gap:8px; border:0; padding:0; background:transparent; }
body .dafa-scoped-search-panel .archive-hero__search label { min-width:0; }
body .dafa-scoped-search-panel input[type=search] { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--dafa-border); border-radius:6px; background:var(--dafa-bg); color:var(--dafa-text); font:inherit; font-size:14px; }
body .dafa-scoped-search-panel .archive-hero__search-submit { position:static; width:auto; min-width:64px; min-height:44px; padding:8px 12px; border:0; border-radius:6px; background:var(--dafa-accent); color:var(--dafa-on-accent); font:inherit; font-size:14px; cursor:pointer; }
body .dafa-scoped-search-panel .archive-hero__search-submit:is(:hover,:focus-visible) { background:var(--dafa-accent-strong); color:var(--dafa-on-accent); }
.dafa-scoped-search-panel :is(input,button):focus-visible { outline:2px solid var(--dafa-accent); outline-offset:2px; }
body .classification-selected.dafa-search-only, body [data-scoped-keyword-chip] { display:none !important; }
@container (max-width:699px) {
  body .has-scoped-search .dafa-scoped-search-summary { grid-area:status; min-width:0; min-height:44px; gap:4px; }
  body .has-scoped-search .dafa-scoped-search-summary > .classification-status { font-size:12px; line-height:14px; }
  .has-scoped-search .dafa-scoped-search-controls { width:68px; max-width:68px; }
  body .has-scoped-search .dafa-scoped-search-trigger { flex:1 1 auto; gap:3px; min-height:44px; padding-inline:3px; font-size:12px; }
  .has-scoped-search .dafa-scoped-search-label { display:none; }
  .has-scoped-search .dafa-scoped-search-label--short { display:inline; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .has-scoped-search .has-keyword .dafa-scoped-search-icon { display:none; }
  body .has-scoped-search .dafa-scoped-search-clear { min-height:44px; }
}
@media (max-width:640px) {
  body .news-filter-form:not([data-news-unified]) > .news-filter-controls.has-scoped-search { display:grid; grid-template-columns:68px minmax(0,1fr) minmax(0,.7fr) 36px; align-items:center; gap:4px; }
  .news-filter-form:not([data-news-unified]) .dafa-scoped-search-controls { width:68px; max-width:68px; }
  body .news-filter-form:not([data-news-unified]) .dafa-scoped-search-trigger { flex:1 1 auto; min-height:44px; padding-inline:3px; gap:3px; font-size:12px; }
  .news-filter-form:not([data-news-unified]) .dafa-scoped-search-label { display:none; }
  .news-filter-form:not([data-news-unified]) .dafa-scoped-search-label--short { display:inline; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .news-filter-form:not([data-news-unified]) .has-keyword .dafa-scoped-search-icon { display:none; }
  body .news-filter-form:not([data-news-unified]) .has-scoped-search .news-filter-select__toggle { width:100%; min-height:44px; padding-inline:6px; gap:4px; font-size:12px; }
  .news-filter-form:not([data-news-unified]) .has-scoped-search .news-filter-select__label { display:none; }
  body .news-filter-form:not([data-news-unified]) .has-scoped-search > .archive-view-toolbar { width:36px; min-width:0; padding:0; margin:0; }
}

/* Source: sidebar-width-menu-v20.css */
/* Three widths share one menu tree and the existing rail geometry contract. */
.dafa-navigation-width { display: none; }
.dafa-navigation-width-menu[hidden] { display: none !important; }
@media (min-width: 1024px) {
  /* State is available in the head: paint final labels without waiting for footer JS. */
  .dafa-navigation-width-label-compact,
  [data-dafa-width-label],
  .dafa-rail-appearance [data-dafa-appearance-mode] { display: none; }
  html:not([data-dafa-nav-mode]) [data-dafa-width-label="expanded"],
  html[data-dafa-nav-mode="expanded"] [data-dafa-width-label="expanded"],
  html[data-dafa-nav-mode="compact"] [data-dafa-width-label="compact"],
  html[data-dafa-nav-mode="collapsed"] [data-dafa-width-label="collapsed"],
  html.dafa-nav-compact .dafa-navigation-width-label-compact,
  html:not([data-dafa-color-mode]) .dafa-rail-appearance [data-dafa-appearance-mode="system"],
  html[data-dafa-color-mode="system"] .dafa-rail-appearance [data-dafa-appearance-mode="system"],
  html[data-dafa-color-mode="light"] .dafa-rail-appearance [data-dafa-appearance-mode="light"],
  html[data-dafa-color-mode="dark"] .dafa-rail-appearance [data-dafa-appearance-mode="dark"] { display: inline; }
  html.dafa-nav-compact .dafa-navigation-width-label-full { display: none; }
  .dafa-navigation-width-label { white-space: nowrap; }
  .dafa-rail-appearance .footer-appearance__icon > span { line-height: 0; }

  .dafa-navigation-width { display: block; flex: 0 0 auto; }
  .dafa-navigation-width .dafa-navigation-collapse {
    width: calc(100% - 24px); min-height: 44px; padding: 10px 12px;
    font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--dafa-text);
  }
  .dafa-navigation-width .dafa-navigation-collapse:hover,
  .dafa-navigation-width .dafa-navigation-collapse[aria-expanded="true"] { color: var(--dafa-text); background: var(--dafa-surface-muted); }
  .dafa-navigation-width .dafa-collapse-context { width: 20px; height: 20px; flex: 0 0 20px; }
  html[data-dafa-sidebar-tools] .header-search__toggle .dafa-desktop-search-scope,
  .dafa-rail-appearance [data-dafa-appearance-label] { font-size: 11px; }
  .dafa-navigation-width .dafa-navigation-width-current { flex: 0 0 auto; font-size: 11px; font-weight: 400; line-height: 1.6; color: color-mix(in srgb, var(--dafa-text-soft) 60%, var(--dafa-surface)); }
  html.dafa-nav-collapsed .dafa-navigation-width .dafa-collapse-context { display: block; }
  .dafa-navigation-width-menu {
    position: fixed; z-index: 45; bottom: 12px; left: var(--dafa-rail-width);
    display: flex; flex-direction: column; gap: 2px;
    width: 196px; max-width: calc(100vw - var(--dafa-rail-width) - 16px);
    max-height: calc(100dvh - 100px); overflow-y: auto;
    padding: 5px; border: 0; border-radius: 9px;
    background: var(--dafa-surface); color: var(--dafa-text); box-shadow: 0 8px 28px rgb(0 0 0 / 14%);
  }
  .dafa-navigation-width-menu > button {
    display: flex; align-items: center; justify-content: flex-start; gap: 9px;
    width: 100%; min-height: 40px; margin: 0; padding: 0 10px;
    border: 0; border-radius: 5px; background: transparent; color: var(--dafa-text);
    font-size: 13px; font-weight: 400; text-align: left; cursor: pointer;
  }
  .dafa-navigation-width-option-icon { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 1.7; }
  .dafa-navigation-width-menu > button:hover,
  .dafa-navigation-width-menu > button[aria-checked="true"] { background: var(--dafa-surface-muted); }
  .dafa-navigation-width-menu > button[aria-checked="true"]::after {
    content: ""; width: 8px; height: 4px; margin-left: auto;
    border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg);
  }
  .dafa-navigation-width :is(button):focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: -2px; }

  html[data-dafa-layout="sidebar"].dafa-nav-compact { --dafa-rail-width: 104px; }
  html.dafa-nav-compact #site-navigation.primary-navigation { padding-inline: 8px; }
  html.dafa-nav-compact #site-navigation > ul > li { grid-template-columns: minmax(0, 1fr); }
  html.dafa-nav-compact #site-navigation > ul > li > a { grid-column: 1; justify-content: flex-start; gap: 8px; padding-inline: 12px; white-space: nowrap; }
  html.dafa-nav-compact #site-navigation > ul > li:not(.menu-item-has-children) > a { grid-column: 1 / -1; }
  html.dafa-nav-compact #site-navigation > ul > li > a .dafa-nav-label {
    position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: nowrap; flex-shrink: 0;
  }
  html.dafa-nav-compact #site-navigation > ul > li > .submenu-toggle { display: none; }
  html.dafa-nav-collapsed .dafa-navigation-rail .dafa-brand-svg__svg { width: 44px; height: 44px; flex-basis: 44px; }
  html.dafa-nav-compact .dafa-navigation-rail .dafa-brand-svg__svg { width: 48px; height: 48px; flex-basis: 48px; }
  html.dafa-nav-compact .dafa-navigation-rail .site-branding { padding-inline: 20px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-navigation-rail > .header-actions { margin-inline: 8px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact body .dafa-navigation-rail .header-actions > .header-ai,
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-auth-controls > .header-login-link,
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-auth-controls > .header-user > .header-user__toggle,
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-auth-controls > .header-notice > .header-notice__toggle,
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-search__toggle {
    justify-content: flex-start; padding-inline: 12px; gap: 8px; font-size: 14px; white-space: nowrap; border-radius: 8px;
  }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-auth-controls > .header-user > .header-user__toggle { height: 44px; min-height: 44px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-user__toggle .header-user__avatar { width: 20px; height: 20px; flex-basis: 20px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-user__crown { left: 24px; bottom: 5px; width: 12px; height: 12px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-user__crown svg { width: 9px; height: 9px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-desktop-search-label,
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-tool-label { display: inline; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-desktop-search-scope { display: none; }
  html.dafa-nav-compact .dafa-navigation-rail > .dafa-rail-appearance { margin-inline: 8px; }
  html.dafa-nav-compact .dafa-rail-appearance .footer-appearance__trigger { justify-content: flex-start; gap: 8px; padding-inline: 12px; }
  html.dafa-nav-compact .dafa-rail-appearance .footer-appearance__text { display: flex; }
  html.dafa-nav-compact .dafa-rail-appearance .footer-appearance__state { display: none; }
  html.dafa-nav-compact .dafa-navigation-width .dafa-navigation-collapse { width: calc(100% - 16px); margin-inline: 8px; padding-inline: 12px; justify-content: flex-start; gap: 8px; }
  html.dafa-nav-compact .dafa-navigation-width .dafa-navigation-width-label,
  html.dafa-nav-compact .dafa-navigation-width .dafa-navigation-width-label-compact { position: static; width: auto; height: auto; clip-path: none; overflow: visible; font-size: 14px; }
  html.dafa-nav-collapsed .dafa-navigation-width-current { display: none; }
}


/* The desktop rail and mobile drawer render the same menu states. */
.dafa-navigation-rail {
  --dafa-rail-highlight-bg: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface));
}
#site-navigation {
  --dafa-nav-item-interaction-bg: var(--dafa-rail-highlight-bg, color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)));
}
@media (min-width: 1024px) {
  #site-navigation { --dafa-nav-item-current-bg: var(--dafa-nav-item-interaction-bg); }
  html:not([data-dafa-color-scheme="dark"]) .dafa-navigation-rail {
    --dafa-rail-highlight-bg: color-mix(in srgb, var(--dafa-text) 5%, var(--dafa-surface));
  }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > .header-actions :is(.header-login-link, .header-ai, .header-search__toggle, .header-notice__toggle),
  html[data-dafa-sidebar-tools].dafa-nav-compact body .dafa-navigation-rail > .header-actions > .header-ai,
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > :is(.dafa-rail-appearance, .dafa-navigation-width) :is(.footer-appearance__trigger, .dafa-navigation-collapse),
  .dafa-navigation-rail #site-navigation.primary-navigation .sub-menu > li.menu-item > a:any-link {
    border-radius: 10px;
  }
}
@media (min-width: 1024px) and (hover: hover) {
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > .header-actions :is(.header-login-link, .header-ai, .header-search__toggle, .header-user__toggle, .header-notice__toggle):hover,
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > :is(.dafa-rail-appearance, .dafa-navigation-width) :is(.footer-appearance__trigger, .dafa-navigation-collapse):hover {
    background: var(--dafa-rail-highlight-bg);
    color: var(--dafa-accent-strong);
  }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > .header-actions > .header-ai:hover > .dafa-ai-icon { color: inherit; }
}
#site-navigation ul > li.menu-item {
  --dafa-nav-item-color: initial;
  --dafa-nav-item-selected-bg: initial;
  --dafa-nav-item-hover-bg: initial;
  --dafa-nav-item-bg: var(--dafa-nav-item-selected-bg, var(--dafa-nav-item-hover-bg, transparent));
}
#site-navigation ul > li.menu-item:has(> :where(a, .submenu-toggle):is(:active, :focus-visible)) {
  --dafa-nav-item-color: var(--dafa-accent-strong);
  --dafa-nav-item-hover-bg: var(--dafa-nav-item-interaction-bg);
}
@media (hover: hover) {
  #site-navigation ul > li.menu-item:has(> :where(a, .submenu-toggle):hover) {
    --dafa-nav-item-color: var(--dafa-accent-strong);
    --dafa-nav-item-hover-bg: var(--dafa-nav-item-interaction-bg);
  }
}
#site-navigation ul > li.menu-item:is(.current-menu-item, .current_page_item, .current-menu-parent, .current-menu-ancestor, .current-post-ancestor, .current-blog-ancestor, .is-rail-menu-open, :has(> a[aria-current="page"])) {
  --dafa-nav-item-color: var(--dafa-accent-strong);
  --dafa-nav-item-selected-bg: var(--dafa-nav-item-current-bg, color-mix(in srgb, var(--dafa-accent) 7%, var(--dafa-surface)));
}
@media (min-width: 1024px) {
  #site-navigation.primary-navigation li.menu-item:is(.current-menu-item, .current_page_item, .current-menu-parent, .current-menu-ancestor, .current-post-ancestor, .current-blog-ancestor, .is-rail-menu-open, :has(> a[aria-current="page"])) > a :is(.dafa-nav-label, .dafa-mega-card__title) {
    color: var(--dafa-text);
    font-weight: 700;
  }
}
#site-navigation.primary-navigation > ul > li > a,
#site-navigation.primary-navigation > ul > li > a:hover {
  color: var(--dafa-nav-item-color, var(--dafa-text));
  background: var(--dafa-nav-item-bg);
  border-radius: 10px;
}
#site-navigation.primary-navigation > ul > li > a .dafa-nav-icon { color: inherit; }
#site-navigation.primary-navigation li.menu-item > :is(a, .submenu-toggle):focus-visible {
  outline: 2px solid var(--dafa-accent);
  outline-offset: -2px;
}
#site-navigation.primary-navigation .submenu-toggle {
  background: transparent;
  color: var(--dafa-text-soft);
}
#site-navigation.primary-navigation .submenu-toggle:active { transform: none; }
#site-navigation.primary-navigation :where(li.menu-item) > .submenu-toggle { color: var(--dafa-nav-item-color, var(--dafa-text-soft)); }
#site-navigation.primary-navigation .submenu-toggle:is([aria-expanded="true"], :focus-visible, :active) { color: var(--dafa-accent-strong); }
@media (hover: hover) {
  #site-navigation.primary-navigation .submenu-toggle:hover { color: var(--dafa-accent-strong); }
}
#site-navigation.primary-navigation .submenu-toggle::after { content: none; }
#site-navigation.primary-navigation .submenu-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, calc(-50% - 2px)) rotate(45deg);
}
#site-navigation.primary-navigation .submenu-toggle[aria-expanded="true"]::before {
  transform: translate(-50%, calc(-50% + 2px)) rotate(225deg);
}
@media (prefers-reduced-motion: no-preference) {
  #site-navigation.primary-navigation .submenu-toggle::before { transition: transform 0.18s ease; }
}
@media (min-width: 1024px) {
  html:not(.dafa-nav-compact, .dafa-nav-collapsed) #site-navigation > ul > li.menu-item-has-children > a {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-inline-end: 32px;
  }
}

/* Inline lists and rail flyouts share the same title-only menu rows. */
#site-navigation.primary-navigation > ul > li:not(.is-rail-menu-open) > .sub-menu {
  margin: 0 0 0 22px;
  padding: 4px 0 8px 12px;
  border-inline-start: 0;
}
#site-navigation.primary-navigation .sub-menu > li.menu-item > a:any-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--dafa-nav-item-color, var(--dafa-text));
  background: var(--dafa-nav-item-bg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#site-navigation.primary-navigation .sub-menu .dafa-mega-card__title { font: inherit; }
#site-navigation.primary-navigation .sub-menu .dafa-mega-card__desc { display: none; }

/* The drawer keeps its brand and appearance controls outside the scrolling list. */
#site-navigation > .dafa-drawer-brand,
.dafa-drawer-appearance { display: none; }
@media (max-width: 1023px) {
  #site-navigation.primary-navigation { display: flex; flex-direction: column; overflow: hidden; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  #site-navigation > .dafa-drawer-brand {
    display: inline-flex; flex: 0 0 auto; align-self: flex-start; align-items: center;
    min-height: 52px; margin-bottom: 12px; padding: 0 4px;
  }
  #site-navigation > .dafa-drawer-brand .dafa-brand-svg__copy { display: flex; }
  #site-navigation > .dafa-drawer-brand:focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: -2px; }
  #site-navigation > ul { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--dafa-border) transparent; }
  #site-navigation > ul > li { margin-bottom: 4px; padding: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none; }
  #site-navigation > ul > li > a { padding-inline: 14px 46px; }
  #site-navigation > .dafa-drawer-appearance {
    display: block; flex: 0 0 auto; margin: 8px 0 0; padding: 0;
    border: 0; border-radius: 0; background: transparent;
  }
  .dafa-drawer-appearance .mobile-color-mode__label { 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; }
  .dafa-drawer-appearance .mobile-color-mode__options {
    position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%; gap: 0; padding: 2px; border: 0;
    border-radius: 12px; background: color-mix(in srgb, var(--dafa-surface-muted) 50%, var(--dafa-surface)); box-shadow: none;
  }
  .dafa-drawer-appearance .mobile-color-mode__option {
    min-height: 44px; gap: 6px; padding: 0 8px; border: 0; border-radius: 10px;
    color: var(--dafa-text-soft); background: transparent; font-size: 13px; font-weight: 500; line-height: 1;
  }
  .dafa-drawer-appearance .mobile-color-mode__option svg { width: 16px; height: 16px; flex: 0 0 16px; }
  .dafa-drawer-appearance .mobile-color-mode__option:active { transform: none; }
  html[data-dafa-color-mode="light"] .dafa-drawer-appearance [data-dafa-color-mode="light"],
  html[data-dafa-color-mode="dark"] .dafa-drawer-appearance [data-dafa-color-mode="dark"],
  html[data-dafa-color-mode="system"] .dafa-drawer-appearance [data-dafa-color-mode="system"] {
    color: var(--dafa-text); background: var(--dafa-surface-muted); font-weight: 500;
  }
}

/* Appearance and navigation width use one quiet, aligned settings treatment. */
@media (min-width: 1024px) {
  .dafa-navigation-rail > .dafa-rail-appearance { margin-bottom: 4px; }
  .dafa-navigation-width { padding-bottom: 8px; }
  .dafa-rail-appearance .footer-appearance__trigger,
  .dafa-navigation-width .dafa-navigation-collapse { gap: 10px; }
  .dafa-rail-appearance .footer-appearance__state,
  .dafa-navigation-width .dafa-navigation-width-current { color: var(--dafa-text-soft); }
  .dafa-rail-appearance [data-dafa-appearance-label],
  .dafa-navigation-width .dafa-navigation-width-current { font-size: 12px; }
  .dafa-rail-appearance details[open] > .footer-appearance__trigger,
  .dafa-navigation-width .dafa-navigation-collapse[aria-expanded="true"] {
    background: var(--dafa-rail-highlight-bg);
    color: var(--dafa-text);
  }
  .dafa-rail-appearance .mobile-color-mode__options,
  .dafa-navigation-width-menu {
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
  }
  .dafa-rail-appearance .mobile-color-mode__options { bottom: calc(100% + 12px); }
  .dafa-rail-appearance .mobile-color-mode__option,
  .dafa-navigation-width-menu > button {
    gap: 10px;
    min-height: 40px;
    padding-inline: 10px;
    border-radius: 8px;
    line-height: 1.5;
    text-align: left;
    background: transparent;
  }
  .dafa-rail-appearance .mobile-color-mode__option svg,
  .dafa-navigation-width-menu .dafa-navigation-width-option-icon {
    flex: 0 0 16px;
    color: var(--dafa-text-soft);
  }
  .dafa-rail-appearance .mobile-color-mode__option:hover,
  .dafa-navigation-width-menu > button:hover { background: var(--dafa-rail-highlight-bg); }
  .dafa-rail-appearance .mobile-color-mode__option[aria-checked="true"],
  .dafa-navigation-width-menu > button[aria-checked="true"] {
    background: color-mix(in srgb, var(--dafa-text) 14%, var(--dafa-surface));
    color: var(--dafa-text);
    font-weight: 600;
  }
  .dafa-rail-appearance .mobile-color-mode__option[aria-checked="true"]::after,
  .dafa-navigation-width-menu > button[aria-checked="true"]::after {
    flex: 0 0 auto;
    margin-right: 2px;
    color: var(--dafa-text);
  }
  .dafa-rail-appearance .mobile-color-mode__option[aria-checked="true"] svg,
  .dafa-navigation-width-menu > button[aria-checked="true"] .dafa-navigation-width-option-icon { color: inherit; }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > :is(.dafa-rail-appearance, .dafa-navigation-width) :is(.footer-appearance__trigger, .dafa-navigation-collapse):hover { color: var(--dafa-text); }
  .dafa-rail-appearance :is(summary, button):focus-visible,
  .dafa-navigation-width :is(button):focus-visible { outline-color: var(--dafa-text-soft); }
  html.dafa-nav-collapsed .dafa-rail-appearance .mobile-color-mode__options { bottom: 0; }
}

/* Calm account identity, unboxed shortcuts and a consistent preference list. */
@media (min-width: 1024px) {
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .header-actions { padding-block: 0; gap: 8px; border-top: 0; }

  html[data-dafa-sidebar-tools] .dafa-navigation-rail .header-actions > .header-auth-controls:has(> .header-user, > .header-notice, > .header-login-link) { margin: 0; padding: 0; border-top: 0; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .dafa-rail-appearance { margin-top: 10px; padding-top: 0; border-top: 0; }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > .header-actions :is(.header-login-link, .header-ai, .header-search__toggle, .header-user__toggle, .header-notice__toggle):hover {
    color: var(--dafa-text); background: var(--dafa-rail-highlight-bg);
  }
  html[data-dafa-sidebar-tools] body .dafa-navigation-rail > .header-actions > .header-ai .dafa-ai-icon { color: var(--dafa-text-soft); }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .header-actions :is(button, a):focus-visible { outline-color: var(--dafa-text-soft); }
  html[data-dafa-sidebar-tools] .header-notice__toggle .header-notice__badge { background: var(--dafa-surface-muted); color: var(--dafa-accent-strong); border-color: var(--dafa-surface); }
  html:not(.dafa-nav-collapsed) .dafa-rail-appearance .footer-appearance__trigger::after,
  html:not(.dafa-nav-collapsed) .dafa-navigation-collapse::after {
    content: ""; flex: 0 0 5px; width: 5px; height: 5px;
    margin-inline-start: 2px; border: solid var(--dafa-text-soft); border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg);
  }
  html:not(.dafa-nav-collapsed) .dafa-rail-appearance details[open] > summary::after,
  html:not(.dafa-nav-collapsed) .dafa-navigation-collapse[aria-expanded="true"]::after { transform: rotate(135deg); }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-navigation-rail > .header-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px;
  }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-actions > .header-auth-controls { grid-column: 1 / -1; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) body .dafa-navigation-rail .header-actions > .header-ai,
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-actions > .header-search > .header-search__toggle {
    justify-content: flex-start; gap: 8px; padding-inline: 12px; background: transparent; font-size: 13px; font-weight: 400; border-radius: 8px;
  }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-search__toggle .dafa-desktop-search-label { font-size: 13px; font-weight: 400; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-search__toggle .dafa-desktop-search-scope { display: none; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-auth-controls:has(> .header-user) { gap: 0; margin: 0; padding: 0; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-auth-controls > .header-user { flex: 1 1 auto; min-width: 0; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-auth-controls > .header-user > .header-user__toggle {
    width: 100%; height: 60px; min-height: 60px; padding: 8px; gap: 10px; border-radius: 8px;
  }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-user__toggle .header-user__avatar { width: 44px; height: 44px; flex-basis: 44px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-user__toggle > .dafa-rail-tool-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  .dafa-rail-account-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.5; }
  .dafa-rail-account-status { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dafa-text-soft); font-size: 11px; font-weight: 400; line-height: 1.5; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-user__crown { left: 40px; bottom: 5px; width: 14px; height: 14px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-user__crown svg { width: 10px; height: 10px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-auth-controls > .header-user > .header-user__toggle { justify-content: center; height: 52px; min-height: 52px; padding: 4px; gap: 0; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-user__toggle .header-user__avatar { width: 44px; height: 44px; flex-basis: 44px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .header-user__toggle > .dafa-rail-tool-label { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-auth-controls > .header-user > .header-user__toggle { height: 52px; min-height: 52px; padding: 4px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-user__toggle .header-user__avatar { width: 44px; height: 44px; flex-basis: 44px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-user__crown { left: calc(50% + 14px); bottom: 2px; width: 14px; height: 14px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .header-user__crown svg { width: 10px; height: 10px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-auth-controls > .header-notice { flex: 0 0 36px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .header-auth-controls > .header-notice > .header-notice__toggle { width: 36px; padding-inline: 8px; border-radius: 8px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-appearance .footer-appearance__trigger,
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-navigation-width .dafa-navigation-collapse { font-size: 13px; font-weight: 400; border-radius: 8px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-appearance [data-dafa-appearance-label],
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-navigation-width .dafa-navigation-width-current { font-size: 11px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-appearance .footer-appearance__icon,
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-navigation-width .dafa-collapse-context { color: var(--dafa-text-soft); }
}

/* Two preferences share one compact footer row while their menus stay full width. */
.dafa-rail-preferences { display: none; }
@media (min-width: 1024px) {
  html[data-dafa-sidebar-tools] .dafa-navigation-rail > .dafa-rail-preferences {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto; gap: 4px; margin: 8px 12px; padding: 8px 0 0; border-top: 1px solid var(--dafa-border);
  }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences > .dafa-rail-appearance { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences > .dafa-navigation-width { min-width: 0; padding: 0; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__trigger,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse {
    width: 100%; min-height: 44px; margin: 0; padding: 8px 6px 8px 12px;
    display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; align-content: center; column-gap: 8px; row-gap: 0;
    border-radius: 8px; font-size: 13px; line-height: 18px;
  }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences :is(.footer-appearance__trigger, .dafa-navigation-collapse)::after { content: none; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences :is(.footer-appearance__trigger, .dafa-navigation-collapse):hover { color: var(--dafa-text); background: var(--dafa-rail-highlight-bg); }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__icon,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__icon svg,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-collapse-context { width: 20px; height: 20px; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__text { display: block; min-width: 0; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__state { display: none; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences [data-dafa-appearance-label] { display: block; font-size: 11px; line-height: 16px; white-space: nowrap; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-collapse-context { grid-column: 1; grid-row: 1; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width-label { grid-column: 2; grid-row: 1; align-self: center; text-align: left; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width-current { display: none; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width-label-full { display: none; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width-label-compact { display: inline; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-preferences .mobile-color-mode__options { width: calc(var(--dafa-rail-width) - 24px); inset: auto auto calc(100% + 10px) 0; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-preferences .footer-appearance__trigger,
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { height: 44px; }
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { grid-template-rows: 18px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-navigation-rail > .dafa-rail-preferences { grid-template-columns: minmax(0, 1fr); }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-navigation-rail > .dafa-rail-preferences { margin-inline: 8px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .footer-appearance__trigger,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { display: flex; min-height: 44px; justify-content: center; gap: 0; padding-inline: 0; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .footer-appearance__text,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .dafa-navigation-width-label,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .dafa-navigation-width-current { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-preferences .footer-appearance__trigger,
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { justify-content: flex-start; gap: 8px; padding-inline: 12px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-preferences .footer-appearance__text,
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-preferences .dafa-navigation-width-label { display: block; }
  html[data-dafa-sidebar-tools].dafa-nav-compact .dafa-rail-preferences .footer-appearance__state { display: none; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed .dafa-rail-preferences .mobile-color-mode__options { width: 196px; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences [data-dafa-width-icon] { display: none; }
  html[data-dafa-sidebar-tools]:not([data-dafa-nav-mode]) .dafa-rail-preferences [data-dafa-width-icon="expanded"],
  html[data-dafa-sidebar-tools][data-dafa-nav-mode="expanded"] .dafa-rail-preferences [data-dafa-width-icon="expanded"],
  html[data-dafa-sidebar-tools][data-dafa-nav-mode="compact"] .dafa-rail-preferences [data-dafa-width-icon="compact"],
  html[data-dafa-sidebar-tools][data-dafa-nav-mode="collapsed"] .dafa-rail-preferences [data-dafa-width-icon="collapsed"] { display: block; }
}

/* Common tools belong to navigation; account and display preferences stay pinned below. */
.dafa-menu-utilities { display: none; }
@media (min-width: 1024px) {
  #site-navigation.primary-navigation { display: flex; flex-direction: column; justify-content: flex-start; }
  #site-navigation.primary-navigation > ul { flex: 0 0 auto; margin-bottom: 0; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities { display: flex; flex-flow: column wrap; align-items: stretch; align-content: stretch; flex: 0 1 92px; height: 92px; min-height: 44px; max-height: 92px; gap: 4px; margin: 8px 0 0; padding: 0; width: 100%; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > .header-search { width: 100%; min-width: 0; margin: 0; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > :is(.header-ai, .header-search) { order: 0; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > .header-ai,
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .header-search__toggle { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: 44px; min-height: 44px; padding: 10px 8px 10px 12px; border: 0; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--dafa-text); background: transparent; white-space: nowrap; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > .header-ai:hover,
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .header-search__toggle:hover { color: var(--dafa-accent-strong); background: var(--dafa-nav-item-interaction-bg); }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities :is(button, a):focus-visible { outline: 2px solid var(--dafa-text-soft); outline-offset: -2px; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .dafa-ai-icon { color: inherit; margin: 0; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .dafa-desktop-search-scope { display: none; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .dafa-menu-tool-label,
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .dafa-desktop-search-label { font: inherit; line-height: inherit; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .header-ai svg,
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .header-search__toggle svg { width: 20px; height: 20px; flex: 0 0 20px; }
  /* Match visible glyph bounds and stroke to the menu's 20px outline icons. */
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > .header-ai svg { transform: scale(1.111111); transform-origin: center; stroke-width: 1.8; }
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities .header-search__toggle svg { transform: scale(1.25); transform-origin: center; stroke-width: 1.6; }
  /* Flex shrink uses the actual space remaining after expanded menu items, without JS sorting. */
  html[data-dafa-sidebar-tools] #site-navigation .dafa-menu-utilities > :is(.header-ai, .header-search) { flex: 0 0 44px; min-width: 0; width: auto; height: 44px; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed #site-navigation .dafa-menu-utilities { flex: 0 0 92px; height: 92px; max-height: none; flex-wrap: nowrap; }
  html[data-dafa-sidebar-tools].dafa-nav-collapsed #site-navigation .dafa-menu-utilities > .header-ai,
  html[data-dafa-sidebar-tools].dafa-nav-collapsed #site-navigation .dafa-menu-utilities .header-search__toggle { justify-content: center; gap: 0; padding-inline: 0; font-size: 0; }
  html[data-dafa-sidebar-tools].dafa-nav-compact #site-navigation .dafa-menu-utilities > .header-ai,
  html[data-dafa-sidebar-tools].dafa-nav-compact #site-navigation .dafa-menu-utilities .header-search__toggle { justify-content: flex-start; gap: 8px; padding-inline: 12px; font-size: 14px; }
  html[data-dafa-sidebar-tools].dafa-nav-compact #site-navigation .dafa-menu-utilities .dafa-desktop-search-label { display: inline; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-rail-appearance .footer-appearance__trigger,
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { color: var(--dafa-text-soft); font-size: 12px; font-weight: 400; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__text,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-navigation-width-label-compact { color: inherit; font-size: inherit; font-weight: 400; }
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__icon,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .footer-appearance__icon svg,
  html[data-dafa-sidebar-tools] .dafa-rail-preferences .dafa-collapse-context { width: 18px; height: 18px; justify-self: center; }
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences :is(.footer-appearance__trigger, .dafa-navigation-collapse):hover { color: var(--dafa-text); background: color-mix(in srgb, var(--dafa-text) 3%, var(--dafa-surface)); }
}

/* The document's account and header order is the visual order at every breakpoint. */
html[data-dafa-sidebar-tools] .dafa-navigation-rail > .header-actions > :is(.header-search, .header-ai, .header-auth-controls),
html[data-dafa-sidebar-tools] .dafa-navigation-rail .header-auth-controls > :is(.header-user, .header-notice, .header-login-link) { order: 0; }
@media (min-width: 1024px) {
  html[data-dafa-sidebar-tools]:not(.dafa-nav-collapsed) .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse { grid-template-columns: 18px max-content; justify-content: end; padding-right: 8px; }
}

/* Short mobile drawers keep readable labels and 44px touch targets. */
@media (max-width: 1023px) and (max-height: 500px) {
  #site-navigation.primary-navigation {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  #site-navigation > .dafa-drawer-brand { min-height: 44px; margin-bottom: 4px; }
  #site-navigation > .dafa-drawer-brand .dafa-brand-svg__svg { width: 32px; height: 32px; flex-basis: 32px; }
  #site-navigation > ul > li { margin-bottom: 2px; }
  #site-navigation > ul > li > a { min-height: 44px; padding-block: 8px; gap: 10px; font-size: 15px; }
  #site-navigation > ul > li > a .dafa-nav-icon { width: 18px; min-width: 18px; height: 18px; font-size: 18px; }
  #site-navigation > ul > li > a .dafa-nav-icon svg { width: 18px; height: 18px; }
  #site-navigation.primary-navigation .submenu-toggle { top: 0; height: 44px; min-height: 44px; }
  #site-navigation.primary-navigation .sub-menu { margin-bottom: 4px; padding-bottom: 2px; }
  #site-navigation.primary-navigation .sub-menu a { min-height: 44px; padding-block: 8px; font-size: 14px; }
  #site-navigation > .dafa-drawer-appearance { margin-top: 4px; }
}

/* Display preferences use a quieter, shorter desktop footer row. */
@media (min-width: 1024px) {
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-rail-appearance .footer-appearance__trigger,
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse {
    height: 32px; min-height: 32px; padding-block: 4px;
  }
}
@media (min-width: 1024px) and (pointer: coarse) {
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-rail-appearance .footer-appearance__trigger,
  html[data-dafa-sidebar-tools] .dafa-navigation-rail .dafa-rail-preferences .dafa-navigation-width .dafa-navigation-collapse {
    height: 44px; min-height: 44px;
  }
}

/* assets/css/article-navigation.toc-light-gray-da6c042f8d77.css */
/* Article reading tools share the existing sidebar surface and theme palette. */
.sidebar .reading-sidebar { padding: 22px; }
.reading-sidebar {
  --reading-top: 18px;
  --reading-text: color-mix(in srgb, var(--dafa-text) 45%, var(--dafa-text-soft));
  --reading-rule: color-mix(in srgb, var(--dafa-border) 65%, var(--dafa-surface));
  min-width: 0;
}
.reading-sidebar__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: -6px 0 12px;
  color: var(--dafa-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.reading-sidebar__heading::-webkit-details-marker { display: none; }
.reading-sidebar__heading > .dafa-icon:first-child { color: var(--dafa-accent); }
.reading-sidebar__chevron { margin-left: auto; color: var(--dafa-text-soft); transition: transform 160ms ease-out; }
.reading-sidebar__directory[open] .reading-sidebar__chevron { transform: rotate(180deg); }
.reading-sidebar__heading[aria-expanded="true"] .reading-sidebar__chevron { transform: rotate(180deg); }
.reading-sidebar__toc { max-height: min(44vh, 420px, var(--reading-toc-space, 420px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--reading-rule) transparent; }
.reading-sidebar .reading-sidebar__list { margin: 0; padding: 0; list-style: none; }
.reading-sidebar__list > li { position: relative; margin: 0; padding: 0 0 4px 18px; }
.reading-sidebar__list > li:last-child { padding-bottom: 0; }
.reading-sidebar__list > li::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--reading-rule); }
.reading-sidebar__list > li:first-child::before { top: 18px; }
.reading-sidebar__list > li:last-child::before { bottom: calc(100% - 18px); }
.reading-sidebar__list > li::after { content: ''; position: absolute; left: 0; top: 14px; width: 9px; height: 9px; border: 1px solid var(--reading-rule); border-radius: 50%; background: var(--dafa-surface); }
.reading-sidebar__list > li:has([aria-current="location"])::after { border-color: var(--dafa-accent); background: var(--dafa-accent); }
.reading-sidebar__list a { display: block; min-height: 36px; padding: 7px 12px; border-radius: 8px; color: color-mix(in srgb, var(--dafa-text-soft) 80%, var(--dafa-surface)); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.reading-sidebar__list [data-depth="1"] a { padding-left: 24px; font-size: 13px; }
.reading-sidebar__list [data-depth="2"] a { padding-left: 36px; font-size: 13px; }
.reading-sidebar__list a:hover { color: var(--dafa-accent-strong); }
.reading-sidebar__list a[aria-current="location"] { color: var(--dafa-text); background: color-mix(in srgb, var(--dafa-surface-muted) 45%, var(--dafa-surface)); font-weight: 650; }
.reading-sidebar__empty { margin: 0; padding: 6px 0 16px; color: var(--dafa-text-soft); font-size: 14px; line-height: 1.7; }
.reading-sidebar .reading-sidebar__tools { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--reading-rule); }
.reading-sidebar .reading-sidebar__ai { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 14px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--dafa-text); font: inherit; font-size: 16px; font-weight: 650; text-align: left; cursor: pointer; box-shadow: none; }
.reading-sidebar__ai > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.reading-sidebar__ai > svg:first-child { color: var(--dafa-accent-strong); }
.reading-sidebar__ai > .dafa-icon:last-child { margin-left: auto; color: var(--dafa-text-soft); }
.reading-sidebar__ai { list-style: none; }
.reading-sidebar__ai::-webkit-details-marker { display: none; }
.reading-sidebar__ai::marker { content: ''; }
.reading-sidebar__tools[open] .reading-sidebar__next { transform: rotate(180deg); }
.reading-sidebar__ai[aria-expanded="true"] .reading-sidebar__next { transform: rotate(180deg); }
.reading-sidebar__ai-body { max-height: var(--reading-ai-space, 420px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--reading-rule) transparent; }
.single-page .reading-sidebar .entry-ai-menu__panel { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 6px; width: 100%; max-width: none; max-height: none; overflow: visible; margin: 8px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--reading-rule); border-radius: 0; background: transparent; box-shadow: none; }
.single-page .reading-sidebar .entry-ai-menu__item { min-width: 0; min-height: 44px; margin: 0; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; white-space: normal; }
.single-page .reading-sidebar .entry-ai-menu__item:is(:hover, :focus-visible) { background: var(--dafa-surface-muted); }
.reading-sidebar .entry-ai-menu__label { color: var(--reading-text); font-weight: 400; }
.reading-sidebar .entry-ai-menu__description { color: color-mix(in srgb, var(--dafa-text-soft) 56%, var(--dafa-surface)); font-weight: 400; line-height: 1.6; }
.reading-sidebar .entry-ai-menu__item { font: inherit; }
.reading-sidebar__questions { margin-top: 8px; }
.reading-sidebar__questions-status { margin: 0; padding: 8px 0; color: var(--dafa-text-soft); font-size: 12px; font-weight: 400; line-height: 1.5; text-align: center; }
.reading-sidebar .reading-sidebar__question { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--reading-rule); border-radius: 0; background: transparent; color: var(--reading-text); box-shadow: none; font: inherit; font-size: 13px; line-height: 1.65; text-align: left; cursor: pointer; }
.reading-sidebar .reading-sidebar__question:last-child { border-bottom: 0; }
.reading-sidebar__question > span { display: -webkit-box; flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.reading-sidebar .reading-sidebar__question:hover { color: var(--dafa-accent-strong); }
.reading-sidebar .reading-sidebar__ai:is(:hover, :focus-visible) { background: transparent; color: var(--dafa-accent-strong); }
.reading-sidebar :is(a, button, summary):focus-visible { outline: 2px solid var(--dafa-accent); outline-offset: 2px; }
.reading-sidebar [hidden] { display: none; }
.entry--single :is([data-reading-heading], .entry-header), .content-column > .related-content [data-reading-heading] { scroll-margin-top: var(--reading-offset, 24px); }
@media (min-width: 1024px) {
  .dafa-has-resource-sidebar .content-shell > .sidebar > .reading-sidebar { position: sticky; top: var(--reading-top); z-index: 1; }
  .sidebar .reading-sidebar { padding: 18px; }
  .sidebar .reading-sidebar__heading { gap: 8px; min-height: 36px; margin: -2px 0 6px; font-size: 16px; }
  .sidebar .reading-sidebar__heading > svg { width: 18px; height: 18px; }
  .sidebar .reading-sidebar__list > li { padding: 0 0 2px 16px; }
  .sidebar .reading-sidebar__list > li:last-child { padding-bottom: 0; }
  .sidebar .reading-sidebar__list > li:first-child::before { top: 15px; }
  .sidebar .reading-sidebar__list > li:last-child::before { bottom: calc(100% - 15px); }
  .sidebar .reading-sidebar__list > li::after { top: 11px; }
  .sidebar .reading-sidebar__list a { min-height: 30px; padding: 5px 10px; font-size: 13px; line-height: 1.5; }
  .sidebar .reading-sidebar__list [data-depth="1"] a { padding-left: 20px; font-size: 12px; }
  .sidebar .reading-sidebar__list [data-depth="2"] a { padding-left: 30px; font-size: 12px; }
  .sidebar .reading-sidebar__tools { margin-top: 12px; padding-top: 10px; }
  .sidebar .reading-sidebar__ai { gap: 8px; min-height: 40px; padding: 10px 0; font-size: 16px; }
  .sidebar .reading-sidebar__ai > svg { flex-basis: 18px; width: 18px; height: 18px; }
  .sidebar .reading-sidebar__ai > svg:first-child { margin-right: 0; }
  .sidebar .reading-sidebar__ai-body { max-height: none; overflow: visible; }
  .single-page .sidebar .reading-sidebar .entry-ai-menu__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .sidebar .reading-sidebar__questions { margin-top: 4px; max-height: var(--reading-questions-space, none); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--reading-rule) transparent; }
  .sidebar .reading-sidebar__questions:has(> .reading-sidebar__question) { scrollbar-gutter: stable; }
  .sidebar .reading-sidebar__question { gap: 8px; min-height: 40px; padding: 8px 0; font-size: 12px; line-height: 1.6; }
  .single-page .sidebar .reading-sidebar .entry-ai-menu__panel { gap: 16px 4px; margin-top: 4px; padding-top: 8px; }
  .single-page .sidebar .reading-sidebar .entry-ai-menu__item { gap: 2px; min-height: 44px; padding: 6px 8px; }
  .sidebar .reading-sidebar .entry-ai-menu__label { font-size: 13px; line-height: 1.45; }
  .sidebar .reading-sidebar .entry-ai-menu__description { font-size: 11px; line-height: 1.45; }
}
.entry--single > .reading-sidebar--inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; align-items: start; margin: 0 0 24px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--reading-rule); background: transparent; box-shadow: none; }
.reading-sidebar--inline > details { min-width: 0; }
.reading-sidebar--inline .reading-sidebar__heading { min-height: 44px; margin: 0; padding: 10px; gap: 6px; border-radius: 10px; background: transparent; font-size: 14px; }
.reading-sidebar--inline .reading-sidebar__toc { width: calc(200% + 10px); max-height: 38vh; padding-top: 12px; }
.reading-sidebar--inline .reading-sidebar__empty { width: calc(200% + 10px); padding-top: 12px; }
.reading-sidebar--inline .reading-sidebar__tools { margin: 0; padding: 0; border: 0; }
.reading-sidebar.reading-sidebar--inline .reading-sidebar__ai { min-height: 44px; margin: 0; padding: 10px; gap: 6px; font-size: 14px; }
.reading-sidebar--inline :is(.reading-sidebar__heading, .reading-sidebar__ai) > svg { width: 16px; height: 16px; flex-basis: 16px; }
.reading-sidebar--inline :is(.reading-sidebar__chevron, .reading-sidebar__next) { width: 12px; height: 12px; flex-basis: 12px; }
.reading-sidebar--inline :is(.reading-sidebar__heading, .reading-sidebar__ai) > span { white-space: nowrap; }
.reading-sidebar--inline :is(.reading-sidebar__heading, .reading-sidebar__ai) { touch-action: manipulation; }
.reading-sidebar--inline .reading-sidebar__ai-body { width: calc(200% + 10px); margin-inline-start: calc(-100% - 10px); padding-top: 12px; }
.reading-sidebar--inline:not(:has(> .reading-sidebar__tools)) { grid-template-columns: minmax(0, 1fr); }
.reading-sidebar--inline:not(:has(> .reading-sidebar__tools)) :is(.reading-sidebar__toc, .reading-sidebar__empty) { width: 100%; }
.reading-sheet { position: fixed; inset: auto 0 0; display: none; width: 100%; max-width: none; max-height: 70vh; max-height: 70dvh; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 16px 16px 0 0; background: var(--dafa-surface); color: var(--dafa-text); transform: translateY(var(--reading-sheet-drag, 0)); }
.reading-sheet[open] { display: flex; flex-direction: column; animation: reading-sheet-enter 180ms ease-out; }
.reading-sheet::backdrop { background: rgb(0 0 0 / 38%); }
.reading-sheet__header { position: relative; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 16px 8px 20px; touch-action: none; }
.reading-sheet__handle { position: absolute; top: 8px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 4px; background: var(--reading-rule); }
.reading-sheet__header h2 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.5; }
.reading-sheet .reading-sheet__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dafa-text-soft); cursor: pointer; }
.reading-sheet__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px max(20px, env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; scrollbar-color: var(--reading-rule) transparent; }
.reading-sheet .reading-sidebar__ai-body { width: 100%; max-height: none; margin: 0; padding: 0; overflow: visible; }
.reading-sheet .reading-sidebar__questions { margin: 0; padding: 0; }
.reading-sheet .reading-sidebar__toc { width: 100%; max-height: none; padding: 0; overflow: visible; }
.reading-sheet .reading-sidebar__empty { margin: 0; padding: 8px 0; }
.reading-sheet.reading-sidebar .entry-ai-menu__panel { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 6px; width: 100%; max-width: none; max-height: none; margin: 8px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--reading-rule); border-radius: 0; background: transparent; box-shadow: none; }
.reading-sheet .entry-ai-menu__item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 64px; margin: 0; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dafa-text); font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.reading-sheet .entry-ai-menu__item:is(:hover, :focus-visible) { background: var(--dafa-surface-muted); }
.reading-sheet .entry-ai-menu__label { font-size: 15px; font-weight: 400; }
.reading-sheet .entry-ai-menu__description { color: color-mix(in srgb, var(--dafa-text-soft) 56%, var(--dafa-surface)); font-size: 13px; line-height: 1.6; }
@media (min-width: 1024px) and (max-height: 520px) {
  .dafa-has-resource-sidebar .content-shell > .sidebar > .reading-sidebar { position: static; }
  .sidebar .reading-sidebar__toc { max-height: 240px; }
  .sidebar .reading-sidebar__questions { max-height: none; overflow: visible; scrollbar-gutter: auto; }
}
@keyframes reading-sheet-enter { from { opacity: .6; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reading-sidebar__chevron { transition: none; }
  .reading-sheet[open] { animation: none; }
}

/* Icons share the two article actions' existing text palette. */
.reading-sidebar .entry-ai-menu__item.entry-ai-menu__item--with-icon {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 2px;
  align-content: center;
}
.reading-sidebar__action-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 20px;
  height: 20px;
  color: var(--dafa-text-soft);
  stroke-width: 1.7;
}
.reading-sidebar__action-symbol { stroke: currentColor; }
.entry-ai-menu__item--with-icon > :is(.entry-ai-menu__label, .entry-ai-menu__description) { grid-column: 2; }
.entry-ai-menu__item--with-icon:is(:hover, :focus-visible) > .reading-sidebar__action-icon { color: var(--dafa-accent); }

/* Reading tool motion repeats while hovered or keyboard-focused. */
.reading-sidebar__summary-source,
.reading-sidebar__action-symbol,
.reading-sidebar__action-symbol > :is(path, rect) {
  transform-box: fill-box;
  transform-origin: center;
}
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-question"] { animation: reading-action-emphasis 1100ms ease-in-out infinite; animation-duration: 1100ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-summary"] { animation: reading-action-emphasis 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-visual"] { animation: reading-action-emphasis 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-checklist"] { animation: reading-action-emphasis 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-question"] .reading-sidebar__action-symbol { animation: reading-action-question 1000ms ease-in-out infinite; animation-duration: 1000ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-summary"] .reading-sidebar__summary-source { animation: reading-action-summary-source 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-summary"] .reading-sidebar__summary-point--first { animation: reading-action-summary-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-summary"] .reading-sidebar__summary-point--second { animation: reading-action-summary-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-summary"] .reading-sidebar__action-symbol { animation: reading-action-summary-complete 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(1) { animation: reading-action-diagram-root 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > path { animation: reading-action-diagram-link 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(2) { animation: reading-action-diagram-left 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(3) { animation: reading-action-diagram-right 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-checklist"] .reading-sidebar__task-line--first { animation: reading-action-task-line-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-checklist"] .reading-sidebar__task-check--first { animation: reading-action-task-check-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-checklist"] .reading-sidebar__task-line--second { animation: reading-action-task-line-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):focus-visible > [data-dafa-icon="article-checklist"] .reading-sidebar__task-check--second { animation: reading-action-task-check-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
@media (hover: hover) and (pointer: fine) {
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-question"] { animation: reading-action-emphasis 1100ms ease-in-out infinite; animation-duration: 1100ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-summary"] { animation: reading-action-emphasis 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-visual"] { animation: reading-action-emphasis 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-checklist"] { animation: reading-action-emphasis 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-question"] .reading-sidebar__action-symbol { animation: reading-action-question 1000ms ease-in-out infinite; animation-duration: 1000ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-summary"] .reading-sidebar__summary-source { animation: reading-action-summary-source 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-summary"] .reading-sidebar__summary-point--first { animation: reading-action-summary-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-summary"] .reading-sidebar__summary-point--second { animation: reading-action-summary-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-summary"] .reading-sidebar__action-symbol { animation: reading-action-summary-complete 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(1) { animation: reading-action-diagram-root 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > path { animation: reading-action-diagram-link 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(2) { animation: reading-action-diagram-left 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-visual"] .reading-sidebar__action-symbol > rect:nth-of-type(3) { animation: reading-action-diagram-right 1400ms ease-in-out infinite; animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-checklist"] .reading-sidebar__task-line--first { animation: reading-action-task-line-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-checklist"] .reading-sidebar__task-check--first { animation: reading-action-task-check-first 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-checklist"] .reading-sidebar__task-line--second { animation: reading-action-task-line-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
  .reading-sidebar .entry-ai-menu__item:not(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-loading):hover > [data-dafa-icon="article-checklist"] .reading-sidebar__task-check--second { animation: reading-action-task-check-second 1500ms ease-in-out infinite; animation-duration: 1500ms !important; animation-iteration-count: infinite !important; }
}
@keyframes reading-action-emphasis {
  0%, 100% { transform: translateY(0) scale(1); }
  40%, 55% { transform: translateY(-1px) scale(1.15); }
}
@keyframes reading-action-question {
  0%, 80%, 100% { transform: translateY(0) rotate(0); }
  28% { transform: translateY(-2.8px) rotate(-9deg); }
  55% { transform: translateY(-1px) rotate(7deg); }
}
@keyframes reading-action-summary-source {
  0%, 6%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  30%, 84% { transform: translate(5px, 5px) scale(.4); opacity: 0; }
}
@keyframes reading-action-summary-first {
  0%, 8%, 100% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .3; }
  27%, 84% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes reading-action-summary-second {
  0%, 23%, 100% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .3; }
  44%, 84% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes reading-action-summary-complete {
  0%, 44%, 64%, 100% { transform: translateY(0) scale(1); }
  53% { transform: translateY(-.5px) scale(1.16); }
}
@keyframes reading-action-diagram-root {
  0%, 100% { opacity: .55; transform: scale(.8); }
  12%, 86% { opacity: 1; transform: scale(1); }
}
@keyframes reading-action-diagram-link {
  0%, 10%, 100% { stroke-dasharray: 14; stroke-dashoffset: 14; opacity: .25; }
  30%, 86% { stroke-dasharray: 14; stroke-dashoffset: 0; opacity: 1; }
}
@keyframes reading-action-diagram-left {
  0%, 24%, 100% { opacity: .2; transform: translate(-1px, -1.5px) scale(.7); }
  42% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  52%, 86% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes reading-action-diagram-right {
  0%, 38%, 100% { opacity: .2; transform: translate(1px, -1.5px) scale(.7); }
  56% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  66%, 86% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes reading-action-task-line-first {
  0%, 100% { opacity: .45; transform: translateX(1px); }
  12%, 86% { opacity: 1; transform: translateX(0); }
}
@keyframes reading-action-task-check-first {
  0%, 12%, 100% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .3; transform: scale(1); }
  28%, 86% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
  35% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1.28); }
  43% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
}
@keyframes reading-action-task-line-second {
  0%, 30%, 100% { opacity: .45; transform: translateX(1px); }
  42%, 86% { opacity: 1; transform: translateX(0); }
}
@keyframes reading-action-task-check-second {
  0%, 42%, 100% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .3; transform: scale(1); }
  58%, 86% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
  65% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1.28); }
  73% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
}
