/* ========== Base ========== */
:root {
  color-scheme: light dark;
  --bg: #eaecf0;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-soft-2: #f2f4f7;
  --border: #a2a9b1;
  --border-soft: #c8ccd1;
  --text: #202122;
  --muted: #54595d;
  --link: #3366cc;
  --link-hover: #1a4fb4;
  --sidebar-width: 280px;
  --panel-width: 330px;
  --gutter: 38px;
  --topbar-height: 56px;
  --content-max: 1300px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #111418;
    --surface: #1a1f25;
    --surface-soft: #15191e;
    --surface-soft-2: #1e252c;
    --border: #424a53;
    --border-soft: #30363d;
    --text: #e6e6e6;
    --muted: #a7b0ba;
    --link: #8ab4ff;
    --link-hover: #a6c6ff;
  }

  :root:not([data-theme]) .theme-switcher {
    border-color: #424a53;
    background: #1e252c;
  }

  :root:not([data-theme]) .theme-switcher-label {
    color: #e6e6e6;
  }

  :root:not([data-theme]) .theme-btn {
    border-color: #424a53;
    background: #15191e;
    color: #e6e6e6;
  }

  :root:not([data-theme]) .theme-btn:hover {
    background: #232a32;
  }

  :root:not([data-theme]) .theme-btn.active {
    border-color: #8ab4ff;
    background: #3366cc;
    color: #fff;
  }

  :root:not([data-theme]) .panel-title {
    background: #4d4320;
    color: #f0f3f7;
  }

  :root:not([data-theme]) h1,
  :root:not([data-theme]) h2,
  :root:not([data-theme]) h3,
  :root:not([data-theme]) .brand-mark {
    color: #f2f2f2;
  }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

strong {
  color: var(--text); /* fekete / aktuális szövegszín */
  font-weight: 700;
}

/* ========== Theme ========== */
.theme-switcher {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  background: #f8f9fa;
  box-shadow: none;
}

.theme-switcher-label {
  display: block;
  margin: 0 0 10px;
  color: #202122;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.theme-switcher-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-btn {
  border: 1px solid #a2a9b1;
  border-radius: 2px;
  background: #ffffff;
  color: #202122;
  padding: 8px 10px;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-btn:hover {
  background: #eaecf0;
  color: #202122;
  text-decoration: none;
}

.theme-btn.active {
  background: #3366cc;
  border-color: #3366cc;
  color: #fff;
  box-shadow: none;
}

:root[data-theme="light"] {
  --bg: #eaecf0;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --surface-soft-2: #f2f4f7;
  --border: #a2a9b1;
  --border-soft: #c8ccd1;
  --text: #202122;
  --muted: #54595d;
  --link: #3366cc;
  --link-hover: #1a4fb4;
}

:root[data-theme="dark"] {
  --bg: #111418;
  --surface: #1a1f25;
  --surface-soft: #15191e;
  --surface-soft-2: #1e252c;
  --border: #424a53;
  --border-soft: #30363d;
  --text: #e6e6e6;
  --muted: #a7b0ba;
  --link: #8ab4ff;
  --link-hover: #a6c6ff;
}

:root[data-theme="dark"] .theme-switcher {
  border-color: #424a53;
  background: #1e252c;
}

:root[data-theme="dark"] .theme-switcher-label {
  color: #e6e6e6;
}

:root[data-theme="dark"] .theme-btn {
  border-color: #424a53;
  background: #15191e;
  color: #e6e6e6;
}

:root[data-theme="dark"] .theme-btn:hover {
  background: #232a32;
}

:root[data-theme="dark"] .theme-btn.active {
  border-color: #8ab4ff;
  background: #3366cc;
  color: #fff;
}

:root[data-theme="dark"] .panel-title {
  background: #4d4320;
  color: #f0f3f7;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] .brand-mark {
  color: #f2f2f2;
}


/* ========== Layout ========== */
.page-shell {
  min-height: 100vh;
}

.left-rail,
.right-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  overflow: auto;
  background: var(--surface-soft);
  padding: 18px 16px 32px;
}

.left-rail {
  left: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
}

.right-rail {
  right: 0;
  width: var(--panel-width);
  border-left: 1px solid var(--border);
}

.content-column {
  margin-left: calc(var(--sidebar-width) + var(--gutter));
  margin-right: calc(var(--panel-width) + var(--gutter));
  min-height: 100vh;
}

.article {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--surface);
  min-height: 100vh;
  padding: 30px 44px 56px;
  border: 1px solid var(--border);
}

.site-footer {
  max-width: var(--content-max);
  margin: 0 auto 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 18px;
  padding: 26px 28px 30px;
}

/* ========== Left rail ========== */
.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font: 700 28px/1 Georgia, "Times New Roman", serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font: 700 21px/1.1 Georgia, "Times New Roman", serif;
}

.brand-text span {
  color: var(--muted);
  font-size: 13px;
}

.rail-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.left-nav,
.left-note {
  margin-bottom: 24px;
}

.left-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-nav li + li {
  margin-top: 7px;
}

.left-nav a {
  font-size: 14px;
}

.left-note {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 12px;
  font-size: 14px;
}

.left-rail-utility {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.theme-switcher-wrapper {
  display: block;
  margin-bottom: 12px;
}

.rail-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.rail-quicklinks a {
  display: block;
  line-height: 1.35;
  padding: 7px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  background: var(--surface);
}

/* ========== Content / typography ========== */
.mini-label {
  color: var(--muted);
  font-size: 13px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

:root {
  --heading: #000000;
}

:root[data-theme="dark"] {
  --heading: #f2f2f2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heading: #f2f2f2;
  }
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.18;
  color: var(--heading);
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 14px;
  font-size: 42px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 5px;
  font-size: 31px;
  border-bottom: 1px solid var(--border-soft);
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.lead {
  font-size: 19px;
  line-height: 1.65;
}

.section {
  margin-bottom: 36px;
  scroll-margin-top: 74px;
}

.section p {
  margin: 0 0 14px;
}

.section ol,
.section ul {
  padding-left: 24px;
}

.section li {
  margin-bottom: 7px;
}

.wiki-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  padding: 14px 16px;
}

.wiki-list {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 15px;
}

th, td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  text-align: left;
}

details {
  border-top: 1px solid var(--border-soft);
  padding: 12px 0;
}

details:last-child {
  border-bottom: 1px solid var(--border-soft);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--link);
}


.json-block {
  background: #111;
  color: #f8f9fa;
  padding: 14px;
  border: 1px solid #2a2a2a;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
}

/* ========== Right rail / infobox ========== */
.knowledge-panel {
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel-title {
  margin: 0;
  padding: 12px 14px 8px;
  font-size: 28px;
  text-align: center;
  background: #f3e7a4;
  border-bottom: 1px solid var(--border);
}

.panel-subtitle {
  padding: 8px 14px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}

.panel-list {
  margin: 0;
}

.panel-media {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.panel-media-box {
  min-height: 148px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-soft-2));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.left-note p + p {
  margin-top: 12px;
}

.left-note a {
  word-break: break-word;
}

.panel-list div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.panel-list dt {
  font-weight: 700;
  color: #3366cc;
}

.knowledge-panel strong,
.knowledge-panel b {
  color: #3366cc;
  font-weight: 700;
}

.panel-list dd {
  margin: 0;
}

.panel-block {
  padding: 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.panel-block h3 {
  font-size: 18px;
}

.knowledge-panel .panel-block h3,
.knowledge-panel .panel-title {
  font-weight: 700;
}

/* ========== Footer ========== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-block h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.footer-block p,
.footer-block li {
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-block ul {
  margin: 0;
  padding-left: 18px;
}

/* ========== Responsive ========== */
@media (max-width: 1450px) {
  :root {
    --content-max: 1180px;
    --gutter: 22px;
  }
}

@media (max-width: 1366px) {
  .right-rail {
    position: static;
    width: auto;
    border-left: 0;
    border: 1px solid var(--border);
    margin: 18px auto 0;
    max-width: calc(100% - 32px);
    padding: 16px;
  }

  .content-column {
    margin-right: 0;
  }

  .article,
  .site-footer,
  .right-rail {
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 18px;
  }
}

@media (max-width: 1180px) {
  .left-rail {
    position: static;
    width: auto;
    border-right: 0;
    border: 1px solid var(--border);
    margin: 16px auto 0;
    max-width: calc(100% - 32px);
    padding: 16px;
    display: block;
  }

  .content-column {
    margin-left: 0;
  }

  .article,
  .site-footer,
  .left-rail {
    max-width: calc(100% - 32px);
  }

  .article {
    padding: 24px 20px 48px;
  }

  .left-rail-utility {
    margin-top: 18px;
    padding-top: 14px;
  }

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

@media (max-width: 640px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .panel-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .left-rail,
  .article,
  .site-footer,
  .right-rail {
    max-width: calc(100% - 20px);
  }

  .left-rail,
  .article,
  .site-footer {
    margin-left: auto;
    margin-right: auto;
  }

  .left-rail {
    padding: 14px;
  }

  .rail-quicklinks {
    grid-template-columns: 1fr;
  }

  .theme-switcher {
    padding: 10px;
  }

  .theme-switcher-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .theme-btn {
    padding: 8px 6px;
    font-size: 11px;
  }
}
@media (max-width: 1366px) and (orientation: landscape) {
  .left-rail,
  .right-rail {
    position: static;
    width: auto;
    border: 1px solid var(--border);
    max-width: calc(100% - 32px);
    margin: 16px auto 0;
    padding: 16px;
  }

  .left-rail {
    border-right: 1px solid var(--border);
  }

  .right-rail {
    border-left: 1px solid var(--border);
  }

  .content-column {
    margin-left: 0;
    margin-right: 0;
  }

  .article,
  .site-footer,
  .left-rail,
  .right-rail {
    max-width: calc(100% - 32px);
  }

  .article {
    padding: 24px 20px 48px;
  }

  .left-rail {
    display: block;
  }

  .left-rail-utility {
    margin-top: 18px;
    padding-top: 14px;
  }
}
/* ===== Back to top (wiki style) ===== */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  min-width: 88px;
  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: var(--surface);
  color: var(--text);

  font: 600 12px/1.2 Arial, Helvetica, sans-serif;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition: all 0.2s ease;
}

/* megjelenés */
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* hover */
.back-to-top:hover {
  background: var(--surface-soft);
  border-color: var(--link);
}

/* arrow */
.back-to-top-arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--link);
}

/* text */
.back-to-top-text {
  font-size: 12px;
}

/* progress text */
.back-to-top-progress {
  font-size: 11px;
  color: var(--muted);
}

/* ===== PROGRESS BAR ===== */
.back-to-top::after {
  content: "";
  width: 100%;
  height: 3px;
  margin-top: 4px;
  background: var(--surface-soft-2);
  border-radius: 2px;
  overflow: hidden;
}

.back-to-top::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--scroll-progress, 0%);
  background: var(--link);
  border-radius: 2px;
  transition: width 0.15s linear;
}

/* dark mode finomhangolás */
:root[data-theme="dark"] .back-to-top {
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.back-to-top:hover {
  background: var(--surface-soft);
  border-color: var(--link);
  transform: translateY(-2px);
}
/* ===== Rail quick links (wiki style external links) ===== */

.rail-quicklinks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
}

.rail-quicklinks a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;

  color: var(--link);
  text-decoration: none;

  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.rail-quicklinks a:hover {
  background: var(--surface-soft);
  text-decoration: underline;
}

/* ikon */
.rail-quicklinks .icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.rail-quicklinks svg {
  width: 16px;
  height: 16px;
}

/* hover ikon szín */
.rail-quicklinks a:hover .icon {
  color: var(--link);
}
.rail-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 4px;
}
.toc {
  display: table;
  min-width: 320px;
  margin: 18px 0 24px;
  padding: 12px 16px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 14px;
  line-height: 1.55;
}

.toc-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #202122;
}

.toc ul {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 4px 0;
}

.toc a {
  color: #3366cc;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .toc {
    display: block;
    min-width: 0;
    width: 100%;
  }
}
[data-theme="dark"] .toc {
  border: 1px solid #3a3f45;
  background: #161a20;
  color: #e6e6e6;
}

[data-theme="dark"] .toc-title {
  color: #d0d4d9;
}

[data-theme="dark"] .toc a {
  color: #6ea8ff;
}

[data-theme="dark"] .toc a:hover {
  color: #9ec5ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toc {
    border: 1px solid #3a3f45;
    background: #161a20;
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .toc-title {
    color: #d0d4d9;
  }

  :root:not([data-theme="light"]) .toc a {
    color: #6ea8ff;
  }

  :root:not([data-theme="light"]) .toc a:hover {
    color: #9ec5ff;
  }
}
[data-theme="dark"] .toc {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}
/* ===== Wikipedia-style automatic TOC ===== */

.toc {
  display: table;
  min-width: 320px;
  max-width: 460px;
  margin: 18px 0 24px;
  padding: 12px 16px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 14px;
  line-height: 1.55;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: #202122;
}

.toc-toggle {
  border: 0;
  background: transparent;
  color: #3366cc;
  font: 400 12px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
  padding: 0;
}

.toc-toggle:hover {
  text-decoration: underline;
}

.toc-list,
.toc-list ol {
  margin: 0;
  padding-left: 22px;
}

.toc-list > li + li,
.toc-list ol > li + li {
  margin-top: 4px;
}

.toc-list li {
  color: #202122;
}

.toc-list a {
  color: #3366cc;
  text-decoration: none;
}

.toc-list a:hover {
  text-decoration: underline;
}

.toc-list a.active {
  font-weight: 700;
  text-decoration: underline;
}

.toc-list.is-collapsed {
  display: none;
}

/* H3 al-szint */
.toc-list ol {
  margin-top: 4px;
}

.toc-list ol li {
  font-size: 13px;
}

/* ===== Dark theme ===== */

[data-theme="dark"] .toc {
  border: 1px solid #3a3f45;
  background: #161a20;
  color: #e6e6e6;
}

[data-theme="dark"] .toc-title {
  color: #d0d4d9;
}

