/*
Theme Name: ZAGrebi
Theme URI: https://zagrebi.food
Author: Ironing Club d.o.o.
Author URI: https://zagrebi.food
Description: Standalone theme for zagrebi.food. File based templates, Gutenberg content, ACF recipe fields. No parent theme, no page builder.
Version: 1.18.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zagrebi
Tags: blog, editorial, food
*/

/* ------------------------------------------------------------
   Self hosted fonts. Variable weight 300 to 900, unsubsetted,
   so latin-ext and the Croatian đ at U+0111 are included.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/RedHatDisplay-Variable.woff2') format('woff2-variations'),
       url('assets/fonts/RedHatDisplay-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/RedHatDisplay-Italic-Variable.woff2') format('woff2-variations'),
       url('assets/fonts/RedHatDisplay-Italic-Variable.woff2') format('woff2');
}

/* ============================================================
   0. DESIGN TOKENS (Single Source of Truth)
   ============================================================ */
:root {
  /* Core Brand Colors */
  --color-navy: #103a52;
  --color-navy-deep: #0c2f43;
  --color-navy-dark: #0a2636;
  --color-navy-line: #1c4b64;
  --color-yellow: #ffd700;
  --color-yellow-alt: #fbd50a;
  --color-yellow-accent: #f5c518;

  /* Category Accent Colors */
  --color-ispod: #1b9353;
  --color-ispod-deep: #17864a;
  --color-gosti: #ff003c;
  --color-gosti-deep: #a80028;
  /* Recipe course colours. -tint is the 40% hero fill over white,
     the base value is the text-safe version for labels and pills. */
  --course-predjelo: #17864a;
  --course-glavno:   #b5461a;
  --course-desert:   #a80028;
  --course-predjelo-tint: #a2cfb7;
  --course-glavno-tint:   #e1b5a3;
  --course-desert-tint:   #dc99a9;
  --color-kamo: #ff846a;
  --color-kamo-dark: #c0532e;
  --color-recepti: #1e5a8a;
  --color-paprika: #d1451f;

  /* Neutral UI Colors */
  --color-ink: #1a2c38;
  --color-muted: #33454f;
  --color-muted-subtle: #4a5b66;
  --color-muted-light: #6b767e;
  --color-creme: #f0ede9;
  --color-border: #e3e0db;
  --color-white: #ffffff;
  --color-success: #0f6b3a;
  --color-error: #b3261e;

  /* Typography Scale */
  --font-family-main: 'Red Hat Display', sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-2xl: 36px;
  --fs-3xl: 46px;

  /* Spacing & Layout */
  --site-max-width: 1180px;
  --content-max-width: 720px;
  --site-padding-mobile: 20px;
  --site-padding-desktop: 50px;

  /* Border Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 14px;
  --radius-pill: 999px;

  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-zoom: transform 0.6s ease;
}


/* ============================================================
   1. BASE LAYER
   Everything Astra used to supply. Reset, document typography,
   layout wrappers and Gutenberg alignment classes.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-family-main);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-family-main);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-navy);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--color-navy); text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 2px; transition: text-decoration-color .18s ease, color .18s ease; }
a:hover {
  color: var(--color-navy);
  text-decoration-color: var(--color-yellow);
  text-decoration-thickness: 2px;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
/* No height:auto on iframes. Embeds set their own height and auto collapses them. */
iframe, embed, object { max-width: 100%; display: block; }
figure { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--color-border); text-align: left; }

hr { border: 0; border-top: 1px solid var(--color-border); margin: 32px 0; }

:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }

.screen-reader-text, .zgs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Layout wrappers. Templates are full bleed by design. */
.zg-site, .zg-content { width: 100%; }
#primary, .content-area, #main, .site-main { width: 100%; max-width: 100%; margin: 0; padding: 0; }

/* Static pages, Gutenberg content column. */
.zg-page { padding: 0 0 60px; }
.zg-page .zg-ahead { max-width: var(--content-max-width); margin: 48px auto 24px; padding: 0 var(--site-padding-mobile); }
.zg-page .entry-content { max-width: var(--content-max-width); margin: 0 auto; padding: 0 var(--site-padding-mobile); font-size: var(--fs-md); line-height: 1.75; }

/* Gutenberg alignment. Core does not ship these for classic themes. */
.entry-content > .alignwide {
  width: 100vw; max-width: 1180px;
  margin-left: auto; margin-right: auto;
}
.entry-content > .alignfull {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption {
  font-size: var(--fs-sm); color: var(--color-muted-light); margin-top: 8px;
}

/* Own layout, not an override */
.home .zghp-hero, .home .zghp-okuswrap, .home .zghp-purger { width: 100%; margin-left: 0; margin-right: 0; }
.home .zghp-section { margin-left: auto; margin-right: auto; }

/* ============================================================
   2. HEADER (template-parts/header/zagrebi-header.php)
   ============================================================ */
.zgh {
  --navy: #103a52; 
  --navy-deep: #0c2f43; 
  --creme: #f0ede9; 
  --yellow: #ffd700;
  --ink: #1a2c38; 
  --muted: #4a5b66; 
  --border: #e3e0db;
  position: sticky; top: 0; z-index: 9990;
  background: #fff;
  font-family: var(--font-family-main);
  transition: transform .28s ease, box-shadow .28s ease;
}
.zgh * { box-sizing: border-box; }
.zgh a { text-decoration: none; color: inherit; }
.zgh.is-stuck { box-shadow: 0 2px 16px rgba(16,58,82,.10); }
.zgh.is-hidden { transform: translateY(-100%); }

.zgh-skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 14px;
  padding: 12px 18px; border-radius: 0 0 8px 0;
}
.zgh-skip:focus { left: 0; }

.zgh-bar { border-bottom: 1px solid var(--border); }
.zgh-in {
  max-width: 1180px; margin-left: auto; margin-right: auto;
  padding: 0 20px; height: 80px; display: flex; align-items: center; gap: 14px;
}

/* Logo */
.zgh-logo { display: flex; align-items: center; flex: 0 0 auto; }
.zgh-logo img { display: block; width: 132px; height: auto; }
.zgh-logo-txt { font-size: 23px; font-weight: 900; letter-spacing: -.8px; line-height: 1; color: var(--navy); }
.zgh-logo-txt i { font-style: normal; color: var(--color-paprika); }

/* Desktop Nav - Unified Navy Styling */
.zgh-nav { display: none; margin-left: auto; }
.zgh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.zgh-menu li { margin: 0; }
.zgh-menu a,
.zgh-c--kamo-idemo > a,
.zgh-c--recepti > a,
.zgh-c--ispod-povrsine > a,
.zgh-c--u-gostima > a,
.zgh-c--okus-mjeseca > a {
  position: relative; display: block; padding: 28px 0;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy) !important; transition: color .2s ease;
}

/* Hover and current: yellow underline, matching in-body links. */
.zgh-menu a:hover,
.zgh-menu .current-menu-item > a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Header Actions & Search Icon */
.zgh-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.zgh-icon {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--color-navy); transition: background .2s ease;
}
.zgh-icon:hover { background: var(--creme); }
.zgh-icon svg { width: 21px; height: 21px; fill: var(--color-navy); }

.zgh-cta {
  display: none; font-size: 12px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); background: var(--yellow);
  padding: 11px 18px; border-radius: 8px; transition: opacity .2s ease;
}
.zgh-cta:hover { opacity: .86; }

/* Burger Menu Toggle */
.zgh-burger {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  border-radius: 8px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
}
.zgh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }

/* Category Rail Indicator - Disabled */
.zgh-rail { display: none !important; }

.zgh :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Mobile Panel */
.zgh-panel {
  position: fixed; inset: 0; z-index: 9995; background: #fff;
  display: flex; flex-direction: column; opacity: 0; transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease; font-family: var(--font-family-main);
}
.zgh-panel.is-open { opacity: 1; transform: none; }
.zgh-panel-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 80px; border-bottom: 1px solid var(--color-border); }
.zgh-panel-t { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted-subtle); }
.zgh-close { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 30px; line-height: 1; color: var(--color-navy); margin-right: -8px; border-radius: 8px; }
.zgh-close:hover { background: var(--color-creme); }
.zgh-panel-nav { flex: 1; overflow-y: auto; padding: 26px 20px; }
.zgh-panel-menu { list-style: none; margin: 0; padding: 0; }
.zgh-panel-menu li { margin: 0 0 4px; }
.zgh-panel-menu a { display: block; padding: 12px 0; font-size: 27px; font-weight: 900; letter-spacing: -.6px; line-height: 1.15; color: var(--color-navy); }
.zgh-panel-menu .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.zgh-panel-foot { padding: 20px; border-top: 1px solid var(--color-border); }
.zgh-panel-cta { display: block; text-align: center; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--color-navy); background: var(--color-yellow); padding: 16px 20px; border-radius: 10px; }

