/*
Theme Name: Modne Ogrody
Theme URI: https://modne-ogrody.pl
Author: Modne Ogrody
Description: Edytowalny motyw bloga ogrodniczego ze słownikiem i kalendarzem kwitnienia.
Version: 1.0.11
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: modne-ogrody
*/

:root {
  --forest-950: #032d24;
  --forest-900: #073f31;
  --forest-800: #0d5140;
  --green-700: #00764c;
  --green-600: #008b5a;
  --green-500: #10a26b;
  --lime-400: #9fd86f;
  --mint-100: #e7f4ec;
  --mint-50: #f3f8f5;
  --paper: #fff;
  --ink: #10241d;
  --muted: #64716c;
  --line: #dfe8e3;
  --shadow: 0 14px 50px rgba(5, 51, 40, .09);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1160px;
  --container-wide: 1380px;
  --font: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-is-open, body.search-is-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .6em; letter-spacing: -.035em; line-height: 1.18; }
h1 { font-size: clamp(2.6rem, 5vw, 5.1rem); font-weight: 660; }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1.25em; }
ul { margin-top: 0; }

.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.container-wide { width: min(calc(100% - 32px), var(--container-wide)); margin-inline: auto; }
.container-narrow { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.section { padding-block: 78px; }
.section--tight { padding-top: 20px; }
.screen-reader-text, .skip-link:not(:focus) { 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:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; }
.icon { width: 1.35em; height: 1.35em; flex: 0 0 auto; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--green-600); border-radius: 8px; background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #fff; font-size: .86rem; font-weight: 650; line-height: 1.2; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 139, 90, .2); }
.button--small { min-height: 42px; padding: 10px 19px; font-size: .78rem; }
.button--outline { border-color: #cbd9d2; color: var(--ink); background: transparent; }
.button--outline:hover { border-color: var(--green-600); color: var(--green-700); box-shadow: none; }
.button--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.04); }
.button .icon { width: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-700); font-size: .82rem; font-weight: 650; }
.text-link .icon { width: 1em; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.eyebrow--light { color: #fff; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-heading h2 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.42rem; letter-spacing: -.02em; }
.section-heading--light { color: #fff; }
.leaf-heading { display: flex; align-items: center; gap: 12px; }
.leaf-heading > .icon { color: var(--green-600); width: 1.05em; }

/* Header */
.site-header { position: relative; z-index: 100; background: rgba(255,255,255,.97); }
.site-header__inner { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 1.2rem; font-weight: 750; letter-spacing: -.04em; }
.brand__mark { display: inline-flex; color: var(--green-600); }
.brand__mark .icon { width: 29px; height: 29px; stroke-width: 1.7; }
.brand__custom .custom-logo-link { display: flex; }
.brand__custom img { max-width: 205px; max-height: 48px; width: auto; }
.site-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; display: block; padding: 30px 0; font-size: .78rem; font-weight: 580; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 1.5px; transform: scaleX(0); background: var(--green-600); transition: transform .2s; }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--green-700); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-button, .menu-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid #cbd9d2; border-radius: 50%; color: var(--ink); background: #fff; }
.icon-button:hover { color: var(--green-600); border-color: var(--green-600); }
.menu-toggle { display: none; }
.menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }

