/*
Theme Name: TanamDerumah
Theme URI: https://tanamderumah.com
Author: Aziz
Description: Media berita dan edukasi tanaman dengan Plants Hub, panduan, opini, dan formulir kerja sama.
Version: 2.2.7
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tanamderumah
*/
:root{--td-green:#286553;--td-green-dark:#17483c;--td-green-soft:#eaf3ee;--td-orange:#ef8065;--td-ink:#17251f;--td-muted:#65736c;--td-line:#e2e9e4;--td-bg:#f7faf8;--td-radius:16px;--td-shadow:0 8px 28px rgba(23,52,39,.08);--td-width:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--td-ink);font:16px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif;background:#fff}img{max-width:100%;height:auto;display:block}a{color:var(--td-green);text-decoration:none}a:hover{color:var(--td-orange)}button,input,textarea,select{font:inherit}.td-container{width:min(var(--td-width),calc(100% - 36px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);border-bottom:1px solid var(--td-line)}.header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-brand img,.custom-logo{width:auto;max-height:58px;max-width:225px}.brand-fallback{font-weight:850;line-height:1;color:var(--td-green);font-size:25px;letter-spacing:-1px}.brand-fallback span{color:var(--td-orange);display:block}.main-nav ul{display:flex;align-items:center;gap:clamp(12px,2vw,28px);list-style:none;margin:0;padding:0}.main-nav a{font-size:14px;font-weight:750;color:#24352e;white-space:nowrap}.main-nav a:hover{color:var(--td-orange)}.menu-toggle{display:none;border:1px solid var(--td-line);background:white;border-radius:10px;padding:8px 12px;color:var(--td-green);font-weight:700}.td-ticker{background:var(--td-green);color:white;overflow:hidden;display:flex;align-items:center;min-height:44px}.ticker-label{background:var(--td-orange);align-self:stretch;display:flex;align-items:center;padding:0 18px;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;flex-shrink:0}.ticker-window{overflow:hidden;white-space:nowrap;flex:1}.ticker-track{display:inline-flex;align-items:center;gap:38px;padding-left:100%;animation:td-ticker 75s linear infinite}.ticker-window:hover .ticker-track{animation-play-state:paused}.ticker-track a{color:#fff;font-size:13px;font-weight:650}.ticker-track a:before{content:'●';color:#f3a08b;font-size:9px;margin-right:12px}@keyframes td-ticker{to{transform:translateX(-100%)}}.hero{padding:38px 0 22px}.hero-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr);gap:22px}.hero-feature{position:relative;min-height:440px;border-radius:var(--td-radius);overflow:hidden;background:#dbe8df;box-shadow:var(--td-shadow)}.hero-feature img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.hero-feature:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(9,28,20,.88),rgba(9,28,20,0) 72%)}.hero-feature-content{position:absolute;z-index:1;bottom:0;padding:clamp(22px,4vw,38px);color:white}.eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:850;color:var(--td-orange)}.hero-feature h1{font-size:clamp(27px,3.4vw,43px);line-height:1.13;margin:9px 0 12px;max-width:780px;letter-spacing:-.03em}.hero-feature p{margin:0;color:#e8f1eb;max-width:680px;font-size:14px}.hero-side{display:flex;flex-direction:column;gap:12px}.side-story{display:grid;grid-template-columns:112px 1fr;gap:13px;align-items:center;border:1px solid var(--td-line);border-radius:13px;padding:9px;background:white;min-height:100px}.side-story img{width:112px;height:82px;object-fit:cover;border-radius:9px}.side-story h3{font-size:13px;line-height:1.4;margin:0 0 5px}.side-story time,.meta{font-size:11px;color:var(--td-muted)}.home-section{padding:30px 0 20px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.section-heading h2{font-size:clamp(22px,2vw,28px);line-height:1.2;letter-spacing:-.025em;margin:0}.section-heading p{margin:5px 0 0;color:var(--td-muted);font-size:13px}.section-heading>a{font-size:12px;font-weight:800;white-space:nowrap}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.post-card{border:1px solid var(--td-line);border-radius:14px;overflow:hidden;background:white;transition:transform .2s,box-shadow .2s}.post-card:hover{transform:translateY(-3px);box-shadow:var(--td-shadow)}.post-card .thumb{display:block;aspect-ratio:16/10;background:var(--td-green-soft);overflow:hidden}.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.post-card:hover .thumb img{transform:scale(1.035)}.post-card-body{padding:17px}.category-label{display:inline-block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:var(--td-green);margin-bottom:7px}.post-card h3{font-size:17px;line-height:1.35;margin:0 0 9px;letter-spacing:-.015em}.post-card p{font-size:13px;color:var(--td-muted);margin:0 0 12px}.card-meta{font-size:11px;color:var(--td-muted)}.plants-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.plant-chip{border:1px solid var(--td-line);border-radius:13px;padding:14px;text-align:center;background:white}.plant-chip img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:50%;margin:0 auto 10px;max-width:100px}.plant-chip strong{display:block;font-size:13px}.plant-chip span{display:block;color:var(--td-muted);font-size:11px}.cta-band{margin:40px auto;background:var(--td-green-dark);color:white;border-radius:18px;padding:30px;display:flex;align-items:center;justify-content:space-between;gap:22px}.cta-band h2{font-size:24px;line-height:1.25;margin:0 0 5px}.cta-band p{margin:0;color:#dce9e1;font-size:14px}.button,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:var(--td-orange);color:#fff;padding:11px 17px;font-weight:800;font-size:13px;cursor:pointer}.button:hover,.wp-block-button__link:hover{background:#e46e53;color:#fff}.archive-head{background:var(--td-bg);padding:38px 0;border-bottom:1px solid var(--td-line)}.archive-head h1{font-size:clamp(30px,4vw,42px);line-height:1.15;margin:0 0 8px;letter-spacing:-.035em}.archive-head p{margin:0;color:var(--td-muted);max-width:760px}.archive-layout{padding:32px 0 60px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:32px}.article-header{padding:38px 0 22px;max-width:900px;margin:auto}.article-header h1{font-size:clamp(32px,4vw,48px);line-height:1.12;letter-spacing:-.04em;margin:10px 0 14px}.article-excerpt{font-size:18px;color:var(--td-muted)}.article-cover{max-height:560px;width:100%;object-fit:cover;border-radius:16px;margin:0 auto 28px}.article-body{max-width:780px;margin:0 auto;padding-bottom:55px;font-size:17px}.article-body h2,.article-body h3{line-height:1.25;letter-spacing:-.02em;margin-top:1.7em}.article-body p{margin:0 0 1.2em}.article-body img{border-radius:12px}.sidebar-box{border:1px solid var(--td-line);border-radius:14px;padding:18px;margin-bottom:18px}.sidebar-box h3{margin:0 0 12px;font-size:16px}.sidebar-box ul{padding-left:18px;margin:0}.pagination{display:flex;gap:8px;justify-content:center;margin-top:28px}.pagination .page-numbers{padding:8px 12px;border:1px solid var(--td-line);border-radius:8px}.pagination .current{background:var(--td-green);color:white}.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:35px 0 60px}.form-panel,.map-panel{border:1px solid var(--td-line);border-radius:16px;padding:24px;background:white}.form-panel h2,.map-panel h2{margin:0 0 8px}.form-panel p,.map-panel p{color:var(--td-muted);font-size:14px}.td-form label{display:block;font-weight:750;font-size:13px;margin:14px 0 5px}.td-form input,.td-form textarea,.td-form select{width:100%;border:1px solid #d6e0d9;border-radius:9px;padding:11px 12px;background:#fff}.td-form textarea{min-height:140px;resize:vertical}.td-form input:focus,.td-form textarea:focus{outline:2px solid #acd1bc;border-color:var(--td-green)}.map-panel iframe{width:100%;height:330px;border:0;border-radius:12px;margin-top:12px}.notice{padding:12px 15px;border-radius:9px;background:var(--td-green-soft);color:var(--td-green-dark);margin:16px 0}.notice.error{background:#fff0ed;color:#8a3022}.site-footer{background:#111c20;color:#e5eee8;margin-top:40px;padding:42px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:30px}.footer-brand img{max-width:185px;max-height:56px;object-fit:contain;object-position:left}.site-footer p,.site-footer li{font-size:13px;color:#bdcbc3}.site-footer h3{font-size:13px;color:white;margin:0 0 12px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin-bottom:7px}.site-footer a{color:#d8e7dd}.footer-bottom{border-top:1px solid #2a3835;margin-top:28px;padding-top:16px;text-align:center;font-size:11px;color:#aabbb1}.search-form{display:flex;gap:7px}.search-form input{min-width:0;width:100%;border:1px solid var(--td-line);border-radius:9px;padding:10px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.empty-state{padding:30px;border:1px dashed var(--td-line);border-radius:14px;color:var(--td-muted);text-align:center}
@media(max-width:1000px){.header-inner{min-height:76px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:white;border-bottom:1px solid var(--td-line);padding:10px 18px 18px;box-shadow:var(--td-shadow)}.main-nav.is-open{display:block}.main-nav ul{display:flex;align-items:stretch;flex-direction:column;gap:0}.main-nav li a{display:block;padding:11px 5px;border-bottom:1px solid #edf1ee}.hero-grid{grid-template-columns:1fr}.hero-feature{min-height:390px}.hero-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.side-story{grid-template-columns:88px 1fr}.side-story img{width:88px;height:74px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.td-container{width:calc(100% - 28px)}.hero{padding-top:20px}.hero-feature{min-height:360px}.hero-feature h1{font-size:29px}.hero-side{grid-template-columns:1fr}.side-story{min-height:90px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.post-card-body{padding:12px}.post-card h3{font-size:14px}.post-card p{font-size:12px}.plants-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.plant-chip{padding:10px 6px}.plant-chip img{max-width:76px}.cta-band{display:block;padding:24px}.cta-band .button{margin-top:18px}.contact-layout,.content-grid{grid-template-columns:1fr}.article-header{padding-top:26px}.article-header h1{font-size:34px}.article-body{font-size:16px}.footer-grid{grid-template-columns:1fr 1fr;gap:22px}.ticker-label{padding:0 10px;font-size:9px}.ticker-track{gap:24px}.section-heading h2{font-size:22px}}
@media(max-width:420px){.post-grid{grid-template-columns:1fr}.post-card .thumb{aspect-ratio:16/9}.footer-grid{grid-template-columns:1fr}.brand-fallback{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.site-logo-fallback img{width:260px;max-height:60px;object-fit:contain;object-position:left center}

/* Plants Hub photo gallery */
.plant-gallery{margin:0 auto 44px}.plant-gallery h2{font-size:clamp(22px,2vw,28px);margin:0 0 8px}.plant-gallery-intro{color:var(--td-muted);font-size:14px;margin:0 0 18px}.plant-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.plant-gallery-item{display:block;border-radius:12px;overflow:hidden;background:var(--td-green-soft);border:1px solid var(--td-line)}.plant-gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .25s}.plant-gallery-item:hover img{transform:scale(1.035)}.plant-gallery-empty{padding:22px;border:1px dashed var(--td-line);border-radius:12px;color:var(--td-muted);font-size:14px;background:#fbfdfb}@media(max-width:650px){.plant-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Plants Hub layout refinement */
.plant-featured-image .article-cover{margin-bottom:20px;max-height:440px}
.plant-content-grid{align-items:start;grid-template-columns:minmax(0,1fr) 290px;gap:26px;padding-bottom:35px}
.plant-content-grid .article-body{max-width:none;margin:0;padding-bottom:25px;min-width:0}
.plant-profile{margin:0 0 24px;background:#fff}
.plant-profile h2{font-size:18px;margin:0 0 14px}
.plant-profile dl{margin:0}
.plant-profile dt{font-weight:800;font-size:13px;margin-top:13px;color:var(--td-ink)}
.plant-profile dd{margin:2px 0 0;font-size:14px;color:var(--td-muted);overflow-wrap:anywhere}
.plant-sidebar{min-width:0;position:relative}
.plant-gallery{margin:0 0 20px;padding:17px}
.plant-gallery h2{font-size:19px;line-height:1.25;margin:0 0 7px}
.plant-gallery-intro{font-size:13px;line-height:1.6;margin:0 0 14px}
.plant-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.plant-gallery-item img{aspect-ratio:1/1}
.plant-gallery-empty{font-size:12px;line-height:1.65;padding:13px}
.page-content{padding:30px 0 55px}
.page-content>.td-container{max-width:900px}
.page-content .entry-content{font-size:16px}
.page-content .entry-content>p:first-child{font-size:17px;color:var(--td-muted)}
.page-contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.page-contact-layout .form-panel,.page-contact-layout .map-panel{min-width:0;margin:0}
.page-cooperation-layout{max-width:860px!important}
.page-cooperation-layout .form-panel{margin-top:24px}
.page-contact-layout .map-panel iframe{min-height:300px}
@media(max-width:760px){.plant-content-grid{grid-template-columns:minmax(0,1fr);gap:8px}.plant-sidebar{grid-row:2}.plant-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-contact-layout{grid-template-columns:minmax(0,1fr)}.plant-featured-image .article-cover{max-height:340px}}

.page-intro{min-width:0}.page-intro p{font-size:15px;color:var(--td-muted);margin:0 0 12px}.page-intro .lead{font-size:24px;font-weight:850;color:var(--td-ink);line-height:1.25}.page-contact-layout .page-intro .form-panel{margin-top:22px}.page-contact-layout .map-panel{height:max-content}.page-cooperation-layout .form-panel{max-width:760px}.page-cooperation-layout .td-form textarea{min-height:180px}

/* v2.2.3: Plant profile stays in the desktop right sidebar. On mobile, show the compact profile/gallery before the long article. */
@media(max-width:760px){.plant-content-grid{display:flex;flex-direction:column}.plant-sidebar{order:1;width:100%}.plant-content-grid>.article-body{order:2;width:100%}.plant-profile{margin-bottom:16px}.plant-profile dl{display:grid;grid-template-columns:minmax(0,1fr);gap:0}.plant-gallery{margin-bottom:14px}}

/* Kabar Flora single article ads and newsletter sidebar */
.td-single-main{padding:22px 0 45px}
.td-single-layout{display:grid;grid-template-columns:minmax(0,780px) minmax(250px,300px);gap:32px;align-items:start}
.td-single-primary{min-width:0}
.td-single-primary .article-header{max-width:none;padding:18px 0 20px}
.td-single-primary .article-cover{width:100%;max-height:520px;object-fit:cover;margin:0 0 22px}
.td-single-primary .article-body{max-width:none;margin:0;padding:18px 0 28px}
.td-article-sidebar{min-width:0;padding-top:20px;position:sticky;top:110px}
.td-newsletter{background:linear-gradient(140deg,#f0f8ef,#e3f1df);border:1px solid #d7e8d6;border-radius:15px;padding:20px;margin-bottom:18px}
.td-newsletter h3{font-size:19px;line-height:1.25;margin:0 0 10px;color:var(--td-green-dark)}
.td-newsletter p{font-size:13px;line-height:1.6;color:#43594d;margin:0 0 14px}
.td-newsletter-form{display:flex;flex-direction:column;gap:9px}
.td-newsletter-form input{width:100%;min-width:0;border:1px solid #d2dfd3;background:#fff;border-radius:9px;padding:11px 12px;font-size:13px}
.td-newsletter-form .button{width:100%;background:var(--td-green);padding:11px}
.td-ad-unit{width:100%;max-width:100%;margin:20px 0 24px;clear:both}
.td-ad-label{display:block;text-align:right;font-size:10px;line-height:1.3;color:#87938c;margin:0 0 4px}
.td-ad-unit>a{display:block}
.td-ad-banner-img{display:block;width:100%;height:auto;max-height:190px;object-fit:cover;border-radius:9px;border:1px solid #e5ebe5}
.td-recent-news{list-style:none!important;padding:0!important;margin:0!important}
.td-recent-news li{padding:10px 0;border-bottom:1px solid var(--td-line)}
.td-recent-news li:last-child{border-bottom:0}
.td-recent-news a{display:block;font-size:13px;font-weight:750;line-height:1.4}
.td-recent-news span{display:block;font-size:11px;color:var(--td-muted);margin-top:4px}
.td-single-primary .article-body .td-ad-unit{margin:22px 0}
@media(max-width:900px){.td-single-layout{grid-template-columns:minmax(0,1fr) 260px;gap:22px}}
@media(max-width:760px){.td-single-layout{display:flex;flex-direction:column;gap:12px}.td-single-primary{width:100%}.td-article-sidebar{position:static;width:100%;padding-top:0}.td-single-primary .article-header{padding-top:8px}.td-ad-banner-img{max-height:none}.td-newsletter{padding:17px}}

/* v2.2.7: sidebar ads for Panduan and Opini */
.td-article-sidebar .td-ad-unit{margin:0 0 20px;max-width:100%;overflow:hidden}.td-article-sidebar .td-ad-banner-img{width:100%;height:auto;max-height:none;object-fit:contain}.td-article-sidebar .td-ad-unit ins{max-width:100%;overflow:hidden}
