/* ==========================================================================
   Atlas Blog Design System — Glass (Round 2)
   Shared styles for the Atlas blog, guides, contact and ADA calculator pages.
   All colors come from the Glass token layer in /assets/glass.css (loaded
   before this file): dark is the default theme, [data-theme="light"] is the
   full Figma light inversion. No hard-coded navy, no theme-pinned surfaces.
   ========================================================================== */

:root{
  color-scheme:dark;
  /* Legacy aliases, now bound to Glass tokens (both themes). */
  --line:var(--stroke);
  --surface:var(--glass-panel);
  --surface-soft:var(--selection-subtle);
  --surface-strong:var(--selection);
  --radius:var(--r-lg);
  /* Long-form body copy: content color at 92% so it reads soft, not stark. */
  --b-body:var(--content);
  --b-body:color-mix(in srgb, var(--content) 92%, transparent);
  --b-soft:var(--content-muted);
  --b-faint:var(--content-faint);
}
[data-theme="light"]{ color-scheme:light; }

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--content);
  background-color:var(--glass-page);
  background-image:var(--scrim-photo), url("/images/site-sky.webp");
  background-size:cover, cover;
  background-position:center, center;
  background-attachment:fixed, fixed;
  background-repeat:no-repeat, no-repeat;
  line-height:1.6;
}
a{ color:var(--accent); }
img{ max-width:100%; }
/* Glass chrome guard: the header/footer brand lockup keeps the content
   color (glass.css colors it by inheritance; the link rule above would
   otherwise tint the wordmark accent blue). */
.g-brand{ color:var(--content); }

/* ---------- Page shell ---------- */
.blog-shell{ max-width:900px; margin:0 auto; padding:28px 18px 60px; }
.blog-shell.wide{ max-width:1240px; }

.glass-panel{
  background:var(--glass-overlay);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  
  
  padding:30px;
}
@media (max-width:640px){ .glass-panel{ padding:20px; } }

/* ---------- Breadcrumb / back link ---------- */
.crumb{ margin:18px 0 14px; font-size:14px; }
.crumb a{ color:var(--accent); font-weight:700; text-decoration:none; }
.crumb a:hover{ text-decoration:underline; }

/* ---------- Article header ---------- */
.article-tag{
  display:inline-block;
  background:var(--glass-panel);
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:6px 14px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:var(--content);
  
  
  margin-bottom:16px;
}
.article-title{
  font-size:clamp(1.9rem, 4.5vw, 3rem);
  line-height:1.12;
  font-weight:800;
  margin:0 0 14px;
  color:var(--content);
}
.article-dek{
  font-size:1.1rem;
  color:var(--b-soft);
  max-width:70ch;
  margin:0 0 18px;
}
.article-meta{
  display:flex;
  gap:10px 18px;
  flex-wrap:wrap;
  align-items:center;
  font-size:13.5px;
  color:var(--b-faint);
  border-top:1px solid var(--stroke);
  padding-top:16px;
  margin-top:6px;
}
.article-meta span{ display:inline-flex; align-items:center; gap:6px; }

.article-hero-img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--stroke);
  margin:22px 0 6px;
  display:block;
}

/* ---------- Article body typography ---------- */
.article-body{ margin-top:8px; }
.article-body p, .article-body li{
  font-size:1.04rem;
  line-height:1.8;
  color:var(--b-body);
}
.article-body p{ margin:0 0 18px; }
.article-body h2{
  font-size:1.55rem;
  font-weight:800;
  margin:38px 0 14px;
  padding-top:6px;
  border-top:1px solid var(--stroke);
  color:var(--content);
}
.article-body > .article-hero-img + h2:first-of-type,
.article-body h2:first-child{ border-top:0; padding-top:0; }
.article-body h3{
  font-size:1.18rem;
  font-weight:800;
  margin:24px 0 10px;
  color:var(--content);
}
.article-body ul, .article-body ol{ margin:0 0 18px; padding-left:22px; }
.article-body li{ margin-bottom:8px; }
.article-body li::marker{ color:var(--accent); }
.article-body strong{ color:var(--content); }
.article-body a{ color:var(--accent); }
.article-body blockquote{
  margin:20px 0;
  padding:4px 0 4px 18px;
  border-left:3px solid var(--accent);
  color:var(--b-soft);
  font-style:italic;
}

/* ---------- Callouts ---------- */
.callout{
  background:var(--selection-subtle);
  border:1px solid var(--stroke);
  border-left:4px solid var(--accent);
  border-radius:12px;
  padding:16px 18px;
  margin:22px 0;
}
.callout p:last-child{ margin-bottom:0; }
.callout-title{
  font-weight:800;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--accent);
  margin-bottom:6px;
  display:block;
}

