/* GyógyInfók — BNO chapter ribbon + admin desk. Hand-built, light only. See DESIGN.md. */

@font-face { font-family: "Mohave"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/mohave-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mohave"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/mohave-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fustat"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/fustat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fustat"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/fustat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --papir: #fbfbf8;
  --lap: #ffffff;
  --tinta: #191b1e;
  --halk: #575b60;
  --zold: #2f5e4e;
  --zold-mely: #234538;
  --zold-halvany: #e6eee9;
  --homok: #e9e1cf;
  --homok-halvany: #f4f0e6;
  --hajszal: #dfdcd3;
  /* four muted ribbon tones, cycled */
  --t1: #d8c9a6;
  --t2: #c4d0bf;
  --t3: #dcc4bd;
  --t4: #c8d0d3;
  --kijelolt: var(--zold);
  --display: "Mohave", "Arial Narrow", sans-serif;
  --szoveg: "Fustat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --szel: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papir);
  color: var(--tinta);
  font-family: var(--szoveg);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zold-mely); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--zold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: 0; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.keret { width: 100%; max-width: var(--szel); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.keret-szuk { max-width: 880px; }
.keret-cikk { max-width: 760px; }

.ugro { position: absolute; left: -9999px; top: 8px; background: var(--tinta); color: var(--papir); padding: 8px 14px; z-index: 10; }
.ugro:focus { left: 12px; }

/* ---------- header ---------- */
.fejlec { border-bottom: 1px solid var(--hajszal); background: var(--papir); }
.fejlec-sor { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.szojel { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; }
.szojel span { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: .01em; }
.szojel .jel { color: var(--zold); flex: none; margin-top: 2px; }
.szojel:hover { color: var(--tinta); }
.fomenu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; }
.fomenu a { color: var(--tinta); text-decoration: none; font-size: .98rem; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.fomenu a:hover, .fomenu a[aria-current="page"] { border-bottom-color: var(--zold); color: var(--zold); }

/* ---------- homepage opening ---------- */
.nyito { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 64px; padding-bottom: 36px; }
.nyito h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); font-weight: 500; max-width: 19ch; margin-bottom: .35em; }
.nyito-lead p { font-size: 1.18rem; color: var(--halk); max-width: 56ch; margin: 0; }
.nyito-sugo { font-size: .98rem; color: var(--halk); margin: 0; padding: 16px 0 6px; border-top: 1px solid var(--hajszal); }

/* ---------- the ribbon ---------- */
.szalag-blokk { padding: 8px 0 72px; }
.szalag-cim { font-size: 1.05rem; font-family: var(--szoveg); font-weight: 600; color: var(--halk); margin: 0 0 12px; }
.szalag {
  display: flex; gap: 3px; padding: 3px;
  background: var(--homok);
  border-radius: 6px;
  height: 232px;
}
.szelet {
  flex: var(--suly) 1 0; min-width: 0;
  position: relative;
  border: 0; margin: 0; padding: 10px 0 30px;
  border-radius: 3px;
  font: inherit; color: var(--tinta); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  transition: background-color .15s ease, transform .15s ease;
}
.szelet.t1 { background: var(--t1); }
.szelet.t2 { background: var(--t2); }
.szelet.t3 { background: var(--t3); }
.szelet.t4 { background: var(--t4); }
.szelet:hover { transform: translateY(-3px); }
.szelet[aria-selected="true"] { background: var(--kijelolt); color: var(--papir); transform: none; }
.szelet-tart {
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.szelet-nev { display: none; }
.szelet { overflow: hidden; }
.szelet-szam { position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: .82rem; opacity: .75; }

.panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 340px);
  grid-template-areas: "fej test anat" "fej kereso kereso";
  gap: 8px 44px;
  margin-top: 14px; padding: 32px 36px;
  background: var(--lap);
  border: 1px solid var(--hajszal); border-radius: 6px;
}
.panel-fej { grid-area: fej; }
.panel-tart { font-family: var(--display); font-size: 3.4rem; font-weight: 600; line-height: 1; color: var(--zold); margin: 0 0 8px; white-space: nowrap; }
.panel-fejezet { color: var(--halk); margin: 0; }
.panel-test { grid-area: test; }
.panel-nev { font-size: 1.85rem; font-weight: 500; }
.panel-leiras { color: var(--halk); margin: 0; }
.anatomia { grid-area: anat; margin: 0; }
.anatomia-sor { display: flex; align-items: stretch; gap: 6px; }
.dar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dar b { font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 1; min-width: 54px; text-align: center; padding: 10px 10px 8px; background: var(--homok-halvany); border: 1px solid var(--hajszal); border-radius: 4px; }
.dar-pont b { background: none; border-color: transparent; min-width: 0; padding-left: 0; padding-right: 0; }
.dar small { font-size: .74rem; line-height: 1.25; color: var(--halk); text-align: center; max-width: 92px; }
.dar.ures b { color: var(--halk); background: transparent; border-style: dashed; }
.anatomia figcaption { margin-top: 12px; font-size: .95rem; }
.anatomia-kod { font-family: var(--display); font-weight: 600; font-size: 1.05rem; background: var(--zold-halvany); color: var(--zold-mely); padding: 1px 7px; border-radius: 3px; margin-right: 4px; }
.panel-kereso { grid-area: kereso; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hajszal); }
.panel-kereso a[href^="https://www.orvosok"] { font-weight: 600; }