/* Search Overlay */
.zgh-search { position: fixed; inset: 0; z-index: 9996; background: rgba(12,47,67,.96); display: flex; align-items: flex-start; justify-content: center; opacity: 0; transition: opacity .22s ease; font-family: var(--font-family-main); }
.zgh-search.is-open { opacity: 1; }
.zgh-search-in { width: 100%; max-width: 680px; padding: 80px 20px 0; position: relative; }
.zgh-search .zgh-close { position: absolute; top: 18px; right: 14px; color: #fff; }
.zgh-search .zgh-close:hover { background: rgba(255,255,255,.12); }
.zgh-search-t { font-size: clamp(26px,6vw,38px); font-weight: 900; letter-spacing: -.6px; color: #fff; margin: 0 0 20px; }
.zgh-search .zgs-form input { border-color: transparent; }
.zgh-search .zgs-form input:focus { border-color: var(--color-yellow); }
.zgh-panel[hidden], .zgh-search[hidden] { display: none !important; }

@media(min-width: 921px) {
  .zgh-in { height: 80px; gap: 30px; }
  .zgh-burger { display: none; }
  .zgh-nav { display: block; }
  .zgh-actions { margin-left: 0; }
  .zgh-logo img { width: 150px; }
  .zgh-logo-txt { font-size: 26px; }
  .zgh-cta { display: inline-block; margin-left: 8px; }
  .zgh-panel { display: none; }
}

@media(prefers-reduced-motion: reduce) {
  .zgh, .zgh-panel, .zgh-search { transition: none !important; }
  .zgh.is-hidden { transform: none; }
}

/* ============================================================
   3. HOMEPAGE (front-page.php)
   ============================================================ */
.zghp-kicker {
  display: inline-block; font-size: var(--fs-base); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-ispod); margin: 0 0 14px;
}
.k-ispod { color: var(--color-ispod); }
.k-gosti { color: var(--color-gosti); }
.k-kamo { color: var(--color-kamo); }
.k-recepti { color: var(--color-recepti); }
.k-okus { color: var(--color-yellow); }

.zghp-hero:hover .zghp-hero-h,
.zghp-lead:hover .zghp-lead-h,
.zghp-row:hover .zghp-row-h,
.zghp-rcard:hover .zghp-rcard-h {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px;
}
.zghp-more:hover { color: var(--color-yellow); text-decoration: underline; text-underline-offset: 3px; }
.zghp-cta:hover { color: var(--color-yellow); }

/* Hero 50/50 */
.zghp-hero { display: block; text-decoration: none; }
.zghp-hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.zghp-hero-body { padding: 30px var(--site-padding-mobile) 38px; }
.zghp-hero--ispod-povrsine .zghp-hero-body { background: rgba(27, 147, 83, .12); }
.zghp-hero--u-gostima .zghp-hero-body { background: rgba(255, 0, 60, .08); }
.zghp-hero--kamo-idemo .zghp-hero-body { background: rgba(255, 132, 106, .14); }
.zghp-hero-h { font-size: var(--fs-xl); font-weight: 900; line-height: 1.08; letter-spacing: -.5px; color: var(--color-navy); margin: 0 0 16px; }
.zghp-hero-body p { font-size: var(--fs-base); line-height: 1.65; color: var(--color-muted); margin: 0 0 24px; max-width: 46ch; }
.zghp-cta { display: inline-block; font-size: var(--fs-base); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-navy); transition: var(--transition-fast); }

/* Sections */
.zghp-section { padding: 56px var(--site-padding-mobile) 0; }
.zghp-sechead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; margin-bottom: 30px; border-bottom: 3px solid var(--color-navy);
}
.zghp-sechead h2 { font-size: 15px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--color-navy); margin: 0; }
.zghp-more { font-size: var(--fs-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-recepti); white-space: nowrap; transition: var(--transition-fast); }
.zghp-sec--ispod .zghp-sechead { border-color: var(--color-ispod); } .zghp-sec--ispod .zghp-sechead h2 { color: var(--color-ispod); }
.zghp-sec--gosti .zghp-sechead { border-color: var(--color-gosti); } .zghp-sec--gosti .zghp-sechead h2 { color: var(--color-gosti); }
.zghp-sec--kamo .zghp-sechead { border-color: var(--color-kamo); } .zghp-sec--kamo .zghp-sechead h2 { color: var(--color-kamo); }
.zghp-sec--recepti .zghp-sechead { border-color: var(--color-yellow); }
.zghp-sec--trending .zghp-sechead { border-color: var(--color-navy); }

/* Lead Item */
.zghp-lead { display: block; text-decoration: none; margin-bottom: 34px; }
.zghp-ph { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 18px; background: var(--color-creme); }
.zghp-ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.zghp-lead:hover .zghp-ph img { transform: scale(1.03); }
.zghp-lead-h { font-size: 27px; font-weight: 900; line-height: 1.1; color: var(--color-navy); margin: 0 0 12px; letter-spacing: -.4px; }
.zghp-lead p { font-size: var(--fs-base); line-height: 1.6; color: var(--color-muted); margin: 0; }

/* Grid Rows */
.zghp-rows { display: flex; flex-direction: column; }
.zghp-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--color-border); text-decoration: none; }
.zghp-row:last-child { border-bottom: 1px solid var(--color-border); }
.zghp-row-ph { flex: 0 0 96px; width: 96px; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-creme); }
.zghp-row-ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.zghp-row:hover .zghp-row-ph img { transform: scale(1.05); }
.zghp-row-c { flex: 1; }
.zghp-row-k { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 5px; }
.zghp-row-h { font-size: 17px; font-weight: 800; line-height: 1.18; color: var(--color-navy); margin: 0; letter-spacing: -.2px; }

/* Recipe Cards */
.zghp-recipes { display: flex; flex-direction: column; gap: 36px; }
.zghp-rcard { display: block; text-decoration: none; }
.zghp-rcard .zghp-ph { aspect-ratio: 16/11; }
.zghp-rmeta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.zghp-rmeta .cat { color: var(--color-ispod); } .zghp-rmeta .sep { width: 1px; height: 12px; background: var(--color-border); } .zghp-rmeta .time { color: var(--color-gosti); }
.zghp-rcard-h { font-size: 21px; font-weight: 900; line-height: 1.12; color: var(--color-navy); margin: 0 0 8px; letter-spacing: -.3px; }
.zghp-rcard p { font-size: 15px; line-height: 1.55; color: var(--color-muted); margin: 0; }

/* Okus Mjeseca */
.zghp-okuswrap { margin-top: 64px; background: var(--color-navy-deep); }
.zghp-okus { max-width: var(--site-max-width); margin: 0 auto; }
.zghp-okus-in { display: block; }
.zghp-okus-frame { position: relative; aspect-ratio: 1/1; padding: 20px; box-sizing: border-box; }
.zghp-okus-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-2xl); }
.zghp-okus-frame b {
  position: absolute; inset: 20px; border-radius: var(--radius-2xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--color-white); font-size: 56px; font-weight: 900; text-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.zghp-okus-frame b em { font-style: normal; color: var(--color-yellow); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; margin-top: 2px; }
.zghp-okus-text { padding: 34px var(--site-padding-mobile) 40px; color: var(--color-white); }
.zghp-okus-text h2 { font-size: 32px; font-weight: 900; letter-spacing: 1px; margin: 0 0 16px; text-transform: uppercase; color: var(--color-white); }
.zghp-okus-text p { font-size: var(--fs-base); line-height: 1.6; color: rgba(255,255,255,.88); margin: 0 0 26px; }
.zghp-btn {
  display: inline-block; background: var(--color-yellow); color: var(--color-navy); font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; font-size: 14px; padding: 15px 32px; border-radius: var(--radius-md); transition: var(--transition-fast); text-decoration: none;
}
.zghp-btn:hover { opacity: .85; }

/* Purger Section */
.zghp-purger { margin-top: 64px; background: var(--color-navy-deep); text-align: center; padding: 80px var(--site-padding-mobile); }
.zghp-purger .top { color: var(--color-yellow); font-weight: 900; font-size: var(--fs-md); letter-spacing: .04em; text-transform: uppercase; }
.zghp-purger .big { color: var(--color-white); font-weight: 900; font-size: clamp(44px, 14vw, 72px); line-height: 1; margin: 6px 0 16px; }
.zghp-purger .sub { color: rgba(255,255,255,.82); font-size: var(--fs-base); line-height: 1.5; max-width: 36ch; margin: 0 auto; }

@media(min-width: 900px) {
  .zghp-hero { display: flex; align-items: stretch; min-height: 560px; }
  .zghp-hero-img { width: 50%; flex-shrink: 0; aspect-ratio: auto; min-height: 560px; }
  .zghp-hero-body { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 60px 56px; }
  .zghp-hero-h { font-size: var(--fs-3xl); } .zghp-hero-body p { font-size: 17px; }
  .zghp-section { max-width: var(--site-max-width); margin: 0 auto; padding: 80px var(--site-padding-desktop) 0; }
  .zghp-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px; }
  .zghp-lead .zghp-ph { margin-bottom: 0; aspect-ratio: 4/3; }
  .zghp-lead-h { font-size: var(--fs-2xl); }
  .zghp-rows { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; }
  .zghp-row { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; }
  .zghp-row:last-child { border: 0; }
  .zghp-row-ph { flex: none; width: 100%; aspect-ratio: 16/10; margin-bottom: 14px; }
  .zghp-row-k { font-size: var(--fs-xs); } .zghp-row-h { font-size: 20px; }
  .zghp-recipes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; }
  .zghp-okuswrap { margin-top: 100px; }
  .zghp-okus-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .zghp-okus-frame { height: 100%; padding: 32px; }
  .zghp-okus-frame b { inset: 32px; }
  .zghp-okus-text { padding: 56px 52px; }
  .zghp-okus-text h2 { font-size: 40px; }
  .zghp-purger { margin-top: 100px; padding: 120px var(--site-padding-desktop); }
}


