/* ==========================================================================
   ArchitecturalNumbers.com - /blog Editorial Hub & E-E-A-T Article Reader
   WCAG 2.1 AA High-Contrast | Zero CLS | 1360px Storefront Grid
   ========================================================================== */

.an-blog-shell {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  color: #0f172a;
}

/* Breadcrumbs */
.an-blog-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: #475569;
  margin: 4px 0 18px 0;
}

.an-blog-breadcrumbs a {
  color: #095ba6 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.an-blog-breadcrumbs a:hover {
  text-decoration: underline !important;
}

.an-blog-bc-sep {
  color: #94a3b8;
  user-select: none;
}

/* /blog Hub Hero */
.an-blog-hero {
  background: linear-gradient(135deg, #f0f6fa 0%, #e4eff8 100%);
  border: 1px solid #c4dcee;
  border-radius: 10px;
  padding: 28px 26px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.an-blog-hero-copy {
  flex: 1 1 560px;
}

.an-blog-eyebrow {
  display: inline-block;
  background: #095ba6;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.an-blog-hero-title {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #095ba6;
  margin: 0 0 10px 0;
  line-height: 1.28;
  letter-spacing: -0.3px;
}

.an-blog-hero-sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: #334155;
  margin: 0;
  max-width: 760px;
}

.an-blog-hero-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-blog-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: #008060;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.an-blog-btn-primary:hover {
  background: #006a4e;
  transform: translateY(-1px);
}

.an-blog-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: #ffffff;
  color: #095ba6 !important;
  border: 1px solid #93c5fd;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  box-sizing: border-box;
}

.an-blog-btn-secondary:hover {
  background: #eff6ff;
}

/* Filter & Search Bar */
.an-blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.an-blog-cat-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.an-blog-cat-pill {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.an-blog-cat-pill:hover {
  border-color: #095ba6;
  color: #095ba6;
}

.an-blog-cat-pill.is-active {
  background: #095ba6;
  border-color: #095ba6;
  color: #ffffff;
}

.an-blog-search-wrap {
  flex: 0 1 280px;
  min-width: 220px;
}

.an-blog-search-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
}

.an-blog-search-input:focus {
  outline: 2px solid #095ba6;
  outline-offset: 1px;
  border-color: #095ba6;
}

/* Featured Flagship Guide Card */
.an-blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #ffffff;
  border: 1px solid #c4dcee;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.an-blog-featured[hidden] {
  display: none !important;
}

.an-blog-featured-media {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  text-decoration: none !important;
}

.an-blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-blog-featured-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.an-blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}

.an-blog-badge-cat {
  background: #e0f2fe;
  color: #0369a1;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.an-blog-badge-flagship {
  background: #fef3c7;
  color: #92400e;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.an-blog-featured-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 800;
}

.an-blog-featured-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.an-blog-featured-title a:hover {
  color: #095ba6 !important;
}

.an-blog-featured-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 18px 0;
}

.an-blog-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.an-blog-read-link {
  color: #095ba6 !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.an-blog-read-link:hover {
  text-decoration: underline !important;
}

/* 3-Column Card Grid */
.an-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.an-blog-card {
  background: #ffffff;
  border: 1px solid #d1e0ec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.an-blog-card:hover {
  transform: translateY(-2px);
  border-color: #095ba6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.an-blog-card[hidden] {
  display: none !important;
}

.an-blog-card-media {
  display: block;
  background: #0f172a;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.an-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-blog-card-body {
  padding: 18px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.an-blog-card-title {
  margin: 0 0 8px 0;
  font-size: 17.5px;
  line-height: 1.36;
  font-weight: 800;
}

.an-blog-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}

.an-blog-card-title a:hover {
  color: #095ba6 !important;
}

.an-blog-card-excerpt {
  font-size: 14.2px;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 16px 0;
  flex: 1;
}

/* ==========================================================================
   Individual Article Reader (/blog/<slug>)
   ========================================================================== */
.an-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.an-article-main {
  background: #ffffff;
  border: 1px solid #dbe6f0;
  border-radius: 10px;
  padding: 32px 36px;
  box-sizing: border-box;
  min-width: 0;
}

.an-article-header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.an-article-h1 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 14px 0;
  letter-spacing: -0.3px;
}

.an-article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #475569;
}

.an-article-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.an-article-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #095ba6;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.an-article-verified {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

