/* Autoloop Crash Data — Blog styles (shares tokens with index.html) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:#ffffff; --surface:#f6f7f9; --card:#ffffff; --card2:#eef0f3;
  --border:#e2e4ea; --border2:#c7cad2; --txt:#23262d; --muted:#5b6472;
  --dim:#838b98; --white:#101216; --red:#d93025; --red2:#b8241b; --redbg:#fde4e2;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--txt); font-family: 'DM Sans', sans-serif; line-height: 1.65; overflow-x: hidden; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
img { max-width: 100%; display: block; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 64px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.14em; color: var(--white); text-decoration: none; }
.nav-logo span { color: var(--red2); }
nav ul { list-style: none; display: flex; align-items: center; gap: 0.4rem; }
nav ul a { text-decoration: none; color: var(--muted); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.85rem; border-radius: 4px; transition: color 0.2s; }
nav ul a:hover, nav ul a[aria-current="page"] { color: var(--white); }
nav ul a[aria-current="page"] { border-bottom: 2px solid var(--red); border-radius: 0; }
.nav-cta { background: var(--red); color: #fff !important; font-weight: 500; }
.nav-cta:hover { opacity: 0.88; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border2); color: var(--txt); border-radius: 4px; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }

/* SHARED */
.inner { max-width: 1140px; margin: 0 auto; width: 100%; }
.eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red2); margin-bottom: 0.7rem; }
.sec-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1; color: var(--white); letter-spacing: 0.04em; margin-bottom: 1rem; }
.btn-primary { display: inline-block; background: var(--red); color: #fff; padding: 0.85rem 1.9rem; border-radius: 4px; text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.86; }
.btn-outline { display: inline-block; border: 1px solid var(--red); color: var(--red2); padding: 0.85rem 1.9rem; border-radius: 4px; text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--red); color: #fff; }
.tag { display: inline-block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red2); background: var(--redbg); border: 1px solid #f3c9c4; padding: 0.22rem 0.6rem; border-radius: 3px; }
.meta { font-size: 0.76rem; color: var(--dim); letter-spacing: 0.04em; }
.meta b { color: var(--muted); font-weight: 500; }

/* BLOG HERO */
.blog-hero { padding: 7.5rem 3rem 3.5rem; border-bottom: 1px solid var(--border); background: var(--bg); }
.blog-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.92; letter-spacing: 0.03em; color: var(--white); margin-bottom: 1.2rem; }
.blog-hero h1 em { color: var(--red2); font-style: normal; }
.blog-hero p { color: var(--muted); max-width: 560px; line-height: 1.8; font-size: 0.98rem; }
.topic-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.topic-row a, .topic-row button { font-family: inherit; text-decoration: none; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--border2); padding: 0.4rem 0.9rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; }
.topic-row a:hover, .topic-row button:hover { border-color: var(--red); color: var(--red2); }
.topic-row a.on, .topic-row button.on { border-color: var(--red); color: var(--red2); background: var(--redbg); font-weight: 600; }
.topic-row button.on::before { content: '\2713'; margin-right: 0.4rem; font-size: 0.7rem; }
.topic-row button[data-topic="all"].on::before { content: none; }
.filter-status { font-size: 0.78rem; color: var(--dim); margin-top: 0.9rem; min-height: 1.2em; }
.empty-note { font-size: 0.88rem; color: var(--muted); border: 1px dashed var(--border2); border-radius: 8px; padding: 1.2rem 1.4rem; }
.empty-note a { color: var(--red2); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
[hidden] { display: none !important; }

/* FEATURED */
.featured { padding: 3.5rem 3rem 0; }
.feat-card { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; transition: background 0.25s; }
.feat-card:hover { background: var(--card2); }
.feat-img { background: var(--surface); min-height: 320px; border-right: 1px solid var(--border); }
.feat-img img { width: 100%; height: 100%; object-fit: contain; }
.feat-body { padding: 2.5rem 2.6rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }
.feat-body h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; letter-spacing: 0.04em; color: var(--white); }
.feat-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.read-more { color: var(--red2); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* GRID */
.posts { padding: 3rem 3rem 5rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; display: flex; flex-direction: column; position: relative; transition: background 0.25s; }
.post-card:hover { background: var(--card2); }
.post-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.35s ease; }
.post-card:hover::after { width: 100%; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.post-thumb svg { width: 44px; height: 44px; stroke: var(--border2); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-body h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.45rem; line-height: 1.05; letter-spacing: 0.05em; color: var(--white); }
.post-body p { color: var(--muted); font-size: 0.82rem; line-height: 1.7; flex: 1; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.section-head .sec-title { margin-bottom: 0; }

/* CTA BAND */
.cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 3rem; }
.cta-band .inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.cta-band h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.9rem, 3.5vw, 2.8rem); letter-spacing: 0.04em; line-height: 1; color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; }
.cta-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }

