:root {
  --yellow: #f9c61c;
  --yellow-strong: #f2b900;
  --ink: #111111;
  --muted: #67665f;
  --paper: #f7f4ec;
  --card: #ffffff;
  --line: #ddd8cc;
  --soft-yellow: #fff7d6;
  --success: #1f6f43;
  --danger: #a0322f;
  --shadow: 0 16px 42px rgba(17, 17, 17, 0.1);
  --page: 1260px;
  --line-dark: #c5bfb2;
  --radius-sm: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Inter", "Aptos Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: min(var(--page), calc(100% - 64px));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--ink);
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.site-header {
  position: relative;
  z-index: 100;
  background: rgba(247, 244, 236, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1460px, calc(100% - 48px));
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: inset 0 -3px 0 rgba(17, 17, 17, 0.08);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 10px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px;
  font-weight: 650;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 160ms ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.menu-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close {
  display: inline-flex;
}

.hero {
  padding: 30px 0 24px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.94), rgba(247, 244, 236, 0) 52%),
    var(--paper);
}

.hero-inner {
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #6f5a00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  margin: 0 auto;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.hero-lead {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 18px);
}

.search-card {
  position: relative;
  margin-top: 46px;
  padding: 38px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: left;
}

.hero .search-card {
  margin-top: 22px;
  padding: 20px;
}

.hero .search-form {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 190px);
  gap: 14px;
}

.hero .search-field-wrap > .icon {
  left: 20px;
  width: 24px;
  height: 24px;
}

.hero .search-field-wrap input {
  height: 58px;
  padding-left: 60px;
  padding-right: 136px;
  font-size: clamp(18px, 1.7vw, 21px);
}

.hero .primary-button {
  height: 58px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 305px);
  gap: 22px;
}

.search-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field-wrap > .icon {
  position: absolute;
  left: 26px;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

.search-field-wrap input {
  width: 100%;
  height: 82px;
  padding: 0 150px 0 78px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #cfc9bc;
  border-radius: 13px;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 560;
  outline: none;
  appearance: none;
}

.search-field-wrap input::-webkit-search-cancel-button {
  display: none;
}

.search-field-wrap input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(249, 198, 28, 0.42);
}

.keyboard-hint {
  position: absolute;
  right: 18px;
  padding: 7px 10px;
  color: #8a867d;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
}

