/* =============================================================
   e-pavārgrāmata.lv — galvenā stillapu
   Struktūra:
   1. Tokens & Reset
   2. Tipogrāfija
   3. Navigācija
   4. Layout sistēma
   5. Hero bloki
   6. Kartiņu komponentes
   7. Sānjosla (Sidebar)
   8. Formas & UI elementi
   9. Lappuses specifiskais (home, categories, list, single, article)
  10. Footer
  11. Utility klases
  12. Responsivitāte
   ============================================================= */

/* ─────────────────────────────────────────
   1. TOKENS & RESET
   ───────────────────────────────────────── */
:root {
  /* Krāsas */
  --c-bg:         #faf7f2;
  --c-surface:    #ffffff;
  --c-border:     #e8dfd0;
  --c-border-lt:  #f0e8db;

  --c-ink:        #1e140a;
  --c-ink-2:      #5a4535;
  --c-ink-3:      #9a8070;

  --c-brand:      #c05a22;
  --c-brand-dk:   #973f12;
  --c-brand-lt:   #f5ede5;
  --c-brand-mid:  #e8956a;

  --c-dark:       #251408;
  --c-dark-2:     #3d2010;

  --c-green:      #4a7c59;
  --c-green-lt:   #edf5f0;
  --c-amber:      #b07020;
  --c-amber-lt:   #fef3e2;

  /* Fonti */
  --font-serif:   'Lora', Georgia, serif;
  --font-sans:    'Outfit', system-ui, sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Ēnas */
  --shadow-sm: 0 1px 4px rgba(30,20,10,.07);
  --shadow-md: 0 4px 16px rgba(30,20,10,.10);
  --shadow-lg: 0 8px 32px rgba(30,20,10,.13);

  /* Izmēri */
  --nav-h:        60px;
  --sidebar-w:    264px;
  --content-max:  1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
ul, ol { list-style: none; }
button, input, select { font-family: var(--font-sans); }

/* ─────────────────────────────────────────
   2. TIPOGRĀFIJA
   ───────────────────────────────────────── */
.t-serif    { font-family: var(--font-serif); }
.t-display  { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.5px; line-height: 1.15; }
.t-h1       { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.t-h2       { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.t-h3       { font-family: var(--font-serif); font-size: 16px; font-weight: 600; }
.t-label    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.t-meta     { font-size: 12px; color: var(--c-ink-3); }
.t-brand    { color: var(--c-brand); }
.t-muted    { color: var(--c-ink-3); }
.t-light    { color: #fdf8f2; }

/* ─────────────────────────────────────────
   3. NAVIGĀCIJA
   ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 0;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -.3px;
  margin-right: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo span { color: var(--c-brand); }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--c-brand); background: var(--c-brand-lt); }
.nav-links a.active { color: var(--c-brand); background: var(--c-brand-lt); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: 6px 14px;
  width: 190px;
  transition: width .25s, border-color .2s;
}
.nav-search:focus-within { border-color: var(--c-brand); width: 230px; }
.nav-search svg { flex-shrink: 0; color: var(--c-ink-3); }
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--c-ink);
  width: 100%;
}
.nav-search input::placeholder { color: var(--c-ink-3); }

.nav-btn-login {
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.nav-btn-login:hover { background: var(--c-brand-dk); }

.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-ham span { display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; }

/* ─────────────────────────────────────────
   4. LAYOUT SISTĒMA
   ───────────────────────────────────────── */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Galvenais 2-kolonnu izkārtojums ar sānjoslu */
.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 36px;
  padding-top: 32px;
  padding-bottom: 56px;
  align-items: start;
}
.main-col { min-width: 0; }

/* Sekcijas virsraksts ar līniju */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 { /* izmanto .t-h2 */ }
.section-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap .15s;
}
.section-more::after { content: '→'; }
.section-more:hover  { gap: 6px; }

.divider { height: 1px; background: var(--c-border); margin: 28px 0; }

/* Maizes drupatas */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6a5848;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: #e8956a; }
.breadcrumb-sep { color: #4a3828; }

/* ─────────────────────────────────────────
   5. HERO BLOKI
   ───────────────────────────────────────── */

/* --- Mājas lapas hero ar AI formu --- */
.hero {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
  padding: 56px 20px 52px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 50%, rgba(192,90,34,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(192,90,34,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(192,90,34,.20);
  border: 1px solid rgba(192,90,34,.40);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  color: #e8956a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: #e8956a;
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }

.hero h1 { /* izmanto .t-display */ margin-bottom: 14px; }
.hero h1 em { color: var(--c-brand-mid); font-style: normal; }
.hero-sub {
  font-size: 14px;
  color: #a89880;
  line-height: 1.65;
  max-width: 420px;
  margin-bottom: 28px;
}
.hero-stats { display: flex; gap: 28px; }
.hero-stat-num { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: #fdf8f2; }
.hero-stat-lbl { font-size: 11px; color: #7a6858; margin-top: 1px; }

/* --- Vienkāršais lapas hero (kategorijas, saraksti, raksti) --- */
.page-hero {
  background: var(--c-dark);
  padding: 36px 20px;
}
.page-hero-inner { max-width: var(--content-max); margin: 0 auto; }
.page-hero .breadcrumb { margin-bottom: 12px; }
.page-hero .page-title { /* izmanto .t-display */ color: #fdf8f2; margin-bottom: 6px; }
.page-hero .page-sub { font-size: 13px; color: #6a5848; }

/* ─────────────────────────────────────────
   6. KARTIŅU KOMPONENTES
   ───────────────────────────────────────── */

/* --- Receptes tīkls (grid) --- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}

.recipe-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-brand-mid);
}

/* Attēla vietturis (kamēr nav foto) */
.recipe-thumb {
  height: 130px;
  background: linear-gradient(135deg, #f5e8d8 0%, #e8ceb0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.recipe-thumb img { position: absolute; inset: 0; }
.recipe-thumb-placeholder {
  font-size: 44px;
  line-height: 1;
  position: relative;
  z-index: 1;
  user-select: none;
}
.recipe-thumb-badge {
  position: absolute;
  top: 9px; left: 9px;
  background: rgba(30,20,10,.55);
  color: #fdf8f2;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.recipe-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.recipe-card-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--c-ink-3);
  align-items: center;
}
.recipe-card-meta span { display: flex; align-items: center; gap: 3px; }

/* Grūtības badges */
.badge-diff {
  margin-left: auto;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.badge-diff.easy { background: var(--c-green-lt);  color: var(--c-green); }
.badge-diff.med  { background: var(--c-amber-lt);  color: var(--c-amber); }
.badge-diff.hard { background: #fce8e8; color: #a03030; }

/* --- Izcelto receptes josla (featured strip) --- */
.featured-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
.featured-main {
  background: var(--c-dark-2);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  transition: border-color .2s;
}
.featured-main img {
  weight: 150px;
  height: 150px;
  border-radius: 10px;

}
.featured-main:hover { border-color: var(--c-brand-mid); }
.featured-main-emoji {
  position: absolute;
  top: 16px; right: 18px;
  font-size: 72px;
  line-height: 1;
  opacity: .35;
  transition: opacity .2s;
  user-select: none;
}
.featured-main:hover .featured-main-emoji { opacity: .55; }
.featured-main-badge {
  display: inline-block;
  background: var(--c-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}
.featured-main h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: #fdf8f2;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}
.featured-main p { font-size: 12px; color: #a89880; line-height: 1.5; }

.featured-side {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.featured-side:hover { border-color: var(--c-brand-mid); transform: translateY(-2px); }
.featured-side-emoji { font-size: 42px; line-height: 1; margin-bottom: 12px; user-select: none; }
.featured-side h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.featured-side-meta { font-size: 11px; color: var(--c-ink-3); }

/* --- Receptes rinda (saraksta skats) --- */
.recipe-list { display: flex; flex-direction: column; gap: 12px; }

.recipe-row {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 108px 1fr auto;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.recipe-row:hover { border-color: var(--c-brand-mid); box-shadow: var(--shadow-sm); }

.recipe-row-thumb {
  background: linear-gradient(135deg, #f5e8d8, #e8ceb0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.recipe-row-thumb img { position: absolute; inset: 0; }

.recipe-row-body { padding: 14px 16px; min-width: 0; }
.recipe-row-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-brand);
  margin-bottom: 4px;
}
.recipe-row-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.recipe-row-desc {
  font-size: 12px;
  color: var(--c-ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.recipe-row-meta { display: flex; gap: 14px; font-size: 11px; color: var(--c-ink-3); align-items: center; }
.recipe-row-meta span { display: flex; align-items: center; gap: 3px; }

.recipe-row-right {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 88px;
}
.btn-save {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--c-ink-3);
  cursor: pointer;
  transition: all .15s;
}
.btn-save:hover { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-lt); }


/* --- Kategoriju tīkls --- */
.cat-grid-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-card:hover { border-color: var(--c-brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-brand-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: background .2s;
}
.cat-card:hover .cat-card-icon { background: var(--c-brand); }
.cat-card h3 { font-size: 13px; font-weight: 600; color: var(--c-ink); line-height: 1.3; }
.cat-card-count { font-size: 11px; color: var(--c-ink-3); }

/* --- Vienas receptes skats --- */
.recipe-single-hero { background: var(--c-dark); padding: 48px 20px 0; }
.recipe-single-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 40px;
  align-items: end;
}
.recipe-meta-top { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.recipe-cat-link { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--c-brand-mid); }
.recipe-cat-link:hover { color: #fdf8f2; }
.recipe-author-link { font-size: 11px; color: #6a5848; }
.recipe-single-title { /* izmanto .t-display */ color: #fdf8f2; margin-bottom: 14px; }
.recipe-single-desc { font-size: 14px; color: #5a4d3a; line-height: 1.65; max-width: 520px; margin-bottom: 28px; }

.recipe-stats {
  display: flex;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 36px;
}
.rstat {
  padding: 12px 20px;
  border-right: 1px solid rgba(255,255,255,.10);
  text-align: center;
  min-width: 80px;
}
.rstat:last-child { border-right: none; }
.rstat-val { font-family: var(--font-serif); font-size: 18px; color: #fdf8f2; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.rstat-lbl { font-size: 10px; color: #6a5848; text-transform: uppercase; letter-spacing: .5px; }

.recipe-visual-box {
  height: 420px;
  background: linear-gradient(145deg, var(--c-dark-2) 0%, #5a3018 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-bottom: none;
}
.recipe-visual-box img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-visual-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(192,90,34,.2) 0%, transparent 60%);
  pointer-events: none;
}

/* Receptes pamatteksts — 2 kolonnas */
.recipe-body {
  display: grid;
  grid-template-columns: 272px 1fr;
  gap: 40px;
  padding: 36px 0 56px;
}
/* ─── Padomi & aptauja ─── */
.recipe-tips-box {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 24px;
}
.recipe-tips-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-ink-3);
  margin-bottom: 10px;
}

/* ─── Līdzīgas receptes ─── */
.related-recipes {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.related-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.related-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand-mid);
  box-shadow: var(--shadow-md);
}
.related-thumb {
  height: 120px;
  background: linear-gradient(135deg, #f5e8d8, #e8ceb0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.related-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.related-thumb-placeholder { font-size: 36px; }
.related-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.related-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-brand);
  margin-bottom: 4px;
}
.related-card-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--c-ink-3);
}

/* Mobilais */
@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-thumb { height: 160px; }
}

/* ─── Receptes info + aptauja ─── */
.rpoll-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 20px;
}

.rpoll-meta {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-lt);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.rpoll-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-ink-3);
}
.rpoll-meta-row span:first-child { font-size: 15px; flex-shrink: 0; }
.rpoll-meta-val { color: var(--c-ink); font-weight: 500; }
.rpoll-meta-val a { color: var(--c-brand); }
.rpoll-meta-val a:hover { text-decoration: underline; }

.rpoll-vote { padding: 16px 20px; }
.rpoll-vote-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-serif);
}
.rpoll-btns { display: flex; gap: 8px; }
.rpoll-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--c-ink-2);
  transition: all .2s;
}
.rpoll-btn.yes:hover,
.rpoll-btn.yes.active {
  border-color: var(--c-green);
  color: var(--c-green);
  background: var(--c-green-lt);
  border-width: 1.5px;
}
.rpoll-btn.no:hover,
.rpoll-btn.no.active {
  border-color: var(--c-brand);
  color: var(--c-brand-dk);
  background: var(--c-brand-lt);
  border-width: 1.5px;
}
.rpoll-btn:disabled { cursor: default; opacity: .8; }

.rpoll-bar-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-ink-3);
}
.rpoll-bar-row.show { display: flex; }
.rpoll-bar-wrap {
  flex: 1;
  height: 5px;
  background: var(--c-border);
  border-radius: 3px;
  overflow: hidden;
}
.rpoll-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--c-green);
  transition: width .4s ease;
}
.rpoll-bar.no { background: var(--c-brand); }
.rpoll-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink);
  min-width: 32px;
  text-align: right;
}

/* Mobilais */
@media (max-width: 540px) {
  .rpoll-meta { grid-template-columns: 1fr; gap: 8px; }
  .rpoll-meta,
  .rpoll-vote { padding: 14px 16px; }
}
.rpoll-meta-tags {
  grid-column: 1 / -1; /* pilna platuma rinda */
  align-items: flex-start;
}
.rpoll-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.rpoll-tag {
  background: var(--c-brand-lt);
  color: var(--c-brand);
  border: 1px solid #e0c0a8;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  transition: all .15s;
}
.rpoll-tag:hover {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}


.recipe-poll {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 16px;
}
.recipe-poll h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recipe-poll h4::before {
  content: '🗳️';
  font-size: 18px;
}

/* Mobilais */
@media (max-width: 540px) {
  .recipe-tips-box,
  .recipe-poll { padding: 16px; }
  .poll-btn { font-size: 13px; padding: 9px 12px; }
}
/* Sastāvdaļu karte */
.ingr-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.ingr-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--c-border-lt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ingr-head h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; }
.portions-ctrl { display: flex; align-items: center; gap: 8px; }
.portions-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-bg);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--c-ink);
  transition: all .15s;
  line-height: 1;
}
.portions-btn:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.portions-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.ingr-list {}
.ingr-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--c-border-lt);
  font-size: 13px;
}

