/* Final responsive safeguards across the editorial templates. The 1536px
   reference composition is intentionally left to reference.css. */
.pcw-ref-hero-actions form,.pcw-ref-fresh-card,.pcw-ref-topic,.pcw-ref-species-card,
.pcw-ref-blog-card,.pcw-profile-hero-copy,.pcw-partner-hero-copy{min-width:0}
.pcw-entry-content iframe,.pcw-entry-content video,.pcw-entry-content embed,
.pcw-entry-content object,.pcw-profile-content iframe,.pcw-profile-content video{max-width:100%}
.pcw-entry-content,.pcw-profile-content,.pcw-partner-page{overflow-wrap:break-word}
.pcw-partner-page a,.pcw-profile-content a{overflow-wrap:anywhere}

/* Keep the full desktop menu within smaller laptop screens. */
@media (min-width:1200px) and (max-width:1499px){
 .pcw-brand-logo{width:clamp(310px,26vw,360px)}
 .primary-nav{margin-left:auto}
 .primary-nav ul{gap:clamp(9px,1vw,16px)}
 .primary-nav a{font-size:clamp(11px,.95vw,13px)}
 .pcw-header-actions{margin-left:12px}
}
@media (min-width:761px) and (max-width:1199px){
 .menu-toggle{display:grid}
 .primary-nav{display:none;position:absolute;top:calc(100% - 1px);left:24px;right:24px;z-index:80;margin:0;padding:17px;border:1px solid #d9e7da;border-radius:0 0 15px 15px;background:#fffdf8;box-shadow:0 18px 32px rgba(16,58,39,.15)}
 .primary-nav.is-open{display:block}
 .primary-nav ul{display:grid;gap:0}
 .primary-nav a{display:block;padding:10px 12px;border:0;font-size:14px;white-space:normal}
 .primary-nav .pcw-menu .sub-menu{display:block;position:static;min-width:0;margin:0 0 6px 16px;padding:0 0 0 12px;border:0;border-left:2px solid #cbdcca;border-radius:0;background:transparent;box-shadow:none}
 .pcw-header-actions{margin-left:auto}
 .pcw-ref-hero-actions{flex-wrap:wrap}
 .pcw-ref-hero-actions form{width:min(100%,390px)}
}
@media (max-width:1199px){
 .primary-nav{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
}

/* Tablet: the flying bird occupies its own space next to the trust copy. */
@media (min-width:761px) and (max-width:1024px){
 .pcw-ref-trust{height:auto;min-height:0;padding:45px 26px 55px}
 .pcw-ref-trust-inner{width:calc(100% - 285px);margin:0;padding:0;text-align:left}
 .pcw-ref-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 22px;width:100%}
 .pcw-ref-trust-item,.pcw-ref-trust-item:last-child{max-width:none}
 .pcw-ref-trust-bird{width:min(29vw,270px);height:320px;top:auto;right:-12px;bottom:0}
}
@media (min-width:761px) and (max-width:1080px){
 .pcw-hero-article{grid-template-columns:1fr}
 .pcw-hero-image-wrap,.pcw-hero-image{min-height:280px;max-height:370px}
}
@media (min-width:761px) and (max-width:900px){
 .pcw-ref-feature{height:auto;display:flex;flex-direction:column}
 .pcw-ref-feature-media{height:390px}
 .pcw-ref-feature-copy{padding:45px 36px 55px}
 .pcw-profile-hero,.pcw-partner-hero{grid-template-columns:1fr}
 .pcw-profile-hero-copy{padding:47px 42px}
 .pcw-profile-hero-figure,.pcw-profile-no-image{min-height:380px}
 .pcw-profile-hero-figure .pcw-profile-hero-photo{max-height:340px}
 .pcw-partner-hero-art{min-height:390px}
}

@media (max-width:760px){
 .primary-nav{max-height:calc(100dvh - 82px)}
 .pcw-ref-trust{padding-bottom:195px}
 .pcw-ref-trust-bird{width:185px;height:185px;right:-9px;bottom:-12px}
 .pcw-ref-newsletter::before,.pcw-ref-newsletter::after{width:230px;height:240px;bottom:-85px;opacity:.42}
 .pcw-ref-footer-bottom nav{gap:12px 20px}
 .pcw-ref-footer-bird{max-width:90vw}
 .pcw-entry-content .wp-block-columns:not(.is-not-stacked-on-mobile){flex-wrap:wrap;gap:18px}
 .pcw-entry-content .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column{flex-basis:100%;min-width:0}
}
@media (max-width:690px){
 .pcw-species-entry .pcw-species-guide-link{display:none}
 .pcw-species-entry:has(.pcw-species-status) .pcw-species-entry-name{padding-right:0}
 .pcw-species-entry .pcw-species-status{position:static;display:block;width:max-content;max-width:calc(100% - 24px);margin:0 12px 9px auto}
}
@media (max-width:420px){
 .pcw-ref-fresh-card{height:auto}
 .pcw-ref-fresh-card a{display:flex;flex-direction:column}
 .pcw-ref-fresh-photo{height:165px}
 .pcw-ref-fresh-body{min-height:170px}
 .pcw-ref-blog-grid{grid-template-columns:1fr}
 .pcw-ref-blog-card{height:auto}
 .pcw-ref-blog-photo{height:175px}
 .pcw-ref-blog-body{min-height:165px}
 .pcw-ref-section-heading h2{font-size:clamp(30px,8.8vw,37px)}
 .pcw-ref-feature-copy h2{font-size:clamp(37px,11vw,49px)}
 .breadcrumbs{overflow-wrap:anywhere}
}

/* Compact navigation: the hub stays a link, its separate caret expands subtopics. */
@media(max-width:1199px){
 .primary-nav .pcw-menu>li.pcw-has-subtopics{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:start}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>a{grid-column:1;grid-row:1}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>.pcw-submenu-toggle{grid-column:2;grid-row:1;display:grid;place-items:center;width:42px;min-height:40px;padding:0;border-radius:8px}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>.pcw-submenu-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;transition:transform .2s ease}
 .primary-nav .pcw-menu>li.pcw-has-subtopics.is-submenu-open>.pcw-submenu-toggle svg{transform:rotate(180deg)}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>.sub-menu{grid-column:1/-1;position:static;display:none;visibility:visible;opacity:1;transform:none;pointer-events:auto;min-width:0;width:auto;margin:0 0 6px 15px;padding:2px 0 4px 11px;border:0;border-left:2px solid #cbdcca;border-radius:0;background:transparent;box-shadow:none}
 .primary-nav .pcw-menu>li.pcw-has-subtopics.is-submenu-open>.sub-menu{display:block}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>.sub-menu li{display:block}
 .primary-nav .pcw-menu>li.pcw-has-subtopics>.sub-menu a{display:block;padding:9px 11px;border:0;white-space:normal;font-size:13px;line-height:1.35}
}