[data-theme="dark"] .toc-toggle {
  color: #6ea8ff;
}

[data-theme="dark"] .toc-list li {
  color: #e6e6e6;
}

[data-theme="dark"] .toc-list a {
  color: #6ea8ff;
}

[data-theme="dark"] .toc-list a:hover {
  color: #9ec5ff;
}

[data-theme="dark"] .toc-list a.active {
  color: #9ec5ff;
}

/* ===== Auto dark ===== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toc {
    border: 1px solid #3a3f45;
    background: #161a20;
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .toc-title {
    color: #d0d4d9;
  }

  :root:not([data-theme="light"]) .toc-toggle {
    color: #6ea8ff;
  }

  :root:not([data-theme="light"]) .toc-list li {
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .toc-list a {
    color: #6ea8ff;
  }

  :root:not([data-theme="light"]) .toc-list a:hover {
    color: #9ec5ff;
  }

  :root:not([data-theme="light"]) .toc-list a.active {
    color: #9ec5ff;
  }
}

/* ===== Mobile / tablet ===== */

@media (max-width: 980px) {
  .toc {
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
.machine-only {
  display: none;
}
/* ========== Footer / machine-friendly wiki footer ========== */
.site-footer {
  max-width: var(--content-max);
  margin: 18px auto 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 28px 22px;
}

.footer-brand {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand-title {
  margin: 0 0 12px;
  font: 400 28px/1.2 Georgia, "Times New Roman", serif;
  color: var(--heading, var(--text));
}

.footer-brand-desc,
.footer-brand-trust,
.footer-brand p {
  margin: 0 0 10px;
}

.footer-freshness {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-block h3 {
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 20px;
  font-weight: 400;
  color: var(--heading, var(--text));
}

.footer-links {
  margin: 0;
  padding-left: 18px;
}

.footer-links li {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer-contact {
  font-style: normal;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 720px; /* ne legyen túl széles sor */
}
/* ========== Footer ========== */
.site-footer {
  max-width: var(--content-max);
  margin: 18px auto 28px;
  padding: 24px 28px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.footer-brand {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand-title {
  margin: 0 0 12px;
  font: 400 28px/1.2 Georgia, "Times New Roman", serif;
  color: var(--heading, var(--text));
}

.footer-brand-desc,
.footer-brand-trust,
.footer-brand p {
  margin: 0 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

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

.footer-block h3 {
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  font: 400 20px/1.2 Georgia, "Times New Roman", serif;
  color: var(--heading, var(--text));
}

.footer-links {
  margin: 0;
  padding-left: 18px;
}

.footer-links li {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer-links a {
  color: var(--link);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.footer-copy {
  margin: 0;
  max-width: 760px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== Tablet ========== */
@media (max-width: 980px) {
  .site-footer {
    padding: 20px 20px 18px;
  }

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

  .footer-brand-title {
    font-size: 24px;
  }

  .footer-block h3 {
    font-size: 18px;
  }
}

/* ========== Mobile ========== */
@media (max-width: 640px) {
  .site-footer {
    padding: 18px 16px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .footer-brand-title {
    font-size: 22px;
  }

  .footer-block h3 {
    font-size: 17px;
  }

  .footer-links {
    padding-left: 18px;
  }

  .footer-links li {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .footer-copy {
    font-size: 12px;
  }
}
.rail-title {
  margin: 0 0 8px;
  padding-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #3366cc;
  border-bottom: 1px solid #eaecf0;
}
.rail-section-title {
  font-weight: 700;
}
.rail-section-title {
  font-weight: 800;
  color: var(--heading, #000000);
}

.rail-section-title strong {
  font-weight: 900;
}
.rail-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--heading, #000000);
  line-height: 1.3;
}
/* ========== Services section / Wikipedia-style / LLM-first ========== */

.services-section {
  margin: 0 0 40px;
}

.services-section .content-inner {
  width: 100%;
}

.services-section .content-header {
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.18;
  color: var(--heading, var(--text));
  letter-spacing: -0.01em;
}

.services-lead {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.services-summary {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
}

.text-muted {
  color: var(--muted);
}

.services-list {
  display: grid;
  gap: 28px;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.service-media {
  width: 100%;
  max-width: 280px;
}

/* Wikipedia-szerű thumbnail */
.wiki-thumb {
  margin: 0;
  padding: 3px;
  border: 1px solid #c8ccd1;
  background: #f8f9fa;
}

.wiki-thumb-inner {
  background: #ffffff;
  border: 1px solid #c8ccd1;
  padding: 6px;
}

.wiki-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ffffff;
}

.wiki-thumb-caption {
  margin-top: 6px;
  padding: 0 2px 2px;
  font-size: 14px;
  line-height: 1.45;
  color: #202122;
  text-align: left;
}

.service-body {
  min-width: 0;
}

.service-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading, var(--text));
}

.service-description {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

.service-actions {
  margin-top: 14px;
}

.services-meta-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.services-meta-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading, var(--text));
}

.services-meta-block ul {
  margin: 0;
  padding-left: 20px;
}

.services-meta-block li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* opcionális, ha még nincs gombstílus */
.button.small {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.button.small:hover {
  background: var(--surface-soft-2);
  text-decoration: underline;
}

@media (max-width: 980px) {
  .section-title {
    font-size: 27px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-media {
    max-width: 320px;
  }

  .service-title {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 24px;
  }

  .services-lead {
    font-size: 17px;
  }

  .services-summary,
  .service-description {
    font-size: 15px;
  }

  .service-title {
    font-size: 20px;
  }

  .service-media {
    max-width: 100%;
  }

  .wiki-thumb-caption {
    font-size: 13px;
  }
}
/* ===== Wikipedia thumb alap ===== */
:root {
  --wiki-thumb-bg: #f8f9fa;
  --wiki-thumb-border: #c8ccd1;
  --wiki-thumb-inner-bg: #ffffff;
  --wiki-thumb-caption: #202122;
  --wiki-thumb-image-bg: #ffffff;
}

.wiki-thumb {
  margin: 0;
  padding: 3px;
  border: 1px solid var(--wiki-thumb-border);
  background: var(--wiki-thumb-bg);
}

.wiki-thumb-inner {
  background: var(--wiki-thumb-inner-bg);
  border: 1px solid var(--wiki-thumb-border);
  padding: 6px;
}

.wiki-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--wiki-thumb-image-bg);
}

.wiki-thumb-caption {
  margin-top: 6px;
  padding: 0 2px 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wiki-thumb-caption);
  text-align: left;
}

/* ===== Kézi dark mód ===== */
:root[data-theme="dark"] {
  --wiki-thumb-bg: #1f2328;
  --wiki-thumb-border: #4a4f57;
  --wiki-thumb-inner-bg: #161b22;
  --wiki-thumb-caption: #e6e6e6;
  --wiki-thumb-image-bg: #161b22;
}

/* ===== Auto dark mód ===== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wiki-thumb-bg: #1f2328;
    --wiki-thumb-border: #4a4f57;
    --wiki-thumb-inner-bg: #161b22;
    --wiki-thumb-caption: #e6e6e6;
    --wiki-thumb-image-bg: #161b22;
  }
}
/* ========== Products section / Wikipedia-style / LLM-first ========== */

.products-section {
  margin: 0 0 40px;
}

.products-section .content-inner {
  width: 100%;
}

.products-section .content-header {
  margin-bottom: 18px;
}

.products-lead {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.products-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

.products-disclaimer {
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  font-size: 15px;
  line-height: 1.65;
}

.products-meta-block {
  margin: 0 0 18px;
  padding-top: 10px;
}

.products-meta-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading, var(--text));
}

.products-meta-block p {
  margin: 0 0 10px;
}

.products-meta-block ul {
  margin: 0;
  padding-left: 20px;
}

.products-meta-block li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.products-list {
  display: grid;
  gap: 30px;
  margin-top: 24px;
}

.product-item {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}

.product-item.is-reverse .product-media {
  order: 2;
}

.product-item.is-reverse .product-body {
  order: 1;
}

.product-media {
  width: 100%;
  max-width: 420px;
}

.product-body {
  min-width: 0;
}

.product-head {
  margin-bottom: 12px;
}

.product-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading, var(--text));
}

.product-chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--link);
  font-size: 13px;
  line-height: 1.3;
}

.product-description {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

.product-points {
  margin: 0 0 14px;
  padding-left: 20px;
}

.product-points li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.products-note {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Wikipedia thumb reuse ===== */
.product-media.wiki-thumb {
  margin: 0;
}

.product-media .wiki-thumb-inner {
  padding: 6px;
}

.product-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .product-item {
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 22px;
  }

  .product-media {
    max-width: 360px;
  }

  .product-title {
    font-size: 25px;
  }
}

@media (max-width: 900px) {
  .product-item,
  .product-item.is-reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-item.is-reverse .product-media,
  .product-item.is-reverse .product-body {
    order: initial;
  }

  .product-media {
    max-width: 460px;
  }

  .product-title {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .products-lead {
    font-size: 17px;
  }

  .products-summary,
  .product-description,
  .products-note {
    font-size: 15px;
  }

  .products-disclaimer {
    font-size: 14px;
  }

  .product-title {
    font-size: 21px;
  }

  .product-media {
    max-width: 100%;
  }
}
/* ========== About section / Wikipedia-style / LLM-first ========== */

.about-section {
  margin: 0 0 40px;
}

.about-lead {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.about-summary {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.about-left,
.about-right {
  min-width: 0;
}

.about-card {
  margin: 0 0 20px;
}

.about-infobox {
  border: 1px solid var(--border);
  background: #f8f1c4;
  padding: 12px;
}
:root[data-theme="dark"] .about-infobox {
  background: #4d4320;
  border-color: #4a4f57;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .about-infobox {
    background: #4d4320;
    border-color: #4a4f57;
  }
}
.about-infobox {
  border: 1px solid var(--border);
  background: #f8f1c4;
  padding: 12px;
}

.about-meta-row {
  border-top: 1px solid #d8cf9e;
}
.about-photo,
.about-poster-figure {
  margin: 0 0 12px;
}

.about-head {
  margin-bottom: 12px;
}

.about-name {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading, var(--text));
}

.about-role {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.about-meta {
  margin: 0;
}

.about-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border-soft);
}

.about-meta-row:first-child {
  border-top: 1px solid var(--border-soft);
}

.about-meta dt {
  margin: 0;
  font-weight: 700;
  color: var(--link);
}

.about-meta dd {
  margin: 0;
  line-height: 1.55;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.about-btn:hover {
  background: var(--surface-soft-2);
  text-decoration: underline;
}

.about-btn--ghost {
  background: var(--surface-soft);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.3;
}

.about-poster {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 12px;
}

.about-poster-head {
  margin-bottom: 10px;
}

.about-subtitle {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading, var(--text));
}

.about-note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.about-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.about-h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--heading, var(--text));
}

.about-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

.about-list,
.about-steps {
  margin: 0;
  padding-left: 22px;
}

.about-list li,
.about-steps li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* reuse existing wiki-thumb */
.about-section .wiki-thumb {
  margin: 0;
}

.about-section .wiki-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 22px;
  }

  .about-name {
    font-size: 23px;
  }

  .about-h3 {
    font-size: 25px;
  }
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-infobox,
  .about-poster {
    max-width: 460px;
  }

  .about-h3 {
    font-size: 23px;
  }

  .about-name {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .about-lead {
    font-size: 17px;
  }

  .about-summary,
  .about-text {
    font-size: 15px;
  }

  .about-h3 {
    font-size: 21px;
  }

  .about-name {
    font-size: 20px;
  }

  .about-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-infobox,
  .about-poster {
    max-width: 100%;
  }
}
/* ========== Controlled Vocabulary / brutal Wikipedia glossary ========== */

.vocabulary-box {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.vocabulary-header {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: #eaecf0;
  color: #202122;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vocabulary-intro {
  margin: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, var(--surface-soft), var(--surface));
  font-size: 15px;
  line-height: 1.7;
}

.vocabulary-list {
  margin: 0;
  padding: 0;
}

.vocabulary-item {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border-soft);
}

.vocabulary-item:first-of-type {
  border-top: 0;
}

.vocabulary-term {
  display: block;
  margin: 0 0 4px;
  color: var(--heading, var(--text));
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.vocabulary-term strong {
  color: inherit;
  font-weight: inherit;
}

.vocabulary-definition {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.65;
}

.vocabulary-note {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.65;
}

.vocabulary-item:hover {
  background: rgba(0, 0, 0, 0.018);
}

/* dark mode */
:root[data-theme="dark"] .vocabulary-header {
  background: #232a32;
  color: #e6e6e6;
}

:root[data-theme="dark"] .vocabulary-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vocabulary-header {
    background: #232a32;
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .vocabulary-item:hover {
    background: rgba(255, 255, 255, 0.035);
  }
}

/* mobile */
@media (max-width: 640px) {
  .vocabulary-header,
  .vocabulary-intro,
  .vocabulary-item,
  .vocabulary-note {
    padding-left: 12px;
    padding-right: 12px;
  }

  .vocabulary-term {
    font-size: 17px;
  }

  .vocabulary-definition {
    font-size: 14px;
  }
}
/* ===== FAQ / AEO blokk ===== */

.faq-box {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.faq-intro {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

/* item */
.faq-item {
  border-top: 1px solid var(--border-soft);
}

.faq-item:first-of-type {
  border-top: 0;
}

/* question */
.faq-question {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}

/* arrow eltüntetés + saját */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-weight: 400;
}

/* open state */
.faq-item[open] .faq-question::after {
  content: "−";
}

/* answer */
.faq-answer {
  padding: 0 14px 12px;
  font-size: 15px;
  line-height: 1.65;
}

/* hover */
.faq-item:hover {
  background: rgba(0,0,0,0.02);
}

/* dark */
:root[data-theme="dark"] .faq-item:hover {
  background: rgba(255,255,255,0.04);
}
/* ===== FAQ more link ===== */

.faq-more {
  text-align: center;
  margin-top: 16px;
}

.faq-more-link {
  display: inline-block;
  font-size: 14px;
  color: var(--link, #3366cc);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.faq-more-link:hover {
  border-bottom-color: currentColor;
  text-decoration: none;
}
/* ===== Question map + snippets ===== */

.question-map-list,
.snippet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.question-map-list li {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
}

.question-map-list li:first-child {
  border-top: 0;
}

.question-map-list strong {
  display: block;
  font-weight: 600;
}

.snippet-list li {
  padding: 8px 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}

.snippet-list li:first-child {
  border-top: 0;
}
.wiki-decision-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.wiki-check-list {
  margin-top: 12px;
}

.wiki-check-list li {
  margin-bottom: 8px;
}
#llm-target-audience-wrap .wiki-list li {
  margin-bottom: 7px;
}
.wiki-factors-box {
  background: var(--surface-soft);
}

.wiki-factors-box .wiki-list li {
  margin-bottom: 9px;
}
#llm-operational-status-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

#llm-operational-status-table th,
#llm-operational-status-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}

#llm-operational-status-table th {
  background: var(--surface-soft);
  text-align: left;
}
#llm-next-step-wrap {
  background: var(--surface-soft);
}
/* ===== TABLE MOBILE FIX ===== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#llm-operational-status-table {
  width: 100%;
  min-width: 520px; /* megakadályozza az összenyomódást */
  border-collapse: collapse;
}

/* cellák */
#llm-operational-status-table th,
#llm-operational-status-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
  word-break: break-word;
}
#llm-closure-frame-wrap {
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