/* ─── Disclaimer ─── */
.recipe-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-lt);
  border-radius: var(--r-md);
  margin-top: 16px;
}
.recipe-disclaimer-icon {
  font-size: 16px;
  color: var(--c-ink-3);
  flex-shrink: 0;
  margin-top: 2px;
}
.recipe-disclaimer-text {
  font-size: 12px;
  color: var(--c-ink-3);
  line-height: 1.6;
}
.recipe-disclaimer-text a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.recipe-tips-text {
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  color: var(--c-ink-2);
}
.ingr-item:last-child { border-bottom: none; }
.ingr-check {
  width: 17px; height: 17px;
  border: 1.5px solid var(--c-border);
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.ingr-check.checked { background: var(--c-brand); border-color: var(--c-brand); }
.ingr-check.checked::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 700; }
.ingr-name { flex: 1; }
.ingr-name.checked { text-decoration: line-through; color: var(--c-ink-3); }
.ingr-qty { font-size: 12px; color: var(--c-brand); font-weight: 600; }

/* Soļu saraksts */
.steps-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.steps-list { display: flex; flex-direction: column; gap: 14px; }
.step-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  width: 40px; height: 40px;
  background: var(--c-dark);
  color: #fdf8f2;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
  transition: background .2s;
}
.step-item.done .step-num { background: var(--c-brand); }
.step-content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.step-item.done .step-content { border-color: var(--c-brand-mid); background: var(--c-brand-lt); }
.step-content:hover { border-color: var(--c-brand-mid); }
.step-text { font-size: 14px; line-height: 1.65; }
.step-item.done .step-text { color: var(--c-ink-2); }
.step-tip {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--c-amber-lt);
  border-radius: var(--r-sm);
  border-left: 3px solid #e8a030;
  font-size: 12px;
  color: #7a4a10;
  line-height: 1.55;
}