/* ---------- admin desk ---------- */
.asztal-blokk { padding: 72px 0; background: var(--homok-halvany); border-top: 1px solid var(--hajszal); border-bottom: 1px solid var(--hajszal); }
.asztal-fej { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; margin-bottom: 44px; }
.asztal-fej h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 500; }
.asztal-fej p { color: var(--halk); max-width: 58ch; font-size: 1.08rem; }
.asztal-kep { border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.asztal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--lap); border: 1px solid var(--hajszal); border-radius: 6px; }
.ablak { padding: 26px 22px 28px; }
.ablak + .ablak { border-left: 1px solid var(--hajszal); }
.ablak-szam { font-family: var(--display); font-size: 1rem; color: var(--zold); margin: 0 0 6px; }
.ablak h3 { font-size: 1.55rem; font-weight: 500; }
.ablak > p { font-size: .94rem; color: var(--halk); }
.ablak ul { list-style: none; margin: 0; padding: 0; }
.ablak li { padding: 8px 0; border-top: 1px solid var(--hajszal); font-size: .95rem; line-height: 1.4; }
.ablak li a { text-decoration: none; color: var(--tinta); }
.ablak li a:hover { color: var(--zold); text-decoration: underline; }

/* ---------- article list grouped by area ---------- */
.lista-blokk { padding: 80px 0 96px; }
.lista-blokk h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 500; }
.lista-kep { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 6px; margin: 8px 0 40px; }
.lista-csoport { margin-bottom: 44px; }
.lista-csoport h3 { display: flex; align-items: center; gap: 12px; font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--hajszal); }
.lista li:last-child { border-bottom: 1px solid var(--hajszal); }
.lista time { font-size: .92rem; font-weight: 600; color: var(--halk); padding-top: 3px; font-variant-numeric: tabular-nums; }
.lista a { font-weight: 600; font-size: 1.1rem; color: var(--tinta); text-decoration: none; line-height: 1.35; }
.lista a:hover { color: var(--zold); text-decoration: underline; }
.lista p { margin: 4px 0 0; color: var(--halk); font-size: .97rem; }

.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px; font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--tinta); text-decoration: none; line-height: 1; }
.tonus-homok { background: var(--t1); }
.tonus-kod { background: var(--t4); }
.tonus-rozsa { background: var(--t3); }
.tonus-zsalya { background: var(--t2); }
.tonus-papir { background: var(--lap); box-shadow: inset 0 0 0 1px var(--zold); color: var(--zold); }

