/* DESIGN: marketsmartwebinar.com | DM Sans + Fraunces | asymmetric grid | split hero + imagery */

:root {
  --ink: #0b0f14;
  --blue-deep: #0f1f3a;
  --blue-mid: #132b52;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --orange: #ff6b1a;
  --orange-hover: #e85f15;
  --white: #ffffff;
  --mist: #f6f8fc;
  --text: #e8edf5;
  --text-muted: #9fb0c8;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --max: 1180px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
}

a:hover {
  color: var(--orange-hover);
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  margin-top: 0;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Promo bar ——— */
.promo-bar {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue-deep));
  color: var(--mist);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.promo-bar strong {
  color: var(--white);
}

/* ——— Header / nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ff9a4d);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  display: block;
}

.logo--brand .logo-img {
  height: 46px;
  max-width: min(260px, 60vw);
}

/* Header logo +10%; footer logo +15% (relative to 46px brand mark) */
.site-header .logo-img {
  height: calc(46px * 1.1);
  max-width: min(calc(260px * 1.1), 62vw);
}

.site-footer .logo-img {
  height: calc(46px * 1.15);
  max-width: min(calc(260px * 1.15), 70vw);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.nav-main a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

.nav-main a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-main a.is-active,
.nav-main a[aria-current="true"]:not(.nav-pill) {
  color: var(--orange);
  background: rgba(255, 107, 26, 0.12);
}

/* Solid CTA: must beat .nav-main a.is-active (used together on Training page) */
.nav-pill {
  background: var(--orange) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
}

.nav-pill:hover,
.nav-pill.is-active:hover {
  background: var(--orange-hover) !important;
  color: var(--ink) !important;
}

.nav-main a.nav-pill.is-active {
  background: var(--orange) !important;
  color: var(--ink) !important;
}

/* ——— Ads ——— */
.ad-leaderboard,
.ad-square,
.ad-skyscraper,
.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 0.75rem auto 1.25rem;
  overflow: hidden;
}

.ad-leaderboard ins,
.ad-square ins,
.ad-skyscraper ins {
  display: block !important;
  max-width: 100% !important;
  margin-inline: auto;
  line-height: 0;
}

.ad-leaderboard iframe,
.ad-square iframe,
.ad-skyscraper iframe {
  max-width: 100% !important;
  vertical-align: bottom;
}

.ad-square {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  margin-inline: auto;
}

.ad-skyscraper {
  width: 100%;
  max-width: 160px;
  min-height: 600px;
  margin-inline: auto;
}

.ad-leaderboard:empty,
.ad-square:empty,
.ad-skyscraper:empty {
  display: none;
}

/* ——— Breadcrumb (subpages only) ——— */
.breadcrumb-nav {
  margin: 0 auto 1.25rem;
  padding: 0.65rem 1rem 0.75rem;
  max-width: var(--max);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(15, 31, 58, 0.55), rgba(11, 15, 20, 0.35));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.breadcrumb-nav::before {
  content: "";
  display: block;
  height: 2px;
  margin: -0.65rem -1rem 0.65rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.65;
}

.breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "\203a";
  margin-left: 0.4rem;
  color: var(--cyan);
  font-weight: 700;
  opacity: 0.85;
  pointer-events: none;
}

.breadcrumb-list a {
  color: var(--text);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}

.breadcrumb-list a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.breadcrumb-list a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.breadcrumb-current {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  white-space: normal;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  background: rgba(19, 43, 82, 0.45);
  max-width: 100%;
}

@media (max-width: 520px) {
  .breadcrumb-list {
    font-size: 0.68rem;
  }
  .breadcrumb-current {
    font-size: 0.92rem;
  }
}

/* Article inline ad: no float — avoids overlap with Revive iframes */
.ad-article-inset {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  margin: 1.75rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  clear: both;
}

@media (min-width: 880px) {
  .article-body {
    display: flow-root;
  }

  .ad-article-inset {
    float: right;
    margin: 0.35rem 0 1.25rem 1.5rem;
    shape-outside: margin-box;
  }
}

.article-body::after {
  content: "";
  display: table;
  clear: both;
}

/* ——— Hero ——— */
.hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(255, 107, 26, 0.14), transparent 55%),
    linear-gradient(180deg, var(--blue-deep) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.hero-stat strong {
  color: var(--orange);
}

/* ——— Sections ——— */
section[id] {
  scroll-margin-top: 80px;
}

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: linear-gradient(180deg, rgba(19, 43, 82, 0.35) 0%, transparent 100%);
}

/* ——— Webinar band (image on top, colorful) ——— */
.section-webinar {
  position: relative;
  padding-top: 3.5rem;
  background: linear-gradient(165deg, #0a1628 0%, #0b0f14 45%, #10182a 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.section-webinar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--cyan), var(--violet), var(--orange));
  z-index: 1;
}

.webinar-hero-img-wrap {
  position: relative;
  margin: 0 0 2.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 107, 26, 0.12);
}