/* ─────────────────────────────────────────
   7. SĀNJOSLA
   ───────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.widget-head {
  padding: 13px 18px 11px;
  border-bottom: 1px solid var(--c-border-lt);
  display: flex;
  align-items: center;
  gap: 9px;
}
.widget-head h3 { font-family: var(--font-serif); font-size: 14px; font-weight: 600; }

.widget-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.wi-orange { background: var(--c-brand-lt); }
.wi-green  { background: var(--c-green-lt); }
.wi-dark   { background: var(--c-dark); }

/* AI widget */
.ai-body { padding: 14px 18px 16px; }
.ai-body p { font-size: 12px; color: var(--c-ink-3); line-height: 1.55; margin-bottom: 12px; }

.ai-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.ai-chip {
  background: var(--c-brand-lt);
  color: var(--c-brand);
  border: 1px solid #e0c0a8;
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.ai-chip:hover { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }

/* Sezonālo receptes widget */
.season-list {}
.season-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--c-border-lt);
  cursor: pointer;
  transition: background .15s;
}
.season-item:last-child { border-bottom: none; }
.season-item:hover { background: var(--c-bg); }
.season-icon { font-size: 18px; line-height: 1; }
.season-name { flex: 1; font-size: 13px; }
.season-time { font-size: 11px; color: var(--c-ink-3); }

