/* AuraFood journal and recipes (server-rendered /stati/ and /recepty/).
   Loaded after content.css: same palette, richer cards and reading layout. */
.wrap-tight { padding-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .1s linear; }

/* hub hero, search and chips */
.hub-hero { max-width: 860px; margin: 0 0 30px; }
.hub-hero h1 { font-size: clamp(32px, 5.4vw, 52px); margin: 10px 0 14px; font-weight: 800; }
.hub-hero--small h1 { font-size: clamp(30px, 4.6vw, 44px); }
.search { display: flex; align-items: center; gap: 10px; margin: 20px 0 6px; padding: 0 16px; height: 56px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); transition: border-color .2s; }
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16.5px; }
.search input::placeholder { color: var(--muted); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { white-space: nowrap; flex: none; }
.chip-n { color: var(--muted); font-weight: 700; margin-left: 2px; }
.chip-active { background: rgba(143,140,255, .14); border-color: var(--outline); color: var(--gold-light); }
.chip-sm { padding: 5px 11px; font-size: 13px; }
.chip-static { cursor: default; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.qf { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--hairline); background: transparent; color: var(--text-2); cursor: pointer; }
.qf[aria-pressed="true"] { border-style: solid; border-color: var(--gold); color: var(--gold-light); background: rgba(143,140,255, .1); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-title { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; font-weight: 800; }
.sec-title a { color: var(--text); text-decoration: none; }
.sec-title a:hover { color: var(--gold-light); }
.sec-more { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.sec-desc { color: var(--text-2); margin: 0 0 16px; font-size: 15.5px; max-width: 760px; }
.hub-section { margin: 0 0 46px; }
.search-results { margin: 0 0 40px; }
.search-empty { color: var(--text-2); padding: 24px; text-align: center; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--hairline); }

/* article cards */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.acard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-3px); border-color: var(--outline); color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.acard-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h, 40) 55% 32%), hsl(calc(var(--h, 40) + 40) 50% 18%)); }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .acard-media img, .feat-main:hover .acard-media img, .rcard:hover .rcard-media img { transform: scale(1.04); }
.acard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.acard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.acard-cat { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); }
.acard-title { font-size: 18px; line-height: 1.3; }
.acard-ex { font-size: 14.5px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard-meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); }

/* featured block */
.featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin: 0 0 50px; }
.feat-main { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); text-decoration: none; }
.feat-main:hover { border-color: var(--outline); color: var(--text); }
.feat-main .acard-media { aspect-ratio: 16 / 9; }
.feat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.feat-body b { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.feat-side { display: flex; flex-direction: column; gap: 12px; }
.feat-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); text-decoration: none; flex: 1; }
.feat-row:hover { border-color: var(--outline); color: var(--text); }
.feat-row .acard-media { aspect-ratio: 4 / 3; border-radius: 12px; }
.feat-row .acard-ph { font-size: 32px; }
.feat-row b { display: block; font-size: 16px; line-height: 1.3; margin: 4px 0; }