/* ---------- article ---------- */
.cikk { padding-top: 56px; padding-bottom: 88px; }
.cikk-fej { margin-bottom: 36px; }
.chip-terulet { font-family: var(--szoveg); font-size: .9rem; font-weight: 600; height: 32px; padding: 0 14px; margin-bottom: 22px; }
.chip-terulet:hover { color: var(--tinta); filter: brightness(.96); }
.cikk h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
.cikk-datum { color: var(--halk); font-size: .95rem; margin: 0 0 18px; }
.cikk-datum time { font-weight: 600; color: var(--tinta); }
.cikk-bevezeto { font-size: 1.22rem; line-height: 1.55; color: var(--tinta); }
.cikk-test h2 { font-size: 1.9rem; font-weight: 500; margin-top: 1.6em; }
.cikk-test h3 { font-size: 1.4rem; font-weight: 500; margin-top: 1.4em; }
.cikk-test ul, .cikk-test ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.cikk-test li { margin-bottom: .35em; }
.cikk-test strong { font-weight: 650; }
.cikk-test blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--homok-halvany); border: 1px solid var(--hajszal); border-radius: 6px; }
.cikk-test blockquote p:last-child { margin: 0; }
.cikk-test code { font-family: var(--display); font-size: 1.05em; background: var(--zold-halvany); color: var(--zold-mely); padding: 0 5px; border-radius: 3px; }
.tabla-keret { overflow-x: auto; margin: 1.3em 0 1.6em; border: 1px solid var(--hajszal); border-radius: 6px; background: var(--lap); }
.tabla-keret table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tabla-keret th, .tabla-keret td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hajszal); }
.tabla-keret tr:last-child td { border-bottom: 0; }
.tabla-keret th { background: var(--homok-halvany); font-weight: 650; }
.kerdes-doboz { margin: 48px 0 28px; padding: 28px 30px 22px; background: var(--zold-halvany); border: 1px solid #c9d8cf; border-radius: 6px; }
.kerdes-doboz h2 { font-size: 1.7rem; font-weight: 500; color: var(--zold-mely); }
.kerdes-doboz ol { margin: 0; padding-left: 1.3em; }
.kerdes-doboz li { margin-bottom: .6em; }
.vissza { margin-top: 28px; }
.oldal-kep { border-radius: 6px; margin: 0 0 36px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hiba-kod { font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--zold); margin: 0 0 10px; }
.hiba-linkek { padding-left: 1.2em; }

/* ---------- footer (the one dark band) ---------- */
.lablec { background: var(--tinta); color: #d6d4cd; }
.lablec-sor { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.lablec p { margin: 0; }
.szojel-kicsi { color: var(--papir); }
.szojel-kicsi span { font-size: 1.5rem; }
.szojel-kicsi .jel { color: #9fc2b3; }
.lablec-szoveg { font-size: .9rem; line-height: 1.55; max-width: 70ch; }
.lablec-linkek { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .92rem; }
.lablec a { color: #e9e7e0; }
.lablec a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .panel { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "fej test" "fej anat" "fej kereso"; gap: 18px 36px; }
  .asztal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ablak + .ablak { border-left: 0; }
  .ablak { border-top: 1px solid var(--hajszal); }
  .ablak:nth-child(1), .ablak:nth-child(2) { border-top: 0; }
  .ablak:nth-child(even) { border-left: 1px solid var(--hajszal); }
  .ablak:last-child { grid-column: 1 / -1; border-left: 0; }
  .lablec-sor { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .fejlec-sor { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 12px; }
  .fomenu ul { gap: 2px 18px; }
  .nyito { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .asztal-fej { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .keret { padding-left: 16px; padding-right: 16px; }
  /* the ribbon becomes a two-column chapter list */
  .szalag { display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 3px; }
  .szelet { flex: none; padding: 9px 10px 9px 12px; align-items: flex-start; text-align: left; min-height: 64px; }
  .szelet:hover { transform: none; }
  .szelet-tart { writing-mode: horizontal-tb; transform: none; font-size: 1.1rem; }
  .szelet-nev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; line-height: 1.3; margin-top: 4px; }
  .szelet-szam { left: auto; right: 9px; bottom: auto; top: 9px; width: auto; }
  .panel { grid-template-columns: 1fr; grid-template-areas: "fej" "test" "anat" "kereso"; padding: 22px 18px; }
  .panel-tart { font-size: 2.6rem; }
  .dar b { font-size: 1.9rem; min-width: 44px; }
  .dar small { max-width: 74px; font-size: .7rem; }
  .asztal { grid-template-columns: 1fr; }
  .ablak, .ablak:nth-child(2) { border-top: 1px solid var(--hajszal); border-left: 0 !important; }
  .ablak:first-child { border-top: 0; }
  .lista li { grid-template-columns: 1fr; gap: 2px; }
  .lista-kep { aspect-ratio: 16 / 9; }
  .kerdes-doboz { padding: 22px 18px 16px; }
}
