/*
 * Rakicka Food Concept — 1C subpages.
 * Loaded after home-1c/home-1c.css, which holds the shared 1C design system (fonts, colours, type,
 * buttons, header, footer, sections, cards). This file adds only what subpages need on top of it.
 */

/* ---------- Header: current page in the menus ---------- */
.mobile-menu li a[aria-current="page"] { color: var(--green-text); }
.mobile-menu li a[aria-current="page"] span { color: var(--green); }

/* ---------- Breadcrumb row ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--paper); }
.crumbs-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-block: 8px; }
.crumbs-back {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer;
}
.crumbs-back[hidden] { display: none; }
.crumbs-back:hover { border-color: var(--ink); }
.crumbs-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #b6bfa5; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.06; }
.page-hero .kicker + h1 { margin-top: 18px; }
.page-hero .lede { max-width: 56ch; margin-top: 22px; }
.page-hero .hero-actions { margin-top: 28px; }

/* ---------- Section chips (sticky "on this page" navigation) ---------- */
.chips-nav {
  position: sticky; top: calc(var(--header-h) + var(--wpab)); z-index: 40;
  background: rgb(255 255 255 / 94%); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.chips-nav ul {
  display: flex; gap: 8px; margin: 0; padding: 10px 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.chips-nav ul::-webkit-scrollbar { display: none; }
.chips-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink-2); font-size: .98rem; font-weight: 600; text-decoration: none;
}
.chips-nav a:hover { border-color: #b9c79a; color: var(--ink); }
.chips-nav a.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
/* Jumps to a section stop below the header and the chips row */
html:has(.chips-nav) { scroll-padding-top: calc(var(--header-h) + var(--wpab) + 80px); }

/* ---------- Text from the WordPress editor ---------- */
.prose { max-width: 72ch; padding-bottom: 8px; color: var(--ink-2); font-size: 1.1rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--serif); font-weight: 450; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.prose h3 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h4 { margin-top: 1.6em; font-size: 1.15rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green-text); }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { padding: 18px 22px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--paper); color: var(--ink); font: italic 400 1.2rem/1.5 var(--serif); }
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: 14px; }
.prose figure { margin-block: 1.6em; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.prose hr { height: 1px; margin-block: 2em; border: 0; background: var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose::after { content: ""; display: table; clear: both; }

/* ---------- "Co dalej?" card ---------- */
.next { margin-top: clamp(64px, 8vw, 112px); }
.next-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.next-card::after { right: auto; left: -120px; top: auto; bottom: -170px; width: 260px; height: 260px; opacity: .9; }
.next-main { position: relative; z-index: 1; }
.next-main p { max-width: 46ch; }
.next-card .hero-actions .btn--ghost { border-color: #fff; color: #fff; }
.next-card .hero-actions .btn--ghost:hover { background: #fff; color: var(--ink); }
.next-links { position: relative; z-index: 1; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.next-links a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 14px;
  padding: 16px 18px; border-radius: 14px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%);
  color: #fff; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.next-links a:hover { background: rgb(255 255 255 / 14%); border-color: var(--green); }
.next-links strong { grid-column: 1; font: 500 1.15rem/1.25 var(--serif); }
.next-links span { grid-column: 1; margin-top: 2px; color: #c9d2bb; font-size: .95rem; line-height: 1.4; }
.next-links svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--green); }

/* ---------- Admin preview badge (?rfc1c=1, only for logged-in editors) ---------- */
.preview-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 45; /* under the open phone menu (49) */
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow);
}
.preview-badge span { color: var(--green); font-size: 1.1rem; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .next-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .crumbs-row { min-height: 48px; gap: 10px; }
  .crumbs ol { font-size: .9rem; }
  .crumbs [aria-current="page"] { max-width: 48vw; }
  .page-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .prose { font-size: 1.0625rem; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .next-card .hero-actions .btn { flex: 1 1 100%; }
  .preview-badge { bottom: 88px; left: 12px; }
}
@media (max-width: 360px) {
  .mobile-bar .btn { padding: 0 10px; font-size: .95rem; white-space: nowrap; }
}