/* ============================================================
   4. CATEGORY ARCHIVES
   ============================================================ */

/* 4A. ISPOD POVRŠINE (category-ispod-povrsine.php) */
.zgi {
  --acc: var(--color-ispod);
  font-family: var(--font-family-main);
  color: var(--color-ink);
}
.zgi a { text-decoration: none; color: inherit; }
.zgi img { display: block; }
/* Hero colour map.
   The fill is the deepened variant of each category colour, not the base one.
   Base green and base red only reach 3.9:1 against white, which fails AA for
   body copy. The deepened variants clear 4.5:1, matching the precedent already
   set by Kamo idemo, whose hero uses deepened coral rather than #ff846a.
   Keyed off the body class as well as the wrapper modifier, so a template that
   forgets the modifier still gets the right colour. */
.zgi {
  --zgi-hero-bg: var(--color-navy);
  --zgi-hero-fg: #ffffff;
  --zgi-hero-fg-soft: rgba(255, 255, 255, .82);
}
.zgi--ispod-povrsine,
.category-ispod-povrsine .zgi { --zgi-hero-bg: var(--color-ispod-deep); }

.zgi--u-gostima,
.category-u-gostima .zgi { --zgi-hero-bg: var(--color-gosti-deep); }

.zgi--kamo-idemo,
.category-kamo-idemo .zgi { --zgi-hero-bg: var(--color-kamo-dark); }

.zgi-hero { display: block; background: var(--color-creme); width: 100%; }
.zgi-hero-body { background: var(--zgi-hero-bg); }
.zgi-hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.zgi-hero-body { padding: 30px var(--site-padding-mobile) 38px; }
.zgi-hero-h { font-size: var(--fs-xl); font-weight: 900; line-height: 1.08; letter-spacing: -.5px; color: var(--zgi-hero-fg); margin: 0 0 16px; }
.zgi-hero-h a { color: inherit; text-decoration: none; }
.zgi-hero-h a:hover { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zgi-hero-sub {
  font-size: var(--fs-base); line-height: 1.65; color: var(--zgi-hero-fg-soft);
  margin: 0 0 24px; max-width: 46ch;
  /* Clamped so a long excerpt cannot make one archive hero taller than another. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.zgi-hero-h {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.zgi-hero-cta { display: inline-block; font-size: var(--fs-base); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--zgi-hero-fg); transition: var(--transition-fast); }
.zgi-hero-cta:hover { color: var(--color-yellow); }
.zgi-hero-body .zghp-kicker { background: none; color: var(--zgi-hero-fg); font-size: var(--fs-sm); letter-spacing: .16em; opacity: .9; margin: 0 0 12px; }
.zgi-intro { max-width: var(--site-max-width); margin: 0 auto; padding: 56px var(--site-padding-mobile) 8px; }
.zgi-tag { font-size: 26px; font-weight: 900; letter-spacing: -.4px; color: var(--color-navy); margin: 0 0 12px; }
.zgi-desc { font-size: var(--fs-base); line-height: 1.6; color: var(--color-muted); margin: 0; max-width: 62ch; }
.zgi-pageno { font-weight: 800; color: var(--color-muted); font-size: .7em; letter-spacing: 0; }
.zgi-rule { max-width: var(--site-max-width); margin: 24px auto 0; padding: 0 var(--site-padding-mobile); }
.zgi-rule span { display: block; height: 3px; background: var(--acc); }
.zgi-grid { max-width: var(--site-max-width); margin: 0 auto; padding: 34px var(--site-padding-mobile) 0; display: grid; grid-template-columns: 1fr; gap: 38px; }
.zgi-card-ph { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-creme); margin-bottom: 16px; }
.zgi-card-ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.zgi-card:hover .zgi-card-ph img { transform: scale(1.03); }
.zgi-card-h { font-size: var(--fs-lg); font-weight: 900; line-height: 1.12; letter-spacing: -.3px; color: var(--color-navy); margin: 0 0 10px; }
.zgi-card:hover .zgi-card-h { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zgi-card-ex { font-size: 15px; line-height: 1.55; color: var(--color-muted); margin: 0; }
.zgi-card-date { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--color-muted-light); margin-top: 10px; }
.zgi-empty { max-width: var(--site-max-width); margin: 24px auto 90px; padding: 0 var(--site-padding-mobile); font-size: var(--fs-base); color: var(--color-muted); }
.zgi-pag { max-width: var(--site-max-width); margin: 0 auto; padding: 54px var(--site-padding-mobile) 90px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.zgi-pag .page-numbers { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; border-radius: var(--radius-md); border: 2px solid var(--color-border); color: var(--color-navy); padding: 0 6px; transition: var(--transition-fast); }
.zgi-pag a.page-numbers:hover { border-color: var(--color-navy); }
.zgi-pag .zgi-cur { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.zgi-pag .prev, .zgi-pag .next { width: auto; padding: 0 18px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.zgi-pag .dots { border: 0; }

.zgi-loadmore-wrap { display: flex; justify-content: center; align-items: center; margin: 54px auto 90px; max-width: var(--site-max-width); padding: 0 var(--site-padding-mobile); }
#zgi-loadmore-btn { font-family: inherit; cursor: pointer; font-size: var(--fs-sm); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--color-navy); background: var(--color-yellow); border: 0; border-radius: var(--radius-lg); padding: 16px 36px; transition: var(--transition-fast); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
#zgi-loadmore-btn:hover { opacity: .9; transform: translateY(-1px); }
#zgi-loadmore-btn:active { transform: translateY(1px); }
#zgi-loadmore-btn:disabled { opacity: .55; cursor: progress; transform: none; }

@media(min-width: 900px) {
  /* Fixed height rather than min-height, so every archive hero is identical
     regardless of headline length or whether a kicker is present. */
  .zgi-hero { display: flex; align-items: stretch; height: 560px; }
  .zgi-hero-img { width: 50%; flex-shrink: 0; aspect-ratio: auto; height: 560px; object-fit: cover; }
  .zgi-hero-body { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 60px 56px; }
  .zgi-hero-h { font-size: var(--fs-3xl); } .zgi-hero-sub { font-size: 17px; } .zgi-tag { font-size: 32px; }
  .zgi-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px 34px; padding-top: 44px; }
}
@media(min-width: 600px) and (max-width: 899px) { .zgi-grid { grid-template-columns: 1fr 1fr; } }

