/* =====================================================================
   Koledarcek.si – slog
   Mobilno usmerjeno, brez zunanjih pisav in knjiznic.
   ===================================================================== */

:root {
    --green-900: #1f4c2a;
    --green-700: #2f6b3c;
    --green-600: #3f7d44;
    --green-100: #e8f2e4;
    --green-050: #f4f8f1;

    --earth-700: #7a5a2b;
    --earth-100: #f5ecdc;

    --sun-600:   #c08a1e;
    --sun-100:   #fdf3d9;

    --alert-700: #a3391f;
    --alert-100: #fbe9e4;

    --ink-900:   #1c2419;
    --ink-700:   #384232;
    --ink-500:   #5d6a57;
    --ink-300:   #97a291;

    --line:      #dbe3d6;
    --bg:        #ffffff;
    --bg-soft:   #f6f9f4;

    --radius:    12px;
    --radius-lg: 18px;
    --shadow:    0 1px 3px rgba(28, 36, 25, .08), 0 6px 20px rgba(28, 36, 25, .05);
    --maxw:      74rem;
    --maxw-narrow: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;      /* 17px – berljivo tudi starejsim */
    line-height: 1.65;
    color: var(--ink-900);
    background: var(--bg);
}

@media (min-width: 48rem) {
    body { font-size: 1.125rem; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.65rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }
.container.narrow { max-width: var(--maxw-narrow); }

@media (min-width: 48rem) { .container { padding-inline: 1.5rem; } }

.section { padding-block: clamp(1.75rem, 4vw, 3rem); }
.muted { color: var(--ink-500); }
.small { font-size: .9375rem; }
.lead { font-size: 1.1em; color: var(--ink-700); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--green-900); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--sun-600);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ------------------------------- glava ---------------------------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}

.header-inner {
    display: flex; align-items: center; gap: 1rem;
    padding-block: .75rem;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand-mark { flex: none; display: block; }
.brand-text strong { font-size: 1.35rem; color: var(--green-900); letter-spacing: -.02em; }
.brand-tld { font-size: 1.35rem; color: var(--sun-600); font-weight: 700; }
.brand-text small { display: block; font-size: .75rem; color: var(--ink-500); line-height: 1.3; }

.header-tools { margin-left: auto; flex: 1 1 14rem; min-width: 0; }

.search-form { position: relative; display: flex; }
.search-form input {
    flex: 1 1 auto; min-width: 0;
    padding: .65rem .9rem; font-size: 1rem;
    border: 1.5px solid var(--line); border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--bg-soft); color: inherit;
}
.search-form button {
    flex: none; padding: 0 .95rem; cursor: pointer;
    border: 1.5px solid var(--green-700); background: var(--green-700); color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: grid; place-items: center;
}
.search-form button:hover { background: var(--green-900); border-color: var(--green-900); }

.suggest-list {
    position: absolute; top: calc(100% + .3rem); left: 0; right: 0; z-index: 60;
    margin: 0; padding: .3rem; list-style: none;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-height: 20rem; overflow-y: auto;
}
.suggest-list a {
    display: block; padding: .55rem .7rem; border-radius: 8px;
    text-decoration: none; color: var(--ink-900);
}
.suggest-list a:hover, .suggest-list a:focus { background: var(--green-100); }
.suggest-kind { float: right; font-size: .8rem; color: var(--ink-300); }

.nav-toggle {
    display: none; order: 3;
    background: none; border: 1.5px solid var(--line); border-radius: 10px;
    padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink-900); position: relative;
}
.nav-toggle-bars::before { content: ''; position: absolute; top: -6px; }
.nav-toggle-bars::after  { content: ''; position: absolute; top: 6px; }

