/* Shared layout and interaction repairs; the original palette and components stay in site.css. */
html { min-height:100%; }
body { display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; padding-bottom:0!important; }
body > header, body > footer, body > section { flex-shrink:0; }
.site-main { flex:1 0 auto; min-width:0; }
.site-footer { margin-top:auto; margin-bottom:0!important; padding-bottom:0; flex-shrink:0; }
body > script, body > style { display:none; }
.min-w-0 { min-width:0; }
.sia-fact-tile > .min-w-0 { flex:1; }
.sia-fact-label, .sia-fact-val { overflow-wrap:anywhere; white-space:normal!important; text-overflow:clip!important; }
.pi-catalog-section .pi-square-frame { aspect-ratio:16/10; --mdb-aspect-ratio:62.5%; }
.pi-square-frame.ratio::before { display:none; }
.pi-catalog-section .pi-square-frame img { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:cover; }
.atlas-case-grid, .atlas-owner-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.atlas-owner-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.atlas-case-grid > *, .atlas-owner-grid > * { min-width:0; }
.atlas-case-link { text-decoration:underline; text-underline-offset:4px; font-weight:700; }
.atlas-catalog-image { display:block; aspect-ratio:16/9; overflow:hidden; }
.atlas-catalog-image img { width:100%; height:100%; object-fit:cover; display:block; }
.atlas-lineage { display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; list-style:none; padding:0; margin:24px 0; }
.atlas-lineage li { position:relative; background:var(--surface-alt,#f5f0eb); border:1px solid var(--border,#e4ded8); border-radius:12px; padding:12px 16px; font-weight:700; }
.atlas-lineage li:not(:last-child)::after { content:'→'; position:absolute; right:-23px; top:50%; transform:translateY(-50%); }
.atlas-contact-card { max-width:860px; margin-inline:auto; }
.atlas-inquiry-form { width:100%; min-width:0; text-align:left; }
.atlas-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.atlas-form-grid > div { min-width:0; }
.atlas-form-wide { grid-column:1/-1; }
.atlas-inquiry-form label { display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.atlas-inquiry-form .form-control { background:#fff; color:#251e17; border:1px solid #b6aea7; padding:12px; font-size:16px; line-height:1.5; border-radius:8px; width:100%; }
.atlas-inquiry-form textarea { resize:vertical; }
.atlas-inquiry-form .form-control:focus { outline:2px solid var(--accent,#f9c2ca); outline-offset:2px; }
.atlas-inquiry-form .atlas-form-consent { display:flex; gap:10px; align-items:flex-start; margin:18px 0; font-weight:400; }
.atlas-form-consent input { flex-shrink:0; width:18px; height:18px; margin-top:3px; accent-color:var(--primary,#171513); }
.atlas-form-consent a { text-decoration:underline; }
.atlas-form-status { margin:12px 0 0; }
.atlas-form-status:empty { display:none; }
.atlas-inquiry-form button[disabled] { opacity:.65; cursor:wait; }
.atlas-thanks-dialog { border:1px solid var(--border,#e4ded8); border-radius:20px; padding:32px; max-width:500px; width:calc(100% - 32px); text-align:center; color:var(--text,#251e17); background:var(--surface,#fff); }
.atlas-thanks-dialog::backdrop { background:rgba(0,0,0,.55); }
.atlas-success-check { display:block; width:48px; height:48px; flex-shrink:0; margin:auto; }
.sia-thx-icon-wrap, .sia-thx-card__icon-wrap { display:flex!important; align-items:center!important; justify-content:center!important; margin-inline:auto!important; width:72px; height:72px; }
.atlas-confirmation-banner { text-align:center; padding:16px; background:var(--surface-alt,#f5f0eb); }
.article-tabs-container, .article-tabs-content-area, .article-tab-pane, .article-specs-table-wrapper { min-width:0; max-width:100%; }
.table-responsive { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
.table-responsive .badge { white-space:normal; line-height:1.5; text-align:left; overflow-wrap:anywhere; }
.article-specs-table-wrapper table { width:100%; table-layout:fixed; }
.article-specs-table-wrapper th, .article-specs-table-wrapper td { overflow-wrap:anywhere; white-space:normal; vertical-align:top; }
@media(max-width:991.98px) {
  .sia-header .sia-collapse.show { max-height:calc(100dvh - 104px); overflow-y:auto; }
  .sia-header .sia-dropdown { width:100%; }
}
@media(max-width:767.98px) {
  .atlas-case-grid, .atlas-owner-grid, .atlas-form-grid { grid-template-columns:1fr; }
  .atlas-lineage { flex-direction:column; align-items:stretch; gap:28px; }
  .atlas-lineage li { text-align:center; }
  .atlas-lineage li:not(:last-child)::after { right:50%; top:auto; bottom:-26px; transform:translateX(50%) rotate(90deg); }
  .article-tabs-container { padding:20px!important; }
  .article-tabs-container [role="tablist"] { display:flex; flex-wrap:wrap; gap:8px; width:100%; }
  .article-tab-btn { display:flex; align-items:center; justify-content:center; gap:6px; flex:1 1 100%; padding:12px!important; white-space:normal; }
  .article-tab-btn i { flex-shrink:0; }
  .article-specs-table-wrapper table { table-layout:auto; min-width:560px; }
  .article-specs-table-wrapper th, .article-specs-table-wrapper td { font-size:13px; padding:12px; }
  .atlas-thanks-dialog { padding:24px; }
}
