/* Thinking landing page. Maps to reference/Design/Page_Samples_PLAINHTML/
   Thinking.html. Three sections: page header, featured podcast + sidebar,
   article grid. */

/* Gold palette for the Selling Serendipity featured podcast block.
   Scoped to this page; no need to promote to global tokens until the
   podcast section appears anywhere else. */
.page-thinking {
  --sg-gold:    #C9A84C;
  --sg-gold-hi: #E8D5A3;
  --sg-gold-lo: #8E7424;
}

/* ── Shared ───────────────────────────────────────────────── */

.thinking-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 56px;
}

/* ── §1 Page Header ───────────────────────────────────────── */

.thinking-header {
  position: relative;
  background: var(--sg-cape-navy);
  color: var(--sg-white);
  margin-top: calc(-1 * var(--sg-nav-height));
  padding: calc(var(--sg-nav-height) + 96px) 0 40px;
  overflow: hidden;
  isolation: isolate;
}
.thinking-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(26, 86, 219, 0.22), transparent 65%),
    radial-gradient(600px 400px at 85% 75%, rgba(26, 86, 219, 0.12), transparent 70%);
}

.thinking-header__grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 48px;
  align-items: center;
}

.thinking-header__h1 {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--sg-white);
  margin: 0;
}

.thinking-header__desc {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.80);
  margin: 0;
  text-wrap: pretty;
}

.thinking-header__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 112px);
}

/* ── §2 Featured podcast + sidebar ────────────────────────── */

.thinking-featured {
  background: var(--sg-white);
  padding: 56px 0 80px;
}

.thinking-featured__grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 48px;
  align-items: start;
}

/* Featured podcast (left column) */

.feature-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sg-cape-navy);
  isolation: isolate;
  border-radius: 4px;
}

/* Atmospheric fallback for Selling Serendipity podcast — golden-hour
   horizon. Visible when no real image is wired into .feature-media. */
.feature-media__fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 40% at 78% 62%, rgba(255, 210, 150, .55), transparent 65%),
    linear-gradient(180deg,
      #1B1A2E 0%,
      #3D2B4A 22%,
      #7A3856 42%,
      #C46A4C 60%,
      #E6A65D 75%,
      #C99656 88%,
      #6E4A3B 100%);
}
.feature-media__fallback::after {
  /* Suggestion of a skyline at the bottom edge. */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 22, 35, 0.45) 60%, rgba(15, 22, 35, 0.85) 100%),
    repeating-linear-gradient(90deg,
      rgba(15, 22, 35, 0.6) 0 8px,
      rgba(15, 22, 35, 0.5) 8px 22px,
      rgba(15, 22, 35, 0.65) 22px 46px,
      rgba(15, 22, 35, 0.55) 46px 70px,
      rgba(15, 22, 35, 0.7) 70px 110px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
}
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.feature-titlewrap {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  pointer-events: none;
}

.feature-title-gold {
  font-family: var(--sg-font-serif);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
  background: linear-gradient(180deg,
    var(--sg-gold-hi) 0%, var(--sg-gold-hi) 18%,
    var(--sg-gold) 38%, var(--sg-gold-lo) 58%,
    var(--sg-gold) 78%, var(--sg-gold-hi) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(255, 240, 200, 0.4))
    drop-shadow(0 2px 0 rgba(80, 55, 15, 0.6))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
.feature-title-gold .word { display: block; }

.feature-title-by {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: clamp(10px, 1.1vw, 14px);
  color: var(--sg-white);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sg-hero-blue);
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 24px 0 12px;
}
.feature-tag svg { width: 14px; height: 14px; }

.feature-headline {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--sg-ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.feature-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--sg-steel);
  margin: 0 0 20px;
  text-wrap: pretty;
  max-width: 60ch;
}

/* Audio player */

.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 6px;
  padding: 10px 16px;
  height: 56px;
  margin-bottom: 14px;
}

.ap-play {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sg-hero-blue);
  color: var(--sg-white);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.ap-play:hover { background: var(--sg-hero-blue-hover); }
.ap-play svg { width: 14px; height: 14px; display: block; }
.ap-play.is-playing .play-icon { display: none; }
.ap-play:not(.is-playing) .pause-icon { display: none; }

.ap-time {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  color: var(--sg-steel);
  min-width: 38px;
}

.ap-scrub {
  flex: 1;
  height: 4px;
  background: var(--sg-rule);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.ap-scrub-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 28%;
  background: var(--sg-hero-blue);
  border-radius: 999px;
}
.ap-scrub-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--sg-hero-blue);
  border-radius: 999px;
  border: 2px solid var(--sg-white);
  box-shadow: 0 0 0 1px var(--sg-hero-blue);
}
.ap-volume {
  flex: 0 0 auto;
  color: var(--sg-steel);
}
.ap-volume svg { width: 18px; height: 18px; display: block; }

/* Streaming pills */