#llm-closure-frame-wrap p:last-child {
  margin-bottom: 0;
}
.llm-closure-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

#llm-closure-disclosure {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

#llm-closure-disclosure summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.llm-closure-body {
  padding: 0 16px 16px;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  padding: 12px 16px;
  background: #ffffff;
  color: #111111;
  border: 2px solid currentColor;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
}
a,
button,
summary,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.18);
  border-radius: 8px;
}
html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.back-to-top {
  min-width: 44px;
  min-height: 44px;
}
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  padding: 12px 16px;
  background: #ffffff;
  color: #111111;
  border: 2px solid currentColor;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
}

a,
button,
summary,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.18);
  border-radius: 8px;
}

.faq-question {
  cursor: pointer;
}

.faq-question:focus-visible,
.toc-toggle:focus-visible,
.theme-btn:focus-visible,
.about-btn:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
  border-radius: 8px;
}

.back-to-top {
  min-width: 44px;
  min-height: 44px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 12px 16px;
  background: #ffffff;
  color: #111111;
  border: 2px solid currentColor;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;

  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* ========== Top header navigation ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.main-nav {
  width: 100%;
}

.main-nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  min-height: var(--topbar-height);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.nav-logo {
  flex: 0 0 auto;
}

.nav-logo a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font: 700 18px/1.1 Arial, Helvetica, sans-serif;
}

.nav-logo a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.nav-menu a:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

/* hamburger gomb desktopon rejtve */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle:hover {
  background: var(--surface-soft);
}

.nav-toggle:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* desktop: a fix header alatt induljanak a rail-ek */
body {
  padding-top: var(--topbar-height);
}

.left-rail,
.right-rail {
  top: var(--topbar-height);
}

.content-column {
  min-height: calc(100vh - var(--topbar-height));
}

.article {
  min-height: calc(100vh - var(--topbar-height));
}

/* ===== Tablet + mobile ===== */
@media (max-width: 1180px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .main-nav-inner {
    min-height: var(--topbar-height);
    padding: 8px 12px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 12px 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 10px;
    border-radius: 4px;
  }

  body {
    padding-top: 0;
  }

  .left-rail,
  .right-rail {
    top: auto;
  }

  .content-column,
  .article {
    min-height: auto;
  }
}

/* ===== Small mobile ===== */
@media (max-width: 640px) {
  .main-nav-inner {
    padding: 8px 10px;
  }

  .nav-logo a {
    font-size: 16px;
  }
}
/* ===== Dropdown FIX ===== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  padding: 6px 0;
  margin: 0;
  list-style: none; /* 🔥 EZ SZEDI KI A PÖTTYÖKET */
}

.nav-dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font: 600 14px/1.3 Arial, Helvetica, sans-serif;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-soft);
}

/* open state */
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 12px;
  margin-left: 6px;
}
.about-infobox .about-name {
  margin-top: 16px;
}
#section-termekek {
  margin-bottom: 40px !important;
}
/* Wikipedia blue/red patch without changing HTML structure */

strong {
  color: var(--text);
  font-weight: 700;
}

strong.strong-blue {
  color: #3366cc;
}

strong.strong-red {
  color: #ba0000;
}

/* Wikipedia-like blue keyword layer */
.vocabulary-term,
.vocabulary-term strong,
.products-meta-title,
.product-title,
.product-chip,
.product-points li,
.product-tags .product-tag,
.about-name,
.about-role,
.about-h3,
.about-subtitle,
.about-meta dt,
.about-tags .about-tag,
.faq-question,
.toc-title,
.toc-list a,
.panel-list dt,
.rail-title,
.rail-section-title,
.wiki-thumb-caption a,
.left-nav a,
.footer-block h3,
.footer-links a {
  color: #3366cc;
}

/* Blue keywords inside products / about / glossary */
.products-summary,
.products-meta-block p,
.products-meta-block li,
.product-description strong,
.about-summary,
.about-list strong,
.about-steps strong,
.vocabulary-header,
.question-map-list strong {
  color: #3366cc;
}

/* Red warning / constraint layer */
.products-disclaimer,
.products-disclaimer strong,
[data-ai-layer="exclusion"],
[data-ai-layer="exclusion"] strong,
.faq-answer strong.strong-red,
.wiki-note.strong-red {
  color: #ba0000;
}

/* More Wikipedia feeling */
.toc,
.vocabulary-box,
.faq-box,
.knowledge-panel,
.about-infobox,
.about-poster,
.products-meta-block,
.wiki-box {
  border-radius: 0;
}

.toc,
.vocabulary-box,
.faq-box,
.products-meta-block,
.wiki-box,
.about-infobox,
.about-poster,
.knowledge-panel {
  box-shadow: none;
}

.panel-title,
.vocabulary-header {
  background: #f8f1c4;
  color: #202122;
}

.product-chip,
.product-tag,
.about-tag,
.about-btn,
.button.small {
  border-radius: 2px;
}

.toc-list a:hover,
.faq-question:hover,
.products-meta-title:hover,
.product-title:hover,
.about-h3:hover,
.about-name:hover,
.vocabulary-term:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

:root[data-theme="dark"] strong.strong-blue,
:root[data-theme="dark"] .vocabulary-term,
:root[data-theme="dark"] .vocabulary-term strong,
:root[data-theme="dark"] .products-meta-title,
:root[data-theme="dark"] .product-title,
:root[data-theme="dark"] .product-chip,
:root[data-theme="dark"] .product-points li,
:root[data-theme="dark"] .product-tags .product-tag,
:root[data-theme="dark"] .about-name,
:root[data-theme="dark"] .about-role,
:root[data-theme="dark"] .about-h3,
:root[data-theme="dark"] .about-subtitle,
:root[data-theme="dark"] .about-meta dt,
:root[data-theme="dark"] .about-tags .about-tag,
:root[data-theme="dark"] .faq-question,
:root[data-theme="dark"] .toc-title,
:root[data-theme="dark"] .toc-list a,
:root[data-theme="dark"] .panel-list dt,
:root[data-theme="dark"] .rail-title,
:root[data-theme="dark"] .rail-section-title,
:root[data-theme="dark"] .left-nav a,
:root[data-theme="dark"] .footer-links a,
:root[data-theme="dark"] .products-summary,
:root[data-theme="dark"] .products-meta-block p,
:root[data-theme="dark"] .products-meta-block li,
:root[data-theme="dark"] .product-description strong,
:root[data-theme="dark"] .about-summary,
:root[data-theme="dark"] .about-list strong,
:root[data-theme="dark"] .about-steps strong,
:root[data-theme="dark"] .question-map-list strong {
  color: #8ab4ff;
}

:root[data-theme="dark"] strong.strong-red,
:root[data-theme="dark"] .products-disclaimer,
:root[data-theme="dark"] .products-disclaimer strong,
:root[data-theme="dark"] [data-ai-layer="exclusion"],
:root[data-theme="dark"] [data-ai-layer="exclusion"] strong {
  color: #ff7b7b;
}

:root[data-theme="dark"] .panel-title,
:root[data-theme="dark"] .vocabulary-header {
  background: #4d4320;
  color: #f0f3f7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) strong.strong-blue,
  :root:not([data-theme="light"]) .vocabulary-term,
  :root:not([data-theme="light"]) .vocabulary-term strong,
  :root:not([data-theme="light"]) .products-meta-title,
  :root:not([data-theme="light"]) .product-title,
  :root:not([data-theme="light"]) .product-chip,
  :root:not([data-theme="light"]) .product-points li,
  :root:not([data-theme="light"]) .product-tags .product-tag,
  :root:not([data-theme="light"]) .about-name,
  :root:not([data-theme="light"]) .about-role,
  :root:not([data-theme="light"]) .about-h3,
  :root:not([data-theme="light"]) .about-subtitle,
  :root:not([data-theme="light"]) .about-meta dt,
  :root:not([data-theme="light"]) .about-tags .about-tag,
  :root:not([data-theme="light"]) .faq-question,
  :root:not([data-theme="light"]) .toc-title,
  :root:not([data-theme="light"]) .toc-list a,
  :root:not([data-theme="light"]) .panel-list dt,
  :root:not([data-theme="light"]) .rail-title,
  :root:not([data-theme="light"]) .rail-section-title,
  :root:not([data-theme="light"]) .left-nav a,
  :root:not([data-theme="light"]) .footer-links a,
  :root:not([data-theme="light"]) .products-summary,
  :root:not([data-theme="light"]) .products-meta-block p,
  :root:not([data-theme="light"]) .products-meta-block li,
  :root:not([data-theme="light"]) .product-description strong,
  :root:not([data-theme="light"]) .about-summary,
  :root:not([data-theme="light"]) .about-list strong,
  :root:not([data-theme="light"]) .about-steps strong,
  :root:not([data-theme="light"]) .question-map-list strong {
    color: #8ab4ff;
  }

  :root:not([data-theme="light"]) strong.strong-red,
  :root:not([data-theme="light"]) .products-disclaimer,
  :root:not([data-theme="light"]) .products-disclaimer strong,
  :root:not([data-theme="light"]) [data-ai-layer="exclusion"],
  :root:not([data-theme="light"]) [data-ai-layer="exclusion"] strong {
    color: #ff7b7b;
  }

  :root:not([data-theme="light"]) .panel-title,
  :root:not([data-theme="light"]) .vocabulary-header {
    background: #4d4320;
    color: #f0f3f7;
  }
}
/* ========== Wiki link portal ========== */

.wiki-link-portal {
  width: 100%;
  max-width: var(--content-max);
  margin: 36px auto 24px;
  box-sizing: border-box;
}

.wiki-link-portal-list {
  display: grid;
  gap: 3px;
  margin: 0 0 12px;
  width: 100%;
}

.wiki-link-row {
  display: grid;
  grid-template-columns: 72px 1fr 88px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #a2a9b1;
  background: #c8c6f0;
  color: #202122 !important;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.wiki-link-row:hover {
  background: #bdbbe9;
  color: #202122 !important;
  text-decoration: none;
}

.wiki-link-row:visited {
  color: #202122 !important;
}

.wiki-link-row-meta {
  font-size: 10px;
  font-weight: 700;
  color: #3366cc;
  line-height: 1;
  white-space: nowrap;
}

.wiki-link-row-title {
  display: block;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #202122 !important;
}

.wiki-link-row-action {
  text-align: right;
  font-size: 14px;
  line-height: 1;
  color: #3366cc !important;
  white-space: nowrap;
}

.wiki-link-portal-caption {
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1px solid #a2a9b1;
  background: #dfe4f6;
  font-size: 14px;
  color: #202122;
  width: 100%;
  box-sizing: border-box;
}

.wiki-link-portal-caption strong {
  color: #202122 !important;
}

.wiki-link-portal-cats {
  padding: 9px 10px;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
  width: 100%;
  box-sizing: border-box;
}

.wiki-link-portal-cats-label {
  font-weight: 700;
  color: #3366cc;
}

.wiki-link-portal-cats a {
  color: #3366cc !important;
  text-decoration: none;
}

.wiki-link-portal-cats a:hover {
  text-decoration: underline;
}

.wiki-link-portal-cats span {
  color: #54595d;
}

/* ===== DARK ===== */

:root[data-theme="dark"] .wiki-link-row {
  border-color: #4a4f57;
  background: #2b3150;
  color: #e6e6e6 !important;
}

:root[data-theme="dark"] .wiki-link-row:hover {
  background: #343b60;
  color: #e6e6e6 !important;
}

:root[data-theme="dark"] .wiki-link-row:visited {
  color: #e6e6e6 !important;
}

:root[data-theme="dark"] .wiki-link-row-title {
  color: #e6e6e6 !important;
}

:root[data-theme="dark"] .wiki-link-row-meta,
:root[data-theme="dark"] .wiki-link-row-action,
:root[data-theme="dark"] .wiki-link-portal-cats-label,
:root[data-theme="dark"] .wiki-link-portal-cats a {
  color: #8ab4ff !important;
}

:root[data-theme="dark"] .wiki-link-portal-caption {
  border-color: #4a4f57;
  background: #232a32;
  color: #e6e6e6;
}

:root[data-theme="dark"] .wiki-link-portal-caption strong {
  color: #e6e6e6 !important;
}

:root[data-theme="dark"] .wiki-link-portal-cats {
  border-color: #4a4f57;
  background: #1a1f25;
  color: #e6e6e6;
}

:root[data-theme="dark"] .wiki-link-portal-cats span {
  color: #a7b0ba;
}