/* 4B. GENERIC CATEGORY (category.php) */
.zgc {
  --acc: var(--color-navy);
  font-family: var(--font-family-main);
  color: var(--color-ink);
}
.zgc a { text-decoration: none; color: inherit; }
.zgc img { display: block; }
.zgc-hero { display: block; background: var(--color-creme); width: 100%; }
.zgc-hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.zgc-hero-body { padding: 30px var(--site-padding-mobile) 38px; }
.zgc-hero-h { font-size: var(--fs-xl); font-weight: 900; line-height: 1.08; letter-spacing: -.5px; color: var(--color-navy); margin: 0 0 16px; }
.zgc-hero-h a:hover { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zgc-hero-sub { font-size: var(--fs-base); line-height: 1.65; color: var(--color-muted); margin: 0 0 24px; max-width: 46ch; }
.zgc-hero-cta { display: inline-block; font-size: var(--fs-base); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-navy); transition: var(--transition-fast); }
.zgc-hero-cta:hover { color: var(--color-yellow); }
.zgc-intro { max-width: var(--site-max-width); margin: 0 auto; padding: 56px var(--site-padding-mobile) 8px; }
.zgc-tag { font-size: 26px; font-weight: 900; letter-spacing: -.4px; color: var(--color-navy); margin: 0 0 12px; }
.zgc-desc { font-size: var(--fs-base); line-height: 1.6; color: var(--color-muted); margin: 0; max-width: 62ch; }
.zgc-pageno { font-weight: 800; color: var(--color-muted); font-size: .7em; letter-spacing: 0; }
.zgc-rule { max-width: var(--site-max-width); margin: 24px auto 0; padding: 0 var(--site-padding-mobile); }
.zgc-rule span { display: block; height: 3px; background: var(--acc); }
.zgc-grid { max-width: var(--site-max-width); margin: 0 auto; padding: 34px var(--site-padding-mobile) 0; display: grid; grid-template-columns: 1fr; gap: 38px; }
.zgc-card-ph { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-creme); margin-bottom: 16px; }
.zgc-card-ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.zgc-card:hover .zgc-card-ph img { transform: scale(1.03); }
.zgc-card-h { font-size: var(--fs-lg); font-weight: 900; line-height: 1.12; letter-spacing: -.3px; color: var(--color-navy); margin: 0 0 10px; }
.zgc-card:hover .zgc-card-h { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zgc-card-ex { font-size: 15px; line-height: 1.55; color: var(--color-muted); margin: 0; }
.zgc-card-date { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--color-muted-light); margin-top: 10px; }
.zgc-empty { max-width: var(--site-max-width); margin: 24px auto 90px; padding: 0 var(--site-padding-mobile); font-size: var(--fs-base); color: var(--color-muted); }
.zgc-pag { max-width: var(--site-max-width); margin: 0 auto; padding: 54px var(--site-padding-mobile) 90px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.zgc-pag .page-numbers { min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; border-radius: var(--radius-md); border: 2px solid var(--color-border); color: var(--color-navy); padding: 0 6px; transition: var(--transition-fast); }
.zgc-pag a.page-numbers:hover { border-color: var(--color-navy); }
.zgc-pag .zgc-cur { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.zgc-pag .prev, .zgc-pag .next { width: auto; padding: 0 18px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.zgc-pag .dots { border: 0; }

@media(min-width: 900px) {
  .zgc-hero { display: flex; align-items: stretch; min-height: 560px; }
  .zgc-hero-img { width: 50%; flex-shrink: 0; aspect-ratio: auto; min-height: 560px; }
  .zgc-hero-body { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 60px 56px; }
  .zgc-hero-h { font-size: var(--fs-3xl); } .zgc-hero-sub { font-size: 17px; } .zgc-tag { font-size: 32px; }
  .zgc-grid { grid-template-columns: 1fr 1fr 1fr; gap: 40px 34px; padding-top: 44px; }
}
@media(min-width: 600px) and (max-width: 899px) { .zgc-grid { grid-template-columns: 1fr 1fr; } }


/* ============================================================
   5. RECEPTI ARCHIVE (category-recepti.php)
   ============================================================ */
.rh { 
  font-family: var(--font-family-main); 
  color: var(--color-ink); 
  width: 100%;
  margin: 0 auto;
  padding-bottom: 80px;
}
.rh * { box-sizing: border-box; }
.rh a { text-decoration: none; color: inherit; }
.rh img { display: block; }
.rh h2 { margin: 0; }

/* Header & Search Bar */
.rh-head { width: 100%; background: rgba(30, 90, 138, .10); border-bottom: 1px solid var(--color-border); }
.rh-head-in { max-width: var(--site-max-width); margin: 0 auto; padding: 48px var(--site-padding-mobile) 44px; }
.rh-h1 { font-size: var(--fs-xl); font-weight: 900; letter-spacing: -.5px; color: var(--color-navy); margin: 0 0 16px; line-height: 1.08; }
.rh-lede { font-size: var(--fs-base); line-height: 1.65; color: var(--color-muted); margin: 0 0 24px; max-width: 46ch; }

.rh-search { display: flex; gap: 10px; max-width: 580px; }
.rh-search input { 
  flex: 1; min-width: 0; font-family: inherit; font-size: 15px; color: var(--color-ink); 
  background: var(--color-white); border: 2px solid var(--color-border); border-radius: var(--radius-lg); 
  padding: 12px 18px; outline: none; transition: var(--transition-fast); 
}
.rh-search input:focus { border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(16, 58, 82, 0.1); }
.rh-search button { 
  font-family: inherit; cursor: pointer; font-size: var(--fs-sm); font-weight: 900; 
  letter-spacing: .06em; text-transform: uppercase; color: var(--color-white); background: var(--color-paprika); 
  border: 0; border-radius: var(--radius-lg); padding: 0 24px; transition: var(--transition-fast); 
}
.rh-search button:hover { opacity: .9; transform: translateY(-1px); }

/* Featured Carousel Strip */
.rh-feat { max-width: var(--site-max-width); margin: 0 auto; padding: 48px var(--site-padding-mobile) 0; overflow: hidden; }
.rh-sechead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--color-navy); }
.rh-sechead h2 { font-size: 16px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--color-navy); }
.rh-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.rh-arrows button { 
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-border); 
  background: var(--color-white); color: var(--color-navy); font-size: 16px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); 
}
.rh-arrows button:hover { border-color: var(--color-navy); background: var(--color-navy); color: var(--color-white); }

.rh-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 12px; -ms-overflow-style: none; scrollbar-width: none; }
.rh-track::-webkit-scrollbar { display: none; }
.rh-fcard { flex: 0 0 280px; scroll-snap-align: start; text-decoration: none; }
.rh-fcard .ph { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-creme); margin-bottom: 12px; }
.rh-fcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.rh-fcard:hover .ph img { transform: scale(1.04); }
.rh-fcard h3 { font-size: 18px; font-weight: 800; line-height: 1.18; letter-spacing: -.2px; color: var(--color-navy); margin: 0; }
.rh-fcard:hover h3 { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Filter Chips & Meta */
/* Recipe card meta: time, difficulty, course.
   Rendered by zagrebi_recipe_meta_row() in inc/recipe-meta.php.
   All three are plain text, no filled pills. */
.rh-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.rh-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--color-border); }
.rh-meta .time { color: var(--color-recepti); }

/* Difficulty: plain muted text, no background. */
.rh-meta .diff { color: var(--color-muted-light); }

/* Course: coloured by which course it is. Text-safe values, all pass AA on white. */
.rh-meta .cat { color: var(--color-paprika); }
.rh-meta .cat--predjelo   { color: var(--course-predjelo); }
.rh-meta .cat--glavno-jelo { color: var(--course-glavno); }
.rh-meta .cat--desert     { color: var(--course-desert); }

/* Same row on the homepage recipe cards. */
.zghp-rcard .rh-meta { margin-bottom: 8px; }

.rh-filter { max-width: var(--site-max-width); margin: 0 auto; padding: 42px var(--site-padding-mobile) 0; }
.rh-filter h2 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted-subtle); margin: 0 0 14px; }
.rh-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rh-chip { font-size: 13px; font-weight: 800; color: var(--color-navy); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 8px 18px; cursor: pointer; transition: var(--transition-fast); white-space: nowrap; }
.rh-chip:hover { border-color: var(--color-navy); background: var(--color-creme); }
.rh-chip.on { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }

