/*
Theme Name: The Garden EP
Theme URI: https://thegardenep.com/
Description: Clean custom theme for The Garden EP. Works with The Garden EP Hub Builder plugin.
Author: The Garden EP
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: thegardenep
*/

/* Tokens */
:root{
--paper:#fbfaf6;--surface:#fff;--ink:#1e2a22;--muted:#5c665e;--line:#e3e0d6;--green:#2f5d3a;--green-dark:#1f3d29;--tint:#eef2ea;--accent:#a84f28;
--serif:"Iowan Old Style","Palatino Linotype",Georgia,serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
--radius:10px;--page:1200px;--read:720px;--gap:24px}

/* Base */
*,*:before,*:after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.65 var(--sans)}
img{display:block;max-width:100%;height:auto}
a{color:var(--green)}
a:hover{color:var(--green-dark)}
:focus-visible{outline:2px solid var(--green);outline-offset:2px}
h1,h2,h3,h4{margin:0;color:var(--ink);font-family:var(--serif);font-weight:700;letter-spacing:-.01em;line-height:1.2}
h1{font-size:clamp(2rem,4.5vw,2.9rem)}
hr{margin:2em 0;border:0;border-top:1px solid var(--line)}
input,textarea{font:inherit;color:inherit}
.wrap{width:min(100% - 40px,var(--page));margin-inline:auto}
.skip-link{position:absolute;left:-999px;top:8px;z-index:100;padding:8px 12px;background:var(--surface)}
.skip-link:focus{left:8px}
.kicker{display:block;color:var(--accent);font:600 .75rem/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;text-decoration:none}
.btn,.amz-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:0;border-radius:var(--radius);background:var(--green);color:#fff;font:600 .95rem/1.2 var(--sans);text-decoration:none;cursor:pointer}
.btn:hover,.amz-button:hover{background:var(--green-dark);color:#fff}
.search-form{display:flex;gap:8px;width:100%;max-width:520px}
.search-form input{flex:1;min-width:0;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}

/* Header */
.site-head{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);background:var(--surface);transition:transform .2s ease}
.admin-bar .site-head{top:32px}
.site-head.is-hidden{transform:translateY(-140%)}
.site-head__in{display:flex;align-items:center;gap:16px;min-height:72px}
.brand{display:block;flex:none;width:170px;height:54px;overflow:hidden}
.brand img{width:200px;max-width:none;margin:-18px 0 0 -15px}
.site-nav{margin-left:auto}
.site-nav__list{display:flex;gap:4px;margin:0;padding:0;list-style:none}
.site-nav__list ul{position:absolute;top:100%;left:0;display:none;min-width:240px;margin:0;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 8px 24px rgba(30,42,34,.08);list-style:none}
.site-nav__list li{position:relative}
.site-nav__list li:hover>ul,.site-nav__list li:focus-within>ul{display:block}
.site-nav__list a{display:block;padding:10px 12px;border-radius:6px;color:var(--ink);font-size:.95rem;font-weight:600;line-height:1.2;text-decoration:none}
.site-nav__list a:hover{background:var(--tint);color:var(--green-dark)}
.site-nav__list a[href="#"]{cursor:default}
.site-nav__list>.menu-item-has-children>a:after{display:inline-block;width:6px;height:6px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;content:"";transform:translateY(-2px) rotate(45deg)}
.head-search{position:relative}
.head-search summary{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;cursor:pointer;list-style:none}
.head-search summary::-webkit-details-marker{display:none}
.head-search summary:hover{background:var(--tint)}
.head-search svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2}
.head-search .search-form{position:absolute;top:calc(100% + 12px);right:0;width:340px;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 8px 24px rgba(30,42,34,.08)}
.nav-toggle{display:none;width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer}
.nav-toggle span,.nav-toggle span:before,.nav-toggle span:after{display:block;width:22px;height:2px;margin:auto;background:var(--ink);content:""}
.nav-toggle span:before{transform:translateY(-7px)}
.nav-toggle span:after{transform:translateY(5px)}

