/* Extends the established article palette and typography. */
:root { --research-surface: #f7f8fa; --research-muted: #eef5fb; }
.research-shell { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: #fff; border: 2px solid var(--slate); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 4px; }
[hidden] { display: none !important; }
.preview { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); margin: 0 0 28px; }
.index-hero { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: center; margin: 20px 0 44px; }
.index-hero h1 { max-width: 750px; font-size: clamp(36px, 5.3vw, 64px); line-height: 1.04; margin: 12px 0 22px; }
.intro { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink2); max-width: 750px; }
.stat-panel { padding: 8px 28px; border-radius: 24px; background: var(--slate); color: #fff; }
.stat-panel div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.stat-panel div:last-child { border-bottom: 0; }
.stat-panel b { display: block; font-size: 38px; line-height: 1.15; }
.stat-panel span { font-size: 14px; font-weight: 700; opacity: .9; }
.disclosure { padding: 18px 22px; background: var(--sky2); border-left: 4px solid var(--slate); border-radius: 0 16px 16px 0; line-height: 1.65; font-size: 15px; color: var(--ink2); margin: 24px 0 36px; }
.disclosure strong { color: var(--slate-dark); }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 22px; background: var(--research-surface); border-radius: 20px; }
.filters label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 800; flex: 1 1 200px; }
input, select, textarea, button { font: inherit; }
input[type="search"], input[type="text"], input[type="number"], input[type="datetime-local"], select, textarea { width: 100%; min-height: 46px; border: 1px solid #b7bdc5; border-radius: 10px; background: #fff; color: var(--ink); padding: 10px 12px; font-size: 16px; }
textarea { min-height: 96px; }
.filters .check-filter { flex-direction: row; align-items: center; align-self: center; line-height: 1.4; font-weight: 700; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--slate); flex: none; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--slate); font-weight: 800; text-decoration: none; cursor: pointer; line-height: 1.25; }
.primary { background: var(--slate); color: #fff; }
.secondary { background: #fff; color: var(--slate-dark); }
.filter-status, .small { font-size: 14px; color: var(--ink2); line-height: 1.6; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 24px 0 48px; }
.app-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; min-width: 0; }
.app-card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.app-card-top > div { min-width: 0; }
.app-card h2 { margin: 7px 0 10px; font-size: 25px; }
.app-card h2 a { overflow-wrap: anywhere; }
.app-card h2 a { text-decoration: none; }
.app-card > p { font-size: 16px; }
.app-card > .small { font-size: 14px; }
.pick { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; min-height: 44px; }
.method-list { margin: 22px 0; font-size: 14px; }
.method-list > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.method-list dt { font-weight: 800; }
.method-list dd { margin: 0; text-align: right; }
.claim { display: inline-block; border-radius: 7px; padding: 4px 7px; font-size: 12px; font-weight: 800; line-height: 1.4; }
.claim-yes { background: var(--sky2); color: var(--slate-dark); }
.claim-no, .claim-unknown { background: #f1f3f5; color: var(--ink2); }
.read-more, .text-link { font-size: 15px; text-underline-offset: 4px; }
.reading { max-width: 800px; margin: 34px 0; }
.reading h1 { margin-top: 12px; }
.reading blockquote { padding: 20px; margin: 24px 0; border-left: 4px solid var(--slate); background: var(--sky2); font-size: 20px; line-height: 1.6; }
.guide-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 20px 0; }
.guide-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; margin: 24px 0 40px; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; text-align: left; font-size: 15px; line-height: 1.6; }
th, td { vertical-align: top; padding: 16px; border-bottom: 1px solid var(--line); }
thead th { background: var(--sky2); color: var(--slate-dark); }
tbody th { width: 21%; font-weight: 800; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.sources { padding-left: 24px; }
.sources li { margin: 14px 0; }
.sources span { display: block; font-size: 14px; color: var(--ink2); }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 24px 0; }
.selected-compare { padding: 20px; background: var(--research-surface); border-radius: 20px; margin: 24px 0; }
.selected-compare h2 { margin-top: 4px; }
.selected-compare .table-scroll { background: #fff; margin-bottom: 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 24px 0; }
.case-card { border: 1px solid var(--line); padding: 22px; border-radius: 18px; }
.case-card h3 { font-size: 18px; line-height: 1.6; margin: 10px 0; }
.case-card p { font-size: 14px; }
.case-card details { padding: 10px 12px; }
.case-card summary { font-size: 14px; }
.case-card li { font-size: 14px; }
.method-explanation > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.method-explanation dt { font-weight: 900; font-size: 19px; }
.method-explanation dd { margin: 7px 0 0; font-size: 17px; line-height: 1.65; color: var(--ink2); }
.recorder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.recorder-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.recorder-grid fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.recorder-grid fieldset label { flex-direction: row; align-items: center; margin: 8px 0; }
.recorder-grid .wide { grid-column: 1 / -1; }
.error-message { color: #b3261e; font-weight: 800; white-space: pre-line; }
@media (max-width: 820px) {
  .index-hero { grid-template-columns: 1fr; gap: 26px; }
  .stat-panel { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 22px; gap: 20px; }
  .stat-panel div { padding: 0; border: 0; }
  .stat-panel b { font-size: 30px; }
  .stat-panel span { font-size: 12px; }
}
@media (max-width: 640px) {
  .research-shell { padding: 20px 16px 44px; }
  .index-hero { margin-top: 12px; }
  .app-grid, .case-grid, .guide-links, .recorder-grid { grid-template-columns: 1fr; }
  .app-card { padding: 20px; }
  .filters { padding: 18px; gap: 18px; }
  .filters label { flex-basis: 100%; }
  .stat-panel { gap: 14px; padding: 20px; }
  .stat-panel span { display: block; line-height: 1.4; }
  .page-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .disclosure { padding: 16px; }
}
@media (max-width: 360px) {
  .top { flex-wrap: wrap; gap: 12px; }
  .top nav { margin-left: auto; }
}

/* Comparison tools: one choice first, supporting evidence on demand. */
body { background: var(--research-surface); }
.top { background: #fff; padding: 14px max(20px, calc((100vw - 1132px) / 2)); }
.top nav a { padding: 8px 0; }
.research-shell { padding-top: 28px; }
.finder-page { padding-bottom: 24px; }
.compare-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.compare-switch a { min-height: 42px; padding: 10px 17px; font-size: 14px; text-decoration: none; border-radius: 9px; }
.compare-switch a[aria-current] { background: var(--slate); color: #fff; }
.finder-hero { padding: 34px 0 20px; max-width: 800px; }
.finder-hero h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; margin: 10px 0 12px; }
.finder-hero .intro { margin: 0; font-size: 19px; max-width: 620px; }
.source-note { color: var(--ink2); font-size: 13px; line-height: 1.6; max-width: 850px; margin: 0 0 28px; }
.source-note a { white-space: nowrap; text-underline-offset: 3px; }
.finder-panel { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.section-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading > .small { margin: 0; white-space: nowrap; }
.method-choices { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.method-choice { min-height: 44px; padding: 10px 16px; color: var(--slate-dark); background: #fff; border: 1px solid #cbd0d5; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; }
.method-choice[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.method-choice:hover:not([aria-pressed="true"]), .goal-choice:hover { background: var(--sky2); }
.filter-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.search-label { flex: 1 1 240px; }
.search-label input { background: var(--research-surface); border-color: #cbd0d5; }
.check-filter { display: flex; align-items: center; gap: 9px; font-size: 14px; line-height: 1.45; font-weight: 700; cursor: pointer; }
.check-filter:has(input:disabled) { opacity: .55; cursor: default; }
.quiet-button { border: 0; background: transparent; color: var(--slate-dark); cursor: pointer; min-height: 44px; padding: 8px; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.filter-help { margin: 12px 0 0; font-size: 12px; }
.results-heading { margin: 30px 0 0; align-items: end; }
.results-heading h2 { margin: 0; }
.results-heading p { margin: 4px 0 0; }
.result-legend { margin: 12px 0 0; font-size: 12px; }
.app-grid { gap: 18px; margin-top: 18px; }
.app-card { background: #fff; padding: 24px; border-color: #dfe3e8; border-radius: 18px; }
.app-card.is-selected { border-color: var(--slate); box-shadow: 0 0 0 1px var(--slate); }
.app-card h2, .app-card h3 { font-size: 24px; margin: 0; line-height: 1.3; }
.app-card h3 a { text-decoration: none; }
.app-card .kicker { margin: 0 0 6px; font-size: 10px; }
.app-card .app-description { color: var(--ink2); margin: 12px 0; font-size: 14px; line-height: 1.6; }
.pick { border: 1px solid #cbd0d5; border-radius: 9px; padding: 6px 10px; font-size: 12px; cursor: pointer; flex: none; }
.is-selected .pick { background: var(--sky2); border-color: var(--slate); }
.pick input { width: 16px; height: 16px; }
.method-list { margin: 14px 0; font-size: 13px; }
.method-list dt { font-weight: 700; }
.method-list > div { min-height: 42px; gap: 12px; }
.method-list > div:last-child { border-bottom: 0; }
.claim { padding: 4px 8px; white-space: nowrap; font-size: 11px; }
.claim-no { background: #f1f3f5; color: var(--slate-dark); }
.claim-unknown { background: transparent; color: var(--ink2); font-weight: 700; padding-right: 0; }
.card-details { margin: 4px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.card-details summary { min-height: 32px; font-size: 13px; color: var(--slate-dark); }
.card-details .read-more { display: inline-block; margin-top: 12px; font-size: 13px; }
.compare-tray { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); width: min(900px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid #cbd0d5; border-radius: 18px; padding: 16px 20px; box-shadow: 0 8px 38px rgba(17,24,39,.15); }
.compare-tray p { margin: 0 0 6px; font-size: 12px; color: var(--ink2); }
.selection-chips, .tray-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tray-actions { flex: none; }
.selection-chip { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 800; padding: 6px 10px; min-height: 36px; border: 0; border-radius: 8px; color: var(--slate-dark); background: var(--sky2); cursor: pointer; }
.selection-chip span { font-size: 18px; }
button:disabled { cursor: default; opacity: .5; }
.finder-page:has(.compare-tray:not([hidden])) { padding-bottom: 150px; }
.finder-page:has(.selected-compare:not([hidden])) .compare-tray { display: none; }
.selected-compare { scroll-margin-top: 90px; background: #fff; border: 1px solid var(--line); }
.selected-compare .section-heading h2 { font-size: 24px; }
.selected-compare table { table-layout: fixed; min-width: 560px; }
.selected-compare thead th { width: 38%; }
.selected-compare thead th:first-child { width: 24%; }
.table-detail { margin: 10px 0 0; border: 0; padding: 0; }
.table-detail summary { font-size: 12px; color: var(--ink2); }
.sharing-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border: 0; padding: 0; margin: 20px 0; min-width: 0; }
.goal-choice { display: flex; gap: 10px; align-items: center; padding: 16px; border: 1px solid #cbd0d5; border-radius: 12px; cursor: pointer; }
.goal-choice:has(input:checked) { border-color: var(--slate); background: var(--sky2); box-shadow: inset 0 0 0 1px var(--slate); }
.goal-choice input { margin: 0; width: 18px; height: 18px; accent-color: var(--slate); flex: none; }
.goal-choice strong { display: block; color: var(--slate-dark); font-size: 15px; }
.goal-choice small { display: block; color: var(--ink2); font-size: 12px; margin-top: 3px; }
.refine-choices { margin: 0; padding: 16px 0 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.refine-choices summary { min-height: 36px; font-size: 14px; }
.refine-choices summary span { color: var(--ink2); font-weight: 600; }
.preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0; }
.preference-grid .check-filter { min-height: 44px; }
.refine-choices p { font-size: 12px; }
#sharing-count { margin-top: 26px; }
.fit-note { background: var(--research-surface); padding: 10px 12px; border-radius: 8px; font-size: 12px !important; }
.empty-match { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.other-apps, .method-disclosure { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.other-apps .app-grid { margin-bottom: 0; }
.method-disclosure { margin-top: 36px; scroll-margin-top: 90px; }
.method-disclosure > summary { font-size: 15px; }
.method-disclosure .reading { margin-bottom: 0; }
.reading { padding-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .top { padding: 10px 16px; }
  .top .brand { font-size: 16px; gap: 8px; }
  .top .brand img { width: 30px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 13px; }
  .compare-switch { display: flex; }
  .compare-switch a { flex: 1; text-align: center; padding: 10px 8px; font-size: 12px; }
  .finder-hero { padding: 28px 0 16px; }
  .finder-hero .intro { font-size: 16px; }
  .finder-hero .kicker { font-size: 11px; }
  .source-note { font-size: 12px; margin-bottom: 22px; }
  .finder-panel { padding: 18px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > .small { display: none; }
  .method-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
  .method-choice { font-size: 13px; padding: 10px 8px; }
  .filter-tools { gap: 12px; justify-content: space-between; }
  .search-label { flex-basis: 100%; }
  .check-filter { font-size: 13px; }
  .results-heading { align-items: start; flex-direction: column; gap: 4px; }
  .results-heading h2 { font-size: 22px; }
  .results-heading > .small { font-size: 12px; }
  .app-card { padding: 20px; }
  .app-card h2, .app-card h3 { font-size: 22px; }
  .compare-tray { flex-wrap: wrap; padding: 14px; gap: 12px; bottom: max(10px, env(safe-area-inset-bottom)); }
  .compare-tray > div { width: 100%; }
  .tray-actions { justify-content: space-between; }
  .tray-actions .primary { flex: 1; font-size: 14px; }
  .selection-chip { font-size: 12px; }
  .selected-compare { padding: 16px; }
  .selected-compare .section-heading h2 { font-size: 20px; }
  .selected-compare table { min-width: 0; font-size: 12px; }
  .selected-compare th, .selected-compare td { padding: 12px 4px; overflow-wrap: anywhere; }
  .selected-compare thead th { width: 36%; }
  .selected-compare thead th:first-child { width: 28%; }
  .selected-compare thead { font-size: 11px; }
  .selected-compare thead a { white-space: nowrap; }
  .selected-compare .claim { white-space: normal; font-size: 10px; padding: 4px; }
  .sharing-goals { grid-template-columns: 1fr; gap: 8px; margin: 16px 0; }
  .goal-choice { padding: 12px 14px; }
  .goal-choice span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex: 1; }
  .goal-choice strong { font-size: 14px; }
  .goal-choice small { font-size: 11px; text-align: right; margin: 0; }
  .preference-grid { grid-template-columns: 1fr; gap: 16px; }
}