/* Grid & Pagination */
.rh-grid { max-width: var(--site-max-width); margin: 0 auto; padding: 32px var(--site-padding-mobile) 0; display: grid; grid-template-columns: 1fr; gap: 36px 28px; }
.rh-card { display: block; text-decoration: none; }
.rh-card .ph { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-creme); margin-bottom: 12px; }
.rh-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-zoom); }
.rh-card:hover .ph img { transform: scale(1.03); }
.rh-card h3 { font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -.2px; color: var(--color-navy); margin: 0 0 8px; }
.rh-card:hover h3 { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rh-card p { font-size: 14px; line-height: 1.55; color: var(--color-muted); margin: 0; }

.rh-pag { max-width: var(--site-max-width); margin: 50px auto 0; padding: 0 var(--site-padding-mobile); display: flex; justify-content: center; align-items: center; gap: 8px; }
.rh-pag .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-md); background: var(--color-white); border: 1px solid var(--color-border); color: var(--color-navy); font-size: 14px; font-weight: 800; text-decoration: none; transition: var(--transition-fast); }
.rh-pag .page-numbers:hover { border-color: var(--color-navy); background: var(--color-creme); }
.rh-pag .page-numbers.cur { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.rh-empty { max-width: var(--site-max-width); margin: 40px auto 90px; padding: 0 var(--site-padding-mobile); font-size: var(--fs-base); color: var(--color-muted); }

@media(min-width: 600px) { .rh-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 900px) {
  .rh-head-in { padding: 56px var(--site-padding-desktop) 48px; }
  .rh-feat, .rh-filter, .rh-grid, .rh-pag, .rh-empty { padding-left: var(--site-padding-desktop); padding-right: var(--site-padding-desktop); }
  .rh-h1 { font-size: var(--fs-3xl); }
  .rh-lede { font-size: 17px; }
  .rh-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rh-fcard { flex-basis: 310px; }
}
@media(min-width: 1100px) { .rh-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }


/* ============================================================
   6. SINGLE ARTICLE (single.php)
   ============================================================ */
.single-post .zg-ahead { max-width: 760px; margin: 0 auto; padding: 44px var(--site-padding-mobile) 24px; text-align: center; font-family: var(--font-family-main); }
.single-post .zg-acat { display: inline-block; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.zg-acat--ispod-povrsine { color: var(--color-ispod); }
.zg-acat--u-gostima { color: var(--color-gosti); }
.zg-acat--kamo-idemo { color: var(--color-kamo-dark); }
.single-post .zg-atitle { font-size: clamp(34px, 7vw, 56px); font-weight: 900; line-height: 1.04; color: var(--color-navy); margin: 0 0 18px; }
.single-post .zg-alede { font-style: italic; font-size: 20px; line-height: 1.5; color: var(--color-muted); margin: 0 auto 22px; max-width: 40ch; }
.single-post .zg-ameta { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 14px; font-weight: 400; color: var(--color-muted); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 0; margin: 0 auto; max-width: 560px; }
.single-post .zg-ameta .dot { width: 4px; height: 4px; border-radius: 50%; background: #cfd6da; }
.single-post .zg-ahero { margin: 28px 0 0; padding: 0 0 28px; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.single-post .zg-ahero-img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; image-rendering: high-quality; }

.single-post .entry-content { max-width: var(--content-max-width); margin-left: auto; margin-right: auto; padding: 0 var(--site-padding-mobile); font-family: var(--font-family-main); font-size: var(--fs-md); line-height: 1.8; color: var(--color-ink); overflow: visible !important; }
.single-post .entry-content .wp-block-paragraph,
.single-post .entry-content > p { margin: 0 0 26px; }
.single-post .entry-content .wp-block-heading { font-size: 24px; font-weight: 900; line-height: 1.15; color: var(--color-navy); margin: 52px 0 18px; }
.single-post .entry-content .wp-block-heading a,
.single-post .entry-content h2 a,
.single-post .entry-content h3 a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px; text-decoration-thickness: 2px; transition: text-decoration-color .18s ease; }
.single-post .entry-content .wp-block-heading a:hover,
.single-post .entry-content h2 a:hover,
.single-post .entry-content h3 a:hover { text-decoration-color: var(--color-yellow); }
.single-post .entry-content ul,
.single-post .entry-content ol { margin: 0 0 26px; padding-left: 1.3em; }
.single-post .entry-content li { margin-bottom: 10px; }
.single-post .entry-content strong { color: var(--color-navy); }

.single-post .wp-element-caption { text-align: center; }

.single-post .entry-content blockquote,
.single-post .entry-content .wp-block-quote {
  border-left: 4px solid var(--color-yellow-accent); background: var(--color-creme); margin: 44px 0; padding: 20px 24px;
  font-size: 21px; font-weight: 800; line-height: 1.3; color: var(--color-navy); border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}
.single-post .entry-content .wp-block-quote p { margin: 0; overflow-wrap: normal; word-break: keep-all; }

/* Pull Quote block. Breaks out wider than the reading column, centred, big.
   Wide enough that long Croatian words never split mid-word. */
.single-post .entry-content > .wp-block-pullquote {
  width: 88vw; max-width: 780px;
  margin: 56px auto; padding: 0;
  border: 0; background: none; text-align: center;
}
.single-post .entry-content .wp-block-pullquote blockquote { margin: 0; border: 0; padding: 0; }
.single-post .entry-content .wp-block-pullquote p {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900; line-height: 1.15;
  letter-spacing: -.5px; color: var(--color-navy); margin: 0;
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.single-post .entry-content .wp-block-pullquote cite {
  display: block; margin-top: 20px; font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted-light); font-style: normal;
}
.single-post .entry-content .wp-block-gallery {
  position: relative;
  width: 80vw;
  max-width: 80vw;
  left: 50%;
  transform: translateX(-50%);
  margin: 28px 0;
}
.single-post .entry-content .wp-block-gallery.is-layout-flex,
.single-post .entry-content .wp-block-gallery > .blocks-gallery-grid {
  display: grid !important;
  /* One row, always. Columns follow the count the editor set. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
}
/* Explicit counts keep it predictable when the editor writes a columns-N class. */
.single-post .entry-content .wp-block-gallery.columns-1 { grid-template-columns: 1fr; grid-auto-flow: row; }
.single-post .entry-content .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; }
.single-post .entry-content .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; }
.single-post .entry-content .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; }

@media (max-width: 600px) {
  .single-post .entry-content .wp-block-gallery.columns-3,
  .single-post .entry-content .wp-block-gallery.columns-4 {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .single-post .entry-content .wp-block-gallery.columns-3 .wp-block-image,
  .single-post .entry-content .wp-block-gallery.columns-4 .wp-block-image { scroll-snap-align: start; }
}
.single-post .entry-content .wp-block-gallery .wp-block-image {
  padding: 0; margin: 0; width: 100% !important; max-width: 100% !important;
}
.single-post .entry-content .wp-block-gallery .wp-block-image img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 0; display: block;
}

.single-post .entry-content > .wp-block-image,
.single-post .entry-content > .wp-block-image figure { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; margin-top: 28px !important; margin-bottom: 28px !important; padding-left: 0 !important; padding-right: 0 !important; padding-top: 0; }
.single-post .entry-content > .wp-block-image img { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 4/3 !important; object-fit: cover !important; object-position: center !important; border-radius: 0 !important; display: block !important; }

/* Embeds. Instagram, YouTube, TikTok, X.
   Instagram serves a fixed 540px card, so it is centred rather than stretched. */
.entry-content .wp-block-embed { margin: 32px auto; max-width: 100%; }
.entry-content .wp-block-embed figcaption { font-size: var(--fs-sm); color: var(--color-muted-light); margin-top: 8px; text-align: center; }

.entry-content .wp-block-embed-instagram { max-width: 540px; }
.entry-content .wp-block-embed-instagram .wp-block-embed__wrapper { display: flex; justify-content: center; }
.entry-content .wp-block-embed-instagram iframe,
.entry-content .wp-block-embed-instagram blockquote.instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  max-width: 540px !important;
  width: 100% !important;
  /* Instagram's plain /embed iframe cannot report its own height unless
     Instagram's embed.js is on the page, so it renders at a default height and
     clips. This floor gives a photo post with a caption enough room. */
  min-height: 720px;
  border: 0;
}
@media (max-width: 600px) {
  .entry-content .wp-block-embed-instagram iframe,
  .entry-content .wp-block-embed-instagram blockquote.instagram-media { min-height: 640px; }
}

.entry-content .wp-block-embed-tiktok { max-width: 340px; }
.entry-content .wp-block-embed-tiktok .wp-block-embed__wrapper { display: flex; justify-content: center; }

/* Video providers keep their aspect ratio wrapper from responsive-embeds. */
.entry-content .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { position: relative; }
.entry-content .wp-block-embed iframe { width: 100%; }

/* Article Related Posts Component */
.single-post .zg-related { 
  padding: 0 20px 40px; 
  margin: 40px auto 0; 
  width: 100%; 
  max-width: var(--site-max-width); /* Restricts width to 1180px */
  box-sizing: border-box;
}