.stream-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: var(--sg-w-semibold);
  color: var(--sg-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.stream-pill:hover {
  border-color: #D4D1C9;
  transform: translateY(-1px);
  text-decoration: none;
}
.stream-pill svg { width: 18px; height: 18px; display: block; }

.feature-byline {
  font-size: 12px;
  color: var(--sg-steel);
  margin: 6px 0 0;
}

.load-more {
  font-size: 15px;
  font-weight: var(--sg-w-semibold);
  color: var(--sg-hero-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.load-more .arrow { display: inline-block; transition: transform 0.2s ease; }
.load-more:hover { text-decoration: none; }
.load-more:hover .arrow { transform: translateX(3px); }

/* Sidebar (right column) */

.thinking-sidebar__label {
  margin-top: 24px;
  color: var(--sg-hero-blue);
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thinking-sidebar__rule {
  width: 40px;
  height: 3px;
  background: var(--sg-hero-blue);
  margin: 8px 0 16px;
  border-radius: 1px;
}

.thinking-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--sg-rule);
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.sidebar-item:hover { opacity: 0.75; text-decoration: none; }
.sidebar-item:first-child { border-top: 0; padding-top: 4px; }

.sidebar-item__num {
  font-size: 13px;
  font-weight: var(--sg-w-bold);
  color: var(--sg-hero-blue);
  line-height: 1.4;
  padding-top: 2px;
}

.sidebar-item__meta-top {
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-steel);
  margin-bottom: 4px;
  display: block;
}

.sidebar-item__title {
  font-family: var(--sg-font-display);
  font-size: 14px;
  font-weight: var(--sg-w-semibold);
  line-height: 1.35;
  color: var(--sg-ink);
  margin: 0 0 4px;
  text-wrap: balance;
}

.sidebar-item__meta-bot {
  font-size: 11px;
  color: var(--sg-steel);
  display: block;
}

/* ── §3 Article grid ──────────────────────────────────────── */

.thinking-articles {
  background: var(--sg-cream);
  padding: 64px 0 120px;
}

.thinking-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--sg-white);
  border: 1px solid var(--sg-rule);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.article-card:hover {
  border-color: #D4D1C9;
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--sg-cream);
  overflow: hidden;
  isolation: isolate;
}
.article-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.article-card__media .article-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.article-card__media .article-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 36px);
}

.article-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-card__tag {
  font-size: 11px;
  font-weight: var(--sg-w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-hero-blue);
  margin: 0;
}

.article-card__title {
  font-family: var(--sg-font-display);
  font-weight: var(--sg-w-bold);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--sg-steel);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.article-card__byline {
  font-size: 12px;
  color: var(--sg-steel);
  margin: 4px 0 0;
}

.article-card__link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  font-weight: var(--sg-w-semibold);
  color: var(--sg-hero-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-card__link .arrow { transition: transform 0.2s ease; }
.article-card:hover .article-card__link .arrow { transform: translateX(3px); }

.thinking-articles__more {
  display: flex;
  justify-content: center;
  margin-top: 72px;
}

/* Per-card atmospheric gradient placeholders (used when no .webp is
   in the article-card__media). Loose pairing with article themes. */
.ab-ai-1  { background: radial-gradient(60% 50% at 50% 40%, rgba(26,86,219,.45), transparent 65%), linear-gradient(160deg,#060A12 0%,#0A1428 55%,#0F1E3E 100%); }
.ab-ai-2  { background: radial-gradient(60% 50% at 55% 45%, rgba(80,50,200,.42), transparent 65%), linear-gradient(160deg,#060410 0%,#0E0820 55%,#180C35 100%); }
.ab-ai-3  { background: radial-gradient(60% 50% at 45% 50%, rgba(0,180,160,.38), transparent 65%), linear-gradient(160deg,#030E12 0%,#071A1E 55%,#0A2830 100%); }
.ab-prod-1 { background: radial-gradient(60% 50% at 50% 40%, rgba(200,32,47,.42), transparent 65%), linear-gradient(160deg,#0C0408 0%,#1A0810 55%,#280C18 100%); }
.ab-prod-2 { background: radial-gradient(60% 50% at 55% 45%, rgba(210,100,20,.45), transparent 65%), linear-gradient(160deg,#0E0A06 0%,#251508 45%,#3A1C08 100%); }
.ab-gtm-1  { background: radial-gradient(60% 50% at 50% 50%, rgba(30,120,80,.45), transparent 65%), linear-gradient(160deg,#040C08 0%,#081A10 55%,#0C2818 100%); }
.ab-fund-1 { background: radial-gradient(60% 55% at 50% 40%, rgba(200,165,30,.40), transparent 65%), linear-gradient(160deg,#0E0A04 0%,#1F1408 55%,#2E2010 100%); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1080px) {
  .thinking-inner { padding: 0 32px; }
  .thinking-header__rule { width: calc(100% - 64px); }
  .thinking-featured__grid { grid-template-columns: 1fr; gap: 56px; }
  .thinking-articles__grid { grid-template-columns: repeat(2, 1fr); }
  .thinking-header__grid { grid-template-columns: 1fr; gap: 16px; }
  .thinking-header__h1 { font-size: 40px; }
}

@media (max-width: 640px) {
  .thinking-inner { padding: 0 24px; }
  .thinking-header__rule { width: calc(100% - 48px); }
  .thinking-articles__grid { grid-template-columns: 1fr; }
  .feature-headline { font-size: 22px; }
  .thinking-articles { padding: 48px 0 80px; }
  .audio-player { gap: 10px; padding: 8px 12px; }
  .ap-time { display: none; }
}