/* ===== AUTO DARK ===== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wiki-link-row {
    border-color: #4a4f57;
    background: #2b3150;
    color: #e6e6e6 !important;
  }

  :root:not([data-theme="light"]) .wiki-link-row:hover {
    background: #343b60;
    color: #e6e6e6 !important;
  }

  :root:not([data-theme="light"]) .wiki-link-row:visited {
    color: #e6e6e6 !important;
  }

  :root:not([data-theme="light"]) .wiki-link-row-title {
    color: #e6e6e6 !important;
  }

  :root:not([data-theme="light"]) .wiki-link-row-meta,
  :root:not([data-theme="light"]) .wiki-link-row-action,
  :root:not([data-theme="light"]) .wiki-link-portal-cats-label,
  :root:not([data-theme="light"]) .wiki-link-portal-cats a {
    color: #8ab4ff !important;
  }

  :root:not([data-theme="light"]) .wiki-link-portal-caption {
    border-color: #4a4f57;
    background: #232a32;
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .wiki-link-portal-caption strong {
    color: #e6e6e6 !important;
  }

  :root:not([data-theme="light"]) .wiki-link-portal-cats {
    border-color: #4a4f57;
    background: #1a1f25;
    color: #e6e6e6;
  }

  :root:not([data-theme="light"]) .wiki-link-portal-cats span {
    color: #a7b0ba;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
  .wiki-link-row {
    grid-template-columns: 52px 1fr 64px;
    gap: 8px;
    padding: 0 8px;
  }

  .wiki-link-row-title {
    font-size: 17px;
    text-align: left;
  }

  .wiki-link-row-action {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .wiki-link-row {
    grid-template-columns: 1fr auto;
    padding: 9px 10px;
  }

  .wiki-link-row-meta {
    display: none;
  }

  .wiki-link-row-title {
    font-size: 15px;
    text-align: left;
  }

  .wiki-link-row-action {
    font-size: 13px;
  }

  .wiki-link-portal-caption,
  .wiki-link-portal-cats {
    font-size: 13px;
  }
}
@media (max-width: 1366px) {
  .wiki-link-portal {
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .wiki-link-portal {
    max-width: calc(100% - 20px);
  }
}
/* ===== PSI accessibility fix: link felismerhetőség ===== */

a {
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* apró, halvány linkek erősítése */
.wiki-link-row-meta,
.wiki-link-row-action,
.footer-copy a,
.footer-links a,
.wiki-link-portal-cats a,
.left-nav a,
.rail-quicklinks a,
.about-btn,
.button.small {
  color: #1a4fb4 !important;
}

/* ezeknél mindig legyen vizuális linkjel */
.wiki-link-row-action,
.footer-copy a,
.wiki-link-portal-cats a {
  text-decoration: underline;
}

/* hover / focus még egyértelműbb */
.wiki-link-row-action:hover,
.wiki-link-row-action:focus-visible,
.footer-copy a:hover,
.footer-copy a:focus-visible,
.wiki-link-portal-cats a:hover,
.wiki-link-portal-cats a:focus-visible {
  color: #003c99 !important;
  text-decoration-thickness: 2px;
}
:root[data-theme="dark"] .wiki-link-row-meta,
:root[data-theme="dark"] .wiki-link-row-action,
:root[data-theme="dark"] .footer-copy a,
:root[data-theme="dark"] .footer-links a,
:root[data-theme="dark"] .wiki-link-portal-cats a,
:root[data-theme="dark"] .left-nav a,
:root[data-theme="dark"] .rail-quicklinks a,
:root[data-theme="dark"] .about-btn,
:root[data-theme="dark"] .button.small {
  color: #8ab4ff !important;
}

:root[data-theme="dark"] .wiki-link-row-action:hover,
:root[data-theme="dark"] .wiki-link-row-action:focus-visible,
:root[data-theme="dark"] .footer-copy a:hover,
:root[data-theme="dark"] .footer-copy a:focus-visible,
:root[data-theme="dark"] .wiki-link-portal-cats a:hover,
:root[data-theme="dark"] .wiki-link-portal-cats a:focus-visible {
  color: #b7d0ff !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wiki-link-row-meta,
  :root:not([data-theme="light"]) .wiki-link-row-action,
  :root:not([data-theme="light"]) .footer-copy a,
  :root:not([data-theme="light"]) .footer-links a,
  :root:not([data-theme="light"]) .wiki-link-portal-cats a,
  :root:not([data-theme="light"]) .left-nav a,
  :root:not([data-theme="light"]) .rail-quicklinks a,
  :root:not([data-theme="light"]) .about-btn,
  :root:not([data-theme="light"]) .button.small {
    color: #8ab4ff !important;
  }

  :root:not([data-theme="light"]) .wiki-link-row-action:hover,
  :root:not([data-theme="light"]) .wiki-link-row-action:focus-visible,
  :root:not([data-theme="light"]) .footer-copy a:hover,
  :root:not([data-theme="light"]) .footer-copy a:focus-visible,
  :root:not([data-theme="light"]) .wiki-link-portal-cats a:hover,
  :root:not([data-theme="light"]) .wiki-link-portal-cats a:focus-visible {
    color: #b7d0ff !important;
  }
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel-list dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.panel-list dd a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.panel-list div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 480px) {
  .panel-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .panel-list dt {
    margin-bottom: 2px;
  }
}
.panel-media-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* kép illesztés */
.panel-media-box img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* LOGÓHOZ EZ KELL */
}
.product-actions {
  margin-top: 14px;
}

.product-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 2px;
}

.product-btn:hover {
  background: var(--surface-soft-2);
  color: var(--link-hover);
  text-decoration: none;
}
.products-list {
  display: grid;
  gap: 32px;
}

.product-item {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.product-body {
  min-width: 0;
}

.product-actions {
  margin-top: 14px;
}

.product-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 2px;
}

.product-btn:hover {
  background: var(--surface-soft-2);
  color: var(--link-hover);
  text-decoration: none;
}

.product-list,
.product-points,
.product-details {
  margin: 12px 0 0;
  padding-left: 20px;
}

@media (max-width: 900px) {
  .product-item {
    grid-template-columns: 1fr;
  }
}
.services-section .services-lead {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.7;
}

.services-section .services-summary {
  margin: 0 0 22px;
  font-size: 15px;
}

.services-wiki-block {
  margin: 0 0 28px;
}

.services-h3 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 20px;
}

.services-wiki-block p {
  margin: 0 0 14px;
}

.services-definition-list {
  margin: 0;
}

.services-definition-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}

.services-definition-row:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.services-definition-row dt {
  font-weight: 700;
  color: var(--heading);
}

.services-definition-row dd {
  margin: 0;
  min-width: 0;
}

.services-list {
  margin: 0;
  padding-left: 20px;
}

.services-list li + li {
  margin-top: 6px;
}

@media (max-width: 760px) {
  .services-definition-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
/* ===== SECTION SPACING ===== */

.services-meta-block,
#llm-services-flat {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ===== TITLE SPACING ===== */

.services-meta-title,
#llm-services-flat-title {
  margin-bottom: 16px;
}

/* ===== LIST BASE ===== */

.services-meta-block ul,
.wiki-list {
  margin: 0;
  padding-left: 20px;
}

/* ===== LIST ITEM SPACING ===== */

.services-meta-block li,
.wiki-list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* ===== WIKI BOX ===== */

.wiki-box {
  padding: 16px 20px;
  margin-top: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  color: var(--text);
}

/* ===== FONTOS TUDNI ===== */

#services-constraints {
  padding: 16px 20px;
  border: 1px solid var(--border-soft);
  border-left: 4px solid #b32424;
  background: var(--surface);
  color: var(--text);
}

#services-constraints .services-meta-title,
#services-constraints li,
#llm-services-flat-title,
#llm-services-flat .wiki-list li {
  color: var(--text);
}

/* ===== WIKI LIST BOX finomhangolás ===== */

#llm-services-flat .wiki-box {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  color: var(--text);
}

/* ===== strong színek maradjanak jól olvashatók ===== */

#services-constraints .strong-blue,
#llm-services-flat .strong-blue {
  color: var(--link);
}

#services-constraints .strong-red,
#llm-services-flat .strong-red {
  color: #d33;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .services-meta-block,
  #llm-services-flat {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .wiki-box,
  #services-constraints {
    padding: 14px 16px;
  }
}
/* ========== External Wikipedia inline reference bar ========== */

.wiki-link-portal-cats {
  margin: 12px 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

.wiki-link-portal-cats-label {
  color: var(--text);
  font-weight: 700;
}

.wiki-link-portal-cats a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 1px;
}

.wiki-link-portal-cats a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.wiki-link-portal-cats span {
  color: var(--muted);
}

.wiki-link-portal-cats .machine-only {
  display: none;
}

/* kézi dark theme */
:root[data-theme="dark"] .wiki-link-portal-cats {
  background: var(--surface-soft-2);
  border-color: var(--border);
  color: var(--text);
}

:root[data-theme="dark"] .wiki-link-portal-cats-label {
  color: var(--text);
}

:root[data-theme="dark"] .wiki-link-portal-cats span {
  color: var(--muted);
}

/* automatikus dark theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wiki-link-portal-cats {
    background: var(--surface-soft-2);
    border-color: var(--border);
    color: var(--text);
  }

  :root:not([data-theme="light"]) .wiki-link-portal-cats-label {
    color: var(--text);
  }

  :root:not([data-theme="light"]) .wiki-link-portal-cats span {
    color: var(--muted);
  }
}

/* mobil */
@media (max-width: 640px) {
  .wiki-link-portal-cats {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.65;
  }
}
/* =========================================================
   WIKIPEDIA-LIKE UI PACK
   MineriSalt / LLM-first / dark-mode-safe
   Tedd a style.css LEGALJÁRA
========================================================= */

/* =========================================================
   CUSTOM WIKI UI VARIABLES
========================================================= */

:root {
  --wiki-panel-bg: var(--surface-soft);
  --wiki-panel-bg-2: var(--surface-soft-2);
  --wiki-panel-border: var(--border);
  --wiki-panel-border-soft: var(--border-soft);

  --wiki-heading: var(--heading, var(--text));
  --wiki-text: var(--text);
  --wiki-muted: var(--muted);

  --wiki-link: var(--link);
  --wiki-link-hover: var(--link-hover);

  --wiki-portal-bg: #c8c6e8;
  --wiki-portal-border: #a2a9b1;
  --wiki-portal-meta: var(--link);
  --wiki-portal-title: #202122;
  --wiki-portal-link: var(--link);

  --wiki-thumb-bg: var(--surface-soft);
  --wiki-thumb-inner-bg: var(--surface);
  --wiki-thumb-border: var(--border-soft);
  --wiki-thumb-caption: var(--text);

  --wiki-strip-bg: var(--surface-soft-2);
  --wiki-strip-border: var(--border);
}

:root[data-theme="dark"] {
  --wiki-portal-bg: #2a2f4e;
  --wiki-portal-border: #4a4f57;
  --wiki-portal-meta: #8ab4ff;
  --wiki-portal-title: #f2f2f2;
  --wiki-portal-link: #8ab4ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wiki-portal-bg: #2a2f4e;
    --wiki-portal-border: #4a4f57;
    --wiki-portal-meta: #8ab4ff;
    --wiki-portal-title: #f2f2f2;
    --wiki-portal-link: #8ab4ff;
  }
}

/* =========================================================
   GENERIC WIKI TYPOGRAPHY HELPERS
========================================================= */

.text-muted {
  color: var(--wiki-muted);
}

.services-section,
.products-section,
.about-section {
  margin: 0 0 40px;
}

.services-section .content-inner,
.products-section .content-inner,
.about-section .content-inner {
  width: 100%;
}

.content-header {
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--wiki-heading);
}

.services-lead,
.products-lead,
.about-lead {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.7;
}

.services-summary,
.products-summary,
.about-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
}

/* =========================================================
   WIKIPEDIA THUMB / IMAGE BOX
========================================================= */

.wiki-thumb {
  margin: 0;
  padding: 3px;
  border: 1px solid var(--wiki-thumb-border);
  background: var(--wiki-thumb-bg);
}

.wiki-thumb-inner {
  padding: 6px;
  border: 1px solid var(--wiki-thumb-border);
  background: var(--wiki-thumb-inner-bg);
}

.wiki-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--wiki-thumb-inner-bg);
}

.wiki-thumb-caption {
  margin-top: 6px;
  padding: 0 2px 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--wiki-thumb-caption);
  text-align: left;
}

/* =========================================================
   TOPIC PORTAL ROWS (lila sávos nav blokkok)
========================================================= */

.topic-portal-list {
  margin: 18px 0 14px;
  padding: 0;
}

.topic-portal-item {
  display: grid;
  grid-template-columns: 150px 1fr 90px;
  align-items: center;
  gap: 12px;

  margin: 0 0 2px;
  padding: 0 10px;
  min-height: 42px;

  border: 1px solid var(--wiki-portal-border);
  background: var(--wiki-portal-bg);
}

.topic-portal-meta {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wiki-portal-meta);
}

.topic-portal-title {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wiki-portal-title);
}

.topic-portal-link {
  justify-self: end;
  font-size: 13px;
  color: var(--wiki-portal-link);
  text-decoration: none;
}

.topic-portal-link:hover {
  color: var(--wiki-link-hover);
  text-decoration: underline;
}

/* =========================================================
   WIKI UTILITY STRIP
========================================================= */

.wiki-utility-strip {
  margin: 10px 0 12px;
  padding: 6px 10px;
  border: 1px solid var(--wiki-strip-border);
  background: var(--wiki-strip-bg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--wiki-text);
}

.wiki-utility-strip strong {
  color: var(--wiki-text);
}

/* =========================================================
   EXTERNAL ENTITY / WIKIPEDIA REFERENCE BLOCK
========================================================= */

.wiki-entity-links {
  margin: 14px 0 20px;
  border: 1px solid var(--wiki-panel-border);
  background: var(--wiki-panel-bg);
  color: var(--wiki-text);
}

.wiki-entity-links-title {
  margin: 0;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
  background: color-mix(in srgb, var(--wiki-panel-bg-2) 88%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wiki-heading);
}

.wiki-entity-links .text-muted {
  margin: 0;
  padding: 10px 12px 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wiki-muted);
}