.zg-related .sub { color: var(--color-yellow-accent); font-size: var(--fs-sm); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 4px; }
.zg-related h2 { color: var(--color-navy-deep); font-size: 24px; font-weight: 900; margin: 0 0 22px; }
.zg-rel-grid { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.zg-rel-card { display: block; text-decoration: none; }
.zg-rel-card .ph { aspect-ratio: 16/10; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-navy-dark); margin-bottom: 11px; }
.zg-rel-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.zg-rel-card:hover .ph img { transform: scale(1.04); }
.zg-rel-card .badges { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.zg-rel-card h3 { margin: 0; color: var(--color-navy-deep); font-size: 18px; font-weight: 800; line-height: 1.18; }
.zg-rel-card:hover h3 { text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zg-rel-card.cat-ispod-povrsine .badges { color: var(--color-ispod); }
.zg-rel-card.cat-u-gostima .badges { color: var(--color-gosti); }
.zg-rel-card.cat-kamo-idemo .badges { color: var(--color-kamo-dark); }
.zg-rel-card.course-predjelo .badges   { color: var(--course-predjelo); }
.zg-rel-card.course-glavno-jelo .badges { color: var(--course-glavno); }
.zg-rel-card.course-desert .badges     { color: var(--course-desert); }
.zg-rel-card.cat-recept .badges        { color: var(--color-paprika); }
.single-post .zgr-related { margin-top: 64px; border-top: 1px solid var(--color-border); padding-top: 8px; }

@media(min-width: 900px) {
  .single-post .zg-ameta { font-size: 17px; }
  .single-post .entry-content > .wp-block-image,
  .single-post .entry-content > .wp-block-image figure { width: 80vw !important; max-width: 80vw !important; margin-left: calc(50% - 40vw) !important; margin-right: calc(50% - 40vw) !important; }
  .single-post .entry-content > .wp-block-image figure { margin-top: 40px !important; margin-bottom: 40px !important; }
  .single-post .zg-ahero {
    margin: 40px auto 0;
    padding-bottom: 40px;
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
  .single-post .zg-ahero-img { border-radius: var(--radius-xl); }
  .single-post .entry-content .wp-block-gallery { margin: 40px 0; }
  .single-post .entry-content .wp-block-gallery.is-layout-flex,
  .single-post .entry-content .wp-block-gallery > .blocks-gallery-grid { gap: 16px; }
  .single-post .entry-content > .wp-block-image img { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 16/9 !important; object-fit: cover !important; object-position: center !important; border-radius: var(--radius-xl) !important; }
  .single-post .zg-ahero-img { aspect-ratio: 16/9; height: auto; object-fit: cover; }
  .single-post .entry-content { font-size: 19px; line-height: 1.85; padding: 0; }
  .single-post .entry-content .wp-block-heading { font-size: 28px; margin: 60px 0 20px; }
  .single-post .entry-content .wp-block-paragraph,
  .single-post .entry-content > p { margin: 0 0 30px; }
  
  .single-post .entry-content .zg-related { padding: 56px 0 0; }
  .zg-rel-grid { display: flex; flex-direction: row; gap: 20px; }
  .zg-rel-card { flex: 1; }
}



/* ============================================================
   7. SINGLE RECIPE (single-recept.php)
   ============================================================ */
.zgr {
  --navy: #103a52; --navy-deep: #0c2f43; --creme: #f0ede9; --yellow: #ffd700;
  --paprika: #d1451f; --ispod: #1b9353;
  --ink: #1a2c38; --muted: #33454f; --soft: #6b767e; --border: #e3e0db;
  --stick-top: 24px;
  font-family: var(--font-family-main);
  color: var(--ink); background: #fff;
  display: block; width: 100%;
}
.zgr * { box-sizing: border-box; }
.zgr a { text-decoration: none; color: inherit; }
.zgr img { display: block; }
.zgr-wrap { display: block; max-width: 1060px; margin-left: auto; margin-right: auto; padding: 0 20px; width: 100%; }

/* Hero Section */
.zgr-hero { background: #fff; border-bottom: 1px solid var(--border); padding: 40px 0 36px; text-align: center; }
.zgr-hero--predjelo   { background: var(--course-predjelo-tint); }
.zgr-hero--glavno-jelo { background: var(--course-glavno-tint); }
.zgr-hero--desert     { background: var(--course-desert-tint); }
.zgr-pill {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paprika); background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
  margin: 0 0 16px; transition: background .2s, color .2s, border-color .2s;
}
.zgr-pill:hover { background: var(--paprika); color: #fff; border-color: var(--paprika); }
.zgr-title { font-size: clamp(30px, 5.6vw, 48px); font-weight: 900; line-height: 1.06; letter-spacing: -.9px; color: var(--navy); margin: 0 auto 16px; max-width: 20ch; }
.zgr-dek { font-size: 17px; line-height: 1.6; color: var(--navy); opacity: .85; max-width: 52ch; margin: 0 auto 24px; }

.zgr-bar {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  max-width: 800px; margin: 0 auto; overflow: hidden;
}
.zgr-bi {
  flex: 1 1 33%; min-width: 110px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; text-align: center;
  padding: 15px 12px; border-right: 1px solid var(--border);
}
.zgr-bi:last-child { border-right: 0; }
.zgr-bi .l { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.zgr-bi .v { font-size: 15px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.zgr-bi .v--predjelo   { color: var(--course-predjelo); }
.zgr-bi .v--glavno-jelo { color: var(--course-glavno); }
.zgr-bi .v--desert     { color: var(--course-desert); }
.zgr-bi--act { flex: 1 1 100%; border-right: 0; border-top: 1px solid var(--border); }
.zgr-print {
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit; cursor: pointer;
  font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: var(--creme); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 18px; transition: background .2s, color .2s, border-color .2s;
}
.zgr-print:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.zgr :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Media Frame */
.zgr-media { margin-top: 32px; margin-bottom: 48px; }
.zgr-frame { max-width: 1080px; margin: 0 auto; }
.zgr-frame { width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--creme); }
.zgr-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Content & Two Columns */
.zgr-body { padding-top: 24px; padding-bottom: 90px; }
.zgr-lede { font-style: italic; font-size: 18px; line-height: 1.65; color: var(--muted); text-align: center; max-width: 46ch; margin: 40px auto 48px; }

.zgr-cols { display: grid; grid-template-columns: 1fr; gap: 48px; }
.zgr-sec {
  display: block; font-size: 12px; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); margin: 0 0 16px;
  padding-bottom: 9px; border-bottom: 2px solid var(--navy);
}

.zgr-stick { background: var(--creme); border-radius: 14px; padding: 28px 24px 26px; }
.zgr-stick--predjelo   { background: var(--course-predjelo-tint); }
.zgr-stick--glavno-jelo { background: var(--course-glavno-tint); }
.zgr-stick--desert     { background: var(--course-desert-tint); }
/* Dividers inside a tinted stick, darker than the creme default so they read. */
.zgr-stick--predjelo .zgr-ing li,
.zgr-stick--glavno-jelo .zgr-ing li,
.zgr-stick--desert .zgr-ing li { border-bottom-color: rgba(16, 58, 82, .16); }
.zgr-ing { font-size: 16px; line-height: 1.55; color: var(--ink); }
.zgr-ing ul, .zgr-ing ol { list-style: none; margin: 0; padding: 0; }
.zgr-ing li { padding: 11px 0; border-bottom: 1px solid #ded9d2; }
.zgr-ing li:last-child { border-bottom: 0; padding-bottom: 0; }
.zgr-ing p { margin: 0 0 12px; }
.zgr-ing strong { color: var(--navy); }

.zgr-steps { font-size: 17px; line-height: 1.75; color: var(--ink); }
.zgr-steps p { margin: 0 0 20px; }
.zgr-steps strong { color: var(--navy); }
.zgr-steps h3 { font-size: 19px; font-weight: 900; color: var(--navy); margin: 30px 0 12px; letter-spacing: -.2px; }
.zgr-steps ol { list-style: none; counter-reset: zgrst; margin: 0; padding: 0; }
.zgr-steps ol li { counter-increment: zgrst; position: relative; padding: 0 0 28px 52px; line-height: 1.7; }
.zgr-steps ol li::before {
  content: counter(zgrst); position: absolute; left: 0; top: -1px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.zgr-steps ol li:last-child { padding-bottom: 0; }
.zgr-steps ul { margin: 0 0 20px; padding-left: 20px; }
.zgr-steps ul li { margin-bottom: 9px; }

/* Related Recipes */
@media(min-width: 560px) {
  .zgr-bi--act { flex: 1 1 auto; border-top: 0; border-right: 0; }
}
@media(min-width: 921px) {
  .zgr-hero { padding: 64px 0 52px; }
  .zgr-media { margin-bottom: 64px; }
  .zgr-body { padding-top: 32px; padding-bottom: 110px; }
  .zgr-frame { aspect-ratio: 16/9; }
  .zgr-lede { font-size: 20px; }
  .zgr-cols { grid-template-columns: 320px 1fr; gap: 68px; align-items: start; }
  .zgr-stick { position: sticky; top: var(--stick-top, 24px); }
  .zgr-steps { font-size: 18px; }
}
@media(prefers-reduced-motion: reduce) { .zgr * { transition: none !important; } }

/* Print Styles */
@media print {
  .site-header, .zgf, .zgr-rel, .zgr-print, .zgr-media,
  .zgr { color: #000; }
  .zgr-hero { background: none; border: 0; padding: 0 0 12px; text-align: left; }
  .zgr-pill { display: none; }
  .zgr-title { font-size: 26pt; margin: 0 0 10px; max-width: none; }
  .zgr-bar { border: 0; border-top: 1pt solid #000; border-bottom: 1pt solid #000; border-radius: 0; max-width: none; }
  .zgr-bi { border-right: 0; padding: 8px 10px; }
  .zgr-lede { text-align: left; margin: 12px 0 18px; max-width: none; }
  .zgr-cols { display: block; }
  .zgr-stick { position: static; background: none; padding: 0; border: 1pt solid #999; padding: 12px; margin: 0 0 18px; }
  .zgr-steps ol li::before { background: #000; }
  .zgr-wrap { max-width: none; padding: 0; }
  a[href]::after { content: ""; }
}


/* ============================================================
   8. SEARCH RESULTS PAGE (search.php, searchform.php)
   ============================================================ */
.zgs {
  --navy: #103a52; --creme: #f0ede9; --yellow: #ffd700; --paprika: #d1451f;
  --ispod: #1b9353; --gosti: #ff003c; --kamo: #c0532e; --okus: #b38600;
  --ink: #1a2c38; --muted: #33454f; --border: #e3e0db;
  font-family: var(--font-family-main); color: var(--ink);
}
.zgs a { text-decoration: none; color: inherit; }
.zgs img { display: block; }
.zgs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header Band */
.zgs-head { background: var(--creme); text-align: center; }
.zgs-head-in { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 40px 20px 36px; display: flex; flex-direction: column; align-items: center; }
.zgs-kick { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--paprika); margin: 0 0 10px; }
.zgs-h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 900; letter-spacing: -.7px; line-height: 1.04; color: var(--navy); margin: 0 0 10px; overflow-wrap: anywhere; }
.zgs-count { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0 0 22px; }

/* Search Form Component */
.zgs-form { display: flex; gap: 10px; max-width: 620px; width: 100%; margin-left: auto; margin-right: auto; }
.zgs-form input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink); background: #fff; border: 2px solid var(--border);
  border-radius: 10px; padding: 14px 16px; outline: none; transition: border-color .2s;
}
.zgs-form input::placeholder { color: #9aa5ad; font-weight: 400; }
.zgs-form input:focus { border-color: var(--navy); }
.zgs-form button {
  font-family: inherit; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--paprika); border: 0; border-radius: 10px;
  padding: 0 24px; transition: opacity .2s;
}
.zgs-form button:hover { opacity: .88; }
.zgs :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* Chips */
.zgs-pop { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.zgs-pop-l { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.zgs-chip { font-size: 13px; font-weight: 800; color: var(--navy); background: #fff; border: 2px solid var(--border); border-radius: 999px; padding: 7px 14px; transition: border-color .2s, background .2s, color .2s; white-space: nowrap; }
.zgs-chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Grid Results */
.zgs-grid { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 34px 20px 0; display: grid; grid-template-columns: 1fr; gap: 34px 26px; }
.zgs-card .ph { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; background: var(--creme); margin-bottom: 13px; }
.zgs-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.zgs-card:hover .ph img { transform: scale(1.03); }
.zgs-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; color: var(--navy); }
.zgs-badge.c-kamo { color: var(--kamo); }
.zgs-badge.c-recepti { color: var(--paprika); }
.zgs-badge.c-ispod { color: var(--ispod); }
.zgs-badge.c-gosti { color: var(--gosti); }
.zgs-badge.c-okus { color: var(--okus); }
.zgs-card h2 { font-size: 19px; font-weight: 900; line-height: 1.14; letter-spacing: -.2px; color: var(--navy); margin: 0 0 7px; }
.zgs-card:hover h2 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zgs-card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Empty States & Alternative Routes */
.zgs-none { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 44px 20px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.zgs-none-h { font-size: 22px; font-weight: 900; letter-spacing: -.3px; color: var(--navy); margin: 0 0 8px; }
.zgs-none-p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.zgs-routes { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.zgs-route {
  display: block; font-size: 17px; font-weight: 900; letter-spacing: -.2px; color: var(--navy);
  background: #fff; border: 2px solid var(--border); border-left-width: 6px; border-radius: 8px;
  padding: 16px 18px; transition: border-color .2s, transform .2s; text-align: left;
}
.zgs-route:hover { transform: translateX(3px); }
.zgs-route.c-kamo { border-left-color: var(--kamo); }
.zgs-route.c-recepti { border-left-color: var(--paprika); }
.zgs-route.c-ispod { border-left-color: var(--ispod); }
.zgs-route.c-gosti { border-left-color: var(--gosti); }

/* Pagination */
.zgs-pag { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 50px 20px 90px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.zgs-pag .page-numbers {
  min-width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; border-radius: 8px; border: 2px solid var(--border);
  color: var(--navy); padding: 0 6px; transition: border-color .2s, background .2s, color .2s;
}
.zgs-pag a.page-numbers:hover { border-color: var(--navy); }
.zgs-pag .cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.zgs-pag .prev, .zgs-pag .next { width: auto; padding: 0 18px; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.zgs-pag .dots { border: 0; }

.zgs-grid:last-child, .zgs-none:last-child { padding-bottom: 90px; }

@media(min-width: 560px) {
  .zgs-grid { grid-template-columns: 1fr 1fr; }
  .zgs-routes { grid-template-columns: 1fr 1fr; }
}
@media(min-width: 900px) {
  .zgs-head-in { padding: 52px var(--site-padding-desktop) 44px; }
  .zgs-grid { grid-template-columns: 1fr 1fr 1fr; padding: 44px var(--site-padding-desktop) 0; }
  .zgs-none, .zgs-pag { padding-left: var(--site-padding-desktop); padding-right: var(--site-padding-desktop); }
  .zgs-routes { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media(min-width: 1200px) { .zgs-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }
@media(prefers-reduced-motion: reduce) { .zgs * { transition: none !important; } }


/* ============================================================
   9. FOOTER (template-parts/footer/zagrebi-footer.php)
   ============================================================ */
.zgf { background: var(--color-navy-deep); color: var(--color-white); font-family: var(--font-family-main); margin-top: 48px; }
/* The header is sticky, so an anchor jump needs clearance. */
#newsletter { scroll-margin-top: 96px; }
.zgf * { box-sizing: border-box; }
.zgf a { color: inherit; text-decoration: none; }
.zgf-in { max-width: var(--site-max-width); margin-left: auto; margin-right: auto; padding: 0 var(--site-padding-mobile); }
.zgf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zgf-h { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 18px; }

/* Footer Newsletter */
.zgf-news { background: var(--color-ispod-deep); width: 100%; }
.zgf-news-in { max-width: var(--site-max-width); margin-left: auto; margin-right: auto; padding: 52px var(--site-padding-mobile) 56px; display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.zgf-kick { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-yellow); margin: 0 0 14px; }
.zgf-news h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 900; line-height: 1.1; letter-spacing: -.6px; color: var(--color-white); margin: 0; max-width: 20ch; }

.zgf-card { background: var(--color-white); border-radius: var(--radius-2xl); padding: 26px 24px 24px; box-shadow: 0 18px 40px rgba(0,0,0,.14); color: var(--color-ink); }
.zgf-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.zgf-field label { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted-subtle); margin: 0 0 7px; }
.zgf-field input { width: 100%; font-family: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--color-ink); background: var(--color-white); border: 2px solid var(--color-border); border-radius: var(--radius-lg); padding: 13px 15px; outline: none; transition: var(--transition-fast); }
.zgf-field input::placeholder { color: #9aa5ad; font-weight: 400; }
.zgf-field input:focus { border-color: var(--color-ispod-deep); }
.zgf-submit { font-family: inherit; cursor: pointer; width: 100%; font-size: var(--fs-sm); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--color-navy); background: var(--color-yellow); border: 0; border-radius: var(--radius-lg); padding: 16px 26px; transition: var(--transition-fast); }
.zgf-submit:hover { opacity: .9; }
.zgf-submit:active { transform: translateY(1px); }
.zgf-submit[disabled] { opacity: .55; cursor: progress; }
.zgf-msg { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 14px 0 0; }
.zgf-msg:empty { margin: 0; }
.zgf-msg.is-ok { color: var(--color-success); }
.zgf-msg.is-err { color: var(--color-error); }
.zgf-fine { font-size: 12px; line-height: 1.55; color: var(--color-muted-subtle); margin: 16px 0 0; }
.zgf-fine a { color: var(--color-ink); font-weight: 700; border-bottom: 1px solid #c3ccd2; }
.zgf-fine a:hover { border-bottom-color: var(--color-yellow); color: var(--color-white); }

.zgf-card :focus-visible { outline: 2px solid var(--color-ispod-deep); outline-offset: 3px; }
.zgf-in :focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 3px; }

/* Columns & Navigation */
.zgf-cols { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 52px 0 44px; }
.zgf-col ul { list-style: none; margin: 0; padding: 0; }
.zgf-col li { margin: 0 0 12px; }
.zgf-col ul a { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-base); font-weight: 700; line-height: 1.3; color: var(--color-white); transition: var(--transition-fast); }
.zgf-col ul a:hover { color: var(--color-yellow); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.zgf-dot { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; transition: transform .25s ease; }
.zgf-col ul a:hover .zgf-dot { transform: scale(1.5) rotate(45deg); }
.d-kamo { background: var(--color-kamo); }
.d-ispod { background: var(--color-ispod); }
.d-gosti { background: var(--color-gosti); }
.d-recepti { background: var(--color-paprika); }
.d-sezonsko { background: var(--color-yellow); }

/* Branding & Bottom Bar */
.zgf-logo { display: block; width: 150px; height: auto; margin: 0 0 22px; }
.zgf-logo-txt { font-size: 30px; font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--color-white); margin: 0 0 22px; }
.zgf-logo-txt span { color: var(--color-yellow); }
.zgf-brand p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.72); margin: 0 0 22px; max-width: 38ch; }
.zgf-social { display: flex; gap: 10px; flex-wrap: wrap; }
.zgf-social a { width: 42px; height: 42px; border-radius: var(--radius-lg); border: 1px solid var(--color-navy-line); display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.zgf-social a:hover { background: var(--color-yellow); border-color: var(--color-yellow); transform: translateY(-2px); }
.zgf-social svg { width: 19px; height: 19px; fill: var(--color-white); transition: fill .2s ease; }
.zgf-social a:hover svg { fill: var(--color-navy); }

.zgf-pitch { align-self: start; }
.zgf-pitch p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0 0 20px; }
.zgf-ghost { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--color-white); padding: 11px 20px; border: 2px solid var(--color-yellow); border-radius: var(--radius-md); transition: var(--transition-fast); }
.zgf-ghost:hover { background: var(--color-yellow); color: var(--color-navy); }

.zgf-bar { padding: 28px 0 36px; margin-top: 8px; display: flex; flex-direction: column; gap: 14px; font-size: var(--fs-sm); color: rgba(255,255,255,.62); border-top: 1px solid var(--color-navy-line); }
.zgf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.zgf-legal a { transition: var(--transition-fast); }
.zgf-legal a:hover { color: var(--color-yellow); }

footer.zgf { width: 100%; max-width: 100%; margin: 0; padding: 0; background: var(--color-navy-deep); }

@media(min-width: 600px) {
  .zgf-cols { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .zgf-form { grid-template-columns: 1fr 1fr; }
  .zgf-submit { grid-column: 1 / -1; }
}
@media(min-width: 921px) {
  .zgf-in { padding: 0 var(--site-padding-desktop); }
  .zgf-news-in { grid-template-columns: 1fr 1fr; gap: 56px; padding: 76px var(--site-padding-desktop) 80px; }
  .zgf-card { padding: 32px 30px 28px; }
  .zgf-cols { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding: 60px 0 56px; }
  .zgf-logo-txt { font-size: 34px; }
  .zgf-bar { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media(prefers-reduced-motion: reduce) { .zgf * { transition: none !important; } }
/* ============================================================
   OKUS MJESECA — editorial feature (single-okus.php)
   Type-led long-read. Hero from the template, body from
   Gutenberg om-* block patterns (inc/okus-patterns.php).
   ============================================================ */
.om { --om-readw: 660px; --om-wide: 1080px; --om-maxw: 1280px; }
.om img { display: block; max-width: 100%; height: auto; }
.om figure { margin: 0; }

/* Hero */
.om-hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-navy-deep); }
.om-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.om-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,47,67,.15) 0%, rgba(12,47,67,.1) 45%, rgba(12,47,67,.85) 100%); }
.om-hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--om-maxw); margin: 0 auto; padding: 0 32px 64px; color: #fff; }
.om-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--color-yellow); margin: 0 0 24px; }
.om-hero-h { font-size: clamp(40px, 7vw, 88px); font-weight: 900; line-height: .98; letter-spacing: -1.5px; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; color: #fff; }
.om-hero-sub { font-size: clamp(18px, 2.2vw, 24px); font-weight: 400; line-height: 1.5; max-width: 52ch; color: rgba(255,255,255,.9); margin: 0; }
.om-hero-meta { margin: 26px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.om-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-yellow); }

/* Body base. Gutenberg wraps content in .om-content; core paragraphs and
   headings the author types outside a pattern get the reading column too. */
.om-content { font-size: 19px; line-height: 1.8; color: var(--color-ink); }
.om-content > p,
.om-content > .wp-block-heading,
.om-content > ul,
.om-content > ol { max-width: var(--om-readw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.om-content > p { margin-top: 0; margin-bottom: 28px; }
.om-content > p:first-of-type { margin-top: 80px; }
.om-content > p a { color: var(--color-navy); text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.om-content > p a:hover { text-decoration-color: var(--color-yellow); }
.om-content > .wp-block-heading { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -.8px; color: var(--color-navy); margin: 76px auto 26px; }

/* Reading column for pattern paragraphs authored inside .om-body wrappers */
.om-body { max-width: var(--om-readw); margin: 0 auto; padding: 0 24px; }
.om-body p { margin: 0 0 28px; }

/* Section heading with optional label */
.om-sec { max-width: var(--om-readw); margin: 0 auto; padding: 0 24px; }
.om-sec-head { margin: 76px 0 26px; }
.om-sec-head.no-label { margin-top: 64px; }
.om-sec-num { display: block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--color-paprika); margin: 0 0 14px; }
.om-sec-num::after { content: ""; display: block; width: 40px; height: 2px; background: var(--color-paprika); margin-top: 14px; }
.om-sec-h { font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.05; letter-spacing: -.8px; color: var(--color-navy); margin: 0; text-wrap: balance; }

/* Pull quote */
.om-pull { max-width: var(--om-wide); margin: 80px auto; padding: 0 24px; text-align: center; }
.om-pull blockquote { margin: 0 auto; max-width: 16em; border: 0; padding: 0; background: none; }
.om-pull blockquote p { font-size: clamp(32px, 6vw, 64px); font-weight: 900; line-height: 1.06; letter-spacing: -1.2px; color: var(--color-navy); margin: 0; }
.om-pull blockquote .em { color: var(--color-paprika); }
.om-pull cite { display: block; margin-top: 26px; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted-light); font-style: normal; }

/* Photos */
.om-photo { max-width: var(--om-wide); margin: 64px auto; padding: 0 24px; }
.om-photo img { width: 100%; border-radius: 4px; }
.om-photo figcaption { margin: 14px 2px 0; font-size: 14px; line-height: 1.5; color: var(--color-muted-light); }
.om-fb { margin: 80px 0; }
.om-fb img { width: 100%; height: clamp(360px, 64vh, 680px); object-fit: cover; }
.om-fb figcaption { max-width: var(--om-readw); margin: 14px auto 0; padding: 0 24px; font-size: 14px; color: var(--color-muted-light); }

/* Venue card */
.om-venue { max-width: var(--om-wide); margin: 80px auto; padding: 0 24px; }
.om-venue.om-venue-in { background: var(--color-creme); border-radius: 20px; overflow: hidden; gap: 0; }
.om-venue.om-venue-in > .om-venue-ph { padding: 0; }
.om-venue-ph .wp-block-image, .om-venue-ph figure { margin: 0; height: 100%; }
.om-venue-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.om-venue-txt { padding: 40px 36px; }
.om-venue-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ispod); margin: 0 0 14px; }
.om-venue-txt h3 { font-size: 32px; font-weight: 900; color: var(--color-navy); margin: 0 0 10px; line-height: 1.02; }
.om-venue-txt p { font-size: 17px; line-height: 1.6; color: var(--color-muted); margin: 0 0 24px; }
.om-inline-link-wrap { margin: 0; }
.om-inline-link { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-navy); text-decoration: none; border-bottom: 2px solid var(--color-yellow); padding-bottom: 3px; }
.om-inline-link:hover { color: var(--color-paprika); }