/* article page */
.post-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding-top: 4px; padding-bottom: 30px; }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.12; margin: 14px 0 16px; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(143,140,255, .12); border: 1px solid var(--outline); color: var(--gold-light); font-size: 13.5px; font-weight: 800; text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); margin: 0; }
.post-meta img { border-radius: 8px; }
.post-meta span:first-of-type { color: var(--text-2); font-weight: 700; }
.post-meta .dot { opacity: .5; }
.post-cover { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.post-cover img, .post-cover video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.post-cover--ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, hsl(var(--h) 60% 40% / .9), transparent 60%), linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 50) 45% 14%)); font-size: 110px; }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 48px; justify-content: center; padding-top: 10px; }
.post-layout:not(:has(.post-aside)) { grid-template-columns: minmax(0, 760px); }
.post-aside { position: relative; }
.toc-side { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); font-size: 14.5px; }
.toc-side b { display: block; margin-bottom: 8px; }
.toc-side ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc-side li { counter-increment: toc; margin: 0; }
.toc-side a { display: grid; grid-template-columns: 22px 1fr; padding: 6px 8px; border-radius: 10px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc-side a::before { content: counter(toc); color: var(--muted); font-weight: 700; font-size: 13px; }
.toc-side a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.toc-side a.is-active { background: rgba(143,140,255, .12); color: var(--gold-light); }
.toc-inline { display: none; }
.prose { font-size: 18px; line-height: 1.75; }
.prose > p:first-child { font-size: 19.5px; color: var(--text); }
.prose h2 { scroll-margin-top: 90px; padding-top: 8px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-figure { margin: 26px 0; }
.prose-figure img { border-radius: 18px; width: 100%; }
.prose-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 0 0 18px; }

/* recipe cards */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rcell[hidden] { display: none; }
.rcard { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.rcard:hover { transform: translateY(-3px); border-color: var(--outline); color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.rcard-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, #232a4a, #121a2a); }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rcard-time { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 14, 24, .78); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }
.rcard-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; flex: 1; }
.rcard-title { font-size: 17px; line-height: 1.3; }
.rcard-macros { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: 700; }
.rcard-macros span { padding: 4px 8px; border-radius: 8px; background: var(--raised); color: var(--text-2); }
.rcard-macros .kcal { background: rgba(143,140,255, .14); color: var(--gold-light); }

/* recipe page */
.recipe-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 34px; }
.recipe-cover { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #232a4a, #121a2a); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.recipe-cover img, .recipe-cover video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.recipe-cover .acard-ph { font-size: 120px; }
.recipe-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 12px 0 14px; font-weight: 800; }
.recipe-head .chips { margin-top: 0; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts li { padding: 12px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); text-align: center; }
.facts b { display: block; font-size: 19px; }
.facts span { font-size: 12.5px; color: var(--muted); }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.macro { position: relative; padding: 12px 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); overflow: hidden; }
.macro span { display: block; font-size: 13px; color: var(--muted); }
.macro b { font-size: 20px; }
.macro i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w); border-radius: 0 4px 4px 0; }
.macro-p i { background: var(--teal); }
.macro-f i { background: var(--coral); }
.macro-c i { background: var(--gold); }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--outline); color: var(--text); }
.recipe-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
.ingredients { position: sticky; top: 86px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--outline); scroll-margin-top: 90px; }
.ing-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ing-head h2 { margin: 0; font-size: 22px; }
.stepper { display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--hairline); background: var(--bg); }
.stepper button { width: 38px; height: 38px; border: 0; background: none; color: var(--gold-light); font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.ing-note { font-size: 13.5px; color: var(--muted); margin: 8px 0 12px; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { border-top: 1px solid var(--hairline); }
.ing-list label { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px 2px; cursor: pointer; font-size: 15.5px; }
.ing-list input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.ing-amt { font-weight: 700; color: var(--gold-light); white-space: nowrap; }
.ing-list input:checked ~ span { text-decoration: line-through; opacity: .5; }
.recipe-main h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 16px; }
.recipe-intro { margin-bottom: 36px; }
.rsteps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.rsteps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); scroll-margin-top: 90px; }
.rsteps li:target { border-color: var(--gold); }
.rstep-n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.rsteps p { margin: 0; font-size: 17px; line-height: 1.65; align-self: center; }

@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 760px); }
  .post-aside { display: none; }
  .toc-inline { display: block; }
  .featured { grid-template-columns: 1fr; }
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients { position: static; }
}
@media (max-width: 760px) {
  .post-hero, .recipe-hero { grid-template-columns: 1fr; gap: 20px; }
  .post-cover { order: -1; aspect-ratio: 16 / 10; border-radius: 20px; }
  .recipe-cover { aspect-ratio: 4 / 3; border-radius: 20px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .prose { font-size: 17px; }
  .feat-row { grid-template-columns: 96px 1fr; }
  .agrid, .rgrid { grid-template-columns: 1fr; }
  .rgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rcard-body { padding: 12px; }
  .rcard-title { font-size: 15px; }
  .rsteps li { grid-template-columns: 38px 1fr; padding: 14px; gap: 12px; }
  .rstep-n { width: 38px; height: 38px; font-size: 16px; }
}
@media (max-width: 380px) { .rgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .acard, .rcard, .acard-media img, .rcard-media img { transition: none; } }