/* Footer */
.site-foot{margin-top:56px;padding:40px 0;background:var(--green-dark);color:#dfe7da;font-size:.92rem;text-align:center}
.site-foot__list{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:0 0 16px;padding:0;list-style:none}
.site-foot a{color:#fff;text-decoration:none}
.site-foot p{margin:0}

/* Home */
.intro{padding:64px 0 32px;text-align:center}
.intro h1{max-width:17em;margin:.3em auto;font-size:clamp(2.1rem,5vw,3.5rem)}
.intro p{max-width:36em;margin:0 auto 24px;color:var(--muted);font-size:1.1rem}
.intro .search-form{margin:0 auto}
.chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px}
.chips a{padding:7px 14px;border:1px solid var(--line);border-radius:99px;background:var(--surface);color:var(--ink);font-size:.9rem;font-weight:500;text-decoration:none}
.chips a:hover{border-color:var(--green);color:var(--green)}
.band{padding:56px 0;border-top:1px solid var(--line)}
.band__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:24px}
.band__head h2{font-size:1.75rem}
.band__head a{font-weight:600;text-decoration:none;white-space:nowrap}
.lead{display:grid;grid-template-columns:1.5fr 1fr;gap:40px}
.lead .card h3{font-size:clamp(1.5rem,3vw,2.1rem)}
.rows{margin:0;padding:0;list-style:none}
.rows li+li{border-top:1px solid var(--line)}
.rows a{display:grid;grid-template-columns:88px 1fr;gap:14px;align-items:center;padding:14px 0;color:var(--ink);font:700 1.05rem/1.3 var(--serif);text-decoration:none}
.rows a:hover{color:var(--green)}
.rows img{width:88px;height:66px;object-fit:cover;border-radius:6px}
.sections{display:grid;grid-template-columns:repeat(3,1fr);gap:0 32px;margin:0;padding:0;list-style:none}
.sections a{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:16px 0;border-bottom:1px solid var(--line);color:var(--ink);font:700 1.1rem/1.3 var(--serif);text-decoration:none}
.sections a:hover{color:var(--green)}
.sections small{color:var(--muted);font:400 .85rem var(--sans)}
.trust{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.trust h2{font-size:1.75rem}
.trust p{margin:0 0 12px;color:var(--muted)}

/* Cards and listings */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px var(--gap)}
.card{display:block;min-width:0;color:inherit;text-decoration:none}
.card img,.card__blank{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);background:var(--tint)}
.card h3{margin-top:10px;font-size:1.2rem}
.card:hover h3{color:var(--green)}
.card p{margin:6px 0 0;color:var(--muted);font-size:.92rem;line-height:1.5}
.listing{padding-top:40px}
.listing h1{margin-bottom:32px}
.pagination{margin-top:40px}
.nav-links{display:flex;flex-wrap:wrap;gap:8px}
.page-numbers{padding:6px 12px;border-radius:6px;color:var(--ink);text-decoration:none}
.page-numbers.current{background:var(--green);color:#fff}

/* Prose */
.prose>*{max-width:var(--read)}
.prose p{margin:0 0 1.1em}
.prose h2{margin:1.9em 0 .5em;font-size:1.65rem}
.prose h3{margin:1.5em 0 .4em;font-size:1.3rem}
.prose h4{margin:1.2em 0 .3em;font-size:1.05rem}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.3em}
.prose li{margin-bottom:.35em}
.prose figure{margin:1.5em 0}
.prose figcaption{margin-top:6px;color:var(--muted);font-size:.85rem}
.prose .aligncenter{margin-inline:auto}
.prose blockquote{margin:1.5em 0;padding:4px 0 4px 18px;border-left:3px solid var(--green)}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th{background:var(--tint);text-align:left}
.prose th,.prose td{padding:10px 12px;border:1px solid var(--line)}
.wp-block-table{overflow-x:auto}
.tgep-quick-answer{margin:0 0 1.5em;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--tint)}
.tgep-buying-note{padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--tint)}
.tgep-page-kicker{color:var(--accent);font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.tgep-page-intro{color:var(--muted);font-size:1.15rem}
.tgep-policy-updated{color:var(--muted);font-size:.9rem}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:1.5em 0}
.wp-block-button__link{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border-radius:var(--radius);background:var(--green);color:#fff;font-weight:600;text-decoration:none}
.is-style-outline .wp-block-button__link{border:1px solid var(--green);background:none;color:var(--green)}

/* Articles */
.article__head{max-width:var(--read);padding-top:32px}
.article__head h1{margin:.3em 0 .4em}
.article__meta{margin:0;color:var(--muted);font-size:.9rem}
.article__image{margin:24px 0 32px}
.article__image img{width:100%;height:clamp(220px,34vw,440px);object-fit:cover;border-radius:var(--radius)}
.article__body.has-toc{display:grid;grid-template-columns:minmax(0,var(--read)) 260px;justify-content:space-between;gap:48px}
.article__body:not(.has-toc){margin-top:32px}
.toc{position:sticky;top:96px;align-self:start;max-height:calc(100vh - 120px);padding-left:16px;overflow:auto;border-left:1px solid var(--line);font-size:.9rem}
.toc strong{display:block;margin-bottom:8px;color:var(--muted);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}
.toc ol{margin:0;padding:0;list-style:none}
.toc a{display:block;padding:5px 0;color:var(--muted);line-height:1.35;text-decoration:none}
.toc a:hover,.toc a.is-active{color:var(--green-dark);font-weight:600}
.tgep-more{margin-top:48px;padding-top:24px;border-top:1px solid var(--line)}
.tgep-more__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:16px}
.prose .tgep-more__head h2{margin:0;font-size:1.4rem}
.tgep-more__head a{font-size:.9rem;font-weight:600;text-decoration:none;white-space:nowrap}
.tgep-more__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.tgep-tile{display:block;color:inherit;text-decoration:none}
.tgep-tile img,.tgep-tile__ph{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);background:var(--tint)}
.prose .tgep-tile h3{margin:10px 0 0;font-size:1rem}
.tgep-tile:hover h3{color:var(--green)}
.comments{max-width:var(--read);margin-top:48px;padding-top:24px;border-top:1px solid var(--line)}
.comment-list{padding-left:0;list-style:none}
.comment-form input:not([type=submit]):not([type=checkbox]),.comment-form textarea{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.comment-form .submit{min-height:44px;padding:10px 18px;border:0;border-radius:var(--radius);background:var(--green);color:#fff;font-weight:600;cursor:pointer}

/* Plain pages */
.plain{width:min(100% - 40px,var(--read));padding-top:40px}
.plain h1{margin-bottom:24px}

/* Buying guides */
.guide{width:min(100% - 40px,840px);padding-top:28px}
.crumbs{margin-bottom:12px;color:var(--muted);font-size:.85rem}
.crumbs a{color:var(--muted)}
.disclosure{margin:8px 0 16px;color:var(--muted);font-size:.78rem;line-height:1.4}
.disclosure a{color:inherit}
.prose--guide>*{max-width:none}
.prose--guide .tgep-money-hero{margin:0 0 24px}
.tgep-money-hero img{width:100%;height:clamp(180px,30vw,340px);object-fit:cover;border-radius:var(--radius)}
.compare{margin:24px 0 40px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.compare__row{display:grid;grid-template-columns:72px minmax(0,1.3fr) minmax(0,1.2fr) auto;gap:16px;align-items:center;padding:12px 16px}
.compare__row+.compare__row{border-top:1px solid var(--line)}
.compare__row img{width:72px;height:72px;object-fit:contain}
.compare__name{color:var(--ink);font:700 1rem/1.3 var(--serif);text-decoration:none}
.compare__name:hover{color:var(--green)}
.compare__for{color:var(--muted);font-size:.9rem;line-height:1.4}
.compare__for b{display:block;font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.compare .amz-button{min-height:40px;padding:8px 14px;font-size:.88rem;white-space:nowrap}
.product{display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:auto 1fr;gap:6px 28px;margin:0 0 28px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);scroll-margin-top:90px}
.prose .product__title{grid-column:2;margin:0;font-size:1.4rem;line-height:1.25}
.product__media{grid-column:1;grid-row:1/3}
.product__zoom{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;cursor:zoom-in}
.product__zoom img{width:100%;height:100%;object-fit:contain}
.product__body{grid-column:2}
.product__body p{margin:0 0 14px}
.product__lists,.product__more{grid-column:1/-1}
.product__lists{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:14px;padding-top:16px;border-top:1px solid var(--line)}
.review-list__label{margin:0 0 6px;font-size:.8rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.prose .review-list ul{margin:0;padding:0;list-style:none}
.prose .review-list li{position:relative;margin:0 0 6px;padding-left:24px;font-size:.95rem;line-height:1.45}
.review-list li:before{position:absolute;left:2px;font-weight:700}
.review-list--pros li:before{color:var(--green);content:"✓"}
.review-list--cons li:before{color:var(--accent);content:"–"}
.product__more{margin-top:10px;border-top:1px solid var(--line)}
.product__more summary{min-height:44px;padding-top:12px;color:var(--green);font-weight:600;cursor:pointer}
.product__more>div{padding-bottom:4px;font-size:.98rem}
.zoom{max-width:min(92vw,520px);padding:16px;border:0;border-radius:var(--radius);background:#fff}
.zoom::backdrop{background:rgba(20,30,24,.7)}
.zoom img{width:100%}
.zoom button{display:block;margin-left:auto;border:0;background:none;font-size:1.6rem;line-height:1;cursor:pointer}

/* Hubs from the Hub Builder plugin */
.tgep-hub-hero{padding:48px 0 32px;border-bottom:1px solid var(--line)}
.tgep-hub-kicker{margin:0;color:var(--accent);font:600 .75rem var(--sans);letter-spacing:.08em;text-transform:uppercase}
.tgep-hub-hero h1{margin:.2em 0;font-size:clamp(2.1rem,5vw,3.25rem)}
.tgep-hub-intro{max-width:40em;margin:0;color:var(--muted);font-size:1.1rem}
.tgep-hub-actions,.tgep-hub-heading p,.tgep-topic-mark,.tgep-guide-type{display:none}
.tgep-hub-section{padding:40px 0}
.tgep-hub-section+.tgep-hub-section{border-top:1px solid var(--line)}
.tgep-hub-heading{margin-bottom:20px}
.tgep-hub-heading h2{font-size:1.6rem}
.tgep-hub-heading span{color:var(--muted)}
.tgep-topic-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tgep-topic-card{display:block;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);text-decoration:none}
.tgep-topic-card:hover{border-color:var(--green)}
.tgep-topic-card h3{margin-bottom:4px;font-size:1.05rem}
.tgep-topic-card p{margin:0 0 8px;color:var(--muted);font-size:.9rem;line-height:1.45}
.tgep-card-link{color:var(--green);font-size:.88rem;font-weight:600}
.tgep-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px var(--gap)}
.tgep-guide-card{min-width:0}
.tgep-guide-media img,.tgep-guide-placeholder{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);background:var(--tint);color:var(--muted);font-size:.85rem}
.tgep-guide-card h3{margin:10px 0 4px;font-size:1.15rem}
.tgep-guide-card h3 a{color:var(--ink);text-decoration:none}
.tgep-guide-card h3 a:hover{color:var(--green)}
.tgep-guide-body p{margin:0;color:var(--muted);font-size:.92rem;line-height:1.5}
.tgep-guide-card:nth-child(n+7){grid-column:1/-1;padding:12px 0;border-top:1px solid var(--line)}
.tgep-guide-card:nth-child(n+7) .tgep-guide-media,.tgep-guide-card:nth-child(n+7) .tgep-guide-body p{display:none}
.tgep-guide-card:nth-child(n+7) h3{margin:0;font-size:1.05rem}
.tgep-hub-more{margin:20px 0 0;font-weight:600}
.tgep-hub-more a{text-decoration:none}
.tgep-buying-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap)}
.tgep-buying-card{display:block;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);overflow:hidden;text-decoration:none}
.tgep-buying-card img{width:100%;aspect-ratio:3/2;object-fit:cover}
.tgep-buying-body{display:block;padding:14px 16px}
.tgep-buying-body small{display:block;color:var(--accent);font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.tgep-buying-body strong{display:block;margin:4px 0;font:700 1.1rem/1.3 var(--serif)}
.tgep-buying-body em{color:var(--green);font-size:.88rem;font-style:normal;font-weight:600}
.tgep-related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0 24px}
.tgep-related-grid a{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink);font-weight:600;text-decoration:none}