/* Padomi widget */
.widget-dark { background: var(--c-dark); }
.widget-dark .widget-head { border-bottom-color: rgba(255,255,255,.10); }
.widget-dark .widget-head h3 { color: #fdf8f2; }
.tips-list { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.tip-item { display: flex; gap: 10px; align-items: flex-start; }
.tip-dot { width: 5px; height: 5px; background: var(--c-brand-mid); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.tip-text { font-size: 12px; color: #b8a898; line-height: 1.55; }

/* Populārākās widget */
.popular-list {}
.popular-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--c-border-lt);
  cursor: pointer;
  transition: background .15s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: var(--c-bg); }
.popular-num {
  font-family: var(--font-serif);
  font-size: 20px; font-weight: 700;
  color: var(--c-border);
  line-height: 1; min-width: 24px;
}
.popular-title { font-size: 12px; font-weight: 500; color: var(--c-ink); line-height: 1.4; flex: 1; }
.popular-meta { font-size: 10px; color: var(--c-ink-3); margin-top: 2px; }

/* Kategoriju pills sidebar */
.cat-pills { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-pill {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: 4px 11px;
  font-size: 11px;
  color: var(--c-ink-2);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.cat-pill:hover { background: var(--c-brand-lt); border-color: var(--c-brand-mid); color: var(--c-brand); }

/* ─────────────────────────────────────────
   8. FORMAS & UI
   ───────────────────────────────────────── */

/* Universālais teksta lauks */
.field {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--c-ink);
  background: var(--c-bg);
  outline: none;
  transition: border-color .2s;
}
.field:focus { border-color: var(--c-brand); }
.field::placeholder { color: var(--c-ink-3); }

/* Hero forma */
.hero-form-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 26px 28px;
  backdrop-filter: blur(4px);
}
.hero-form-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: #a89880; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hero-form-label::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.09); }

.hero-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-field {
  flex: 1;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  padding: 10px 15px;
  font-size: 13px;
  color: #fdf8f2;
  outline: none;
  transition: border-color .2s;
}
.hero-field::placeholder { color: #8a7060; }
.hero-field:focus { border-color: rgba(192,90,34,.7); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chip {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 11px;
  color: #b8a898;
  cursor: pointer;
  transition: all .15s;
}
.hero-chip:hover { background: rgba(192,90,34,.25); color: #e8956a; border-color: rgba(192,90,34,.4); }

.hero-result {
  margin-top: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(192,90,34,.30);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: none;
}
.hero-result.show { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.hero-result-title { font-family: var(--font-serif); font-size: 15px; color: #fdf8f2; margin-bottom: 5px; font-weight: 600; }
.hero-result-text { font-size: 12px; color: #a89880; line-height: 1.55; margin-bottom: 10px; }
.hero-result-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-result-tag { background: rgba(192,90,34,.25); color: #e8956a; border-radius: 4px; padding: 3px 8px; font-size: 10px; font-weight: 600; }

/* Pogas */
.btn-primary {
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--c-brand-dk); }

.btn-ghost {
  background: transparent;
  color: var(--c-brand);
  border: 1px solid var(--c-brand-mid);
  border-radius: var(--r-md);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { background: var(--c-brand-lt); }

/* Filtra josla */
.filter-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 11px 20px;
  /* position: sticky noņemts — bloķēja saturu */
  z-index: 10;
}
.filter-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-lbl { font-size: 11px; color: var(--c-ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-right: 4px; }
.filter-btn {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--c-brand-lt);
  border-color: var(--c-brand-mid);
  color: var(--c-brand);
  font-weight: 500;
}
.filter-sort { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.filter-sort select {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--c-ink-2);
  background: var(--c-surface);
  outline: none;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   9. RAKSTU (ARTICLE) SKATS
   ───────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 44px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px 20px 56px;
}
.article-content { max-width: 700px; }

.article-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.article-tag {
  background: rgba(192,90,34,.20);
  border: 1px solid rgba(192,90,34,.35);
  color: #e8956a;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase;
}
.article-meta { display: flex; gap: 14px; font-size: 12px; color: #6a5848; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.article-meta strong { color: #8a7060; }

.article-visual {
  height: 260px;
  background: linear-gradient(145deg, #f5e8d8, #e8ceb0);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
  margin-bottom: 28px;
  border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
}
.article-visual img { position: absolute; inset: 0; }

.article-lead {
  font-family: var(--font-serif);
  font-size: 17px; font-weight: 400; font-style: italic;
  color: var(--c-ink-2);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
}
.article-body p { font-size: 15px; line-height: 1.75; color: var(--c-ink); margin-bottom: 18px; }
.article-body h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--c-ink); margin: 28px 0 12px; letter-spacing: -.2px; }
.article-body h3 { font-family: var(--font-serif); font-size: 16px; font-weight: 600; margin: 20px 0 8px; }

.article-blockquote {
  border-left: 3px solid var(--c-brand);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--c-brand-lt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--c-ink-2);
  line-height: 1.65;
}
.article-list {
  padding: 16px 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.article-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--c-border-lt);
  font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.55;
}
.article-list li:last-child { border-bottom: none; }
.article-list li::before { content: '▸'; color: var(--c-brand); font-size: 10px; margin-top: 5px; flex-shrink: 0; }


/* ─────────────────────────────────────────
   10. FOOTER
   ───────────────────────────────────────── */
.site-footer { background: var(--c-dark); padding: 44px 20px 28px; }
.footer-inner { max-width: var(--content-max); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 24px;
}
.footer-logo { font-family: var(--font-serif); font-size: 18px; color: #fdf8f2; font-weight: 700; margin-bottom: 10px; }
.footer-logo span { color: var(--c-brand-mid); }
.footer-tagline { font-size: 12px; color: #6a5848; line-height: 1.6; margin-bottom: 18px; }

/* Populārākās receptes footer */
.footer-popular { display: flex; flex-direction: column; gap: 0; }
.footer-popular-item {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
}
.footer-popular-item:last-child { border-bottom: none; }
.footer-popular-num { font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: rgba(255,255,255,.15); min-width: 20px; }
.footer-popular-title { font-size: 12px; color: #8a7060; line-height: 1.35; transition: color .15s; }
.footer-popular-item:hover .footer-popular-title { color: #e8956a; }

.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: #5a4838; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: #7a6858; transition: color .15s; }
.footer-col ul li a:hover { color: #e8956a; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #4a3828; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: #4a3828; transition: color .15s; }
.footer-legal a:hover { color: #7a6858; }

/* ─────────────────────────────────────────
   11. UTILITY
   ───────────────────────────────────────── */
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.pt-0  { padding-top: 0; }
.hidden { display: none; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; }

/* ─────────────────────────────────────────
   12. RESPONSIVITĀTE
   ───────────────────────────────────────── */

/* Attēli kas aizpilda konteineru */
.recipe-thumb img,
.recipe-row-thumb img,
.recipe-visual-box img,
.article-visual img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ≤1060px — sānjosla sašaurināta */
@media (max-width: 1060px) {
  :root { --sidebar-w: 200px; }
  .popular-num { font-size: 16px; }
}

/* ≤900px — hero 1 kolonna, layout pielāgots */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-sub { max-width: 100%; }
  .recipe-single-inner { grid-template-columns: 1fr; }
  .recipe-visual-box {
    display: flex;
    height: 220px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.07);
  }
  .article-layout { grid-template-columns: 1fr 180px; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .featured-strip { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-column: 1 / -1; min-height: 180px; }
}

/* ≤768px — 1 kolonna, sānjosla zem satura, nav saīsināta */
@media (max-width: 768px) {
  /* Layout — sānjosla ZEM galvenā satura, nevis slēpta */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Navigācija */
  .nav-links { display: none; }
  .nav-ham { display: flex; }
  .nav-search { display: none; }

  /* Receptes single */
  .recipe-body { grid-template-columns: 1fr; gap: 24px; }
  .ingr-card { position: static; }
  .recipe-stats { flex-wrap: wrap; }
  .rstat { min-width: 80px; }

  /* Raksts */
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; } /* TOC virs teksta */
  

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; }
.footer-col { display: block; }
  /* Filtri */
  .filter-inner { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filter-inner::-webkit-scrollbar { display: none; }
  .filter-sort { display: none; }
}

/* ≤580px — sānjosla 1 kolonna */
@media (max-width: 580px) {
  .sidebar { grid-template-columns: 1fr; }
}

/* ≤540px — mobilis */
@media (max-width: 540px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 28px 14px 32px; }
  .page-hero { padding: 20px 14px; }

  /* Receptes grid — 2 kolonnas */
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .recipe-thumb { height: 110px; }
  .recipe-card-title { font-size: 13px; }
  .recipe-visual-box {
    height: 180px;
  }

  /* Receptes rinda — pilna platuma bez labās puses */
  .recipe-row { grid-template-columns: 90px 1fr; }
  .recipe-row-right { display: none; }
  /* Pievieno grūtības badge tieši rindas ķermenī */
  .recipe-row-body .badge-diff-inline { display: inline-block; }

  /* Kategoriju karte — 3 kolonnas */
  .cat-grid-page { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 12px 8px; gap: 6px; }
  .cat-card-icon { width: 42px; height: 42px; font-size: 20px; }
  .cat-card h3 { font-size: 11px; }

  /* Featured */
  .featured-strip { grid-template-columns: 1fr; }
  .featured-main { min-height: 160px; }
  .featured-side { min-height: auto; flex-direction: row; align-items: center; gap: 12px; }
  .featured-side-emoji { margin-bottom: 0; font-size: 32px; }

  /* Hero forma */
  .hero-input-row { flex-direction: column; }
  .btn-primary[id="hero-ai-btn"] { width: 100%; justify-content: center; }

  /* Stats */
  .rstat { padding: 10px 12px; min-width: 60px; }
  .rstat-val { font-size: 15px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col { display: block; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }

  
}

/* ─────────────────────────────────────────
   PAPILDUS — kategorijas, raksts, misc
   ───────────────────────────────────────── */

/* Kategoriju indeksa wrap */
.cat-index-wrap { padding: 28px 0 56px; }
.cat-group-title { margin: 32px 0 18px; }

/* Hero flex (ikona + teksts) */
.page-hero-flex { display: flex; align-items: center; gap: 16px; }
.page-hero-icon { font-size: 48px; line-height: 1; flex-shrink: 0; }

/* Rezultātu skaits */
.results-count { color: var(--c-ink-3); font-size: 13px; }
.results-count strong { color: var(--c-ink); }

/* Tukšs stāvoklis */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { margin-top: 8px; }

/* Receptes rindas saraksts */
.recipe-list li { list-style: none; }

/* Receptes progress */
.steps-progress { display: flex; align-items: center; gap: 12px; }
.steps-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--c-border);
  border-radius: 4px;
  overflow: hidden;
}
.steps-progress-fill {
  height: 100%;
  background: var(--c-brand);
  border-radius: 4px;
  transition: width .4s ease;
}

/* Footer social */
.footer-social { display: flex; gap: 10px; margin-top: 2px; }
.footer-social-link {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #6a5848;
  transition: all .15s;
}
.footer-social-link:hover { border-color: var(--c-brand-mid); color: #e8956a; }

/* Rakstu josla (home tips sekcija) */
.article-row-list { display: flex; flex-direction: column; gap: 0; }
.article-row-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border-lt);
  cursor: pointer;
  transition: background .15s;
}
.article-row-item:first-child { padding-top: 0; }
.article-row-item:last-child  { border-bottom: none; }
.article-row-icon {
  font-size: 28px;
  line-height: 1;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-brand-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.article-row-body { flex: 1; min-width: 0; }
.article-row-tag {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--c-brand);
  display: block; margin-bottom: 4px;
}
.article-row-title {
  font-family: var(--font-serif);
  font-size: 15px; font-weight: 600;
  color: var(--c-ink); line-height: 1.35;
  margin-bottom: 4px;
}
.article-row-title a:hover { color: var(--c-brand); }

/* Raksta dalīšanās */
.article-footer-meta { margin-top: 36px; }
.article-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.share-btn {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all .15s;
}
.share-btn:hover { background: var(--c-brand-lt); border-color: var(--c-brand-mid); color: var(--c-brand); }

/* Mobilā izvēlne */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--c-surface);
  z-index: 150;
  padding: 16px 20px;
  border-top: 1px solid var(--c-border);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--r-md);
  transition: background .15s;
}
.mobile-menu ul li a:hover { background: var(--c-brand-lt); color: var(--c-brand); }

/* Stretched link (kartītes pilnīgi klikšķināmas) */
.recipe-card { position: relative; }
.stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* mt-8 utility */
.mt-8 { margin-top: 8px; }
.varda-diena {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--c-bg-soft, #f2ebe0);
  color: var(--c-text, #2a1f14);
  border-left: 3px solid var(--c-brand, #c0622f);
  border-radius: 6px;
  padding: .5rem .9rem;
  font-size: .9rem;
  margin: 8px 0;
}
.varda-diena strong {
  color: var(--c-brand, #c0622f);
}
/* ─── Tips & Tricks saraksts ─── */
.tips-list-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tips-row-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tips-row {
  display: flex;
  position: relative;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border-lt);
  transition: background .15s;
}
.tips-row:first-child { padding-top: 0; }
.tips-row:last-child  { border-bottom: none; }

.tips-row-icon {
  font-size: 28px;
  width: 52px; height: 52px;
  background: var(--c-brand-lt);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.tips-row:hover .tips-row-icon { background: var(--c-brand); }

.tips-row-body { flex: 1; min-width: 0; }

.tips-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.tips-row-tags,
.tips-row-tags a {
  position: relative;
  z-index: 1;
}
.tips-row-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.35;
  margin-bottom: 6px;
}
.tips-row-title a:hover { color: var(--c-brand); }

.tips-row-desc {
  font-size: 13px;
  color: var(--c-ink-3);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tips-row-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--c-ink-3);
}

/* Mobilais */
@media (max-width: 540px) {
  .tips-row { gap: 12px; padding: 16px 0; }
  .tips-row-icon { width: 42px; height: 42px; font-size: 22px; }
  .tips-row-title { font-size: 15px; }
}
/* ═══════════════════════════════════════════════════════
   RAKSTA VIENSKATS — uzlabojumi
   ═══════════════════════════════════════════════════════ */

/* ─── Hero ar pilna platuma attēlu ─── */
.article-hero-full {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--c-dark);
  z-index: 0;
}
.article-hero-bg img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,10,4,.10) 0%,
    rgba(20,10,4,.55) 50%,
    rgba(20,10,4,.92) 100%
  );
  z-index: 1;
}
.article-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 40px;
}
.article-hero-title {
  color: #fdf8f2;
  max-width: 780px;
  margin: 14px 0 16px;
}