.an-article-hero-figure {
  margin: 0 0 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.an-article-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

.an-article-hero-figure figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Semantic Article Body Prose */
.an-article-prose {
  font-size: 16.5px;
  line-height: 1.74;
  color: #1e293b;
}

.an-article-prose p {
  margin: 0 0 18px 0;
}

.an-article-prose p.lead {
  font-size: 18.5px;
  line-height: 1.65;
  color: #0f172a;
  font-weight: 500;
  background: #f8fafc;
  border-left: 4px solid #095ba6;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 26px;
}

.an-article-prose h2 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  color: #095ba6;
  margin: 34px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  scroll-margin-top: 24px;
}

.an-article-prose h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  color: #0f172a;
  margin: 24px 0 10px 0;
}

.an-article-prose ul,
.an-article-prose ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.an-article-prose li {
  margin-bottom: 9px;
}

.an-article-prose a {
  color: #095ba6 !important;
  font-weight: 700;
  text-decoration: underline !important;
}

.an-article-prose code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

/* Responsive Specification Tables (Zero Mobile Overflow) */
.blog-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0 26px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.blog-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
  min-width: 540px;
  background: #ffffff;
}

.blog-spec-table th {
  background: #095ba6;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 2px solid #074785;
}

.blog-spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: top;
}

.blog-spec-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

/* Practitioner Callouts & Figures */
.blog-callout {
  background: #f0f6fa;
  border-left: 4px solid #095ba6;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #1e293b;
}

.blog-callout strong {
  color: #095ba6;
}

.blog-callout-warn {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #451a03;
}

.blog-figure {
  margin: 24px 0;
  background: #f8fafc;
  border: 1px solid #dbe6f0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.blog-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.blog-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

/* In-Article Conversion CTA Banner */
.blog-inline-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.blog-inline-cta h3 {
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  font-size: 18px !important;
}

.blog-inline-cta p {
  color: #cbd5e1 !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  max-width: 500px;
}

.blog-inline-cta a.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: #10b981;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 6px;
  text-decoration: none !important;
  white-space: nowrap;
}

.blog-inline-cta a.blog-cta-btn:hover {
  background: #059669;
}

/* E-E-A-T Author / Foundry Bio Card */
.an-author-bio-card {
  margin-top: 34px;
  padding: 22px 24px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.an-author-bio-badge {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #095ba6;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.an-author-bio-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.an-author-bio-role {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: #095ba6;
}

.an-author-bio-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

/* Sticky Right Sidebar */
.an-article-sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.an-sidebar-card {
  background: #ffffff;
  border: 1px solid #d1e0ec;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.an-sidebar-heading {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #095ba6;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.an-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-toc-list a {
  color: #334155 !important;
  text-decoration: none !important;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  display: block;
  padding: 4px 0 4px 10px;
  border-left: 2px solid #cbd5e1;
}

.an-toc-list a:hover {
  color: #095ba6 !important;
  border-left-color: #095ba6;
}

.an-sidebar-builder-card {
  background: linear-gradient(155deg, #f0f6fa 0%, #e0eef9 100%);
  border: 1px solid #b8d4ec;
}

.an-sidebar-checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  font-size: 13.5px;
  color: #1e293b;
}

.an-sidebar-checks li {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Related Guides Section */
.an-related-section {
  margin-top: 38px;
}

.an-related-heading {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #095ba6;
  margin: 0 0 18px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #095ba6;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .an-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .an-article-layout {
    grid-template-columns: 1fr;
  }
  .an-article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .an-blog-hero {
    padding: 20px 16px;
  }
  .an-blog-hero-title {
    font-size: 21px;
  }
  .an-blog-hero-cta {
    width: 100%;
  }
  .an-blog-featured {
    grid-template-columns: 1fr;
  }
  .an-blog-featured-body {
    padding: 18px 16px;
  }
  .an-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .an-blog-search-wrap {
    flex: 1 1 100%;
  }
  .an-article-main {
    padding: 20px 16px;
  }
  .an-article-h1 {
    font-size: 22px;
  }
  .an-article-prose {
    font-size: 15.8px;
  }
  .an-article-prose p.lead {
    font-size: 16.8px;
    padding: 14px 16px;
  }
  .an-author-bio-card {
    flex-direction: column;
    padding: 18px 16px;
  }
}