/* Comparison */
.om-vs { max-width: var(--om-wide); margin: 80px auto; padding: 0 24px; }
.om-vs-intro { text-align: center; max-width: 44ch; margin: 0 auto 48px; }
.om-vs-intro p { font-size: 19px; font-style: italic; color: var(--color-muted); margin: 0; }
.om-vs.om-vs-grid { gap: 56px; }
.om-vs-col .wp-block-image, .om-vs-col figure { margin: 0 0 22px; }
.om-vs-col img { width: 100%; border-radius: 4px; }
.om-vs-col h3 { font-size: 26px; font-weight: 900; color: var(--color-navy); margin: 0 0 14px; letter-spacing: -.3px; }
.om-vs-col > p { font-size: 16px; line-height: 1.65; color: var(--color-muted); margin: 0 0 24px; }
.om-vs-fact { padding: 15px 0; border-top: 1px solid var(--color-border); }
.om-vs-fact:last-child { border-bottom: 1px solid var(--color-border); }
.om-vs-q { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-paprika); margin: 0 0 5px; }
.om-vs-a { font-size: 15px; line-height: 1.55; color: var(--color-ink); margin: 0; }

/* Recipe hand-off band. Rules run full-bleed, content stays centred. */
.om-recipe { position: relative; margin: 80px 0; }
.om-recipe::before, .om-recipe::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--color-navy); }
.om-recipe::before { top: 0; }
.om-recipe::after { bottom: 0; }
.om-recipe-in { max-width: var(--om-wide); margin: 0 auto; padding: 34px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.om-recipe-t { flex: 1 1 auto; }
.om-recipe-k { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-paprika); margin: 0 0 8px; }
.om-recipe-h { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; color: var(--color-navy); letter-spacing: -.4px; line-height: 1.05; margin: 0; }
.om-recipe-cta-wrap { flex: 0 0 auto; margin: 0; }
.om-recipe-cta { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--color-navy); padding: 16px 30px; border-radius: 999px; text-decoration: none; white-space: nowrap; display: inline-block; }
.om-recipe-cta:hover { background: var(--color-paprika); }