.main-nav { border-top: 1px solid var(--line); background: var(--bg-soft); }
.main-nav ul {
    display: flex; flex-wrap: wrap; gap: .15rem;
    list-style: none; margin: 0; padding: .3rem 0;
}
.main-nav a {
    display: block; padding: .5rem .75rem; border-radius: 8px;
    text-decoration: none; color: var(--ink-700); font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { background: var(--green-100); color: var(--green-900); }
.main-nav a[aria-current] { background: var(--green-700); color: #fff; }

.period-bar { background: var(--green-900); }
.period-bar .container {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding-block: .55rem;
}

.period-tabs { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.period-tabs a {
    display: block; padding: .45rem .9rem; border-radius: 999px;
    color: #d9ecd4; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.period-tabs a:hover { background: rgba(255,255,255,.12); color: #fff; }
.period-tabs a.is-active { background: #fff; color: var(--green-900); }

.region-form { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.region-form label { color: #d9ecd4; font-size: .875rem; }
.region-form select {
    padding: .4rem .6rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.95); color: var(--ink-900); font-size: .9rem; max-width: 16rem;
}
.btn-small {
    padding: .4rem .75rem; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: .85rem;
}
.btn-small:hover { background: rgba(255,255,255,.15); }

@media (max-width: 47.99rem) {
    .nav-toggle { display: block; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; padding-block: .5rem; }
    .main-nav a { padding: .7rem .75rem; }
    .header-tools { order: 4; flex-basis: 100%; }
    .region-form { margin-left: 0; flex-basis: 100%; }
    .region-form select { flex: 1 1 auto; max-width: none; }
}

/* ---------------------------- drobtinice -------------------------- */

.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumbs ol {
    display: flex; flex-wrap: wrap; gap: .4rem;
    list-style: none; margin: 0; padding: .5rem 0; font-size: .875rem;
}
.breadcrumbs li + li::before { content: '›'; margin-right: .4rem; color: var(--ink-300); }
.breadcrumbs a { color: var(--ink-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-700); }

/* ------------------------------ uvod ------------------------------ */

.hero {
    background: linear-gradient(170deg, var(--green-050), var(--bg) 70%);
    padding-block: clamp(1.5rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}
.hero-date { color: var(--green-700); font-weight: 600; margin-bottom: .3rem; text-transform: capitalize; }
.hero h1 { margin-bottom: .5rem; }
.hero-lead { font-size: 1.15em; max-width: 44rem; color: var(--ink-700); }

.page-head {
    background: var(--bg-soft);
    padding-block: clamp(1.25rem, 3.5vw, 2.5rem);
    border-bottom: 1px solid var(--line);
}
.page-sub { color: var(--ink-500); margin-bottom: 1rem; }
.latin { color: var(--ink-500); margin-top: -.5rem; }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.section-head h2 { margin: 0; }
.link-more { font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* --------------------------- obmocje ------------------------------ */

.region-note {
    background: var(--green-100);
    border-left: 4px solid var(--green-600);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: .85rem 1rem; margin-block: 1rem;
    font-size: .95rem;
}
.region-note p:last-child { margin-bottom: 0; }

/* ------------------------- filtri / gumbi ------------------------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: .75rem; }
.filter-chip {
    display: inline-block; padding: .4rem .85rem; border-radius: 999px;
    border: 1.5px solid var(--line); background: #fff;
    text-decoration: none; color: var(--ink-700); font-size: .9rem; font-weight: 500;
}
.filter-chip:hover { border-color: var(--green-600); color: var(--green-900); }
.filter-chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.btn {
    display: inline-block; padding: .7rem 1.25rem; border-radius: var(--radius);
    background: var(--green-700); color: #fff; text-decoration: none;
    font-weight: 600; border: 1.5px solid var(--green-700); cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-outline { background: #fff; color: var(--green-700); }
.btn-outline:hover { background: var(--green-100); color: var(--green-900); }

.cross-links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* -------------------------- dejavnosti ---------------------------- */

.activity-grid {
    display: grid; gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 42rem) { .activity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }

.activity-group {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1rem 1.1rem 1.2rem; box-shadow: var(--shadow);
    border-top: 4px solid var(--green-600);
}
.activity-group.act-indoor      { border-top-color: #7b6bbd; }
.activity-group.act-greenhouse  { border-top-color: #3f9aa8; }
.activity-group.act-sow         { border-top-color: #4f9d43; }
.activity-group.act-plant       { border-top-color: #b07a2e; }
.activity-group.act-transplant  { border-top-color: #2f8f6b; }
.activity-group.act-harvest     { border-top-color: #c47a1c; }

.activity-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: 1.05rem; margin-bottom: .8rem;
}
.activity-icon { font-size: 1.2rem; }
.activity-count {
    margin-left: auto; background: var(--green-100); color: var(--green-900);
    border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; font-weight: 700;
}

.plant-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }

.plant-chip {
    display: block; padding: .5rem .75rem;
    background: var(--green-050); border: 1px solid var(--line);
    border-radius: 10px; text-decoration: none; color: var(--ink-900);
    font-size: .95rem; line-height: 1.35;
}
.plant-chip:hover { background: var(--green-100); border-color: var(--green-600); }
.plant-chip.is-secondary { background: #fff; border-style: dashed; }
.chip-name { display: block; font-weight: 600; }
.chip-label { display: block; font-size: .8rem; color: var(--ink-500); }
.chip-window { display: block; font-size: .78rem; color: var(--ink-300); }

.chip-flag {
    display: inline-block; margin-top: .2rem; padding: .05rem .45rem;
    border-radius: 999px; font-size: .72rem; font-weight: 700;
}
.flag-urgent  { background: var(--alert-100); color: var(--alert-700); }
.flag-soon    { background: var(--sun-100);   color: #8a6110; }
.flag-optional{ background: #eef0ed;          color: var(--ink-500); }

/* ---------------------------- opravila ---------------------------- */

.task-block { margin-block: 1.25rem; }
.task-block h2 { margin-bottom: .8rem; }

.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 52rem) { .task-list { grid-template-columns: repeat(2, 1fr); } }

.task-item {
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-600);
    border-radius: 0 var(--radius) var(--radius) 0; padding: .9rem 1rem;
}
.task-head { display: flex; align-items: flex-start; gap: .55rem; }
.task-head h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.task-icon { font-size: 1.15rem; line-height: 1.4; }
.task-item p { margin-bottom: .5rem; color: var(--ink-700); font-size: .97rem; }

.task-opozorilo { border-left-color: var(--alert-700); background: var(--alert-100); }
.task-oskrba    { border-left-color: #2f8f8f; }
.task-priprava  { border-left-color: var(--earth-700); }
.task-pobiranje { border-left-color: var(--sun-600); }

.task-meta {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    font-size: .8rem; margin-bottom: 0 !important;
}
.task-window { color: var(--ink-500); }

.task-block-warning .task-list { grid-template-columns: 1fr; }

.reliability {
    display: inline-block; padding: .05rem .5rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}
.rel-high { background: #e2f1e2; color: #22622b; }
.rel-mid  { background: var(--sun-100); color: #8a6110; }
.rel-low  { background: #eceff0; color: #4d5a5f; }

/* ----------------------------- kartice ---------------------------- */

.category-cards, .article-cards, .plant-cards {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
}
.category-cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.article-cards  { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.plant-cards    { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.category-card, .article-card, .plant-card {
    display: block; height: 100%; padding: 1.1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.category-card:hover, .article-card:hover, .plant-card:hover {
    border-color: var(--green-600); transform: translateY(-2px);
    transition: transform .15s ease;
}
.category-card { border-top: 4px solid var(--cat-color, var(--green-600)); }
.cat-icon { font-size: 1.8rem; display: block; margin-bottom: .35rem; }
.cat-name { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: .25rem; }
.cat-desc { display: block; font-size: .92rem; color: var(--ink-500); }

.article-card h2, .article-card h3, .plant-card h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.article-card p, .plant-card p { font-size: .93rem; color: var(--ink-500); margin-bottom: .5rem; }

.card-tag {
    display: inline-block; font-size: .78rem; font-weight: 700;
    color: var(--green-700); background: var(--green-100);
    padding: .1rem .5rem; border-radius: 999px; margin-bottom: .5rem;
}
.card-tag.inline a { text-decoration: none; }
.card-meta { font-size: .8rem; color: var(--ink-300); }

/* -------------------------- stran rastline ------------------------ */

.badge-row { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
    display: inline-block; padding: .25rem .7rem; border-radius: 999px;
    background: #eef1ec; color: var(--ink-700); font-size: .82rem; font-weight: 600;
}
.badge-quiet { background: transparent; border: 1px solid var(--line); color: var(--ink-500); }
.frost-high { background: var(--alert-100); color: var(--alert-700); }
.frost-mid  { background: var(--sun-100);   color: #8a6110; }
.frost-low  { background: #e2f1e2;          color: #22622b; }
.frost-none { background: #dceaf5;          color: #1d4f70; }

.now-box {
    background: var(--green-100); border-radius: var(--radius-lg);
    padding: 1.25rem; margin-top: 1.5rem;
}
.now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.now-list li { background: #fff; border-radius: var(--radius); padding: .75rem .9rem; }
.now-window { display: block; font-size: .85rem; color: var(--ink-500); }

.period-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.period-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem;
}
.period-card h3 { font-size: 1rem; color: var(--green-900); }
.period-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.period-card li { border-top: 1px solid var(--line); padding-top: .6rem; }
.period-card li:first-child { border-top: 0; padding-top: 0; }
.period-range { display: block; font-weight: 600; }
.period-label { display: block; font-size: .88rem; color: var(--ink-500); }

.care-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.care-card {
    background: var(--bg-soft); border-radius: var(--radius-lg); padding: 1rem 1.1rem;
    border: 1px solid var(--line);
}
.care-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.care-card p { font-size: .95rem; margin-bottom: 0; color: var(--ink-700); }
.care-warning { background: var(--alert-100); border-color: #f0cfc5; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td {
    text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); font-size: .97rem;
}
.data-table th { width: 45%; font-weight: 600; color: var(--ink-700); }

.sources-box {
    background: var(--bg-soft); border-radius: var(--radius-lg); padding: 1.25rem;
    border: 1px solid var(--line);
}
.source-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.source-list li { border-left: 3px solid var(--line); padding-left: .8rem; }
.source-list p { margin-bottom: 0; }

/* --------------------------- koledar tabela ----------------------- */

.legend { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend-swatch { width: 1rem; height: 1rem; border-radius: 4px; display: inline-block; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.calendar-table { border-collapse: collapse; width: 100%; min-width: 44rem; background: #fff; }
.calendar-table th, .calendar-table td {
    border: 1px solid var(--line); padding: .35rem; text-align: center; font-size: .85rem;
}
.calendar-table thead th { background: var(--green-900); color: #fff; position: sticky; top: 0; }
.calendar-table thead th.is-now { background: var(--sun-600); }
.calendar-table .col-plant {
    text-align: left; min-width: 10rem; background: var(--bg-soft);
    font-weight: 600; position: sticky; left: 0; z-index: 2;
}
.calendar-table thead .col-plant { background: var(--green-900); z-index: 3; }
.calendar-table .col-plant a { text-decoration: none; }
.calendar-table td.is-now { background: #fffaf0; }
.calendar-table abbr { text-decoration: none; }

.cell-stack { display: flex; flex-direction: column; gap: 2px; }
.cell-mark { display: block; height: .7rem; border-radius: 3px; }
.cell-indoor      { background: #7b6bbd; }
.cell-greenhouse  { background: #3f9aa8; }
.cell-sow         { background: #4f9d43; }
.cell-plant       { background: #b07a2e; }
.cell-transplant  { background: #2f8f6b; }
.cell-harvest     { background: #c47a1c; }

.table-note { font-size: .875rem; color: var(--ink-500); margin-top: .75rem; }

.month-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.month-links a {
    display: block; padding: .5rem .9rem; border-radius: 999px;
    background: var(--bg-soft); border: 1px solid var(--line);
    text-decoration: none; color: var(--ink-700); font-size: .92rem;
}
.month-links a:hover { border-color: var(--green-600); }
.month-links a.is-now { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.month-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }

.month-intro, .highlight-box {
    background: var(--earth-100); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.highlight-box { background: var(--sun-100); }

.disclaimer { color: var(--ink-700); font-size: .97rem; }

/* ---------------------------- besedilo ---------------------------- */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.35em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
    margin: 1.5em 0; padding: .75em 1.1em; border-left: 4px solid var(--green-600);
    background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.prose code { background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; font-size: .9em; }

.article-meta { font-size: .9rem; color: var(--ink-500); }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.result-list li { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.result-list p { margin: .25rem 0 0; color: var(--ink-500); font-size: .95rem; }

.empty-state {
    background: var(--bg-soft); border: 1px dashed var(--line);
    border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; color: var(--ink-500);
}

.alert {
    padding: .9rem 1.1rem; border-radius: var(--radius);
    background: var(--bg-soft); border-left: 4px solid var(--ink-300); margin-bottom: 1rem;
}
.alert-success { background: #e5f3e5; border-left-color: var(--green-600); }
.alert-warning { background: var(--sun-100); border-left-color: var(--sun-600); }

/* ---------------------------- obrazci ----------------------------- */

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field input, .field textarea, .field select {
    width: 100%; padding: .7rem .85rem; font-size: 1rem; font-family: inherit;
    border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--green-600); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.search-page-form { display: flex; gap: .5rem; margin-block: 1rem; }
.search-page-form input {
    flex: 1 1 auto; padding: .7rem .9rem; font-size: 1rem;
    border: 1.5px solid var(--line); border-radius: var(--radius);
}

/* ------------------------------ noga ------------------------------ */

.site-footer { background: var(--green-900); color: #d5e6d0; margin-top: 3rem; }
.footer-grid {
    display: grid; gap: 1.75rem; padding-block: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-col h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: #a9cfa2; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-col a { color: #e6f2e2; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }
.footer-note { font-size: .9rem; color: #b9d4b3; }
.footer-months { grid-template-columns: repeat(2, 1fr); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15); padding-block: 1rem;
    font-size: .85rem; color: #a9c4a4;
}
.footer-bottom p { margin: 0; }

/* ------------------------------ tisk ------------------------------ */

@media print {
    .site-header, .site-footer, .filter-bar, .breadcrumbs, .cross-links { display: none; }
    body { font-size: 11pt; }
    a { text-decoration: none; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   SLIKE
   Vse so neobvezne. Ce slike ni, se ne izpise nic in postavitev
   ostane enaka kot doslej.
   Razmerje strani je doseceno s podlozitvijo (padding-top), ker to
   deluje tudi v starejsih brskalnikih in prepreci poskakovanje strani
   med nalaganjem.
   ===================================================================== */

.card-media,
.cat-media {
    display: block;
    position: relative;
    margin: -1.1rem -1.1rem .85rem;
    padding-top: 60%;                 /* razmerje 5 : 3 */
    overflow: hidden;
    background: var(--green-100);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-media img,
.cat-media img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Pri sirsih karticah je slika nekoliko nizja. */
.article-cards-wide .card-media { padding-top: 48%; }

.category-card.has-media { padding-top: 0; }
.category-card.has-media .cat-media { margin-top: 0; }
.category-card.has-media .cat-icon {
    position: absolute;
    margin: -2.6rem 0 0 .9rem;
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45));
}
.category-card.has-media .cat-name { margin-left: .9rem; margin-right: .9rem; }
.category-card.has-media .cat-desc { margin: 0 .9rem 1.1rem; }
.category-card { position: relative; }

/* ---- Slika v clanku ---- */
.article-media {
    margin: 0 0 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-100);
}
.article-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Slika na strani rastline ---- */
.page-head-side .plant-media {
    float: right;
    width: 34%;
    max-width: 15rem;
    margin: 0 0 1rem 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-100);
}
.page-head-side .plant-media img {
    display: block;
    width: 100%;
    height: auto;
}
.page-head-side .container::after {
    content: '';
    display: table;
    clear: both;
}

@media (max-width: 40rem) {
    .page-head-side .plant-media {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 1.25rem;
    }
}

/* ---- Slika v ozadju glave podrocja ---- */
.page-head-media { position: relative; overflow: hidden; }

.page-head-media .head-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}
.page-head-media .head-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
/* Prekrivna plast poskrbi, da je besedilo berljivo na vsaki sliki. */
.page-head-media .head-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.96) 70%);
}
.page-head-media > .container { position: relative; z-index: 1; }
