/* DataHot — ink teal / warm paper. Shared by every public page.
   Brand, heat and status colors have distinct roles; source media is untouched. */
:root {
  color-scheme: light dark;
  --bg: #f5f4ef;
  --card: #fcfcf9;
  --ink: #202a29;
  --sub: #5f6b65;
  --txt2: #4e5b56;
  --txt3: #34423d;
  --line: #dde2db;
  --soft: #eceee7;
  --hover: #e6eee8;
  --accent: #175c53;
  --accent-soft: #e6eeea;
  --action: #175c53;
  --on-action: #ffffff;
  --heat: #a65a3a;
  --blue: #285d78;
  --green: #28704e;
  --purple: #665681;
  --amber: #87571b;
  --danger: #a53d38;
  --warning-soft: #f4eddd;
  --danger-soft: #f5e8e4;
  --header-bg: rgba(245,244,239,.96);
  --tabbar-bg: rgba(252,252,249,.97);
  --radius: 12px;
  /* Compatibility for product/project surfaces. */
  --border: var(--line);
  --txt: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131c19;
    --card: #1b2622;
    --ink: #e6ece6;
    --sub: #a4b2a9;
    --txt2: #bdc9c0;
    --txt3: #d2ddd4;
    --line: #35453c;
    --soft: #23332a;
    --hover: #2b3e33;
    --accent: #92cdbb;
    --accent-soft: #253d33;
    --action: #92cdbb;
    --on-action: #132b23;
    --heat: #d6a081;
    --blue: #99c5da;
    --green: #95cba5;
    --purple: #bcafd6;
    --amber: #dfbb7c;
    --danger: #eda39b;
    --warning-soft: #383322;
    --danger-soft: #3d2927;
    --header-bg: rgba(19,28,25,.96);
    --tabbar-bg: rgba(27,38,34,.97);
  }
}
body { background: var(--bg); color: var(--ink); }
::selection { background: var(--accent-soft); color: var(--ink); }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:where(a,button,input,select,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:where(button,input,select) { font-family: inherit; }
:where(h1,h2,h3) { text-wrap: pretty; }
.logo,.sidebar .slogo { letter-spacing: -.7px; }
.logo em,.sidebar .slogo em { color: var(--accent); }
.sidebar { background: var(--bg); }
.sidebar a.mi { border-radius: 8px; font-size: 14px; }
.sidebar a.mi.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sidebar .sfoot { font-size: 12px; }
.tab.on,.chiprow .fchip.on,.favorites-filter.on,.cases-filter.on {
  background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600;
}
.tabbar a.on { color: var(--accent); }
.tabbar { box-shadow: none; }
.chip,.b-agent,.b-platform,.b-bi,.b-product,.b-insight,.editorial-pick {
  background: var(--accent-soft); color: var(--accent);
}
.chip:hover { background: var(--hover); }
.src,.srcbadge,.vtag { font-size: 12px; }
.srcbadge { border: 0; padding-left: 0; }
.vtag { border-style: solid; }
.item .heatnum,.hot .heat,.today-hot-heat,.rank-heat,.vendor-row .count { color: var(--sub); font-weight: 500; }
.top-rank,.hot .rank { background: var(--accent-soft); color: var(--accent); }
.today-hot-row.is-lead .today-hot-rank { background: var(--accent-soft); color: var(--accent); }
.today-hot-rank { background: transparent; color: var(--sub); font-size: 12px; }
.today-hot-row.is-lead .today-hot-heat { color: var(--heat); }
.btn-sub,.privacy-btn,.cta,.sbtn:not(.ghost),.filter-error-actions button:first-child {
  background: var(--action); color: var(--on-action); border-radius: 8px;
}
.sbtn.ghost { border-radius: 8px; }
/* Reading hierarchy: quiet summary, strong headlines, fine rules. */
.home-page .layout { gap: 40px; }
.weekly-strip { background: var(--accent-soft); border-color: transparent; border-radius: 8px; margin-bottom: 24px; }
.weekly-strip-link { min-height: 60px; padding-left: 18px; gap: 14px; }
.weekly-strip-label { padding: 0; border-radius: 0; font-size: 12px; letter-spacing: .04em; }
.weekly-strip-title { font-size: 15px; font-weight: 600; }
.weekly-dismiss { border-radius: 8px; }
.today-hot { border: 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; margin-bottom: 32px; }
.today-hot-head { padding: 14px 0; border-bottom: 0; }
.today-hot-head h2 { font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.today-hot-more { font-size: 12px; font-weight: 500; }
.today-hot-row { grid-template-columns: 24px minmax(0,1fr) auto; padding: 12px 0; gap: 12px; }
.today-hot-title { font-size: 15px; line-height: 1.6; white-space: normal; overflow: visible; font-weight: 600; }
.today-hot-row.is-lead .today-hot-title { font-weight: 650; }
.today-hot-heat { font-size: 12px; }
.today-hot-row+.today-hot-row { border-color: var(--line); }
.section-title h2 { font-weight: 650; }
.day-head .date { font-weight: 600; }
.item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 0; margin: 0; box-shadow: none; }
.item .top { font-size: 12px; gap: 9px; }
.item h3 { font-size: 19px; font-weight: 600; line-height: 1.55; margin: 10px 0; }
.item .sum { font-size: 15px; line-height: 1.85; color: var(--txt2); }
.item .why { border: 0; padding-top: 0; margin-top: 12px; font-size: 13px; line-height: 1.8; }
.why .w { color: var(--sub); letter-spacing: 0; font-weight: 600; }
.item .vendors { margin-top: 14px; }
.home-page aside .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; }
.vendor-row { padding: 11px 0; }
.weekly-summary,.weekly-teaser { background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.weekly-summary p,.weekly-teaser p,.weekly-change { color: var(--txt2); }
.weekly-summary .weekly-meta { color: var(--sub) !important; }
.weekly-teaser .weekly-kicker { color: var(--accent); }
.weekly-change { border-color: var(--line); }
.weekly-action { background: var(--accent-soft); border-color: var(--line); }
.weekly-action b { color: var(--accent); }
.weekly-pill.priority-now { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.weekly-pill.priority-test { background: var(--warning-soft); color: var(--amber); border-color: var(--amber); }
.weekly-pill.priority-watch { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
/* Detail keeps source text and figures intact. Only the reading surface changes. */
.article h1 { font-size: 34px; font-weight: 650; line-height: 1.4; letter-spacing: -.035em; margin-top: 26px; margin-bottom: 18px; }
.article .meta { font-size: 12px; line-height: 1.8; margin-bottom: 26px; }
.article .fulltext p,.article .fulltext li { font-size: 17px; line-height: 1.9; }
.article .fulltext h2,.article .fulltext h3 { font-weight: 650; }
.article .content-heading { margin-bottom: 26px; }
.article .article-brief { margin-bottom: 28px; }
.topbar.detail-context .sbtn { border-radius: 8px; }
.topbar.detail-context .sbtn[data-share-action="open"] { color: var(--accent); background: var(--accent-soft); }
.article .meta-content-mode { background: var(--soft); color: var(--txt2); font-size: 12px; }
.article-toc-rail a { font-size: 12px; line-height: 1.6; }
.content-origin-badge,.source-summary { font-size: 12px; }
.research-primary,.research-deliverable,.radar-toolbar button[aria-pressed=true] { background: var(--accent-soft); border-color: var(--line); }
.research-card,.case-card,.scard,.weekly-theme { border-radius: var(--radius); box-shadow: none; }
.cases-head h1,.research-head h1,.study-header h1,.favorites-title { font-weight: 650; }
.rank-row .rank-title { font-weight: 600; }
@media(min-width:1200px) {
  .home-page .layout { grid-template-columns: minmax(0,1fr) 224px; padding-top: 36px; }
  .home-page>.wrap { max-width: 1180px; padding-left: 36px; padding-right: 36px; }
}
@media(max-width:1199px) {
  .home-page .layout { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:600px) {
  .home-page .layout { padding-top: 18px; gap: 28px; }
  .weekly-strip { margin-bottom: 20px; }
  .weekly-strip-link { min-height: 54px; gap: 9px; padding-left: 12px; }
  .weekly-strip-title { font-size: 13px; }
  .weekly-strip-view { font-size: 12px; }
  .today-hot { margin-bottom: 26px; }
  .today-hot-head { padding: 12px 0; }
  .today-hot-row { padding: 10px 0; gap: 8px; }
  .today-hot-title { font-size: 14px; line-height: 1.55; }
  .item { padding: 22px 0; border-radius: 0; }
  .item h3 { font-size: 18px; line-height: 1.6; }
  .item .sum { font-size: 15px; line-height: 1.8; }
  .item .top { font-size: 12px; }
  .article h1 { font-size: 27px; line-height: 1.45; letter-spacing: -.025em; margin-top: 24px; }
  .article .fulltext p,.article .fulltext li { font-size: 17px; line-height: 1.85; }
}
@media(hover:hover) and (pointer:fine) {
  .item:hover,.hot:hover,.case-card:hover,.weekly-teaser:hover { transform: none; box-shadow: none; }
  .item:hover { background: transparent; border-color: var(--line); }
  .item:hover h3,.today-hot-row:hover .today-hot-title { color: var(--accent); }
  .today-hot-row:hover { background: var(--accent-soft); }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.fm-follow-chip.on,.fm-new,.sh-save,.study-focus-region b { background: var(--action); color: var(--on-action); }
.privacy-btn.ghost { background: var(--card); color: var(--ink); }

/* Timeline filters: quiet editorial tabs with generous touch targets. */
.chiprow { gap: 20px; padding-top: 0; padding-bottom: 6px; }
.chiprow .fchip,
.chiprow .fchip.on {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 2px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--sub);
  font-size: 14px; line-height: 1.4; font-weight: 400;
}
.chiprow .fchip.on { color: var(--accent); font-weight: 600; }
.chiprow .fchip::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; width: 20px; height: 2px;
  transform: translateX(-50%); border-radius: 1px; background: transparent;
}
.chiprow .fchip.on::after { background: var(--accent); }
.chiprow .fchip:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .chiprow .fchip:hover { color: var(--accent); } }

/* Editorial hierarchy: one focal story, a quieter feed, and a distinct reading brief. */
.home-page .today-hot,.home-page .timeline-panel {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: 0 2px 4px rgba(20,40,30,.025), 0 8px 24px rgba(20,40,30,.055);
}
.home-page .today-hot {
  padding: 22px 26px 8px; margin-bottom: 18px;
}
.home-page .today-hot-head { padding: 0 0 18px; }
.home-page .today-hot-head h2 { color: var(--accent); font-size: 13px; }
.home-page .today-hot-list { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.home-page .today-hot-row { padding: 18px 0; align-items: start; gap: 10px; }
.home-page .today-hot-row.is-lead { grid-column: 1 / -1; padding: 0 0 24px; grid-template-columns: minmax(0,1fr) auto; }
.home-page .today-hot-row.is-lead .today-hot-rank { display: none; }
.today-hot-copy { min-width: 0; }
.home-page .today-hot-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.55; }
.home-page .today-hot-row.is-lead .today-hot-title { font-size: 30px; line-height: 1.4; letter-spacing: -.025em; }
.today-hot-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 14px; font-size: 15px; line-height: 1.8; color: var(--txt2); }
.home-page .today-hot-row:nth-child(2) { padding-right: 18px; }
.home-page .today-hot-row:nth-child(3) { padding-left: 18px; }
.home-page .today-hot-row .today-hot-rank { background: transparent; color: var(--sub); font-size: 12px; }
.home-page .today-hot-heat { padding-top: 5px; }
.home-page .weekly-strip { border: 0; border-radius: 0; background: transparent; margin-bottom: 36px; min-height: 44px; }
.home-page .weekly-strip-link { padding-left: 0; min-height: 44px; }
.home-page .weekly-strip-label { color: var(--sub); }
.home-page .weekly-strip-title { color: var(--txt2); font-weight: 500; }
.home-page .timeline-panel { padding: 24px 26px 8px; min-width: 0; }
.home-page .timeline-toolbar { margin: 0 0 12px; }
.home-page .chiprow { margin: 0 0 24px; padding-left: 0; padding-right: 18px; border-bottom: 1px solid var(--line); }
.home-page .chiprow::after { background: linear-gradient(to right,transparent,var(--card)); }
.home-page :is(.timeline-panel,#timeline) .day-head { margin: 24px 0 0; padding: 12px 14px; border: 0; border-radius: 8px; background: var(--soft); }
.home-page :is(.timeline-panel,#timeline) .day:first-child .day-head { margin-top: 0; }
.home-page :is(.timeline-panel,#timeline) .day-head .date { font-size: 15px; color: var(--ink); }
.home-page :is(.timeline-panel,#timeline) .day-head .info { font-size: 12px; }
.home-page .item { padding: 24px 0; }
.home-page .day .item:last-child { border-bottom: 0; }
.home-page .item h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.55; }
.home-page .item .sum { margin: 0 0 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.75; }
.home-page .item .card-meta { margin: 0; }
.home-page .item .card-source-name { font-weight: 400; color: var(--sub); }
.home-page .item .srcbadge { display: none; }
.home-page .item .vendors { margin-top: 6px; gap: 8px; }
.home-page .item .chip,.home-page .item .vtag { background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 11px; color: var(--sub); }
.item details.why { margin-top: 8px; color: var(--txt2); }
.item details.why>summary { cursor: pointer; font-size: 12px; color: var(--sub); min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; width: fit-content; }
.item details.why>summary::-webkit-details-marker { display: none; }
.item details.why>summary::after { content: "+"; color: var(--accent); }
.item details.why[open]>summary::after { content: "−"; }
.item details.why p { margin: 0 0 8px; padding: 12px 14px; background: var(--soft); border-radius: 8px; font-size: 13px; line-height: 1.8; }
.home-page aside .vendor-rank-card { border: 0; padding: 10px 0; }
.article .article-brief { padding: 2px 22px; background: var(--soft); border: 0; border-radius: 12px; margin-top: 24px; margin-bottom: 40px; }
.article .article-brief>summary { padding: 16px 0; color: var(--accent); font-weight: 600; }
.article .article-brief-body { padding-bottom: 20px; }
.article .content-heading { padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.article .fulltext h2 { margin-top: 40px; }
.article .fulltext h3 { margin-top: 30px; }
.topbar.detail-context .sbtn.ghost { border-color: transparent; background: transparent; }
@media(max-width:600px) {
  .home-page .today-hot { padding: 18px 18px 4px; margin-bottom: 8px; border-radius: 12px; }
  .home-page .today-hot-head { padding-bottom: 16px; }
  .home-page .today-hot-list { grid-template-columns: minmax(0,1fr); }
  .home-page .today-hot-row.is-lead { padding-bottom: 20px; gap: 8px; }
  .home-page .today-hot-row.is-lead .today-hot-title { font-size: 24px; }
  .home-page .today-hot-row .today-hot-title { font-size: 15px; }
  .home-page .today-hot-row:nth-child(2),.home-page .today-hot-row:nth-child(3) { padding: 13px 0; }
  .today-hot-intro { font-size: 14px; margin-top: 10px; }
  .home-page .weekly-strip { margin-bottom: 26px; }
  .home-page .timeline-panel { padding: 18px 18px 4px; border-radius: 12px; }
  .home-page .chiprow { margin-bottom: 18px; }
  .home-page :is(.timeline-panel,#timeline) .day-head { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .home-page .item { padding: 20px 0; }
  .home-page .item h3 { font-size: 18px; }
  .home-page .item .sum { font-size: 14px; }
  .article .article-brief { padding: 0 16px; margin-bottom: 32px; }
}
@media(hover:hover) { .home-page .today-hot-row:hover { background: transparent; } }
.home-page :is(.timeline-panel,#timeline) .day-head::after { display: none; }

/* Compact reading rhythm and progressive home filters. */
.home-page .home-filters { position: relative; margin-bottom: 20px; }
.home-filterbar { display: flex; align-items: start; gap: 14px; border-bottom: 1px solid var(--line); }
.home-page .home-filters .chiprow { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; gap: 20px; }
.home-page .home-filters .chiprow::after { display: none; }
.filter-more { flex: 0 0 auto; }
.filter-more>summary { list-style: none; display: flex; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; color: var(--sub); font-size: 13px; }
.filter-more>summary::-webkit-details-marker { display: none; }
.filter-more[open]>summary,.filter-more.has-selection>summary { color: var(--accent); }
.filter-more.has-selection>summary::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.filter-options { position: absolute; z-index: 45; top: 48px; right: 0; width: min(380px,100%); box-sizing: border-box; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 8px 28px rgba(0,0,0,.14); max-height: min(480px,60vh); overflow-y: auto; }
.filter-options fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.filter-options fieldset:last-child { margin-bottom: 0; }
.filter-options legend { font-size: 11px; color: var(--sub); margin-bottom: 6px; }
.filter-option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.filter-options .fchip { min-height: 44px; padding: 6px; border: 1px solid transparent; border-radius: 6px; background: var(--soft); color: var(--txt2); cursor: pointer; font-size: 12px; }
.filter-options .fchip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.filter-selection { margin: 8px 0 0; font-size: 12px; color: var(--accent); }
.filter-selection[hidden] { display: none; }
.home-page .item { padding: 20px 0; }
.home-page .item .sum { margin-bottom: 8px; }
.home-page .item .card-meta { display: flex; flex-wrap: nowrap; gap: 8px; }
.home-page .item .card-source { display: flex; align-items: center; flex: 1; min-width: 0; gap: 6px; white-space: nowrap; overflow: hidden; }
.home-page .item .card-source-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-page .item .card-time { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-page .item .heatnum,.home-page .item .favbtn { flex-shrink: 0; }
.home-page .item .vendors { margin-top: 4px; }
.home-page .item .vendors>:nth-child(n+3) { display: none; }
.home-page .item details.why { margin-top: 2px; }
.home-page .item details.why>summary { min-height: 32px; }
.home-page aside .vendor-rank-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--card); box-shadow: 0 2px 4px rgba(20,40,30,.025),0 8px 24px rgba(20,40,30,.055); }
.home-page .vendor-card-head { gap: 10px; flex-wrap: wrap; }
.home-page .vendor-card-title { font-size: 13px; }
.home-page .vendor-card-link { font-size: 11px; }
@media(max-width:600px) {
  .home-filterbar { gap: 10px; }
  .home-page .home-filters { margin-bottom: 16px; }
  .home-page .home-filters .chiprow { gap: 12px; }
  .home-page .home-filters .chiprow .fchip { font-size: 12px; }
  .filter-more>summary { font-size: 12px; }
  .home-page .item { padding: 16px 0; }
  .home-page .item .sum { -webkit-line-clamp: 2; }
  .home-page .item .card-meta { font-size: 11px; gap: 5px; }
  .home-page .item .top-rank { padding: 1px 3px; font-size: 9px; }
}

/* Keep the reading argument together; metadata belongs at the foot of a story. */
.home-page .item details.why { margin: 12px 0; padding: 8px 12px; background: var(--soft); border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; }
.home-page .item details.why>summary { min-height: 36px; font-size: 12px; color: var(--accent); }
.home-page .item details.why p { margin: 0; padding: 0 0 4px; background: transparent; border-radius: 0; font-size: 13px; line-height: 1.75; }
@media(max-width:600px) {
  .home-page .timeline-panel { padding: 16px 12px 4px; }
  .home-page #timeline .day-head { position: static; top: auto; z-index: auto; min-height: 0; margin: 20px 0 0; padding: 10px 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
  .home-page #timeline .day:first-child .day-head { margin-top: 0; }
  .home-page #timeline .day-head .date { font-size: 14px; }
  .home-page #timeline .day-head .info { font-size: 11px; }
  .home-page .item { padding: 20px 0; }
  .home-page .item h3 { line-height: 1.5; margin-bottom: 10px; }
  .home-page .item details.why>summary { min-height: 44px; }
  .home-page .item details.why { padding: 0 10px 8px; margin: 12px 0 10px; }
  .home-page .item details.why:not([open]) { padding-bottom: 0; }
  .home-page .item .vendors { display: none; }
}

/* Persistent selection and immediate feedback while native navigation loads. */
.tabbar .ico { width: 44px; border-radius: 10px; transition: background .12s ease; }
.tabbar a.on .ico,.tabbar button.on .ico,.tabbar button[aria-expanded="true"] .ico { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }
.tabbar a.on,.tabbar button.on { color: var(--accent); font-weight: 700; }
.tabbar a:active,.tabbar button:active,.tabbar a.is-pending { background: var(--accent-soft); }
.tabbar a.is-pending .ico { box-shadow: inset 0 0 0 2px var(--accent); }
.sidebar a.is-pending,.more-sheet a.is-pending { background: var(--accent-soft); color: var(--accent); }
.nav-status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: 0 4px 18px rgba(0,0,0,.12); pointer-events: none; }
.nav-status[hidden] { display: none; }
@media(max-width:600px) { .nav-status { bottom: calc(68px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); white-space: nowrap; } }
