/* === RESET & ROOT === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f2040;
  --navy-mid:   #1a3560;
  --navy-soft:  #2a4a7f;
  --navy-pale:  #e8edf5;
  --navy-ghost: #f0f3f8;
  --white:      #ffffff;
  --bg:         #f7f9fc;
  --ink:        #0f2040;
  --ink-soft:   #4a5568;
  --ink-muted:  #8899aa;
  --border:     #dde3ed;
  --success-bg: #f0f9f4;
  --success-br: #a8d5bc;
  --success-tx: #0d6e3f;
  --warn-bg:    #fff8e6;
  --warn-br:    #f0c040;
  --danger-bg:  #fef2f2;
  --danger-br:  #f0a0a0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15,32,64,0.07);
  --shadow:    0 2px 10px rgba(15,32,64,0.10);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SKIP LINK (accessibility) === */
.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--navy); color: white;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.85rem; z-index: 9999; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 2.5rem; height: 62px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-mid);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400;
  color: var(--white); text-decoration: none; white-space: nowrap;
  letter-spacing: 0.01em; flex-shrink: 0;
}
.nav-logo span { color: #7fa8d8; }
.nav-links { display: flex; gap: 0.125rem; margin-left: auto; }
.nav-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
  text-decoration: none; font-weight: 400;
  padding: 0.4rem 0.9rem; border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.09); }
.nav-links a.active { color: white; background: rgba(255,255,255,0.14); font-weight: 500; }
.nav-menu {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.3);
  color: white; font-size: 1rem; cursor: pointer;
  margin-left: auto; padding: 0.35rem 0.65rem; border-radius: var(--radius);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  background: var(--navy-mid); padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--navy-soft);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 0.875rem; padding: 0.5rem 0.5rem;
  border-radius: var(--radius); transition: background 0.15s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: white; background: rgba(255,255,255,0.1); }

/* === HERO === */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2.5rem 3rem;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy-soft);
  background: var(--navy-pale); padding: 0.3rem 0.8rem;
  border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400; line-height: 1.15;
  color: var(--navy); margin-bottom: 0.9rem;
}
.hero h1 em { font-style: italic; color: var(--navy-soft); }
.hero-sub {
  font-size: 1rem; color: var(--ink-soft);
  max-width: 560px; font-weight: 300; line-height: 1.75;
}

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0.6rem 2.5rem;
}
.breadcrumb-inner {
  max-width: 780px; margin: 0 auto;
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.78rem; color: var(--ink-muted);
}
.breadcrumb a { color: var(--navy-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink-muted); }

/* === CONTAINER === */
.container { max-width: 780px; margin: 0 auto; padding: 2.5rem 2rem; }

/* === CALC CARDS === */
.calc-section { margin-bottom: 2.5rem; }
.input-group-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.input-group-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 400;
  margin-bottom: 1.25rem; color: var(--navy);
}

/* === ROOM ROWS === */
.room-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.625rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.18s ease;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } }
.room-row-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem;
}
.room-name-input {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  border: none; background: none; color: var(--ink); padding: 0; outline: none; flex: 1;
}
.room-name-input::placeholder { color: var(--ink-muted); }
.room-sqft-display {
  font-family: var(--serif); font-size: 1.15rem; color: var(--navy); white-space: nowrap;
}
.room-delete {
  background: none; border: none; cursor: pointer; color: var(--ink-muted);
  font-size: 0.85rem; padding: 3px 7px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s; flex-shrink: 0;
}
.room-delete:hover { color: #c00; background: var(--danger-bg); }

/* === INPUTS === */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-field { display: flex; flex-direction: column; gap: 0.35rem; }
.input-field label { font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.02em; }
.input-wrap { position: relative; }
.input-wrap input, select {
  width: 100%; padding: 0.6rem 2.75rem 0.6rem 0.8rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap input:focus, select:focus {
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 3px rgba(42,74,127,0.1);
}
.input-unit {
  position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
  font-size: 0.72rem; color: var(--ink-muted); pointer-events: none; font-weight: 500;
}
select { padding-right: 0.8rem; cursor: pointer; }

/* === BUTTONS === */
.btn-add {
  display: flex; align-items: center; gap: 0.5rem;
  background: none; border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg); padding: 0.8rem 1.25rem;
  width: 100%; cursor: pointer; font-family: var(--sans);
  font-size: 0.875rem; color: var(--ink-muted);
  transition: all 0.15s; margin-bottom: 1.25rem;
}
.btn-add:hover { border-color: var(--navy-soft); color: var(--navy); background: var(--navy-ghost); }

.btn-primary {
  display: block; width: 100%; margin-top: 1.25rem;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius);
  padding: 0.85rem 1.5rem; font-family: var(--sans);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  letter-spacing: 0.02em; text-align: center;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--navy-mid); }
