/* Woiya Design v2 — RC2 Preview 2: Compact Minimal Runtime Correction
 * Goal: tighter editorial geometry from real Woiya runtime screenshots.
 */
body.theme-woiya{
  --w2-wide:1120px;
  --w2-standard:1040px;
  --w2-title:850px;
  --w2-reading:710px;
  --w2-radius-image:7px;
  --w2-radius-card:8px;
}

/* Global shell: narrower, calmer, less empty. */
body.theme-woiya .w2-container{width:min(calc(100% - 36px),var(--w2-wide))}
body.theme-woiya .w2-header-row.t26-header-inner,
body.theme-woiya .w2-trending-inner,
body.theme-woiya .w2-footer-grid.t26-footer-inner,
body.theme-woiya .w2-footer-bottom.t26-footer-bottom{width:min(calc(100% - 36px),var(--w2-wide))!important;max-width:var(--w2-wide)!important}
body.theme-woiya .w2-header-row.t26-header-inner{min-height:60px!important;grid-template-columns:auto minmax(0,1fr) minmax(220px,280px)!important;gap:18px!important}
body.theme-woiya .w2-logo.t26-logo img{max-width:116px!important;max-height:36px!important}
body.theme-woiya .w2-primary-nav>a,body.theme-woiya .w2-nav-more>summary{padding:0 9px!important;font-size:12px!important}
body.theme-woiya .w2-header-search{height:34px!important}
body.theme-woiya .w2-header-search input{height:32px!important;font-size:11.5px!important}
body.theme-woiya .w2-header-search button{width:34px!important;height:34px!important}
body.theme-woiya .w2-trending-inner{min-height:31px!important;gap:15px!important}
body.theme-woiya .w2-trending-track{gap:18px!important}
body.theme-woiya .w2-trending-label,body.theme-woiya .w2-trending-track a{font-size:10.5px!important}

/* Homepage compact composition. */
body.theme-woiya.home-page--woiya .w2rc2-home{padding-top:12px!important}
body.theme-woiya.home-page--woiya .w2rc2-hero{grid-template-columns:minmax(0,1.67fr) minmax(300px,.9fr)!important;gap:8px!important}
body.theme-woiya .w2rc2-hero-card--lead{min-height:368px!important}
body.theme-woiya .w2rc2-hero-side{height:368px!important;gap:7px!important}
body.theme-woiya .w2rc2-hero-card{border-radius:6px!important}
body.theme-woiya .w2rc2-hero-card--lead .w2rc2-hero-content{left:20px!important;right:22px!important;bottom:18px!important;max-width:540px!important}
body.theme-woiya .w2rc2-hero-title{font-size:28px!important;line-height:1.07!important}
body.theme-woiya .w2rc2-hero-excerpt{font-size:11.5px!important;line-height:1.42!important;max-width:520px!important}
body.theme-woiya .w2rc2-hero-side-title{font-size:12px!important}
body.theme-woiya .w2rc2-hero-side-item--0 .w2rc2-hero-side-title,body.theme-woiya .w2rc2-hero-side-item--3 .w2rc2-hero-side-title{font-size:13.5px!important}
body.theme-woiya .w2rc2-section-head{margin-bottom:10px!important}
body.theme-woiya .w2rc2-section-head h2{font-size:20px!important}

