/* GAPCAP blog — shared styles for hub + article sub-pages.
   Palette + type match the main site (Barlow / Barlow Condensed). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Barlow', sans-serif; background: #fff; color: #111111; -webkit-font-smoothing: antialiased; }
a { color: #111111; transition: opacity 0.15s, color 0.15s; }
a:hover { opacity: 0.85; }

.gc-btn { transition: transform 0.16s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s ease, filter 0.15s ease; will-change: transform; }
.gc-btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 22px rgba(0,0,0,0.22); filter: brightness(1.02); }
.gc-btn:active { transform: translateY(0) scale(0.96); box-shadow: none; }

.gc-chevron-bg {
  background-image:
    linear-gradient(135deg, rgba(253,185,19,0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(253,185,19,0.06) 25%, transparent 25%);
  background-size: 56px 56px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.crumbs a { color: rgba(255,255,255,0.5); text-decoration: none; }
.crumbs a:hover { color: rgba(255,255,255,0.8); opacity: 1; }
.crumbs .sep { color: rgba(255,255,255,0.3); }
.crumbs .current { color: #FDB913; font-weight: 600; }
.crumbs.on-light a { color: #6B7280; }
.crumbs.on-light a:hover { color: #111111; opacity: 1; }
.crumbs.on-light .sep { color: #D1D5DB; }
.crumbs.on-light .current { color: #111111; }

/* ── Article hero band ──────────────────────────────────── */
.art-hero { background: #111111; padding: 52px 0 48px; }
.art-hero-inner { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.art-tag { display: inline-block; font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #111111; background: #FDB913; padding: 4px 10px; border-radius: 3px; }
.art-h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 46px; line-height: 1.04; color: #fff; margin: 18px 0 16px; letter-spacing: -0.005em; }
.art-dek { font-size: 18.5px; line-height: 1.6; color: rgba(255,255,255,0.68); max-width: 680px; }
.art-metarow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,0.55); }
.art-metarow .byline { font-weight: 600; color: rgba(255,255,255,0.8); }
.art-metarow .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.35); }

