/* Standalone theme-neutral fallback; theme controls its own site width. */
body.hutx-archive .hutx-main{width:100%;max-width:100%;box-sizing:border-box;padding:24px clamp(16px,3vw,48px) 64px;margin:0 auto}
body.hutx-archive .hutx-content{width:100%;max-width:100%;}
body.hutx-archive .hutx-hero{display:flex;align-items:center;justify-content:space-between;gap:clamp(20px,4vw,64px);background:#f5f6f8;border-radius:12px;padding:clamp(20px,3vw,48px);margin:0 0 32px}
body.hutx-archive .hutx-hero-copy{flex:1;min-width:0}body.hutx-archive .hutx-hero h1{margin:0 0 12px}body.hutx-archive .hutx-summary{font-size:1.08em;line-height:1.65;margin:0;max-width:70ch}
body.hutx-archive .hutx-hero-image{width:36%;flex:0 0 36%}body.hutx-archive .hutx-hero-image img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover;border-radius:10px}
body.hutx-archive .hutx-hub-grid{display:grid;grid-template-columns:repeat(var(--hutx-hub-desktop,4),minmax(0,1fr));gap:24px;margin:0 0 36px}
body.hutx-archive .hutx-hub-card{border:1px solid #e1e5eb;border-radius:12px;padding:18px;min-width:0;background:#fff;overflow:hidden}
body.hutx-archive .hutx-hub-card a{text-decoration:none}body.hutx-archive .hutx-hub-card img{display:block;width:100%;height:190px;object-fit:cover;border-radius:8px;margin-bottom:14px}body.hutx-archive .hutx-hub-card h2{font-size:1.25rem;margin:0 0 10px}body.hutx-archive .hutx-hub-card p{margin:0;line-height:1.6}
body.hutx-archive .hutx-description{margin-top:36px;line-height:1.8}body.hutx-archive .hutx-group{margin-bottom:42px}
.hutx-meta-line{display:block}
@media(max-width:900px){body.hutx-archive .hutx-hub-grid{grid-template-columns:repeat(var(--hutx-hub-tablet,2),minmax(0,1fr))}}
@media(max-width:600px){body.hutx-archive .hutx-hero{flex-direction:column;align-items:stretch}body.hutx-archive .hutx-hero-image{width:100%;flex:auto}body.hutx-archive .hutx-hub-grid{grid-template-columns:repeat(var(--hutx-hub-mobile,1),minmax(0,1fr))}}

/* Stable HUB card media height; the theme may override through its own stylesheet. */
body.hutx-archive .hutx-hub-card > a > img{width:100%;height:250px;object-fit:cover;display:block;}

/* Group headings and archive links; product cards remain owned by WooCommerce/theme. */
body.hutx-archive .hutx-group{margin-block:0 32px;}
body.hutx-archive .hutx-group > h2{font-size:30px;line-height:1.25;font-weight:inherit;margin:0 0 24px;overflow-wrap:break-word;}
body.hutx-archive .hutx-group > .hutx-view-all{display:flex;justify-content:flex-end;align-items:center;margin:18px 0 0;line-height:1.4;}
body.hutx-archive .hutx-group > .hutx-view-all a{display:inline-flex;align-items:center;gap:9px;text-decoration:none;font-size:0.95rem;font-weight:600;color:inherit;transition:opacity .2s ease;}
body.hutx-archive .hutx-group > .hutx-view-all a::after{content:"\2192";display:inline-block;font-size:1.15em;line-height:1;transition:transform .2s ease;}
body.hutx-archive .hutx-group > .hutx-view-all a:hover{opacity:.75;}
body.hutx-archive .hutx-group > .hutx-view-all a:hover::after{transform:translateX(3px);}
body.hutx-archive .hutx-group > .hutx-view-all a:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:2px;}
@media(max-width:900px){body.hutx-archive .hutx-group > h2{font-size:26px;line-height:1.3;margin-bottom:20px;}}
@media(max-width:600px){body.hutx-archive .hutx-group{margin-bottom:28px;}body.hutx-archive .hutx-group > h2{font-size:22px;line-height:1.35;margin-bottom:18px;}body.hutx-archive .hutx-group > .hutx-view-all{margin-top:14px;}}
@media(prefers-reduced-motion:reduce){body.hutx-archive .hutx-group > .hutx-view-all a,body.hutx-archive .hutx-group > .hutx-view-all a::after{transition:none;}}
/* HUB cards: restrained interactive feedback, including keyboard navigation. */
body.hutx-archive .hutx-hub-card{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
body.hutx-archive .hutx-hub-card:hover,body.hutx-archive .hutx-hub-card:focus-within{transform:translateY(-4px);box-shadow:0 12px 28px rgba(16,24,40,.11);border-color:#b7c4d9}
body.hutx-archive .hutx-hub-card>a{display:block;overflow:hidden;border-radius:8px}
body.hutx-archive .hutx-hub-card>a img{transition:transform .28s ease}
body.hutx-archive .hutx-hub-card:hover>a img,body.hutx-archive .hutx-hub-card:focus-within>a img{transform:scale(1.025)}
body.hutx-archive .hutx-hub-card>a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* Responsive geometry: scoped to Huuguu Taxonomy archive only.
   Equal specificity for desktop, tablet and mobile; theme cards remain intact. */
body.hutx-archive .hutx-products-layout ul.products,
body.hutx-archive .woocommerce.hutx-content .hutx-products-layout ul.products[class*="columns-"] {
 display:grid !important;
 grid-template-columns:repeat(var(--hutx-products-desktop,4),minmax(0,1fr)) !important;
 gap:var(--hutx-products-gap,24px) !important;
 align-items:stretch;
 width:100% !important;
 max-width:100% !important;
 min-width:0;
 box-sizing:border-box;
}
body.hutx-archive .hutx-products-layout ul.products::before,
body.hutx-archive .hutx-products-layout ul.products::after{display:none !important}
body.hutx-archive .hutx-products-layout ul.products>li.product,
body.hutx-archive .woocommerce.hutx-content .hutx-products-layout ul.products>li.product {
 float:none !important;clear:none !important;
 width:100% !important;max-width:none !important;min-width:0 !important;
 margin:0 !important;flex:none !important;box-sizing:border-box;
}
body.hutx-archive .hutx-products-layout,
body.hutx-archive .hutx-content {min-width:0;max-width:100%;}
@media(max-width:900px){
 body.hutx-archive .hutx-products-layout ul.products,
 body.hutx-archive .woocommerce.hutx-content .hutx-products-layout ul.products[class*="columns-"]{
  grid-template-columns:repeat(var(--hutx-products-tablet,2),minmax(0,1fr)) !important;
 }
}
@media(max-width:600px){
 body.hutx-archive .hutx-products-layout ul.products,
 body.hutx-archive .woocommerce.hutx-content .hutx-products-layout ul.products[class*="columns-"]{
  grid-template-columns:repeat(var(--hutx-products-mobile,2),minmax(0,1fr)) !important;
  gap:12px !important;
 }
}
/* Physical-device fallback: protects mobile when a third-party theme omits
   or overrides the viewport meta tag, causing CSS media queries to see 980px. */
body.hutx-archive.hutx-physical-tablet .hutx-products-layout ul.products,
body.hutx-archive.hutx-physical-tablet .woocommerce.hutx-content .hutx-products-layout ul.products[class*="columns-"]{
 grid-template-columns:repeat(var(--hutx-products-tablet,2),minmax(0,1fr)) !important;
}
body.hutx-archive.hutx-physical-mobile .hutx-products-layout ul.products,
body.hutx-archive.hutx-physical-mobile .woocommerce.hutx-content .hutx-products-layout ul.products[class*="columns-"]{
 grid-template-columns:repeat(var(--hutx-products-mobile,2),minmax(0,1fr)) !important;
 gap:12px !important;
}
@media(prefers-reduced-motion:reduce){
 body.hutx-archive .hutx-hub-card,body.hutx-archive .hutx-hub-card>a img{transition:none}
 body.hutx-archive .hutx-hub-card:hover,body.hutx-archive .hutx-hub-card:focus-within{transform:none}
 body.hutx-archive .hutx-hub-card:hover>a img,body.hutx-archive .hutx-hub-card:focus-within>a img{transform:none}
}

/* Starter integration: use the same responsive width and body spacing as native archives.
   No effect on other themes. */
body.hutx-archive .hutx-main.hutx-starter-wrap {
  width:min(var(--huuguu-starter-wrap,1240px),calc(100% - 48px));
  max-width:none;
  padding:var(--huuguu-starter-body-pad-top,42px) 0 var(--huuguu-starter-body-pad-bottom,70px);
  margin-inline:auto;
}
@media (max-width:900px) {
  body.hutx-archive .hutx-main.hutx-starter-wrap {
    width:min(440px,calc(100% - 32px));
    padding:24px 0 48px;
  }
}
@media (max-width:480px) {
  body.hutx-archive .hutx-main.hutx-starter-wrap {
    width:min(360px,calc(100% - 24px));
    padding-top:14px;
  }
}

/* Native archive FAQ, aligned to the active theme container. */
body.hutx-archive .hutx-faq{margin:clamp(32px,4vw,56px) 0 0;max-width:100%;}
body.hutx-archive .hutx-faq__title{font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.3;margin:0 0 20px;}
body.hutx-archive .hutx-faq__item{border-bottom:1px solid #dce1e9;}
body.hutx-archive .hutx-faq__item:first-of-type{border-top:1px solid #dce1e9;}
body.hutx-archive .hutx-faq__item summary{cursor:pointer;padding:18px 28px 18px 0;font-weight:600;line-height:1.5;}
body.hutx-archive .hutx-faq__item summary:focus-visible{outline:2px solid currentColor;outline-offset:3px;}
body.hutx-archive .hutx-faq__answer{padding:0 0 18px;line-height:1.75;}
body.hutx-archive .hutx-faq__answer p:last-child{margin-bottom:0;}