.wiki-entity-list {
  margin: 0;
  padding: 0 12px 12px 28px;
}

.wiki-entity-list li {
  margin: 0 0 6px;
  line-height: 1.65;
  color: var(--wiki-text);
}

.wiki-entity-links a {
  color: var(--wiki-link);
  text-decoration: none;
}

.wiki-entity-links a:hover {
  color: var(--wiki-link-hover);
  text-decoration: underline;
}

/* =========================================================
   SERVICES / SUBPAGE CARDS
========================================================= */

.services-list {
  display: grid;
  gap: 28px;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
}

.service-media {
  width: 100%;
  max-width: 280px;
}

.service-body {
  min-width: 0;
}

.service-body h3,
.service-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--wiki-heading);
}

.service-description {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wiki-text);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.service-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--wiki-panel-border-soft);
  background: var(--wiki-panel-bg);
  font-size: 13px;
  line-height: 1.3;
  color: var(--wiki-text);
}

.service-actions {
  margin-top: 14px;
}

/* =========================================================
   WIKI-STYLE BUTTONS / LINKS
========================================================= */

.button.small,
.about-btn,
.product-btn {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--wiki-panel-border);
  background: var(--wiki-panel-bg);
  color: var(--wiki-link);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.button.small:hover,
.about-btn:hover,
.product-btn:hover {
  background: var(--wiki-panel-bg-2);
  color: var(--wiki-link-hover);
  text-decoration: underline;
}

.about-btn--ghost,
.product-btn--ghost {
  background: var(--wiki-panel-bg-2);
}

/* =========================================================
   META BLOCKS / SUPPORTING BOXES
========================================================= */

.services-meta-block,
.products-meta-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--wiki-panel-border-soft);
}

.services-meta-title,
.products-meta-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wiki-heading);
}

.services-meta-block ul,
.products-meta-block ul,
.wiki-list {
  margin: 0;
  padding-left: 20px;
}

.services-meta-block li,
.products-meta-block li,
.wiki-list li {
  margin-bottom: 6px;
  line-height: 1.65;
  color: var(--wiki-text);
}

/* =========================================================
   ABOUT INFOBOX / WIKIPEDIA PANEL
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}

.about-left,
.about-right {
  min-width: 0;
}

.about-card {
  margin: 0 0 20px;
}

.about-infobox {
  padding: 12px;
  border: 1px solid var(--wiki-panel-border);
  background: color-mix(in srgb, var(--wiki-panel-bg) 68%, #e6d98b 32%);
}

.about-photo,
.about-poster-figure {
  margin: 0 0 12px;
}

.about-head {
  margin-bottom: 12px;
}

.about-name {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wiki-heading);
}

.about-role {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wiki-muted);
}

.about-meta {
  margin: 0;
}

.about-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--wiki-panel-border-soft);
}

.about-meta dt {
  margin: 0;
  font-weight: 700;
  color: var(--wiki-link);
}

.about-meta dd {
  margin: 0;
  line-height: 1.55;
  color: var(--wiki-text);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.about-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--wiki-panel-border-soft);
  background: var(--wiki-panel-bg);
  font-size: 13px;
  line-height: 1.3;
  color: var(--wiki-text);
}

.about-poster {
  padding: 12px;
  border: 1px solid var(--wiki-panel-border);
  background: var(--wiki-panel-bg);
}

.about-subtitle {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wiki-heading);
}

.about-block {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
}

.about-h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wiki-heading);
}

.about-text,
.about-note {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wiki-text);
}

.about-list,
.about-steps {
  margin: 0;
  padding-left: 22px;
}

.about-list li,
.about-steps li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* =========================================================
   PRODUCTS
========================================================= */

.products-disclaimer {
  margin: 0 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--wiki-panel-border-soft);
  background: var(--wiki-panel-bg);
  font-size: 15px;
  line-height: 1.65;
  color: var(--wiki-text);
}

.products-list {
  display: grid;
  gap: 30px;
  margin-top: 24px;
}

.product-item {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 26px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
}

.product-media {
  width: 100%;
  max-width: 420px;
}

.product-body {
  min-width: 0;
}

.product-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wiki-heading);
}

.product-description,
.product-text,
.products-note,
.products-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--wiki-text);
}

.product-points,
.product-details,
.product-list {
  margin: 0 0 14px;
  padding-left: 20px;
}

.product-points li,
.product-details li,
.product-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* =========================================================
   ENTITY / FOOTER SUMMARY PANEL
========================================================= */

.footer-brand {
  margin-bottom: 22px;
  padding: 14px 16px 16px;
  border: 1px solid var(--wiki-panel-border-soft);
  background: var(--wiki-panel-bg);
}

.footer-brand-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wiki-panel-border-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
  color: var(--wiki-heading);
}

.footer-brand-desc,
.footer-brand-trust,
.footer-brand p {
  margin: 0 0 10px;
  line-height: 1.65;
  color: var(--wiki-text);
}

/* =========================================================
   MACHINE ONLY
========================================================= */

.machine-only {
  display: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .about-grid {
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 22px;
  }

  .product-item {
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 22px;
  }

  .product-media {
    max-width: 360px;
  }

  .product-title {
    font-size: 25px;
  }

  .about-name {
    font-size: 23px;
  }

  .about-h3 {
    font-size: 25px;
  }
}

@media (max-width: 980px) {
  .section-title {
    font-size: 27px;
  }

  .service-item,
  .product-item,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-media {
    max-width: 320px;
  }

  .product-media,
  .about-infobox,
  .about-poster {
    max-width: 460px;
  }

  .service-body h3,
  .service-title {
    font-size: 22px;
  }

  .product-title {
    font-size: 23px;
  }

  .about-h3 {
    font-size: 23px;
  }

  .about-name {
    font-size: 22px;
  }

  .topic-portal-item {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 8px 10px;
  }

  .topic-portal-title {
    text-align: left;
    font-size: 17px;
  }

  .topic-portal-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 24px;
  }

  .services-lead,
  .products-lead,
  .about-lead {
    font-size: 17px;
  }

  .services-summary,
  .products-summary,
  .about-summary,
  .service-description,
  .product-description,
  .product-text,
  .products-note,
  .products-text,
  .about-text,
  .about-note {
    font-size: 15px;
  }

  .service-body h3,
  .service-title,
  .product-title,
  .about-h3 {
    font-size: 21px;
  }

  .about-name {
    font-size: 20px;
  }

  .service-media,
  .product-media,
  .about-infobox,
  .about-poster {
    max-width: 100%;
  }

  .wiki-thumb-caption {
    font-size: 13px;
  }

  .about-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wiki-entity-links-title {
    font-size: 15px;
  }
}
.wiki-entity-network {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.wiki-entity-network-title {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--heading);
}

.wiki-entity-network-list {
  margin: 0;
  padding-left: 20px;
}

.wiki-entity-network-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.notice-hu-strong {
  color: #b00020;
}

:root[data-theme="dark"] .notice-hu-strong {
  color: #ff6b6b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .notice-hu-strong {
    color: #ff6b6b;
  }
}
/* ===== MOBILE / NARROW VIEWPORT HARD FIXES ===== */

/* fontos: a középső oszlop ne tudjon a tartalma miatt szétnyílni */
.content-column,
.article,
.section,
.wiki-box,
.table-wrap {
  min-width: 0;
}

/* általános túlcsordulás-védelem hosszú technikai stringekhez */
.article,
.article p,
.article li,
.article td,
.article th,
.wiki-box,
.left-note,
.panel-list dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* a pre blokkok jelenleg szét tudják nyomni a mobil szélességet */
.wiki-box pre,
pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.55;
}

/* táblázatok mobilon ne nyomják szét a layoutot */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
}