/* Device cards stay compact even when only 1–3 products exist. */
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya>.tech-home-slot__head{margin:18px 0 9px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya>.tech-home-devices{
  grid-template-columns:repeat(auto-fit,minmax(170px,205px))!important;
  justify-content:start!important;
  gap:9px!important;
}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-slot__title{font-size:20px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-device__media{height:112px!important;padding:9px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-device__body{min-height:58px!important;padding:7px 9px 9px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-device h3{font-size:12px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya>.tech-home-brands{
  grid-template-columns:105px repeat(auto-fit,minmax(92px,120px))!important;
  justify-content:start!important;
  gap:7px!important;
  margin-top:18px!important;
  padding-top:11px!important;
}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-brands__label{font-size:18px!important}
body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-brand{min-height:42px!important;padding:7px 10px!important;font-size:10.5px!important}

body.theme-woiya.home-page--woiya .w2rc2-latest{margin-top:22px!important}
body.theme-woiya .w2rc2-latest-grid{grid-template-columns:minmax(0,1.12fr) minmax(260px,.88fr) minmax(190px,.62fr)!important;gap:15px!important}
body.theme-woiya .w2rc2-latest-grid--no-picks{grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr)!important;max-width:820px}
body.theme-woiya .w2rc2-latest-feature__media{border-radius:5px!important}
body.theme-woiya .w2rc2-latest-feature h3{font-size:18px!important}
body.theme-woiya .w2rc2-latest-feature p{font-size:11px!important}
body.theme-woiya .w2rc2-news-row{gap:9px!important;padding-bottom:9px!important;margin-bottom:9px!important}
body.theme-woiya .w2rc2-news-row__media{width:100px!important}
body.theme-woiya .w2rc2-news-row h3{font-size:11.5px!important}
body.theme-woiya.home-page--woiya .w2rc2-reviews{margin-top:22px!important;padding:15px 16px 17px!important;border-radius:6px!important}
body.theme-woiya .w2rc2-review-grid{gap:8px!important}
body.theme-woiya .w2rc2-review-content strong{font-size:11.5px!important}
body.theme-woiya.home-page--woiya .w2-home-more{margin-top:24px!important}
body.theme-woiya .w2-home-more__grid{gap:12px!important}

/* Product: compact and robust when media is missing. */
body.theme-woiya.woiya-tech-product .tech-shell{width:min(calc(100% - 36px),1040px)!important;max-width:1040px!important}
body.theme-woiya .w2rc2-product-breadcrumb{margin-bottom:12px!important;font-size:10px!important}
body.theme-woiya .w2rc2-product-top{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) minmax(220px,.66fr)!important;gap:18px!important;padding-bottom:14px!important}
body.theme-woiya .w2rc2-product-top--no-media{grid-template-columns:minmax(0,650px) minmax(210px,260px)!important;justify-content:start!important}
body.theme-woiya .w2rc2-product-top--no-media .w2rc2-product-summary{padding-top:2px!important}
body.theme-woiya .w2rc2-product-top--no-media .w2rc2-coverage-sidebar{align-self:start}
body.theme-woiya .w2rc2-product-gallery{grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important}
body.theme-woiya .w2rc2-product-thumbs a{width:44px!important;height:48px!important}
body.theme-woiya .w2rc2-product-image{min-height:270px!important;padding:8px!important}
body.theme-woiya .w2rc2-product-image img{height:270px!important}
body.theme-woiya .w2rc2-product-summary{padding-top:8px!important}
body.theme-woiya .w2rc2-product-brand a{font-size:14px!important}
body.theme-woiya .w2rc2-product-title-row h1{font-size:31px!important}
body.theme-woiya .w2rc2-product-lead{margin-top:10px!important;font-size:11.5px!important;line-height:1.45!important;max-width:520px!important}
body.theme-woiya .w2rc2-quick-specs{margin-top:13px!important}
body.theme-woiya .w2rc2-quick-spec{padding:10px 5px 9px!important}
body.theme-woiya .w2rc2-quick-icon{width:20px!important;height:20px!important;margin-bottom:4px!important}
body.theme-woiya .w2rc2-quick-spec strong{font-size:11px!important}
body.theme-woiya .w2rc2-product-actions{margin-top:13px!important}
body.theme-woiya .w2rc2-product-actions .w2-btn{min-height:34px!important;padding:0 12px!important;font-size:9.5px!important}
body.theme-woiya .w2rc2-coverage-sidebar{padding:9px 10px!important}
body.theme-woiya .w2rc2-product-nav .tech-shell{gap:20px!important}
body.theme-woiya .w2rc2-product-nav a{min-height:38px!important;font-size:10px!important}
body.theme-woiya .w2rc2-product-content{grid-template-columns:minmax(0,1fr) 235px!important;gap:18px!important;padding-top:16px!important;padding-bottom:48px!important}
body.theme-woiya .w2rc2-overview{grid-template-columns:minmax(0,1fr) 220px!important;gap:18px!important;padding-bottom:14px!important}
body.theme-woiya .w2rc2-overview h2,body.theme-woiya .w2rc2-section-title h2{font-size:18px!important}
body.theme-woiya .w2rc2-overview-copy p{font-size:11px!important;line-height:1.5!important}
body.theme-woiya .w2rc2-commerce{gap:8px!important;margin-bottom:14px!important}
body.theme-woiya .w2rc2-panel{padding:10px!important}
body.theme-woiya .w2rc2-specs{gap:8px!important}
body.theme-woiya .w2rc2-spec-row{grid-template-columns:150px minmax(0,1fr)!important;font-size:9px!important}
body.theme-woiya .w2rc2-spec-row>span,body.theme-woiya .w2rc2-spec-row>strong{padding:5px 8px!important}

/* Footer: compact, remove large dead area. */
body.theme-woiya .w2-footer.t26-footer{margin-top:52px!important;padding-top:34px!important}
body.theme-woiya .w2-footer-grid.t26-footer-inner{grid-template-columns:minmax(230px,1.35fr) repeat(3,minmax(110px,.8fr))!important;gap:28px!important}
body.theme-woiya .w2-footer-logo img{max-width:112px!important;max-height:36px!important}
body.theme-woiya .w2-footer-tagline{max-width:280px!important;margin-top:8px!important;font-size:11.5px!important;line-height:1.55!important}
body.theme-woiya .w2-footer-col h4{margin-bottom:10px!important;font-size:11px!important}
body.theme-woiya .w2-footer-links a{margin-bottom:5px!important;font-size:11px!important}
body.theme-woiya .w2-footer-social{margin-top:12px!important}
body.theme-woiya .w2-footer-social .t26-social-square{width:30px!important;height:30px!important}
body.theme-woiya .w2-footer-bottom.t26-footer-bottom{margin-top:26px!important;padding:13px 0 16px!important;font-size:10px!important}

@media(max-width:1100px){
  body.theme-woiya .w2-header-row.t26-header-inner{grid-template-columns:auto minmax(0,1fr) minmax(190px,240px)!important}
  body.theme-woiya .w2rc2-product-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  body.theme-woiya .w2rc2-product-top--no-media{grid-template-columns:minmax(0,1fr)!important}
  body.theme-woiya .w2rc2-product-top--no-media .w2rc2-product-summary{max-width:680px}
}

@media(max-width:767px){
  body.theme-woiya{--w2-wide:100%;--w2-standard:100%;--w2-title:100%;--w2-reading:100%}
  body.theme-woiya .w2-header-row.t26-header-inner{grid-template-columns:42px minmax(0,1fr) 42px!important;min-height:54px!important;padding:0 7px!important}
  body.theme-woiya .w2-logo.t26-logo img{max-width:101px!important}
  body.theme-woiya .w2-trending-inner{width:100%!important;padding:0 10px!important}
  body.theme-woiya.home-page--woiya .w2rc2-home .w2-home-flow{padding:0 9px!important}
  body.theme-woiya .w2rc2-hero-card--lead{aspect-ratio:1.08/1!important}
  body.theme-woiya .w2rc2-hero-title{font-size:22px!important}
  body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-device{flex-basis:122px!important;max-width:122px!important}
  body.theme-woiya.home-page--woiya .tech-home-slot--theme-woiya .tech-home-device__media{height:94px!important}
  body.theme-woiya.home-page--woiya .w2rc2-latest{margin-top:18px!important}
  body.theme-woiya .w2rc2-latest-grid--no-picks{max-width:none}
  body.theme-woiya.home-page--woiya .w2rc2-reviews{margin-top:18px!important}
  body.theme-woiya .w2-footer.t26-footer{margin-top:40px!important;padding-top:28px!important}
  body.theme-woiya .w2-footer-grid.t26-footer-inner{gap:22px 18px!important}
  body.theme-woiya.woiya-tech-product .tech-shell{width:100%!important;max-width:100%!important}
  body.theme-woiya .w2rc2-product-top--no-media{display:block!important}
  body.theme-woiya .w2rc2-product-title-row h1{font-size:25px!important}
}


/* RC2 Preview 3 — drawer leak fix + brand identity media */
body.theme-woiya .w2-drawer.t26-drawer{
  left:0!important;
  transform:translateX(calc(-100% - 8px))!important;
  transition:transform .22s ease!important;
  will-change:transform;
}
body.theme-woiya .w2-drawer.t26-drawer.open{
  left:0!important;
  transform:translateX(0)!important;
}
body.theme-woiya .w2-drawer-bg.t26-drawer-bg:not([style*="display: block"]){pointer-events:none!important}
body.theme-woiya .tech-brand-card.has-logo{
  grid-template-columns:52px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto!important;
  column-gap:10px!important;
}
body.theme-woiya .tech-brand-card__logo{
  grid-row:1/3;
  width:52px;height:40px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #e8edf2;border-radius:7px;background:#fff;padding:5px;
}
body.theme-woiya .tech-brand-card__logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
body.theme-woiya .w2-brand-identity{display:flex;align-items:center;gap:16px;min-width:0}
body.theme-woiya .w2-brand-logo{
  width:92px;height:64px;flex:0 0 92px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #e7ebf0;border-radius:9px;background:#fff;padding:8px;
}
body.theme-woiya .w2-brand-logo img{max-width:100%;max-height:100%;object-fit:contain;display:block}
@media(max-width:767px){
  body.theme-woiya .w2-brand-identity{align-items:flex-start;gap:12px}
  body.theme-woiya .w2-brand-logo{width:72px;height:52px;flex-basis:72px;padding:6px}
}