/* Hero bez attēla — tūmšs fons */
.article-hero-full:not(:has(.article-hero-bg img)) {
  background: var(--c-dark);
  min-height: 320px;
}

/* ─── Raksta body — tabulas, saraksti ─── */
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 36px 0 14px;
  letter-spacing: -.3px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-brand-lt);
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--c-brand);
}
.article-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 20px 0 8px;
}
.article-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--c-ink);
  margin-bottom: 18px;
}
.article-body a {
  color: var(--c-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--c-brand-dk); }

/* Saraksti — ul */
.article-body ul {
  margin: 0 0 18px 0;
  padding: 14px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-body ul li {
  padding: 7px 0 7px 20px;
  border-bottom: 1px solid var(--c-border-lt);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
  position: relative;
}
.article-body ul li:last-child { border-bottom: none; }
.article-body ul li::before {
  content: '▸';
  color: var(--c-brand);
  font-size: 10px;
  position: absolute;
  left: 4px;
  top: 10px;
}

/* Saraksti — ol */
.article-body ol {
  margin: 0 0 18px 0;
  padding: 14px 18px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  counter-reset: ol-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-body ol li {
  padding: 8px 0 8px 36px;
  border-bottom: 1px solid var(--c-border-lt);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-ink);
  position: relative;
  counter-increment: ol-counter;
}
.article-body ol li:last-child { border-bottom: none; }
.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px; height: 24px;
  background: var(--c-brand);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Tabulas */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.article-body thead tr {
  background: var(--c-dark);
  color: #fdf8f2;
}
.article-body thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.article-body thead th:last-child { border-right: none; }
.article-body tbody tr { border-bottom: 1px solid var(--c-border-lt); }
.article-body tbody tr:last-child { border-bottom: none; }
.article-body tbody tr:nth-child(even) { background: var(--c-bg); }
.article-body tbody tr:hover { background: var(--c-brand-lt); }
.article-body tbody td {
  padding: 10px 14px;
  color: var(--c-ink);
  border-right: 1px solid var(--c-border-lt);
}
.article-body tbody td:last-child { border-right: none; }

/* Blockquote */
.article-body blockquote {
  border-left: 4px solid var(--c-brand);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--c-brand-lt);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--c-ink-2);
  line-height: 1.7;
}
.article-body blockquote p { margin-bottom: 0; color: var(--c-ink-2); }

