/* Ultra final V2: polish and public-safety guardrails. */
:root{
  --acor-card-radius: 24px;
  --acor-control-radius: 999px;
  --acor-focus: 0 0 0 3px rgba(213,165,37,.28);
}

.page-card,
.product-card,
.product-showcase-card,
.product-line-card,
.blog-card,
.article-card,
.calc-section,
.calc-result,
.contact-panel,
.tool-shortcut,
.acor-color-card,
.acor-color-modal-dialog,
.product-detail-dialog{
  border-radius:var(--acor-card-radius);
}

.btn,
.calc-btn,
.calc-mode-btn,
.calc-mt-btn,
.calc-add-btn,
.product-detail-trigger,
.acor-color-card-actions button,
.acor-color-card-actions a{
  border-radius:var(--acor-control-radius);
  min-height:44px;
}

.btn:focus-visible,
.calc-btn:focus-visible,
.calc-mode-btn:focus-visible,
.calc-mt-btn:focus-visible,
.calc-add-btn:focus-visible,
.product-detail-trigger:focus-visible,
.page-nav a:focus-visible,
.acor-color-card-actions button:focus-visible,
.acor-color-card-actions a:focus-visible{
  outline:none;
  box-shadow:var(--acor-focus);
}

.page-lead,
.page-card-text,
.product-card-copy,
.product-card-fit,
.article-card p,
.calc-sub,
.calc-note,
.calc-product-note,
.contact-panel span{
  line-height:1.68;
}

.product-card-body,
.page-card,
.blog-card,
.article-card{
  gap:16px;
}

.product-card-media img,
.blog-card img,
.article-card img,
.acor-color-ambient-card img{
  object-fit:cover;
}

.product-card-tech span,
.product-detail-fact,
.calc-result-cell{
  overflow-wrap:anywhere;
}

.calc-product-note{
  margin:.6rem 0 0;
  color:rgba(255,255,255,.72);
  font-size:.88rem;
}

.product-safe-note,
.product-detail-note,
.calc-result-warn{
  line-height:1.65;
}

.acor-color-card{
  min-width:0;
}

.acor-color-card-name,
.acor-color-card-meta{
  overflow-wrap:anywhere;
}

@media (max-width: 640px){
  body{
    overflow-x:hidden;
  }

  .ct,
  .page-section,
  .page-hero,
  .product-tech-section{
    width:min(100% - 28px, 1120px);
  }

  .page-hero{
    padding-top:42px;
    padding-bottom:42px;
  }

  .page-title,
  .lg{
    line-height:1.05;
  }

  .page-actions,
  .product-actions,
  .calc-actions,
  .product-detail-actions,
  .acor-color-card-actions{
    gap:10px;
  }

  .page-actions .btn,
  .product-actions .btn,
  .calc-actions .calc-btn,
  .product-detail-actions .btn,
  .acor-color-card-actions button,
  .acor-color-card-actions a{
    width:100%;
    justify-content:center;
    text-align:center;
    white-space:normal;
  }

  .product-card{
    min-height:0;
  }

  .product-card-media{
    min-height:210px;
  }

  .product-card-copy,
  .product-card-fit,
  .product-card-features,
  .product-card-tech{
    font-size:.95rem;
  }

  .calc-grid-2,
  .calc-input-row,
  .calc-result-grid,
  .product-detail-facts{
    grid-template-columns:1fr!important;
  }

  .calc-input,
  .calc-select{
    min-height:48px;
  }

  .acor-color-grid,
  .acor-grid{
    grid-template-columns:1fr!important;
  }
}

@media (min-width: 641px) and (max-width: 1024px){
  .product-grid,
  .page-grid,
  .article-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
