/*
 * site.css (citromolaj, "A" design: illustrated, lemon + deep green) - tokens, buttons, section title,
 * then content helpers. The shared affiliate partials rely on .btn, .btn-solid, .btn-line, .szekcio-cim,
 * .szekcio-cim--bal (+ --kicsi, --ink), ul.lista-pont, ol.list-plain and the colour tokens below.
 * Palette (Gyuri, 2026-10-10): cream #FFFBEA / #FDF3C6, lemon #F3D44A, deep green #2C5C26,
 * leaf #487330, olive #A3AD42, ink #21301C.
 */
:root {
  --paper: #FFFBEA; --cream: #FDF3C6; --lemon: #F3D44A; --deep: #2C5C26; --leaf: #487330;
  --olive: #A3AD42; --moss: #E6EBC2; --mint: #E9F0DF;
  --ink: #21301C; --text: #21301C; --soft: #4B5A40; --head: #FFFBEA;
  --egg: #FFF7DA; --band: #FDF3C6; --grey: #EEF0E0; --hair: #EADFA6; --card: #E6EBC2;
  --accent: #F3D44A; --accent-hover: #F7DF6E; --tag: #E6EBC2; --box: #FDF3C6;
  --nav: #FFFBEA; --foot: #21301C; --foottext: #D9DDC6;
}
body { color: var(--text); background: var(--paper); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
input::placeholder { color: #6B7560; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }

/* Buttons: pills. Solid = deep green with cream label, line = deep green outline, lemon = secondary. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 16px; font-weight: 700;
  border-radius: 999px; white-space: nowrap; box-sizing: border-box; text-decoration: none; max-width: 100%;
}
/* A long label (a shop domain, a count) wraps instead of pushing the page wider (390 px). */
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; } }
.btn-solid { background: var(--deep); color: var(--paper); border: 2px solid var(--deep); }
.btn-solid:hover, .btn-solid[aria-pressed="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--paper); text-decoration: none; }
.btn-line { background: transparent; color: var(--deep); border: 2px solid var(--deep); }
.btn-line:hover { background: var(--deep); color: var(--paper); text-decoration: none; }
.btn-line[aria-pressed="true"] { background: var(--lemon); color: var(--ink); }
.btn-lemon { background: var(--lemon); color: var(--ink); border: 2px solid var(--lemon); }
.btn-lemon:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); text-decoration: none; }
[hidden] { display: none !important; }

/* Section title: Bricolage, deep green, a short lemon pill under it. */
.szekcio-cim { text-align: center; }
.szekcio-cim > h2, .szekcio-cim > h1 {
  margin: 0; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700;
  font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; letter-spacing: -0.025em; color: var(--deep);
}
.szekcio-cim::after {
  content: ''; display: block; width: 64px; height: 6px; margin: 14px auto 0;
  background: var(--lemon); border-radius: 999px;
}
.szekcio-cim.szekcio-cim--bal { text-align: left; }
.szekcio-cim--bal::after { margin-left: 0; }
.szekcio-cim--bal > h2, .szekcio-cim--bal > h1 { font-size: clamp(28px, 4vw, 36px); }
.szekcio-cim--bal.szekcio-cim--kicsi > h2 { font-size: clamp(24px, 3.5vw, 30px); }
.szekcio-cim--ink::after { background: var(--deep); }

/* Hero: the lemon pattern behind a cream card (A design). */
.hero-minta { background: var(--cream) url(/assets/images/minta-citrom.webp) center/cover; }
.hero-kartya { background: rgba(255, 251, 234, 0.95); border-radius: 28px; box-shadow: 0 18px 50px rgba(44, 92, 38, 0.18); }
.hero-uveg { filter: drop-shadow(0 25px 30px rgba(33, 48, 28, 0.35)); }