/* Responsive */
@media(max-width:1100px){
.article__body.has-toc{display:flex;flex-direction:column-reverse;gap:24px}
.toc{position:static;max-height:none;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.tgep-topic-grid,.tgep-related-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:960px){
.nav-toggle{display:block}
.site-nav{position:absolute;top:100%;right:0;left:0;display:none;max-height:calc(100vh - 72px);padding:12px 20px;overflow:auto;border-bottom:1px solid var(--line);background:var(--surface)}
.site-head.is-open .site-nav{display:block}
.head-search{margin-left:auto}
.site-nav__list{display:block}
.site-nav__list>.menu-item-has-children>a:after{display:none}
.site-nav__list ul{position:static;display:block;min-width:0;padding:0 0 0 12px;border:0;box-shadow:none}
}
@media(max-width:800px){
.admin-bar .site-head{top:0}
.lead,.trust{grid-template-columns:1fr}
.sections,.card-grid,.tgep-buying-grid,.tgep-guide-grid,.tgep-more__grid{grid-template-columns:1fr 1fr}
.product{grid-template-columns:1fr;grid-template-rows:auto;padding:16px}
.prose .product__title,.product__media,.product__body{grid-column:1;grid-row:auto}
.product__zoom{max-width:300px;margin:8px auto}
.product__body .amz-button{width:100%}
.product__lists{gap:16px}
.compare__row{grid-template-columns:56px minmax(0,1fr);gap:4px 12px;padding:12px}
.compare__row img{width:56px;height:56px;grid-row:span 2}
.compare__for{display:none}
.compare .amz-button{grid-column:2;justify-self:start}
}
@media(max-width:600px){
body{font-size:16px}
.brand{width:140px;height:46px}
.brand img{width:165px;margin:-15px 0 0 -13px}
.intro{padding:40px 0 24px;text-align:left}
.chips{flex-wrap:nowrap;justify-content:flex-start;margin-inline:-20px;padding-inline:20px;overflow-x:auto;scrollbar-width:none}
.chips a{flex:none}
.band{padding:40px 0}
.sections,.card-grid,.tgep-buying-grid,.tgep-guide-grid,.tgep-topic-grid,.tgep-related-grid,.tgep-more__grid,.product__lists{grid-template-columns:1fr}
.tgep-money-hero img{height:150px}
.head-search .search-form{position:fixed;top:80px;right:20px;left:20px;width:auto}
}
