:root {
  color-scheme: light;
  --ink: #173f35;
  --ink-deep: #0e2d26;
  --muted: #65756f;
  --paper: #f5f0e5;
  --surface: #fffdf8;
  --surface-soft: #eef3ec;
  --line: #d9dfd7;
  --accent: #d65f36;
  --accent-dark: #ad4323;
  --gold: #e8c66d;
  --focus: #1a6d9b;
  --shadow: 0 20px 60px rgb(20 50 42 / 10%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at 8% 3%, rgb(232 198 109 / 26%), transparent 25rem),
    radial-gradient(circle at 93% 26%, rgb(89 139 116 / 14%), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(23 63 53 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 63 53 / 2.5%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.source-description {
  margin: 0;
  white-space: pre-line;
}

.source-english-headword {
  color: var(--accent-dark);
}

.myanmar-definition {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.7;
  white-space: pre-line;
}

[lang="my"] {
  font-family: "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", sans-serif;
}

.myanmar-sense-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.myanmar-sense {
  padding: 14px 16px;
  border: 1px solid #dce3dc;
  border-radius: 12px;
  background: #f8f7f1;
}

.sense-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.usage-list {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}

.usage-list li {
  white-space: pre-line;
}

.source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgb(23 63 53 / 16%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50% 50% 48% 52% / 42% 55% 45% 58%;
  color: #fff8e9;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 12%);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

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

.brand strong {
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(23 63 53 / 14%);
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 253 248 / 64%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(232 198 109 / 22%);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 48px;
  padding: 78px 0 58px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 52px;
  right: 11%;
  width: 165px;
  height: 165px;
  border: 1px solid rgb(23 63 53 / 10%);
  border-radius: 47% 53% 59% 41% / 56% 45% 55% 44%;
  content: "";
  transform: rotate(18deg);
}

.eyebrow,
.section-number {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  grid-column: 1;
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-copy {
  grid-column: 1;
  max-width: 650px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin: 0 0 4px;
  padding: 0;
  border-block: 1px solid rgb(23 63 53 / 17%);
}

.stats div {
  min-width: 112px;
  padding: 18px 17px;
}

.stats div + div {
  border-left: 1px solid rgb(23 63 53 / 17%);
}

.stats dt {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgb(23 63 53 / 9%);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 190px;
  border-radius: 50%;
  background: rgb(232 198 109 / 14%);
  content: "";
  pointer-events: none;
}

.panel-heading,
.results-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-heading h2,
.results-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.swap-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.swap-button:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.swap-button span {
  font-size: 20px;
  line-height: 1;
}

.direction-fieldset {
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.direction-fieldset legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.direction-options {
  display: grid;
  max-width: 900px;
  padding: 5px;
  border-radius: 15px;
  background: #e7ede6;
  grid-template-columns: repeat(2, 1fr);
}

.direction-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.direction-options label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 150ms ease;
}

.direction-options input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.direction-options input:checked + label {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 5px 16px rgb(23 63 53 / 17%);
}

.language-code {
  display: inline-flex;
  min-width: 33px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.query-group {
  margin-top: 27px;
}

.query-group > label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 750;
}

.query-row {
  display: flex;
  gap: 12px;
}

.query-input-wrap {
  position: relative;
  flex: 1;
}

.search-glyph {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 26px;
  transform: translateY(-54%);
  pointer-events: none;
}

.query-input-wrap input {
  width: 100%;
  min-height: 58px;
  padding: 13px 18px 13px 50px;
  border: 1px solid #cbd4cc;
  border-radius: 14px;
  color: var(--ink-deep);
  background: #fff;
  font-size: 17px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.query-input-wrap input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgb(23 63 53 / 10%);
}

.query-input-wrap input::placeholder {
  color: #8a9690;
}

.primary-button {
  min-width: 130px;
  min-height: 58px;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgb(173 67 35 / 20%);
  font-weight: 800;
  transition: transform 120ms ease, background 120ms ease;
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.field-hint,
.form-error {
  margin: 8px 0 0;
  font-size: 12px;
}

.field-hint {
  color: var(--muted);
}

.form-error {
  color: #a42d22;
  font-weight: 700;
}

.examples {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.examples > span {
  padding-top: 6px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.examples > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.examples button,
.welcome-state button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgb(173 67 35 / 30%);
  text-underline-offset: 3px;
}

.examples button {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #e1d7ca;
  border-radius: 999px;
  background: #fff9ee;
  text-decoration: none;
}

.examples button:hover,
.welcome-state button:hover {
  color: var(--ink);
  border-color: var(--gold);
}

.search-options {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.search-options summary {
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  user-select: none;
}

.search-options summary::marker {
  color: var(--accent);
}

.option-grid {
  display: grid;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(125px, 1fr)) minmax(210px, 1.35fr);
}

.option-grid > label:not(.checkbox-option) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.option-grid select {
  min-height: 44px;
  padding: 8px 34px 8px 11px;
  border: 1px solid #cbd4cc;
  border-radius: 10px;
  color: var(--ink-deep);
  background: #fff;
}

.checkbox-option {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d5ddd5;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 750;
}

.checkbox-option input {
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
}

.checkbox-option span,
.checkbox-option small {
  display: block;
}

.checkbox-option small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.results-section {
  padding: 64px 0 80px;
}

.results-heading {
  align-items: end;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgb(23 63 53 / 17%);
}

.results-heading:focus {
  outline: none;
}

#result-summary {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.welcome-state,
.empty-state,
.error-state {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 32px;
  border: 1px dashed #bdc9c0;
  border-radius: 18px;
  background: rgb(255 253 248 / 60%);
}

.welcome-mark,
.empty-mark {
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.welcome-state h3,
.empty-state h3,
.error-state h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 23px;
}

.welcome-state p,
.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.result-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid #d9dfd7;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgb(20 50 42 / 5%);
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.45fr);
}

.result-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: var(--accent);
  content: "";
}

.word-block,
.meaning-block {
  min-width: 0;
  padding: 25px 27px;
}

.word-block {
  border-right: 1px solid #e0e5df;
  background: linear-gradient(135deg, #f0f5ee, #faf8f0);
}

.result-index {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.headword {
  margin: 8px 0 7px;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 43px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #ccd7cf;
  border-radius: 999px;
  color: var(--muted);
  background: rgb(255 255 255 / 75%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge.unreviewed {
  border-color: #e9caa7;
  color: #8a431f;
  background: #fff1df;
}

.badge.source {
  border-color: #bed0c2;
  color: var(--ink);
  background: #e6f0e7;
}

.badge.name {
  border-color: #ccbfe0;
  color: #5c4277;
  background: #f1eafa;
}

.meaning-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.meaning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meaning-list li {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-deep);
  background: #f0eee6;
  font-size: 15px;
  font-weight: 650;
}

.lookup-terms + .lookup-terms {
  margin-top: 16px;
}

.description-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.word-meta {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.word-meta strong {
  color: var(--ink);
}

.source-details {
  grid-column: 1 / -1;
  padding: 0 27px 20px;
  border-top: 1px solid #e0e5df;
  background: #fbfaf5;
}

.source-details summary {
  width: fit-content;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 9px 11px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  background: #f2f0e9;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.evidence-list strong {
  color: var(--ink);
}

.match-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.corpus-fallback {
  overflow: hidden;
  border: 1px solid #cdd9d0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(20 50 42 / 7%);
}

.corpus-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  border-bottom: 1px solid #dce5dd;
  background: linear-gradient(135deg, #edf4ec, #faf6e9);
}

.corpus-header .headword {
  margin-bottom: 9px;
}

.corpus-stat {
  display: grid;
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.corpus-stat strong {
  color: var(--accent-dark);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 0.9;
}

.corpus-stat span {
  max-width: 180px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.corpus-lede {
  margin: 0;
  padding: 22px 30px;
  border-bottom: 1px solid #e1e6e0;
  color: var(--muted);
  font-size: 14px;
}

.provisional-meaning {
  margin: 24px 30px 0;
  padding: 20px;
  border: 1px solid #ead1ad;
  border-radius: 14px;
  background: #fff7e9;
}

.provisional-note {
  margin: 13px 0 0;
  color: #6f604e;
  font-size: 12px;
}

.source-clue-list {
  display: grid;
  gap: 5px;
  margin: 13px 0 0;
  padding-left: 18px;
  color: #6f604e;
  font-size: 12px;
}

.corpus-examples,
.related-forms {
  padding: 26px 30px 30px;
}

.corpus-examples h4,
.related-forms h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
}

.corpus-caution,
.related-forms > p {
  margin: 5px 0 17px;
  color: var(--muted);
  font-size: 12px;
}

.verse-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verse-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce3dc;
  border-radius: 13px;
  background: #f8f7f1;
}

.verse-edition {
  margin: 0 0 9px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verse-card blockquote {
  margin: 0;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

.verse-card cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.related-forms {
  padding-top: 0;
}

.related-form-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.corpus-form-chip {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c9d6cc;
  border-radius: 999px;
  color: var(--ink);
  background: #f0f5ee;
  font-size: 12px;
  font-weight: 750;
}

.corpus-form-chip:hover {
  border-color: var(--ink);
  background: #e3eee4;
}

.loading-state {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.loading-state div {
  height: 148px;
  border: 1px solid #dde3dc;
  border-radius: 18px;
  background:
    linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 75%) 40%, transparent 60%),
    #e8ece5;
  background-size: 200% 100%;
  animation: shimmer 1.25s linear infinite;
}

.retry-button {
  min-height: 42px;
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  font-weight: 800;
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0 42px;
  border-top: 1px solid rgb(23 63 53 / 17%);
  color: var(--muted);
  font-size: 11px;
}

footer p {
  max-width: 650px;
  margin: 0;
}

footer strong {
  color: var(--ink);
}

footer > span {
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 920px) {
  .hero {
    display: block;
    padding-top: 58px;
  }

  .hero-copy {
    margin-top: 22px;
  }

  .stats {
    width: fit-content;
    margin-top: 32px;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .research-label {
    max-width: 112px;
    justify-content: center;
    padding: 7px 9px;
    text-align: center;
    line-height: 1.2;
  }

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

  .brand small {
    font-size: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .hero {
    padding: 48px 2px 42px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .stats {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div {
    min-width: 0;
    padding: 15px 9px;
    text-align: center;
  }

  .stats div:nth-child(3) {
    border-top: 1px solid rgb(23 63 53 / 17%);
    border-left: 0;
  }

  .stats div:nth-child(4) {
    border-top: 1px solid rgb(23 63 53 / 17%);
  }

  .stats dt {
    font-size: 23px;
  }

  .stats dd {
    font-size: 9px;
  }

  .search-panel {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .panel-heading {
    align-items: center;
  }

  .direction-options {
    grid-template-columns: 1fr;
  }

  .direction-options label {
    min-height: 54px;
    gap: 8px;
    padding: 7px;
    font-size: 12px;
  }

  .language-code {
    height: 20px;
  }

  .query-row {
    display: grid;
  }

  .primary-button {
    width: 100%;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .results-section {
    padding: 50px 0 60px;
  }

  .results-heading {
    display: block;
  }

  #result-summary {
    margin-top: 9px;
  }

  .welcome-state,
  .empty-state,
  .error-state {
    align-items: flex-start;
    padding: 23px 19px;
  }

  .welcome-mark,
  .empty-mark {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }

  .result-card {
    display: block;
  }

  .word-block,
  .meaning-block {
    padding: 22px;
  }

  .word-block {
    border-right: 0;
    border-bottom: 1px solid #e0e5df;
  }

  .source-details {
    padding-inline: 22px;
  }

  .corpus-header {
    display: block;
    padding: 24px 22px;
  }

  .corpus-stat {
    margin-top: 25px;
    text-align: left;
  }

  .corpus-stat span {
    max-width: none;
  }

  .corpus-lede {
    padding-inline: 22px;
  }

  .provisional-meaning {
    margin-inline: 22px;
  }

  .corpus-examples,
  .related-forms {
    padding-inline: 22px;
  }

  .verse-grid {
    grid-template-columns: 1fr;
  }

  footer {
    display: block;
  }

  footer > span {
    display: block;
    margin-top: 13px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
