/*
Theme Name: Garrards Replica
Theme URI: https://www.garrards.com.au/
Author: Garrards Pty Ltd
Author URI: https://www.garrards.com.au/
Description: Layout-faithful rebuild of the previous Garrards website – boxed page, logo left with contact details and search top right, horizontal tab navigation, featured box with a right-hand spotlight column, three home columns, and a left submenu column on inner pages – rendered with modern, responsive, accessible markup and styling.
Version: 1.8.6
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garrards
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, three-columns, right-sidebar, left-sidebar
*/

/* ---------- Design tokens ---------- */
:root{
  --r-red:#8c131a;          /* brand maroon (nav active, headings rule) */
  --r-red-dark:#6b0a10;
  --r-red-bright:#c00808;
  --r-orange:#bf5700;
  --r-ink:#22262a;
  --r-body:#41474d;
  --r-muted:#6d757c;
  --r-line:#dfe3e6;
  --r-line-soft:#eef1f3;
  --r-tab:#f2f3f4;          /* inactive tab */
  --r-tab-hover:#e6e8ea;
  --r-page:#ffffff;         /* the boxed page */
  --r-ground:#e9e7e5;       /* around the box (old site used deep maroon) */
  --r-radius:6px;
  --r-shadow:0 1px 2px rgba(20,20,30,.06),0 8px 28px rgba(20,20,30,.09);
  --r-shadow-sm:0 1px 3px rgba(20,20,30,.08);
  --r-font:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --r-font-head:"Segoe UI Semibold","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --r-page-width:1180px;
  --r-gap:1.5rem;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
/* The HTML `hidden` attribute is only display:none in the browser's own
   stylesheet, so ANY author rule that sets display (the flex on .branch-card,
   for one) silently defeats it and scripts that hide things stop working. */
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--r-font);font-size:1rem;line-height:1.6;color:var(--r-body);
     background:var(--r-ground);
     background-image:linear-gradient(180deg,var(--r-red) 0,var(--r-red) 190px,var(--r-ground) 190px);
     background-repeat:no-repeat}