/* ---------- Numbered / sign cards ---------- */
.sign-list{ display:grid; gap:14px; margin:22px 0; }
.sign-card{
  background:var(--selection-subtle);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:16px 18px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.sign-num{
  flex:0 0 auto;
  width:34px; height:34px;
  border-radius:999px;
  background:var(--accent-subtle);
  border:1px solid var(--accent-stroke);
  color:var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
  font-size:15px;
}
.sign-card h3{ margin:0 0 6px; font-size:1.05rem; color:var(--content); }
.sign-card p{ margin:0; font-size:.98rem; color:var(--b-body); }

/* ---------- Comparison cards (replaces plain tables where useful) ---------- */
.compare-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:14px;
  margin:22px 0;
}
.compare-card{
  background:var(--selection-subtle);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:16px;
}
.compare-card h3{ margin:0 0 8px; font-size:1.02rem; color:var(--content); }
.compare-card .row{ display:flex; justify-content:space-between; gap:10px; font-size:.9rem; padding:6px 0; border-bottom:1px solid var(--stroke); color:var(--b-body); }
.compare-card .row:last-child{ border-bottom:0; }
.compare-card .row b{ color:var(--content); font-weight:700; }

/* ---------- Tables ---------- */
.table-scroll{ overflow-x:auto; margin:22px 0; border-radius:14px; border:1px solid var(--stroke); }
table{ width:100%; border-collapse:collapse; font-size:.95rem; background:var(--selection-subtle); color:var(--b-body); }
table th, table td{ padding:12px 14px; text-align:left; border-bottom:1px solid var(--stroke); }
table th{ background:var(--selection); font-weight:800; white-space:nowrap; color:var(--content); }
table tr:last-child td{ border-bottom:0; }

/* ---------- FAQ accordion ---------- */
.faq-item{
  background:var(--selection-subtle);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:6px 18px;
  margin:12px 0;
}
.faq-item summary{
  cursor:pointer;
  font-weight:800;
  font-size:1rem;
  padding:12px 0;
  list-style:none;
  color:var(--content);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; float:right; font-size:1.3rem; color:var(--accent); }
.faq-item[open] summary::after{ content:'\2212'; }
.faq-item p{ margin:0 0 14px; color:var(--b-body); }

/* ---------- Checklist ---------- */
.check-list{ list-style:none; padding-left:0; margin:18px 0; display:grid; gap:10px; }
.check-list li{
  padding-left:30px;
  position:relative;
  font-size:.98rem;
  color:var(--b-body);
}
.check-list li::before{
  content:'\2713';
  position:absolute; left:0; top:0;
  width:20px; height:20px;
  border-radius:6px;
  background:var(--accent-subtle);
  border:1px solid var(--accent-stroke);
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:12px 20px;
  border-radius:999px;
  border:1px solid var(--stroke-strong);
  background:var(--selection);
  color:var(--content);
  font-weight:800;
  font-size:14.5px;
  text-decoration:none;
  cursor:pointer;
  font-family:inherit;
}
.btn:hover{ background:var(--glass-panel); border-color:var(--accent); }
.btn.primary{ background:var(--inverse-surface); color:var(--inverse-content); border-color:transparent; }
.btn.primary:hover{ background:var(--accent); color:#ffffff; border-color:var(--accent); }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }

/* ---------- End-of-article CTA panel ---------- */
.cta-panel{
  margin-top:36px;
  padding:28px;
  border-radius:16px;
  background:linear-gradient(160deg, var(--accent-subtle), var(--selection-subtle));
  border:1px solid var(--stroke);
  text-align:center;
}
.cta-panel h3{ margin:0 0 8px; font-size:1.3rem; color:var(--content); }
.cta-panel p{ margin:0 auto 18px; max-width:56ch; color:var(--b-soft); }
.cta-panel .cta-row{ justify-content:center; margin-top:0; }

/* ---------- Author / meta strip at bottom ---------- */
.article-footer-note{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--stroke);
  font-size:.92rem;
  color:var(--b-faint);
}

/* ---------- Related reading ---------- */
.related-heading{ margin:44px 0 16px; font-size:1.3rem; font-weight:800; color:var(--content); }
.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px,1fr));
  gap:14px;
}
.related-card{
  display:block;
  background:var(--selection-subtle);
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:16px;
  text-decoration:none;
  color:var(--content);
  transition:transform .2s ease, background .2s ease;
}
.related-card:hover{ background:var(--glass-panel); transform:translateY(-2px); }
.related-card .tag{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--accent); }
.related-card h4{ margin:6px 0 0; font-size:1rem; font-weight:700; color:var(--content); }

/* ---------- Blog index (blog.html) ---------- */
.blog-hero-title{ font-size:clamp(1.9rem,4.5vw,2.9rem); font-weight:800; margin:0 0 10px; color:var(--content); }
.blog-hero-sub{ font-size:1.08rem; color:var(--b-soft); max-width:70ch; margin:0; }
.answer-first{ font-size:1.08rem; line-height:1.7; max-width:70ch; color:var(--b-body); }
.faq-short{ font-weight:650; color:var(--content); }
.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:18px;
  margin-top:26px;
}
.blog-card{
  display:flex;
  flex-direction:column;
  background:var(--glass-panel);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  text-decoration:none;
  color:var(--content);
  
  
  transition:transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.blog-card-img{ height:190px; overflow:hidden; }
.blog-card-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.blog-card-body{ padding:20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.blog-card-body .tag{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; color:var(--accent); }
.blog-card-body h3{ margin:0; font-size:1.12rem; font-weight:800; line-height:1.3; color:var(--content); }
.blog-card-body p{ margin:0; font-size:.92rem; color:var(--b-soft); line-height:1.55; flex:1; }
.blog-card-body .read-more{ margin-top:6px; font-weight:800; font-size:.88rem; color:var(--accent); }