/* Product placeholder (no shop images yet): a lemon drop on cream. */
.termek-helyorzo { background: var(--cream); display: grid; place-items: center; }
.termek-helyorzo img { width: 46%; height: auto; opacity: 0.9; }
/* A real product photo (tall bottle) in the same box: fit the height, keep the drop shadow of the hero. */
/* Most product photos are shop shots flattened on white: a white box with a hairline,
   the photo as large as fits, no shadow (a shadow would outline the white rectangle). */
.termek-helyorzo.termek-foto { position: relative; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }
.termek-helyorzo.termek-foto img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 88%; max-height: 88%; object-fit: contain; opacity: 1; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--leaf); }

.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Text resizer (base partial): scales the article body. */
.reading-size-1 .prose { font-size: 1.25rem; }
.reading-size-2 .prose { font-size: 1.4375rem; }
[data-text-size][aria-pressed="true"] { background-color: var(--deep); color: #ffffff; border-color: var(--deep); }

/* FAQ details */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .5s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }
.rotate-icon { transition: transform 0.3s ease; }
details[open] .rotate-icon { transform: rotate(180deg); }

/* FAQ accordion (hcms-faq, engine-generated) */
.hcms-faq { border-radius: 22px; margin: 1.5rem 0; background: var(--cream); padding: 0 1.5rem; }
.hcms-faq details + details { border-top: 1px solid var(--hair); }
.hcms-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 0; cursor: pointer; font-weight: 600; color: var(--deep);
}
.hcms-faq__q:hover { color: var(--leaf); }
.hcms-faq__icon {
  flex: 0 0 auto; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--deep); border-bottom: 2px solid var(--deep);
  transform: rotate(45deg); transition: transform 0.3s ease;
}
details[open] > .hcms-faq__q .hcms-faq__icon { transform: rotate(-135deg); }
.hcms-faq__a { padding: 0 0 1rem; color: var(--soft); }
.hcms-faq__a p { margin: 0 0 0.75rem; }
.hcms-faq__a p:last-child { margin-bottom: 0; }

/* Blockquote */
.quote { border-left: 6px solid var(--lemon); background-color: var(--cream); border-radius: 0 18px 18px 0; padding: 1rem 1.5rem; margin: 1.5rem 0; font-style: italic; line-height: 1.6; }
.quote p { margin: 0; }

/* Inline code, mark, del */
code { background-color: var(--grey); color: var(--ink); padding: 0.2rem 0.4rem; border-radius: 6px; font-size: 0.9em; }
mark { background-color: var(--cream); color: var(--ink); padding: 0.1rem 0.2rem; }
del { text-decoration: line-through; opacity: 0.7; }

/* Wide tables in the article body scroll horizontally. */
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Markdown table */
.md-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; overflow-x: auto; display: block; }
.md-table thead, .prose .md-table thead { background-color: var(--deep) !important; color: var(--paper) !important; }
.md-table th, .prose .md-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 600; border: 1px solid var(--deep); color: var(--paper) !important; }
.md-table tbody tr { border-bottom: 1px solid var(--hair); }
.md-table tbody tr:nth-child(even) { background-color: var(--egg); }
.md-table td { padding: 0.75rem 1rem; border: 1px solid var(--hair); }

/* Lists with visible markers (markdown body) */
ul { list-style-type: disc !important; padding-left: 2rem !important; margin: 1rem 0 !important; }
ul li { display: list-item !important; margin: 0.5rem 0 !important; line-height: 1.6 !important; }
ol { list-style-type: decimal !important; padding-left: 2rem !important; margin: 1rem 0 !important; }
ol li { display: list-item !important; margin: 0.5rem 0 !important; line-height: 1.6 !important; }

/* Plain list opt-out for theme lists. */
ul.list-plain, ol.list-plain { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }
ul.list-plain li, ol.list-plain li { display: flex !important; margin: 0 !important; line-height: normal !important; }

/* Bulleted fact list on product pages. */
ul.lista-pont { padding-left: 20px !important; margin: 0 !important; }
ul.lista-pont li { margin: 0 0 8px !important; line-height: 1.6 !important; }
ul.lista-pont li:last-child { margin-bottom: 0 !important; }