img{max-width:100%;height:auto;display:block}
a{color:var(--r-red);text-decoration:none;transition:color .15s}
a:hover{color:var(--r-red-dark);text-decoration:underline}
h1,h2,h3,h4,h5,h6{font-family:var(--r-font-head);font-weight:600;line-height:1.22;margin:0 0 .55em;color:var(--r-ink)}
h1{font-size:clamp(1.6rem,3vw,2.15rem)}
h2{font-size:clamp(1.3rem,2.2vw,1.7rem)}
h3{font-size:1.15rem}
p{margin:0 0 1.05em}
figure{margin:0 0 1.25rem}
figcaption{font-size:.85rem;color:var(--r-muted);margin-top:.35rem}
blockquote{border-left:4px solid var(--r-red);margin:1.25rem 0;padding:.5rem 1.1rem;background:#fafafa}
table{border-collapse:collapse;width:100%;margin:0 0 1.25rem}
th,td{border:1px solid var(--r-line);padding:.5rem .7rem;text-align:left;vertical-align:top}
th{background:#f6f7f8;color:var(--r-ink)}
hr{border:0;border-top:1px solid var(--r-line);margin:1.75rem 0}
code,pre{font-family:Consolas,Menlo,monospace;font-size:.9em}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link{position:absolute;left:-999px;top:0;background:var(--r-red);color:#fff;padding:.5rem 1rem;z-index:1000}
.skip-link:focus{left:0}

.button,.wp-block-button__link,button,input[type=submit]{display:inline-block;background:var(--r-red);color:#fff;border:0;border-radius:4px;padding:.5rem 1rem;font:inherit;font-weight:600;font-size:.92rem;cursor:pointer;text-decoration:none;transition:background .15s}
.button:hover,.wp-block-button__link:hover,button:hover,input[type=submit]:hover{background:var(--r-red-dark);color:#fff;text-decoration:none}
.button--small{padding:.3rem .7rem;font-size:.82rem}
.button--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.8)}
.button--ghost:hover{background:#fff;color:var(--r-red)}
.button--orange{background:var(--r-orange)}
.button--orange:hover{background:#9a4600}
input[type=text],input[type=search],input[type=email],input[type=url],input[type=tel],textarea,select{width:100%;padding:.5rem .7rem;border:1px solid #c8cdd2;border-radius:4px;font:inherit;background:#fff}
input:focus,textarea:focus,select:focus{outline:2px solid var(--r-orange);outline-offset:1px}

/* ---------- Boxed page (old #pageBoundary) ---------- */
.page-box{width:min(100% - 2rem,var(--r-page-width));margin:1.25rem auto 2rem;background:var(--r-page);
          border-radius:var(--r-radius);box-shadow:var(--r-shadow);overflow:hidden}
.page-box__inner{padding:0 clamp(.85rem,2vw,1.6rem)}


/* ---------- Header: logo left, contact + search right ---------- */
.site-header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;
             padding:1rem clamp(.85rem,2vw,1.6rem)}
.site-branding{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
.site-branding img{max-height:74px;width:auto}
.site-branding .site-title{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:1.75rem;letter-spacing:.05em;margin:0;text-transform:uppercase;color:var(--r-ink)}
.site-branding .site-title a{color:inherit;text-decoration:none}
.site-branding .site-tagline{font-family:Georgia,serif;font-style:italic;font-size:.82rem;color:var(--r-muted);margin:0}
.header-right{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;min-width:min(340px,100%)}
.contact-info{display:flex;align-items:center;gap:.6rem;font-size:.95rem;color:var(--r-body)}
.contact-info strong{color:var(--r-red);font-size:1.12rem}
.contact-info a{color:inherit}
.contact-info .social{display:flex;gap:.35rem}
.contact-info .social a{width:26px;height:26px;border-radius:50%;background:var(--r-line-soft);display:grid;place-items:center;font-size:.75rem;font-weight:700;color:var(--r-ink)}
.contact-info .social a:hover{background:var(--r-red);color:#fff;text-decoration:none}
.site-search{width:min(340px,100%)}
.search-form{display:flex;border:1px solid #c8cdd2;border-radius:4px;overflow:hidden;background:#fff}
.search-form input[type=search]{border:0;border-radius:0;padding:.45rem .7rem;font-size:.92rem}
.search-form input:focus{outline:none}
.search-form button{border-radius:0;padding:.45rem .8rem}

/* ---------- Tab navigation (old #navigation) ---------- */
.site-nav{border-bottom:3px solid var(--r-red);padding:0 clamp(.85rem,2vw,1.6rem)}
.site-nav ul{list-style:none;margin:0;padding:0}
.site-nav .menu{display:flex;flex-wrap:wrap;gap:3px;align-items:flex-end}
.site-nav .menu>li{position:relative}
.site-nav .menu>li>a{display:block;padding:.6rem 1.05rem;background:var(--r-tab);color:var(--r-ink);
                     border-radius:5px 5px 0 0;font-weight:600;font-size:.95rem;line-height:1.35;
                     border:1px solid var(--r-line);border-bottom:0;transition:background .15s,color .15s}
.site-nav .menu>li>a:hover{background:var(--r-tab-hover);text-decoration:none}
.site-nav .menu>li.current-menu-item>a,.site-nav .menu>li.current-menu-ancestor>a,.site-nav .menu>li.is-current>a{background:var(--r-red);border-color:var(--r-red);color:#fff}
.site-nav .menu>li.menu-item--cta>a{background:var(--r-orange);border-color:var(--r-orange);color:#fff}
.site-nav .sub-menu{position:absolute;left:0;top:100%;min-width:235px;background:#fff;border:1px solid var(--r-line);
                    border-top:3px solid var(--r-red);box-shadow:var(--r-shadow);padding:.3rem 0;display:none;z-index:60}
.site-nav li:hover>.sub-menu,.site-nav li:focus-within>.sub-menu,.site-nav li.is-open>.sub-menu{display:block}
.site-nav .sub-menu a{display:block;padding:.45rem 1rem;color:var(--r-ink);font-size:.92rem}
.site-nav .sub-menu a:hover{background:var(--r-line-soft);color:var(--r-red);text-decoration:none}
.site-nav .sub-menu .sub-menu{left:100%;top:-3px}
/* The toggle is styled on its own class, not on the generic .button: WooCommerce
   restyles `.woocommerce button.button` on shop pages and was turning it grey. */
.nav-toggle{display:none;width:100%;margin:.5rem 0;text-align:left;background:var(--r-red);color:#fff;border:0;
            border-radius:4px;font:inherit;font-weight:600;cursor:pointer;transition:background .15s}
.nav-toggle:hover{background:var(--r-red-dark);color:#fff}

/* ---------- Page grids ---------- */
/* Columns follow the rails that actually rendered — inc/layout.php adds
   has-left / has-right — so a missing rail collapses its column instead of
   pushing the content into it. */
.page-grid{display:grid;gap:var(--r-gap);padding:1.25rem 0 2rem;align-items:start;
           grid-template-columns:minmax(0,1fr)}
.page-grid--home.has-right,
.page-grid--wide.has-right,
.page-grid--inner.has-right{grid-template-columns:minmax(0,1fr) 292px}
.page-grid--inner.has-left{grid-template-columns:212px minmax(0,1fr)}
.page-grid--inner.has-left.has-right{grid-template-columns:212px minmax(0,1fr) 292px}
/* Narrow: the right rail drops below the content and lays its panels out
   side by side; the left rail keeps its column until it too has to stack. */
@media (max-width:1100px){
  .page-grid--inner.has-left{grid-template-columns:200px minmax(0,1fr)}
  .page-grid--inner.has-left.has-right{grid-template-columns:200px minmax(0,1fr)}
  .page-grid--home.has-right,
  .page-grid--wide.has-right,
  .page-grid--inner.has-right{grid-template-columns:minmax(0,1fr)}
  .page-grid .rail-right{grid-column:1 / -1;display:grid;
                         grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--r-gap)}
}
@media (max-width:760px){
  .page-grid--inner.has-left,
  .page-grid--inner.has-left.has-right{grid-template-columns:minmax(0,1fr)}
  .rail-left{order:2}
}
.content-col{min-width:0}

/* ---------- Featured box (old #featuredBox) ---------- */
.featured-box{position:relative;border:1px solid var(--r-line);border-radius:var(--r-radius);overflow:hidden;background:#1f2327;margin-bottom:1.25rem}
.featured-box .hero-slides{position:relative;min-height:clamp(240px,26vw,340px)}
.featured-box .hero-slide{position:absolute;inset:0;background:#1f2327 center/cover no-repeat;opacity:0;transition:opacity .6s ease;pointer-events:none;display:flex;align-items:flex-end}
.featured-box .hero-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,17,20,.92) 0%,rgba(15,17,20,.55) 45%,rgba(15,17,20,.15) 100%)}
.featured-box .hero-slide.is-active{opacity:1;pointer-events:auto;z-index:1}
.featured-box .hero-slide--image-only::before{display:none} /* picture-only slide: no text, so no darkening gradient */
.featured-box .slide-caption{position:relative;z-index:1;padding:1.25rem 1.4rem 1.6rem;color:#fff;max-width:760px}
.featured-box .slide-caption h2,.featured-box .slide-caption h1{color:#fff;margin:0 0 .35rem;font-size:clamp(1.25rem,2.2vw,1.75rem)}
.featured-box .slide-caption h2 a,.featured-box .slide-caption h1 a{color:#fff}
.featured-box .slide-caption p{margin:0 0 .8rem;color:#dfe3e6;font-size:.96rem}
.featured-box .hero__kicker{display:inline-block;background:var(--r-orange);color:#fff;font-size:.7rem;text-transform:uppercase;letter-spacing:.12em;padding:.15rem .55rem;border-radius:3px;margin-bottom:.5rem;font-weight:700}
.featured-box .hero-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.4);color:#fff;font-size:1.5rem;line-height:1;padding:0;display:grid;place-items:center}
.featured-box .hero-nav:hover{background:var(--r-red)}
.featured-box .hero-nav--prev{left:.6rem}
.featured-box .hero-nav--next{right:.6rem}
.featured-box .hero-dots{position:absolute;right:.9rem;top:.9rem;display:flex;gap:.35rem;z-index:2}
.featured-box .hero-dots button{width:11px;height:11px;border-radius:50%;padding:0;background:rgba(255,255,255,.45);border:0}
.featured-box .hero-dots button.is-active,.featured-box .hero-dots button:hover{background:#fff}
@media (prefers-reduced-motion:reduce){.featured-box .hero-slide{transition:none}}
@media (max-width:600px){.featured-box .hero-nav{display:none}}
/* static fallback hero (no slider posts) */
.featured-box--static{padding:clamp(1.4rem,3vw,2.2rem) 1.4rem;background:linear-gradient(100deg,#2b2f34,var(--r-red-dark));color:#fff}
.featured-box--static h1{color:#fff}
.featured-box--static p{color:#e6e8ea;max-width:60ch}
.featured-box--static .hero__actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}


/* ---------- Home three columns: [ big story ] [ news list ] [ big story ] ---------- */
.home-columns{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:var(--r-gap)}
@media (max-width:980px){.home-columns{grid-template-columns:1fr 1fr}.home-columns .home-col--news{grid-column:1 / -1;order:-1}}
@media (max-width:620px){.home-columns{grid-template-columns:1fr}}
.home-col{min-width:0}
.col-title{font-size:1.05rem;margin:0 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid var(--r-red);color:var(--r-ink);
           display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.col-title a{font-size:.8rem;font-weight:600}
.home-col .widget{background:transparent;box-shadow:none;border:0;padding:0}
.home-col .widget+.widget{margin-top:1.25rem}
.home-col .placeholder{color:var(--r-muted);font-size:.85rem;background:#fafbfc;border:1px dashed var(--r-line);padding:1rem;text-align:center;border-radius:4px}

/* one big story in the left / right column (v1.6.7) */
.home-feature{background:#fff;border:1px solid var(--r-line);border-radius:var(--r-radius);box-shadow:var(--r-shadow-sm);overflow:hidden;
              transition:box-shadow .15s,border-color .15s}
.home-feature:hover{box-shadow:var(--r-shadow);border-color:#cfd5da}
.home-feature__media{display:block;aspect-ratio:16/10;background:#f6f7f8;border-bottom:1px solid var(--r-line)}
.home-feature__media img{display:block;width:100%;height:100%;object-fit:cover}
.home-feature__body{padding:.9rem 1rem 1.05rem}
.home-feature__title{font-size:1.18rem;line-height:1.3;margin:0 0 .45rem}
.home-feature__title a{color:var(--r-ink)}
.home-feature__title a:hover{color:var(--r-red)}
.home-feature p{font-size:.9rem;color:var(--r-body);margin:0 0 .75rem}

/* news list in the middle column (old mod_articles_news) */
.news-list{display:grid;gap:1rem;margin:0;padding:0;list-style:none}
.news-item{display:grid;grid-template-columns:74px minmax(0,1fr);gap:.75rem;align-items:start}
.news-item--nothumb{grid-template-columns:minmax(0,1fr)}
.news-item__media{border:1px solid var(--r-line);border-radius:4px;overflow:hidden;background:#f6f7f8;aspect-ratio:1/1}
.news-item__media img{width:100%;height:100%;object-fit:cover}
.news-item h4{font-size:.98rem;margin:0 0 .2rem;line-height:1.3}
.news-item h4 a{color:var(--r-red)}
.news-item p{font-size:.88rem;color:var(--r-body);margin:0 0 .4rem}
.news-item .date{display:block;font-size:.76rem;color:var(--r-muted);margin-bottom:.15rem}

/* ---------- Right rail (old aside_right1..3) ---------- */
.rail-right,.rail-left{display:flex;flex-direction:column;gap:var(--r-gap);min-width:0}
.widget{background:#fff;border:1px solid var(--r-line);border-radius:var(--r-radius);padding:0 0 .9rem;box-shadow:var(--r-shadow-sm)}
.widget-title,.widget h2{font-size:.92rem;text-transform:uppercase;letter-spacing:.06em;color:var(--r-ink);
                         margin:0 0 .8rem;padding:.55rem .9rem;background:#f6f7f8;border-bottom:1px solid var(--r-line);
                         border-radius:var(--r-radius) var(--r-radius) 0 0;border-left:4px solid var(--r-red)}
.widget>*:not(.widget-title):not(h2){padding-left:.9rem;padding-right:.9rem}
.widget ul{list-style:none;margin:0;padding:0 .9rem}
.widget li{padding:.35rem 0;border-bottom:1px solid var(--r-line-soft);font-size:.92rem}
.widget li:last-child{border-bottom:0}
.widget img{margin-inline:auto}
.widget .placeholder{color:var(--r-muted);font-size:.85rem;background:#fafbfc;border:1px dashed var(--r-line);padding:.9rem;text-align:center;border-radius:4px;margin:0 .9rem}
/* supplier spotlight logo stack */
.spotlight-list{display:grid;gap:.6rem;padding:0 .9rem}
.spotlight-list a{border:1px solid var(--r-line);border-radius:4px;padding:.7rem;display:grid;place-items:center;min-height:64px;background:#fff;transition:.15s}
.spotlight-list a:hover{border-color:var(--r-red);box-shadow:var(--r-shadow-sm);text-decoration:none}

/* ---------- Default rail panels (old aside_right1..3) ---------- */
.spotlight-logos{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding:0 .9rem}
.spotlight-logo{border:1px solid var(--r-line);border-radius:4px;background:#fff;
                display:grid;place-items:center;padding:.55rem;min-height:58px;transition:.15s}
a.spotlight-logo:hover{border-color:var(--r-red);box-shadow:var(--r-shadow-sm);text-decoration:none}
.spotlight-logo img{max-height:42px;width:auto;max-width:100%;object-fit:contain;margin:0}

.widget-more{margin:.8rem 0 0;font-size:.85rem;text-align:right}

.spotlight-product img{border:1px solid var(--r-line);border-radius:4px;margin-bottom:.6rem;width:100%;object-fit:contain;background:#fff}
.spotlight-product h3{font-size:1rem;margin:0 0 .35rem}
.spotlight-product p{font-size:.88rem;color:var(--r-body);margin:0 0 .7rem}

.spotlight-defence{text-align:center}
.spotlight-defence img{margin:0 auto;max-width:160px}

/* left aside (old #innerAside: submenu + promo) */
.rail-left .widget-title{background:var(--r-red);color:#fff;border-left-color:var(--r-red-dark);border-bottom-color:var(--r-red)}
.submenu{list-style:none;margin:0;padding:0 .9rem}
.submenu li{border-bottom:1px solid var(--r-line-soft)}
.submenu li:last-child{border-bottom:0}
.submenu a{display:block;padding:.45rem 0 .45rem .8rem;font-size:.92rem;color:var(--r-ink);position:relative}
.submenu a::before{content:"›";position:absolute;left:0;color:var(--r-red);font-weight:700}
.submenu a:hover,.submenu .current-cat>a{color:var(--r-red);text-decoration:none}
.submenu-back{margin:0 .9rem;border-bottom:1px solid var(--r-line)}
.submenu-back a{display:block;padding:.5rem 0;font-size:.88rem;font-weight:700;color:var(--r-red)}
.submenu-back a:hover{text-decoration:underline}

/* ---------- Content column ---------- */
.entry{background:#fff;border:1px solid var(--r-line);border-radius:var(--r-radius);padding:clamp(1.1rem,2.4vw,1.9rem);box-shadow:var(--r-shadow-sm)}
.entry-header{margin-bottom:1.1rem;padding-bottom:.8rem;border-bottom:1px solid var(--r-line)}
.entry-header h1{margin-bottom:.35rem}
.entry-meta{font-size:.85rem;color:var(--r-muted);display:flex;gap:.9rem;flex-wrap:wrap}
.entry-meta a{color:var(--r-red);font-weight:600}
.entry-thumb{margin:0 0 1.25rem;border:1px solid var(--r-line);border-radius:4px;overflow:hidden}
.entry-content{font-size:1rem}
.entry-content img{border-radius:4px}
.entry-content .alignleft{float:left;margin:0 1.25rem 1rem 0;max-width:50%}
.entry-content .alignright{float:right;margin:0 0 1rem 1.25rem;max-width:50%}
.entry-content .aligncenter{margin-inline:auto}
.entry-content h2{margin-top:1.6em;padding-bottom:.25rem;border-bottom:1px solid var(--r-line)}
.entry-content h3{margin-top:1.35em;color:var(--r-red-dark)}
/* A heading must never wrap around a floated image. */
.entry-content h2,.entry-content h3,.entry-content h4,
.entry-content table,.entry-content .gds-gallery{clear:both}

/* ---------- Article images (tools/image_layout.py picks the treatment) ---------- */
.gds-fig{margin:0 0 1.25rem}
.gds-fig img{border-radius:4px;display:block;height:auto;max-width:100%}
.gds-fig figcaption{font-size:.83rem;color:var(--r-muted);margin-top:.4rem;line-height:1.45}

/* full-width treatments */
.gds-fig--banner img,.gds-fig--landscape img{width:100%}
.gds-fig--banner{margin-bottom:1.5rem}

/* floated treatments: text wraps around them */
.entry-content .gds-fig--float{float:right;margin:.2rem 0 1rem 1.4rem;max-width:46%}
.gds-fig--square.gds-fig--float{width:262px}
.gds-fig--portrait.gds-fig--float{width:210px}
.gds-fig--logo.gds-fig--float{width:auto;max-width:180px;background:#fff;border:1px solid var(--r-line);
                              border-radius:4px;padding:.6rem;text-align:center}
.gds-fig--logo img{margin-inline:auto;max-height:110px;width:auto}
.gds-fig--logo figcaption{font-size:.76rem;margin-top:.35rem}

/* ---------- FAQ block (appended to imported articles) ---------- */
.gds-faq-heading{clear:both}
.gds-faq{margin:1.2rem 0 0;clear:both}
.gds-faq-item{border:1px solid var(--r-line);border-radius:var(--r-radius);background:#fafbfc;
              margin:0 0 .5rem;padding:.75rem 1rem;transition:border-color .15s}
.gds-faq-item[open]{background:#fff;border-color:var(--r-red)}
.gds-faq-item summary{cursor:pointer;font-weight:600;color:var(--r-ink);list-style:none;
                      display:flex;justify-content:space-between;gap:1rem;align-items:baseline}
.gds-faq-item summary::-webkit-details-marker{display:none}
.gds-faq-item summary::after{content:"+";color:var(--r-red);font-weight:700;font-size:1.15rem;line-height:1}
.gds-faq-item[open] summary::after{content:"\2013"}
.gds-faq-item summary:hover{color:var(--r-red)}
.gds-faq-answer{padding-top:.6rem}
.gds-faq-answer p{margin:0}

/* small UI graphics that sit inside a sentence or a link */
.gds-inline-img{display:inline-block;vertical-align:middle;max-height:34px;width:auto;margin:0 .3rem 0 0}

/* two or more images in a row become a grid, not a stack */
.gds-gallery{display:grid;gap:1rem;margin:0 0 1.4rem}
.gds-gallery--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.gds-gallery--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.gds-gallery .gds-fig{margin:0;display:flex;flex-direction:column}
.gds-gallery .gds-fig img{width:100%;object-fit:contain;background:#fff;border:1px solid var(--r-line-soft)}
.gds-gallery .gds-fig--logo img{object-fit:contain;padding:.5rem}
.gds-gallery figcaption{margin-top:auto;padding-top:.4rem}

@media (max-width:860px){
  .gds-gallery--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  /* On a phone a floated image leaves a useless sliver of text. */
  .entry-content .gds-fig--float{float:none;width:auto;max-width:100%;margin:0 0 1.25rem}
  .gds-fig--logo.gds-fig--float{max-width:200px}
  .gds-gallery--2,.gds-gallery--3{grid-template-columns:minmax(0,1fr)}
}
.entry-content a[href$=".pdf"]::before{content:"PDF";display:inline-block;font-size:.66rem;font-weight:700;background:var(--r-red);color:#fff;border-radius:2px;padding:0 .3rem;margin-right:.35rem;vertical-align:middle}
.entry-footer{margin-top:1.6rem;padding-top:.9rem;border-top:1px solid var(--r-line);font-size:.85rem;color:var(--r-muted)}
.entry-footer .tags a{display:inline-block;background:var(--r-line-soft);border-radius:999px;padding:.12rem .65rem;margin:.2rem .2rem 0 0;color:var(--r-ink);font-size:.83rem}
.page-title{margin:0 0 1rem}
.breadcrumbs{font-size:.82rem;color:var(--r-muted);margin-bottom:.5rem}
.breadcrumbs a{color:var(--r-muted)}
.breadcrumbs a:hover{color:var(--r-red)}
.archive-intro{color:var(--r-muted);margin:-.5rem 0 1rem}

/* article list (archives / search) – compact rows like the old blog layout */
.article-list{display:grid;gap:1rem}
.article-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:1rem;background:#fff;border:1px solid var(--r-line);
             border-radius:var(--r-radius);padding:.9rem;box-shadow:var(--r-shadow-sm);transition:box-shadow .15s,border-color .15s}
.article-row:hover{box-shadow:var(--r-shadow);border-color:#cfd5da}
.article-row--nothumb{grid-template-columns:minmax(0,1fr)}
.article-row__media{border:1px solid var(--r-line);border-radius:4px;overflow:hidden;background:#f6f7f8;aspect-ratio:4/3}
.article-row__media img{width:100%;height:100%;object-fit:cover}
.article-row h3{margin:0 0 .3rem;font-size:1.1rem}
.article-row .meta{font-size:.8rem;color:var(--r-muted);margin-bottom:.35rem}
.article-row p{font-size:.93rem;margin:0 0 .6rem}
@media (max-width:520px){.article-row{grid-template-columns:1fr}}
.pagination{display:flex;gap:.35rem;justify-content:center;margin-top:1.5rem;flex-wrap:wrap}
.pagination .page-numbers{display:inline-block;padding:.4rem .75rem;background:#fff;border:1px solid var(--r-line);border-radius:4px;color:var(--r-ink);font-size:.9rem}
.pagination .page-numbers.current{background:var(--r-red);border-color:var(--r-red);color:#fff}
.post-nav{display:flex;justify-content:space-between;gap:.9rem;margin-top:1.25rem;font-size:.9rem}
.post-nav a{background:#fff;border:1px solid var(--r-line);border-radius:4px;padding:.7rem .9rem;flex:1;color:var(--r-ink)}
.post-nav a:hover{border-color:var(--r-red);text-decoration:none}
.post-nav span{display:block;font-size:.74rem;color:var(--r-muted);text-transform:uppercase;letter-spacing:.08em}

/* ---------- Branch finder ---------- */
.branch-finder{margin:0 0 1.5rem}
.branch-finder__bar{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:center;
                    background:#fff;border:1px solid var(--r-line);border-radius:var(--r-radius);
                    padding:.85rem 1rem;box-shadow:var(--r-shadow-sm);margin-bottom:.9rem}
.branch-finder__search{position:relative;flex:1 1 260px;min-width:220px}
.branch-finder__search input{width:100%;padding:.55rem 2rem .55rem .8rem;border:1px solid var(--r-line);
                             border-radius:4px;font:inherit;font-size:.95rem;background:#fff;color:var(--r-ink)}
.branch-finder__search input:focus{outline:2px solid var(--r-red);outline-offset:1px;border-color:var(--r-red)}
.branch-finder__clear{position:absolute;right:.3rem;top:50%;transform:translateY(-50%);
                      background:none;color:var(--r-muted);border:0;font-size:1.25rem;line-height:1;
                      padding:.15rem .4rem;cursor:pointer}
.branch-finder__clear:hover{background:none;color:var(--r-red)}

.branch-finder__states{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{background:var(--r-tab);color:var(--r-ink);border:1px solid var(--r-line);border-radius:999px;
      padding:.32rem .8rem;font-size:.85rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.chip:hover{background:var(--r-tab-hover);color:var(--r-ink)}
.chip span{opacity:.6;font-weight:400;margin-left:.15rem}
.chip.is-active{background:var(--r-red);border-color:var(--r-red);color:#fff}
.chip.is-active:hover{background:var(--r-red-dark);color:#fff}
.chip.is-active span{opacity:.8}

.branch-finder__count{font-size:.86rem;color:var(--r-muted);margin:0 0 .8rem}
.branch-finder__empty{background:#fff;border:1px dashed var(--r-line);border-radius:var(--r-radius);
                      padding:1.5rem;text-align:center;color:var(--r-muted)}
.branch-finder__empty .button{margin-left:.5rem}

.branch-grid{display:grid;gap:var(--r-gap);grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
.branch-card{background:#fff;border:1px solid var(--r-line);border-top:3px solid var(--r-red);
             border-radius:var(--r-radius);padding:1rem 1.1rem;box-shadow:var(--r-shadow-sm);
             display:flex;flex-direction:column}
.branch-card__name{margin:0 0 .5rem;font-size:1.08rem;display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap}
.branch-card__state{background:var(--r-tab);color:var(--r-muted);border-radius:3px;
                    padding:.1rem .4rem;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.branch-card__address{font-style:normal;color:var(--r-body);font-size:.92rem;margin:0 0 .6rem}
.branch-card__address span{display:block}
.branch-card__contact{display:grid;grid-template-columns:auto 1fr;gap:.15rem .6rem;margin:0 0 .9rem;font-size:.9rem}
.branch-card__contact dt{color:var(--r-muted);font-size:.8rem}
.branch-card__contact dd{margin:0;overflow-wrap:anywhere}
.branch-card__actions{margin:auto 0 0;display:flex;gap:.4rem;flex-wrap:wrap}
.button--outline{background:#fff;color:var(--r-red);box-shadow:inset 0 0 0 1px var(--r-line)}
.button--outline:hover{background:var(--r-red);color:#fff}

/* single branch */
.branch-detail{display:grid;gap:var(--r-gap);grid-template-columns:minmax(240px,320px) 1fr;align-items:start}
.branch-detail__panel{background:#fff;border:1px solid var(--r-line);border-top:3px solid var(--r-red);
                      border-radius:var(--r-radius);padding:1rem 1.1rem;box-shadow:var(--r-shadow-sm)}
.branch-detail__panel h2{font-size:1.05rem;margin-bottom:.6rem}
.branch-detail__panel dl{display:grid;grid-template-columns:auto 1fr;gap:.3rem .7rem;margin:0 0 .9rem;font-size:.92rem}
.branch-detail__panel dt{color:var(--r-muted);font-size:.8rem}
.branch-detail__panel dd{margin:0;overflow-wrap:anywhere}
@media (max-width:760px){.branch-detail{grid-template-columns:1fr}}

.entry--intro{margin-bottom:1.25rem}
.innerbottom{margin-top:1.25rem;display:grid;gap:var(--r-gap)}
.page-title{padding-bottom:.4rem;border-bottom:2px solid var(--r-red)}

/* 404 */
.notfound{text-align:center;padding:3rem 0}
.notfound h1{font-size:4.5rem;color:var(--r-red);margin:0}

/* ---------- Footer (old #pageFooter: credit left, nav right) ---------- */
.site-footer{border-top:3px solid var(--r-red);background:#f6f7f8;padding:1rem clamp(.85rem,2vw,1.6rem);
             display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.88rem;color:var(--r-muted)}
.site-footer a{color:var(--r-ink)}
.site-footer .footer-credit{display:flex;align-items:center;gap:.6rem}
.site-footer .footer-credit img{max-height:34px;width:auto}
.site-footer ul{display:flex;gap:1.1rem;list-style:none;margin:0;padding:0;flex-wrap:wrap;justify-content:flex-end}
.site-footer-outer{width:min(100% - 2rem,var(--r-page-width));margin:0 auto 2rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.82rem;color:#7b7570}
.site-footer-outer a{color:#5f5a56}

/* ---------- Responsive nav ---------- */
@media (max-width:900px){
  .header-right{align-items:stretch;width:100%}
  .contact-info{justify-content:flex-start}

  /* Edge to edge once the nav collapses. The boxed page frame is what made the
     open menu look chopped off: a narrow panel with the ground colour showing
     down both sides. The footer strip outside the box keeps its own inset. */
  .page-box{width:100%;margin:0 0 1.5rem;border-radius:0;box-shadow:none}
  body{background-image:none}

  /* The nav strip, the toggle and the panel all run the full width; only the
     text is inset, so labels still line up with the page's own gutter. */
  .site-nav{padding:0}
  .nav-toggle{display:flex;align-items:center;gap:.55rem;width:100%;margin:0;
              padding:.8rem clamp(.85rem,2vw,1.6rem);border-radius:0;font-size:1rem;text-align:left}
  .site-nav.is-open .nav-toggle{background:var(--r-red-dark)}
  .site-nav .menu{display:none;flex-direction:column;gap:0;width:100%;border:0;border-radius:0}
  .site-nav.is-open .menu{display:flex}
  .site-nav .menu>li{width:100%}
  .site-nav .menu>li>a{border-radius:0;border:0;border-bottom:1px solid var(--r-line);background:#fff;
                       display:flex;justify-content:space-between;align-items:center;
                       padding:.8rem clamp(.85rem,2vw,1.6rem)}
  .site-nav .menu>li.menu-item-has-children>a::after{content:"+";opacity:.6;font-size:1.15rem;line-height:1}
  .site-nav .menu>li.is-open>a::after{content:"–"}
  .site-nav .sub-menu{position:static;display:none;width:100%;min-width:0;border:0;border-top:0;
                      box-shadow:none;background:#fafbfc;padding:0}
  .site-nav li.is-open>.sub-menu{display:block}
  .site-nav li:hover>.sub-menu{display:none}
  .site-nav li.is-open:hover>.sub-menu{display:block}
  .site-nav .sub-menu a{padding:.65rem clamp(.85rem,2vw,1.6rem);
                        padding-left:calc(clamp(.85rem,2vw,1.6rem) + 1.1rem);
                        border-bottom:1px solid var(--r-line-soft)}
}

/* ---------- WordPress core classes ---------- */
.wp-caption{max-width:100%}
.wp-caption-text{font-size:.85rem;color:var(--r-muted)}
.gallery-caption{font-size:.85rem}
.bypostauthor{}
.alignwide{max-width:none}
.alignfull{width:auto;margin-left:0}
.has-brand-red-background-color{background-color:var(--r-red)}
.has-brand-red-color{color:var(--r-red)}
.has-accent-orange-background-color{background-color:var(--r-orange)}
.has-accent-orange-color{color:var(--r-orange)}
.has-light-grey-background-color{background-color:var(--r-line-soft)}

/* ---------- WooCommerce (inc/woocommerce.php) ----------
   Woo's own stylesheet is a dependency of this one (functions.php), so it is
   always printed FIRST: any Woo selector repeated here wins by order, and the
   selectors below deliberately mirror Woo's so no !important is needed. */

/* Buttons: the theme's red wherever Woo prints one (loop, cart, checkout, account). */
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit.alt,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
.woocommerce-page #respond input#submit,.woocommerce-page a.button,.woocommerce-page button.button,.woocommerce-page input.button{
  background:var(--r-red);color:#fff;border:0;border-radius:4px;padding:.5rem 1rem;
  font:inherit;font-weight:600;font-size:.92rem;line-height:1.6;text-decoration:none;transition:background .15s}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover,
.woocommerce-page #respond input#submit:hover,.woocommerce-page a.button:hover,.woocommerce-page button.button:hover,.woocommerce-page input.button:hover{
  background:var(--r-red-dark);color:#fff;text-decoration:none}
.woocommerce a.button.disabled,.woocommerce button.button.disabled,.woocommerce input.button.disabled,
.woocommerce a.button:disabled,.woocommerce button.button:disabled,.woocommerce input.button:disabled,
.woocommerce a.button.disabled:hover,.woocommerce button.button.disabled:hover,.woocommerce input.button.disabled:hover{
  background:var(--r-red);color:#fff;opacity:.5;padding:.5rem 1rem}
/* the theme's own button variants keep working inside a .woocommerce wrapper */
.woocommerce a.button--small,.woocommerce button.button--small{padding:.3rem .7rem;font-size:.82rem}
.woocommerce a.button--outline{background:#fff;color:var(--r-red);box-shadow:inset 0 0 0 1px var(--r-line)}
.woocommerce a.button--outline:hover{background:var(--r-red);color:#fff}
.woocommerce a.button--orange{background:var(--r-orange)}
.woocommerce a.button--orange:hover{background:#9a4600}

/* Shop header: title, category description, "showing x results", sort box. */
.woocommerce-products-header{margin-bottom:1rem}
.woocommerce-products-header .page-title{margin-bottom:.6rem}
.woocommerce-products-header .term-description{color:var(--r-muted);margin:0 0 .5rem}
.woocommerce .woocommerce-result-count,.woocommerce-page .woocommerce-result-count{margin:0 0 1rem;padding:.45rem 0;font-size:.86rem;color:var(--r-muted)}
.woocommerce .woocommerce-ordering,.woocommerce-page .woocommerce-ordering{margin:0 0 1rem}
.woocommerce .woocommerce-ordering select{padding:.4rem 2rem .4rem .7rem;border:1px solid var(--r-line);border-radius:4px;
                                          font:inherit;font-size:.9rem;background:#fff;color:var(--r-ink)}

/* Phone-width category strip (garrards_wc_category_pills). Below 760px the
   grid stacks and the left rail lands under the products, so its section
   menu is replaced by this one row of pills that scrolls sideways, sitting
   between the page header and "Showing x results". The row bleeds to the
   page-box edges (the inner padding is undone, then restored inside the
   scroller) so a pill cut off at the right edge shows there is more; a
   fade there does the same, and main.js removes it once scrolled to the
   end. Pill look = .doc-pill; current category = the rail's red. */
.cat-pills{display:none}
@media (max-width:760px){
  .cat-pills{display:block;position:relative;margin:0 calc(-1 * clamp(.85rem,2vw,1.6rem)) .3rem}
  .cat-pills__list{list-style:none;margin:0;padding:.15rem clamp(.85rem,2vw,1.6rem) .6rem;display:flex;gap:.4rem;
                   overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
                   scroll-snap-type:x proximity;scroll-padding-inline:clamp(.85rem,2vw,1.6rem);scrollbar-width:none}
  .cat-pills__list::-webkit-scrollbar{display:none}
  .cat-pills__list li{flex:none;margin:0;padding:0;scroll-snap-align:start}
  .cat-pill{display:inline-block;white-space:nowrap;background:var(--r-line-soft);color:var(--r-ink);
            border:1px solid var(--r-line);border-radius:999px;padding:.34rem .9rem;
            font-size:.82rem;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s,color .15s}
  .cat-pill:hover,.cat-pill:focus-visible{background:#fff;border-color:var(--r-red);color:var(--r-red);text-decoration:none}
  .cat-pill.is-current{background:var(--r-red);border-color:var(--r-red);color:#fff}
  .cat-pill--up{background:#fff;color:var(--r-red)}
  .cat-pills::after{content:"";position:absolute;top:0;right:0;bottom:.6rem;width:2.5rem;pointer-events:none;
                    background:linear-gradient(90deg,rgba(255,255,255,0),var(--r-page) 80%)}
  .cat-pills.is-at-end::after{display:none}
  /* The rail's section menu is now redundant; if it was the rail's only panel, drop the rail too. */
  .has-cat-pills .rail-left .widget--submenu{display:none}
  .has-cat-pills .rail-left:not(:has(> :not(.widget--submenu))){display:none}
}

/* Product grid. One rule for every loop (shop, category, search, related,
   up-sells, [products] shortcode). CSS grid instead of Woo's floats: every
   card in a row is exactly the same width AND the same height, whatever its
   content, and the column count adapts to however much room the rails leave. */
.woocommerce ul.products,.woocommerce-page ul.products,
.woocommerce ul.products[class*="columns-"],.woocommerce-page ul.products[class*="columns-"]{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--r-gap);
  align-items:stretch;clear:both;margin:0 0 1.5rem;padding:0;list-style:none}
/* Woo's float clearfix would otherwise become two empty grid cells. */
.woocommerce ul.products::before,.woocommerce ul.products::after,
.woocommerce-page ul.products::before,.woocommerce-page ul.products::after{display:none}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product.first,.woocommerce ul.products[class*="columns-"] li.product.last,
.woocommerce-page ul.products[class*="columns-"] li.product.first,.woocommerce-page ul.products[class*="columns-"] li.product.last{
  float:none;clear:none;width:auto;margin:0;padding:0;position:relative;
  display:flex;flex-direction:column;min-width:0;
  background:#fff;border:1px solid var(--r-line);border-top:3px solid var(--r-red);border-radius:var(--r-radius);
  box-shadow:var(--r-shadow-sm);overflow:hidden;transition:box-shadow .15s,border-color .15s}
.woocommerce ul.products li.product:hover{box-shadow:var(--r-shadow);border-color:#cfd5da;border-top-color:var(--r-red)}

/* Card: image box. ALWAYS a square, whatever the picture's shape: the image
   is positioned inside the box rather than flowing in it, so a tall packshot
   (145x319, say) is scaled down to fit instead of stretching the card. */
.woocommerce ul.products li.product .product-card__media{display:block;position:relative;aspect-ratio:1/1;
                                                          overflow:hidden;padding:0;background:#fff;border-bottom:1px solid var(--r-line-soft)}
.woocommerce ul.products li.product .product-card__media img{position:absolute;top:.85rem;left:.85rem;
                                                              width:calc(100% - 1.7rem);height:calc(100% - 1.7rem);max-width:none;max-height:none;
                                                              object-fit:contain;object-position:center;margin:0;box-shadow:none;display:block}
.woocommerce ul.products li.product .product-card__media .onsale,.woocommerce span.onsale{
  position:absolute;top:.6rem;left:.6rem;right:auto;margin:0;min-height:0;min-width:0;line-height:1.6;
  background:var(--r-orange);color:#fff;border-radius:3px;padding:.15rem .55rem;
  font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;z-index:2}

/* Card: body. Flex column filling the space above the actions strip. The
   document pills follow the teaser directly (any spare height sits below
   them); the price strip is what lines up across the row. */
.woocommerce ul.products li.product .product-card__body{display:flex;flex-direction:column;flex:1 1 auto;padding:.85rem .95rem .9rem;min-width:0}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
  font-size:1.02rem;line-height:1.3;margin:0 0 .45rem;padding:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:var(--r-ink)}
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover{color:var(--r-red);text-decoration:none}
.product-card__teaser{font-size:.88rem;line-height:1.5;color:var(--r-body);margin:0 0 .8rem;
                      display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product-card__docs{margin:0 0 .5rem}

/* Card: actions strip (price left, button right), pinned to the bottom. */
.woocommerce ul.products li.product .product-card__actions{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem .75rem;flex-wrap:wrap;
  margin-top:auto;padding:.7rem .95rem;background:#fafbfc;border-top:1px solid var(--r-line-soft)}
.woocommerce ul.products li.product .product-card__actions:empty{display:none}
.woocommerce ul.products li.product .price{margin:0;font-size:.98rem;font-weight:600;color:var(--r-ink);display:block}
.woocommerce ul.products li.product .price del{color:var(--r-muted);opacity:1;font-weight:400}
.woocommerce ul.products li.product .price ins{text-decoration:none;font-weight:600}
.woocommerce ul.products li.product .button,.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart{margin:0;padding:.38rem .8rem;font-size:.84rem;white-space:nowrap}
.woocommerce ul.products li.product .added_to_cart{display:inline-block;color:var(--r-red);font-weight:600;padding-left:0}

/* Category tiles that can appear at the top of the shop / a parent category. */
.woocommerce ul.products li.product-category>a{display:flex;flex-direction:column;flex:1;padding:.85rem .95rem}
.woocommerce ul.products li.product-category img{aspect-ratio:1/1;object-fit:contain;width:100%;margin:0 0 .6rem;border-bottom:1px solid var(--r-line-soft);padding-bottom:.6rem}
.woocommerce ul.products li.product-category h2,.woocommerce ul.products li.product-category .woocommerce-loop-category__title{
  font-size:1.02rem;padding:0;margin:auto 0 0;color:var(--r-ink)}
.woocommerce ul.products li.product-category mark.count{background:none;color:var(--r-muted);font-weight:400}

/* Document pills (product cards, product page). */
.doc-pills{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem}
.doc-pills li{margin:0;padding:0;max-width:100%}
.doc-pill{display:inline-flex;align-items:center;gap:.4rem;max-width:100%;
          background:var(--r-line-soft);color:var(--r-ink);border:1px solid var(--r-line);border-radius:999px;
          padding:.18rem .7rem .18rem .22rem;font-size:.78rem;font-weight:600;line-height:1.45;
          transition:background .15s,border-color .15s,color .15s}
.doc-pill:hover,.doc-pill:focus-visible{background:#fff;border-color:var(--r-red);color:var(--r-red);text-decoration:none}
.doc-pill__type{flex:none;background:var(--r-red);color:#fff;border-radius:999px;padding:.05rem .48rem;font-size:.64rem;letter-spacing:.06em;line-height:1.5}
.doc-pill__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-pill__size{flex:none;color:var(--r-muted);font-weight:400;font-size:.9em}
.doc-pill:hover .doc-pill__size{color:inherit}
.doc-pill--expired .doc-pill__type{background:var(--r-muted)}
/* CELink titles can be long ("SDS-Advion_Ant Gel_Insecticide_NZ_GHS-210425"): on a card the
   label is capped and ellipsised; the full title is in the tooltip and on the product page. */
.product-card__docs .doc-pill__label{max-width:11rem}

/* Single product, inside the theme's white .entry box.
   Header (kicker / name / active constituent | code) runs full width above
   the gallery; gallery left, summary right; details below. */
.entry--product .breadcrumbs{margin-bottom:.9rem}
.product-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.5rem 1rem;
                margin:0 0 1.25rem;padding-bottom:.85rem;border-bottom:2px solid var(--r-red)}
.product-header__main{flex:1 1 18rem;min-width:0}
.product-header__kicker{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--r-red);margin:0 0 .3rem}
.product-header__kicker:hover{color:var(--r-red-dark);text-decoration:none}
.woocommerce div.product .product-header .product_title{font-size:clamp(1.25rem,2.1vw,1.6rem);line-height:1.25;margin:0;padding:0;color:var(--r-ink)}
.product-header__spec{margin:.45rem 0 0;font-size:.92rem;color:var(--r-body)}
.product-header__spec span{display:inline-block;color:var(--r-muted);font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-right:.45rem}
.product-header__sku{flex:none;font-size:.8rem;color:var(--r-muted);background:var(--r-line-soft);border:1px solid var(--r-line);
                     border-radius:999px;padding:.22rem .75rem;white-space:nowrap}
.product-header__sku strong{color:var(--r-ink);font-weight:600}
.woocommerce div.product p.price:empty,.woocommerce div.product span.price:empty{display:none}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--r-red);font-size:1.3rem;font-weight:600;margin-bottom:.9rem}
.woocommerce div.product p.price del,.woocommerce div.product span.price del{color:var(--r-muted);opacity:1;font-weight:400}
.woocommerce div.product p.price ins,.woocommerce div.product span.price ins{text-decoration:none}
.woocommerce div.product div.images,.woocommerce #content div.product div.images{width:42%;margin-bottom:1.5rem}
.woocommerce div.product div.summary,.woocommerce #content div.product div.summary{width:54%;margin-bottom:1.5rem}
.woocommerce div.product div.images .woocommerce-product-gallery__image{border:1px solid var(--r-line);border-radius:4px;background:#fff;padding:.6rem}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{aspect-ratio:1/1;object-fit:contain;width:100%;height:auto;border:0;border-radius:0}
.woocommerce div.product div.images .flex-control-thumbs{margin-top:.5rem}
.woocommerce div.product div.images .flex-control-thumbs li img{border:1px solid var(--r-line);border-radius:3px;padding:.2rem;background:#fff}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:.98rem;color:var(--r-body);margin-bottom:1rem}
.woocommerce div.product form.cart{margin:0 0 1.1rem}
.woocommerce div.product form.cart .quantity .qty{padding:.45rem .3rem;border:1px solid var(--r-line);border-radius:4px;font:inherit}
.woocommerce div.product .product_meta{font-size:.85rem;color:var(--r-muted);margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--r-line)}
.woocommerce div.product .product_meta>span{display:block}
/* Downloads: one row per document, badge left, size right. */
.product-downloads{margin:0 0 1.1rem;padding:0;border:0}
.product-downloads h2{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--r-muted);border:0;padding:0;margin:0 0 .5rem}
.product-downloads .doc-pills{flex-direction:column;align-items:stretch;gap:.35rem}
.product-downloads .doc-pill{display:flex;font-size:.86rem;padding:.38rem .8rem .38rem .35rem;border-radius:6px;background:#fff;max-width:none}
.product-downloads .doc-pill__type{font-size:.68rem;min-width:3.4rem;text-align:center}
.product-downloads .doc-pill__label{flex:1 1 auto;min-width:0}
.product-downloads .doc-pill__size{margin-left:auto;padding-left:.5rem}
.product-tags{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center;margin-top:.9rem;padding-top:.8rem;border-top:1px solid var(--r-line);font-size:.8rem}
.product-tags__label{color:var(--r-muted);margin-right:.2rem}
.product-tags a{display:inline-block;background:var(--r-line-soft);border-radius:999px;padding:.12rem .65rem;color:var(--r-ink)}
.product-tags a:hover{background:var(--r-red);color:#fff;text-decoration:none}

/* Product details (Woo's tabs). With a single tab the tab bar is hidden and
   the panel reads as a plain section under the theme's red-rule heading. */
.woocommerce div.product .woocommerce-tabs{clear:both;margin-top:.25rem;padding-top:1.25rem;border-top:1px solid var(--r-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs:has(> li:only-child){display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0 0 0 .25rem;margin:0 0 1.25rem;overflow:visible}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-bottom:3px solid var(--r-red);z-index:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--r-tab);border:1px solid var(--r-line);border-bottom:0;
                                                       border-radius:4px 4px 0 0;margin:0 .25rem 0 0;padding:0;box-shadow:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--r-ink);font-weight:600;padding:.55rem 1rem}
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover{background:var(--r-tab-hover)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--r-red);border-color:var(--r-red)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#fff}
.woocommerce div.product .woocommerce-tabs .panel{padding:0;margin:0 0 .5rem}
.woocommerce div.product .woocommerce-tabs .panel h2:first-child{font-size:1.05rem;margin:0 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid var(--r-red);color:var(--r-ink)}
.woocommerce-Tabs-panel--description{font-size:.97rem;color:var(--r-body)}
.woocommerce-Tabs-panel--description p{margin:0 0 .85em}
.woocommerce-Tabs-panel--description font,.woocommerce-Tabs-panel--description span[style]{font:inherit!important;color:inherit!important}
/* a paragraph that is only a bold phrase ("Key Features") is a sub-heading */
.woocommerce-Tabs-panel--description p:has(> strong:only-child),.woocommerce-Tabs-panel--description p:has(> b:only-child){
  margin:1.2em 0 .35em;color:var(--r-red-dark);font-size:1rem}
/* Specifications in <H3> sections (CELink plugin 1.9.0+): one block per heading, content as sent.
   Safety is a callout; Target pests flow into two columns on wide screens. */
.product-sections{display:grid;gap:1.35rem}
.product-section{min-width:0}
.product-section__title{font-size:1rem;margin:0 0 .45rem;color:var(--r-red-dark)}
.product-section p{margin:0 0 .7em}
.product-section p:last-child{margin-bottom:0}
.product-section ul{margin:0;padding-left:1.2em}
.product-section li{margin:0 0 .3em}
.product-section--target-pests ul{columns:2 16rem;column-gap:2rem}
.product-section--target-pests li{break-inside:avoid}
.product-section--safety{background:#fdf6ef;border:1px solid #f0d9c2;border-radius:var(--r-radius);padding:.9rem 1.1rem}
.product-section--safety .product-section__title{color:var(--r-orange)}
.woocommerce div.product .related>h2,.woocommerce div.product .upsells>h2,
.woocommerce div.product section.related h2,.woocommerce div.product section.upsells h2{
  font-size:1.05rem;margin:1.5rem 0 .8rem;padding-bottom:.4rem;border-bottom:2px solid var(--r-red);color:var(--r-ink)}
@media (max-width:768px){
  .woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none}
  .woocommerce div.product div.images{max-width:360px}
}

/* Notices, forms and tables on cart / checkout / account pages. */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:4px;background:#fafbfc;border-top-color:var(--r-red)}
.woocommerce-message::before{color:var(--r-red)}
.woocommerce-info{border-top-color:var(--r-orange)}
.woocommerce-info::before{color:var(--r-orange)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,.woocommerce-page form .form-row textarea{
  padding:.55rem .8rem;border:1px solid var(--r-line);border-radius:4px;font:inherit;font-size:.95rem;background:#fff;color:var(--r-ink)}
.woocommerce form .form-row label{font-size:.9rem;color:var(--r-ink)}
.woocommerce table.shop_table{border:1px solid var(--r-line);border-radius:var(--r-radius);border-collapse:separate}
.woocommerce table.shop_table th{background:#f6f7f8}
.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-color:var(--r-line)}
.woocommerce-cart .cart-collaterals .cart_totals{width:100%;float:none}
.woocommerce .woocommerce-pagination ul.page-numbers{border:0;display:flex;gap:.35rem;justify-content:center;flex-wrap:wrap}
.woocommerce .woocommerce-pagination ul.page-numbers li{border:0}
.woocommerce .woocommerce-pagination ul.page-numbers li a,.woocommerce .woocommerce-pagination ul.page-numbers li span{
  display:inline-block;padding:.4rem .75rem;background:#fff;border:1px solid var(--r-line);border-radius:4px;color:var(--r-ink);font-size:.9rem;min-width:0}
.woocommerce .woocommerce-pagination ul.page-numbers li span.current,.woocommerce .woocommerce-pagination ul.page-numbers li a:hover{
  background:var(--r-red);border-color:var(--r-red);color:#fff}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:.5rem .75rem;border-bottom:1px solid var(--r-line);color:var(--r-ink)}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{color:var(--r-red);font-weight:600}

@media (max-width:520px){
  .woocommerce ul.products,.woocommerce-page ul.products,
  .woocommerce ul.products[class*="columns-"],.woocommerce-page ul.products[class*="columns-"]{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.9rem}
  .woocommerce ul.products li.product .product-card__body{padding:.7rem .75rem}
  .woocommerce ul.products li.product .product-card__actions{padding:.6rem .75rem}
}