.search-panel[hidden] { display: none; }
.search-panel { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: start center; padding-top: 10vh; background: rgba(3,45,36,.75); backdrop-filter: blur(10px); }
.search-panel__inner { position: relative; width: min(calc(100% - 32px), 700px); padding: 50px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.search-panel__inner .search-close { position: absolute; top: 20px; right: 20px; }
.search-panel__inner h2 { font-size: 2.2rem; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.search-field:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(0,139,90,.1); }
.search-submit { border: 0; border-radius: 8px; padding-inline: 26px; color: #fff; background: var(--green-600); font-weight: 650; }

/* Home */
.home-hero { position: relative; min-height: calc(100svh - 82px); display: flex; align-items: center; overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: var(--hero-image) center / cover no-repeat; }
.home-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,28,17,.9) 0%, rgba(0,37,23,.68) 37%, rgba(0,20,10,.12) 72%), linear-gradient(0deg, rgba(0,26,15,.38), transparent 55%); }
.home-hero__content { position: relative; z-index: 1; width: 100%; padding: 90px 24px 90px max(24px, calc((100vw - var(--container)) / 2)); }
.home-hero h1 { max-width: 760px; margin-top: 14px; margin-bottom: 24px; font-size: clamp(3.2rem, 5vw, 4.35rem); line-height: 1.08; white-space: nowrap; }
.home-hero__lead { max-width: 490px; font-size: 1rem; color: rgba(255,255,255,.91); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.posts-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__image { display: block; height: 195px; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.post-card:hover .post-card__image img { transform: scale(1.035); }
.post-card__body { padding: 21px 20px 22px; }
.post-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #7e8a85; font-size: .62rem; font-weight: 650; text-transform: uppercase; }
.post-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--green-500); }
.post-card h3 { min-height: 2.45em; margin-bottom: 10px; font-size: 1.02rem; }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p { min-height: 3.8em; margin-bottom: 18px; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.topics-band { padding: 46px 58px 52px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(circle at 70% 10%, #155c47 0, transparent 35%), linear-gradient(135deg, var(--forest-950), var(--forest-800)); }
.topics-band .section-heading { margin-bottom: 30px; }
.topics-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 22px; }
.topics-grid a { display: grid; justify-items: center; gap: 16px; padding: 10px; text-align: center; }
.topics-grid .topic-icon { width: 46px; height: 46px; display: grid; place-items: center; transition: transform .2s; }
.topics-grid .topic-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.topics-grid strong { max-width: 150px; font-size: .9rem; line-height: 1.4; }
.topics-grid a:hover .topic-icon { transform: translateY(-3px); }
.topics-grid a:hover strong { color: var(--lime-400); }

.about-section { display: grid; grid-template-columns: .85fr 1.5fr; align-items: center; gap: 80px; }
.about-copy { max-width: 390px; }
.about-copy h2 { font-size: 2rem; }
.about-copy > p:not(.eyebrow) { color: #43514b; font-size: .88rem; }
.about-image { position: relative; height: 385px; overflow: hidden; border-radius: var(--radius-lg); }
.about-image > img { width: 100%; height: 100%; object-fit: cover; }
.image-note { position: absolute; right: 28px; bottom: 25px; display: flex; align-items: center; gap: 14px; padding: 19px 24px; border-radius: var(--radius); color: var(--ink); background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.image-note > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--green-600); background: var(--mint-100); }
.image-note strong { font-size: .8rem; line-height: 1.5; }

/* Footer */
.site-footer { padding: 62px 0 24px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; color: rgba(255,255,255,.78); background: radial-gradient(circle at 75% 20%, #155743, transparent 34%), linear-gradient(135deg, var(--forest-950), #07392e); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 55px; }
.brand--footer { color: #fff; }
.footer-brand > p { margin: 22px 0; font-size: .76rem; line-height: 1.75; }
.footer-grid h3 { margin-bottom: 18px; color: var(--lime-400); font-size: .9rem; letter-spacing: -.01em; }
.footer-menu { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { font-size: .74rem; }
.footer-menu a:hover { color: var(--lime-400); }
.socials { display: flex; gap: 10px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--forest-950); background: #fff; font-size: .75rem; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .68rem; }
.footer-bottom span:last-child { display: flex; gap: 18px; }

/* Article */
.article-hero { position: relative; min-height: 345px; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); color: #fff; background: var(--article-image) center / cover no-repeat; }
.article-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,31,20,.88), rgba(0,37,23,.53) 52%, rgba(0,0,0,.05)); }
.article-hero__content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 22px; padding-bottom: 22px; color: var(--muted); font-size: .75rem; }
.breadcrumbs a:hover { color: var(--green-600); }
.breadcrumbs--light { padding: 0; color: rgba(255,255,255,.82); }
.breadcrumbs--light a:first-child { color: #91e197; }
.article-hero h1 { max-width: 670px; margin: 35px 0 29px; font-size: clamp(2.55rem, 5vw, 4.2rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: .7rem; font-weight: 650; text-transform: uppercase; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .icon { width: 15px; }
.article-meta__category .icon { color: var(--lime-400); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.article-content { min-width: 0; }
.article-content > * { max-width: 100%; }
.article-content p { color: #33443d; font-size: .94rem; line-height: 1.75; }
.article-content .article-lead { padding-left: 24px; border-left: 3px solid var(--green-600); color: var(--ink); font-size: 1.16rem; font-weight: 560; line-height: 1.55; }
.article-content h2 { margin: 42px 0 16px; font-size: 1.7rem; }
.article-content > h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 30px; }
.article-content figure { margin: 28px 0 34px; }
.article-content figure img { width: 100%; max-height: 390px; object-fit: cover; border-radius: var(--radius); }
.article-content table, .entry-content table { width: 100%; margin: 26px 0; border-collapse: collapse; font-size: .84rem; }
.article-content th, .article-content td, .entry-content th, .entry-content td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th, .entry-content th { background: var(--mint-50); color: var(--ink); }
.article-content figcaption, .entry-content figcaption { margin-top: 9px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.article-content blockquote, .entry-content blockquote { position: relative; margin: 30px 0; padding: 22px 26px 22px 82px; overflow: hidden; border: 1px solid #d7eadf; border-radius: 12px; background: linear-gradient(135deg, #edf7f1 0%, #f8fbf9 100%); box-shadow: 0 12px 30px rgba(13, 74, 52, .055); }
.article-content blockquote::before, .entry-content blockquote::before { content: ""; position: absolute; left: 22px; top: 50%; width: 42px; height: 42px; border-radius: 50%; transform: translateY(-50%); background: #d8eee1 url("assets/icons/hand-holding-seeding.svg") center / 25px 25px no-repeat; }
.article-content blockquote p, .entry-content blockquote p { margin: 0; color: #294239; font-size: .91rem; line-height: 1.7; }
.article-content blockquote strong, .entry-content blockquote strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: .96rem; }
.garden-note { margin: 28px 0; padding: 20px 24px; border-radius: var(--radius-sm); background: linear-gradient(100deg, var(--mint-100), #f3f8f5); }
.garden-note p { margin: 0!important; color: #33443d!important; font-size: .82rem!important; }
.article-cta { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 17px; margin-top: 38px; padding: 21px 25px; border-radius: var(--radius); background: linear-gradient(110deg, var(--mint-100), #f6faf7); }
.article-cta > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--green-600); background: #d9efe1; }
.article-cta strong { display: block; font-size: .85rem; }
.article-cta p { margin: 3px 0 0; font-size: .78rem; }
.share-row { display: flex; align-items: center; gap: 11px; margin: 30px 0; font-size: .78rem; }
.share-row strong { margin-right: 10px; }
.share-row a, .share-row button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; font-weight: 700; }
.post-navigation-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation-custom > div { min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 15px 18px; border-radius: var(--radius-sm); background: var(--mint-50); }
.post-navigation-custom > div:last-child { text-align: right; }
.post-navigation-custom span { display: block; color: var(--muted); font-size: .65rem; }
.post-navigation-custom strong { display: block; font-size: .74rem; }
.post-navigation-custom a:hover { color: var(--green-600); }
.article-sidebar, .term-sidebar, .calendar-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sidebar-card h2 { font-size: 1.35rem; }
.sidebar-card h3 { font-size: .95rem; }
.author-card { display: grid; grid-template-columns: 90px 1fr; gap: 20px; }
.author-card > img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; object-position: 66% center; }
.author-card small { color: var(--muted); font-size: .68rem; }
.author-card p { margin-top: 16px; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.popular-card > h3, .category-list > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.mini-post { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 14px; padding: 8px 0; }
.mini-post img { width: 80px; height: 62px; border-radius: 9px; object-fit: cover; }
.mini-post strong { display: block; font-size: .74rem; line-height: 1.35; }
.mini-post small { color: #8b9691; font-size: .6rem; text-transform: uppercase; }
.category-list > a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.category-list > a:last-child { border: 0; }
.category-list small { min-width: 31px; padding: 3px 9px; border-radius: 5px; text-align: center; background: #edf2ef; }

/* Dictionary */
.dictionary-hero { position: relative; min-height: 510px; overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: var(--dictionary-image) center / cover no-repeat; }
.dictionary-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,35,22,.9), rgba(0,35,22,.55) 55%, rgba(0,20,10,.22)); }
.dictionary-hero__content { position: relative; z-index: 1; width: 58%; padding: 85px 0 55px 7.5%; }
.dictionary-hero__content h1 { margin-bottom: 5px; font-size: clamp(3rem, 5.4vw, 4.6rem); }
.dictionary-hero__content h2 { margin-bottom: 22px; color: #5bd379; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.dictionary-hero__content > p { max-width: 610px; color: rgba(255,255,255,.9); font-size: .9rem; }
.dictionary-hero__content > small { display: block; margin-top: 12px; color: rgba(255,255,255,.75); font-size: .68rem; }
.dictionary-search { max-width: 620px; display: flex; margin-top: 26px; padding: 5px; border-radius: 10px; background: #fff; }
.dictionary-search input[type="search"] { min-width: 0; flex: 1; height: 49px; padding: 0 20px; border: 0; outline: 0; border-radius: 7px; }
.dictionary-search button { display: inline-flex; align-items: center; gap: 9px; padding: 0 24px; border: 0; border-radius: 7px; color: #fff; background: var(--green-600); font-size: .78rem; }
.dictionary-search button .icon { width: 17px; }
.dictionary-hero__card { position: absolute; z-index: 2; right: 9%; bottom: 0; width: 330px; min-height: 300px; padding: 34px; border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.dictionary-hero__card > span, .dictionary-category > span, .how-step > span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; color: var(--green-600); background: var(--mint-100); }
.dictionary-hero__card h3 { margin-top: 20px; }
.dictionary-hero__card p { color: var(--muted); font-size: .76rem; }
.dictionary-categories { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.dictionary-category { min-height: 240px; padding: 24px 20px; border: 1px solid #ebf0ed; border-radius: var(--radius); background: linear-gradient(135deg, #fbfdfc, #f0f6f3); transition: transform .2s, border-color .2s; }
.dictionary-category:hover { transform: translateY(-4px); border-color: #b9d8c8; }
.dictionary-category h3 { margin: 20px 0 7px; font-size: .98rem; }
.dictionary-category small { color: #8b9691; font-size: .66rem; }
.dictionary-category p { margin-top: 18px; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.term-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 17px; }
.term-card { min-height: 185px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.term-card h3 { font-size: 1rem; }
.term-card p { flex: 1; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.dictionary-how { display: grid; grid-template-columns: 140px 1.4fr repeat(3,1fr); align-items: center; gap: 24px; margin-top: 60px; margin-bottom: 72px; padding: 38px; border-radius: var(--radius); background: linear-gradient(105deg, #eef7f2, #fbfdfc); }
.dictionary-how__art { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50% 50% 48% 52%; color: var(--forest-800); background: #dcecdf; }
.dictionary-how__art .icon { width: 72px; height: 72px; stroke-width: 1.2; }
.dictionary-how__intro h2 { font-size: 1.55rem; }
.dictionary-how__intro p:not(.eyebrow), .how-step p { color: var(--muted); font-size: .72rem; }
.how-step { min-height: 145px; padding-left: 22px; border-left: 1px solid #d5e3dc; }
.how-step > span { width: 46px; height: 46px; }
.how-step h3 { margin-top: 13px; margin-bottom: 5px; }

/* Glossary single */
.term-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 30px; padding-bottom: 70px; }
.term-cover { position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 50px 42px; border-radius: var(--radius-lg); color: #fff; background: var(--term-image) center / cover no-repeat; }
.term-cover > div { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,34,21,.86), rgba(0,35,20,.08) 75%); }
.term-cover h1, .term-cover p { position: relative; z-index: 1; }
.term-cover h1 { font-size: clamp(3rem,6vw,5.2rem); }
.term-cover p { max-width: 690px; margin: 0; font-size: .98rem; }
.term-body { padding: 42px 28px; }
.term-body > h2:first-child { margin-top: 0; }
.term-body > p, .term-body .wp-block-group p { color: #43514b; font-size: .85rem; }
.term-body h2 { margin: 35px 0 16px; font-size: 1.45rem; }
.term-body h3 { font-size: .87rem; }
.term-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 20px 0 30px; }
.term-feature-grid > div { padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.term-feature-grid p { margin: 0; color: var(--muted); font-size: .72rem; }
.helpful { display: flex; align-items: center; gap: 10px; margin: 35px 0 25px; font-size: .76rem; }
.helpful strong { margin-right: 10px; }
.helpful button { padding: 8px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.related-terms > a:not(.button) { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 13px; padding: 10px 0; }
.related-terms img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.related-terms strong, .related-terms small { display: block; }
.related-terms strong { font-size: .74rem; }
.related-terms small { color: var(--muted); font-size: .62rem; }
.related-terms .button { width: 100%; margin-top: 18px; }
.sidebar-promo, .sidebar-tip { padding: 36px 26px; border-radius: var(--radius); text-align: center; background: linear-gradient(145deg, #eef7f2, #f8fbf9); }
.sidebar-promo > span, .sidebar-tip > .icon { display: inline-flex; color: var(--green-600); }
.sidebar-promo > span .icon { width: 90px; height: 90px; stroke-width: 1.1; }
.sidebar-promo h2 { margin-top: 18px; font-size: 1.35rem; }
.sidebar-promo p, .sidebar-tip p { color: var(--muted); font-size: .76rem; }

/* Calendar */
.calendar-page { padding-bottom: 68px; }
.calendar-hero { position: relative; min-height: 360px; display: flex; align-items: center; overflow: hidden; border-radius: var(--radius-lg); color: #fff; background: var(--calendar-image) center / cover no-repeat; }
.calendar-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,34,21,.86), rgba(0,35,20,.38) 63%, rgba(0,0,0,.03)); }
.calendar-hero > div:last-child { position: relative; z-index: 1; max-width: 650px; padding-left: 48px; }
.calendar-hero h1 { font-size: clamp(3rem,5vw,4.4rem); }
.calendar-hero p { max-width: 600px; font-size: 1.05rem; }
.current-month { width: fit-content; display: grid; grid-template-columns: 30px auto; align-items: center; column-gap: 12px; margin-top: 30px; padding: 12px 18px; border-radius: var(--radius-sm); color: var(--ink); background: rgba(255,255,255,.94); }
.current-month .icon { grid-row: span 2; color: var(--green-600); }
.current-month small { font-size: .6rem; }
.current-month strong { font-size: .9rem; }
.calendar-filters { display: grid; grid-template-columns: repeat(3,1fr) .85fr; align-items: end; gap: 30px; margin-top: 22px; padding: 22px 35px; border: 1px solid var(--line); border-radius: var(--radius); }
.calendar-filters label span { display: block; margin-bottom: 8px; font-size: .7rem; font-weight: 650; }
.calendar-filters select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.calendar-filters .button { min-height: 46px; }
.month-tabs { display: flex; justify-content: space-between; margin-top: 22px; padding: 5px 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; scrollbar-width: none; }
.month-tabs button { min-width: 75px; padding: 7px 14px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font-size: .68rem; white-space: nowrap; }
.month-tabs button.is-active { color: #fff; background: var(--green-600); box-shadow: 0 4px 15px rgba(0,139,90,.24); }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 25px; padding-top: 25px; padding-bottom: 35px; }
.calendar-main .section-heading { margin-bottom: 17px; }
.calendar-main .section-heading h2 { font-size: 1.2rem; }
.plant-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.plant-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.plant-card[hidden] { display: none; }
.plant-card__image { position: relative; height: 130px; display: block; overflow: hidden; }
.plant-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.plant-card:hover .plant-card__image img { transform: scale(1.04); }
.plant-card__image span { position: absolute; top: 8px; right: 8px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; color: #fff; background: rgba(0,54,36,.45); }
.plant-card__image .icon { width: 14px; }
.plant-card > div { padding: 12px; }
.plant-card h3 { margin-bottom: 2px; font-size: .82rem; }
.plant-card small { display: block; margin-bottom: 8px; color: var(--muted); font-size: .58rem; }
.plant-card p { min-height: 3.9em; margin-bottom: 9px; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.plant-card .text-link { font-size: .62rem; }
.no-results { padding: 25px; border-radius: var(--radius-sm); text-align: center; background: var(--mint-50); }
.load-more { display: flex; margin: 16px auto 0; }
.calendar-sidebar { gap: 14px; }
.calendar-sidebar .sidebar-card { padding: 20px; background: linear-gradient(145deg, #f6faf7, #edf5f0); }
.calendar-sidebar h2 { font-size: .98rem; }
.bloom-types { display: flex; flex-direction: column; gap: 13px; padding: 0; list-style: none; }
.bloom-types li { display: flex; gap: 12px; }
.bloom-types .icon { color: var(--green-600); }
.bloom-types strong, .bloom-types small { display: block; }
.bloom-types strong { font-size: .66rem; }
.bloom-types small { color: var(--muted); font-size: .58rem; }
.guide-list > a:not(.text-link) { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; margin: 10px 0; font-size: .63rem; font-weight: 650; line-height: 1.35; }
.guide-list img { width: 42px; height: 35px; border-radius: 6px; object-fit: cover; }
.sidebar-tip { padding: 25px 20px; text-align: left; }
.sidebar-tip h2 { margin-top: 12px; }
.sidebar-tip > .icon { width: 38px; height: 38px; }
.bloom-chart { margin-top: 30px; }
.bloom-chart h2 { font-size: 1.2rem; }
.bloom-chart__scroll { min-width: 780px; }
.bloom-chart { overflow-x: auto; }
.bloom-chart__head, .bloom-row { display: grid; grid-template-columns: 180px repeat(12,1fr); align-items: center; min-height: 28px; border-bottom: 1px solid var(--line); }
.bloom-chart__head span, .bloom-chart__head small { font-size: .57rem; }
.bloom-row strong { font-size: .61rem; }
.bloom-track { position: relative; grid-column: 2 / -1; height: 20px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(8.333% - 1px), var(--line) calc(8.333% - 1px), var(--line) 8.333%); }
.bloom-track i { position: absolute; top: 7px; left: calc((var(--start) - 1) * 8.333%); width: calc(var(--span) * 8.333%); height: 6px; border-radius: 999px; background: var(--green-700); }
.bloom-chart > .button { display: flex; width: fit-content; margin: 16px auto 0; }

/* Generic */
.simple-hero { padding-top: 75px; padding-bottom: 55px; }
.simple-hero h1 { max-width: 760px; font-size: clamp(2.7rem,5vw,4.5rem); }
.simple-hero > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.simple-hero--image { position: relative; min-height: 340px; display: flex; align-items: center; margin-top: 18px; overflow: hidden; padding: 55px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(90deg, rgba(0,36,22,.84), rgba(0,36,22,.25)), var(--simple-image) center/cover; }
.simple-hero--plants { width: 100%; min-height: 460px; margin-top: 0; padding-left: max(32px, calc((100vw - var(--container)) / 2)); border-radius: 0; }
.simple-hero--image > div { max-width: 650px; }
.simple-hero--image p:not(.eyebrow) { color: rgba(255,255,255,.84); }
.listing-grid { margin-bottom: 30px; }
.plant-listing-grid { margin-top: 56px; }
.listing-grid .post-card { margin-bottom: 10px; }
.pagination { margin-bottom: 70px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font-size: .75rem; }
.page-numbers.current { color: #fff; border-color: var(--green-600); background: var(--green-600); }
.entry-content { padding-top: 30px; padding-bottom: 80px; }
.entry-content h2 { margin-top: 40px; }
.entry-content img { border-radius: var(--radius); }
.entry-content p { color: #3d4d47; }
.plant-single__hero { display: grid; grid-template-columns: 1fr 1.25fr; align-items: stretch; gap: 0; margin-top: 30px; overflow: hidden; border-radius: var(--radius-lg); background: var(--mint-50); }
.plant-single__hero > div { padding: 60px; }
.plant-single__hero h1 { font-size: clamp(2.25rem,4vw,3.75rem); }
.plant-single__hero > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.plant-single__hero dl { display: flex; gap: 35px; }
.plant-single__hero dl div { padding-top: 14px; border-top: 1px solid #cbdad2; }
.plant-single__hero dt { color: var(--muted); font-size: .68rem; }
.plant-single__hero dd { margin: 4px 0 0; font-size: .82rem; font-weight: 650; }
.empty-state { grid-column: 1 / -1; padding: 65px; border-radius: var(--radius); text-align: center; background: var(--mint-50); }
.error-page { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: 70px; text-align: center; }
.error-page > span { color: var(--green-600); }
.error-page > span .icon { width: 90px; height: 90px; }
.error-page h1 { font-size: clamp(3rem,7vw,6rem); }
.error-page > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }

/* Gutenberg alignment */
.alignwide { width: min(100%, var(--container)); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--green-600); }

@media (max-width: 1120px) {
  .site-header__inner { gap: 20px; }
  .nav-list { gap: 17px; }
  .nav-list a { font-size: .72rem; }
  .header-actions .button { display: none; }
  .home-hero__content { padding-left: 6%; padding-right: 6%; }
  .dictionary-categories { grid-template-columns: repeat(3,1fr); }
  .plant-grid { grid-template-columns: repeat(3,1fr); }
  .plant-card:nth-child(n+7) { display: none; }
  .footer-grid { grid-template-columns: 1.3fr repeat(3,1fr); gap: 30px; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header__inner { min-height: 72px; grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: grid; grid-column: 3; justify-self: end; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-nav { position: fixed; z-index: 99; top: 72px; right: 0; bottom: 0; width: min(88vw, 390px); padding: 20px 28px 40px; transform: translateX(105%); background: #fff; box-shadow: -20px 30px 50px rgba(0,40,27,.14); transition: transform .28s ease; }
  .site-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav-list a::after { display: none; }
  .home-hero { min-height: calc(100svh - 72px); }
  .home-hero__content { width: 100%; padding-top: 80px; padding-bottom: 80px; }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(5, minmax(110px,1fr)); overflow-x: auto; }
  .about-section { grid-template-columns: 1fr 1.3fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: grid; grid-template-columns: repeat(2,1fr); align-items: start; }
  .article-sidebar .author-card { grid-column: 1 / -1; }
  .dictionary-hero__content { width: 68%; padding-left: 5%; }
  .dictionary-hero__card { right: 4%; width: 290px; }
  .term-grid { grid-template-columns: repeat(2,1fr); }
  .dictionary-how { grid-template-columns: 110px 1fr; }
  .dictionary-how .how-step { grid-column: span 1; }
  .term-layout { grid-template-columns: 1fr; }
  .term-sidebar { display: grid; grid-template-columns: repeat(2,1fr); align-items: start; }
  .term-sidebar .related-terms { grid-column: 1 / -1; }
  .calendar-layout { grid-template-columns: 1fr; }
  .calendar-sidebar { display: grid; grid-template-columns: repeat(3,1fr); }
  .calendar-filters { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .plant-grid { grid-template-columns: repeat(4,1fr); }
  .plant-card:nth-child(n) { display: block; }
  .plant-card[hidden] { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .container-wide { width: calc(100% - 16px); }
  .section { padding-block: 52px; }
  .brand { font-size: 1rem; }
  .brand__mark .icon { width: 25px; height: 25px; }
  .header-actions { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .menu-toggle { grid-column: 2; }
  .search-panel__inner { padding: 38px 22px 26px; }
  .search-form { flex-direction: column; }
  .search-submit { height: 48px; }
  .home-hero { min-height: calc(100svh - 72px); }
  .home-hero__shade { background: linear-gradient(0deg, rgba(0,31,19,.96), rgba(0,34,20,.65) 65%, rgba(0,20,10,.15)); }
  .home-hero__content { width: 100%; padding: 56px 24px 70px; }
  .home-hero h1 { max-width: 100%; font-size: clamp(1.7rem, 8vw, 2.5rem); }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card__image { height: 230px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 1.25rem; }
  .section-heading > .button { display: none; }
  .topics-band { width: calc(100% - 32px); padding: 35px 24px; }
  .topics-grid { grid-template-columns: repeat(5,130px); margin-right: -24px; padding-right: 24px; }
  .about-section { grid-template-columns: 1fr; }
  .about-copy { max-width: none; }
  .about-image { height: 380px; }
  .image-note { left: 16px; right: 16px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .article-hero { min-height: 370px; }
  .article-hero__content { padding-top: 38px; }
  .article-hero h1 { margin-top: 42px; font-size: 2.6rem; }
  .breadcrumbs--light span:last-child { display: none; }
  .article-meta { gap: 10px; }
  .article-layout { padding-top: 32px; }
  .article-content .article-lead { font-size: 1.04rem; }
  .article-content h2 { font-size: 1.45rem; }
  .article-content blockquote, .entry-content blockquote { padding: 20px 20px 20px 72px; }
  .article-content blockquote::before, .entry-content blockquote::before { left: 16px; width: 40px; height: 40px; }
  .article-cta { grid-template-columns: 45px 1fr; }
  .article-cta .button { grid-column: 1 / -1; }
  .post-navigation-custom { grid-template-columns: 1fr; }
  .article-sidebar { display: flex; }
  .author-card { grid-template-columns: 70px 1fr; }
  .author-card > img { width: 70px; height: 70px; }
  .dictionary-hero { min-height: 720px; }
  .dictionary-hero__content { width: 100%; padding: 54px 24px 300px; }
  .dictionary-hero__content h1 { font-size: 3rem; }
  .dictionary-search button span { display: none; }
  .dictionary-search button { width: 49px; padding: 0; justify-content: center; }
  .dictionary-hero__card { left: 20px; right: 20px; bottom: 0; width: auto; min-height: 270px; padding: 28px; }
  .dictionary-categories { grid-template-columns: repeat(2,1fr); }
  .dictionary-category { min-height: 220px; padding: 20px 16px; }
  .term-grid { grid-template-columns: 1fr; }
  .dictionary-how { grid-template-columns: 1fr; padding: 28px 22px; }
  .dictionary-how__art { margin: auto; }
  .how-step { padding: 20px 0 0; border-left: 0; border-top: 1px solid #d5e3dc; }
  .term-cover { min-height: 400px; padding: 35px 24px; }
  .term-cover h1 { font-size: 3.2rem; }
  .term-body { padding: 34px 4px; }
  .term-feature-grid { grid-template-columns: 1fr; }
  .term-sidebar { display: flex; }
  .helpful { flex-wrap: wrap; }
  .calendar-hero { min-height: 430px; }
  .calendar-hero > div:last-child { padding: 35px 24px; }
  .calendar-hero h1 { font-size: 3rem; }
  .calendar-filters { grid-template-columns: 1fr; padding: 22px; }
  .month-tabs { border-radius: 8px; }
  .plant-grid { grid-template-columns: repeat(2,1fr); }
  .plant-card__image { height: 145px; }
  .calendar-sidebar { grid-template-columns: 1fr; }
  .simple-hero--image { padding: 30px; }
  .plant-listing-grid { margin-top: 38px; }
  .plant-single__hero { grid-template-columns: 1fr; }
  .plant-single__hero > div { padding: 38px 24px; }
  .plant-single__hero > img { min-height: 300px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .hero-actions .button { width: 100%; }
  .post-card__image { height: 205px; }
  .dictionary-categories { grid-template-columns: 1fr; }
  .plant-grid { grid-template-columns: 1fr; }
  .plant-card__image { height: 210px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { grid-column: auto; }
}