.webinar-top-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .webinar-top-img {
    aspect-ratio: 16 / 10;
  }
}

.webinar-img-glow {
  position: absolute;
  inset: auto 10% -30% 10%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(255, 107, 26, 0.2), transparent 70%);
  pointer-events: none;
}

.webinar-head {
  margin-bottom: 1.75rem;
}

.webinar-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .webinar-checklist {
    grid-template-columns: repeat(3, 1fr);
  }
}

.webinar-checklist li {
  margin: 0;
  padding: 1.05rem 1.15rem 1.05rem 2.85rem;
  position: relative;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.14), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--mist);
}

.webinar-checklist li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.28);
}

.webinar-subhead {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--white);
}

.section-head {
  max-width: 52ch;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.two-col {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  margin-top: 0;
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--orange);
  margin: 0.5rem 0;
}

/* ——— FAQ ——— */
.faq-modern {
  position: relative;
  padding: 3.75rem 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 107, 26, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(15, 31, 58, 0.55) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--border);
}

.faq-modern .faq-intro {
  max-width: 40ch;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-item[open] {
  border-color: rgba(255, 107, 26, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 3.35rem;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), #ff9a4d);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item .faq-answer {
  margin: 0;
  padding: 0 1.25rem 1.25rem 3.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
}

.faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  list-style-position: outside;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
  color: var(--orange);
}

.faq p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ——— RSS / feeds ——— */
.feed-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.blog-extra-feed {
  margin-top: 2.25rem;
}

.sidebar .feed-block.sidebar-rss-feed {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  margin-bottom: 1.25rem;
}

.feed-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
    box-shadow: none;
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.rss-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .rss-cards.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.rss-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.rss-card:hover {
  border-color: rgba(255, 107, 26, 0.45);
  background: rgba(255, 107, 26, 0.06);
}

.rss-card h4 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.rss-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rss-fallback,
.feed-error {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
}

/* Ticker */
.ticker-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(15, 31, 58, 0.6);
  min-height: 3rem;
}

.ticker {
  display: flex;
  gap: 2.5rem;
  padding: 0.75rem 1rem;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.ticker a:hover {
  color: var(--orange);
}

/* ——— Blog layout ——— */
.blog-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.blog-main {
  min-width: 0;
}

.blog-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.blog-hero-img img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-on {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
}

.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.1rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

@media (max-width: 560px) {
  .post-card {
    grid-template-columns: 1fr;
  }
}

.post-card:hover {
  border-color: rgba(255, 107, 26, 0.4);
}

.post-card.rss-mixed-card {
  grid-template-columns: 1fr;
}

.post-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.post-card h2,
.post-card .title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  color: var(--white);
  font-weight: 600;
}

.excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-sticky {
  position: static;
}

@media (min-width: 960px) {
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}

.ad-skyscraper {
  min-height: 600px;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 960px) {
  .hidden-mobile {
    display: flex;
  }
}

/* ——— Article ——— */
.article-page .article-header {
  padding: 2rem 0 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-meta .dot {
  margin: 0 0.35rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.topic-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 107, 26, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.25);
}

.pull-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange);
  background: rgba(255, 107, 26, 0.08);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--mist);
}

.article-figure {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: rgba(15, 31, 58, 0.5);
}

.article-body h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-body h2[id],
.article-body h3[id] {
  scroll-margin-top: calc(var(--nav-h) + 14px);
}

.article-body h3 {
  margin-top: 1.5rem;
}

.article-body ul {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.article-body ul li {
  margin-bottom: 0.45rem;
}

.article-toc {
  margin: 1.75rem 0 2.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 31, 58, 0.45);
}

.article-toc-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.85rem;
}

.article-toc-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-toc-list li {
  margin-bottom: 0.45rem;
}

.article-toc-list a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.article-toc-list a:hover {
  color: var(--orange);
  border-bottom-color: rgba(255, 107, 26, 0.45);
}

.article-toc-list a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.read-more-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.read-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.read-card a.main-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.read-card a.main-link:hover {
  color: var(--orange);
}

.read-card .read-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  padding: 0;
  background: linear-gradient(180deg, #070a10 0%, #0f1f3a 55%, #0b1428 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--orange), var(--cyan), var(--violet)) 1;
}

.footer-inner {
  display: grid;
  gap: 2.25rem;
  padding: 2.75rem 0 2rem;
}

@media (min-width: 880px) {
  .footer-inner {
    grid-template-columns: minmax(200px, 1.1fr) repeat(3, 1fr);
    align-items: start;
  }
}

.footer-brand {
  max-width: 34ch;
}

.footer-brand .logo {
  margin-bottom: 0.65rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin: 0 0 0.85rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--orange);
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.layout-column {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