/* biztos mobil szélességkezelés */
@media (max-width: 640px) {
  .content-column {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }

  .article,
  .site-footer,
  .left-rail,
  .right-rail {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .article {
    padding: 20px 14px 40px;
  }

  .wiki-box {
    padding: 12px;
  }

  .wiki-box pre,
  pre {
    font-size: 11px;
    line-height: 1.5;
  }

  .right-rail {
    margin-left: auto;
    margin-right: auto;
  }

  .brand-box {
    align-items: flex-start;
  }

  .brand-text strong {
    font-size: 18px;
  }
}
/* ========== Wikidata-style entity record ========== */

.wikidata-entity-record {
  background: var(--surface);
  border: 1px solid var(--border);
}

.wd-page-header {
  margin-bottom: 28px;
}

.wd-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wd-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.knowledge-intro {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  font-size: 15px;
  line-height: 1.7;
}

.wikidata-statement-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.wikidata-statement-table th,
.wikidata-statement-table td {
  border: 1px solid var(--border-soft);
  vertical-align: top;
  padding: 0;
}

.wikidata-statement-table th[data-column-role="property-shell"] {
  width: 230px;
  background: #eaecf0;
  color: #202122;
  font-weight: 400;
  text-align: left;
  padding: 14px 12px;
}

:root[data-theme="dark"] .wikidata-statement-table th[data-column-role="property-shell"] {
  background: #232a32;
  color: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wikidata-statement-table th[data-column-role="property-shell"] {
    background: #232a32;
    color: #e6e6e6;
  }
}

.wikidata-statement-table td[data-column-role="statement-shell"] {
  background: var(--surface);
}

.wd-property-link {
  display: inline-block;
  margin-right: 8px;
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.wd-property-link.local {
  color: #6b4ba1;
}

.wd-property-link.sameas {
  color: #0b6e4f;
}

.wd-property-name {
  display: inline-block;
  color: var(--text);
  font-weight: 400;
}

.wd-meta-block {
  padding: 12px 18px;
  line-height: 1.75;
}

.wd-statement {
  position: relative;
  padding: 12px 18px 12px 22px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}

.wd-statement:last-child {
  border-bottom: 0;
}

.wd-statement::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 6px;
  height: 14px;
  border-radius: 2px;
  background: #c8ccd1;
}

.wd-statement.preferred::before {
  background: #36c;
}

.wd-statement.deprecated::before {
  background: #d33;
}

.wd-rank {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: lowercase;
}

.wd-rank.preferred {
  background: #dff2eb;
  color: #0b6e4f;
  border-color: #b7dfcf;
}

.wd-rank.normal {
  background: #f8f9fa;
  color: #54595d;
}

.wd-rank.deprecated {
  background: #fbe5e7;
  color: #b32424;
  border-color: #efc1c6;
}

.wd-value {
  font-size: 16px;
  line-height: 1.65;
  word-break: break-word;
}

.wd-value a {
  word-break: break-word;
}

.wd-qualifiers,
.wd-references {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid #c8ccd1;
}

.wd-qualifier-line,
.wd-reference-line {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.wd-qualifier-prop,
.wd-ref-prop {
  color: var(--link);
  font-size: 14px;
}

.wd-qualifier-value,
.wd-ref-value {
  font-size: 15px;
}

.wd-ref-toggle {
  margin-top: 8px;
}

.wd-ref-toggle summary {
  color: var(--link);
  font-weight: 400;
  cursor: pointer;
  list-style: none;
}

.wd-ref-toggle summary::-webkit-details-marker {
  display: none;
}

.wd-ref-toggle summary::before {
  content: "▸ ";
}

.wd-ref-toggle[open] summary::before {
  content: "▾ ";
}

.machine-interpretation-deep-layer {
  margin-top: 30px;
}

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

.machine-box {
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  padding: 14px 16px;
}

.machine-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.machine-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.entity-policy {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  font-size: 14px;
}

.entity-policy code,
.machine-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

@media (max-width: 900px) {
  .wikidata-statement-table th[data-column-role="property-shell"] {
    width: 170px;
  }

  .wd-qualifier-line,
  .wd-reference-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 640px) {
  .wikidata-statement-table,
  .wikidata-statement-table tbody,
  .wikidata-statement-table tr,
  .wikidata-statement-table th,
  .wikidata-statement-table td {
    display: block;
    width: 100%;
  }

  .wikidata-statement-table th[data-column-role="property-shell"] {
    width: 100%;
    border-bottom: 0;
  }

  .wikidata-statement-table td[data-column-role="statement-shell"] {
    border-top: 0;
  }
}
.wd-property-code {
  display: none;
}

.wd-property-name {
  display: inline-block;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
}
.wikidata-statement-table th {
  width: 230px;
  background: #eaecf0;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
/* ========== Heavy main Wikidata layer ========== */

.wikidata-entity-main-heavy {
  display: block;
}

.wikidata-language-layer {
  margin-bottom: 26px;
}

.wikidata-language-table th,
.wikidata-language-table td {
  vertical-align: top;
}

.wikidata-language-table thead th {
  background: var(--surface-soft-2);
  font-weight: 700;
}

.wikidata-language-table tbody th {
  width: 180px;
  font-weight: 400;
}

.wikidata-statement-table th {
  width: 280px;
  font-weight: 400;
}

.wd-property-name {
  display: inline-block;
  font-weight: 400;
  line-height: 1.45;
}

.wd-statement {
  position: relative;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}

.wd-statement:last-child {
  border-bottom: 0;
}

.wd-statement::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 5px;
  height: 14px;
  border-radius: 2px;
  background: #c8ccd1;
}

.wd-statement.preferred::before {
  background: #36c;
}

.wd-rank {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.2;
}

.wd-rank.preferred {
  background: #dff2eb;
  color: #0b6e4f;
  border-color: #b7dfcf;
}

.wd-value {
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wd-qualifiers,
.wd-references {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid #c8ccd1;
}

.wd-qualifier-line,
.wd-reference-line {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.wd-qualifier-prop,
.wd-ref-prop {
  color: var(--link);
  font-size: 13px;
}

.wd-qualifier-value,
.wd-ref-value {
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wd-ref-toggle {
  margin-top: 8px;
}

.wd-ref-toggle summary {
  cursor: pointer;
  color: var(--link);
  list-style: none;
}

.wd-ref-toggle summary::-webkit-details-marker {
  display: none;
}

.wd-ref-toggle summary::before {
  content: "▸ ";
}

.wd-ref-toggle[open] summary::before {
  content: "▾ ";
}

.wd-qid-link {
  word-break: break-word;
}

@media (max-width: 900px) {
  .wikidata-language-table tbody th,
  .wikidata-statement-table th {
    width: 180px;
  }

  .wd-qualifier-line,
  .wd-reference-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  .wikidata-language-table,
  .wikidata-language-table thead,
  .wikidata-language-table tbody,
  .wikidata-language-table tr,
  .wikidata-language-table th,
  .wikidata-language-table td,
  .wikidata-statement-table,
  .wikidata-statement-table tbody,
  .wikidata-statement-table tr,
  .wikidata-statement-table th,
  .wikidata-statement-table td {
    display: block;
    width: 100%;
  }

  .wikidata-language-table thead,
  .wikidata-statement-table thead {
    display: none;
  }

  .wikidata-language-table tr,
  .wikidata-statement-table tr {
    margin-bottom: 10px;
  }
}
/* =========================================================
   TRUE WIKIDATA-LIKE THEME FOR MAIN ENTITY RECORD
   Target: data.html main content / wikidata statement blocks
   ========================================================= */

/* --- Wikidata-like palette override --- */
:root {
  --wd-page-bg: #f8f9fa;
  --wd-surface: #ffffff;
  --wd-surface-2: #f6f7f8;
  --wd-surface-3: #eaecf0;
  --wd-prop-bg: #eaecf0;
  --wd-border: #c8ccd1;
  --wd-border-strong: #a2a9b1;
  --wd-text: #202122;
  --wd-muted: #54595d;
  --wd-link: #3366cc;
  --wd-link-hover: #447ff5;
  --wd-rank-bg: #f8f9fa;
  --wd-preferred: #36c;
  --wd-preferred-bg: #f5f8ff;
  --wd-code-bg: #f8f9fa;
}

:root[data-theme="dark"] {
  --wd-page-bg: #101418;
  --wd-surface: #1b1f24;
  --wd-surface-2: #161a1f;
  --wd-surface-3: #20262d;
  --wd-prop-bg: #2a313a;
  --wd-border: #434a53;
  --wd-border-strong: #57606a;
  --wd-text: #eaecf0;
  --wd-muted: #a2a9b1;
  --wd-link: #8ab4ff;
  --wd-link-hover: #a8c7ff;
  --wd-rank-bg: #161a1f;
  --wd-preferred: #8ab4ff;
  --wd-preferred-bg: #162235;
  --wd-code-bg: #111418;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wd-page-bg: #101418;
    --wd-surface: #1b1f24;
    --wd-surface-2: #161a1f;
    --wd-surface-3: #20262d;
    --wd-prop-bg: #2a313a;
    --wd-border: #434a53;
    --wd-border-strong: #57606a;
    --wd-text: #eaecf0;
    --wd-muted: #a2a9b1;
    --wd-link: #8ab4ff;
    --wd-link-hover: #a8c7ff;
    --wd-rank-bg: #161a1f;
    --wd-preferred: #8ab4ff;
    --wd-preferred-bg: #162235;
    --wd-code-bg: #111418;
  }
}

/* --- Main content shell --- */
#main-content.main-content {
  background: var(--wd-page-bg);
  color: var(--wd-text);
}

/* a cikkes fehér doboz helyett inkább wikidata page háttér */
.article.main-content {
  background: var(--wd-page-bg);
  border: 0;
  box-shadow: none;
  padding: 24px 20px 40px;
  max-width: 1180px;
}

/* --- Main entity block --- */
.wikidata-entity-section {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

/* --- Header: lapos wikidata style --- */
.wikidata-header {
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--wd-border);
  background: transparent;
}

.wikidata-kicker {
  margin: 0 0 6px;
  color: var(--wd-muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.wikidata-header h1 {
  margin: 0 0 12px;
  color: var(--wd-text);
  font: 400 2.15rem/1.15 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.wikidata-header .lead {
  margin: 0 0 10px;
  max-width: none;
  color: var(--wd-text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.wikidata-header .lead:last-child {
  margin-bottom: 0;
}

/* --- Internal section spacing --- */
.wikidata-entity-section > section,
.wikidata-entity-section > .knowledge-intro,
.wikidata-entity-section > .wikidata-note,
.wikidata-entity-section > .table-scroll {
  padding-left: 0;
  padding-right: 0;
}

/* --- Subsection title --- */
.wikidata-language-layer {
  margin: 0 0 18px;
  padding-top: 0;
}

.wikidata-language-layer h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--wd-text);
  font: 600 1rem/1.5 Arial, Helvetica, sans-serif;
}

/* --- Machine note / helper blocks --- */
.knowledge-intro {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--wd-border);
  background: var(--wd-surface-2);
  color: var(--wd-text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.wikidata-note {
  margin: 0 0 14px;
}

.wikidata-note p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--wd-border);
  background: var(--wd-surface);
  color: var(--wd-text);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* --- Table wrappers --- */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

/* --- Core wikidata table look --- */
.wikidata-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--wd-surface);
  color: var(--wd-text);
  font-size: 0.875rem;
  line-height: 1.6;
}

.wikidata-table th,
.wikidata-table td {
  border: 1px solid var(--wd-border);
  padding: 0;
  vertical-align: top;
}

.wikidata-table thead th {
  background: var(--wd-surface-3);
  color: var(--wd-text);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
}

/* language table */
.wikidata-language-table tbody th[scope="row"] {
  width: 180px;
  background: var(--wd-prop-bg);
  color: var(--wd-text);
  font-weight: 400;
  padding: 10px 12px;
}

.wikidata-language-table tbody td {
  padding: 10px 12px;
  background: var(--wd-surface);
  word-break: break-word;
}

/* main statement table */
.wikidata-statement-table tbody > tr > th[scope="row"] {
  width: 225px;
  background: var(--wd-prop-bg);
  color: var(--wd-text);
  font-weight: 400;
  padding: 10px 12px;
}

.wikidata-statement-table tbody > tr > td {
  background: var(--wd-surface);
  padding: 0;
}

/* property label link-like feel */
.wd-property-name {
  display: inline;
  color: var(--wd-link);
  font-weight: 400;
}

/* --- statement block like wikidata value cells --- */
.wd-statement {
  position: relative;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--wd-border);
  background: var(--wd-surface);
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.wd-statement:last-child {
  border-bottom: 0;
}

.wd-statement.preferred {
  background: var(--wd-preferred-bg);
}

.wd-statement.normal {
  background: var(--wd-surface);
}

.wd-statement.deprecated {
  opacity: 0.7;
}

/* rank badge: kicsi, lapos */
.wd-rank {
  display: inline-block;
  margin: 0 0 8px;
  padding: 1px 6px;
  border: 1px solid var(--wd-border);
  border-radius: 0;
  background: var(--wd-rank-bg);
  color: var(--wd-muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
}

.wd-rank.preferred {
  border-color: var(--wd-preferred);
  color: var(--wd-preferred);
  background: transparent;
}

.wd-rank.normal {
  color: var(--wd-muted);
}

.wd-rank.deprecated {
  border-color: #b32424;
  color: #b32424;
}

/* value text */
.wd-value {
  color: var(--wd-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.wd-value a,
.wd-qid-link {
  color: var(--wd-link);
  text-decoration: none;
  font-weight: 400;
}

.wd-value a:hover,
.wd-qid-link:hover {
  color: var(--wd-link-hover);
  text-decoration: underline;
}

/* qualifiers + references more like wikidata subrows */
.wd-qualifiers,
.wd-references {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--wd-border);
}

.wd-qualifier-line,
.wd-reference-line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.wd-qualifier-line:last-child,
.wd-reference-line:last-child {
  margin-bottom: 0;
}

.wd-qualifier-prop,
.wd-reference-prop {
  color: var(--wd-muted);
  font-weight: 400;
}

.wd-qualifier-value,
.wd-reference-value {
  color: var(--wd-text);
}

/* code */
.knowledge-intro code,
.wikidata-note code,
.wd-value code,
.wd-qualifier-value code,
.wd-reference-value code {
  display: inline-block;
  padding: 1px 4px;
  border: 1px solid var(--wd-border);
  border-radius: 0;
  background: var(--wd-code-bg);
  color: var(--wd-text);
  font: 12px/1.4 Menlo, Monaco, Consolas, monospace;
}

/* reduce generic article heading styling inside wikidata block */
.wikidata-entity-section h1,
.wikidata-entity-section h2,
.wikidata-entity-section h3 {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

/* row hover very subtle, wikidata feel */
.wikidata-statement-table tbody > tr:hover > th[scope="row"] {
  background: var(--wd-surface-3);
}

.wikidata-statement-table tbody > tr:hover > td {
  background: var(--wd-surface);
}

/* links in property area */
.wikidata-entity-section a {
  color: var(--wd-link);
}

.wikidata-entity-section a:hover {
  color: var(--wd-link-hover);
}

/* focus */
.wikidata-entity-section a:focus-visible,
.wikidata-entity-section button:focus-visible {
  outline: 2px solid var(--wd-link);
  outline-offset: 1px;
}

/* remove rounded / shadow from anything inside block */
.wikidata-entity-section *,
.wikidata-entity-section *::before,
.wikidata-entity-section *::after {
  box-shadow: none;
}

/* mobile */
@media (max-width: 900px) {
  .article.main-content {
    padding: 18px 12px 32px;
  }

  .wikidata-header h1 {
    font-size: 1.65rem;
  }

  .wikidata-statement-table tbody > tr > th[scope="row"] {
    width: 170px;
  }

  .wd-qualifier-line,
  .wd-reference-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 640px) {
  .wikidata-table {
    font-size: 0.82rem;
  }

  .wikidata-language-table tbody th[scope="row"],
  .wikidata-statement-table tbody > tr > th[scope="row"] {
    width: 145px;
    padding: 8px 10px;
  }

  .wikidata-language-table tbody td {
    padding: 8px 10px;
  }

  .wd-statement {
    padding: 10px 10px;
  }

  .knowledge-intro,
  .wikidata-note p {
    padding: 10px 10px;
  }
}
/* =========================================================
   WIKIDATA DARK MODE REFINEMENT
   Put this at the very end of style.css
   ========================================================= */

:root[data-theme="dark"] {
  --wd-page-bg: #15181c;
  --wd-surface: #1b1f24;
  --wd-surface-2: #20252b;
  --wd-surface-3: #262c33;
  --wd-prop-bg: #2a3037;
  --wd-border: #3a414a;
  --wd-border-strong: #4a525c;
  --wd-text: #eaecf0;
  --wd-muted: #a2a9b1;
  --wd-link: #8ab4ff;
  --wd-link-hover: #a8c7ff;
  --wd-rank-bg: #22272e;
  --wd-preferred: #8ab4ff;
  --wd-preferred-bg: #1f2630;
  --wd-code-bg: #111418;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wd-page-bg: #15181c;
    --wd-surface: #1b1f24;
    --wd-surface-2: #20252b;
    --wd-surface-3: #262c33;
    --wd-prop-bg: #2a3037;
    --wd-border: #3a414a;
    --wd-border-strong: #4a525c;
    --wd-text: #eaecf0;
    --wd-muted: #a2a9b1;
    --wd-link: #8ab4ff;
    --wd-link-hover: #a8c7ff;
    --wd-rank-bg: #22272e;
    --wd-preferred: #8ab4ff;
    --wd-preferred-bg: #1f2630;
    --wd-code-bg: #111418;
  }
}

/* --- page / article --- */
:root[data-theme="dark"] #main-content.main-content,
:root[data-theme="dark"] .article.main-content {
  background: var(--wd-page-bg);
  color: var(--wd-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #main-content.main-content,
  :root:not([data-theme="light"]) .article.main-content {
    background: var(--wd-page-bg);
    color: var(--wd-text);
  }
}

/* --- header --- */
:root[data-theme="dark"] .wikidata-header {
  background: transparent;
  border-bottom: 1px solid var(--wd-border);
}

:root[data-theme="dark"] .wikidata-header h1,
:root[data-theme="dark"] .wikidata-language-layer h2,
:root[data-theme="dark"] .wikidata-entity-section h1,
:root[data-theme="dark"] .wikidata-entity-section h2,
:root[data-theme="dark"] .wikidata-entity-section h3 {
  color: var(--wd-text);
}

:root[data-theme="dark"] .wikidata-kicker {
  color: var(--wd-muted);
}

:root[data-theme="dark"] .wikidata-header .lead {
  color: var(--wd-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wikidata-header {
    background: transparent;
    border-bottom: 1px solid var(--wd-border);
  }

  :root:not([data-theme="light"]) .wikidata-header h1,
  :root:not([data-theme="light"]) .wikidata-language-layer h2,
  :root:not([data-theme="light"]) .wikidata-entity-section h1,
  :root:not([data-theme="light"]) .wikidata-entity-section h2,
  :root:not([data-theme="light"]) .wikidata-entity-section h3 {
    color: var(--wd-text);
  }

  :root:not([data-theme="light"]) .wikidata-kicker {
    color: var(--wd-muted);
  }

  :root:not([data-theme="light"]) .wikidata-header .lead {
    color: var(--wd-text);
  }
}

/* --- helper blocks --- */
:root[data-theme="dark"] .knowledge-intro {
  background: #20252b;
  border: 1px solid var(--wd-border);
  color: var(--wd-text);
}

:root[data-theme="dark"] .wikidata-note p {
  background: #1d2228;
  border: 1px solid var(--wd-border);
  color: var(--wd-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .knowledge-intro {
    background: #20252b;
    border: 1px solid var(--wd-border);
    color: var(--wd-text);
  }

  :root:not([data-theme="light"]) .wikidata-note p {
    background: #1d2228;
    border: 1px solid var(--wd-border);
    color: var(--wd-text);
  }
}

/* --- tables --- */
:root[data-theme="dark"] .wikidata-table {
  background: var(--wd-surface);
  color: var(--wd-text);
}

:root[data-theme="dark"] .wikidata-table th,
:root[data-theme="dark"] .wikidata-table td {
  border-color: var(--wd-border);
}

:root[data-theme="dark"] .wikidata-table thead th {
  background: var(--wd-surface-3);
  color: var(--wd-text);
}

:root[data-theme="dark"] .wikidata-language-table tbody th[scope="row"],
:root[data-theme="dark"] .wikidata-statement-table tbody > tr > th[scope="row"] {
  background: var(--wd-prop-bg);
  color: #c8d1dc;
}

:root[data-theme="dark"] .wikidata-language-table tbody td,
:root[data-theme="dark"] .wikidata-statement-table tbody > tr > td {
  background: var(--wd-surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wikidata-table {
    background: var(--wd-surface);
    color: var(--wd-text);
  }

  :root:not([data-theme="light"]) .wikidata-table th,
  :root:not([data-theme="light"]) .wikidata-table td {
    border-color: var(--wd-border);
  }

  :root:not([data-theme="light"]) .wikidata-table thead th {
    background: var(--wd-surface-3);
    color: var(--wd-text);
  }

  :root:not([data-theme="light"]) .wikidata-language-table tbody th[scope="row"],
  :root:not([data-theme="light"]) .wikidata-statement-table tbody > tr > th[scope="row"] {
    background: var(--wd-prop-bg);
    color: #c8d1dc;
  }

  :root:not([data-theme="light"]) .wikidata-language-table tbody td,
  :root:not([data-theme="light"]) .wikidata-statement-table tbody > tr > td {
    background: var(--wd-surface);
  }
}

/* --- property names --- */
:root[data-theme="dark"] .wd-property-name {
  color: #8ab4ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wd-property-name {
    color: #8ab4ff;
  }
}

/* --- statements --- */
:root[data-theme="dark"] .wd-statement {
  background: var(--wd-surface);
  border-bottom: 1px solid var(--wd-border);
}

:root[data-theme="dark"] .wd-statement.normal {
  background: var(--wd-surface);
}

:root[data-theme="dark"] .wd-statement.preferred {
  background: var(--wd-preferred-bg);
}

:root[data-theme="dark"] .wd-statement.deprecated {
  background: #241b1b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wd-statement {
    background: var(--wd-surface);
    border-bottom: 1px solid var(--wd-border);
  }

  :root:not([data-theme="light"]) .wd-statement.normal {
    background: var(--wd-surface);
  }

  :root:not([data-theme="light"]) .wd-statement.preferred {
    background: var(--wd-preferred-bg);
  }

  :root:not([data-theme="light"]) .wd-statement.deprecated {
    background: #241b1b;
  }
}

/* --- ranks --- */
:root[data-theme="dark"] .wd-rank {
  background: var(--wd-rank-bg);
  border-color: var(--wd-border-strong);
  color: var(--wd-muted);
}

:root[data-theme="dark"] .wd-rank.preferred {
  background: transparent;
  border-color: #5b8def;
  color: #8ab4ff;
}

:root[data-theme="dark"] .wd-rank.normal {
  background: #2a3037;
  color: #c0c6cd;
  border-color: #434a53;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wd-rank {
    background: var(--wd-rank-bg);
    border-color: var(--wd-border-strong);
    color: var(--wd-muted);
  }

  :root:not([data-theme="light"]) .wd-rank.preferred {
    background: transparent;
    border-color: #5b8def;
    color: #8ab4ff;
  }

  :root:not([data-theme="light"]) .wd-rank.normal {
    background: #2a3037;
    color: #c0c6cd;
    border-color: #434a53;
  }
}

/* --- value text / qualifiers --- */
:root[data-theme="dark"] .wd-value,
:root[data-theme="dark"] .wd-qualifier-value,
:root[data-theme="dark"] .wd-reference-value {
  color: var(--wd-text);
}

:root[data-theme="dark"] .wd-qualifiers,
:root[data-theme="dark"] .wd-references {
  border-top: 1px solid var(--wd-border);
}

:root[data-theme="dark"] .wd-qualifier-prop,
:root[data-theme="dark"] .wd-reference-prop {
  color: var(--wd-muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wd-value,
  :root:not([data-theme="light"]) .wd-qualifier-value,
  :root:not([data-theme="light"]) .wd-reference-value {
    color: var(--wd-text);
  }

  :root:not([data-theme="light"]) .wd-qualifiers,
  :root:not([data-theme="light"]) .wd-references {
    border-top: 1px solid var(--wd-border);
  }

  :root:not([data-theme="light"]) .wd-qualifier-prop,
  :root:not([data-theme="light"]) .wd-reference-prop {
    color: var(--wd-muted);
  }
}

/* --- links --- */
:root[data-theme="dark"] .wikidata-entity-section a,
:root[data-theme="dark"] .wd-value a,
:root[data-theme="dark"] .wd-qid-link {
  color: var(--wd-link);
}

:root[data-theme="dark"] .wikidata-entity-section a:hover,
:root[data-theme="dark"] .wd-value a:hover,
:root[data-theme="dark"] .wd-qid-link:hover {
  color: var(--wd-link-hover);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wikidata-entity-section a,
  :root:not([data-theme="light"]) .wd-value a,
  :root:not([data-theme="light"]) .wd-qid-link {
    color: var(--wd-link);
  }

  :root:not([data-theme="light"]) .wikidata-entity-section a:hover,
  :root:not([data-theme="light"]) .wd-value a:hover,
  :root:not([data-theme="light"]) .wd-qid-link:hover {
    color: var(--wd-link-hover);
  }
}

/* --- code blocks --- */
:root[data-theme="dark"] .knowledge-intro code,
:root[data-theme="dark"] .wikidata-note code,
:root[data-theme="dark"] .wd-value code,
:root[data-theme="dark"] .wd-qualifier-value code,
:root[data-theme="dark"] .wd-reference-value code {
  background: var(--wd-code-bg);
  border-color: var(--wd-border);
  color: #dce3ea;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .knowledge-intro code,
  :root:not([data-theme="light"]) .wikidata-note code,
  :root:not([data-theme="light"]) .wd-value code,
  :root:not([data-theme="light"]) .wd-qualifier-value code,
  :root:not([data-theme="light"]) .wd-reference-value code {
    background: var(--wd-code-bg);
    border-color: var(--wd-border);
    color: #dce3ea;
  }
}

/* --- hover legyen sokkal finomabb --- */
:root[data-theme="dark"] .wikidata-statement-table tbody > tr:hover > th[scope="row"] {
  background: #313844;
}

:root[data-theme="dark"] .wikidata-statement-table tbody > tr:hover > td {
  background: var(--wd-surface);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wikidata-statement-table tbody > tr:hover > th[scope="row"] {
    background: #313844;
  }

  :root:not([data-theme="light"]) .wikidata-statement-table tbody > tr:hover > td {
    background: var(--wd-surface);
  }
}

/* =========================================================
   SIDE PANELS DARK REFINEMENT
   so ne legyenek erősebbek mint a main content
   ========================================================= */

:root[data-theme="dark"] .left-rail,
:root[data-theme="dark"] .right-rail {
  background: #12161a;
  border-color: #2e353d;
}

:root[data-theme="dark"] .left-note {
  background: #1a1f25;
  border-color: #313844;
  color: #d7dde4;
}

:root[data-theme="dark"] .brand-mark {
  background: #181d22;
  border-color: #313844;
  color: #f2f4f7;
}

:root[data-theme="dark"] .brand-text span,
:root[data-theme="dark"] .rail-title,
:root[data-theme="dark"] .rail-section-title {
  color: #a2a9b1;
}

:root[data-theme="dark"] .theme-switcher {
  background: #1a1f25;
  border-color: #313844;
}

:root[data-theme="dark"] .theme-btn {
  background: #232932;
  border-color: #3b444e;
  color: #e6ebf0;
}

:root[data-theme="dark"] .theme-btn:hover {
  background: #2b323c;
}

:root[data-theme="dark"] .theme-btn.active {
  background: #4065a8;
  border-color: #5b8def;
  color: #ffffff;
}

:root[data-theme="dark"] .rail-quicklinks a {
  background: #1a1f25;
  border-color: #313844;
  color: #8ab4ff;
}

:root[data-theme="dark"] .rail-quicklinks a:hover {
  background: #232932;
}

:root[data-theme="dark"] .knowledge-panel {
  background: #1a1f25;
  border-color: #313844;
}

:root[data-theme="dark"] .panel-title {
  background: #5a4b1f;
  color: #f5f1df;
  border-bottom-color: #313844;
}

:root[data-theme="dark"] .panel-subtitle,
:root[data-theme="dark"] .panel-list dd,
:root[data-theme="dark"] .panel-block,
:root[data-theme="dark"] .panel-media {
  color: #dce3ea;
}

:root[data-theme="dark"] .panel-list div,
:root[data-theme="dark"] .panel-media,
:root[data-theme="dark"] .panel-block {
  border-color: #313844;
}

:root[data-theme="dark"] .panel-list dt,
:root[data-theme="dark"] .knowledge-panel strong,
:root[data-theme="dark"] .knowledge-panel b {
  color: #8ab4ff;
}

:root[data-theme="dark"] .panel-media-box {
  background: #111418;
  border-color: #313844;
  color: #a2a9b1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .left-rail,
  :root:not([data-theme="light"]) .right-rail {
    background: #12161a;
    border-color: #2e353d;
  }

  :root:not([data-theme="light"]) .left-note {
    background: #1a1f25;
    border-color: #313844;
    color: #d7dde4;
  }

  :root:not([data-theme="light"]) .brand-mark {
    background: #181d22;
    border-color: #313844;
    color: #f2f4f7;
  }

  :root:not([data-theme="light"]) .brand-text span,
  :root:not([data-theme="light"]) .rail-title,
  :root:not([data-theme="light"]) .rail-section-title {
    color: #a2a9b1;
  }

  :root:not([data-theme="light"]) .theme-switcher {
    background: #1a1f25;
    border-color: #313844;
  }

  :root:not([data-theme="light"]) .theme-btn {
    background: #232932;
    border-color: #3b444e;
    color: #e6ebf0;
  }

  :root:not([data-theme="light"]) .theme-btn:hover {
    background: #2b323c;
  }

  :root:not([data-theme="light"]) .theme-btn.active {
    background: #4065a8;
    border-color: #5b8def;
    color: #ffffff;
  }

  :root:not([data-theme="light"]) .rail-quicklinks a {
    background: #1a1f25;
    border-color: #313844;
    color: #8ab4ff;
  }

  :root:not([data-theme="light"]) .rail-quicklinks a:hover {
    background: #232932;
  }

  :root:not([data-theme="light"]) .knowledge-panel {
    background: #1a1f25;
    border-color: #313844;
  }

  :root:not([data-theme="light"]) .panel-title {
    background: #5a4b1f;
    color: #f5f1df;
    border-bottom-color: #313844;
  }

  :root:not([data-theme="light"]) .panel-subtitle,
  :root:not([data-theme="light"]) .panel-list dd,
  :root:not([data-theme="light"]) .panel-block,
  :root:not([data-theme="light"]) .panel-media {
    color: #dce3ea;
  }

  :root:not([data-theme="light"]) .panel-list div,
  :root:not([data-theme="light"]) .panel-media,
  :root:not([data-theme="light"]) .panel-block {
    border-color: #313844;
  }

  :root:not([data-theme="light"]) .panel-list dt,
  :root:not([data-theme="light"]) .knowledge-panel strong,
  :root:not([data-theme="light"]) .knowledge-panel b {
    color: #8ab4ff;
  }

  :root:not([data-theme="light"]) .panel-media-box {
    background: #111418;
    border-color: #313844;
    color: #a2a9b1;
  }
}
/* =========================================================
   MAIN CONTENT WIDTH = FOOTER WIDTH
   ========================================================= */

/* a középső fő oszlop ugyanazt a szélességi logikát kapja mint a footer */
.article.main-content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 28px;
  box-sizing: border-box;
}

/* a wikidata fő blokk ne legyen külön beszűkítve */
.wikidata-entity-section,
#wikidata-entity-record {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ha van benne belső wrapper, az se szűkítsen */
.wikidata-entity-section > .table-scroll,
.wikidata-entity-section > section,
.wikidata-entity-section > .knowledge-intro,
.wikidata-entity-section > .wikidata-note,
.wikidata-entity-section > header {
  max-width: none;
}

/* a main shell tényleg töltse ki a rendelkezésre álló helyet */
.content-column {
  width: auto;
}

/* responsive maradjon korrekt */
@media (max-width: 1180px) {
  .article.main-content {
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .article.main-content {
    max-width: calc(100% - 20px);
  }
}
.machine-interpretation-deep-layer h2,
.ai-recommendation-context h2,
.machine-box h3 {
  color: #4dabf7 !important;
  font-weight: 600;
}
.machine-interpretation-deep-layer {
  margin-bottom: 72px;
}
#canonical-reference-and-authorship {
  margin-bottom: 60px;
}

#entity-property-mapping-layer {
  margin-top: 60px;
}
#canonical-reference-and-authorship h2,
#entity-property-mapping-layer h2 {
  color: #1a73e8;
}

#canonical-reference-and-authorship h3,
#entity-property-mapping-layer h3 {
  color: #1a73e8;
  font-weight: 600;
}
#canonical-reference-and-authorship {
  display: block;
  clear: both;
  margin-top: 40px;
  margin-bottom: 60px;
}
.llm-freshness-status {
  margin-top: 80px;
  margin-bottom: 60px;
}
/* ===== LLM QUESTION MAP – szebb, rendezettebb megjelenés ===== */

#llm-question-map .faq-box {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

#llm-question-map .question-group + .question-group {
  margin-top: 18px;
}

#llm-question-map .question-group h3 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-size: 24px;
  border-bottom: 1px solid var(--border-soft);
}

#llm-question-map .question-map-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#llm-question-map .question-map-list li {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  line-height: 1.6;
}