/* Kods */
.article-body code {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  font-size: 13px;
  color: var(--c-brand-dk);
}
.article-body pre {
  background: var(--c-dark);
  border-radius: var(--r-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 18px;
}
.article-body pre code {
  background: none;
  border: none;
  color: #e8ceb0;
  font-size: 13px;
  padding: 0;
}

/* ─── Tagi apakšā ─── */
.article-tags-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-tags-lbl { font-size: 12px; color: var(--c-ink-3); }

/* ─── Dalīšanās ─── */
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.share-btn {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.share-btn:hover {
  background: var(--c-brand-lt);
  border-color: var(--c-brand-mid);
  color: var(--c-brand);
}

/* ─── Citi raksti ─── */
.article-related { margin-top: 8px; }
.article-related-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-related-list { display: flex; flex-direction: column; gap: 0; }
.article-related-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-border-lt);
  text-decoration: none;
  transition: background .15s;
}
.article-related-item:last-child { border-bottom: none; }
.article-related-item:hover .article-related-title-text { color: var(--c-brand); }
.article-related-icon {
  width: 80px; height: 80px;
  background: var(--c-brand-lt);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background .2s;
}
.article-related-item:hover .article-related-icon { background: var(--c-brand); }
.article-related-body { flex: 1; min-width: 0; }
.article-related-title-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.35;
  margin: 3px 0 4px;
  transition: color .15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Responsivitāte ─── */
