/*
Theme Name: Persian Hakim
Theme URI: https://persianhakim.ir
Author: Persian Hakim
Description: RTL-first premium botanical encyclopedia block theme.
Version: 0.6.1
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: persianhakim
*/
@font-face{font-family:Vazirmatn;src:url('assets/fonts/Vazirmatn.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{
 --ph-forest:var(--wp--preset--color--forest,#214c3b);--ph-deep:var(--wp--preset--color--deep,#173629);--ph-sage:var(--wp--preset--color--sage,#78917d);--ph-gold:var(--wp--preset--color--gold,#c5a16b);
 --ph-ivory:var(--wp--preset--color--ivory,#f5f0e5);--ph-paper:var(--wp--preset--color--white,#fffdf8);--ph-ink:var(--wp--preset--color--ink,#252b27);--ph-muted:var(--wp--preset--color--muted,#59665d);
 --ph-line:var(--wp--preset--color--line,#ddd8cb);--ph-soft-green:var(--wp--preset--color--soft-green,#edf2eb);--ph-danger:var(--wp--preset--color--danger,#914c38);
 --ph-warning:var(--wp--preset--color--warning,#faf0df);--ph-warning-text:var(--wp--preset--color--warning-text,#68432e);--ph-warning-line:var(--wp--preset--color--warning-line,#e3c9b4);
 --ph-radius:16px;--ph-content-width:760px;--ph-wide-width:1240px;
 --ph-shadow:0 12px 32px rgb(23 54 41 / 5%);
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:112px}
body{margin:0;direction:rtl;text-align:right;background:var(--ph-ivory);color:var(--ph-ink);font-size:16px;line-height:1.95}
::selection{background:#dce7d9;color:var(--ph-deep)}
h1,h2,h3,h4{font-weight:750;line-height:1.55;letter-spacing:-.025em;color:var(--ph-forest);text-wrap:balance}
h1{font-size:clamp(2rem,3.7vw,3.5rem)}h2{font-size:clamp(1.5rem,2.2vw,2rem)}h3{font-size:1.15rem}
p{max-width:72ch}a{color:var(--ph-forest);text-underline-offset:5px;text-decoration-thickness:1px}a:hover{color:var(--ph-deep);text-decoration:underline}
button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ph-forest);outline-offset:4px}
img{max-width:100%;height:auto}bdi[dir=ltr]{unicode-bidi:isolate}main{min-width:0}
/* A single gutter and measure across native blocks, template parts and editor. */
.wp-site-blocks{padding:0}.wp-site-blocks>main{width:min(calc(100% - 48px),var(--ph-wide-width));margin:0 auto;padding-block:1px 64px}
.wp-site-blocks>main>.alignwide{max-width:100%;width:100%;margin-inline:0}
.wp-site-blocks>main> :not(.alignwide){max-width:var(--ph-content-width);margin-inline:auto}
.ph-section{margin-block:64px}.ph-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px;border-bottom:1px solid var(--ph-gold);padding-bottom:16px;margin-bottom:28px}
.ph-section-heading h2,.ph-section-heading p{margin:0}.ph-section-heading a{font-size:.9rem;font-weight:650;white-space:nowrap}
.ph-section-intro,.ph-muted{color:var(--ph-muted)}.ph-section-intro{max-width:65ch}
/* Native WordPress navigation retains its focus trap and Escape behavior. */
.wp-site-blocks>header{position:sticky;top:0;z-index:40;margin:0;background:var(--ph-paper);border-bottom:1px solid var(--ph-line)}
.ph-header-shell{padding-inline:24px}.ph-header-inner{width:100%;max-width:var(--ph-wide-width);margin-inline:auto;min-height:88px;display:grid;grid-template-columns:minmax(180px,1fr) auto 224px;gap:32px;align-items:center}
.ph-brand .wp-block-site-title{margin:0;font-size:1.65rem;line-height:1.4;font-weight:850}.ph-brand a{text-decoration:none;color:var(--ph-forest)}.ph-brand .wp-block-site-tagline{margin:2px 0 0;font-size:.72rem;line-height:1.5;color:var(--ph-muted)}
.ph-header-inner>.wp-block-navigation{margin:0;min-width:0}.wp-block-navigation .wp-block-navigation-item__content{display:inline-flex;align-items:center;min-height:44px;font-size:.88rem;font-weight:650;text-decoration:none}
.wp-block-navigation .current-menu-item>a,.wp-block-navigation a[aria-current=page]{text-decoration:underline;text-decoration-color:var(--ph-gold);text-decoration-thickness:2px;text-underline-offset:12px}
.wp-block-navigation__responsive-container.is-menu-open{padding:24px;background:var(--ph-paper)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{align-items:stretch;gap:16px}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{padding:12px 16px;width:100%;border-bottom:1px solid var(--ph-line)}
.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{min-width:44px;min-height:44px;align-items:center;justify-content:center}
.ph-skip-link{position:fixed;top:-120px;right:24px;z-index:1000;padding:12px 20px;background:var(--ph-paper);color:var(--ph-deep);border:2px solid var(--ph-forest);border-radius:8px}.ph-skip-link:focus{top:12px}
.admin-bar .wp-site-blocks>header{top:32px}
/* Every search shares one control family, including core blocks in older pages. */
.wp-block-search{width:100%;margin-block:24px}.wp-block-search__inside-wrapper{display:flex;flex-wrap:nowrap;align-items:stretch;gap:4px;min-width:0;padding:5px!important;border:1px solid #a5afa5!important;border-radius:10px;background:var(--ph-paper)}
.wp-block-search__input{flex:1 1 0;min-width:0;width:0;min-height:46px;padding:8px 12px!important;border:0!important;border-radius:6px;background:transparent;color:var(--ph-ink);font-size:.95rem}
.wp-block-search__input::placeholder{color:#637067;opacity:1}.wp-block-search__button{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-height:46px;min-width:46px;margin:0!important;padding:8px 20px!important;border:0;border-radius:7px;background:var(--ph-forest);color:var(--ph-paper);font-size:.9rem;font-weight:700}
.wp-block-search__button svg{min-width:24px}.wp-block-search__button:hover{background:var(--ph-deep)}
.ph-header-search{margin:0!important}.ph-header-search .wp-block-search__input{font-size:.8rem;min-height:36px;padding-inline:8px!important}.ph-header-search .wp-block-search__button{padding:6px!important;min-height:40px;min-width:40px}
/* Editorial hero: real image asset, native Gutenberg text and search. */
.ph-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:0;isolation:isolate;background:var(--ph-deep);color:var(--ph-paper);border-radius:var(--ph-radius);overflow:hidden;margin-block:32px!important}
.ph-hero-copy{padding:clamp(28px,4vw,56px);align-self:center;min-width:0}.ph-hero h1{margin:0 0 20px;max-width:18ch;font-size:clamp(2rem,3.5vw,3.25rem);line-height:1.5;color:var(--ph-paper)}
.ph-hero-copy>p{color:#e1e9df;margin-block:16px;max-width:48ch}.ph-hero-copy>p:last-child{margin-bottom:0}.ph-hero-copy>p a{display:inline-flex;align-items:center;min-height:44px;color:var(--ph-paper);font-size:.9rem}
.ph-hero .wp-block-search{margin-block:28px 8px}.ph-hero .wp-block-search__button{background:var(--ph-forest)}
.ph-hero-media{margin:0!important;height:100%;min-height:440px}.ph-hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:38% center}
.ph-hero-copy>p a:focus-visible,.ph-footer :focus-visible{outline-color:var(--ph-gold)}
.ph-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-block:32px 64px!important}
.ph-entry{display:grid;grid-template-columns:40px 1fr;column-gap:16px;padding-block:20px;border-bottom:1px solid var(--ph-line)}
.ph-entry h3{margin:0}.ph-entry p{margin:8px 0;color:var(--ph-muted);font-size:.9rem}.ph-entry p:last-child{grid-column:2;margin-bottom:0}.ph-entry h3+ p{grid-column:2}.ph-entry .ph-entry-number{grid-row:1/4;grid-column:1;margin:0;font-family:Georgia,serif;font-size:1.8rem;color:#80633d;line-height:1.5}.ph-entry a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
/* One image/title/excerpt language across core Query and relationship cards. */
.ph-card,.ph-related-card{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;border:1px solid var(--ph-line);border-radius:var(--ph-radius);background:var(--ph-paper)}
.ph-card .wp-block-post-featured-image,.ph-related-image{display:block;overflow:hidden;margin:0;background:var(--ph-soft-green)}
.ph-card .wp-block-post-featured-image img,.ph-related-image img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .25s ease}
.ph-card:hover .wp-block-post-featured-image img,.ph-related-card:hover .ph-related-image img{transform:scale(1.025)}
.ph-card .wp-block-post-title{margin:20px 20px 8px;font-size:1.2rem;line-height:1.65}.ph-card .wp-block-post-title a,.ph-related-body h3 a{text-decoration:none}.ph-card .wp-block-post-title a:hover,.ph-related-body h3 a:hover{text-decoration:underline}
.ph-card .wp-block-post-excerpt{margin:8px 20px 20px;font-size:.95rem;color:var(--ph-muted);flex:1}.ph-card .wp-block-post-excerpt p{margin-block:0 8px}.wp-block-post-excerpt__more-link{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.ph-card .wp-block-post-terms{margin:0 20px 20px;font-size:.8rem}.ph-related-body{display:flex;flex-direction:column;flex:1;padding:20px}.ph-related-body h3{margin:0 0 8px;font-size:1.2rem}.ph-related-body>p{margin:8px 0 0;color:var(--ph-muted);font-size:.92rem}
.ph-scientific-name{margin:4px 20px 8px;color:var(--ph-muted);line-height:1.6;font-size:.9rem;overflow-wrap:anywhere}.ph-scientific-name span{font-size:.75rem;margin-inline-end:8px}.ph-scientific-name em{font-family:Georgia,serif;font-size:1.05em;font-weight:400}.ph-related-body .ph-scientific-name{margin:0 0 8px}.ph-article-identity>.ph-scientific-name{margin:8px 0 20px;font-size:1.3rem;padding-bottom:16px;border-bottom:1px solid var(--ph-gold)}
.ph-content-type-label{margin:0 20px;font-size:.8rem;color:var(--ph-forest)}
.ph-related-grid,.ph-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ph-featured-herbs{grid-template-columns:repeat(4,minmax(0,1fr))}
.ph-topic-card{display:flex;flex-direction:column;min-width:0;border-bottom:1px solid var(--ph-line);padding:20px 0;text-decoration:none}.ph-topic-card h2{margin:4px 0 12px;font-size:1.25rem}.ph-topic-card p{margin:0 0 12px;font-size:.92rem;color:var(--ph-muted)}.ph-topic-count{font-size:.8rem;color:var(--ph-muted)}.ph-topic-link-label{margin-top:auto;font-size:.9rem;font-weight:650}.ph-topic-card:hover{border-color:var(--ph-forest)}
.ph-empty-related{padding:24px;border:1px dashed #a5afa5;border-radius:12px;color:var(--ph-muted);max-width:none;background:var(--ph-paper)}
.ph-method{padding:40px;border-block:1px solid var(--ph-gold);background:#eeeadd;display:grid;grid-template-columns:1fr 1fr;gap:48px}.ph-method h2{margin:0 0 16px}.ph-method p{margin:0;color:var(--ph-muted)}.ph-method-principles{display:grid;gap:20px}.ph-method-principles h3{margin:0 0 4px;font-size:1rem}.ph-method-principles p{font-size:.9rem}
/* Archive controls are GET forms; back/forward and pagination preserve state. */
.ph-page-intro{padding:40px 0 32px;margin-block:0!important;border-bottom:1px solid var(--ph-line)}.ph-page-intro h1{margin:8px 0 16px}.ph-page-intro>p:first-child{font-size:.85rem;color:var(--ph-muted);margin:0}.ph-page-intro .wp-block-search{max-width:760px}
.ph-archive-form{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;gap:16px;align-items:end;max-width:960px;margin-top:24px}.ph-archive-form label{display:flex;flex-direction:column;gap:8px;font-size:.85rem;font-weight:650}
.ph-archive-form input,.ph-archive-form select{width:100%;min-width:0;min-height:52px;padding:12px 16px;border:1px solid #a5afa5;border-radius:8px;background:var(--ph-paper);color:var(--ph-ink);font-size:.95rem}
.ph-archive-form button{min-height:52px;padding:12px 28px;border:0;border-radius:8px;background:var(--ph-forest);color:var(--ph-paper);font-weight:700}
.ph-archive-tools{margin-block:24px!important}.ph-effect-list{display:flex;flex-wrap:wrap;gap:8px 16px}.ph-effect-list a{display:flex;gap:8px;align-items:center;padding:8px 12px;min-height:44px;border:1px solid var(--ph-line);border-radius:8px;background:var(--ph-paper);font-size:.88rem;text-decoration:none}.ph-effect-list span{font-size:.8rem;color:var(--ph-muted)}.ph-effect-list a:hover{border-color:var(--ph-forest);background:var(--ph-soft-green)}
.ph-result-count{margin-block:0 24px;color:var(--ph-muted);font-size:.9rem}.ph-archive-results{margin-top:32px!important}.ph-empty-state{min-height:240px;padding:40px;border:1px solid var(--ph-line);border-radius:var(--ph-radius);background:var(--ph-paper)}.ph-empty-state h2,.ph-empty-state h3{margin-top:0}.ph-empty-state p{color:var(--ph-muted)}.ph-empty-state a{display:inline-flex;align-items:center;min-height:44px}
.wp-block-query-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-block:40px}.wp-block-query-pagination a,.wp-block-query-pagination-numbers span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid var(--ph-line);border-radius:8px;background:var(--ph-paper);text-decoration:none}.wp-block-query-pagination .current{background:var(--ph-forest);color:var(--ph-paper);border-color:var(--ph-forest)}.wp-block-query-pagination .dots{border:0;background:transparent}
/* Article layout remains compatible with existing prose and editorial fields. */
.ph-breadcrumbs{margin-block:24px!important;font-size:.85rem}.ph-breadcrumbs p{margin:0}.ph-breadcrumbs a{display:inline-flex;min-height:44px;align-items:center}
.ph-article-header{margin-block:32px!important}.ph-herb-hero{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.ph-article-identity{min-width:0}.ph-article-title{margin:12px 0!important;line-height:1.5}.ph-article-excerpt{color:var(--ph-muted);font-size:1.05rem;line-height:2}.ph-article-excerpt p{margin-block:0}.ph-article-identity>.wp-block-post-terms{font-size:.85rem}.ph-article-meta{font-size:.8rem;color:var(--ph-muted);margin-top:20px}.ph-article-image{margin:0!important}.ph-article-image img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--ph-radius)}
.ph-article-layout{display:grid;grid-template-columns:minmax(0,760px) 256px;gap:64px;justify-content:space-between;align-items:start}.ph-article-main{min-width:0}.ph-article-aside{position:sticky;top:120px;min-width:0}.ph-contents{padding:24px;background:var(--ph-paper);border:1px solid var(--ph-line);border-radius:12px}.ph-contents h2{margin:0 0 12px;font-size:1rem}.ph-contents ul{list-style:none;margin:0;padding:0}.ph-contents a{display:block;min-height:44px;padding:8px 0;font-size:.9rem;border-top:1px solid var(--ph-line);text-decoration:none}.ph-contents a:hover{text-decoration:underline}
.wp-block-post-content{line-height:2.1;overflow-wrap:break-word}.wp-block-post-content h2{margin-block:48px 20px;font-size:1.8rem;padding-bottom:12px;border-bottom:1px solid var(--ph-line)}.wp-block-post-content h2:first-child{margin-top:0}.wp-block-post-content h3{margin-block:32px 16px;font-size:1.3rem}.wp-block-post-content p{margin-block:0 24px}.wp-block-post-content a,.ph-detail-panel a{text-decoration:underline}.wp-block-post-content ul,.wp-block-post-content ol{padding-inline-start:24px}.wp-block-post-content li{margin-block:8px}.wp-block-post-content figure{max-width:100%;margin-inline:0}.wp-block-post-content img{border-radius:12px}.wp-block-post-content figcaption{font-size:.85rem;color:var(--ph-muted)}
.wp-block-post-content pre{max-width:100%;overflow:auto;direction:ltr;text-align:left}.wp-block-post-content .wp-block-table{overflow-x:auto}.wp-block-post-content table{width:100%;border-collapse:collapse}.wp-block-post-content th,.wp-block-post-content td{padding:12px;border:1px solid var(--ph-line);text-align:start}.wp-block-post-content blockquote{margin-inline:0;padding:20px;border-inline-start:3px solid var(--ph-sage);background:var(--ph-soft-green)}
.ph-facts-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-block:32px}.ph-fact{min-width:0;border-bottom:1px solid var(--ph-line);padding:16px 0}.ph-fact dt{font-size:.85rem;color:var(--ph-muted);margin-bottom:8px}.ph-fact dd{margin:0;overflow-wrap:anywhere}.ph-fact bdi{font-family:Georgia,serif;font-style:italic}
.ph-detail-panel{margin-block:32px;padding-block:24px;border-top:1px solid var(--ph-gold);overflow-wrap:anywhere}.ph-detail-panel h2{margin:0 0 16px;font-size:1.5rem}.ph-detail-panel p{margin:0}.ph-source-list{margin:0;padding-inline-start:24px;line-height:1.9;font-size:.92rem}.ph-source-list li{padding-block:8px}.ph-source-list a{overflow-wrap:anywhere;word-break:break-word}.ph-review-note{font-size:.85rem;color:var(--ph-muted)}
.ph-safety,.ph-detail-safety{padding:24px;border:1px solid var(--ph-warning-line);border-inline-start:3px solid var(--ph-danger);border-radius:12px;background:var(--ph-warning);color:var(--ph-warning-text)}.ph-safety{font-size:.9rem;margin-top:24px}.ph-safety p{margin:0}.ph-detail-safety h2{color:var(--ph-warning-text)}.ph-related-section{margin-top:48px}.ph-related-section>h2{font-size:1.5rem}.ph-article-main .ph-related-grid{grid-template-columns:1fr 1fr}
.ph-info-card,.ph-quiet-panel,.is-style-ph-soft-panel{padding:24px;border:1px solid var(--ph-line);border-radius:var(--ph-radius);background:var(--ph-paper)}.is-style-ph-rounded img{border-radius:var(--ph-radius)}.ph-page-content{max-width:var(--ph-content-width);margin-inline:auto}.ph-eyebrow{color:var(--ph-muted);font-size:.85rem}
.wp-block-button__link{display:inline-flex;justify-content:center;align-items:center;min-height:48px;padding:12px 24px;border-radius:8px;font-weight:650}.wp-block-buttons{gap:12px}
/* Footer follows the same page width; no default list bullets or narrow inner rail. */
.wp-site-blocks>footer{margin-top:0}.ph-footer{margin:0;padding:48px 24px 24px;background:var(--ph-deep);color:var(--ph-paper)}.ph-footer>.alignwide{max-width:var(--ph-wide-width);margin-inline:auto}.ph-footer-grid{display:grid;grid-template-columns:1.3fr .65fr 1fr;gap:64px}.ph-footer h3,.ph-footer a{color:var(--ph-paper)}.ph-footer h3{font-size:1rem;margin:0 0 16px}.ph-footer p{font-size:.9rem;color:#dae3d7;margin:0;line-height:2}.ph-footer .wp-block-site-title{font-size:1.65rem;font-weight:850;margin-bottom:16px}.ph-footer .wp-block-site-title a{text-decoration:none}.ph-footer-links p{margin:0}.ph-footer-links a{display:inline-flex;align-items:center;min-height:44px}.ph-footer-bottom{padding-top:24px;margin-top:32px!important;border-top:1px solid #536e59;font-size:.8rem!important}
@media(max-width:1100px){
 .ph-header-inner{grid-template-columns:1fr auto 224px;gap:24px;min-height:80px}
 .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex!important}
 .ph-article-layout{grid-template-columns:minmax(0,1fr) 224px;gap:32px}
 .ph-featured-herbs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:782px){
 .admin-bar .wp-site-blocks>header{top:46px}
 .wp-site-blocks>main{width:calc(100% - 40px);padding-bottom:48px}
 .ph-header-shell{padding-inline:20px}.ph-header-inner{grid-template-columns:1fr auto;min-height:72px;gap:16px}
 .ph-brand .wp-block-site-title{font-size:1.4rem}.ph-brand .wp-block-site-tagline{display:none}
 .ph-header-search{display:none}.ph-header-inner>.wp-block-navigation{justify-self:end}
 .ph-hero{margin-block:20px!important;grid-template-columns:1fr}.ph-hero-copy{padding:28px 24px}.ph-hero h1{font-size:clamp(1.9rem,7vw,2.75rem);max-width:21ch}.ph-hero-media{min-height:0;height:220px;grid-row:2}.ph-hero-media img{object-position:center 55%}
 .ph-hero-copy>p{font-size:.95rem}.ph-hero .wp-block-search{margin-top:24px}.ph-hero .wp-block-search__input{padding-inline:8px!important;font-size:.85rem}.ph-hero .wp-block-search__button{padding-inline:12px!important;font-size:.85rem}
 .ph-section{margin-block:48px}.ph-section-heading{gap:16px;margin-bottom:24px}.ph-section-heading h2{font-size:1.45rem}.ph-section-heading a{font-size:.8rem}
 .ph-entry-grid{grid-template-columns:1fr;gap:0;margin-block:20px 48px!important}.ph-entry{grid-template-columns:32px 1fr;padding-block:16px}.ph-entry p{margin:4px 0}.ph-entry p:last-child{grid-column:2}.ph-entry .ph-entry-number{font-size:1.5rem}
 .ph-topic-grid{grid-template-columns:1fr 1fr;gap:24px}.ph-related-grid{grid-template-columns:1fr 1fr;gap:16px}
 .ph-method{grid-template-columns:1fr;padding:24px;gap:24px}.ph-method-principles{gap:16px}
 .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px}
 .ph-page-intro{padding-top:24px}.ph-page-intro h1{font-size:2.25rem}.ph-archive-form{grid-template-columns:1fr auto;gap:12px}.ph-archive-form label:first-child{grid-column:1/-1}.ph-archive-form button{padding-inline:24px}
 .ph-herb-hero{grid-template-columns:1fr;gap:24px}.ph-article-identity>.ph-scientific-name{font-size:1.15rem}.ph-article-image img{max-height:440px}.ph-article-layout{display:flex;flex-direction:column;gap:32px}.ph-article-aside{position:static;order:-1;width:100%}.ph-article-main{width:100%}.ph-article-aside .ph-safety{display:none}.ph-contents{padding:16px 20px}.ph-contents ul{display:flex;flex-wrap:wrap;gap:4px 20px}.ph-contents a{border-top:0}.ph-contents h2{margin-bottom:4px}.ph-article-meta{margin-top:16px}.ph-article-header{margin-block:16px 32px!important}.ph-breadcrumbs{margin-block:16px 0!important}
 .ph-footer-grid{grid-template-columns:1fr 1fr;gap:32px}.ph-footer-brand{grid-column:1/-1}.ph-footer{padding:32px 20px 24px}.ph-footer-grid p{font-size:.85rem}
}
@media(max-width:520px){
 .ph-hero-copy{padding:24px 20px}.ph-hero h1{font-size:1.9rem}.ph-hero-media{height:180px}
 .ph-topic-grid{gap:12px 20px}.ph-topic-card h2{font-size:1.1rem}.ph-topic-card p{font-size:.85rem}.ph-topic-card{padding-block:16px}
 .ph-related-body{padding:14px}.ph-related-body h3{font-size:1.05rem}.ph-related-body>p{font-size:.85rem}.ph-related-body .ph-scientific-name{font-size:.85rem}
 .ph-section-heading{align-items:start;flex-wrap:wrap;gap:8px}.ph-section-heading h2{flex:1 1 200px}.ph-section-heading p{align-self:center}
 .wp-block-post-template.is-layout-grid{grid-template-columns:minmax(0,1fr)!important}
 .ph-card .wp-block-post-title{margin-inline:20px;font-size:1.25rem}.ph-facts-grid{grid-template-columns:1fr;gap:0}.ph-article-main .ph-related-grid{grid-template-columns:1fr}.ph-detail-panel h2{font-size:1.35rem}.wp-block-post-content h2{font-size:1.5rem}.ph-empty-state{padding:24px}.ph-footer-grid{grid-template-columns:1fr;gap:24px}.ph-footer-brand{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ph-card .wp-block-post-featured-image img,.ph-related-image img{transition:none}.ph-card:hover .wp-block-post-featured-image img,.ph-related-card:hover .ph-related-image img{transform:none}}
.ph-archive-form{grid-template-columns:minmax(240px,1.5fr) minmax(150px,1fr) 150px auto;max-width:none}
.ph-topic-card h3{margin:4px 0 12px;font-size:1.25rem}
@media(max-width:900px){.ph-archive-form{grid-template-columns:1fr 1fr}.ph-archive-form label:first-child{grid-column:1/-1}.ph-archive-form button{align-self:end}}
@media(max-width:520px){.ph-archive-form{grid-template-columns:1fr 1fr;gap:12px}.ph-archive-form button{grid-column:1/-1}.ph-topic-card h3{font-size:1.1rem}}
.ph-discovery-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px}.ph-discovery-grid>div{min-width:0}.ph-discovery-grid h2{margin:0 0 16px}.ph-discovery-grid>div>p{color:var(--ph-muted)}.ph-list-story{padding-block:20px;border-bottom:1px solid var(--ph-line)}.ph-list-story h3{margin:0 0 8px;font-size:1.1rem}.ph-list-story .ph-content-type-label{margin:0}.ph-list-story .wp-block-post-excerpt{margin-top:8px;font-size:.9rem;color:var(--ph-muted)}.ph-discovery-grid .ph-empty-state{min-height:0;padding:20px}.ph-institutional-links{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:24px}.ph-institutional-links a{display:inline-flex;align-items:center;min-height:44px;font-size:.85rem}.ph-article-meta{display:flex;flex-wrap:wrap;gap:8px 24px}.ph-article-meta>*{margin:0}.ph-article-aside .ph-contents+.ph-contents{margin-top:16px}.ph-media-provenance{font-size:.8rem;color:var(--ph-muted);margin-top:12px}.ph-hero .ph-media-provenance{color:#dae3d7}
@media(max-width:782px){.ph-discovery-grid{grid-template-columns:1fr;gap:40px}.ph-article-aside .ph-contents+.ph-contents{display:none}}
.ph-search-types{margin-bottom:24px}.ph-search-types a[aria-current=page]{background:var(--ph-forest);border-color:var(--ph-forest);color:var(--ph-paper)}
.ph-card .wp-block-post-title a,.ph-related-body h3 a{display:inline-flex;align-items:center;min-height:44px}
.ph-mobile-search{display:none}
@media(max-width:782px){.ph-header-inner{grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}.ph-header-inner>.wp-block-navigation{grid-column:3;grid-row:1}.ph-mobile-search{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;grid-column:2;grid-row:1;color:var(--ph-forest)}}
/* Sparse real data should not leave an artificial empty fourth featured column. */
.ph-featured-herbs{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.ph-topic-grid:has(>.ph-topic-card:only-child){grid-template-columns:1fr}
.ph-home .ph-related-body>p:not(.ph-scientific-name){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
@media(max-width:1100px){.ph-featured-herbs{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep mobile form text readable and prevent focus zoom in mobile Safari. */
@media(max-width:782px){.wp-block-search__input,.ph-hero .wp-block-search__input,.ph-archive-form input,.ph-archive-form select{font-size:16px}}
