/*
Theme Name: Kate Blog
Theme URI: https://kb-backpackers.com.my/
Author: Kate Blog
Description: Clean outdoor theme for Kate Blog – travel stories, backpacking tips & life on the road. Built from the Preview 3 design. Works with the Kate Blog Core plugin (events, contact form, setup).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kate-blog
*/
/* Layout: Design 1 "Clean Outdoor" – trail-green ink on a pale field, one sunset-orange accent; centred 1200px column, cards in 3-up grids that stack on phones */
:root{
  --bg:#F5F6F2; --surface:#FFFFFF; --ink:#16211B; --muted:#56635B; --line:#DCE0D6;
  --forest:#2F5D4A; --forest-soft:#E5EEE8; --accent:#C2410C; --accent-ink:#FFFFFF; --dark:#16211B; --on-dark:#F5F6F2; --on-dark-muted:#C2CCC5; --mark:#FFF1C9; --mark-ink:#5A4300;
  --display:'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body:'Figtree', 'Segoe UI', system-ui, sans-serif;
  --r:18px; --wrap:1200px; color-scheme:light;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.6 var(--body)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
h1,h2,h3{font-family:var(--display);line-height:1.1;letter-spacing:-.02em;text-wrap:balance;margin:0}
h1{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:800}
h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800}
h3{font-size:1.25rem;font-weight:600}
p{margin:0}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}
.narrow{max-width:1100px}
.narrow .lede{max-width:none}
.wide{max-width:1100px}
.block{padding-block:56px 8px}
.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:var(--surface);padding:8px 12px;border-radius:8px;z-index:10}
.skip:focus{left:16px}
.eyebrow{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--forest)}
.eyebrow.accent{color:var(--accent)}
.accent-2{color:#F3A47E}
.lede{font-size:1.15rem;color:var(--muted);max-width:60ch}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;font:600 .95rem var(--body);text-decoration:none;border:0;cursor:pointer;white-space:nowrap}
.btn-dark{background:var(--ink);color:var(--bg)}
.btn-accent{background:var(--accent);color:var(--accent-ink)}
.btn-light{background:var(--on-dark);color:var(--dark)}
/* header */
.site-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.head-row{display:flex;align-items:center;gap:24px;min-height:72px}
.brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);min-width:0}
.brand-mark{width:44px;height:44px;border-radius:50%;flex-shrink:0}
.brand-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.brand-name{font:800 1.45rem/1 var(--display);letter-spacing:-.025em}
.brand-tag{font:500 .78rem/1.3 var(--body);color:var(--muted);margin-top:4px;white-space:nowrap}
.brand-lg .brand-mark{width:56px;height:56px;border-radius:50%}
.brand-lg .brand-name{font-size:1.7rem}
.brand-lg .brand-tag{font-size:.88rem;white-space:normal}
@media (max-width:1180px){.site-head .brand-tag{display:none}}
.nav{display:flex;gap:26px;margin-left:auto;font-weight:500}
.nav a{text-decoration:none;padding-block:6px;border-bottom:2px solid transparent}
.nav a:hover{color:var(--accent)}
.nav a[aria-current="page"]{border-color:var(--accent);color:var(--accent)}
@media (max-width:900px){.head-row{flex-wrap:wrap;gap:10px 16px;padding-block:10px}.head-cta{margin-left:auto}.nav{order:3;flex-basis:100%;margin-left:0;gap:20px;overflow-x:auto;white-space:nowrap;scrollbar-width:none;padding-bottom:4px;font-size:.95rem}.nav::-webkit-scrollbar{display:none}}
/* hero */
.hero{padding-block:56px 24px}
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:20px;min-width:0}
.display{font-size:clamp(2.6rem,6.4vw,4.6rem);line-height:.98;letter-spacing:-.035em}
.search{display:flex;gap:10px;max-width:520px;flex-wrap:wrap}
.search input,.nl-form input,.contact-form input,.contact-form select,.contact-form textarea{flex:1 1 220px;min-height:50px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:0 20px;font:400 1rem var(--body)}
.hero-card{position:relative;display:block;border-radius:28px;overflow:hidden;text-decoration:none;background:var(--surface);box-shadow:0 24px 50px -24px rgba(22,33,27,.35)}
.hero-card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.hero-card-body{position:absolute;left:16px;right:16px;bottom:16px;background:var(--surface);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:4px;max-width:340px}
.hero-card-title{font:600 1.15rem/1.25 var(--display);color:var(--ink)}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr;gap:28px}}
/* sections */
.sec-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:24px}
.more{color:var(--accent);font-weight:600;text-decoration:none}
.more{display:inline-flex;align-items:center;gap:6px}
.more::after{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s ease}
.more:hover::after,.yr-card:hover .more::after{transform:translateX(3px)}
.more:hover{text-decoration:none}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
@media (max-width:900px){.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.grid-3{grid-template-columns:1fr}}
.card-link{display:flex;flex-direction:column;gap:14px;text-decoration:none;height:100%}
.card-img{border-radius:var(--r);overflow:hidden;background:var(--forest-soft)}
.card-img img{aspect-ratio:16/10;object-fit:cover;width:100%;transition:transform .4s ease}
.card-link:hover .card-img img{transform:scale(1.03)}
.card-link:hover h3{color:var(--accent)}
.card-body{display:flex;flex-direction:column;gap:8px;min-width:0}
.excerpt{color:var(--muted);font-size:.95rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.noimg{aspect-ratio:16/10;background:var(--forest-soft)}
.feature{margin-bottom:36px}
.card-wide .card-link{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:center;background:var(--surface);border-radius:24px;padding:16px}
.card-wide h3{font-size:clamp(1.4rem,2.6vw,2rem);font-weight:800}
@media (max-width:760px){.card-wide .card-link{grid-template-columns:1fr}}
.cat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:900px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cat-tile{position:relative;display:block;border-radius:var(--r);overflow:hidden;text-decoration:none;aspect-ratio:4/5;background:var(--forest)}
.cat-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cat-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(10,17,13,.82),rgba(10,17,13,0) 60%)}
.cat-tile-body{position:absolute;left:18px;right:18px;bottom:16px;z-index:1;display:flex;flex-direction:column;gap:2px;color:#fff}
.cat-name{font:800 1.3rem/1.15 var(--display)}
.cat-meta{font-size:.85rem;opacity:.85}
.pop-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 32px}
@media (max-width:700px){.pop-list{grid-template-columns:1fr}}
.pop-list a{display:grid;grid-template-columns:96px 1fr;gap:16px;align-items:center;text-decoration:none;padding:10px 0;border-bottom:1px solid var(--line)}
.pop-list img{aspect-ratio:1;object-fit:cover;border-radius:12px;width:96px}
.pop-list a>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.pop-title{font:600 1.05rem/1.3 var(--display)}
.pop-list a:hover .pop-title{color:var(--accent)}
.about-strip{background:var(--dark);color:var(--on-dark);margin-top:72px;padding-block:72px}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.about-grid img{border-radius:24px;aspect-ratio:4/3;object-fit:cover}
.about-grid>div{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.about-grid p:not(.eyebrow){color:var(--on-dark-muted);max-width:52ch}
@media (max-width:800px){.about-grid{grid-template-columns:1fr;gap:28px}}
.newsletter{background:var(--accent);color:var(--accent-ink);border-radius:28px;padding:clamp(28px,5vw,52px);display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center;margin-bottom:24px}
.newsletter>div{display:flex;flex-direction:column;gap:8px;max-width:520px}
.nl-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.nl-form input{border:0}
.nl-msg{flex-basis:100%;font-size:.9rem}
/* category */
.cat-hero{background:var(--dark);color:var(--on-dark);padding-block:56px 48px}
.cat-hero .wrap{display:flex;flex-direction:column;gap:14px}
.cat-hero.has-banner{position:relative;background-color:var(--dark);background-image:linear-gradient(90deg,rgba(16,26,20,.94) 0%,rgba(16,26,20,.84) 48%,rgba(16,26,20,.45) 75%,rgba(16,26,20,.15) 100%),var(--banner);background-size:cover;background-position:center right;padding-block:72px 64px;min-height:340px;display:flex;align-items:center}
.cat-hero.has-banner .wrap{width:100%}
.cat-hero.has-banner .lede,.cat-hero.has-banner .crumbs a,.cat-hero.has-banner .crumbs span{color:#DDE5DF}
.cat-hero.has-banner h1{text-shadow:0 1px 12px rgba(0,0,0,.25)}
@media (max-width:760px){.cat-hero.has-banner{background-image:linear-gradient(rgba(16,26,20,.80),rgba(16,26,20,.80)),var(--banner);background-position:70% center;min-height:0;padding-block:48px 40px}}
.cat-hero .lede{color:var(--on-dark-muted)}
.cat-hero .crumbs a,.cat-hero .crumbs span{color:var(--on-dark-muted)}
.count{font-weight:600;color:#F3A47E}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.chip{min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:999px;border:1px solid #4A5A51;color:var(--on-dark);text-decoration:none;font-size:.92rem}
.chip.on{background:var(--on-dark);color:var(--dark);border-color:var(--on-dark);font-weight:600}
/* article */
.crumbs{display:flex;gap:8px;font-size:.9rem;color:var(--muted);flex-wrap:wrap}
.crumbs a{text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.art-head{display:flex;flex-direction:column;gap:16px;padding-block:48px 28px}
.byline{display:flex;align-items:center;gap:10px;font-weight:600}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--forest);color:var(--bg);display:inline-flex;align-items:center;justify-content:center;font:800 1rem var(--display);flex-shrink:0}
.avatar.lg{width:64px;height:64px;font-size:1.5rem}
.hero-fig{margin:0}
.hero-fig img{border-radius:24px;aspect-ratio:16/9;object-fit:cover;width:100%}
.prose{padding-block:40px 24px;font-size:1.08rem;line-height:1.75}
.prose>*+*{margin-top:1.1em}
.prose h2{margin-top:1.8em;font-size:clamp(1.45rem,2.6vw,1.85rem)}
.prose h3{margin-top:1.5em}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.4em}
.prose a{color:var(--accent);text-underline-offset:3px}
.prose blockquote{margin:1.4em 0;padding:18px 22px;background:var(--forest-soft);border-radius:14px}
.prose strong{font-weight:600}
.fig{margin:1.8em 0}
.fig img{border-radius:18px;width:100%}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.prose table{border-collapse:collapse;width:100%;font-size:.95rem}
.prose th,.prose td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.prose th{background:var(--forest-soft);font-weight:600}
.verify{background:var(--mark);color:var(--mark-ink);padding:2px 6px;border-radius:6px;font-size:.88em}
.sources{margin-top:2.4em;border-top:1px solid var(--line);padding-top:16px;font-size:.9rem;color:var(--muted)}
.sources summary{cursor:pointer;font-weight:600;color:var(--ink)}
.sources ul{padding-left:1.1em}
.sources a{word-break:break-word}
.author-box{display:flex;gap:18px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;margin-top:2.4em}
.author-box>div{display:flex;flex-direction:column;gap:4px}
.author-name{font:600 1.15rem var(--display)}
.author-box a{color:var(--accent);font-weight:600;text-decoration:none}
.plain-list{list-style:none;padding:0}
.plain-list li{display:flex;flex-direction:column;gap:2px;padding:12px 0;border-bottom:1px solid var(--line)}
.plain-list a{font-weight:600}
/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:56px;align-items:start}
.contact-grid>div{display:flex;flex-direction:column;gap:16px}
@media (max-width:820px){.contact-grid{grid-template-columns:1fr}}
.contact-list{display:flex;flex-direction:column;gap:12px;margin:12px 0 0}
.contact-list div{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 20px}
.contact-list dt{font-weight:600}
.contact-list dd{margin:0;color:var(--muted)}
.contact-form{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(20px,4vw,36px);display:flex;flex-direction:column;gap:18px}
.contact-form label{display:flex;flex-direction:column;gap:8px;font-weight:600}
.contact-form input,.contact-form select{border-radius:12px;flex:none}
.contact-form textarea{border-radius:12px;padding:14px 18px;min-height:150px;flex:none;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width:560px){.row2{grid-template-columns:1fr}}
.contact-form .btn{align-self:flex-start}
/* recommended */
.rs-h{margin:36px 0 16px}
.rs-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:900px){.rs-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.rs-list{grid-template-columns:1fr}}
.rs-list a{display:flex;flex-direction:column;gap:2px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-decoration:none;min-height:44px}
.rs-list a:hover .rs-name{color:var(--accent)}
.rs-name{font-weight:600}
.rs-list .muted{font-size:.88rem}
/* footer */
.site-foot{border-top:1px solid var(--line);margin-top:64px;padding-block:48px 28px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}
.foot-grid>div{display:flex;flex-direction:column;gap:12px;max-width:380px}
.foot-col{display:flex;flex-direction:column;gap:8px}
.foot-col h2{font:600 .8rem var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.foot-col a{text-decoration:none}
.foot-col a:hover{color:var(--accent)}
@media (max-width:700px){.foot-grid{grid-template-columns:1fr 1fr}.foot-grid>div{grid-column:1/-1}}
.foot-base{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:32px;padding-top:20px;border-top:1px solid var(--line);font-size:.9rem;color:var(--muted)}
.badge-preview{background:var(--forest-soft);color:var(--forest);padding:4px 12px;border-radius:999px;font-weight:600}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

.tagline{font:600 .95rem var(--display);color:var(--forest)}
.tagline-dark{font:600 1.05rem var(--display);color:#F3A47E!important}
/* events */
.cat-hero .chip{background:transparent;font:inherit;font-size:.92rem;cursor:pointer}
.cat-hero .chip .n{opacity:.7;margin-left:4px;font-variant-numeric:tabular-nums}
.ev-note{background:var(--forest-soft);color:var(--ink);border-radius:14px;padding:14px 18px;font-size:.95rem;margin-bottom:8px}
.ev-month{margin-top:36px}
.ev-mh{font-size:1.35rem;padding-bottom:10px;border-bottom:2px solid var(--ink);margin-bottom:6px}
.ev-sub{margin:-2px 0 6px;font-size:.95rem}
.ev-list{list-style:none;margin:0;padding:0}
.ev{display:grid;grid-template-columns:96px minmax(0,1fr);gap:22px;padding:22px 0;border-bottom:1px solid var(--line)}
.ev-date{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 6px;align-self:start;text-align:center}
.ev-day{font:800 2rem/1 var(--display);font-variant-numeric:tabular-nums}
.ev-day.ev-tbc{font-size:1.35rem;color:var(--muted)}
.ev-mon{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-top:4px}
.ev-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.ev-tags{display:flex;flex-wrap:wrap;gap:8px}
.chip-s{font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:var(--forest-soft);color:var(--forest)}
.chip-s.fairs{background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.chip-s.festivals{background:color-mix(in srgb,#7A5BA6 16%,transparent);color:#8C6CC0}
.pill{font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.pill.ok{color:var(--forest);border-color:color-mix(in srgb,var(--forest) 40%,transparent)}
.pill.tbc{color:var(--mark-ink);background:var(--mark);border-color:transparent}
.ev h3{font-size:1.25rem}
.ev-meta{font-weight:600;font-size:.95rem}
.ev-desc{color:var(--muted);max-width:68ch}
.ev-link{color:var(--accent);font-weight:600;text-decoration:none;align-self:flex-start;min-height:32px;display:inline-flex;align-items:center}
.ev-link:hover{text-decoration:underline}
@media (max-width:560px){.ev{grid-template-columns:72px minmax(0,1fr);gap:14px}.ev-day{font-size:1.6rem}}
.kate-ev{margin-top:48px;display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,4vw,36px)}
.kate-ev>div{display:flex;flex-direction:column;gap:8px;max-width:560px}
.ev-mini{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width:900px){.ev-mini{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.ev-mini{grid-template-columns:1fr}}
.ev-mini a{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:start;text-decoration:none;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;height:100%}
.ev-mini a>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.ev-mini a:hover .pop-title{color:var(--accent)}
.ev-date.sm{padding:8px 4px;border-radius:12px}
.ev-date.sm .ev-day{font-size:1.5rem}
/* resources */
.res-sec{margin-top:40px;scroll-margin-top:96px}
.res-sec h2{font-size:1.45rem;margin-bottom:16px}
.res-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:900px){.res-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.res-list{grid-template-columns:1fr}}
.res-list a{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;text-decoration:none}
.res-list a:hover .rs-name{color:var(--accent)}
.rs-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.type{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--forest);white-space:nowrap}
.rs-desc{font-size:.95rem;color:var(--ink)}
.rs-host{font-size:.85rem;margin-top:auto}
.rs-more{margin-top:40px}
.rs-more a{color:var(--accent)}
.cat-hero a.chip{color:var(--on-dark)}
.cat-hero button.chip{color:var(--on-dark)}
.cat-hero .chip.on{background:var(--on-dark);color:var(--dark);border-color:var(--on-dark);font-weight:600}
.ytabs{display:flex;gap:8px;margin-bottom:4px}
.ytab{min-height:40px;display:inline-flex;align-items:center;padding:0 18px;border-radius:10px;border:1px solid #4A5A51;color:var(--on-dark);text-decoration:none;font:800 1.05rem var(--display)}
.ytab.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.month-nav{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;font-size:.9rem}
.month-nav a{color:var(--on-dark-muted);text-decoration:none}
.month-nav a:hover{color:var(--on-dark);text-decoration:underline}
.ev-month{scroll-margin-top:96px}
.ev.past .ev-date,.ev.past h3,.ev.past .ev-desc,.ev.past .ev-meta{opacity:.62}
.pill.past{background:var(--line);color:var(--muted);border-color:transparent}
.ynext{margin-top:32px;display:flex;justify-content:center}
.yr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media (max-width:640px){.yr-grid{grid-template-columns:1fr}}
.yr-card{display:flex;flex-direction:column;gap:8px;padding:28px;border-radius:24px;background:var(--surface);border:1px solid var(--line);text-decoration:none}
.yr-card:hover{border-color:var(--accent)}
.yr{font:800 3rem/1 var(--display);letter-spacing:-.03em}
.yr-meta{font-size:.95rem}
.yr-desc{color:var(--muted);line-height:1.6;margin-top:4px}
.yr-card .more{margin-top:auto;padding-top:6px;align-self:flex-start}
.yr-intro{display:flex;flex-direction:column;gap:10px;margin-bottom:28px}
.yr-intro p{color:var(--muted);font-size:1.05rem;line-height:1.7;max-width:none}
/* About dropdown */
.has-sub{position:relative;display:flex;align-items:center}
.sub-parent{display:inline-flex;align-items:center;gap:6px}
.caret{transition:transform .2s ease}
.has-sub.is-active>.sub-parent{color:var(--accent);border-color:var(--accent)}
.sub{position:absolute;top:100%;right:-12px;min-width:210px;padding:8px;margin-top:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 40px -18px rgba(22,33,27,.35);display:flex;flex-direction:column;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:20}
.sub::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.sub a{padding:10px 12px;border-radius:10px;border:0;white-space:nowrap}
.sub a:hover{background:var(--forest-soft);color:var(--ink)}
.sub a[aria-current="page"]{color:var(--accent);background:var(--forest-soft)}
.has-sub:hover .sub,.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:none}
.has-sub:hover .caret,.has-sub:focus-within .caret{transform:rotate(180deg)}
@media (max-width:900px){
 .has-sub{display:contents}
 .caret{display:none}
 .sub{position:static;display:contents;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0;margin:0;background:none}
 .sub::before{display:none}
 .sub a{padding:6px 0;border-radius:0;border-bottom:2px solid transparent}
 .sub a:first-child{display:none}
 .sub a[aria-current="page"]{background:none;border-color:var(--accent)}
}

/* ---------- WordPress additions ---------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;padding:8px 12px;background:var(--surface);z-index:100}
.prose img{border-radius:16px;height:auto}
.prose .fig{margin:1.6em 0}
.prose details.sources{margin-top:2em;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:.95rem}
.prose details.sources summary{cursor:pointer;font-weight:600}
.prose details.sources ul{margin-top:.8em;word-break:break-word}
.alignwide,.alignfull{max-width:100%}
.aligncenter{margin-inline:auto;display:block}
.wp-block-image img{border-radius:16px}
.pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:40px}
.pager .page-numbers{display:inline-flex;min-width:44px;height:44px;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);background:var(--surface)}
.pager .page-numbers.current{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.notice-box{padding:14px 18px;border-radius:14px;margin-bottom:16px;font-weight:500}
.notice-box.ok{background:var(--forest-soft);color:var(--forest)}
.notice-box.err{background:#FBE9E2;color:#8A2C08}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.empty-state{padding:40px 0;color:var(--muted)}
.res-sec+.res-sec{margin-top:40px}
.listing-content>.res-sec:first-child{margin-top:0}
body.admin-bar .site-head{top:32px}
@media (max-width:782px){body.admin-bar .site-head{top:46px}}