/* Image figure */
.img-figure { margin: 1.5rem 0; text-align: center; }
.img-figure img { width: auto; max-width: 100%; height: auto; border-radius: 18px; }
.img-figure figcaption { margin-top: 0.5rem; font-size: 0.9rem; color: var(--soft); font-style: italic; }

:target { scroll-margin-top: 96px; }

/* Content links */
.prose a { color: var(--deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; background-color: var(--cream); }

/* Callouts (Obsidian-style) */
.callout { border-left: 4px solid var(--leaf); border-radius: 0 16px 16px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; background-color: var(--mint); }
.callout-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.callout-icon { font-size: 1.2rem; }
.callout-content { margin-top: 0.75rem; }
.callout-content p:first-child { margin-top: 0; }
.callout-content p:last-child { margin-bottom: 0; }
.callout-warning, .callout-danger { border-left-color: #B45309; background-color: #FEF3C7; }

/* Editorial boxes (> [!roviden] / [!fontos] / [!tipp]) */
.callout.callout-roviden, .callout.callout-fontos, .callout.callout-tipp { border-left: 0; border-radius: 22px; padding: 1.5rem 1.6rem; margin: 2rem 0; }
.callout-roviden { background-color: var(--cream); }
.callout-fontos { background-color: #FCE7D6; }
.callout-tipp { background-color: var(--mint); }
.callout-roviden .callout-title, .callout-fontos .callout-title, .callout-tipp .callout-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--deep); margin-bottom: 0.25rem;
}
.callout-roviden .callout-content ul, .callout-fontos .callout-content ul, .callout-tipp .callout-content ul { margin: 0.5rem 0 0 !important; }

.prose ul li, .prose ol li, .prose li p { line-height: 1.7777778 !important; }

/* Product page body, uses and the safety block: two columns at full width from 1024 px, one column below
   (Gyuri, 2026-10-10). The text reads on continuously: a heading stays with its first block (.hasab-par from
   olaj_hasab_parok), and no paragraph, list item or table is split between the columns. */
@media (min-width: 1024px) {
  .olaj-hasabok { column-count: 2; column-gap: 56px; }
}
.olaj-hasabok .hasab-par, .olaj-hasabok p, .olaj-hasabok li, .olaj-hasabok table, .olaj-hasabok figure, .olaj-hasabok blockquote { break-inside: avoid; }
.olaj-hasabok h2 { break-after: avoid; }
.olaj-hasabok > :first-child, .olaj-hasabok > .hasab-par:first-child > h2 { margin-top: 0; }

/* Product page: the offers after the first 5 sit behind a <details> (no JS needed). Closed: the last visible
   offers fade out above the button, so it shows there is more; open: the button reads "Kevesebb bolt". */
.ajanlat-tobbi { position: relative; }
.ajanlat-tobbi > summary { list-style: none; cursor: pointer; position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto; white-space: normal; text-align: center; }
.ajanlat-tobbi > summary::-webkit-details-marker { display: none; }
.ajanlat-tobbi:not([open]) > summary::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 12px); width: 100vw; max-width: 1152px; height: 120px;
  background: linear-gradient(to bottom, rgba(255, 247, 218, 0), var(--egg) 92%); pointer-events: none;
}
.ajanlat-tobbi[open] .ajanlat-tobbi__nyit, .ajanlat-tobbi:not([open]) .ajanlat-tobbi__csuk { display: none; }
.ajanlat-tobbi[open] > summary { margin-bottom: 0.25rem; }
/* The header is dark: a lemon focus ring there. */
header :focus-visible, footer :focus-visible { outline-color: var(--lemon); }

/* Guide image viewer (site.js): the linked image opens large in a <dialog>. */
article .prose figure > a[href] { cursor: zoom-in; }
.kep-nagyito { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.kep-nagyito::backdrop { background: rgba(20, 18, 28, 0.82); }
.kep-nagyito img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 8px; background: #fff; cursor: zoom-out; }
.kep-nagyito-zar { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); cursor: pointer; }