.btn-primary:active { transform: scale(0.99); }

/* === RESULTS PANEL === */
.results-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); animation: fadeUp 0.2s ease;
}
.results-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 0.875rem; margin-bottom: 1.75rem;
}
.result-card {
  background: var(--navy-ghost); border-radius: var(--radius);
  padding: 1rem 1.25rem; border: 1px solid var(--border);
}
.result-card.primary { background: var(--navy); border-color: var(--navy); }
.result-label {
  font-size: 0.68rem; color: var(--ink-muted); margin-bottom: 0.3rem;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.result-card.primary .result-label { color: rgba(255,255,255,0.55); }
.result-value { font-family: var(--serif); font-size: 1.9rem; line-height: 1; margin-bottom: 0.2rem; color: var(--navy); }
.result-card.primary .result-value { color: white; }
.result-unit { font-size: 0.75rem; color: var(--ink-muted); }
.result-card.primary .result-unit { color: rgba(255,255,255,0.55); }

/* === ESTIMATES === */
.estimates-section { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.estimates-title { font-size: 0.68rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }
.estimates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.estimate-item {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.75rem; background: var(--navy-ghost);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.estimate-icon { font-size: 1.2rem; flex-shrink: 0; }
.estimate-name { font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 2px; }
.estimate-val { font-size: 0.95rem; font-weight: 500; color: var(--navy); }
.estimates-note { font-size: 0.72rem; color: var(--ink-muted); margin-top: 1rem; font-style: italic; }

/* === TABLE CALC === */
.rec-box {
  padding: 1.25rem 1.5rem; background: var(--navy-ghost);
  border-radius: var(--radius-lg); margin-bottom: 1.5rem;
  border-left: 3px solid var(--navy);
}
.rec-title { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--navy); }
.rec-detail { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.rec-seats { font-size: 1.3rem; font-family: var(--serif); color: var(--navy-soft); margin: 0.5rem 0 0; }

.section-label { font-size: 0.68rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.clearance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-bottom: 1.5rem; }
.clearance-item { padding: 0.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--navy-ghost); }
.clearance-label { font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 3px; }
.clearance-val { font-size: 1rem; font-weight: 500; color: var(--navy); }
.c-ok  { border-color: var(--success-br); background: var(--success-bg); }
.c-ok .clearance-val { color: var(--success-tx); }
.c-warn { border-color: var(--warn-br); background: var(--warn-bg); }
.c-bad  { border-color: var(--danger-br); background: var(--danger-bg); }

.shape-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.625rem; }
.shape-card { padding: 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--navy-ghost); }
.shape-name { font-weight: 500; font-size: 0.875rem; margin-bottom: 3px; color: var(--navy); }
.shape-size { font-size: 0.82rem; color: var(--ink-soft); }
.shape-seats { font-size: 0.75rem; color: var(--navy-soft); margin-top: 4px; font-weight: 500; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* === MODE TOGGLE === */
.mode-toggle { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.25rem; }
.mode-btn {
  flex: 1; padding: 0.6rem 1rem; border: none; background: var(--white);
  font-family: var(--sans); font-size: 0.82rem; cursor: pointer;
  color: var(--ink-soft); transition: all 0.15s;
}
.mode-btn + .mode-btn { border-left: 1px solid var(--border); }
.mode-btn.active { background: var(--navy); color: white; font-weight: 500; }

/* === DIM RESULTS === */
.dim-result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.625rem; margin-bottom: 1rem; }
.dim-card { padding: 1rem; background: var(--navy-ghost); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.dim-card-dims { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.dim-card-ratio { font-size: 0.7rem; color: var(--ink-muted); margin-top: 3px; }
.dim-card-label { font-size: 0.68rem; color: var(--navy-soft); font-weight: 600; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.context-note { font-size: 0.85rem; color: var(--ink-soft); background: var(--navy-ghost); padding: 0.625rem 0.875rem; border-radius: var(--radius); margin-bottom: 1rem; border-left: 3px solid var(--navy-pale); }

/* === INFO SECTION === */
.info-section { margin-bottom: 2.5rem; }
.section-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--navy); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.info-card h2 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; margin-bottom: 0.75rem; color: var(--navy); }
.info-card p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 0.75rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { color: var(--navy-soft); }
.size-list { list-style: none; }
.size-list li { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.size-list li:last-child { border-bottom: none; }
.size-list li span { color: var(--ink-soft); }
.size-list li strong { color: var(--navy); font-weight: 500; }

/* === RELATED === */
.related-section { margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; display: block; }
.related-card:hover { border-color: var(--navy-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.related-icon { font-size: 1.4rem; display: block; margin-bottom: 0.625rem; }
.related-card h3 { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--navy); }
.related-card p { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.5; margin: 0; }

/* === BLOG === */
.blog-container { max-width: 740px; }
.blog-toc { background: var(--navy-ghost); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.toc-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 600; margin-bottom: 0.75rem; }
.blog-toc ol { padding-left: 1.25rem; }
.blog-toc li { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.blog-toc a { color: var(--navy-soft); text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; }
.blog-intro { font-size: 1rem; color: var(--ink-soft); line-height: 1.85; margin-bottom: 2rem; font-weight: 300; }
.blog-article h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; margin: 2.5rem 0 1rem; color: var(--navy); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.blog-article p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.85; margin-bottom: 1rem; }
.blog-article strong { color: var(--ink); font-weight: 500; }
.blog-article a { color: var(--navy-soft); }

.formula-box { background: var(--navy); color: white; border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; text-align: center; }
.formula { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.formula-example { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin: 0; }
.formula-example strong { color: white; }

.diagram-box { background: var(--navy-ghost); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.blog-list { padding-left: 1.25rem; margin: 0.75rem 0 1rem; }
.blog-list li { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 0.4rem; }

.mat-table { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mat-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0.7rem 1rem; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.mat-row:last-child { border-bottom: none; }
.mat-head { background: var(--navy); }
.mat-head span { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.7); }
.mat-head span:first-child { color: white; }
.mat-row:not(.mat-head) span:first-child { color: var(--ink); font-weight: 500; }
.mat-row:not(.mat-head) span { color: var(--ink-soft); }
.mat-row:nth-child(even):not(.mat-head) { background: var(--navy-ghost); }

.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.tip-card { border-radius: var(--radius-lg); padding: 1.25rem; }
.tip-do { background: var(--success-bg); border: 1px solid var(--success-br); }
.tip-dont { background: var(--danger-bg); border: 1px solid var(--danger-br); }
.tip-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.tip-do .tip-label { color: var(--success-tx); }
.tip-dont .tip-label { color: #991b1b; }
.tip-card ul { padding-left: 1.1rem; }
.tip-card li { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.4rem; line-height: 1.5; }

.blog-calc-embed { background: var(--navy-ghost); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.5rem 0; }
.embed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.embed-header strong { font-size: 0.9rem; color: var(--navy); }
.embed-header span { font-size: 0.75rem; color: var(--ink-muted); background: var(--white); padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); }
.embed-result { background: white; border-radius: var(--radius); padding: 0.875rem 1rem; margin-top: 0.5rem; border: 1px solid var(--border); font-size: 0.9rem; color: var(--ink-soft); }
.embed-result strong { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; }
.embed-link { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.875rem; font-size: 0.82rem; color: var(--navy-soft); text-decoration: none; font-weight: 500; }
.embed-link:hover { text-decoration: underline; }

.blog-cta { background: var(--navy); color: white; border-radius: var(--radius-lg); padding: 2rem 2rem; margin: 3rem 0 1rem; text-align: center; }
.blog-cta h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; margin-bottom: 0.5rem; }
.blog-cta p { color: rgba(255,255,255,0.65); font-size: 0.875rem; margin-bottom: 1.25rem; }
.blog-cta .btn-cta { display: inline-block; background: white; color: var(--navy); padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; text-decoration: none; transition: background 0.15s; }
.blog-cta .btn-cta:hover { background: var(--navy-pale); }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; background: var(--white); }
.footer-inner { max-width: 780px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-brand .nav-logo { color: var(--navy); margin-bottom: 0.5rem; display: block; }
.footer-tagline { font-size: 0.78rem; color: var(--ink-muted); }
.footer-nav h4 { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 0.75rem; }
.footer-nav-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav-links a { font-size: 0.82rem; color: var(--ink-soft); text-decoration: none; }
.footer-nav-links a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { font-size: 0.75rem; color: var(--ink-muted); }
.footer-links-inline { display: flex; gap: 1rem; }
.footer-links-inline a { font-size: 0.75rem; color: var(--ink-muted); text-decoration: none; }

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .hero { padding: 2rem 1.25rem 1.75rem; }
  .breadcrumb { padding: 0.5rem 1.25rem; }
  .container { padding: 1.75rem 1.25rem; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .result-card.primary { grid-column: 1/-1; }
  .estimates-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .input-row { grid-template-columns: 1fr; }
  .dim-result-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .mode-toggle { border-radius: var(--radius); }
  .shape-grid { grid-template-columns: 1fr; }
  .clearance-grid { grid-template-columns: 1fr; }
  .mat-row { grid-template-columns: 1fr 1fr; }
  .mat-row span:last-child { display: none; }
  .mat-head span:last-child { display: none; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .related-grid { grid-template-columns: 1fr; }
  .dim-result-grid { grid-template-columns: 1fr; }
}
