:root {
  --ink: #17231f;
  --muted: #5d6b66;
  --paper: #f6f4ee;
  --surface: #fffefa;
  --line: #d9ddd7;
  --accent: #9e2f2b;
  --accent-dark: #77211f;
  --green: #234f42;
  --green-soft: #e6eee9;
  --gold: #b68a44;
  --shadow: 0 18px 46px rgba(27, 44, 38, 0.08);
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(35, 79, 66, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 79, 66, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 35, 31, 0.12);
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px 8px 16px 8px;
  color: #fff;
  background: var(--accent);
  font-family: SimSun, serif;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: SimSun, STSong, serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.method-link {
  color: var(--green);
  font-size: 14px;
  text-underline-offset: 5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-notice {
  padding: 5px 9px;
  border: 1px solid rgba(158, 47, 43, 0.28);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(245, 232, 229, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero {
  min-height: auto;
  padding: 48px 0 32px;
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0 62%, var(--gold) 62%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.quote-card h3 {
  font-family: SimSun, STSong, serif;
}

h1 {
  max-width: 880px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-intro {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.compact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.compact-stats span {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.compact-stats span:last-child {
  padding-right: 0;
  border-right: 0;
}

.compact-stats strong {
  color: var(--green);
  font-size: 14px;
}

.scope-details {
  max-width: 880px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.scope-details summary,
.advanced-filters summary,
.record-details-panel summary {
  width: fit-content;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
}

.scope-details p {
  max-width: 820px;
  margin: 10px 0 0;
  line-height: 1.75;
}

.scope-banner {
  max-width: 720px;
  margin: 22px 0 0;
  padding: 12px 15px;
  border-left: 3px solid var(--gold);
  color: #4f5d57;
  background: rgba(255, 254, 250, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

.hero-stats {
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(35, 79, 66, 0.18);
  border-radius: 6px 40px 6px 6px;
  background: rgba(255, 254, 250, 0.76);
  box-shadow: var(--shadow);
}

.hero-stats div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-bottom: 0;
}

.hero-stats dt {
  grid-column: 2;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.hero-stats dd {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-panel {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-top: 3px solid var(--green);
  border-radius: 4px 4px 14px 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-box {
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid #bec8c1;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 79, 66, 0.12);
}

.search-box svg {
  width: 22px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-box input::placeholder {
  color: #89938e;
}

kbd {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--muted);
  background: #f7f7f4;
  font-size: 11px;
}

.secondary-button,
.text-button,
.card-actions button {
  cursor: pointer;
}

.secondary-button {
  min-width: 108px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  background: transparent;
  font-weight: 700;
}

.secondary-button:hover {
  color: #fff;
  background: var(--green);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.filters-six {
  grid-template-columns: repeat(3, 1fr);
}

.primary-filters {
  grid-template-columns: repeat(3, 1fr);
}

.advanced-filters {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.advanced-filter-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.filters label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.filters select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.topic-select {
  display: grid;
  grid-template-columns: 92px minmax(260px, 460px);
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.topic-select > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topic-select select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.active-chip {
  border: 1px solid #cad4ce;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 13px;
}

.results-section {
  padding: 70px 0 84px;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.results-heading h2,
.method-section h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 36px);
}

.text-button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--green);
  background: none;
}

.active-filters {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.active-chip {
  padding: 5px 10px;
}

.results-list {
  display: grid;
  gap: 18px;
}

.quote-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(35, 79, 66, 0.16);
  border-radius: 6px 18px 6px 6px;
  background: var(--surface);
  box-shadow: 0 8px 25px rgba(27, 44, 38, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.quote-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(35, 79, 66, 0.13);
  transform: translateY(-1px);
}

.quote-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 10px;
  color: #fff;
  background: var(--green);
}

.quote-date strong {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.quote-date span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.quote-content {
  padding: 24px 28px 22px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.card-topline > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.occasion-pill {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--accent-dark);
  background: #f5e8e5;
  font-size: 12px;
  font-weight: 700;
}

.source-level {
  padding: 4px 8px;
  border: 1px solid #c6d5ce;
  border-radius: 4px;
  color: var(--green);
  background: #f1f6f3;
  font-size: 12px;
  font-weight: 700;
}

.select-record {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.select-record input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.record-id {
  margin-bottom: 7px;
  color: #8a948f;
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.quote-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.4;
}

.occasion-detail {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

blockquote {
  position: relative;
  margin: 0 0 14px;
  padding: 15px 20px 15px 28px;
  border-left: 3px solid var(--accent);
  color: #202b27;
  background: #f7f5ef;
  font-family: SimSun, STSong, serif;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 700;
  line-height: 1.75;
}

blockquote::before {
  content: "“";
  position: absolute;
  top: 0;
  left: 6px;
  color: rgba(158, 47, 43, 0.22);
  font-family: Georgia, serif;
  font-size: 38px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.tag-list span {
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
}

.record-details-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.record-details-panel[open] > summary {
  margin-bottom: 10px;
}

.record-details {
  margin: 0;
  color: var(--ink);
  border-top: 0;
}

.record-details > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
}

.record-details dt {
  color: var(--muted);
}

.record-details dd {
  margin: 0;
}

.source-raw,
.material-address {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.reference-index-section {
  margin: 30px 0 14px;
}

.reference-index-section details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.reference-index-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.reference-index-section summary::-webkit-details-marker {
  display: none;
}

.reference-index-section summary::after {
  content: "+";
  order: 3;
  font-size: 22px;
  font-weight: 400;
}

.reference-index-section details[open] summary::after {
  content: "−";
}

.reference-index-section summary span:first-child {
  display: grid;
  gap: 4px;
}

.reference-index-section summary strong {
  font-size: 19px;
}

.reference-index-section summary small,
.reference-index-section summary b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.reference-index-intro {
  margin: 0;
  padding: 0 24px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.reference-source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.reference-source-item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.reference-source-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.reference-source-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.reference-source-item p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.reference-source-item .reference-source-meta {
  color: var(--accent-dark);
  font-weight: 700;
}

.reference-source-item .reference-source-note {
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.reference-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.reference-source-links a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 4px;
}

.research-section {
  margin-bottom: 26px;
  padding: 54px 0 20px;
}

.section-heading h2,
.research-section h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 36px);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.research-grid article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px 18px 6px 6px;
  background: var(--surface);
}

.research-grid article > span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.research-grid h3 {
  margin: 12px 0 10px;
  font-size: 19px;
}

.research-grid p,
.research-rule {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.research-grid a {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.research-rule {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.7);
}

.material-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: 8px 26px 8px 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(10, 28, 23, 0.28);
}

.material-dialog::backdrop {
  background: rgba(15, 28, 24, 0.66);
  backdrop-filter: blur(3px);
}

.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.dialog-header h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
}

.dialog-header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 26px 0;
}

.dialog-meta span {
  padding: 5px 9px;
  border: 1px solid #c6d5ce;
  border-radius: 4px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
}

.dialog-body {
  padding: 18px 26px 8px;
}

.material-note {
  padding: 14px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.8;
}

.material-fulltext {
  padding: 6px 3px 8px;
}

.material-fulltext p {
  margin-bottom: 1.1em;
  font-family: SimSun, STSong, serif;
  font-size: 16px;
  line-height: 2;
  text-align: justify;
}

.dialog-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.dialog-actions a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.dialog-actions button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}

.card-actions a,
.card-actions button {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.card-actions a {
  text-underline-offset: 4px;
}

.card-actions button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
}

.empty-state {
  padding: 76px 24px;
  border: 1px dashed #b7c2bb;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 254, 250, 0.55);
}

.empty-state strong {
  font-family: SimSun, STSong, serif;
  font-size: 22px;
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}

.method-section {
  padding: 64px;
  border-radius: 6px 46px 6px 6px;
  color: #fff;
  background: var(--green);
}

.method-section .eyebrow {
  color: #e7c68d;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 44px;
}

.method-grid article {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.method-grid article > span {
  color: #e7c68d;
  font-family: Georgia, serif;
  font-size: 13px;
}

.method-grid h3 {
  margin: 12px 0 10px;
  font-size: 18px;
}

.method-grid p,
.scope-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.reference-note {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.8;
}

.reference-note strong {
  color: #fff;
}

.reference-note a {
  margin-left: 8px;
  color: #f1d49f;
  text-underline-offset: 4px;
}

.selection-bar {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  left: 22px;
  width: min(calc(100% - 44px), 980px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #fff;
  background: rgba(24, 59, 53, 0.97);
  box-shadow: 0 16px 44px rgba(20, 38, 33, 0.28);
  backdrop-filter: blur(12px);
}

.selection-bar[hidden] {
  display: none;
}

.selection-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selection-bar > div:first-child span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.selection-bar button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.bar-secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: #fff;
  background: transparent;
}

.bar-primary {
  border: 1px solid #e6c98f;
  color: #183b35;
  background: #e6c98f;
}

body.has-selection footer {
  padding-bottom: 116px;
}

.scope-note {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 12px;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    padding: 40px 0 28px;
  }

  .filters,
  .method-grid,
  .research-grid,
  .reference-source-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .quote-content {
    padding: 28px 24px;
  }

  .method-section {
    padding: 44px 34px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  main,
  footer {
    width: min(100% - 24px, 1160px);
  }

  .brand small,
  .header-actions,
  kbd {
    display: none;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero {
    padding: 30px 2px 26px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .search-panel {
    padding: 16px;
  }

  .search-row,
  .filters,
  .method-grid,
  .research-grid,
  .reference-source-list {
    grid-template-columns: 1fr;
  }

  .reference-source-item:nth-child(odd) {
    border-right: 0;
  }

  .topic-select {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .secondary-button {
    min-height: 42px;
  }

  .compact-stats {
    gap: 7px 12px;
  }

  .compact-stats span {
    padding-right: 12px;
  }

  .results-heading,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }

  .quote-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 20px;
  }

  .quote-date strong {
    font-size: 20px;
  }

  .quote-date span {
    margin: 0;
  }

  .quote-content {
    padding: 24px 18px;
  }

  .card-topline {
    align-items: flex-start;
  }

  .results-heading,
  .selection-bar,
  .selection-bar > div {
    align-items: stretch;
    flex-direction: column;
  }

  .results-actions {
    justify-content: flex-start;
  }

  .selection-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .selection-bar button {
    flex: 1;
  }

  .record-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .method-section {
    padding: 36px 22px;
  }

  .dialog-header,
  .dialog-body,
  .dialog-actions {
    padding-right: 18px;
    padding-left: 18px;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
