/* DrPlusz — szerkesztőségi termékmagazin. Egy CSS, nincs keretrendszer. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,520;9..144,640&family=Outfit:wght@420;520;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,420;0,8..60,600;1,8..60,460&display=swap");

:root {
  --cream: #f3eee4;
  --paper: #fbf7f1;
  --ink: #1b2421;
  --muted: #5d675f;
  --teal: #1a6568;
  --teal-deep: #0f3f42;
  --gold: #a8843c;
  --line: #e3d6c4;
  --shadow: 0 18px 40px rgba(27, 36, 33, 0.06);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --text: "Source Serif 4", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --green: #1c6b45;
  --green-bg: #e6f3eb;
  --yellow: #7a5b10;
  --yellow-bg: #f8f0d2;
  --blue: #1d5684;
  --blue-bg: #e5f0f8;
  --grey: #5c6460;
  --grey-bg: #eeedeb;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 80% -10%, rgba(168, 132, 60, 0.08), transparent 60%),
    var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

.disclaimer {
  background: var(--teal-deep);
  color: #f6f1e8;
  font-family: var(--sans);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
.disclaimer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}
.disclaimer strong { font-weight: 600; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 74px;
  height: 42px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #f7f1e6;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-family: var(--sans); font-size: 0.95rem; }
nav a { text-decoration: none; color: var(--ink); }
nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--gold); }

.issue {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.85rem 0 0;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 640; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0.35rem 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.dek { font-size: 1.28rem; color: #2c3834; max-width: 40rem; margin: 0 0 1.4rem; }
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0;
}

.hero { padding: 1.4rem 0 0.4rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.gold-rule { width: 4.5rem; border: 0; border-top: 2px solid var(--gold); margin: 0.8rem 0 1.1rem; }

.grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 1.25rem;
  padding-bottom: 1rem;
}
.lead, .side article, .card, .panel, .plain {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.lead { overflow: hidden; }
.lead a.block, .side a.block, .card a.block { color: inherit; text-decoration: none; display: block; }
.lead img, .side img, .card img, figure img { width: 100%; object-fit: cover; }
.lead img { height: 340px; }
.side { display: grid; gap: 1rem; }
.side article { overflow: hidden; display: grid; grid-template-columns: 112px 1fr; }
.side img { height: 100%; min-height: 118px; }
.pad { padding: 1.05rem 1.15rem 1.15rem; }
.lead .pad { padding: 1.2rem 1.35rem 1.4rem; }
.meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.35rem 0 0; }
.lead h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.side h3 { font-size: 1.12rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { overflow: hidden; }
.card img { height: 180px; }

.legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0.4rem 0 0.2rem; }
.legend div, .badge {
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.35;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}
.legend div { border-radius: 14px; padding: 0.75rem 0.85rem; }
.b-green, .legend .g { background: var(--green-bg); color: var(--green); }
.b-yellow, .legend .y { background: var(--yellow-bg); color: var(--yellow); }
.b-blue, .legend .b { background: var(--blue-bg); color: var(--blue); }
.b-grey, .legend .n { background: var(--grey-bg); color: var(--grey); }
.badge { display: inline-block; font-weight: 600; margin: 0 0.35rem 0.35rem 0; border-radius: 999px; }

.section { padding: 0.4rem 0 2.4rem; }
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 2rem; }
.claim {
  border-left: 3px solid var(--line);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin: 0 0 1.05rem;
}
.not {
  background: #f7f1e4;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.15rem 0.3rem;
  margin: 1.4rem 0;
}
.not h2 { margin-top: 0; }
figure { margin: 0 0 1.2rem; }
figure img { border-radius: 16px; max-height: 460px; width: 100%; object-fit: cover; }
figcaption, .credit {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
ol.sources { padding-left: 1.2rem; }
ol.sources li { margin: 0 0 0.7rem; }
ol.sources a { word-break: break-word; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.panel { padding: 1.15rem 1.2rem 0.4rem; }
.panel header { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }

.plain { padding: 1.3rem 1.4rem; }
footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .wrap { display: grid; gap: 0.7rem; }
footer nav { font-size: 0.92rem; }
.note { font-size: 0.95rem; color: var(--muted); }

@media (max-width: 860px) {
  .grid, .cards, .legend, .compare, .side article { grid-template-columns: 1fr; }
  .lead img { height: 220px; }
  .side img { height: 180px; min-height: 0; }
  .mast { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  h1 { font-size: 2.35rem; }
  body { font-size: 1.05rem; }
}

.catalog-tools { display:flex; flex-wrap:wrap; gap:0.75rem; align-items:center; margin:0.4rem 0 1rem; }
.catalog-tools input { font-family:var(--sans); font-size:1rem; padding:0.65rem 0.8rem; border-radius:12px; border:1px solid var(--line); background:var(--paper); color:var(--ink); min-width:min(100%, 16rem); }
.alist { display:grid; gap:0.75rem; }
.arow { display:grid; grid-template-columns:112px 1fr; background:var(--paper); border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:var(--shadow); }
.arow a.block { display:contents; color:inherit; text-decoration:none; }
.arow img { width:112px; height:100%; min-height:96px; object-fit:cover; }
.arow h3 { font-size:1.2rem; }
.pager { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:1rem; }
.pager button { font-family:var(--sans); background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:0.4rem 0.75rem; cursor:pointer; }
.pager button[aria-current="page"] { background:var(--teal-deep); color:#fff; border-color:var(--teal-deep); }
.home-list { columns:2; gap:1.4rem; padding-left:1.1rem; }
.home-list li { break-inside:avoid; margin:0 0 0.35rem; }
@media (max-width:860px) {
  .home-list { columns:1; }
  .arow { grid-template-columns:1fr; }
  .arow img { width:100%; height:160px; }
}

/* Címlap: a fotó és a szöveg egymás alatt van, a kártyák egyszerű rácsban. Nincs abszolút réteg és nincs átnyúló cella. */
.fine {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.55rem 0 0;
}
.cover {
  display: block;
  margin: 1.1rem 0 1.3rem;
}
.cover-hero {
  position: static;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  background: #1b2421;
}
.cover-hero img {
  display: block;
  position: static;
  width: 100%;
  height: 420px;
  max-height: 52vh;
  object-fit: cover;
  object-position: center;
}
.cover-hero-copy {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 1.15rem 1.35rem 1.3rem;
  background: #1b2421;
  color: #f7f2ea;
}
.cover-hero-copy h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  max-width: 22ch;
  margin: 0.25rem 0 0.45rem;
}
.cover-hero-copy .dek {
  color: #f3ebe0;
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 0 0 0.45rem;
}
.cover-hero-copy .kicker { color: #e6c57a; }
.cover-hero-copy .credit, .cover-hero-copy .credit a,
.cover-hero-copy .meta { color: #efe6d8; }

.mag {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
.story {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: static;
}
.story a.block {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.story img {
  display: block;
  width: 100%;
  height: 180px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
}
.story .pad { padding: 0.8rem 0.95rem 0.95rem; }
.story h2, .story h3 { margin: 0.15rem 0 0.35rem; }
.story h3 { font-size: 1.2rem; }
.story .dek { font-size: 0.98rem; margin: 0; line-height: 1.4; }
.story .credit { margin: 0.45rem 0 0; }
.story .meta { margin: 0.15rem 0 0.35rem; }

@media (max-width: 860px) {
  .cover-hero { min-height: 0; }
  .cover-hero img { height: 220px; max-height: none; }
  .cover-hero-copy { padding: 1rem 1rem 1.1rem; }
  .cover-hero-copy h1 { max-width: none; font-size: 1.65rem; }
  .mag { grid-template-columns: 1fr; }
  .story img { width: 100%; height: 200px; }
}


/* Keretes különírás: a cikk folyásában, nem a címlap rácsában. */
.masik-oldal {
  position: static;
  margin: 1.45rem 0 1.55rem;
  padding: 0.9rem 1rem 1rem;
  background: #f7f1e4;
  border: 1px solid #c9b89a;
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  clear: both;
}
.masik-fej {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.prose .masik-oldal h2,
.masik-oldal h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
}
.masik-ikonok {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-deep);
  flex: 0 0 auto;
}
.masik-ikonok svg { display: block; }
.masik-jel {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.4rem 0 0.75rem;
}
.masik-paros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}
.masik-oszlop {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.55rem 0.5rem;
  min-width: 0;
}
.masik-cimke {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.masik-sav {
  display: block;
  height: 7px;
  width: 4.6rem;
  max-width: 70%;
  margin: 0.38rem 0 0.32rem;
  border-radius: 99px;
  background: var(--teal);
}
.masik-sav-b { background: var(--gold); }
.masik-szo {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.prose .masik-oldal p { margin: 0 0 0.75rem; }
.masik-forras {
  font-family: var(--sans);
  font-size: 0.82rem;
  margin: 0;
}
.masik-forras a { word-break: break-word; }
@media (max-width: 860px) {
  .masik-paros { grid-template-columns: 1fr; }
  .masik-fej { align-items: flex-start; }
}