.search-clear {
  position: absolute;
  right: 76px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.search-clear[hidden] {
  display: none;
}

.search-clear .icon {
  width: 20px;
  height: 20px;
}

.search-clear:hover {
  background: var(--soft-yellow);
  color: var(--ink);
}

.primary-button,
.secondary-button,
.text-button,
.load-more {
  min-height: 44px;
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.primary-button {
  height: 82px;
  padding: 0 28px;
  background: var(--yellow);
  border: 1.5px solid var(--yellow-strong);
  border-radius: 13px;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(17, 17, 17, 0.08);
}

.primary-button:hover {
  background: #ffd332;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(155, 119, 0, 0.18), inset 0 -3px 0 rgba(17, 17, 17, 0.08);
}

.primary-button:active {
  transform: translateY(0);
}

.form-message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-message.is-error {
  color: var(--danger);
  font-weight: 700;
}

.suggestion-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(70vh, 620px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.suggestion-group + .suggestion-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.suggestion-group-label {
  min-height: 28px;
  padding: 3px 12px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f5a00;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.suggestion-group-label small {
  min-width: 24px;
  padding: 2px 7px;
  color: var(--muted);
  background: #f3f0e8;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-align: center;
}

.suggestion-group--sources {
  padding: 8px;
  background: #faf8f1;
  border-radius: 9px;
}

.suggestion-group--sources + .suggestion-group,
.suggestion-group + .suggestion-group--sources {
  border-top-color: #d0c9ba;
}

.suggestion-panel a {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.suggestion-group--sources a {
  min-height: 70px;
  background: #faf8f1;
}

.suggestion-panel a:hover,
.suggestion-panel a[aria-selected="true"] {
  background: var(--soft-yellow);
}

.suggestion-arrow {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #6f5a00;
  font-size: 1.05rem;
}

.suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.suggestion-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 720;
}

.suggestion-source-byline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-source-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.suggestion-source-stats span {
  display: inline-flex;
  align-items: center;
}

.suggestion-source-stats span + span::before {
  margin-right: 7px;
  color: #b2aa9b;
  content: "•";
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.spotlight-grid a {
  min-height: 72px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 650;
  transition: background 160ms ease-out, border-color 160ms ease-out;
}

.spotlight-grid a .icon {
  width: 19px;
  transition: transform 160ms ease-out;
}

.spotlight-grid a:hover {
  background: var(--soft-yellow);
  border-color: #c8ad46;
}

.spotlight-grid a:hover .icon {
  transform: translateX(2px);
}

.privacy-note {
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 15px;
}

.privacy-note .icon {
  width: 19px;
  height: 19px;
}

.quick-strip {
  min-height: 72px;
  margin-top: 32px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: left;
}

.quick-strip-label {
  padding: 6px 10px;
  background: var(--yellow);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 0;
}

.quick-strip a {
  min-height: 44px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.quick-strip a + a::before {
  content: "·";
  margin-right: 28px;
  color: #8b887f;
}

.quick-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.result-section {
  margin-top: 44px;
  margin-bottom: 96px;
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.07);
}

.result-heading,
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.result-heading h2,
.section-heading-row h2 {
  margin: 0;
  font-size: clamp(33px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.result-heading > div:first-child > p:last-child,
.section-heading-row > p {
  max-width: 480px;
  margin: 10px 0 0;
  color: var(--muted);
}

.browse-heading-meta {
  max-width: 480px;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.browse-heading-meta p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.result-actions > .secondary-button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
}

.result-actions > .secondary-button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.secondary-button {
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
}

.secondary-button .icon {
  width: 18px;
  height: 18px;
}

.secondary-button:hover,
.secondary-button[aria-pressed="true"] {
  background: var(--soft-yellow);
  border-color: #c5aa3d;
}

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f5f3ee;
  transform: none;
}

.secondary-button[aria-pressed="true"] .icon {
  fill: var(--yellow);
}

.sense-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sense-navigation {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--soft-yellow);
  border: 1px solid #e6d78e;
  border-radius: 13px;
}

.sense-navigation-title {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 750;
}

.sense-navigation ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sense-navigation li {
  min-width: 0;
  max-width: 100%;
}

.sense-navigation a {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 44px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #d9cb91;
  border-radius: 9px;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sense-navigation a > span {
  color: #79600a;
  font-weight: 800;
}

.sense-navigation a:hover {
  background: #fffdf5;
  border-color: #9c7b11;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sense-navigation + .entry-visual-wide {
  margin-top: 24px;
}

.quote-examples {
  margin-top: 30px;
  padding: clamp(18px, 2.2vw, 26px);
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.quote-examples-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
}

.quote-examples-heading h2,
.quote-examples-heading h3 {
  max-width: 760px;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.quote-evidence-summary {
  max-width: 430px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.quote-evidence-summary span,
.quote-meaning-count {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.15;
  white-space: nowrap;
}

.quote-evidence-summary strong,
.quote-meaning-count strong {
  color: var(--ink);
}

.quote-meaning-groups {
  margin-top: 22px;
}

.quote-meaning-group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quote-meaning-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.quote-meaning-group + .quote-meaning-group {
  margin-top: 28px;
}

.quote-meaning-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.quote-meaning-index {
  margin: 0 0 5px;
  color: #6f5e0d;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.quote-meaning-heading h3,
.quote-meaning-heading h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.7vw, 1.4rem);
  line-height: 1.24;
  letter-spacing: -0.018em;
}

.quote-meaning-definition {
  max-width: 820px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.quote-meaning-count {
  margin: 0;
}

.quote-example-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.quote-example-card {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 11px;
  box-shadow: 0 7px 20px rgba(17, 17, 17, 0.045);
  overflow: hidden;
}

.quote-example-kind {
  position: absolute;
  top: 13px;
  left: 18px;
  z-index: 1;
  padding: 4px 8px;
  background: var(--soft-yellow);
  border: 1px solid #d8c56a;
  border-radius: 999px;
  color: #5d5015;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.quote-example-card blockquote,
.quote-example-card blockquote p {
  margin: 0;
}

.quote-example-card blockquote p {
  max-width: 760px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 500;
  line-height: 1.58;
}

.quote-example-card blockquote {
  min-width: 0;
  padding: clamp(48px, 4.2vw, 56px) clamp(22px, 2.5vw, 30px) clamp(22px, 2.5vw, 30px);
  display: flex;
  align-items: center;
}

.quote-example-card blockquote p::before {
  content: none;
}

.quote-example-card blockquote p::after {
  content: none;
}

.quote-matched-highlight {
  padding: 0 0.12em;
  background: linear-gradient(transparent 42%, rgba(246, 210, 55, 0.68) 42%);
  color: inherit;
  border-radius: 2px;
}

.quote-example-card figcaption {
  min-width: 0;
  margin: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f2efe7;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.quote-citation p {
  margin: 0;
}

.quote-locator {
  width: fit-content;
  padding: 4px 9px;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.quote-reference {
  margin-top: 10px !important;
}

.quote-reference cite {
  color: var(--ink);
  font-style: italic;
}

.quote-citation .quote-matched-form {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .quote-examples-heading,
  .quote-meaning-heading {
    grid-template-columns: 1fr;
  }

  .quote-evidence-summary {
    max-width: none;
    justify-content: flex-start;
  }

  .quote-meaning-count {
    width: fit-content;
  }
}

/* Szócikkoldali könyvajánló */
.book-promo {
  margin-top: clamp(28px, 5vw, 58px);
  margin-bottom: clamp(28px, 5vw, 58px);
}

.book-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background: #101010;
  border: 1px solid #272727;
  border-radius: 28px;
  box-shadow: 0 22px 55px rgba(20, 16, 4, 0.18);
}

.book-promo-card::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: 150px;
  height: 12px;
  content: "";
  background: #f9c61c;
}

.book-promo-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 26px 20px 0;
  background: linear-gradient(145deg, #ffda50, #f5bc00);
}

.book-promo-visual img {
  width: min(100%, 500px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.24));
}

.book-promo-copy {
  align-self: center;
  padding: clamp(32px, 5vw, 62px);
}

.book-promo-copy .section-kicker {
  color: #f9c61c;
}

.book-promo-copy h2 {
  max-width: 620px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
}

.book-promo-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e9e6dd;
  line-height: 1.65;
}

.book-promo-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  color: #111;
  background: #f9c61c;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.book-promo-button:hover,
.book-promo-button:focus-visible {
  color: #111;
  background: #ffd84d;
}

.book-promo-button svg {
  width: 18px;
  height: 18px;
}

.book-promo-copy small {
  display: block;
  max-width: 620px;
  margin-top: 15px;
  color: #a9a69e;
  font-size: 0.72rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .book-promo-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .book-promo-visual {
    min-height: 260px;
    padding: 20px 12px 0;
  }

  .book-promo-visual img {
    width: min(100%, 420px);
  }

  .book-promo-copy {
    padding: 28px 22px 32px;
  }

  .book-promo-button {
    justify-content: space-between;
    width: 100%;
  }
}

.sense-card {
  min-width: 0;
  padding: 24px;
  background: #fdfcf9;
  border: 1px solid var(--line);
  border-radius: 13px;
  scroll-margin-top: 12px;
}

.sense-card:target {
  border-color: #9c7b11;
  box-shadow: 0 0 0 3px rgba(249, 198, 28, 0.28);
}

.sense-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.sense-card-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 850;
}

.copy-sense {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.copy-sense:hover {
  background: var(--soft-yellow);
}

.synonym-list {
  padding-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.relation-empty-state {
  margin: 17px 0 0;
  padding: 13px 15px;
  background: #f7f5ef;
  color: var(--muted);
  border: 1px dashed #cfc9bc;
  border-radius: 9px;
  line-height: 1.55;
}

.synonym-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  transition: background 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.synonym-list > a,
.synonym-chip a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 44px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}

.synonym-chip button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.synonym-chip button .icon {
  width: 16px;
  height: 16px;
}

.synonym-chip:hover,
.synonym-list > a:hover {
  background: var(--yellow);
  border-color: var(--yellow-strong);
  transform: translateY(-1px);
}

.synonym-chip button:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
}

.alternative-card {
  grid-column: 1 / -1;
}

.alternative-list {
  padding-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.alternative-list a {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 680;
}

.alternative-list a:hover {
  background: var(--soft-yellow);
  border-color: #c5aa3d;
}

.alternative-list a .icon {
  width: 18px;
  height: 18px;
}

.result-disclaimer {
  margin-top: 22px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 6px 14px;
  background: var(--soft-yellow);
  border-left: 4px solid var(--yellow-strong);
  border-radius: 6px 10px 10px 6px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.result-disclaimer strong {
  white-space: normal;
}

.result-disclaimer span {
  min-width: 0;
  color: #5f5a45;
  overflow-wrap: anywhere;
}

.tool-promo-section {
  padding: 34px 0;
  background: var(--paper);
}

.tool-promo-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.tool-promo-card {
  min-height: 118px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.08);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.tool-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(17, 17, 17, 0.13);
}

.tool-promo-card-spelling {
  background: var(--ink);
  color: #fff;
}

.tool-promo-card-emoji {
  background: var(--yellow);
  color: var(--ink);
}

.tool-promo-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}

.tool-promo-mark span {
  position: absolute;
  right: 7px;
  bottom: 6px;
  color: var(--success);
  font-family: var(--font-sans);
  font-size: 15px;
}

.tool-promo-card-emoji .tool-promo-mark {
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 34px;
}

.tool-promo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tool-promo-copy small {
  margin-bottom: 6px;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 650;
}

.tool-promo-card-emoji .tool-promo-copy small {
  color: #554400;
}

.tool-promo-copy strong {
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.025em;
}

.tool-promo-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
}

.tool-promo-action .icon {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease-out;
}

.tool-promo-card:hover .tool-promo-action .icon {
  transform: translateX(3px);
}

.browse-section,
.guide-section {
  padding: 88px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.alphabet {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.alphabet a,
.alphabet span {
  min-height: 46px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 780;
}

.alphabet span.disabled {
  color: #9a9589;
  background: #f4f1e9;
  border-style: dashed;
  cursor: not-allowed;
}

.alphabet a:hover,
.alphabet a.active {
  background: var(--yellow);
  border-color: var(--yellow-strong);
}

.browse-results {
  margin-top: 22px;
  padding: 28px;
  background: var(--paper);
  border-radius: 13px;
}

.browse-result-heading {
  margin: 0 0 18px;
  font-size: 21px;
}

.browse-word-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 22px;
}

.browse-word-grid a {
  min-height: 44px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-weight: 620;
}

.browse-word-grid a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow-strong);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.load-more {
  margin: 20px auto 0;
}

.library-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.library-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.library-card {
  min-height: 300px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.05);
}

.library-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.library-card-title h3 {
  margin: 0;
  font-size: 22px;
}

.saved-list {
  padding: 13px 0;
  display: grid;
  gap: 4px;
}

.saved-item {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.saved-item a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 680;
}

.saved-item a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow-strong);
  text-underline-offset: 4px;
}

.remove-saved {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}

.remove-saved:hover {
  background: #f3eee4;
  color: var(--ink);
}

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

.history-controls {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.toggle-row {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--yellow-strong);
}

.text-button {
  padding: 8px 0;
  background: transparent;
  border: 0;
  color: #765c00;
  font-weight: 750;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-section {
  background: var(--ink);
  color: #fff;
}

.guide-section .section-kicker {
  color: var(--yellow);
}

.guide-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-grid article {
  min-height: 250px;
  padding: 26px;
  background: #1b1b1b;
  border: 1px solid #343434;
  border-radius: 14px;
}

.guide-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 9px;
  color: var(--ink);
  font-weight: 850;
}

.guide-grid h3 {
  margin: 28px 0 8px;
  font-size: 23px;
}

.guide-grid p {
  margin: 0;
  color: #c8c8c8;
}

.site-footer {
  padding: 72px 0 26px;
  background: #0a0a0a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 64px;
}

.brand-inverse .brand-copy small {
  color: #aaa;
}

.footer-brand p {
  max-width: 460px;
  margin: 22px 0 0;
  color: #b9b9b9;
}

.footer-dg-logo {
  width: fit-content;
  max-width: 230px;
  margin-top: 24px;
  padding: 10px 14px;
  display: inline-flex;
  border-radius: 12px;
  background: var(--yellow);
}

.footer-dg-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-grid h2 {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-grid > div:not(:first-child) a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: #d8d8d8;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-top: 1px solid #2d2d2d;
  color: #929292;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom .footer-version {
  display: block;
  margin-top: .5rem;
  white-space: nowrap;
}

.editor-import-card {
  margin-block: 1.25rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line, #d9e1ea);
  border-radius: 1rem;
  overflow-wrap: anywhere;
}

.editor-import-card blockquote {
  margin: 1rem 0;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--brand, #2563eb);
  line-height: 1.65;
}

.editor-import-card details { margin-block: 1rem; }
.editor-import-card summary { cursor: pointer; }

.release-notice {
  position: fixed;
  z-index: 350;
  left: 50%;
  bottom: 20px;
  width: min(720px, calc(100% - 32px));
  min-height: 68px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 54px rgba(17, 17, 17, 0.24);
  transform: translateX(-50%);
}

.release-notice > span {
  display: grid;
  gap: 3px;
}

.release-notice strong {
  font-size: 1rem;
}

.release-notice small {
  line-height: 1.35;
}

.release-notice-button {
  min-height: 44px;
  padding: 10px 15px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.release-notice-button:hover {
  background: #333;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 13px 17px;
  background: var(--ink);
  color: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 680;
}

.noscript-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  padding: 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  text-align: center;
  font-weight: 750;
}

@media (max-width: 600px) {
  .release-notice {
    align-items: stretch;
    padding: 14px;
    flex-direction: column;
    gap: 12px;
  }

  .release-notice-button {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding-inline: 10px;
    font-size: 14px;
  }

  .main-nav a::after {
    left: 10px;
    right: 10px;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

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

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

  .browse-word-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    width: min(100% - 28px, 1460px);
    min-height: 74px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 22px;
  }

  .brand-copy small {
    font-size: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 18px 18px;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 52px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--soft-yellow);
  }

  .main-nav a::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .page-width {
    width: min(100% - 36px, var(--page));
  }

  .hero {
    padding-top: 28px;
  }

  .hero .search-form {
    grid-template-columns: 1fr;
  }

  .search-card {
    padding: 24px;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .primary-button {
    width: 100%;
    height: 62px;
  }

  .search-field-wrap input {
    height: 68px;
  }

  .quick-strip {
    grid-template-columns: 1fr auto;
  }

  .quick-strip-label {
    justify-self: start;
  }

  .quick-strip > div {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .quick-strip > .icon {
    grid-column: 2;
    grid-row: 1;
  }

  .quick-strip a + a::before {
    margin-right: 14px;
  }

  .result-heading,
  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .browse-heading-meta {
    width: 100%;
    justify-items: start;
  }

  .browse-heading-meta p {
    text-align: left;
  }

  .tool-promo-grid {
    grid-template-columns: 1fr;
  }

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

  .sense-grid,
  .library-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .browse-word-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid article {
    min-height: auto;
  }

  .footer-grid {
    gap: 42px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-width {
    width: min(100% - 24px, var(--page));
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(29px, 7.5vw, 34px);
  }

  .hero {
    padding-top: 24px;
  }

  .hero .search-card {
    margin-top: 22px;
    padding: 14px;
  }

  .hero .search-field-wrap input {
    height: 56px;
    padding: 0 50px 0 44px;
    font-size: 18px;
  }

  .hero .search-field-wrap > .icon {
    left: 14px;
    width: 21px;
    height: 21px;
  }

  .hero .primary-button {
    height: 56px;
  }

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

  .search-card,
  .result-section {
    padding: 16px;
    border-radius: 14px;
  }

  .tool-promo-section {
    padding: 24px 0;
  }

  .tool-promo-card {
    min-height: 104px;
    padding: 18px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }

  .tool-promo-mark {
    width: 58px;
    height: 58px;
  }

  .tool-promo-action {
    grid-column: 2;
    min-height: 30px;
  }

  .quote-examples {
    padding: 14px;
  }

  .quote-example-card blockquote,
  .quote-example-card figcaption {
    padding: 16px;
  }

  .search-field-wrap > .icon {
    left: 18px;
    width: 25px;
    height: 25px;
  }

  .search-field-wrap input {
    padding: 0 58px 0 56px;
    font-size: 24px;
  }

  .search-clear {
    right: 8px;
  }

  .keyboard-hint {
    display: none;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .spotlight-grid a {
    min-height: 58px;
  }

  .privacy-note {
    align-items: flex-start;
    text-align: left;
  }

  .quick-strip {
    padding: 13px 14px;
  }

  .quick-strip a {
    padding-inline: 8px;
  }

  .result-section {
    margin-top: 26px;
    margin-bottom: 62px;
  }

  .sense-card {
    padding: 16px;
  }

  .sense-card-heading {
    gap: 8px;
  }

  .result-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .result-actions .secondary-button:first-child {
    grid-column: 1 / -1;
  }

  .result-disclaimer {
    flex-direction: column;
  }

  .alternative-list {
    grid-template-columns: 1fr;
  }

  .result-disclaimer strong {
    white-space: normal;
  }

  .browse-section,
  .guide-section,
  .library-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .alphabet {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .alphabet a,
  .alphabet span {
    min-width: 48px;
    scroll-snap-align: start;
  }

  .browse-results {
    padding: 18px;
  }

  .browse-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 16px;
  }

  .history-controls {
    align-items: flex-start;
    flex-direction: column;
  }
}

@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;
  }
}

/* V2: szerveroldali szócikk- és betűoldalak */
.word-search-band {
  padding: 34px 0 8px;
  background: linear-gradient(180deg, #fff8dc 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.word-search-band .search-card {
  margin-top: 0;
  padding: 16px;
}

.word-search-band .search-form {
  gap: 14px;
}

.word-search-band .search-field-wrap > .icon {
  left: 20px;
  width: 24px;
  height: 24px;
}

.word-search-band .search-field-wrap input {
  height: 58px;
  padding-left: 60px;
  font-size: clamp(18px, 2vw, 22px);
}

.word-search-band .primary-button {
  height: 58px;
  font-size: 16px;
}

.word-search-band .form-message {
  min-height: 0;
  margin-top: 6px;
}

.word-search-band .form-message:empty {
  margin-top: 0;
}

.search-card-compact {
  max-width: 920px;
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.word-entry > .result-heading h1,
.browse-page-hero h1,
.not-found-section h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.word-entry > .result-heading h1 {
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.word-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}

.word-facts > div {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.word-facts span,
.short-definition > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.word-facts strong {
  font-size: 0.98rem;
}

.short-definition {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding: 20px 22px;
  background: #fff8dc;
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.short-definition p {
  max-width: 920px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Editorial usage examples remain distinct from verified definitions. */
.word-usage-examples {
  background: var(--card);
  border-left-color: var(--line-dark);
}
.word-usage-examples p { overflow-wrap: anywhere; }
.word-usage-examples p + p {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.meaning-inline-link {
  color: inherit;
  font-weight: 720;
  text-decoration-line: underline;
  text-decoration-color: #d3a700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.meaning-inline-link:hover {
  color: #5b4700;
  background: var(--yellow);
  border-radius: 3px;
}

.meaning-links-panel {
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.meaning-links-panel h2 {
  margin: 3px 0 7px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.meaning-links-panel > div > p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.meaning-backlink-list {
  padding-top: 15px;
}

.meaning-backlink-details {
  margin-top: 16px;
}

.meaning-backlink-details > summary {
  min-height: 48px;
  padding: 12px 14px;
  background: var(--soft-yellow);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
}

.meaning-backlink-details > summary:hover {
  background: #fff1b8;
}

.meaning-backlink-details > summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.meaning-backlink-details > summary > span {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.meaning-backlink-chip .term-label {
  align-self: center;
  padding-right: 10px;
}

.sense-card-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sense-card-heading h2,
.sense-card-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.sense-card-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.usage-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 14px 48px;
}

.usage-label,
.term-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #be4a36;
  border-radius: 999px;
  color: #8d2e20;
  background: #fff3ef;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.synonym-chip {
  flex-wrap: wrap;
}

.synonym-chip > .term-label {
  margin-left: -7px;
}

.entry-source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.entry-reference-box {
  display: grid;
  gap: 12px;
  margin: 25px 0 0;
  padding: 18px 20px;
  background: #f7f5ee;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow-strong);
  border-radius: 11px;
}

.entry-reference-box > div > span {
  color: #765c00;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.entry-reference-box p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.entry-reference-box .entry-reference-meta,
.entry-reference-box .entry-reference-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-reference-box .entry-reference-note {
  margin-top: 3px;
}

.word-page-result .word-entry {
  margin-bottom: 22px;
}

.word-neighbor-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 72px;
}

.word-neighbor-nav > a {
  min-height: 76px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.word-neighbor-nav > a:hover {
  background: var(--soft-yellow);
  border-color: #b39419;
  transform: translateY(-1px);
}

.word-neighbor-nav > a > span[aria-hidden="true"] {
  font-size: 1.25rem;
  font-weight: 800;
}

.word-neighbor-nav > a > span:not([aria-hidden="true"]) {
  min-width: 0;
  display: grid;
}

.word-neighbor-nav small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.word-neighbor-nav strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.word-neighbor-next {
  justify-content: flex-end;
  text-align: right;
}

.compact-browse {
  padding-block: 56px;
}

.browse-page-hero {
  padding: 56px 0 42px;
  background: linear-gradient(145deg, #fff8dc 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line);
}

.browse-page-hero > .page-width > p:not(.eyebrow) {
  margin: 15px 0 25px;
  color: var(--muted);
}

.browse-page {
  padding-top: 38px;
}

.server-word-grid {
  margin-top: 28px;
}

.server-word-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.server-word-grid .icon {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.server-word-grid a:hover .icon {
  transform: translateX(3px);
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination > :last-child {
  justify-self: end;
}

.pagination a {
  display: inline-flex;
  width: fit-content;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.pagination > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pagination-numbered .pagination-edge {
  min-width: 116px;
}

.pagination-numbered .pagination-edge-next {
  display: flex;
  justify-content: flex-end;
}

.pagination-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pagination-pages a,
.pagination-pages .pagination-current {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 7px 10px;
}

.pagination-pages .pagination-current {
  color: #111;
  background: var(--yellow);
  border: 1px solid #8d7100;
  border-radius: 999px;
  font-weight: 850;
}

.pagination-ellipsis {
  padding-inline: 3px;
  color: var(--muted);
}

.not-found-section {
  min-height: 58vh;
  padding-block: 76px;
}

.not-found-section > p:not(.section-kicker) {
  max-width: 700px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.not-found-section .alphabet {
  margin-top: 30px;
}

.search-alternative-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.search-alternative-list .secondary-button {
  text-decoration: none;
}

.search-alternative-list .secondary-button.is-sensitive {
  border-color: #d8a799;
}

.inline-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 20px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .word-facts {
    grid-template-columns: 1fr;
  }

  .word-search-band {
    padding-top: 22px;
  }

  .word-search-band .search-field-wrap input {
    padding-right: 60px;
  }

  .word-search-band .search-clear {
    right: 8px;
  }

  .word-search-band .keyboard-hint {
    display: none;
  }

  .word-neighbor-nav {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .word-neighbor-nav > span:empty {
    display: none;
  }

  .word-neighbor-next {
    grid-column: 1;
  }

  .usage-label-row {
    margin-left: 0;
  }

  .quote-examples {
    padding: 20px;
  }

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

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

  .quote-example-card figcaption {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-disclaimer {
    grid-template-columns: 1fr;
  }

  .result-disclaimer strong {
    white-space: normal;
  }

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

  .pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .pagination-numbered .pagination-pages {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .pagination-numbered .pagination-edge-previous {
    grid-column: 1;
    grid-row: 2;
  }

  .pagination-numbered .pagination-edge-next {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (forced-colors: active) {
  .usage-label,
  .term-label,
  .short-definition,
  .word-facts > div {
    border: 1px solid CanvasText;
  }
}

/* Elkülönített tematikus szógyűjtemények */
.topic-index-hero,
.topic-page-hero {
  padding: 58px 0 44px;
  background:
    radial-gradient(circle at 88% 12%, rgba(249, 198, 28, 0.2), transparent 28rem),
    linear-gradient(145deg, #fff8dc 0%, #fff 70%);
  border-bottom: 1px solid var(--line);
}

.topic-index-hero h1,
.topic-page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.topic-index-hero > .page-width > p:last-child,
.topic-page-lead {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.topic-index-section,
.topic-word-section {
  padding: 46px 0 88px;
}

.topic-category + .topic-category {
  margin-top: 58px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.topic-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 23px;
}

.topic-category-heading h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.topic-category-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.topic-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
  border-radius: 16px;
  box-shadow: 0 9px 28px rgba(17, 17, 17, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.topic-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -62px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  background: rgba(249, 198, 28, 0.08);
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: #c9bd8d;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.11);
}

.topic-card-sensitive {
  border-top-color: #b14a38;
}

.topic-card-sensitive::after {
  background: rgba(177, 74, 56, 0.06);
}

.topic-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  background: var(--soft-yellow);
  border: 1px solid #ead98a;
  border-radius: 12px;
}

.topic-card-kicker,
.topic-word-kind {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 820;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.topic-card > strong {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.topic-card-description {
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.topic-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-weight: 820;
}

.topic-index-search {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 34px;
  margin-top: 38px;
  padding: 28px;
  background: #ebe7dd;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.topic-index-search h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.topic-index-search .search-card {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sources-access-body {
  background: #f2f0e9;
}

.sources-access-wait {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.source-lock-form {
  margin-top: 24px;
}

.source-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) max-content max-content;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 19px;
  background: #ebe7dd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-filter-form label {
  display: grid;
  gap: 7px;
}

.source-filter-form label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-filter-form input,
.source-filter-form select {
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.source-filter-form input:focus,
.source-filter-form select:focus {
  outline: 3px solid rgba(249, 198, 28, 0.38);
  outline-offset: 1px;
  border-color: #967500;
}

.source-category-nav {
  display: flex;
  gap: 9px;
  margin: 0 0 18px;
  padding: 3px 0 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.source-category-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.source-category-nav a:hover,
.source-category-nav a.active {
  background: var(--soft-yellow);
  border-color: #ad8b08;
}

.source-category-nav a.active {
  box-shadow: inset 0 0 0 1px #ad8b08;
}

.source-category-nav small {
  color: var(--muted);
  font-size: 0.72rem;
}

.source-result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 760;
}

.source-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.source-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.source-card:hover {
  transform: translateY(-3px);
  border-color: #c0a83e;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.09);
}

.source-card-sensitive,
.source-card-sensitive:hover {
  border-top-color: #b14a38;
}

.source-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.source-card-kicker {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-card-warning {
  flex: 0 0 auto;
  padding: 3px 7px;
  background: #fff5ef;
  border: 1px solid #d8a799;
  border-radius: 999px;
  color: #7d2d20;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.source-card > strong {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.source-card-byline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.source-card-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.8rem;
}

.source-card-meta b {
  color: var(--ink);
}

.source-word-locator {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.source-word-more-quotes {
  align-self: flex-start;
  margin-top: 10px;
  padding: 4px 8px;
  color: #5c4900;
  background: var(--soft-yellow);
  border: 1px solid #d4bc4d;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.source-episode-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  color: #433a18;
  background: #fff8dc;
  border: 1px solid #d8c875;
  border-radius: 10px;
  line-height: 1.55;
}

.source-episode-note p {
  margin: 0;
}

.source-episode-title-provenance {
  margin-top: 5px !important;
  color: #665821;
  font-size: 0.78rem;
}

.source-card-episode-meta {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  margin-top: 13px;
}

.source-episode-badge {
  width: fit-content;
  margin-top: 13px;
  padding: 4px 8px;
  color: #493900;
  background: var(--soft-yellow);
  border: 1px solid #c6a91f;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 860;
  letter-spacing: 0.055em;
}

.source-card-episode-meta .source-episode-badge {
  flex: 0 0 auto;
  margin-top: 0;
}

.source-card-episode-title {
  min-width: 0;
  color: #4f4a40;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-word-card {
  scroll-margin-top: 96px;
}

.source-word-card:target {
  border-color: #8d7100;
  box-shadow: 0 0 0 4px rgba(249, 198, 28, 0.34), 0 12px 26px rgba(17, 17, 17, 0.1);
}

.source-related-topic {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.source-related-topic > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.source-related-topic a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 820;
}

.source-related-topic a:hover {
  background: var(--soft-yellow);
  border-color: #ad8b08;
}

.source-neighbor-nav {
  margin: 32px 0 24px;
}

.quote-source-browse {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
}

.quote-source-browse a,
.quote-reference cite a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.topic-page-stats {
  width: fit-content;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topic-page-stats strong {
  font-size: 1.05rem;
}

.topic-page-stats span {
  color: var(--muted);
  font-size: 0.85rem;
}

.topic-page-stats i {
  width: 1px;
  height: 17px;
  margin-inline: 7px;
  background: var(--line-dark);
}

.topic-source-note,
.topic-notice {
  max-width: 920px;
  margin: 22px 0 0;
}

.topic-source-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.topic-source-list {
  max-width: 920px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.topic-source-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  cursor: pointer;
  font-weight: 820;
}

.topic-source-list summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.topic-source-list ol {
  margin: 0;
  padding: 4px 22px 20px 43px;
  columns: 2;
  column-gap: 34px;
}

.topic-source-list li {
  padding: 8px 8px 8px 2px;
  break-inside: avoid;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.48;
}

.topic-source-list li strong,
.topic-source-list li cite,
.topic-source-list li small {
  display: block;
}

.topic-source-list li strong {
  color: var(--ink);
}

.topic-source-list li cite {
  margin-top: 2px;
  color: #4f4a40;
}

.topic-source-list li small {
  margin-top: 2px;
  color: var(--muted);
}

.topic-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 0.65fr) max-content max-content;
  align-items: end;
  gap: 14px;
  margin-bottom: 25px;
  padding: 19px;
  background: #ebe7dd;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.topic-filter-form label {
  display: grid;
  gap: 7px;
}

.topic-filter-form label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topic-filter-form input,
.topic-filter-form select {
  min-width: 0;
  height: 48px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.topic-filter-form input:focus,
.topic-filter-form select:focus {
  outline: 3px solid rgba(249, 198, 28, 0.38);
  outline-offset: 1px;
  border-color: #967500;
}

.topic-filter-form .primary-button,
.topic-filter-form .secondary-button {
  height: 48px;
  white-space: nowrap;
}

.source-page-filter-form {
  grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 0.65fr);
}

.source-page-filter-form--episodes {
  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(115px, 0.48fr)
    minmax(135px, 0.56fr)
    minmax(180px, 0.75fr)
    minmax(145px, 0.62fr);
}

.source-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.source-filter-help {
  max-width: 25ch;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.source-episode-browser {
  margin: -5px 0 24px;
  padding: 18px 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.source-episode-browser-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.source-episode-browser-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
}

.source-episode-browser-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.source-episode-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  color: var(--ink);
  background: #f5f2e9;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 820;
}

.source-episode-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.source-episode-pill {
  min-width: 105px;
  min-height: 48px;
  display: inline-grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--ink);
  background: #f9f8f3;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.source-episode-pill strong {
  font-size: 0.84rem;
  line-height: 1.25;
}

.source-episode-pill-title {
  max-width: 27ch;
  color: #3f3a31;
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.source-episode-pill small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.source-episode-pill:hover,
.source-episode-pill.is-active,
.source-episode-back:hover {
  background: var(--soft-yellow);
  border-color: #ad8b08;
}

.source-episode-pill:hover {
  transform: translateY(-1px);
}

.source-episode-pill.is-active {
  box-shadow: inset 0 0 0 1px #ad8b08;
}

.source-episode-pill:focus-visible,
.source-episode-back:focus-visible {
  outline: 3px solid rgba(249, 198, 28, 0.46);
  outline-offset: 2px;
}

.source-page-result-count {
  scroll-margin-top: 96px;
}

.source-result-episode-code {
  color: var(--ink);
  font-weight: 860;
}

.source-result-episode-title {
  color: #4f4a40;
  font-weight: 720;
}

.source-episode-neighbor-nav {
  margin: 28px 0 10px;
}

.source-episode-neighbor-nav a > span:not([aria-hidden]) {
  min-width: 0;
}

.source-neighbor-episode-title {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.topic-empty-state {
  padding: 35px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-dark);
  border-radius: 14px;
}

.topic-empty-state strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

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

.topic-notice {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  background: #fff5ef;
  border: 1px solid #dfb8aa;
  border-left: 5px solid #b14a38;
  border-radius: 10px;
}

.topic-notice strong {
  color: #7d2d20;
}

.topic-notice p {
  margin: 0;
  color: #5f514d;
  font-size: 0.88rem;
}

.topic-word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.topic-word-card {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.topic-word-card:hover {
  transform: translateY(-2px);
  border-color: #c0a83e;
  box-shadow: 0 11px 24px rgba(17, 17, 17, 0.08);
}

.topic-word-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.topic-word-heading strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
}

.topic-word-heading .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  transition: transform 160ms ease;
}

.topic-word-card:hover .topic-word-heading .icon {
  transform: translateX(3px);
}

.topic-word-kind {
  margin-top: 9px;
}

.topic-word-definition {
  display: -webkit-box;
  margin-top: 15px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topic-word-example {
  display: -webkit-box;
  margin-top: auto;
  padding-top: 14px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: #4f4a40;
  font-family: var(--font-serif);
  font-size: 0.84rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.topic-word-example small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.topic-back-row {
  margin-top: 25px;
  text-align: center;
}

.topic-back-row a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--yellow-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.entry-topic-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 18px;
  margin: -2px 0 27px;
  padding: 15px 18px;
  background: #f5f2e9;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.entry-topic-row > span {
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.entry-topic-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.entry-topic-row a {
  padding: 5px 9px;
  background: #fff;
  border: 1px solid #d5c46e;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.entry-topic-row a:hover {
  background: var(--soft-yellow);
  border-color: #ae8b00;
}

.entry-topic-row a.is-sensitive {
  border-color: #d8a799;
}

@media (min-width: 1180px) {
  .topic-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topic-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .source-filter-form {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .topic-filter-form {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  }

  .source-page-filter-form--episodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-page-filter-form--episodes .source-filter-search-field {
    grid-column: 1 / -1;
  }

  .topic-index-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topic-index-hero,
  .topic-page-hero {
    padding: 42px 0 34px;
  }

  .topic-index-section,
  .topic-word-section {
    padding: 28px 0 58px;
  }

  .topic-card-grid,
  .topic-word-grid,
  .source-card-grid {
    grid-template-columns: 1fr;
  }

  .topic-category + .topic-category {
    margin-top: 40px;
    padding-top: 34px;
  }

  .topic-category-heading {
    display: block;
  }

  .topic-category-heading > p {
    margin-top: 12px;
  }

  .topic-card,
  .topic-card:last-child {
    min-height: 0;
  }

  .topic-index-search {
    gap: 22px;
    padding: 20px;
  }

  .topic-notice {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .topic-source-list ol {
    columns: 1;
  }

  .topic-filter-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .source-filter-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .source-filter-form .primary-button,
  .source-filter-form .secondary-button,
  .topic-filter-form .primary-button,
  .topic-filter-form .secondary-button {
    width: 100%;
  }

  .source-filter-actions {
    flex-direction: column;
  }

  .source-page-filter-form--episodes .source-filter-search-field {
    grid-column: auto;
  }

  .source-episode-browser {
    margin-top: -7px;
    padding: 16px;
  }

  .source-episode-browser-heading {
    display: grid;
    gap: 12px;
  }

  .source-episode-back {
    width: fit-content;
  }

  .source-episode-quick-nav {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding: 1px 16px 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .source-episode-pill {
    flex: 0 0 auto;
    max-width: min(78vw, 280px);
    scroll-snap-align: start;
  }

  .source-episode-pill--titled {
    min-width: min(72vw, 240px);
  }

  .source-card {
    min-height: 0;
    padding: 19px;
  }

  .source-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 17px;
  }

  .entry-topic-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .topic-word-card {
    min-height: 0;
  }
}

/* Privát, regisztráció nélküli szócikkszerkesztő */
.editor-body {
  background: #f2f0e9;
}

.editor-body textarea,
.editor-body select {
  font: inherit;
}

.editor-body .primary-button {
  height: 52px;
}

.editor-body .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.editor-login {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding-block: 72px;
}

.editor-login-card {
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.editor-login-card h1,
.editor-topbar h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.editor-login-card > p:not(.section-kicker) {
  margin: 18px 0 26px;
  color: var(--muted);
}

.editor-login-form {
  display: grid;
  gap: 12px;
}

.editor-login-form label,
.editor-field > span,
.editor-fieldset legend,
.editor-relation-labels > span {
  font-size: 0.82rem;
  font-weight: 800;
}

.editor-login-form input,
.editor-field input[type="text"],
.editor-field input[type="search"],
.editor-field input[type="password"],
.editor-field input[type="number"],
.editor-field textarea,
.editor-field select,
.editor-lookup input,
.editor-relation-labels select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bdb7aa;
  border-radius: 9px;
}

.editor-login-form input,
.editor-lookup input {
  min-height: 52px;
}

.editor-field textarea {
  resize: vertical;
}

.editor-shell {
  padding-block: 50px 100px;
}

.editor-topbar,
.editor-panel-heading,
.editor-save-bar,
.editor-relation-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.editor-topbar {
  margin-bottom: 28px;
}

.editor-topbar > div:first-child > p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.editor-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-topbar-actions form {
  margin: 0;
}

.editor-alert {
  margin: 0 0 20px;
  padding: 15px 18px;
  border: 1px solid;
  border-radius: 10px;
}

.editor-alert.is-error {
  color: #7d211d;
  background: #fff2ef;
  border-color: #d9968f;
}

.editor-alert.is-success {
  color: #155633;
  background: #eefaf3;
  border-color: #8dc6a6;
}

.editor-security-notice {
  color: #5f4900;
  background: var(--soft-yellow);
  border-color: #c4a72c;
}

.editor-security-notice a {
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editor-alert ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.editor-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0 0 10px;
}

.editor-quote-stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.editor-relation-stats {
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}

.editor-stat-grid > div,
.editor-stat-grid > a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.editor-stat-grid > a:hover {
  transform: translateY(-2px);
  border-color: #bea83e;
  box-shadow: 0 9px 22px rgba(17, 17, 17, 0.07);
}

.editor-stat-grid strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.editor-stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-local-stats,
.editor-lookup-help {
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-local-stats {
  margin: 0 0 22px;
}

.editor-quote-work-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 22px;
  padding: 18px 20px;
  color: var(--ink);
  background: #fff9da;
  border: 1px solid #d4bb45;
  border-radius: 12px;
  text-decoration: none;
}

.editor-quote-work-cta > span:first-child {
  display: grid;
  gap: 4px;
}

.editor-quote-work-cta strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.editor-quote-work-cta small {
  color: #6f632b;
}

.editor-quote-work-cta > span:last-child {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 850;
}

.editor-relation-work-cta {
  background: #eef8f5;
  border-color: #9dc9bb;
}

.editor-relation-work-cta small {
  color: #315e50;
}

.synonym-chip.is-provisional-target > a {
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.meaning-target-page {
  padding-block: clamp(28px, 6vw, 72px);
}

.meaning-target-back {
  margin-bottom: 20px;
}

.meaning-target-back a {
  color: var(--muted);
  font-weight: 800;
}

.meaning-target-hero,
.meaning-target-variants,
.meaning-target-results {
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.meaning-target-hero {
  background: #eef8f5;
  border-color: #9dc9bb;
}

.meaning-target-hero.is-sensitive {
  background: #fff3ee;
  border-color: #dc9a7c;
}

.meaning-target-hero h1,
.meaning-target-results h2,
.meaning-target-variants h2 {
  margin: 0;
}

.meaning-target-hero > p:last-of-type {
  max-width: 78ch;
  margin-bottom: 0;
}

.meaning-target-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.meaning-target-stats span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 94, 80, 0.24);
  border-radius: 999px;
  font-size: 0.82rem;
}

.meaning-target-stats .is-sensitive {
  color: #7e2f19;
  border-color: #dc9a7c;
}

.meaning-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.meaning-target-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.meaning-target-card h3 {
  margin: 8px 0 6px;
}

.meaning-target-card p,
.meaning-target-variants p,
.meaning-target-limit {
  margin-bottom: 0;
  color: var(--muted);
}

.editor-lookup-help {
  margin: 10px 0 0;
}

.editor-panel {
  margin: 0 0 22px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.05);
}

.editor-panel-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}

.editor-panel-heading h2,
.editor-lookup h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.editor-panel-heading > div > p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.editor-lookup > form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 22px;
}

.editor-recent {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.editor-recent summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 800;
}

.editor-recent > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.editor-recent a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: var(--soft-yellow);
  border-radius: 999px;
  font-weight: 700;
}

.editor-recent a small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.editor-locked-field {
  margin: -6px 0 24px;
  padding: 12px 14px;
  color: var(--muted);
  background: #f5f3ed;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.editor-fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.editor-fieldset legend {
  margin-bottom: 10px;
  padding: 0;
}

.editor-fieldset > small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.editor-auto-topics {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #564c2f;
  background: #fff7d5;
  border-left: 4px solid var(--yellow-strong);
  border-radius: 7px;
  font-size: 0.8rem;
  line-height: 1.55;
}

.editor-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 11px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.editor-check:has(input:checked) {
  background: var(--soft-yellow);
  border-color: #bba135;
}

.editor-check input,
.editor-seo-check input,
.editor-relation-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow-strong);
}

.editor-field {
  display: grid;
  gap: 7px;
  margin-bottom: 24px;
}

.editor-field small,
.editor-seo-check small,
.editor-relation-toggle small {
  color: var(--muted);
  font-size: 0.78rem;
}

.editor-field.has-editor-warning input,
.editor-field.has-editor-warning textarea {
  border-color: #c4644e;
  box-shadow: 0 0 0 3px rgba(196, 100, 78, 0.12);
}

.editor-field [data-relation-warning] {
  color: #8b2d21;
  font-weight: 750;
}

.editor-two-column,
.editor-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-status-grid .editor-field {
  margin: 0;
}

.editor-quality-summary {
  display: grid;
  gap: 12px;
  margin: -2px 0 24px;
  padding: 15px 17px;
  border: 1px solid;
  border-radius: 10px;
}

.editor-quality-summary > div:first-child {
  display: grid;
  gap: 3px;
}

.editor-quality-summary > div:first-child span {
  color: var(--muted);
  font-size: 0.8rem;
}

.editor-quality-summary.is-clean {
  background: #eefaf3;
  border-color: #8dc6a6;
}

.editor-quality-summary.has-issues,
.editor-live-quality {
  background: #fff6ed;
  border-color: #dfb58a;
}

.editor-live-quality {
  margin: -12px 0 24px;
  padding: 13px 16px;
  color: #744018;
  border: 1px solid #dfb58a;
  border-radius: 9px;
}

.editor-live-quality ul {
  margin: 7px 0 0;
  padding-left: 20px;
}

.editor-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.editor-issue-list > span,
.editor-good-badge,
.editor-origin,
.editor-status-badge,
.editor-seo-badge,
.editor-example-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 820;
  line-height: 1.25;
}

.editor-issue-list > span {
  color: #7d2d20;
  background: #fff0ea;
  border: 1px solid #dfb1a4;
}

.editor-example-badge {
  color: #4d4637;
  background: #f1eee6;
  border: 1px solid #c9c1af;
}

.editor-example-badge.is-source_and_editorial {
  color: #315d43;
  background: #eaf7ef;
  border-color: #93c2a5;
}

.editor-example-badge.is-source_only {
  color: #5d5015;
  background: var(--soft-yellow);
  border-color: #d8c56a;
}

.editor-example-badge.is-editorial_only {
  color: #475474;
  background: #edf1fb;
  border-color: #aeb9d5;
}

.editor-quote-review {
  margin: 0 0 26px;
  padding: 17px;
  background: #f8f6f0;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.editor-quote-review-heading,
.editor-quote-review-list article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-quote-review-heading h3 {
  margin: 3px 0 0;
  font-family: var(--font-display);
}

.editor-quote-review-heading > span,
.editor-quote-review-list small,
.editor-quote-review-list p {
  color: var(--muted);
  font-size: 0.76rem;
}

.editor-quote-review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.editor-quote-review-list article {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.editor-quote-review-list blockquote {
  margin: 11px 0 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.55;
}

.editor-quote-review-list p {
  margin: 9px 0 0;
}

.editor-source-quote-editor {
  scroll-margin-top: 24px;
}

.editor-quote-recommendation {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 15px 17px;
  color: #4f4309;
  background: var(--soft-yellow);
  border: 1px solid #d7c15c;
  border-radius: 10px;
}

.editor-quote-workflow-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 15px 17px;
  color: #274c36;
  background: #eefaf3;
  border: 1px solid #99c9ad;
  border-left: 5px solid #247047;
  border-radius: 10px;
}

.editor-quote-workflow-banner > span {
  display: grid;
  gap: 4px;
}

.editor-quote-workflow-banner small {
  color: #4b6b57;
  font-size: 0.78rem;
  line-height: 1.45;
}

.editor-quote-workflow-banner .secondary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.editor-quote-recommendation span,
.editor-quote-recommendation small {
  line-height: 1.45;
}

.editor-quote-recommendation small {
  color: #6f642d;
  font-size: 0.76rem;
}

.editor-source-quote-form {
  padding: 20px;
  background: #f8f6f0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.editor-source-quote-form .editor-field {
  margin-bottom: 17px;
}

.editor-three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.editor-quote-verification {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 20px;
  padding: 14px 16px;
  color: #274c36;
  background: #eefaf3;
  border: 1px solid #99c9ad;
  border-radius: 10px;
  cursor: pointer;
}

.editor-quote-verification input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #247047;
}

.editor-quote-verification span {
  display: grid;
  gap: 3px;
}

.editor-quote-verification small {
  color: #4b6b57;
  font-size: 0.76rem;
  line-height: 1.45;
}

.editor-runtime-quote-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.editor-runtime-quote-list h3 {
  margin: 0;
  font-family: var(--font-display);
}

.editor-runtime-quote-list article {
  padding: 17px;
  background: #fffdf5;
  border: 1px solid #d8c977;
  border-radius: 11px;
}

.editor-runtime-quote-list article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-runtime-quote-list blockquote {
  margin: 13px 0 9px;
  font-family: var(--font-serif);
  line-height: 1.6;
}

.editor-runtime-quote-list p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.editor-runtime-quote-remove {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0d8b2;
}

.editor-runtime-quote-remove label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 750;
}

.editor-runtime-quote-remove input {
  width: 17px;
  height: 17px;
  accent-color: #a23d31;
}

.editor-good-badge {
  color: #155633;
  background: #eefaf3;
  border: 1px solid #99c9ad;
}

.editor-status-badge {
  color: #504a3a;
  background: #f1eee5;
  border: 1px solid #cbc3af;
  white-space: nowrap;
}

.editor-status-badge.is-reviewed {
  color: #155633;
  background: #eefaf3;
  border-color: #99c9ad;
}

.editor-status-badge.is-imported {
  color: #7d2d20;
  background: #fff0ea;
  border-color: #dfb1a4;
}

.editor-status-badge.is-source_enriched {
  color: #3e506c;
  background: #eef4ff;
  border-color: #aebfda;
}

.editor-seo-badge.is-index {
  color: #155633;
  background: #eefaf3;
  border: 1px solid #99c9ad;
}

.editor-seo-badge.is-noindex {
  color: #5e5542;
  background: #f1eee5;
  border: 1px solid #cbc3af;
}

.editor-origin {
  margin-top: 8px;
  color: #5e5542;
  background: #f5f2e9;
}

.editor-seo-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.editor-seo-check > span {
  display: grid;
  gap: 3px;
}

.editor-seo-preview {
  margin-top: 26px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
}

.editor-seo-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.editor-seo-preview-heading h3 {
  margin: 2px 0 0;
  font-size: 1.12rem;
}

.editor-seo-url {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  color: #287443;
  font-size: 0.78rem;
}

.editor-seo-title {
  display: block;
  color: #1a0dab;
  font-size: 1.16rem;
  line-height: 1.35;
}

.editor-seo-preview > p {
  max-width: 760px;
  margin: 7px 0 0;
  color: #4d5156;
  font-size: 0.88rem;
  line-height: 1.55;
}

.editor-seo-lengths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.74rem;
}

.editor-seo-lengths .is-over {
  color: #a12f22;
}

.editor-source-details {
  margin-top: 18px;
  padding: 13px 15px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.editor-source-details summary {
  cursor: pointer;
  font-weight: 820;
}

.editor-source-details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.editor-sense-panel {
  border-top: 5px solid var(--yellow);
}

.editor-remove-button {
  width: fit-content;
  padding: 8px 10px;
  color: #81261f;
  background: #fff5f3;
  border: 1px solid #d9aaa5;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-remove-button:disabled {
  color: var(--muted);
  background: #f2f0eb;
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.6;
}

.editor-relation-heading {
  margin: 28px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.editor-relation-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.editor-relation-heading span {
  color: var(--muted);
  font-size: 0.85rem;
}

.editor-relation-list {
  display: grid;
  gap: 9px;
}

.editor-relation-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(190px, 1.15fr) minmax(155px, 0.85fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #faf9f5;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.editor-relation-row.has-editor-warning {
  background: #fff6ed;
  border-color: #d89b72;
}

.editor-relation-row.is-focused {
  scroll-margin-top: 28px;
  background: #fff9da;
  border-color: #c7a90f;
  box-shadow: 0 0 0 3px rgba(214, 181, 14, 0.18);
}

.editor-relation-row .editor-field {
  margin: 0;
}

.editor-relation-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.editor-relation-toggle > span {
  display: grid;
  line-height: 1.3;
}

.editor-relation-labels {
  display: grid;
  gap: 7px;
}

.editor-relation-labels select {
  min-height: 74px;
  padding: 6px 9px;
}

.editor-add-sense {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--soft-yellow);
  border: 2px dashed #b99d24;
  border-radius: 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.editor-password-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.editor-reset-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.editor-reset-panel > summary::-webkit-details-marker {
  display: none;
}

.editor-reset-panel > summary > span:first-child {
  display: grid;
  gap: 5px;
}

.editor-reset-panel[open] > summary {
  margin-bottom: 18px;
}

.editor-reset-panel > p {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.editor-reset-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.editor-reset-confirm {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.editor-reset-confirm input {
  width: 18px;
  height: 18px;
  accent-color: #a23d31;
}

.editor-password-panel > summary::-webkit-details-marker {
  display: none;
}

.editor-password-panel > summary > span:first-child {
  display: grid;
  gap: 5px;
}

.editor-password-panel[open] > summary {
  margin-bottom: 24px;
}

.editor-password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}

.editor-password-form .editor-field {
  margin: 0;
}

.editor-password-form .primary-button {
  width: 100%;
}

.editor-save-bar {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #bcb6aa;
  border-radius: 13px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(12px);
}

.editor-save-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.editor-save-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.editor-save-actions .secondary-button {
  min-height: 52px;
}

.editor-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(6, minmax(145px, 1fr)) auto;
  align-items: end;
  gap: 11px;
  margin: 20px 0 22px;
  padding: 18px;
  background: #f7f5ef;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.editor-filter-form .editor-field {
  margin: 0;
}

.editor-filter-form .primary-button {
  min-width: 105px;
}

.editor-catalog-summary,
.editor-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-catalog-summary {
  margin-bottom: 12px;
}

.editor-catalog-summary span,
.editor-pagination > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-empty-state {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #f7f5ef;
  border-radius: 10px;
}

.editor-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.editor-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #fff;
}

.editor-table th,
.editor-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.editor-table th {
  color: #5f594c;
  background: #f3f0e8;
  font-size: 0.71rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.editor-table tbody tr:last-child td {
  border-bottom: 0;
}

.editor-table tbody tr:hover {
  background: #fffdf5;
}

.editor-table td:first-child {
  width: 34%;
}

.editor-word-link {
  display: block;
  width: fit-content;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--yellow-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.editor-table td:first-child > small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editor-table td:nth-child(3) > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.editor-row-actions {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.editor-row-actions .secondary-button {
  min-height: 38px;
  padding: 8px 11px;
  white-space: nowrap;
}

.editor-row-actions > a:last-child {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.editor-pagination {
  margin-top: 16px;
}

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

.editor-source-filter {
  grid-template-columns: minmax(260px, 1.5fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr) auto;
}

.editor-source-table {
  min-width: 1120px;
}

.editor-source-table td:first-child {
  width: 24%;
}

.editor-source-table td:nth-child(2) {
  width: 24%;
}

.editor-source-table td > strong,
.editor-source-table td > small {
  display: block;
}

.editor-source-table td > small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.editor-source-table td:last-child p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.editor-source-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 5px 8px;
  color: #504a3a;
  background: #f1eee5;
  border: 1px solid #cbc3af;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.25;
}

.editor-source-status.is-complete {
  color: #155633;
  background: #eefaf3;
  border-color: #99c9ad;
}

.editor-source-status.is-substantial {
  color: #31516b;
  background: #eef7ff;
  border-color: #a9c8df;
}

.editor-source-status.is-partial {
  color: #665000;
  background: #fff9df;
  border-color: #d7c46d;
}

.editor-source-status.is-sampled,
.editor-source-status.is-deferred {
  color: #665345;
  background: #f8f1e9;
  border-color: #d6c0ad;
}

.editor-source-status.is-queued {
  color: #7d2d20;
  background: #fff0ea;
  border-color: #dfb1a4;
}

.editor-source-status[class*="is-work-"] {
  display: flex;
  margin-top: 4px;
}

.editor-source-status.is-work-available_processed,
.editor-source-status.is-work-complete {
  color: #155633;
  background: #eefaf3;
  border-color: #99c9ad;
}

.editor-source-status.is-work-source_text_required {
  color: #665000;
  background: #fff9df;
  border-color: #d7c46d;
}

.editor-source-status.is-work-unreadable_source,
.editor-source-status.is-work-blocked_rights,
.editor-source-status.is-work-non_sentence_only {
  color: #7d2d20;
  background: #fff0ea;
  border-color: #dfb1a4;
}

.editor-source-status.is-work-reviewed_closed,
.editor-source-status.is-work-curated_stable,
.editor-source-status.is-work-deferred {
  color: #665345;
  background: #f8f1e9;
  border-color: #d6c0ad;
}

.editor-source-progress {
  display: block;
  appearance: none;
  width: 100%;
  max-width: 180px;
  height: 8px;
  border: 0;
  overflow: hidden;
  background: #ece8dd;
  border-radius: 999px;
}

.editor-source-progress::-webkit-progress-bar {
  background: #ece8dd;
  border-radius: inherit;
}

.editor-source-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #d2ad00, #f3cc22);
  border-radius: inherit;
}

.editor-source-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #d2ad00, #f3cc22);
  border-radius: inherit;
}

.editor-quote-policy {
  background: #fffdf4;
  border-color: #d8c977;
}

.editor-quote-policy h2 {
  margin: 3px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.editor-quote-policy > p:not(.section-kicker) {
  max-width: 980px;
  margin: 0;
  color: #554d39;
  line-height: 1.65;
}

.editor-quote-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.editor-quote-policy-grid span {
  padding: 10px 12px;
  color: #4f493b;
  background: #fff;
  border: 1px solid #dfd7bd;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 720;
}

.editor-quote-filter {
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(170px, 1fr)) auto;
}

.editor-relation-filter {
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(175px, 1fr)) auto;
}

.editor-quote-table {
  min-width: 1380px;
}

.editor-quote-table td:first-child {
  width: 14%;
}

.editor-quote-table td:nth-child(2) {
  width: 29%;
}

.editor-quote-table td:nth-child(3) {
  width: 23%;
}

.editor-quote-table td:nth-child(4) {
  width: 22%;
}

.editor-quote-table td > small,
.editor-quote-table td > strong {
  display: block;
}

.editor-quote-table td > small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.editor-quote-table blockquote {
  margin: 10px 0 0;
  padding-left: 11px;
  color: #4e4a41;
  border-left: 3px solid var(--yellow-strong);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.5;
}

.editor-quote-priority,
.editor-quote-locator {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.25;
}

.editor-quote-priority.is-ready {
  color: #155633;
  background: #eefaf3;
  border-color: #99c9ad;
}

.editor-quote-priority.is-source_known {
  color: #665000;
  background: #fff9df;
  border-color: #d7c46d;
}

.editor-quote-priority.is-source_needed {
  color: #7d2d20;
  background: #fff0ea;
  border-color: #dfb1a4;
}

.editor-quote-priority.is-non_sentence_source {
  color: #674314;
  background: #fff4e5;
  border-color: #d6af79;
}

.editor-quote-priority.is-rights_restricted {
  color: #51395f;
  background: #f5eef8;
  border-color: #c7afd2;
}

.editor-quote-priority.is-reviewed_no_quote {
  color: #665345;
  background: #f8f1e9;
  border-color: #d6c0ad;
}

.editor-quote-locator {
  margin-top: 9px;
  color: #405374;
  background: #edf2fb;
  border-color: #afbdd5;
}

.editor-search-form-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.editor-search-form-list span {
  padding: 4px 7px;
  color: #4f493c;
  background: #f3f0e8;
  border: 1px solid #d5cfc1;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.editor-quote-table .editor-row-actions .primary-button {
  min-height: 39px;
  padding: 8px 11px;
  white-space: nowrap;
}

.editor-relation-policy {
  background: #f5fbf9;
  border-color: #a8cfc2;
}

.editor-relation-table {
  min-width: 1320px;
}

.editor-relation-table td:first-child {
  width: 16%;
}

.editor-relation-table td:nth-child(2) {
  width: 25%;
}

.editor-relation-table td:nth-child(3) {
  width: 14%;
}

.editor-relation-table td:nth-child(4) {
  width: 32%;
}

.editor-relation-table td > strong,
.editor-relation-table td > small {
  display: block;
}

.editor-relation-table td > small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.editor-relation-priority {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.25;
}

.editor-relation-priority.is-malformed_source_text {
  color: #7d2d20;
  background: #fff0ea;
  border-color: #dfb1a4;
}

.editor-relation-priority.is-sensitive_review {
  color: #51395f;
  background: #f5eef8;
  border-color: #c7afd2;
}

.editor-relation-priority.is-oversized_definition {
  color: #31516b;
  background: #eef7ff;
  border-color: #a9c8df;
}

.editor-relation-priority.is-repeated_target {
  color: #665000;
  background: #fff9df;
  border-color: #d7c46d;
}

.editor-relation-priority.is-single_review {
  color: #504a3a;
  background: #f1eee5;
  border-color: #cbc3af;
}

.editor-relation-occurrences {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editor-relation-occurrences li {
  display: grid;
  gap: 2px;
}

.editor-relation-occurrences a {
  width: fit-content;
  color: var(--ink);
  font-weight: 820;
  text-decoration-color: var(--yellow-strong);
  text-underline-offset: 3px;
}

.editor-relation-occurrences small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.editor-relation-table .editor-row-actions .primary-button {
  min-height: 39px;
  padding: 8px 11px;
  white-space: nowrap;
}

.editor-quote-blocked {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 8px 11px;
  color: #655e50;
  background: #f2efe8;
  border: 1px solid #cbc3af;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.2;
}

.editor-system-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.editor-system-hero.is-ready {
  background: #f3fbf6;
  border-color: #9bc9ac;
}

.editor-system-hero.has-errors {
  background: #fff4ef;
  border-color: #dfa995;
}

.editor-system-hero > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.editor-system-hero h2 {
  margin: 2px 0 5px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.editor-system-hero p {
  margin: 0;
  color: var(--muted);
}

.editor-system-hero-mark {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: #247247;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 900;
}

.editor-system-hero.has-errors .editor-system-hero-mark {
  background: #a4412e;
}

.editor-system-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.editor-system-counts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
}

.editor-system-counts .is-ok {
  color: #155633;
  background: #fff;
  border-color: #8fbea2;
}

.editor-system-counts .is-warning {
  color: #665000;
  background: #fff9df;
  border-color: #d7c46d;
}

.editor-system-counts .is-error {
  color: #7d2d20;
  background: #fff;
  border-color: #dca493;
}

.editor-storage-probe {
  background: #fffdf4;
  border-color: #d8c977;
}

.editor-storage-probe .editor-panel-heading > form {
  flex: 0 0 auto;
}

.editor-system-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.editor-probe-result {
  margin-top: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid;
  border-radius: 9px;
}

.editor-probe-result.is-success {
  border-color: #8fbea2;
}

.editor-probe-result.is-error {
  border-color: #dca493;
}

.editor-probe-result > strong,
.editor-probe-result > span {
  display: block;
}

.editor-probe-result > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.editor-probe-result ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.editor-probe-result li {
  padding: 8px 10px;
  background: #f6f4ed;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 720;
}

.editor-probe-result li.is-ok {
  color: #155633;
}

.editor-probe-result li.is-error,
.editor-probe-result > p {
  color: #7d2d20;
}

.editor-probe-result > p {
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-weight: 720;
}

.editor-system-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.editor-system-group {
  margin-bottom: 0;
}

.editor-system-check-list {
  display: grid;
  gap: 8px;
}

.editor-system-check-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  background: #f7f5ef;
  border: 1px solid #ddd7ca;
  border-radius: 8px;
}

.editor-system-check-list article.is-ok {
  background: #f4fbf7;
  border-color: #b7d8c3;
}

.editor-system-check-list article.is-warning {
  background: #fff9e5;
  border-color: #ddca78;
}

.editor-system-check-list article.is-error {
  background: #fff2ed;
  border-color: #dfad9c;
}

.editor-system-check-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  background: #6d685d;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.editor-system-check-list .is-ok .editor-system-check-mark {
  background: #247247;
}

.editor-system-check-list .is-warning .editor-system-check-mark {
  color: #564300;
  background: #f1cc2a;
}

.editor-system-check-list .is-error .editor-system-check-mark {
  background: #a4412e;
}

.editor-system-check-list strong {
  display: block;
  font-size: 0.82rem;
}

.editor-system-check-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

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

.editor-backup-grid > article {
  padding: 15px;
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.editor-backup-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.editor-backup-heading strong,
.editor-backup-heading span {
  display: block;
}

.editor-backup-heading > div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.editor-backup-grid > article > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.editor-backup-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.editor-backup-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #ddd7ca;
}

.editor-backup-list > div > span > strong,
.editor-backup-list > div > span > small {
  display: block;
}

.editor-backup-list > div > span > strong {
  font-size: 0.76rem;
}

.editor-backup-list > div > span > small {
  max-width: 290px;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.65rem;
}

.editor-backup-list form {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  justify-items: end;
}

.editor-backup-list form label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 720;
}

.editor-backup-list .editor-remove-button {
  padding: 7px 9px;
  font-size: 0.68rem;
}

.editor-hosting-message textarea {
  width: 100%;
  min-height: 138px;
  margin-top: 15px;
  padding: 13px;
  color: #3e3a31;
  background: #f8f6ef;
  border: 1px solid #cfc8b9;
  border-radius: 8px;
  font: 0.8rem/1.55 var(--font-sans);
  resize: vertical;
}

.editor-hosting-message > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.editor-release-updates {
  display: grid;
  gap: 22px;
}

.editor-release-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editor-release-status-grid > div {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #ddd8cc);
  border-radius: 14px;
}

.editor-release-status-grid span,
.editor-release-status-grid small,
.editor-release-card small {
  color: var(--muted, #68645b);
  font-size: 0.72rem;
}

.editor-release-status-grid strong {
  font-size: 1.15rem;
}

.editor-release-upload-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.editor-release-upload-form > .primary-button {
  justify-self: start;
}

.editor-release-progress {
  display: grid;
  gap: 8px;
}

.editor-release-progress[hidden] {
  display: none;
}

.editor-release-progress > span {
  height: 10px;
  overflow: hidden;
  background: #e8e3d7;
  border-radius: 999px;
}

.editor-release-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #f9c61c;
  border-radius: inherit;
  transition: width 140ms ease;
}

.editor-release-progress strong {
  font-size: 0.78rem;
}

.editor-release-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.editor-release-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: #faf8f2;
  border: 1px solid #ded8ca;
  border-radius: 14px;
}

.editor-release-card.is-ready {
  border-color: #79a887;
  box-shadow: inset 4px 0 #2f7c48;
}

.editor-release-card.has-errors {
  border-color: #c69090;
  box-shadow: inset 4px 0 #a63d3d;
}

.editor-release-card h3,
.editor-release-card p {
  margin: 3px 0;
}

.editor-release-actions {
  display: grid;
  flex: 0 0 min(360px, 42%);
  gap: 9px;
}

.editor-release-actions form,
.editor-release-actions label,
form.editor-release-actions {
  display: grid;
  gap: 8px;
}

.editor-release-actions label {
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted, #68645b);
  font-size: 0.72rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .editor-topbar,
  .editor-panel-heading,
  .editor-save-bar,
  .editor-quote-work-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-topbar-actions,
  .editor-topbar-actions > *,
  .editor-topbar-actions .secondary-button,
  .editor-topbar-actions .primary-button {
    width: 100%;
  }

  .editor-lookup > form,
  .editor-two-column,
  .editor-status-grid,
  .editor-three-column,
  .editor-relation-row,
  .editor-stat-grid,
  .editor-filter-form,
  .editor-password-form {
    grid-template-columns: 1fr;
  }

  .editor-source-filter {
    grid-template-columns: 1fr;
  }

  .editor-quote-policy-grid,
  .editor-quote-filter,
  .editor-relation-filter,
  .editor-system-groups,
  .editor-backup-grid,
  .editor-probe-result ul {
    grid-template-columns: 1fr;
  }

  .editor-system-hero,
  .editor-system-hero > div:first-child,
  .editor-quote-workflow-banner,
  .editor-backup-list > div {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-system-counts {
    justify-content: flex-start;
  }

  .editor-storage-probe .editor-panel-heading > form,
  .editor-storage-probe .editor-panel-heading > form > button {
    width: 100%;
  }

  .editor-quote-workflow-banner .secondary-button {
    width: 100%;
  }

  .editor-backup-list form {
    justify-items: stretch;
  }

  .editor-relation-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-release-status-grid {
    grid-template-columns: 1fr;
  }

  .editor-release-card {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-release-actions {
    flex-basis: auto;
    width: 100%;
  }

  .editor-release-upload-form > .primary-button {
    justify-self: stretch;
    width: 100%;
  }

  .editor-save-bar .primary-button {
    width: 100%;
  }

  .editor-save-actions,
  .editor-save-actions > *,
  .editor-save-actions .secondary-button {
    width: 100%;
  }

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

  .editor-seo-preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .editor-reset-form {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-reset-form .editor-remove-button {
    width: 100%;
  }

  .editor-runtime-quote-remove {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 761px) and (max-width: 1260px) {
  .editor-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .editor-table-wrap {
    overflow: visible;
  }

  .editor-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .editor-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .editor-table tbody,
  .editor-table tr,
  .editor-table td {
    display: block;
    width: 100%;
  }

  .editor-table tr {
    background: var(--surface, #fff);
    border: 1px solid var(--line, #d8d6cf);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(20, 24, 33, 0.06);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .editor-table td {
    border: 0;
    border-bottom: 1px solid var(--line, #e7e5df);
    min-height: 0;
    padding: 0.85rem 1rem;
  }

  .editor-table td:last-child {
    border-bottom: 0;
  }

  .editor-table td::before {
    color: var(--muted, #666b73);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
  }

  .editor-catalog-table td:nth-child(1)::before { content: "Címszó és jelentés"; }
  .editor-catalog-table td:nth-child(2)::before { content: "Adatállapot"; }
  .editor-catalog-table td:nth-child(3)::before { content: "Példák"; }
  .editor-catalog-table td:nth-child(4)::before { content: "Jelzések"; }
  .editor-catalog-table td:nth-child(5)::before { content: "SEO"; }
  .editor-catalog-table td:nth-child(6)::before { content: "Művelet"; }
  .editor-source-table td:nth-child(1)::before { content: "Forrás"; }
  .editor-source-table td:nth-child(2)::before { content: "Állapot"; }
  .editor-source-table td:nth-child(3)::before { content: "Feldolgozott adat"; }
  .editor-source-table td:nth-child(4)::before { content: "Lefedettség"; }
  .editor-source-table td:nth-child(5)::before { content: "Következő feladat"; }
  .editor-quote-table td:nth-child(1)::before { content: "Prioritás"; }
  .editor-quote-table td:nth-child(2)::before { content: "Címszó"; }
  .editor-quote-table td:nth-child(3)::before { content: "Forrás"; }
  .editor-quote-table td:nth-child(4)::before { content: "Keresési támpont"; }
  .editor-quote-table td:nth-child(5)::before { content: "Művelet"; }
  .editor-relation-table td:nth-child(1)::before { content: "Prioritás"; }
  .editor-relation-table td:nth-child(2)::before { content: "Hiányzó célszöveg"; }
  .editor-relation-table td:nth-child(3)::before { content: "Típus és darabszám"; }
  .editor-relation-table td:nth-child(4)::before { content: "Érintett szócikkek"; }
  .editor-relation-table td:nth-child(5)::before { content: "Művelet"; }
}

/* Opcionális hangulat- és szómagyarázó képek */
.visual-picture,
.visual-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-picture img {
  object-fit: cover;
  object-position: var(--visual-focal-x, 50%) var(--visual-focal-y, 50%);
}

.visual-focal-x-0 { --visual-focal-x: 0%; }
.visual-focal-x-10 { --visual-focal-x: 10%; }
.visual-focal-x-20 { --visual-focal-x: 20%; }
.visual-focal-x-30 { --visual-focal-x: 30%; }
.visual-focal-x-40 { --visual-focal-x: 40%; }
.visual-focal-x-50 { --visual-focal-x: 50%; }
.visual-focal-x-60 { --visual-focal-x: 60%; }
.visual-focal-x-70 { --visual-focal-x: 70%; }
.visual-focal-x-80 { --visual-focal-x: 80%; }
.visual-focal-x-90 { --visual-focal-x: 90%; }
.visual-focal-x-100 { --visual-focal-x: 100%; }

.visual-focal-y-0 { --visual-focal-y: 0%; }
.visual-focal-y-10 { --visual-focal-y: 10%; }
.visual-focal-y-20 { --visual-focal-y: 20%; }
.visual-focal-y-30 { --visual-focal-y: 30%; }
.visual-focal-y-40 { --visual-focal-y: 40%; }
.visual-focal-y-50 { --visual-focal-y: 50%; }
.visual-focal-y-60 { --visual-focal-y: 60%; }
.visual-focal-y-70 { --visual-focal-y: 70%; }
.visual-focal-y-80 { --visual-focal-y: 80%; }
.visual-focal-y-90 { --visual-focal-y: 90%; }
.visual-focal-y-100 { --visual-focal-y: 100%; }

.mood-visual-band-wrap {
  margin-top: 24px;
  margin-bottom: 0;
}

.mood-visual-band {
  height: clamp(118px, 13vw, 188px);
  margin: 0;
  overflow: hidden;
  background: #e9e5da;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.08);
}

.mood-visual-band-home {
  margin-top: 20px;
}

.mood-visual-band-topics-index,
.mood-visual-band-topic {
  margin-top: 22px;
}

.entry-visual {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #f8f6ef;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.entry-visual-media {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  overflow: hidden;
  background: #e9e5da;
}

.entry-visual-label {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(249, 198, 28, 0.94);
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.entry-visual figcaption {
  padding: 16px 18px 18px;
  color: #4e4b43;
  font-size: 0.88rem;
  line-height: 1.55;
}

.entry-visual-caption,
.entry-visual-credit {
  display: block;
}

.entry-visual-credit {
  margin-top: 9px;
  color: #666157;
  font-size: 0.76rem;
  line-height: 1.5;
}

.entry-visual-credit > span {
  display: inline;
}

.entry-visual-credit > span + span::before {
  content: " ";
}

.entry-visual-credit a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-visual-credit a:hover,
.entry-visual-credit a:focus-visible {
  color: var(--ink);
}

.entry-visual-wide {
  margin: 0 0 30px;
}

.entry-visual-wide .entry-visual-media {
  aspect-ratio: 16 / 6;
  min-height: 250px;
  max-height: 390px;
}

.sense-grid-with-visual {
  align-items: stretch;
}

.sense-grid-with-visual > .sense-card,
.sense-grid-with-visual > .entry-visual {
  height: 100%;
}

@media (max-width: 820px) {
  .mood-visual-band-wrap {
    margin-top: 18px;
  }

  .mood-visual-band {
    height: clamp(108px, 24vw, 160px);
    border-radius: 13px;
  }

  .entry-visual-wide .entry-visual-media {
    aspect-ratio: 16 / 8;
    min-height: 210px;
  }
}

@media (max-width: 560px) {
  .mood-visual-band-wrap.page-width {
    padding: 0;
  }

  .mood-visual-band {
    height: 112px;
    border-radius: 11px;
  }

  .entry-visual-media,
  .entry-visual-wide .entry-visual-media {
    min-height: 190px;
  }

  .entry-visual figcaption {
    padding: 14px 15px 16px;
  }
}

@media (forced-colors: active) {
  .mood-visual-band,
  .entry-visual {
    border: 1px solid CanvasText;
  }
}

/* Administration: stable two-level navigation, in ordinary document flow. */
.dg-admin-nav { margin-block:24px 0; }
.dg-admin-nav-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-bottom:14px; }
.dg-admin-home { color:var(--ink); font-size:18px; font-weight:750; text-decoration:none; }
.dg-admin-utilities { display:flex; align-items:center; gap:18px; flex-wrap:wrap; font-size:14px; }
.dg-admin-utilities form { margin:0; }
.dg-admin-utilities button { font:inherit; background:none; border:0; color:inherit; text-decoration:underline; cursor:pointer; padding:10px 0; min-height:44px; }
.dg-admin-nav ul { list-style:none; margin:0; padding:0; }
.dg-admin-nav li { min-width:0; margin:0; }
.dg-admin-nav-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:5px!important; background:#ece7dc; border:1px solid var(--line); border-radius:10px; }
.dg-admin-nav-groups a { display:flex; align-items:center; justify-content:center; height:100%; min-height:46px; padding:10px 12px; border-radius:6px; color:var(--ink); text-decoration:none; font-size:15px; font-weight:700; text-align:center; overflow-wrap:anywhere; }
.dg-admin-nav-groups a:hover { background:#fff8dc; }
.dg-admin-nav-groups a.is-current { background:var(--yellow); box-shadow:inset 0 -3px 0 #805c00; }
.dg-admin-subnav { display:flex; flex-wrap:wrap; gap:6px; padding:12px 0!important; border-bottom:1px solid var(--line); }
.dg-admin-subnav a { display:block; min-height:44px; padding:11px 14px; border-radius:6px; color:var(--ink); font-size:14px; line-height:1.5; text-decoration:none; overflow-wrap:anywhere; }
.dg-admin-subnav a:hover { background:#fff8dc; }
.dg-admin-subnav a[aria-current="page"] { background:#fff; box-shadow:inset 0 0 0 1px #b8a36e; font-weight:750; }
.dg-admin-nav a:focus-visible,.dg-admin-nav button:focus-visible { outline:3px solid #805c00; outline-offset:2px; }
.dg-admin-body .editor-shell { padding-block:26px 64px; }
.dg-admin-body .dq-shell { max-width:none; }
.dg-admin-body :is(.editor-topbar,.editor-panel-heading,.editor-relation-heading,.editor-save-bar) { flex-wrap:wrap; }
.dg-admin-body :is(.editor-topbar,.editor-panel-heading,.editor-relation-heading,.editor-save-bar) > * { min-width:0; max-width:100%; }
.dg-admin-body :is(.editor-filter-form,.editor-source-filter,.editor-quote-filter,.editor-relation-filter) { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.dg-admin-body .editor-filter-search { grid-column:auto; }
.dg-admin-body :is(.editor-field,.editor-panel,.editor-two-column > *,.editor-three-column > *,.dq-edit,.dq-filters > *) { min-width:0; }
.dg-admin-body :is(input,select,textarea) { max-width:100%; min-width:0; }
.dg-admin-body :is(.editor-panel,.editor-alert,.editor-topbar,.dq-shell) { overflow-wrap:anywhere; }
.dg-admin-body .editor-table-wrap { max-width:100%; overflow-x:auto; }
@media(max-width:760px) {
  .dg-admin-body :is(.editor-filter-form,.editor-source-filter,.editor-quote-filter,.editor-relation-filter) { grid-template-columns:1fr; }
}
@media(max-width:600px) {
  .dg-admin-nav { margin-top:16px; }
  .dg-admin-nav-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dg-admin-subnav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dg-admin-subnav a { height:100%; padding:10px; }
}
@media(max-width:360px) {
  .dg-admin-subnav { grid-template-columns:1fr; }
}

/* V3.167.19: source metadata previews respect the existing Content Security Policy. */
.dg-quote-preview-list { max-height: 32rem; overflow: auto; overflow-wrap: anywhere; overscroll-behavior: contain; }
.dg-quote-preview-list article + article { border-top: 1px solid var(--border, #d9d3c4); margin-top: 1rem; padding-top: 1rem; }

/* v3.167.21: contextual word choice, visible provenance and accessible practice. */
.word-accent-variants { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--yellow-strong); border-radius: 12px; background: var(--card); }
.word-accent-variants p { margin: 4px 0; }
.word-accent-variants ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; padding: 0; list-style: none; }
.word-accent-variants a, .word-help-sources a { text-decoration: underline; text-underline-offset: 3px; }
.word-analysis-link { margin: 12px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.word-analysis-link a { display: inline-block; padding: 3px 0; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.word-analysis-link > span { display: block; margin-top: 2px; }
.meaning-backlink-chip { flex-wrap: wrap; max-width: 100%; }
.meaning-backlink-context { flex-basis: 100%; max-width: 320px; padding: 0 10px 7px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.dq-source-status { margin: 8px 0; font-size: 14px; line-height: 1.5; font-weight: 650; }
.dq-source-status[data-source-status="unverified"] { color: #7c4c14; }
.dq-source-status[data-source-status="passage_located"] { color: #665216; }
.dq-source-status[data-source-status="verified_primary"] { color: #226044; }
.word-help { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow-wrap: anywhere; }
.word-help h2 { margin: 0 0 12px; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; }
.word-help h3 { margin: 24px 0 12px; font-size: 19px; line-height: 1.4; }
.word-help p { max-width: 82ch; }
.word-help-note { color: var(--muted); font-size: 14px; }
.word-help-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.word-help-example { padding: 16px; background: var(--paper); border-radius: 12px; }
.word-help-example p { margin: 0 0 10px; }
.word-help-example p:last-child { margin-bottom: 0; }
.word-help-example span { display: block; color: var(--muted); font-size: 12px; font-weight: 650; margin-bottom: 3px; }
.word-help-distinctions { margin: 0; }
.word-help-distinctions > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.word-help-distinctions dt { font-weight: 700; }
.word-help-distinctions dd { margin: 4px 0 0; }
.word-quiz-details { margin-top: 22px; border: 1px solid var(--line-dark); border-radius: 12px; padding: 16px; }
.word-quiz-details > summary { cursor: pointer; font-weight: 700; }
.word-quiz-details > summary span { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.word-quiz fieldset { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.word-quiz legend { max-width: 100%; padding: 0 6px; font-weight: 650; font-size: 16px; }
.word-quiz label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.word-quiz label:hover { background: var(--soft-yellow); }
.word-quiz input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #594611; }
.word-quiz [data-quiz-state="correct"] { border-color: var(--success); }
.word-quiz [data-quiz-state="incorrect"] { border-color: var(--danger); }
.word-quiz-feedback { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.word-quiz-feedback [data-quiz-verdict] { display: block; }
.word-quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.word-quiz-result:not(:empty) { margin: 16px 0 0; padding: 16px; background: var(--soft-yellow); border-radius: 10px; font-weight: 600; }
.word-help-sources { margin-top: 18px; font-size: 14px; color: var(--muted); }
.word-help-sources summary { cursor: pointer; }
.word-help-sources li { margin: 6px 0; }
@media (max-width: 640px) {
  .word-help { padding: 16px; }
  .word-help-examples { grid-template-columns: 1fr; }
  .word-quiz-details { padding: 12px; }
  .word-quiz fieldset { padding: 10px; }
  .word-quiz-actions { flex-direction: column; }
  .meaning-backlink-context { max-width: 100%; }
}
.dg-quote-preview-list pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }

/* API administration follows the existing non-sticky administration layout. */
.dg-api-admin { padding-block: 24px 56px; }
.dg-api-admin h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.dg-api-admin h2 { font-size: 1.25rem; }
.dg-api-admin h3 { font-size: 1.08rem; }
.dg-api-card { margin-block: 20px; padding: clamp(16px, 3vw, 28px); }
.dg-api-admin code { font-size: .85em; overflow-wrap: anywhere; }
.dg-api-facts { display: grid; grid-template-columns: minmax(7rem, 1fr) minmax(0, 4fr); gap: 8px 16px; }
.dg-api-facts dt { font-weight: 700; }
.dg-api-facts dd { margin: 0; overflow-wrap: anywhere; }
.dg-api-key-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dg-api-key-form > label { display: grid; gap: 6px; font-weight: 650; }
.dg-api-key-form :is(input[type=text], input[type=number], input[type=password], select), .dg-api-secret { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
.dg-api-release-panel { border: 2px solid #c39a26; background: #fffdf5; }
.dg-api-grant-status { margin-top: 16px; padding: 12px 16px; border-left: 3px solid #c39a26; background: #fffdf5; }
.dg-api-key-form > :is(p, details, button) { grid-column: 1 / -1; }
.dg-api-key-form > button { justify-self: start; }
.dg-api-scopes { display: grid; gap: 10px; padding-block: 12px; }
.dg-api-secret { font-family: monospace; overflow-wrap: anywhere; resize: vertical; }
.dg-api-admin summary { cursor: pointer; padding-block: 10px; font-weight: 650; }
.dg-api-key { border-top: 1px solid var(--line); padding-block: 16px; }
.dg-api-key small { display: inline-block; padding: 3px 8px; margin-left: 8px; border-radius: 4px; background: #f1ecdf; font-size: .8rem; }
.dg-api-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.dg-api-actions button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; font: inherit; }
.dg-api-admin :is(button, input, select, textarea, summary):focus-visible { outline: 3px solid #805c00; outline-offset: 3px; }
.dg-api-table-wrap { overflow-x: auto; }
.dg-api-table-wrap table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dg-api-table-wrap :is(th, td) { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) {
  .dg-api-key-form, .dg-api-facts { grid-template-columns: minmax(0, 1fr); }
  .dg-api-facts dd { margin-bottom: 8px; }
}

/* Quote enrichment: self-contained, no script/font dependency. */
.dq-quality-guide,.dq-quality-quotes{margin-block:1.5rem;overflow-wrap:anywhere}.dq-quality-guide{padding:1.2rem;border:1px solid #cfd8dc;border-radius:.7rem}.dq-quality-card{padding:1rem;margin-block:1rem;border:1px solid #d8dee3;border-radius:.7rem}.dq-quality-card blockquote{margin:0 0 1rem;padding-inline-start:1rem;border-inline-start:3px solid currentColor}.dq-quality-card summary{cursor:pointer;font-weight:600}.dq-quality-guide li{margin-block:.4rem}.dq-sense-context{margin-top:1rem;padding-top:.75rem;border-top:1px solid #d8dee3;overflow-wrap:anywhere}.dq-sense-context p{margin:.4rem 0;line-height:1.6}.dq-sense-context .muted{font-size:.875rem}@media print{.dq-quality-card details{display:block}.dq-quality-guide,.dq-quality-card{break-inside:avoid}}


/* Quiet return journey: existing palette, local-only state, no additional assets. */
.return-ribbon {
  margin-top: 14px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.8);
}
.return-ribbon[hidden], .daily-word-next[hidden] { display: none; }
.return-ribbon-heading { display: grid; gap: 2px; line-height: 1.35; }
.return-ribbon-heading strong { font-size: 14px; }
.return-ribbon-heading small { color: var(--muted); font-size: 12px; }
.return-ribbon-links { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.return-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid #d8cfb6;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.return-chip:hover { border-color: #8c6f16; background: var(--soft-yellow); }
.return-ribbon-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  color: #5f4a00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.return-ribbon-more .icon { width: 16px; height: 16px; }

.daily-word-section {
  display: flex;
  gap: 18px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid #e2d9c4;
  border-radius: 14px;
  background: #fffdf6;
}
.daily-word-copy { min-width: 0; max-width: 760px; }
.daily-word-copy .section-kicker { margin-bottom: 5px; font-size: 11px; }
.daily-word-copy h2 { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.018em; }
.daily-word-copy p:last-child { margin: 8px 0 0; color: #514b3d; line-height: 1.55; }
.daily-word-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; flex-wrap: wrap; }
.daily-word-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  white-space: normal;
  text-align: center;
}
.daily-word-actions .secondary-button .icon { width: 18px; height: 18px; }
.daily-word-next { min-height: 44px; padding: 9px 10px; color: #5f4a00; }
.return-ribbon :is(a):focus-visible, .daily-word-actions :is(a,button):focus-visible {
  outline: 3px solid #795900;
  outline-offset: 3px;
}
@media (max-width: 980px) {
  .return-ribbon { grid-template-columns: 1fr; }
  .return-ribbon-links { width: 100%; }
  .return-ribbon-more { justify-self: start; }
}
@media (max-width: 820px) {
  .daily-word-section { align-items: flex-start; flex-direction: column; padding: 16px; }
  .daily-word-actions { width: 100%; }
}
@media (max-width: 560px) {
  .return-ribbon { padding: 12px; }
  .return-ribbon-links { gap: 6px; }
  .return-chip { padding: 9px 11px; font-size: 14px; }
  .daily-word-actions { align-items: stretch; flex-direction: column; }
  .daily-word-actions .secondary-button, .daily-word-next { width: 100%; }
}

.search-shortcut-tip { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.search-shortcut-tip[hidden] { display: none; }
.search-shortcut-tip kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line-dark); border-radius: 4px; background: #fff; font: inherit; font-weight: 750; }
@media (max-width: 820px), (pointer: coarse) { .search-shortcut-tip { display: none; } }

/* Editorial difficult-word collection: bounded lists, native word-page content. */
.difficult-home,.difficult-collection{padding-top:2rem;padding-bottom:2rem}
.difficult-home h2,.difficult-collection h1{font-size:clamp(1.5rem,3vw,2rem);line-height:1.25}
.difficult-word-panel,.difficult-quiz{margin:2rem 0;padding:1.5rem;border:1px solid #dce4df;border-radius:1rem;background:#f7faf8}
.difficult-word-panel h2,.difficult-quiz h2{font-size:1.4rem;line-height:1.35}
.difficult-sense{padding:1rem 0;border-bottom:1px solid #dce4df}
.difficult-sense:last-of-type{border-bottom:0}
.difficult-sense h3{font-size:1.15rem;margin:0 0 .75rem}
.difficult-sense li{margin:.5rem 0}
.difficult-relations dt{font-weight:650;margin-top:.75rem}
.difficult-relations dt small{font-weight:400}
.difficult-relations dd{margin:.25rem 0 .75rem}
.difficult-word-panel details{margin:1rem 0;overflow-wrap:anywhere}
.difficult-word-panel summary,.difficult-answer summary{cursor:pointer;font-weight:600}
.difficult-filters{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}
.difficult-filters label{display:grid;gap:.5rem;max-width:100%;font-weight:600}
.difficult-filters input,.difficult-filters select{font:inherit;padding:.75rem;border:1px solid #85958c;border-radius:.5rem;max-width:100%;background:#fff;color:#173328}
.difficult-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.difficult-list li{border:1px solid #dce4df;border-radius:.75rem;padding:1rem;overflow-wrap:anywhere}
.difficult-list h2{font-size:1.15rem;margin:0 0 .5rem}
.difficult-list p{margin:.5rem 0}
.difficult-quiz fieldset{min-width:0;border:1px solid #b9c9c0;border-radius:.75rem;margin:1.5rem 0;padding:1rem}
.difficult-quiz legend{font-weight:650;padding:0 .25rem}
.difficult-quiz fieldset>label{display:block;padding:.6rem .2rem;cursor:pointer}
.difficult-quiz input[type=radio]{accent-color:#155d3e;margin-right:.5rem}
.difficult-answer{margin-top:.75rem}
@media(max-width:600px){.difficult-list{grid-template-columns:1fr}.difficult-word-panel,.difficult-quiz{padding:1rem}.difficult-filters label{width:100%}}
.difficult-filters label{min-width:0;grid-template-columns:minmax(0,1fr)}
.difficult-filters select{width:100%;min-width:0}