@media (max-width: 900px) {
  .article-hero-full { min-height: 360px; }
  .article-hero-title { font-size: clamp(22px, 4vw, 34px); }
}
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { order: -1; }
  .article-hero-full { min-height: 300px; }
}
@media (max-width: 540px) {
  .article-hero-full { min-height: 260px; }
  .article-hero-content { padding-top: 32px; padding-bottom: 28px; }
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 15px; }
  .article-body table { font-size: 12px; }
  .article-body thead th,
  .article-body tbody td { padding: 8px 10px; }
}





.article-hero-single {
  background: var(--c-dark);
  padding: 48px 20px 0;
}
.article-single-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: end;
}
.article-hero-left { padding-bottom: 36px; }
.article-hero-title {
  color: #fdf8f2;
  max-width: 600px;
  margin: 14px 0 16px;
}
.article-hero-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.article-visual-box {
  height: 420px;
  background: linear-gradient(145deg, var(--c-dark-2) 0%, #5a3018 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-bottom: none;
}
.article-visual-box img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Mobilais */
@media (max-width: 900px) {
  .article-single-inner { grid-template-columns: 1fr; }
  .article-visual-box { height: 280px; border-radius: var(--r-lg); margin-bottom: 0; }
}
@media (max-width: 540px) {
  .article-visual-box { height: 220px; }
  .article-hero-single { padding: 28px 14px 0; }
}

.toc-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  top: calc(var(--nav-h) + 16px);
  min-width: 0;
}
.toc-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--c-border-lt);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--c-ink-3);
}
.toc-list {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.toc-item {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--c-ink-2);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .15s;
  line-height: 1.4;
  white-space: normal;        /* ← svarīgi */
  word-break: break-word;     /* ← svarīgi */
  overflow-wrap: break-word;  /* ← svarīgi */
  text-decoration: none;
}
.toc-item:hover,
.toc-item.active {
  color: var(--c-brand);
  border-left-color: var(--c-brand);
  background: var(--c-brand-lt);
}
.toc-item.sub {
  padding-left: 26px;
  font-size: 11px;
  color: var(--c-ink-3);
}

/* ─── Meklēšanas lapa ─── */
.search-hero-form { margin-top: 20px; }
.search-hero-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 16px;
  max-width: 560px;
}
.search-hero-icon { font-size: 16px; color: rgba(255,255,255,.4); flex-shrink: 0; }
.search-hero-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fdf8f2;
  font-family: var(--font-sans);
}
.search-hero-input::placeholder { color: rgba(255,255,255,.35); }

/* Tabi */
.search-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--c-border);
  margin-top: 24px;
  margin-bottom: 0;
}
.search-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
  text-decoration: none;
}
.search-tab:hover { color: var(--c-ink); }
.search-tab.active { color: var(--c-brand); border-bottom-color: var(--c-brand); }
.search-tab-count {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-ink-3);
}
.search-tab.active .search-tab-count {
  background: var(--c-brand-lt);
  border-color: var(--c-brand-mid);
  color: var(--c-brand);
}

/* Mobilais */
@media (max-width: 540px) {
  .search-hero-row { max-width: 100%; }
  .search-tab { padding: 8px 12px; font-size: 13px; }
}
/* ─── Statiskās lapas ─── */
.static-page-wrap { padding: 40px 0 64px; }
.static-page-inner {
  max-width: 760px;
  margin: 0 auto;
}

.static-page-img {
  height: 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--c-border);
}
.static-page-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Kontaktu bloks */
.static-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0;
}
.static-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border-lt);
}
.static-contact-item:last-child { border-bottom: none; }
.static-contact-icon { font-size: 22px; flex-shrink: 0; }
.static-contact-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-ink-3);
  margin-bottom: 2px;
}
.static-contact-item a {
  font-size: 14px;
  color: var(--c-brand);
  font-weight: 500;
}
.static-contact-item a:hover { text-decoration: underline; }

