/* Keep intrinsic text and images from widening a grid track behind hidden overflow. */
body.fh-editorial-design main :is(.page-shell,.article-detail,.info-page,.editorial-hero-copy,.home-original-copy,.home-original-cards,.home-farmers-intro){min-inline-size:0;max-inline-size:100%}
body.fh-editorial-design :is(.home-original-panel,.home-original-cards,.home-farmer-grid,.home-service-grid,.listing-grid)>*{min-inline-size:0;max-inline-size:100%}
body.fh-editorial-design .home-original-panel{overflow:visible}
body.fh-editorial-design .home-original-copy h2{max-inline-size:100%}
body.fh-editorial-design .category-fv-media img{transform:none}
body.fh-editorial-design .fh-note-card :is(strong,.card-title,.fh-note-label){overflow-wrap:anywhere;word-break:normal}
body.fh-editorial-design .fh-note-heading{box-sizing:border-box}
body.fh-editorial-design main :is(iframe,video){max-inline-size:100%}
body.fh-editorial-design .article-body :is(figure,img){max-inline-size:100%}
body.fh-editorial-design .article-body :is(pre,.wp-block-table){max-inline-size:100%;overflow-x:auto}
body.fh-editorial-design :is(.article-body,.info-prose) :is(td,th,dd){overflow-wrap:anywhere}
body.fh-editorial-design .fh-embedded-article{min-inline-size:0;max-inline-size:100%;--ink:#26352c;--green:#35583b;--line:#dce2d9;--soft:#f4f5f0;--muted:#59645c}
body.fh-editorial-design .article-body .fh-embedded-article :is(.wrap,.intro,.grid,.vhead,.quick,.variety,.facts,.detail){min-inline-size:0;max-inline-size:100%;box-sizing:border-box}
body.fh-editorial-design .article-body .fh-embedded-article .wrap{width:100%;padding-inline:0;margin-inline:auto}
body.fh-editorial-design .article-body .fh-embedded-article .intro{grid-template-columns:minmax(0,1fr);gap:1.5rem}
body.fh-editorial-design .article-body .fh-embedded-article .fh-embedded-title{font-size:1.65rem;line-height:1.75;margin-block:.75rem 1rem;border:0;padding:0;letter-spacing:.01em}
body.fh-editorial-design .article-body .fh-embedded-article .vhead{flex-wrap:wrap;gap:.75rem}
body.fh-editorial-design .article-body .fh-embedded-article .variety .tag{white-space:normal;overflow-wrap:anywhere}
body.fh-editorial-design .article-body .fh-embedded-article :is(.facts,.detail){grid-template-columns:minmax(6rem,.3fr) minmax(0,1fr)}
body.fh-editorial-design .article-body .fh-embedded-article .scores{grid-template-columns:repeat(auto-fit,minmax(6rem,1fr));gap:.75rem}
body.fh-editorial-design .article-body .fh-embedded-article .score{font-size:1rem;line-height:1.7}
body.fh-editorial-design .article-body .fh-embedded-article .score b{font-size:1.4rem}
body.fh-editorial-design .article-body .fh-embedded-article :is(.gallery-view,.producer-photo){max-width:100%;height:auto}
@media(max-width:70rem){
 body.fh-editorial-design :is(.home-original-panel,.home-farmers-panel,.home-work-panel){grid-template-columns:minmax(0,1fr)}
 body.fh-editorial-design .home-original-copy{padding:1.5rem}
}
/* A tablet has room for two comfortable cards, rather than one oversized photo. */
@media(min-width:40rem) and (max-width:70rem){
 body.fh-editorial-design :is(.home-service-grid,.home-original-cards,.home-farmer-grid,.listing-grid,.info-card-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
 body.fh-editorial-design .home-farmer-more{grid-column:1/-1;min-height:0}
 body.fh-editorial-design .home-farmer-more>a{min-height:5rem;padding:1rem;display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;align-items:center}
 body.fh-editorial-design .fh-start-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
 body.fh-editorial-design .fh-start-actions a{justify-content:center;text-align:center}
 body.fh-editorial-design .fh-help-links{display:flex;flex-wrap:wrap}
 body.fh-editorial-design .fh-help-links a{width:auto;flex:1 1 auto}
 body.fh-editorial-design .home-work-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:40rem) and (max-width:56rem){
 html:not(.is-large-text) body.fh-editorial-design .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto auto;gap:.75rem;padding-block:.75rem}
 html:not(.is-large-text) body.fh-editorial-design .site-header .brand{grid-column:1;grid-row:1}
 html:not(.is-large-text) body.fh-editorial-design .site-header .text-size-control{grid-column:2;grid-row:1;justify-self:end}
 html:not(.is-large-text) body.fh-editorial-design .site-header .menu-toggle{grid-column:3;grid-row:1;width:auto}
 body.fh-editorial-design .home-hero .home-hero-inner h1{font-size:2.5rem;line-height:1.65}
}
@media(max-width:39.999rem){
 body.fh-editorial-design :is(.home-service-grid,.home-original-cards,.home-farmer-grid,.listing-grid,.info-card-grid){grid-template-columns:minmax(0,1fr)}
 body.fh-editorial-design .home-original-copy{padding:1.1rem}
 body.fh-editorial-design .home-original-cards{padding:1rem;gap:1rem}
 body.fh-editorial-design .home-original-card.fh-note-card{padding:.85rem}
 body.fh-editorial-design .home-section,body.fh-editorial-design .home-manifesto{padding-block:2.5rem;padding-inline:1rem}
 body.fh-editorial-design .home-work-panel{padding:1.1rem}
 body.fh-editorial-design .home-cta{padding:2.5rem 1rem}
 body.fh-editorial-design main .editorial-hero{padding-block:1.25rem;margin-bottom:1.5rem}
 body.fh-editorial-design main :is(.info-card-grid a,.info-note,.info-next-step,.fh-contact-help){padding:1rem}
 body.fh-editorial-design .fh-note-article{padding:.85rem}
 body.fh-editorial-design .fh-note-article .article-detail-header h1{font-size:1.5rem;line-height:1.85}
 body.fh-editorial-design .article-detail .article-toc{padding:1rem}
 body.fh-editorial-design main :is(.pms-form,.fh-trade-form){padding:1rem}
 body.fh-editorial-design .article-body .fh-embedded-article :is(.facts,.detail){display:block}
 body.fh-editorial-design .article-body .fh-embedded-article dt{margin:1rem 0 .25rem;font-weight:600}
 body.fh-editorial-design .article-body .fh-embedded-article dd{margin:0 0 1rem}
 body.fh-editorial-design .fh-return-nav{display:grid;grid-template-columns:minmax(0,1fr)}
}
/* Market product archive. Keep shared listing layouts and large-text mode intact. */
html:not(.is-large-text) body.post-type-archive-fh_product .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
    html:not(.is-large-text) body.post-type-archive-fh_product .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 39.999rem) {
    html:not(.is-large-text) body.post-type-archive-fh_product .listing-grid {
        gap: .75rem;
    }
}
/* Text enlargement takes precedence over the denser tablet layout. */
.is-large-text body.fh-editorial-design :is(.home-service-grid,.home-original-cards,.home-farmer-grid,.listing-grid,.info-card-grid,.home-work-list){grid-template-columns:minmax(0,1fr)}
.is-large-text body.fh-editorial-design .fh-start-actions{grid-template-columns:minmax(0,1fr)}
.is-large-text body.fh-editorial-design .article-body .fh-embedded-article :is(.facts,.detail){display:block}
.is-large-text body.fh-editorial-design .article-body .fh-embedded-article .scores{grid-template-columns:minmax(0,1fr)}
@media(max-height:34rem) and (max-width:70rem){
 body.fh-editorial-design .site-header{position:relative;top:auto}
 body.fh-editorial-design .site-header .primary-nav{top:0!important;bottom:0;max-height:100dvh}
 body.fh-editorial-design .site-header .menu-backdrop:not([hidden]){inset:0!important}
 body.fh-editorial-design .text-size-panel{top:0;max-height:100dvh}
}

