/* ==========================================================================
   Leafyard Tobacco — main stylesheet
   Author: Marshall Chikari
   Brand colours can be changed in Leafyard Settings → Brand & Style.
   ========================================================================== */

:root {
	--gl: #93bd2c;          /* leaf green */
	--g3: #93bd2c;
	--gold: #eca706;        /* gold */
	--g: #202020;           /* charcoal */
	--g2: #2b2b2b;
	--ink: #202020;
	--cream: #ffffff;
	--muted: #4d4d4d;
	--line: #e3e3e3;
	--tint: #f5f8ec;
	--gold-ink: color-mix(in srgb, var(--gold) 62%, #000);   /* readable gold on white */
	--green-ink: color-mix(in srgb, var(--gl) 60%, #000);
	--radius: 18px;
	--shadow: 0 22px 40px #20202022;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font: 16px/1.7 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: "Libre Baskerville", Georgia, serif; line-height: 1.25; font-weight: 700; }
h4 { font-family: Inter, system-ui, sans-serif; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
ul, ol { padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.w { width: min(1120px, 92%); margin: auto; }
.w.narrow { width: min(780px, 92%); }
.center { text-align: center; }
.ico { flex: none; vertical-align: middle; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000; top: 8px; left: 8px; padding: .8rem 1.2rem; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
main:focus { outline: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--g); color: #c4c4c4; font-size: .8rem; border-bottom: 1px solid #eca70633; }
.topbar .w { display: flex; gap: 1.5rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; padding: .55rem 0; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a { color: #e6e6e6; transition: .3s; }
.topbar a:hover { color: var(--gl); }
.topbar .ico { color: var(--gold); }
.topbar .social { gap: .6rem; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #ffffffee; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #eca70655; transition: box-shadow .3s; }
.admin-bar .site-header { top: 32px; }
.site-header.scrolled { box-shadow: 0 8px 30px #2020201a; }
.nav { display: flex; align-items: center; gap: 2rem; height: var(--header-h); color: var(--g); }
.logo { display: flex; gap: .6rem; align-items: center; margin-right: auto; }
.logo img { display: block; height: 50px; width: auto; }
.nav .menu { display: flex; gap: 1.9rem; list-style: none; font-size: .95rem; font-weight: 500; }
.nav .menu li { position: relative; display: flex; align-items: center; }
.nav .menu a { display: block; padding: .4rem 0; border-bottom: 2px solid transparent; transition: .3s; }
.nav .menu > li > a:hover,
.nav .menu > .current-menu-item > a,
.nav .menu > .current-menu-ancestor > a,
.nav .menu > .current_page_item > a,
.nav .menu > .current-menu-parent > a { border-color: var(--gold); color: var(--green-ink); }
.nav-btn { white-space: nowrap; }

.sub-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; color: inherit; cursor: pointer; padding: 0; border-radius: 50%; transition: .3s; }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.sub-toggle .ico { transition: transform .3s; }

.nav .sub-menu { position: absolute; top: 100%; left: -1rem; min-width: 230px; list-style: none; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s; z-index: 5; }
.nav .sub-menu li { display: flex; }
.nav .sub-menu a { flex: 1; padding: .55rem 1.2rem; border: 0; font-size: .92rem; }
.nav .sub-menu a:hover, .nav .sub-menu .current-menu-item > a { background: var(--tint); color: var(--green-ink); }
.nav .sub-menu .sub-menu { top: -.5rem; left: 100%; border-radius: 14px; }
.nav .menu li:hover > .sub-menu,
.nav .menu li:focus-within > .sub-menu,
.nav .menu li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.7rem; border-radius: 50px; background: linear-gradient(120deg, var(--gold), var(--gl), var(--gold)); background-size: 200%; color: var(--ink); font-weight: 700; transition: .4s; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.3; text-align: center; }
.btn:hover { background-position: 100%; transform: translateY(-3px); box-shadow: 0 10px 25px #eca70666; }
.btn.o { background: none; color: #fff; border: 1px solid var(--gold); }
.btn.o:hover { background: #ffffff14; }
.btn.sm { padding: .6rem 1.2rem; font-size: .9rem; }
:is(.sec:not(.dark), .w.center) .btn.o, .btn.o.dark-o { color: var(--ink); }
:is(.sec:not(.dark)) .btn.o:hover, .btn.o.dark-o:hover { background: var(--tint); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btns.center { justify-content: center; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-ink); margin-top: 1rem; transition: gap .3s; }
.more:hover { gap: .7rem; }
.dark .more, .cta .more { color: var(--gl); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 20%, var(--g3), var(--g) 60%); padding: 120px 0 150px; isolation: isolate; }
.hero.s { padding: 80px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-img, none) center / cover; opacity: .3; z-index: -1; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #202020cc, #20202033 75%); z-index: -1; }
.hero h1, .hero h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 760px; margin: 0; }
.hero.s h1, .hero.s h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero h1 em, .hero h2 em, h2 em { color: var(--gold); font-style: italic; }
.sec:not(.dark):not(.cta) h2 em { color: var(--gold-ink); }
.hero p { max-width: 560px; margin: 1.5rem 0 0; color: #e6e6e6; font-size: 1.1rem; }
.hero .btns { margin-top: 2rem; }
.hero .w { position: relative; z-index: 2; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.tag { letter-spacing: .25em; text-transform: uppercase; font-size: .78rem; color: var(--gold-ink); font-weight: 700; display: block; margin-bottom: 1rem; }
.hero .tag, .dark .tag, .cta .tag, .panel .tag, .ft .tag { color: var(--gold); }

.leaf { position: absolute; top: -80px; left: var(--x); width: var(--s); height: calc(var(--s) * 1.7); background: linear-gradient(160deg, var(--g3), #202020); border-radius: 0 100% 0 100%; opacity: .55; animation: fall var(--d) linear infinite; animation-delay: var(--l); }
.leaf::after { content: ""; position: absolute; inset: 8% 48% 0 48%; background: #eca70688; transform: rotate(-20deg); }
.leaf.g { background: linear-gradient(160deg, var(--gl), var(--gold)); opacity: .35; }
.smoke { position: absolute; bottom: -60px; left: var(--x); width: 120px; height: 120px; border-radius: 50%; background: #ffffff1c; filter: blur(30px); animation: rise var(--d) ease-in infinite; animation-delay: var(--l); }
.sprout { position: absolute; right: 8%; bottom: 0; width: 240px; height: 420px; z-index: 1; }
.sprout i { position: absolute; bottom: 0; left: 50%; width: 6px; height: 0; background: linear-gradient(var(--gl), var(--gold)); border-radius: 6px; animation: grow 3s .3s ease-out forwards; }
.sprout b { position: absolute; width: 110px; height: 180px; background: linear-gradient(160deg, var(--g3), #202020); border: 1px solid #eca70688; border-radius: 0 100% 0 100%; opacity: 0; transform-origin: 0 100%; animation: unfurl 1.6s ease-out forwards; animation-delay: var(--l); left: 50%; bottom: var(--b); }
.sprout b:nth-child(odd) { transform: scaleX(-1) rotate(0); transform-origin: 100% 100%; margin-left: -110px; }
@keyframes fall { to { transform: translateY(900px) rotate(360deg) translateX(80px); } }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-500px) scale(2); opacity: 0; } }
@keyframes grow { to { height: 380px; } }
@keyframes unfurl { from { opacity: 0; scale: 0; } to { opacity: .95; scale: 1; } }
@keyframes sway { 50% { transform: rotate(12deg); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--gold); overflow: hidden; white-space: nowrap; padding: .9rem 0; font: 600 .9rem Inter, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); }
.ticker > div { display: inline-block; animation: tick 30s linear infinite; }
.ticker span { margin: 0 2rem; }
.ticker i { font-style: normal; margin: 0 .6rem; }
.ticker:hover > div { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { padding: 90px 0; }
.sec.tight { padding-top: 0; }
.dark { background: var(--g); color: #fff; }
.tint { background: var(--tint); }
.dark + .sec.tight, .tint + .sec.tight { padding-top: 90px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.lead { max-width: 640px; color: var(--muted); }
.dark .lead { color: #cfcfcf; }
.lead.prose p + p { margin-top: 1rem; }
.sh { max-width: 720px; }
.sh .lead { margin-top: 0; }
.sh-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.sh-row .more { margin: 0 0 1.2rem; }

.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 3rem; }
.sh-row + .grid, .chips + .grid, .ft + .grid { margin-top: 2rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; padding: 2.2rem; border-radius: var(--radius); border: 1px solid #d9d9d9; position: relative; overflow: hidden; transition: .4s; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gl)); transition: .5s; z-index: 3; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { width: 100%; }
.card .n { font: 700 3rem "Libre Baskerville", serif; color: var(--gold); opacity: .5; line-height: 1.2; }
.card h3 { margin: .4rem 0 .6rem; font-size: 1.4rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; padding-top: 1rem; }
.dark .card { background: #ffffff0d; border-color: #eca70644; }
.dark .card p { color: #cfcfcf; }
.card.has-media .ph { margin: -.4rem 0 1.4rem; }
.card .ph img { transition: transform .8s; }
.card:hover .ph img { transform: scale(1.05); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; }
.split.top { align-items: start; }
.split.rev > :first-child { order: 2; }
.split-side .ph + .list, .split-side .ph + .panel { margin-top: 0; }
.list { list-style: none; padding: 0; }
.list li { padding: .7rem 0 .7rem 2rem; position: relative; border-bottom: 1px solid #0001; }
.dark .list li, .panel .list li { border-color: #ffffff14; }
.list li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 14px; height: 14px; background: var(--gold); border-radius: 0 100% 0 100%; }
.panel { background: linear-gradient(150deg, var(--g2), var(--g)); border-radius: 24px; padding: 2.5rem; color: #ececec; border: 1px solid var(--gold); }
.panel h3 { color: var(--gl); margin-bottom: 1rem; }
.panel strong { color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; position: relative; list-style: none; }
.steps::before { content: ""; position: absolute; top: 28px; left: 0; height: 2px; background: var(--gold); width: 0; animation: line 3s ease-out forwards; }
@keyframes line { to { width: 100%; } }
.step b { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--g); border: 2px solid var(--gold); color: var(--gl); font: 700 1.2rem "Libre Baskerville", serif; position: relative; margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--muted); }
.dark .step p { color: #cfcfcf; }

/* Calendar */
.cal-wrap { overflow-x: auto; padding-bottom: .5rem; }
.cal { margin-top: .7rem; display: grid; gap: .7rem; min-width: 560px; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; font-size: .9rem; }
.bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; background: #ffffff14; border-radius: 8px; padding: 3px; }
.sec:not(.dark) .bar { background: #20202010; }
.bar i { height: 28px; border-radius: 5px; background: #ffffff10; }
.sec:not(.dark) .bar i { background: #2020200d; }
.bar i.a, .sec:not(.dark) .bar i.a { background: linear-gradient(90deg, var(--gold), var(--gl)); animation: pop 1s both; animation-delay: calc(var(--i) * .07s); }
.mo { display: grid; grid-template-columns: 150px repeat(12, 1fr); gap: 3px; font-size: .7rem; color: var(--gl); text-align: center; margin-top: 2rem; min-width: 560px; text-transform: uppercase; letter-spacing: .08em; }
.sec:not(.dark) .mo { color: var(--green-ink); }
@keyframes pop { from { transform: scaleY(0); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.stat { padding: 1.4rem 1.2rem; border-left: 3px solid var(--gold); background: #ffffff08; border-radius: 0 14px 14px 0; }
.sec:not(.dark) .stat { background: var(--tint); }
.stat strong { display: block; font: 700 clamp(1.6rem, 2.8vw, 2.2rem)/1.15 "Libre Baskerville", serif; color: var(--gl); white-space: nowrap; }
.split .stats { grid-template-columns: repeat(2, 1fr); }
.sec:not(.dark) .stat strong { color: var(--green-ink); }
.stat span { display: block; margin-top: .4rem; font-size: .9rem; color: #cfcfcf; }
.sec:not(.dark) .stat span { color: var(--muted); }

/* Testimonials */
.quote blockquote p { font: italic 1.08rem/1.7 "Libre Baskerville", serif; }
.quote blockquote p::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--gold); margin-bottom: .8rem; }
.quote figcaption { display: flex; align-items: center; gap: .9rem; margin-top: 1.5rem; }
.quote figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.dark .quote figcaption small { color: #bdbdbd; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.ph-avatar { display: grid; place-items: center; background: linear-gradient(150deg, var(--gl), var(--gold)); color: var(--ink); font-weight: 700; }

/* Team */
.team { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person-head { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-bottom: 1rem; }
.person .cat { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.person h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.person .cat { letter-spacing: .12em; }
.person p { font-size: .93rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; font-family: "Libre Baskerville", serif; }

/* FAQ / details */
.faq { margin-top: 2.5rem; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; transition: .3s; }
.faq details[open] { border-color: var(--gold); box-shadow: 0 10px 30px #2020200f; }
.dark .faq details { background: #ffffff0d; border-color: #ffffff1f; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-ink); transition: .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { margin-top: .8rem; color: var(--muted); }
.dark .faq .prose { color: #cfcfcf; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--g), var(--g2)); color: #fff; text-align: center; border-top: 3px solid var(--gold); padding: 90px 0; }
.cta p { margin: 0 auto 2rem; max-width: 520px; color: #ececec; }
.cta .btns { justify-content: center; margin-top: 0; }
.cta .notice { max-width: 520px; margin: 0 auto 1rem; }

/* ---------- Image placeholders ---------- */
.ph { position: relative; overflow: hidden; aspect-ratio: var(--r, 16/10); border-radius: 16px; display: grid; place-items: center; text-align: center; color: var(--gl); margin-bottom: 1.3rem; background: repeating-linear-gradient(45deg, #ffffff08 0 14px, transparent 14px 28px), linear-gradient(150deg, var(--g3), var(--g)); }
.ph::before { content: ""; position: absolute; width: 44px; height: 74px; top: 50%; left: 50%; margin: -37px 0 0 -22px; background: linear-gradient(160deg, var(--gl), var(--gold)); border-radius: 0 100% 0 100%; opacity: .55; transform: rotate(-12deg); animation: sway 5s ease-in-out infinite; }
.ph span { position: relative; margin-top: 110px; font-weight: 600; font-size: .88rem; padding: 0 1rem; color: #fff; }
.ph small { display: block; font-weight: 400; opacity: .75; font-size: .74rem; }
.ph img, .th img, .ft .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.ph figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .8rem; background: linear-gradient(transparent, #000a); color: #fff; font-size: .85rem; text-align: left; }
.g3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 .ph { margin: 0; }

/* ---------- News ---------- */
.ft { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 22px; overflow: hidden; background: var(--g); color: #fff; border: 1px solid var(--gold); margin-top: 2rem; }
.ft .img, .th { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--g3), var(--g)); min-height: 180px; display: block; }
.ft .img { min-height: 320px; }
.th::before, .ft .img::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1 / 1.7; left: 27%; top: 14%; background: linear-gradient(160deg, var(--gl), var(--gold)); border-radius: 0 100% 0 100%; transform: rotate(-15deg); opacity: .85; transition: .6s; }
.th::after, .ft .img::after { content: ""; position: absolute; width: 30%; aspect-ratio: 1 / 1.7; right: 8%; bottom: -18%; background: #202020aa; border-radius: 0 100% 0 100%; transform: rotate(25deg); }
.card:hover .th::before { transform: rotate(5deg) scale(1.1); }
.th img, .ft .img img { transition: transform .8s; }
.card:hover .th img, .ft:hover .img img { transform: scale(1.05); }
.ft .tx { padding: 2.8rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ft h3 { font-size: 1.7rem; margin: .6rem 0 1rem; }
.ft h3 a:hover { color: var(--gl); }
.ft p { color: #ececec; margin-bottom: 1.6rem; }
.na { padding: 0 !important; }
.na .th { height: 190px; }
.na .b { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.na .meta { display: flex; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.dark .na .meta { color: #bdbdbd; }
.cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.dark .cat, .ft .cat { color: var(--gold); }
.na h3 { font-size: 1.15rem; margin: .5rem 0; }
.na h3 a:hover { color: var(--green-ink); }
.dark .na h3 a:hover { color: var(--gl); }
.na p { font-size: .93rem; color: var(--muted); }
.dark .na p { color: #cfcfcf; }
.dark .na h3 { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chips a { padding: .45rem 1rem; border-radius: 50px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; transition: .3s; }
.chips a:hover { border-color: var(--gold); }
.chips a.on { background: var(--g); color: #fff; border-color: var(--g); }
.dark .chips a { border-color: #ffffff2a; }
.dark .chips a.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.empty { padding: 2rem 0; color: var(--muted); }
.empty .btn { margin-top: 1rem; }

.pager { margin-top: 3rem; }
.pager ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; justify-content: center; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 1rem; border-radius: 50px; border: 1px solid var(--line); font-weight: 600; transition: .3s; }
.pager a:hover { border-color: var(--gold); }
.pager .current { background: var(--g); border-color: var(--g); color: #fff; }

/* ---------- Single article ---------- */
.article-hero .back { display: inline-block; color: #e6e6e6; font-size: .9rem; margin-bottom: 1.5rem; }
.article-hero .back:hover { color: var(--gl); }
.byline { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .92rem !important; margin-top: 1.4rem !important; }
.byline span { display: inline-flex; align-items: center; gap: .45rem; }
.byline .ico { color: var(--gold); }
.article { padding-top: 60px; }
.article-img { margin-bottom: 2.4rem; border-radius: var(--radius); overflow: hidden; }
.article-img img { width: 100%; }
.article-img figcaption, .prose figcaption { font-size: .85rem; color: var(--muted); padding-top: .6rem; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { font-size: .82rem; padding: .3rem .8rem; border-radius: 50px; background: var(--tint); }
.share { display: flex; align-items: center; gap: .5rem; }
.share span { font-size: .85rem; font-weight: 700; margin-right: .3rem; }
.share a, .social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); transition: .3s; }
.share a:hover, .social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.post-navigation { margin-top: 2.5rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; height: 100%; transition: .3s; }
.post-navigation a:hover { border-color: var(--gold); }
.post-navigation small { display: block; text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; color: var(--gold-ink); font-weight: 700; }
.post-navigation span { font-family: "Libre Baskerville", serif; font-weight: 700; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

/* Prose (editor content) */
.prose > * + * { margin-top: 1.2em; }
.entry { font-size: 1.06rem; }
.entry h2 { font-size: 1.7rem; margin-top: 2em; }
.entry h3 { font-size: 1.3rem; margin-top: 1.8em; }
.entry a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry li + li { margin-top: .4rem; }
.entry blockquote { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; font: italic 1.15rem/1.6 "Libre Baskerville", serif; }
.entry img { border-radius: 12px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry .alignwide { width: min(1120px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.entry .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.entry .alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figcaption, .wp-caption-text { text-align: center; }
.dark .entry a { color: var(--gl); }
.editor-hint { padding: 1rem 1.2rem; border: 2px dashed var(--gold); border-radius: 12px; }

/* Comments */
.comments { margin-top: 3rem; }
.comment-list { list-style: none; margin: 1.5rem 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-respond { margin-top: 2rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }

/* ---------- Forms ---------- */
form { display: grid; gap: 1rem; }
input, select, textarea { padding: .95rem 1.1rem; border: 1px solid #cfcfcf; border-radius: 12px; font: inherit; background: #fff; width: 100%; transition: .3s; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px #eca70633; }
input[type="checkbox"], input[type="radio"] { width: auto; }
.fl span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ly-form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.notice.ok { background: #93bd2c22; color: var(--green-ink); border: 1px solid var(--gl); }
.cta .notice.ok, .dark .notice.ok { color: #fff; }
.notice.err { background: #d6363622; color: #a52a2a; border: 1px solid #d63636; }
.cta .notice.err { color: #ffd7d7; }
.nl { display: flex; gap: .8rem; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.nl input[type="email"] { flex: 1; min-width: 220px; }
.nl .notice { flex-basis: 100%; }
.search-form { display: flex; gap: .6rem; max-width: 520px; }
.search-again { margin-bottom: 2.5rem; }
.center .search-form { margin: 0 auto 2rem; }
.map { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-list li { display: flex; gap: .6rem; padding-left: 0; }
.contact-list li::before { display: none; }
.contact-list .ico { color: var(--gold); margin-top: .25rem; }
.contact-list a:hover { color: var(--gl); }
.panel .wa { margin-top: 1.4rem; }
.panel .social { margin-top: 1.4rem; }
.panel .social a, .site-footer .social a, .topbar .social a { border-color: #ffffff2a; }
.topbar .social a { width: 28px; height: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1a1a; color: #c4c4c4; padding: 60px 0 30px; font-size: .92rem; }
.fg { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.fg.four { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.site-footer .logo { display: inline-flex; background: #fff; padding: .55rem .8rem; border-radius: 14px; }
.site-footer .logo img { height: 42px; }
.fbrand p { margin-top: 1rem; max-width: 340px; }
.fbrand .social { margin-top: 1.2rem; }
.site-footer h4 { color: var(--gold); margin-bottom: .9rem; }
.fmenu, .fcontact { list-style: none; }
.fmenu a { display: block; padding: .25rem 0; transition: .3s; }
.fmenu a:hover, .fcontact a:hover { color: var(--gl); }
.fmenu .sub-menu { list-style: none; padding-left: .8rem; }
.fmenu .sub-toggle { display: none; }
.fcontact li { display: flex; gap: .6rem; padding: .25rem 0; }
.fcontact .ico { color: var(--gold); margin-top: .3rem; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.copy { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #ffffff1a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .8rem; }
.copy .legal { display: flex; gap: 1.2rem; list-style: none; }
.copy .legal a:hover { color: var(--gl); }

/* Floating buttons */
.wa-float, .to-top { position: fixed; right: 20px; z-index: 30; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 10px 25px #0003; transition: .3s; }
.wa-float { bottom: 20px; width: 56px; height: 56px; background: #25d366; color: #fff; }
.wa-float:hover { transform: scale(1.08); }
.to-top { bottom: 20px; width: 46px; height: 46px; background: var(--g); color: var(--gold); border: 1px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); }
.wa-float ~ .to-top { bottom: 88px; right: 25px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Mobile drawer ---------- */
.burger { display: none; place-content: center; gap: 7px; background: none; border: 0; padding: 0; width: 44px; height: 44px; cursor: pointer; }
.burger i { display: block; width: 26px; height: 3px; border-radius: 4px; background: var(--green-ink); transition: .3s; }
.burger.x i:first-child { transform: translateY(5px) rotate(45deg); }
.burger.x i:last-child { transform: translateY(-5px) rotate(-45deg); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: linear-gradient(160deg, var(--g2), var(--g)); color: #fff; z-index: 60; padding: 5rem 1.6rem 2rem; transform: translateX(105%); transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility .4s; border-left: 2px solid var(--gold); overflow-y: auto; visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.dmenu { list-style: none; margin: 0 0 1.4rem; }
.dmenu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid #ffffff14; }
.dmenu a { flex: 1; display: block; padding: .95rem 0; font-size: 1.02rem; transition: .3s; }
.dmenu a:hover, .dmenu .current-menu-item > a, .dmenu .current_page_item > a { color: var(--gl); }
.dmenu .sub-toggle { width: 40px; height: 40px; border: 1px solid #ffffff22; }
.dmenu .sub-menu { list-style: none; flex-basis: 100%; padding-left: 1rem; display: none; }
.dmenu li.open > .sub-menu { display: block; }
.dmenu .sub-menu li:last-child { border-bottom: 0; }
.drawer .btn { display: flex; }
.drawer-contact { margin-top: 1.6rem; font-size: .9rem; color: #cfcfcf; }
.dx { position: absolute; top: 1.1rem; right: 1.2rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #eca70666; background: #ffffff14; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: .3s; }
.dx:hover { background: #ffffff26; }
.ovl { position: fixed; inset: 0; background: #000000cc; opacity: 0; visibility: hidden; transition: .35s; z-index: 55; }
.ovl.on { opacity: 1; visibility: visible; }
body.lock { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
@supports (animation-timeline: view()) {
	.rv { animation: rv both; animation-timeline: view(); animation-range: entry 0 cover 28%; }
	@keyframes rv { from { opacity: 0; transform: translateY(50px); } }
}
/* Fallback (JS adds .rv-js when animation-timeline is unsupported) */
.rv-js .rv { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.rv-js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.nav .menu, .nav-btn { display: none; }
	.burger { display: grid; }
	.grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.fg, .fg.four { grid-template-columns: 1fr 1fr; }
	.fbrand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 760px) {
	:root { --header-h: 68px; }
	.sec, .cta { padding: 64px 0; }
	.dark + .sec.tight, .tint + .sec.tight { padding-top: 64px; }
	.hero { padding: 90px 0 110px; }
	.hero.s { padding: 64px 0 70px; }
	.sprout { display: none; }
	.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
	.split { gap: 2rem; }
	.split.rev > :first-child { order: 0; }
	.row { grid-template-columns: 100px 1fr; }
	.mo { grid-template-columns: 100px repeat(12, 1fr); }
	.ft { grid-template-columns: 1fr; }
	.ft .img { min-height: 220px; }
	.ft .tx { padding: 2rem; }
	.two { grid-template-columns: 1fr; }
	.map { aspect-ratio: 4 / 3; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.logo img { height: 44px; }
	.card { padding: 1.8rem; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 560px) {
	.topbar .w { justify-content: flex-start; font-size: .74rem; gap: .5rem 1rem; }
	.topbar .hide-sm { display: none; }
	.fg, .fg.four { grid-template-columns: 1fr; }
	.btns .btn { flex: 1 1 100%; }
}

/* ---------- Motion preferences ---------- */
.no-anim .hero-art, .no-anim .ph::before { display: none; }
.no-anim *, .no-anim *::before { animation: none !important; }
.no-anim .rv { opacity: 1 !important; transform: none !important; }
.no-anim .steps::before { width: 100%; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.steps::before { width: 100%; }
	.rv-js .rv { opacity: 1; transform: none; }
	.sprout i { height: 380px; }
	.sprout b { opacity: .95; }
	.leaf, .smoke { display: none; }
}

/* ---------- Print ---------- */
@media print {
	.topbar, .site-header, .drawer, .ovl, .site-footer, .wa-float, .to-top, .hero-art, .cta { display: none !important; }
	.hero { background: none; color: #000; padding: 1rem 0; }
}