/* Kontaktu forma */
.static-form-wrap {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 32px;
}
.static-form-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 20px;
}
.static-form { display: flex; flex-direction: column; gap: 14px; }
.static-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.static-form-group { display: flex; flex-direction: column; gap: 6px; }
.static-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-ink-2);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.static-form textarea.field { resize: vertical; min-height: 120px; }

/* Mobilais */
@media (max-width: 540px) {
  .static-page-img { height: 200px; }
  .static-form-row { grid-template-columns: 1fr; }
  .static-form-wrap { padding: 18px; }
}
.ai-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 20px rgba(37,20,8,.08);
}
.ai-section { margin-bottom: 28px; }
.ai-section-title {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: 12px;
}
.ai-counter { font-family: var(--f-sans); font-size:.85rem; color:#888; }
.ai-group-title {
  font-family: var(--f-sans);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
  margin: 12px 0 6px;
}
.ai-meal-row { display:flex; gap:10px; flex-wrap:wrap; }
.ai-meal-btn input { display:none; }
.ai-meal-btn span {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid #e8e0d5;
  border-radius: 50px;
  font-family: var(--f-sans);
  cursor: pointer;
  transition: all .2s;
}
.ai-meal-btn input:checked + span {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
}
.ai-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:4px; }
.ai-chip-label input { display:none; }
.ai-chip-label span {
  display: inline-block;
  padding: 7px 14px;
  border: 1.5px solid #e8e0d5;
  border-radius: 50px;
  font-family: var(--f-sans);
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.ai-chip-label input:checked + span {
  border-color: var(--c-brand);
  background: #fdf0e8;
  color: var(--c-brand);
  font-weight: 600;
}
.ai-chip-label input:disabled + span {
  opacity: .4;
  cursor: not-allowed;
}
.ai-generate-btn { width:100%; padding:14px; font-size:1.1rem; margin-top:8px; }
.ai-error {
  background: #fff5f5;
  border: 1px solid #f5a0a0;
  color: #9b2c2c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--f-sans);
}
.ai-loading {
  text-align: center;
  padding: 32px;
}
.ai-loading-dots { display:flex; justify-content:center; gap:8px; margin-bottom:12px; }
.ai-loading-dots span {
  width: 10px; height: 10px;
  background: var(--c-brand);
  border-radius: 50%;
  animation: ai-bounce .8s infinite alternate;
}
.ai-loading-dots span:nth-child(2) { animation-delay:.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes ai-bounce {
  from { transform: translateY(0); opacity:.4; }
  to   { transform: translateY(-10px); opacity:1; }
}
.ai-loading-text { font-family:var(--f-sans); color:#888; }
.ai-result-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--c-bg);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid #e8e0d5;
}
.ai-result-icon { font-size: 48px; line-height:1; }
.ai-result-title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-dark);
  margin: 6px 0;
}
.ai-result-summary { font-family:var(--f-sans); color:#555; font-size:.95rem; }
.ai-badge-new, .ai-badge-found {
  display: inline-block;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--f-sans);
}
.ai-badge-new   { background:#fdf0e8; color:var(--c-brand); }
.ai-badge-found { background:#f0f7f0; color:#2d6a2d; }
.ai-draft-banner {
  background: #fdf0e8;
  border-bottom: 1px solid #e8d5c4;
  padding: 10px 0;
  text-align: center;
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--c-brand);
}

.ai-draft-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}

.ai-draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

@media (max-width: 680px) {
  .ai-draft-grid {
    grid-template-columns: 1fr;
  }
}

.ai-draft-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(37,20,8,.07);
}

.ai-ingredients-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.ai-ingredients-list li {
  font-family: var(--f-sans);
  padding: 8px 0;
  border-bottom: 1px solid #f0ece6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-ingredients-list li::before {
  content: '✓';
  color: var(--c-brand);
  font-weight: 600;
  flex-shrink: 0;
}

.ai-directions-list {
  padding: 0 0 0 20px;
  margin: 16px 0 0;
}

.ai-directions-list li {
  font-family: var(--f-sans);
  padding: 8px 0;
  border-bottom: 1px solid #f0ece6;
  line-height: 1.6;
}
.ai-chip-incompatible span {
  opacity: .35;
  cursor: not-allowed;
  border-color: #ddd !important;
  background: #f5f5f5 !important;
  color: #aaa !important;
  position: relative;
}

.ai-chip-incompatible span::after {
  content: attr(title);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.ai-chip-incompatible:hover span::after {
  opacity: 1;
}



.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid #e8e0d5;
  border-radius: 8px;
  font-family: var(--f-sans);
  font-size: .9rem;
  color: var(--c-dark);
  text-decoration: none;
  transition: all .2s;
}

.pagination-btn:hover {
  border-color: var(--c-brand);
  color: var(--c-brand);
}

.pagination-btn.active {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  font-weight: 600;
}

.pagination-btn.disabled {
  opacity: .35;
  cursor: not-allowed;
}

.pagination-dots {
  color: #aaa;
  font-family: var(--f-sans);
  padding: 0 4px;
}
@media (max-width: 600px) {
  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: .8rem;
    padding: 0 7px;
    border-radius: 6px;
  }

  .pagination-btn.hide-mobile {
    display: none;
  }
}
.ai-promo-widget {
  background: linear-gradient(135deg, #2a1608 0%, #c05a22 100%);
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

.ai-promo-inner {
  padding: 28px 24px;
  text-align: center;
}

.ai-promo-icon {
  font-size: 42px;
  margin-bottom: 12px;
  animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.ai-promo-title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 10px;
}

.ai-promo-text {
  font-family: var(--f-sans);
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #fff;
  color: var(--c-brand);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all .2s;
}

.ai-promo-btn:hover {
  background: #fdf0e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}