body.fh-editorial-design .text-size-panel .fh-text-size-close{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;margin:0 0 .75rem;padding:.5rem .75rem;border:1px solid #768571;border-radius:.3rem;background:#fff;color:#26352c;font:inherit;font-size:1rem;line-height:1.6;white-space:normal}

/* Shared secondary-page width: match the Media archive container and gutters.
   Keep one value for page, archive, article, product and producer layouts. */
body.fh-editorial-design{--fh-content-width:calc(var(--max-width) - 2rem)}
body.fh-editorial-design main:is(.inner-main,.fh-producer,.fh-trade-request){width:100%;max-width:var(--max-width);max-inline-size:var(--max-width);margin-inline:auto;padding-inline:1rem}
body.fh-editorial-design main:is(.inner-main,.fh-producer,.fh-trade-request) :is(.page-shell,.article-detail,.info-prose,.fhmp-page,.fhmp-editorial,.fh-producer-intro,.fh-producer-section){width:100%;max-width:min(100%,var(--fh-content-width));max-inline-size:min(100%,var(--fh-content-width));margin-inline:auto}

body.fh-editorial-design main .article-detail>article.article{width:100%;max-width:100%;max-inline-size:100%}

/* Authored paragraph caps must not create a second, narrower reading rail. */
body.fh-editorial-design:not(.home) main .article-detail #article-reading{inline-size:calc(100% - 2 * (var(--fh-article-inset,1.5rem) + 1px));max-width:none;max-inline-size:none}
body.fh-editorial-design:not(.home) main .article-body>:where(p,ul,ol,blockquote,h2,h3,figure){width:100%;max-width:100%;max-inline-size:100%;margin-inline:0}

/* Wrapped category breadcrumbs occupy their own row on touch layouts. */
@media(max-width:56rem){
 body.fh-editorial-design:not(.home) main .listing-hero.category-fv{grid-template-rows:auto 1fr}
 body.fh-editorial-design:not(.home) main .category-fv .category-fv-breadcrumb{position:relative;inset:auto;width:100%;max-width:100%;max-inline-size:100%;padding:1.25rem var(--fh-category-gutter,1.25rem) 0}
 body.fh-editorial-design:not(.home) main .category-fv .category-fv-breadcrumb .breadcrumb{margin:0;padding-block:0}
 body.fh-editorial-design:not(.home) main .listing-hero.category-fv .category-fv-copy{padding-top:1.5rem}
}

/* Header links share a quiet hover state; no full-cell underline. */
body.fh-editorial-design .site-header .primary-nav .nav>li>a::after{display:none}
body.fh-editorial-design .site-header .primary-nav .nav>li>a:is(:hover,:focus-visible){background:#edf2e9;text-decoration:none}

/* Centre direct navigation labels within the equal-width header cells. */
body.fh-editorial-design .site-header .primary-nav .nav>li>a{justify-content:center;text-align:center}

/* No.20: article prose uses natural Japanese wrapping on the shared reading rail. */
body.fh-editorial-design main .article-body :is(p,li){word-break:normal!important;line-break:strict;text-wrap:wrap;text-align:start}
body.fh-editorial-design main .article-body :is(p,li) wbr[data-fh-break]{display:none}
body.fh-editorial-design main .article-body :is(figure,.wp-caption){max-width:100%;margin-inline:auto}
body.fh-editorial-design main .article-body img.fh-reading-landscape{display:block;width:100%;max-width:100%;height:auto;margin-inline:auto}
body.fh-editorial-design main .article-body img.fh-reading-portrait{display:block;max-width:100%;height:auto;margin-inline:auto}
/* No.22: one spacing scale for the mobile home page. */
@media(max-width:39.999rem){
 body.home.fh-editorial-design{--fh-home-section-space:2rem;--fh-home-heading-space:1.25rem;--fh-home-card-gap:1rem}
 body.home.fh-editorial-design :is(.home-section,.home-manifesto,.home-cta){padding-block:var(--fh-home-section-space)}
 body.home.fh-editorial-design #home-manifesto .home-manifesto-inner{gap:var(--fh-home-heading-space)}
 body.home.fh-editorial-design :is(.home-services-heading,.home-section-heading-row){margin-bottom:var(--fh-home-heading-space);gap:1rem}
 body.home.fh-editorial-design :is(.home-information-grid,.home-farmers-panel,.home-work-panel){gap:var(--fh-home-section-space)}
 body.home.fh-editorial-design :is(.home-service-grid,.home-original-cards,.home-farmer-grid,.home-audience-grid,.home-work-list){gap:var(--fh-home-card-gap)}
 body.home.fh-editorial-design .home-original-panel{min-height:0}
 body.home.fh-editorial-design :is(.home-original-copy,.home-farmers-intro)>p:last-child{margin-bottom:0}
}

/* Stack the service heading without carrying the desktop flex basis as height. */
@media(max-width:56rem){
 body.home.fh-editorial-design .home-services-heading{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-items:start;gap:1rem;text-align:start}
 body.home.fh-editorial-design .home-services-heading>p{flex:none;width:100%;max-width:100%;padding:0;border:0;margin:0;text-align:start}
}