#llm-question-map .question-map-list li + li {
  margin-top: 8px;
}

#llm-question-map .question-map-list strong {
  display: inline;
  font-weight: 700;
}

#llm-question-map .question-map-list li::before {
  content: "• ";
  color: var(--link);
  font-weight: 700;
}

#llm-question-map-intro {
  margin-bottom: 16px;
}

/* opcionális: nagyobb kijelzőn két oszlop */
@media (min-width: 1100px) {
  #llm-question-map .faq-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    align-items: start;
  }

  #llm-question-map .question-group + .question-group {
    margin-top: 0;
  }
}

/* mobilon maradjon egymás alatt */
@media (max-width: 640px) {
  #llm-question-map .faq-box {
    padding: 12px;
  }

  #llm-question-map .question-group h3 {
    font-size: 21px;
  }

  #llm-question-map .question-map-list li {
    padding: 10px 12px;
  }
}
:root {
  --llm-product-h3-color: #000000;
}

:root[data-theme="dark"] {
  --llm-product-h3-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --llm-product-h3-color: #ffffff;
  }
}

#llm-32-product-corpus .product-entry h3,
#llm-32-product-corpus .product-entry h3 a {
  color: var(--llm-product-h3-color) !important;
  font-weight: 700 !important;
}

#llm-32-product-corpus .product-entry h3 a:hover,
#llm-32-product-corpus .product-entry h3 a:focus,
#llm-32-product-corpus .product-entry h3 a:active,
#llm-32-product-corpus .product-entry h3 a:visited {
  color: var(--llm-product-h3-color) !important;
}
.section h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
}