/* ARTICLE */
.article-hero { padding: 7.5rem 3rem 2.5rem; border-bottom: 1px solid var(--border); }
.article-hero .inner { max-width: 820px; }
.crumbs { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red2); }
.crumbs span { margin: 0 0.5rem; }
.article-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 0.95; letter-spacing: 0.03em; color: var(--white); margin: 0.6rem 0 1.1rem; }
.article-hero .lede { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.4rem; }
.byline { display: flex; align-items: center; gap: 0.9rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.05em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.byline .who { font-size: 0.86rem; color: var(--white); font-weight: 500; }
.byline .who small { display: block; color: var(--dim); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em; }
.byline .when { margin-left: auto; text-align: right; }

.article-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 3.5rem; max-width: 1140px; margin: 0 auto; padding: 3rem 3rem 4.5rem; }
.article-body { max-width: 720px; min-width: 0; }
.article-body h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.95rem; letter-spacing: 0.05em; line-height: 1.05; color: var(--white); margin: 2.4rem 0 0.9rem; scroll-margin-top: 84px; }
.article-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); margin: 1.6rem 0 0.5rem; }
.article-body p { color: var(--txt); font-size: 0.98rem; line-height: 1.85; margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.4rem; color: var(--txt); font-size: 0.96rem; line-height: 1.8; }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--red2); }
.article-body a.btn-primary, .article-body a.btn-primary:hover { color: #fff; text-decoration: none; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0 1.5rem; }
.article-body th, .article-body td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.article-body th { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 6px; padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.callout .label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red2); margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.takeaways { background: var(--white); color: #d4d7de; border-radius: 10px; padding: 1.6rem 1.8rem; margin: 0 0 2rem; }
.takeaways .label { font-family: 'Bebas Neue', sans-serif; font-size: 1.15rem; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.7rem; }
.takeaways .label span { color: var(--red); }
.takeaways ul { margin: 0 0 0 1.2rem; color: #d4d7de; font-size: 0.9rem; }
.takeaways li { margin-bottom: 0.35rem; }
.faq-block details { border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.2rem; margin-bottom: 0.6rem; background: var(--card); }
.faq-block summary { cursor: pointer; font-weight: 500; color: var(--white); font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: '+'; color: var(--red2); font-weight: 600; }
.faq-block details[open] summary::after { content: '\2013'; }
.faq-block details p { margin: 0.7rem 0 0; font-size: 0.92rem; }
.inline-cta { border: 1px solid var(--border); border-radius: 10px; padding: 2rem 2.2rem; margin: 2.5rem 0 0; background: var(--surface); display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inline-cta h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.05em; color: var(--white); margin: 0 0 0.3rem; }
.inline-cta p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* SIDEBAR */
.sidebar { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 1.4rem; }
.side-box { border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 1.4rem; background: var(--card); }
.side-box .label { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red2); margin-bottom: 0.7rem; }
.toc a { display: block; text-decoration: none; color: var(--muted); font-size: 0.82rem; padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.toc a:last-child { border-bottom: none; }
.toc a:hover { color: var(--red2); }
.side-box.dark { background: var(--white); border-color: var(--white); color: #d4d7de; }
.side-box.dark .label { color: var(--red); }
.side-box.dark h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.05em; color: #fff; line-height: 1; margin-bottom: 0.5rem; }
.side-box.dark p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 1rem; }
.side-box.dark a.btn-primary { width: 100%; text-align: center; }
.side-box.dark .phone { display: block; text-align: center; color: #fff; text-decoration: none; margin-top: 0.7rem; font-size: 0.85rem; letter-spacing: 0.05em; }
.related a { display: block; text-decoration: none; color: var(--white); font-size: 0.84rem; font-weight: 500; line-height: 1.4; padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.related a:last-child { border-bottom: none; }
.related a:hover { color: var(--red2); }
.related small { display: block; color: var(--dim); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.15rem; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem; }
footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.14em; color: var(--white); }
.foot-logo span { color: var(--red2); }
.foot-copy { font-size: 0.74rem; color: var(--dim); margin-top: 0.3rem; }
.foot-contact { font-size: 0.82rem; color: var(--muted); text-align: right; line-height: 1.9; }
.foot-contact a { color: var(--white); text-decoration: none; }
.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.6rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--red2); }

.foot-areas { display: block; font-size: 0.72rem; color: var(--dim); margin-top: 0.4rem; max-width: 360px; margin-left: auto; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 1rem; }
  .nav-toggle { display: block; }
  nav ul { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border); padding: 0.8rem 1rem 1rem; gap: 0.2rem; }
  nav ul.open { display: flex; }
  nav ul a { display: block; padding: 0.75rem 0.5rem; font-size: 0.82rem; }
  .blog-hero, .featured, .posts, .cta-band, .article-hero, footer { padding-left: 1rem; padding-right: 1rem; }
  .article-wrap { grid-template-columns: 1fr; padding: 2.5rem 1rem 3.5rem; gap: 2.5rem; }
  .sidebar { position: static; }
  .feat-card, .cta-band .inner { grid-template-columns: 1fr; }
  .feat-img { min-height: 220px; border-right: none; border-bottom: 1px solid var(--border); }
  .feat-body { padding: 1.8rem 1.4rem; }
  .post-grid { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .foot-contact { text-align: left; }
  .foot-areas { margin-left: 0; }
  .byline { flex-wrap: wrap; }
  .byline .when { margin-left: 0; text-align: left; width: 100%; }
}
@media (min-width: 901px) and (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } html { scroll-behavior: auto; } }

/* ARTICLE FIGURE + IMAGE THUMBS */
.article-figure { margin: 0 0 2rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.article-figure img { width: 100%; height: auto; display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
