/* VšetkyRecepty.sk / VšechnyRecepty.cz */
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url(fonts/fraunces-600-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: "Fraunces"; font-weight: 600; font-display: swap; src: url(fonts/fraunces-600-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --card: #fffdf9;
  --ink: #1f1b16;
  --ink-2: #5f564b;
  --line: #e4d9c7;
  --accent: #2f6b3a;        /* bylinková zelená */
  --accent-2: #24552d;
  --tomato: #c8462b;        /* hviezdičky, video */
  --radius: 12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.muted { color: var(--ink-2); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 66ch; margin: .4em 0 0; }

/* ---------- hlavička ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.brand-name { font: 600 1.45rem/1 var(--serif); letter-spacing: -.015em; }
.brand-name .tld { color: var(--accent); }
.head-search { margin-left: auto; flex: 0 1 380px; position: relative; }
.head-search svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-2); }
.head-search input { width: 100%; font: inherit; font-size: 15px; padding: 9px 14px 9px 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.nav-toggle { display: none; }
.nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
@media (max-width: 700px) {
  .head-search { display: none; }
  .nav-toggle { display: block; margin-left: auto; font: 600 14px var(--sans); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink); }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav-row { flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav a { font-size: 16px; padding: 9px 0; border: 0; }
}

/* ---------- vyhľadávanie ---------- */
.big-search { display: flex; gap: 8px; max-width: 600px; margin: 22px 0 8px; }
.big-search input { flex: 1; min-width: 0; font: inherit; padding: 13px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.big-search button { font: 600 15px var(--sans); padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; }
.big-search button:hover { background: var(--accent-2); }

/* ---------- úvod ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 48px; padding-bottom: 40px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; max-width: 18ch; }
.hero-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.hero-cats a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.hero-cats a:hover { border-color: var(--accent); color: var(--accent); }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.section-title { font-size: 1.6rem; margin: 0 0 18px; }
.section-title a { color: inherit; text-decoration: none; }

/* ---------- karty receptov ---------- */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img--none { display: grid; place-items: center; }
.card-initial { font: 600 3rem/1 var(--serif); color: rgba(31, 27, 22, .22); }
.sw0 { background: #ead9bf; } .sw1 { background: #d9e4cf; } .sw2 { background: #f1d3c5; } .sw3 { background: #e3dccb; } .sw4 { background: #d6e0e3; }
.badge-video { position: absolute; right: 8px; bottom: 8px; background: var(--tomato); color: #fff; font-size: 11px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.card-body { padding: 10px 2px 0; }
.card-title { display: block; font-weight: 650; font-size: 16px; line-height: 1.35; }
.card:hover .card-title { color: var(--accent); }
.card-meta { display: flex; gap: 12px; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }

/* ---------- zoznamy ---------- */
.page-head { padding-top: 28px; padding-bottom: 18px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 0; }
.crumbs { font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.count { font-size: 14px; margin: 12px 0 0; }
.empty { padding: 24px 0; color: var(--ink-2); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 0; flex-wrap: wrap; }
.pager a, .pager span[aria-current] { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.pager a { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span[aria-current] { background: var(--accent); color: #fff; }
.pager-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.gap { padding: 7px 4px; color: var(--ink-2); }
.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-tiles a { display: flex; justify-content: space-between; gap: 10px; padding: 13px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.cat-tiles a:hover { border-color: var(--accent); color: var(--accent); }
.cat-tiles .muted { font-weight: 400; font-size: 14px; }
.prose { max-width: 70ch; }
.tax-body { margin-top: 48px; color: var(--ink-2); }

/* ---------- recept ---------- */
.recipe-head { padding-top: 26px; max-width: 900px; margin: 0 auto; }
.recipe-title { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 0; }
.recipe-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; margin-top: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.facts div { padding: 10px 18px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 650; }
.recipe-hero { max-width: 900px; margin: 24px auto 0; }
.recipe-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-hero figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.recipe-body { display: grid; gap: 32px; margin-top: 32px; max-width: 1100px; }
@media (min-width: 900px) { .recipe-body { grid-template-columns: 340px 1fr; gap: 48px; align-items: start; } .ingredients { position: sticky; top: 130px; } }
.ingredients { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.ing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ing-head h2, .method h2, .box h2, .faq h2, .video h2 { font-size: 1.45rem; margin: 0; }
.servings { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.servings button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 17px; cursor: pointer; color: var(--ink); }
.ing-group { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 18px 0 0; }
.ing-list { list-style: none; padding: 0; margin: 10px 0 0; }
.ing-list li { border-bottom: 1px dashed var(--line); }
.ing-list li:last-child { border-bottom: 0; }
.ing-list label { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; cursor: pointer; }
.ing-list input { accent-color: var(--accent); transform: translateY(2px); flex: none; }
.ing-list input:checked + span { color: var(--ink-2); text-decoration: line-through; }
.ing-list b { font-weight: 650; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; }
.steps > li:not(.ad-slot) { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps > li:not(.ad-slot)::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 16px/36px var(--serif); text-align: center; }
.steps h3 { font-size: 1.1rem; margin: 5px 0 4px; }
.steps p { margin: 4px 0 0; }
.box, .faq, .video { margin-top: 34px; }
.box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.box ul { margin: 10px 0 0; padding-left: 20px; }
.box li + li { margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.yt { position: relative; display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; padding: 0; margin-top: 14px; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: var(--tomato); border-radius: 12px; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags a { font-size: 13.5px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--card); }
.tags a:hover { color: var(--accent); border-color: var(--accent); }

/* reklamné miesta (Protag): vyhradená výška, aby reklama neposúvala obsah (CLS) */
.ad-slot { display: flex; justify-content: center; align-items: center; overflow: hidden; }
.ad-slot--header { min-height: 100px; margin-top: 16px; }
@media (min-width: 760px) { .ad-slot--header { min-height: 250px; } }
.ad-slot--inline { min-height: 280px; margin: 28px 0; }
.ad-slot--side { min-height: 250px; margin-top: 20px; }

/* ---------- magazín ---------- */
.articles { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.article-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.article-card img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.article-card-title { font: 600 1.15rem/1.3 var(--serif); }
.article-card:hover .article-card-title { color: var(--accent); }
.article-card-perex { font-size: 15px; }
.article { max-width: 780px; padding-top: 28px; }
.article-hero { border-radius: var(--radius); margin: 20px 0; width: 100%; }

/* ---------- pätička ---------- */
.site-foot { margin-top: 72px; background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-brand { font: 600 1.3rem var(--serif); margin: 0 0 8px; }
.foot-h { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 10px; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin: 5px 0; }
.foot-list a { color: var(--ink); text-decoration: none; }
.foot-list a:hover { color: var(--accent); }
.foot-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot-partners { font-size: 12.5px; }
.foot-partners a { color: inherit; text-decoration: none; }
.foot-partners a:hover { text-decoration: underline; }

@media print {
  .site-head, .site-foot, .video, .tags, .section, .ad-slot, .servings, .recipe-hero { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe-body { display: block; }
  .ingredients { border: 0; padding: 0; position: static; }
}