.wiki-box + h3 {
  margin-top: 34px;
}
/* ===== FIXED 9:16 panel images ===== */

.about-panel-thumb {
  width: 100%;
}

/* wrapper legyen a ratio holder */
.about-panel-thumb .wiki-thumb-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0; /* fontos! */
}

/* kép kitölt, nem torzul */
.about-panel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-panel-thumb {
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.about-panel-thumb + .about-panel-thumb {
  margin-top: 14px;
}

.about-panel-thumb .wiki-thumb-caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
  padding: 6px 2px 2px;
}
/* ========== References / Wikipedia-style text-only ========== */

.references-list {
  margin-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.reference-item {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}

.reference-item:hover {
  background: rgba(0, 0, 0, 0.018);
}

.reference-body {
  max-width: 100%;
}

.reference-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading, var(--text));
}

.reference-description {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
}

.reference-description strong {
  color: var(--text);
  font-weight: 700;
}

.reference-description .text-muted {
  color: var(--muted);
}

.reference-details {
  margin: 8px 0 10px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
}

.reference-details li {
  margin-bottom: 4px;
}

.reference-details strong {
  color: var(--text);
  font-weight: 700;
}

.reference-actions {
  margin-top: 8px;
}

.reference-btn {
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--link);
  text-decoration: none;
}

.reference-btn:hover {
  text-decoration: underline;
}

/* finom bizalmi jel: reference hover nem gombosodik túl */
.reference-item[data-layout="text-only"] {
  position: relative;
}

.reference-item[data-layout="text-only"]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 22px;
  width: 3px;
  height: 26px;
  background: var(--border-soft);
}

/* dark mode */
:root[data-theme="dark"] .reference-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .reference-item:hover {
    background: rgba(255, 255, 255, 0.035);
  }
}

/* mobile */
@media (max-width: 640px) {
  .reference-item {
    padding: 16px 0 18px;
  }

  .reference-title {
    font-size: 20px;
  }

  .reference-description {
    font-size: 14px;
  }

  .reference-details {
    font-size: 14px;
  }

  .reference-item[data-layout="text-only"]::before {
    left: -8px;
  }
}
/* ===== Reference highlight (wiki + trust style) ===== */

.reference-item {
  padding: 14px 16px 16px;
  margin: 10px 0;
  border: 1px solid var(--border-soft);
  background: #fff8dc; /* halvány sárga (wiki hangulat) */
  border-radius: 4px;
}

/* cím = wiki link hangulat */
.reference-title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
}

.reference-title a,
.reference-title {
  color: #0645ad; /* klasszikus wiki kék */
  text-decoration: none;
}

.reference-title:hover {
  text-decoration: underline;
}

/* finomabb szöveg kontraszt */
.reference-description {
  font-size: 14.5px;
  line-height: 1.65;
}

/* hover csak nagyon enyhe */
.reference-item:hover {
  background: #fff4c2;
}
.reference-title a {
  color: #0645ad;
  text-decoration: none;
}

.reference-title a:hover {
  text-decoration: underline;
}
.references-header {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  background: #fff8dc;
}

.references-title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  color: #0645ad;
}

.references-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
/* ===== Facts table – light/dark safe ===== */

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.65;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.facts-table th,
.facts-table td {
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  vertical-align: top;
}

.facts-table thead th {
  background: var(--surface-muted, #f8f9fa);
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.facts-table tbody th {
  width: 190px;
  color: #3366cc;
  font-weight: 700;
  text-align: left;
  background: var(--surface-muted, #f8f9fa);
}

.facts-table td {
  color: var(--text);
  background: var(--surface);
}

.facts-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.025);
}

/* ===== Dark mode fix ===== */

:root[data-theme="dark"] .facts-table,
:root[data-theme="dark"] .facts-table td {
  background: #161b22;
  color: #e6edf3;
  border-color: #30363d;
}

:root[data-theme="dark"] .facts-table thead th,
:root[data-theme="dark"] .facts-table tbody th {
  background: #0d1117;
  color: #79c0ff;
  border-color: #30363d;
}

:root[data-theme="dark"] .facts-table tbody tr:nth-child(even) td {
  background: #1c2128;
}

/* ===== System dark fallback ===== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .facts-table,
  :root:not([data-theme="light"]) .facts-table td {
    background: #161b22;
    color: #e6edf3;
    border-color: #30363d;
  }

  :root:not([data-theme="light"]) .facts-table thead th,
  :root:not([data-theme="light"]) .facts-table tbody th {
    background: #0d1117;
    color: #79c0ff;
    border-color: #30363d;
  }

  :root:not([data-theme="light"]) .facts-table tbody tr:nth-child(even) td {
    background: #1c2128;
  }
}
/* ===== Reference block base ===== */

.reference-item {
  background: #f8f5e6; /* halvány sárga */
  border: 1px solid #a2a9b1;
  border-left: 4px solid #3366cc;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.reference-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.reference-item h3 a {
  color: #3366cc;
  text-decoration: none;
}

.reference-item h3 a:hover {
  text-decoration: underline;
}

.reference-item p {
  margin: 6px 0;
  color: #202122;
}

.reference-item ul {
  margin: 6px 0;
  padding-left: 18px;
}

.reference-item li {
  margin-bottom: 3px;
}

.reference-item .reference-link {
  font-size: 13px;
  color: #3366cc;
  text-decoration: none;
}

.reference-item .reference-link:hover {
  text-decoration: underline;
}/* ===== Dark mode (manual toggle) ===== */

:root[data-theme="dark"] .reference-item {
  background: #161b22;
  border: 1px solid #30363d;
  border-left: 4px solid #58a6ff;
}

:root[data-theme="dark"] .reference-item h3 a {
  color: #58a6ff;
}

:root[data-theme="dark"] .reference-item p {
  color: #c9d1d9;
}

:root[data-theme="dark"] .reference-item li {
  color: #c9d1d9;
}

:root[data-theme="dark"] .reference-item .reference-link {
  color: #58a6ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .reference-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-left: 4px solid #58a6ff;
  }

  :root:not([data-theme="light"]) .reference-item h3 a {
    color: #58a6ff;
  }

  :root:not([data-theme="light"]) .reference-item p,
  :root:not([data-theme="light"]) .reference-item li {
    color: #c9d1d9;
  }

  :root:not([data-theme="light"]) .reference-item .reference-link {
    color: #58a6ff;
  }
}
.reference-item:hover {
  background: #f1ecd6;
}

:root[data-theme="dark"] .reference-item:hover {
  background: #1c2128;
}
/* ===== References header dark mode fix ===== */

:root[data-theme="dark"] .references-header {
  background: #161b22;
  border-color: #30363d;
}

:root[data-theme="dark"] .references-title {
  color: #58a6ff;
}

:root[data-theme="dark"] .references-lead {
  color: #c9d1d9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .references-header {
    background: #161b22;
    border-color: #30363d;
  }

  :root:not([data-theme="light"]) .references-title {
    color: #58a6ff;
  }

  :root:not([data-theme="light"]) .references-lead {
    color: #c9d1d9;
  }
}
/* ========== Case study proof images / 16:9 reference screenshots ========== */

.case-study-proof-figure {
  margin: 18px 0 22px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  overflow: hidden;
}

.case-study-proof-frame {
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  overflow: hidden;
}

.case-study-proof-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-soft);
}

.case-study-proof-caption {
  margin: 8px 0 0;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.case-study-proof-caption strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .case-study-proof-figure {
    padding: 8px;
  }

  .case-study-proof-frame {
    padding: 6px;
  }

  .case-study-proof-caption {
    font-size: 13px;
  }
}
/* ===== ABOUT PANEL GALLERY – VALÓS KÉPARÁNY FIX ===== */

.about-panel-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-panel-gallery .about-panel-thumb {
  width: 100%;
  margin: 0;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

/* Ne kényszerítsen 9:16 arányt */
.about-panel-gallery .about-panel-thumb .wiki-thumb-inner {
  position: static !important;
  width: 100%;
  aspect-ratio: auto !important;
  overflow: visible;
  padding: 6px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

/* A kép a saját valódi arányában jelenjen meg */
.about-panel-gallery .about-panel-thumb img {
  display: block;
  position: static !important;
  inset: auto !important;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: var(--surface);
}

.about-panel-gallery .about-panel-thumb .wiki-thumb-caption {
  margin-top: 6px;
  padding: 0 2px 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}
/* ========== AI News / Opinion Article add-on ========== */
.news-article {
  border-top: 4px solid var(--link);
}

.news-hero {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border-soft);
}

.news-kicker {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.news-deck {
  max-width: 980px;
  font-size: 20px;
  line-height: 1.7;
}

.news-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
}

.news-meta-bar span {
  display: inline-flex;
  gap: 4px;
  padding-right: 10px;
  border-right: 1px solid var(--border-soft);
}

.news-meta-bar span:last-child {
  border-right: 0;
}

.news-brief {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--link);
  background: var(--surface-soft);
  font-size: 17px;
}

.news-brief p {
  margin: 0;
}

.news-toc {
  margin-top: 0;
  margin-bottom: 30px;
}

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

.source-card {
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft);
}

.source-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.source-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.source-label {
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-card-official {
  border-color: var(--link);
}

.news-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}

.news-side-fact {
  position: sticky;
  top: 72px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.fact-label {
  margin: 0 0 8px !important;
  color: var(--link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.analysis-card {
  padding: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
}

.analysis-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.news-checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.news-checklist div {
  padding: 12px 14px;
  border-left: 3px solid var(--link);
  background: var(--surface-soft);
}

.editorial-quote {
  margin: 22px 0;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
}

.editorial-quote p {
  margin: 0;
}

.legal-note {
  padding: 16px 18px;
  border: 1px solid var(--border-soft);
  background: var(--surface-soft-2);
}

.legal-note ul {
  margin-bottom: 0;
}

.news-panel .panel-title {
  background: var(--surface-soft-2);
}

:root[data-theme="dark"] .news-kicker,
:root[data-theme="dark"] .news-brief,
:root[data-theme="dark"] .source-card,
:root[data-theme="dark"] .news-side-fact,
:root[data-theme="dark"] .news-checklist div,
:root[data-theme="dark"] .editorial-quote,
:root[data-theme="dark"] .legal-note,
:root[data-theme="dark"] .news-panel .panel-title {
  background: var(--surface-soft);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .news-kicker,
  :root:not([data-theme="light"]) .news-brief,
  :root:not([data-theme="light"]) .source-card,
  :root:not([data-theme="light"]) .news-side-fact,
  :root:not([data-theme="light"]) .news-checklist div,
  :root:not([data-theme="light"]) .editorial-quote,
  :root:not([data-theme="light"]) .legal-note,
  :root:not([data-theme="light"]) .news-panel .panel-title {
    background: var(--surface-soft);
  }
}

@media (max-width: 980px) {
  .source-grid,
  .analysis-grid,
  .news-section-split {
    grid-template-columns: 1fr;
  }

  .news-side-fact {
    position: static;
  }

  .news-deck {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .news-meta-bar {
    display: grid;
    gap: 6px;
  }

  .news-meta-bar span {
    border-right: 0;
    padding-right: 0;
  }

  .source-card,
  .analysis-card,
  .legal-note {
    padding: 12px;
  }

  .editorial-quote {
    font-size: 18px;
  }
}
.reading-boundary-box {
  background: var(--reading-boundary-bg, #fff4c2);
  border: 1px solid var(--reading-boundary-border, #e3bf4a);
  border-left: 7px solid var(--reading-boundary-accent, #d9a400);
  color: var(--reading-boundary-text, #2e2600);
  box-shadow: var(--reading-boundary-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.reading-boundary-title {
  color: var(--reading-boundary-title, #2e2600);
}

.reading-boundary-final {
  margin-bottom: 0;
}

.reading-boundary-box .text-muted,
.reading-boundary-box .about-text {
  color: var(--reading-boundary-text, #2e2600);
}

/* Dark mode – rendszerbeállítás alapján */
@media (prefers-color-scheme: dark) {
  .reading-boundary-box {
    --reading-boundary-bg: rgba(166, 226, 46, 0.10);
    --reading-boundary-border: rgba(166, 226, 46, 0.32);
    --reading-boundary-accent: #a6e22e;
    --reading-boundary-text: #f3f5e8;
    --reading-boundary-title: #ffffff;
    --reading-boundary-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

/* Dark mode – ha az oldal külön class vagy data-theme alapján vált */
html[data-theme="dark"] .reading-boundary-box,
body.dark .reading-boundary-box,
.dark-mode .reading-boundary-box {
  --reading-boundary-bg: rgba(166, 226, 46, 0.10);
  --reading-boundary-border: rgba(166, 226, 46, 0.32);
  --reading-boundary-accent: #a6e22e;
  --reading-boundary-text: #f3f5e8;
  --reading-boundary-title: #ffffff;
  --reading-boundary-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}