:root {
  --paper: #fffdf9;
  --cream: #f7f1e9;
  --surface: #fff;
  --ink: #30262d;
  --muted: #6f6468;
  --line: #e1d7cf;
  --coral: #e65d60;
  --accent: #c94750;
  --accent-dark: #ad3541;
  --danger: #9f1d24;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  border-top: 4px solid var(--coral);
  background: radial-gradient(ellipse at 90% 0%, #ecd8d250, transparent 600px), var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #ecd8d2; color: var(--ink); }

.brand-bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(1120px, calc(100% - 64px));
  min-height: 88px;
  margin: 0 auto;
  padding: 16px 0;
}

.brand-link { display: block; max-width: 100%; border-radius: 3px; }
.brand-logo { display: block; width: 200px; max-width: 100%; height: auto; }

.shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

header {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 32px;
}

.title-block { min-width: 0; }

.eyebrow {
  margin: 0 210px 20px 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.3vw, 66px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.intro { max-width: 950px; margin: 0; color: var(--muted); line-height: 1.65; }
.intro a { color: inherit; text-underline-offset: 3px; }

.usage-counter {
  position: absolute;
  top: -3px;
  right: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.usage-count { color: var(--ink); font-weight: 600; font-size: 15px; margin-right: 4px; }

.layout { display: grid; gap: 24px; align-items: start; }
.match-form { display: grid; gap: 24px; min-width: 0; }

.panel {
  min-width: 0;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.panel h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.section-note { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.input-grid { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); gap: 24px; }
.input-option { display: flex; flex-direction: column; min-width: 0; }
.option-title { margin: 0 0 12px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.input-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.input-status { min-width: 0; flex: 1; margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
#findEditorsButton { flex: 0 0 auto; min-width: 160px; }

.or-divider {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}
.or-divider::before, .or-divider::after { content: ""; width: 1px; height: 100%; background: var(--line); }
.field { min-width: 0; }
.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; }
label { display: block; margin: 0 0 7px; font-size: 15px; font-weight: 600; }

input[type="text"], input[type="file"], textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input[type="text"] { min-height: 46px; padding: 10px 12px; }
input[type="file"] { padding: 12px; color: var(--muted); cursor: pointer; }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
textarea { min-height: 138px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: 3px solid #e65d6033; outline-offset: 1px; border-color: var(--accent); }
:where(button, a, summary, .paper-title-button):focus-visible { outline: 3px solid #e65d6066; outline-offset: 4px; }
.actions { display: flex; align-items: center; gap: 10px; }

button {
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
}
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .65; }
.pdf-drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 138px; flex: 1; padding: 16px; border: 1px dashed var(--line); background: var(--paper); color: var(--muted); text-align: center; font-size: 15px; overflow-wrap: anywhere; }
.pdf-drop-zone svg { flex: 0 0 28px; color: var(--accent); }
.pdf-drop-zone:hover, .pdf-drop-zone:focus-visible, .pdf-drop-zone.is-dragging { background: var(--cream); border-color: var(--accent); color: var(--ink); }
.pdf-drop-zone.is-dragging { outline: 2px solid #e65d6033; outline-offset: 2px; }
.pdf-drop-zone.has-file { border-style: solid; }
.pdf-drop-zone #dropLabel { font-weight: 400; }
.pdf-drop-zone.has-file #dropLabel, .pdf-drop-zone strong { font-weight: 600; }
.drop-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.field-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.field-panel-heading h2 { margin: 0; }
.field-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; margin: 0; padding: 0; min-width: 0; border: 0; }
.field-option { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 18px; min-width: 0; min-height: 50px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); font-size: 17px; font-weight: 400; cursor: pointer; }
.field-option span { min-width: 0; overflow-wrap: anywhere; }
.field-option:hover { background: var(--paper); border-color: var(--muted); }
.field-option:has(input:checked) { background: var(--cream); border-color: var(--muted); box-shadow: inset 0 0 0 1px var(--muted); font-weight: 600; }
.field-option input { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.field-option input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field-selector:disabled { opacity: .65; }
.field-selector:disabled .field-option, .field-selector:disabled input { cursor: wait; }
#narrowSearch, #feedbackHeading, #dataPrivacy { scroll-margin-top: 24px; }
.narrow-search { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 250px; padding: 8px 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 400; }
.narrow-search:hover { background: transparent; color: var(--accent); }
.narrow-search svg { flex: 0 0 14px; transition: transform 160ms ease; }
.narrow-search[aria-expanded="true"] svg { transform: rotate(180deg); }
.journal-selection-count { font-size: 13px; color: var(--accent); }
.journal-panel { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.journal-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.journal-panel h3 { margin: 0; font-size: 17px; font-weight: 600; }
.journal-count { font-size: 14px; color: var(--muted); }
.journal-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.journal-shortcuts { display: flex; flex-wrap: wrap; gap: 20px; margin: 4px 0 14px; }
.text-button { min-height: 36px; padding: 4px 0; background: transparent; color: var(--accent); font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { background: transparent; color: var(--accent-dark); }
.journal-options { columns: 3; column-gap: 26px; }
.journal-option { display: flex; align-items: flex-start; gap: 9px; break-inside: avoid; margin: 0; padding: 7px 0; font-size: 14px; font-weight: 400; line-height: 1.35; cursor: pointer; }
.journal-option[hidden] { display: none; }
.journal-option:hover { color: var(--accent); }
.journal-option input { flex: 0 0 16px; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.journal-panel fieldset:disabled { opacity: .65; }
.journal-scope-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.hint { margin: 9px 0 0; color: var(--muted); font-size: 14px; }

.empty {
  display: grid;
  min-height: 136px;
  place-items: center;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; line-height: 1.45; }
th, td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
th { padding-top: 12px; padding-bottom: 12px; background: var(--cream); color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
th:first-child, td:first-child { width: 60px; text-align: center; overflow-wrap: normal; }
td:first-child { color: var(--accent); font-size: 19px; font-family: var(--serif); }
th:nth-child(2) { width: 24%; }
th:nth-child(3) { width: 23%; }
tbody tr:hover { background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
.editor { margin-bottom: 4px; font-weight: 600; }
.editor .match-signal { margin-left: 4px; vertical-align: -1.5px; }
.match-signal { display: inline-flex; align-items: center; flex: 0 0 16.875px; width: 16.875px; height: 16.5px; vertical-align: middle; }
.match-signal svg { display: block; width: 16.875px; height: 15px; overflow: visible; }
.match-signal--1, .match-signal--2 { color: #b8464c; }
.match-signal--3 { color: #ab8010; }
.match-signal--4, .match-signal--5 { color: #287653; }
.signal-filled { fill: currentColor; }
.signal-empty { fill: transparent; stroke: #cfc5bf; stroke-width: .7px; }
.match-signal--unavailable { color: var(--muted); justify-content: center; }
.result-link { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 160ms ease; }
.result-link:hover, .result-link:focus { color: var(--accent); text-decoration-color: currentColor; }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.45; }
.matched { color: var(--muted); font-size: 14px; line-height: 1.55; }
.paper-title-button { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; cursor: pointer; }
.paper-title-button:hover { background: none; color: var(--accent); text-decoration-color: currentColor; }
.mobile-related-papers { display: none; }
.paper-details-dialog { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 26px 30px 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 60px #30262d33; overflow: auto; overflow-wrap: anywhere; }
.paper-details-dialog::backdrop { background: #30262d66; }
.paper-details-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.paper-details-kicker { flex: 1; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.paper-details-footer { display: flex; justify-content: flex-end; padding-top: 20px; }
.paper-scholar-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); text-decoration: none; }
.paper-scholar-link:hover { background: var(--cream); border-color: var(--muted); color: var(--ink); }
.paper-scholar-link svg { flex-shrink: 0; }
.paper-details-close { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; min-height: 36px; padding: 7px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.paper-details-close:hover { background: var(--cream); color: var(--ink); }
.paper-details-dialog h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 29px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.paper-details-authors { margin: 0 0 6px; font-size: 15px; }
.paper-details-publication { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.paper-details-dialog h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.paper-details-abstract { margin: 0; font-size: 16px; line-height: 1.65; white-space: pre-line; }

.result-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 12px; }
.result-action { display: inline-grid; place-items: center; width: 38px; min-height: 38px; padding: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.result-action:hover { background: var(--cream); border-color: var(--muted); color: var(--ink); }
.result-action-download { display: inline-flex; width: auto; gap: 4px; font-size: 12px; font-weight: 400; }
.result-action-download svg { width: 18px; height: 18px; }
.result-action-status { color: var(--danger); font-size: 13px; }
.result-action-status:empty { display: none; }
.results-print-metadata { display: none; }

.recommendation-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.recommendation-feedback .result-actions { flex: 0 0 auto; margin-left: auto; padding-top: 0; }
.recommendation-votes { display: flex; gap: 8px; }
.recommendation-vote { display: inline-grid; place-items: center; min-height: 38px; width: 38px; padding: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.recommendation-vote:hover { background: var(--cream); color: var(--ink); border-color: var(--muted); }
.recommendation-vote[aria-pressed="true"] { background: var(--cream); border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.thumb-down { transform: rotate(180deg); }
.recommendation-feedback-status { font-size: 13px; }
.recommendation-feedback-status.error { margin: 0; padding: 0; }
.recommendation-comment-form { flex: 0 0 100%; display: grid; gap: 10px; margin-top: 8px; }
.recommendation-comment-form > * { max-width: 600px; }
.recommendation-comment-form[hidden] { display: none; }
.recommendation-comment-form label { color: var(--ink); font-size: 14px; font-weight: 500; }
.recommendation-comment-form textarea { min-height: 90px; font-size: 14px; background: var(--surface); }
.recommendation-comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.recommendation-comment-actions button { min-height: 36px; padding: 7px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 13px; }
.recommendation-comment-actions button:hover { background: var(--cream); border-color: var(--muted); }

.faq-panel, .feedback-panel { margin-top: 16px; padding: 0 0 8px; border: 0; background: transparent; }
.faq-panel h2 { margin-bottom: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; transition: color 160ms ease; }
.faq-item summary:hover, .faq-item summary:focus { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 940px; margin: 0; padding: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-answer a { color: var(--accent); text-underline-offset: 3px; }
.feedback-disclosure summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; transition: color 160ms ease; }
.feedback-disclosure summary:hover { color: var(--accent); }
.feedback-disclosure summary::-webkit-details-marker { display: none; }
.feedback-chevron { flex: 0 0 18px; color: var(--accent); transition: transform 160ms ease; }
.feedback-disclosure[open] .feedback-chevron { transform: rotate(180deg); }
.feedback-content { padding-top: 16px; }
.feedback-copy { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.feedback-form { display: grid; gap: 14px; }
.feedback-form textarea { min-height: 120px; background: var(--surface); }
.feedback-actions { display: flex; justify-content: flex-end; }
.feedback-status { margin: 0; color: var(--muted); font-size: 15px; }
.feedback-status.success { color: #306442; }
.feedback-status.error, .error { color: var(--danger); }
.error { position: relative; margin-top: 14px; padding-right: 24px; font-size: 15px; line-height: 1.5; }
.limit-reset-button { position: absolute; top: 0; right: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; min-height: 0; padding: 0; border: 1px solid #9f1d242e; border-radius: 50%; background: transparent; color: #9f1d246b; font-size: 12px; line-height: 1; }
.limit-reset-button:hover, .limit-reset-button:focus { background: #9f1d240f; color: var(--danger); }

@media (max-width: 860px) {
  .brand-inner { width: calc(100% - 40px); }
  .shell { width: calc(100% - 40px); padding-top: 32px; }
  .eyebrow { margin-right: 0; }
  .usage-counter { position: static; margin-top: 18px; text-align: right; }
  .panel { padding: 24px; }
  .input-grid { grid-template-columns: 1fr; gap: 20px; }
  .or-divider { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto; }
  .or-divider::before, .or-divider::after { width: 100%; height: 1px; }
  .input-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  #findEditorsButton { width: 100%; min-width: 0; }
  .narrow-search { align-self: flex-start; }
  .journal-options { columns: 2; }
  .faq-panel, .feedback-panel { padding: 0 0 8px; }
}

@media (max-width: 600px) {
  .brand-inner { width: calc(100% - 32px); min-height: 72px; padding: 12px 0; }
  .brand-logo { width: 168px; }
  .shell { width: calc(100% - 32px); padding: 28px 0 40px; }
  header { margin-bottom: 24px; padding-bottom: 24px; }
  .eyebrow { max-width: 290px; margin-bottom: 16px; font-size: 11px; }
  h1 { max-width: 400px; font-size: clamp(39px, 10.5vw, 54px); line-height: 1.03; }
  .intro { font-size: 16px; }
  .layout, .match-form { gap: 20px; }
  .panel { padding: 22px 18px; }
  .panel h2 { font-size: 27px; }
  .section-note { margin-bottom: 20px; }
  .option-title { font-size: 16px; }
  input[type="file"] { padding: 10px; font-size: 14px; }
  input[type="file"]::file-selector-button { margin-right: 8px; padding: 8px 10px; }
  .empty { padding: 18px; }
  th, td { padding: 14px 7px; }
  th { font-size: 10px; letter-spacing: .06em; }
  th:first-child, td:first-child { width: 38px; padding-left: 0; padding-right: 5px; }
  th:nth-child(2) { width: 49%; }
  th:nth-child(3) { width: auto; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  table { font-size: 15px; }
  .subtle { font-size: 13px; }
  .faq-panel, .feedback-panel { margin-top: 12px; padding: 0 0 8px; }
  .journal-options { columns: 1; }
  .field-selector { grid-template-columns: 1fr; gap: 8px; }
  .field-option { padding: 10px 14px; min-height: 46px; font-size: 16px; }
  .field-panel-heading { gap: 4px 12px; margin-bottom: 12px; }
  .recommendation-feedback-prompt { flex: 0 0 100%; }
  .recommendation-feedback > .recommendation-feedback-status { order: 1; flex: 0 0 100%; }
  .recommendation-feedback > .recommendation-feedback-status:empty { display: none; }
  .recommendation-comment-form { order: 2; }
  .mobile-related-papers { display: block; margin-top: 9px; }
  .mobile-related-papers summary { width: fit-content; color: var(--muted); font-size: 12px; cursor: pointer; }
  .mobile-related-papers .matched { margin-top: 7px; font-size: 13px; }
  .paper-details-dialog { padding: 20px; max-height: calc(100dvh - 24px); }
  .paper-details-dialog h2 { font-size: 25px; }
  .paper-details-toolbar { gap: 8px; }
  .paper-details-kicker { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 360px) {
  .recommendation-feedback { column-gap: 8px; }
  .recommendation-votes, .result-actions { gap: 6px; }
  .recommendation-vote, .result-action { width: 36px; min-height: 38px; }
  .result-action-download { width: auto; padding-inline: 5px; font-size: 11px; }
  .result-action-download svg { width: 16px; height: 16px; }
}
/* PDF extraction fills the existing editable input before a recommendation. */
textarea.extracted-text { min-height: 20rem; }
.extraction-notice { margin-top: 0.7rem; font-size: 0.95rem; }

@media print {
  @page { margin: 15mm; }
  body { min-height: auto; border: 0; background: #fff; color: #000; font-size: 10pt; }
  .brand-bar, .shell > header, .match-form, .faq-panel, .feedback-panel,
  .result-actions, .recommendation-feedback, .paper-details-dialog, .mobile-related-papers { display: none !important; }
  .paper-details-dialog::backdrop { display: none; }
  html { overflow: visible !important; }
  .paper-title-button { color: #333; text-decoration: none; }
  .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
  .layout { display: block; }
  .results-panel { padding: 0; border: 0; background: #fff; }
  .result-head::before { content: 'Scholar-Tools · Journal Matchmaker'; display: block; margin-bottom: 8pt; font-size: 12pt; font-weight: 600; }
  .result-head { break-after: avoid; }
  .results-panel h2 { font-size: 22pt; }
  .result-head .section-note { margin-bottom: 12pt; font-size: 10pt; }
  .results-print-metadata { display: block; margin-bottom: 12pt; font-size: 10pt; overflow-wrap: anywhere; }
  .results-print-metadata p { margin: 0 0 4pt; }
  table { font-size: 10pt; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: 8pt 6pt; border-bottom: 1px solid #ccc; }
  th { color: #333; background: #fff; font-size: 8pt; }
  th:first-child, td:first-child { width: 30pt; }
  td:first-child { color: #000; font-size: 12pt; }
  th:nth-child(2) { width: 25%; }
  th:nth-child(3) { width: 22%; }
  th:nth-child(4), td:nth-child(4) { display: table-cell; }
  .subtle, .matched { color: #333; font-size: 9pt; }
  .match-signal { color: #000; }
  .signal-empty { stroke: #777; }
  .result-link { color: #000; text-decoration: none; }
}
