/*
Theme Name: Farmer Learning Hub 2.0
Description: Custom responsive theme for the Farmer Learning Hub agricultural learning platform.
Version: 0.2.0
Text Domain: flh-2
*/
:root{--green:#155e42;--deep:#103d2c;--ink:#1b3028;--muted:#5d7168;--cream:#f6f7f0;--line:#dce7df;--gold:#d7b36b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:var(--green)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ba8522;outline-offset:3px}.wrap{width:min(1200px,calc(100% - 40px));margin:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;z-index:99;background:white;padding:10px}.site-header{border-bottom:1px solid var(--line);background:white;position:relative;z-index:5}.header-inner{min-height:84px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--deep);font-size:1.1rem}.brand img{max-height:60px;width:auto}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--green);color:white;border-radius:10px}.site-nav{margin-left:auto}.site-nav ul{display:flex;list-style:none;gap:15px;margin:0;padding:0;flex-wrap:wrap}.site-nav a{text-decoration:none;color:var(--ink);font-size:.91rem;font-weight:600}.header-search{padding:9px 14px;border:1px solid var(--green);border-radius:8px;text-decoration:none;font-weight:700}.hero{background:linear-gradient(120deg,#eff4e9,#f8f6e9);padding:90px 0}.hero-layout{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:55px}.eyebrow{letter-spacing:.16em;font-size:.77rem;font-weight:800;color:var(--green)}h1,h2,h3{line-height:1.2}h1{font-size:clamp(2.5rem,5vw,4.8rem);letter-spacing:-.045em;margin:18px 0}h1 em{font-style:normal;color:var(--green)}.hero p{font-size:1.14rem;max-width:620px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.btn{display:inline-block;padding:13px 21px;border-radius:8px;background:var(--green);color:white;text-decoration:none;font-weight:750}.btn-outline{background:transparent;color:var(--green);border:1px solid var(--green)}.hero-feature{background:white;padding:34px;border-radius:18px;box-shadow:0 16px 55px #103d2c14}.hero-feature h2{font-size:1.65rem}.feature-icon{font-size:2.5rem}.hero-feature input{width:100%;padding:15px;border:1px solid var(--line);border-radius:7px;font:inherit}.hero-feature button{margin-top:12px;width:100%;padding:14px;background:var(--green);color:white;border:0;border-radius:7px;font:inherit;font-weight:700;cursor:pointer}.hero-feature p{font-size:.83rem;color:var(--muted)}.section{padding:76px 0}.muted{background:var(--cream)}.section-heading{max-width:760px;margin-bottom:30px}.section-heading h2{font-size:clamp(1.8rem,3vw,2.7rem);margin:8px 0}.section-heading p{color:var(--muted)}.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.tile{border:1px solid var(--line);border-radius:14px;padding:23px;background:#fff;min-width:0}.tile-icon{display:inline-grid;place-items:center;background:#eff5ee;width:45px;height:45px;border-radius:11px;font-size:1.4rem}.tile h3{margin:16px 0 8px;font-size:1.3rem}.tile p{font-size:.88rem;color:var(--muted);min-height:43px}.tile ul{padding:0;margin:14px 0 0;list-style:none}.tile li{border-top:1px solid #edf1ed;padding:8px 0}.tile li a{display:flex;justify-content:space-between;gap:8px;text-decoration:none;font-size:.9rem}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.resource-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.resource-card img{width:100%;height:180px;object-fit:cover}.resource-body{padding:22px}.resource-body h3 a{text-decoration:none}.cta-section{background:var(--deep);color:white;padding:64px 0;text-align:center}.cta-section p{max-width:620px;margin:0 auto 24px}.btn-light{background:white;color:var(--deep)}.site-footer{background:#0b2c20;color:#e9f4ed;padding:55px 0 22px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px}.footer-grid h2{font-size:1rem}.footer-grid a{display:block;color:#e9f4ed;margin:8px 0}.footer-bottom{border-top:1px solid #ffffff22;margin-top:35px;padding-top:20px;font-size:.83rem}.content-shell{padding:55px 0;max-width:880px}.content-shell h1{font-size:clamp(2rem,4vw,3.5rem)}.content-shell img{max-width:100%;height:auto}@media(max-width:1020px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-layout{grid-template-columns:1fr}.site-nav{order:3;width:100%;margin:0;padding-bottom:12px}.header-inner{flex-wrap:wrap}.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.tiles,.resource-grid,.footer-grid{grid-template-columns:1fr}.hero{padding:48px 0}.section{padding:45px 0}.hero-feature{padding:24px}.header-search{margin-left:auto}.site-nav ul{gap:12px}}
/* Phase 3 accessible knowledge search and results */
.flh-knowledge-search{background:#f2f8f3;border:1px solid #d5e5d7;border-radius:18px;padding:1.25rem;margin:1.5rem 0}
.flh-knowledge-search label{display:block;font-weight:750;font-size:1.15rem;margin-bottom:.65rem}
.flh-search-controls{display:flex;gap:.6rem;flex-wrap:wrap}
.flh-search-controls input{flex:2 1 220px}.flh-search-controls select{flex:1 1 155px}
.flh-search-controls input,.flh-search-controls select{font:inherit;padding:.8rem;border:1px solid #a9c4ad;border-radius:9px;min-height:48px}
.flh-search-controls button{background:#166534;color:white;border:0;border-radius:9px;padding:.8rem 1.3rem;font:inherit;font-weight:700;min-height:48px;cursor:pointer}
.flh-search-controls :focus-visible{outline:3px solid #d2a634;outline-offset:2px}
.flh-result{border-bottom:1px solid #dce5dc;padding:1rem 0}.flh-result h3{margin:.1rem 0}.flh-result small{color:#42564a}
/* Phase 4: accessible, responsive service directory */
.flh-resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1.25rem;margin:1.5rem 0 3rem}
.flh-resource-card{background:#fff;border:1px solid #dce8df;border-radius:16px;padding:1.5rem;box-shadow:0 5px 20px rgba(20,57,35,.045)}
.flh-resource-card h2,.flh-resource-card h3{margin-top:0;color:#164e2c}
.flh-resource-card ul{padding-left:1.3rem;line-height:2}
.flh-resource-card a:focus-visible,.flh-help-gateway a:focus-visible{outline:3px solid #e8aa30;outline-offset:3px}
.flh-directory-intro{max-width:850px;margin:2rem 0}
.flh-help-gateway{padding:2rem;border-radius:18px;background:#eef7f0;margin:2rem 0}
.flh-button{display:inline-block;background:#176c3b;color:#fff!important;padding:.85rem 1.25rem;border-radius:9px;text-decoration:none;font-weight:700}