/* ── Article body ───────────────────────────────────────── */
.art-wrap { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ── Pillar layout: article + sticky in-article ToC ──────── */
.pillar-wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 52px; align-items: start; }
.pillar-wrap .art-figure { grid-column: 1 / -1; }
.pillar-toc { position: sticky; top: 88px; align-self: start; }
.pillar-toc .toc-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #9CA3AF; margin-bottom: 14px; padding-left: 14px; }
.pillar-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #E5E7EB; }
.pillar-toc li { margin: 0; }
.pillar-toc a { display: block; font-size: 14px; line-height: 1.4; color: #6B7280; text-decoration: none; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.pillar-toc a:hover { color: #111111; opacity: 1; }
.pillar-toc a.active { color: #111111; font-weight: 600; border-left-color: #FDB913; }
@media (max-width: 900px) {
  .pillar-wrap { grid-template-columns: 1fr; gap: 0; }
  .pillar-toc { display: none; }
}
.art-body h2 { scroll-margin-top: 84px; }

/* Spoke / cluster link block inside a pillar section */
.spoke-link { display: inline-flex; align-items: center; gap: 8px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: 15px; color: #111111; text-decoration: none; background: #FDB913; padding: 11px 20px; border-radius: 4px; margin: 4px 0 8px; }
.spoke-link.soon { background: #F3F4F6; color: #6B7280; cursor: default; pointer-events: none; }
.spoke-link .arw { transition: transform 0.16s ease; }
.spoke-link:hover { opacity: 1; }
.spoke-link:hover .arw { transform: translateX(3px); }
.spoke-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #92400E; background: #FDE68A; padding: 2px 7px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }

.art-figure { margin: 0; background: #F3F4F6; border-radius: 10px; overflow: hidden; border-bottom: 4px solid #FDB913; margin-top: -28px; position: relative; box-shadow: 0 18px 44px rgba(0,0,0,0.12); }
.art-figure img { width: 100%; display: block; object-fit: cover; max-height: 440px; }
.art-figure.contain { background: #F3F4F6; }
.art-figure.contain img { object-fit: contain; padding: 32px; max-height: 400px; }
.art-figcap { font-size: 12.5px; color: #6B7280; padding: 10px 16px; background: #F9FAFB; }

.art-body { padding: 44px 0 8px; }
.art-body > p { font-size: 17.5px; line-height: 1.78; color: #374151; margin-bottom: 20px; }
.art-body > p.lead { font-size: 20px; line-height: 1.7; color: #1F2937; font-weight: 500; }
.art-body h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.12; color: #111111; margin: 40px 0 16px; }
.art-body h2::after { content: ''; display: block; width: 48px; height: 4px; background: #FDB913; border-radius: 2px; margin-top: 12px; }
.art-body ul { list-style: none; margin: 0 0 24px; padding: 0; }
.art-body ul li { position: relative; padding-left: 30px; font-size: 17.5px; line-height: 1.7; color: #374151; margin-bottom: 14px; }
.art-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: #FDB913; transform: rotate(45deg); }
.art-body .patent-num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; color: #111111; letter-spacing: 0.02em; }
.art-body strong { color: #111111; }
.art-body a { color: #111111; text-decoration: underline; text-decoration-color: #FDB913; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* FAQ block */
.faq-list { margin: 8px 0 4px; }
.faq-item { border-top: 1px solid #E5E7EB; padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid #E5E7EB; }
.faq-q { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 21px; color: #111111; line-height: 1.2; margin-bottom: 8px; }
.faq-a { font-size: 16.5px; line-height: 1.7; color: #374151; margin: 0; }
.faq-a a { color: #111111; text-decoration: underline; text-decoration-color: #FDB913; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* pull-out proof callout */
.art-callout { background: #111111; border-left: 4px solid #FDB913; border-radius: 6px; padding: 22px 26px; margin: 32px 0; }
.art-callout .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #FDB913; font-weight: 700; margin-bottom: 8px; }
.art-callout .v { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; color: #fff; line-height: 1.25; }

/* ── Article footer / share + shop ─────────────────────── */
.art-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 36px 0 8px; padding-top: 28px; border-top: 1px solid #E5E7EB; }
.art-cta .btn-dark { font-weight: 600; font-size: 15px; background: #111111; color: #FDB913; padding: 13px 28px; border-radius: 4px; text-decoration: none; }
.art-cta .btn-out { font-weight: 600; font-size: 15px; background: transparent; color: #111111; padding: 12px 26px; border-radius: 4px; text-decoration: none; border: 2px solid rgba(0,0,0,0.25); }

/* ── Related posts ──────────────────────────────────────── */
.related { background: #F9FAFB; border-top: 1px solid #E5E7EB; margin-top: 56px; padding: 56px 0 68px; }
.related-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.related-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; color: #111111; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.05); transition: transform 0.24s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.24s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); opacity: 1; }
.post-card .media { height: 158px; background: #F3F4F6; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .media.contain img { object-fit: contain; padding: 18px; }
.post-card .cbody { padding: 16px 18px 20px; border-top: 3px solid #FDB913; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .meta { display: flex; align-items: center; gap: 9px; }
.post-card .ptag { font-weight: 700; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #111111; background: #FDB913; padding: 3px 7px; border-radius: 3px; }
.post-card .pdate { font-weight: 600; font-size: 11px; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card .ptitle { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; color: #111111; line-height: 1.1; }
.post-card .pexc { font-size: 13.5px; color: #6B7280; line-height: 1.55; }
.post-card .pmore { margin-top: auto; font-weight: 700; font-size: 13px; color: #111111; }

/* ── Blog hub ───────────────────────────────────────────── */
.hub-hero { background: #111111; padding: 60px 0 54px; }
.hub-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hub-eyebrow { font-weight: 600; font-size: 12px; color: #FDB913; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.hub-h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 56px; line-height: 1.0; color: #fff; margin-bottom: 14px; }
.hub-sub { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 620px; }
.hub-body { max-width: 1200px; margin: 0 auto; padding: 48px 32px 76px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 13.5px; color: #374151; background: #fff; border: 1.5px solid #E5E7EB; border-radius: 999px; padding: 8px 18px; cursor: pointer; white-space: nowrap; transition: transform 0.12s ease, background 0.15s, border-color 0.15s, color 0.15s; }
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.active { color: #111111; background: #FDB913; border-color: #FDB913; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card.hide { display: none; }

@media (max-width: 900px) {
  .related-grid, .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
.gc-bhdr-burger { display: none; }
@media (max-width: 860px) {
  header .gc-bhdr-burger { display: inline-flex !important; order: -1; }
  header .gc-bhdr-nav {
    position: absolute !important; top: 64px; left: 0; right: 0;
    flex-direction: column !important; align-items: stretch !important; gap: 2px !important;
    background: #111111; padding: 8px 16px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 40px rgba(0,0,0,0.4); display: none !important;
  }
  header .gc-bhdr-nav.open { display: flex !important; }
  header .gc-bhdr-nav > a, header .gc-bhdr-nav > button, header .gc-bhdr-nav > div { width: 100%; }
  header .gc-bhdr-nav > a, header .gc-bhdr-nav > button, header .gc-bhdr-nav > div > button {
    text-align: left; font-size: 16px !important; padding: 12px !important;
  }
}
html, body { overflow-x: hidden; }
@media (max-width: 640px) {
  .art-h1 { font-size: 34px; }
  .hub-h1 { font-size: 40px; }
  .related-grid, .hub-grid { grid-template-columns: 1fr; }
}