/* Closing */
.om-close { max-width: var(--om-readw); margin: 0 auto; padding: 80px 24px 48px; text-align: center; }
.om-close p { font-size: clamp(22px, 3vw, 30px); line-height: 1.42; font-weight: 500; color: var(--color-navy); margin: 0 0 22px; letter-spacing: -.4px; }
.om-close .sig { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted-light); margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; }
.om-close .sig::before, .om-close .sig::after { content: ""; width: 24px; height: 1px; background: var(--color-border); }

@media (min-width: 820px) {
  .om-venue-txt { padding: 52px 48px; }
}

/* ============================================================
   Breadcrumbs (inc/breadcrumbs.php)
   ============================================================ */
.zg-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 18px;
}
.zg-crumbs .zg-crumb { color: var(--color-muted-light); text-decoration: none; }
.zg-crumbs a.zg-crumb:hover { color: var(--color-navy); text-decoration: underline; text-decoration-color: var(--color-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.zg-crumbs .zg-crumb--current { color: var(--color-navy); }
.zg-crumbs .zg-crumb-sep { color: var(--color-border); font-weight: 400; }

/* Editorial single: left aligned under the header start. */
.zg-ahead .zg-crumbs { justify-content: center; margin: 20px 0 0; }

/* Recipe hero: centered on the tint, navy reads on all three course tints. */
.zgr-hero .zg-crumbs { justify-content: center; margin-bottom: 20px; }
.zgr-hero .zg-crumbs .zg-crumb { color: var(--navy); opacity: .7; }
.zgr-hero .zg-crumbs .zg-crumb--current { opacity: 1; }
.zgr-hero .zg-crumbs .zg-crumb-sep { color: var(--navy); opacity: .4; }
