/* Insider Avenue — page-specific layout for the homepage and the article page.
   Shared chrome (nav, ticker, cards, footer, listing pages) lives in site.css;
   this file holds only what's unique to the home and article templates. */

/* ============================ HOMEPAGE ============================ */

/* ---- Hero ---- */
.hero { padding-block: clamp(32px, 5vw, 48px) clamp(32px, 4.5vw, 44px); border-bottom: 1px solid var(--line-light); }
.hero-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: clamp(16px, 2vw, 22px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 56px); align-items: center; }
.hero-img { background: linear-gradient(135deg, #C8BEAC 0%, #B8AE9C 100%); border-radius: 6px; aspect-ratio: 460 / 340; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-label { font-size: 14px; color: var(--slate); }
.hero-title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 500; color: var(--navy); line-height: 1.15; margin-bottom: clamp(16px, 2vw, 22px); letter-spacing: -1.2px; text-wrap: balance; }
.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: #8A6F3E; }
.hero-excerpt { font-size: clamp(16px, 1.6vw, 19px); color: #4A5C6A; line-height: 1.6; margin-bottom: clamp(20px, 2.6vw, 28px); text-wrap: pretty; max-width: 60ch; }
.hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-readtime { font-size: 15px; color: var(--slate); }
.hero-read { font-size: 16px; color: var(--gold); font-weight: 500; text-decoration: none; }
.hero-read:hover { text-decoration: underline; }

/* ---- Newsletter band ---- */
.nl-bar { background: var(--navy); }
.nl-inner { padding-block: clamp(24px, 3vw, 30px); display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 32px); flex-wrap: wrap; }
.nl-copy { flex: 1 1 280px; min-width: 0; }
.nl-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-weight: 500; }
.nl-title { font-size: clamp(18px, 2.1vw, 22px); font-weight: 500; color: var(--cream); letter-spacing: -0.4px; text-wrap: balance; }
.nl-form { display: flex; gap: 12px; flex: 1 1 380px; max-width: 480px; }
.nl-input { background: rgba(244,241,236,0.08); border: 1px solid var(--gold); border-radius: 4px; padding: 13px 18px; font-size: 16px; color: var(--cream); flex: 1; min-width: 0; outline: none; font-family: inherit; }
.nl-input::placeholder { color: var(--slate); }
.nl-btn { background: var(--gold); border: none; border-radius: 4px; padding: 13px 28px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); cursor: pointer; font-weight: 600; font-family: inherit; white-space: nowrap; transition: background 0.15s; }
.nl-btn:hover { background: var(--gold-deep); }
.nl-success { flex: 1 1 380px; max-width: 480px; align-self: center; font-size: clamp(16px, 1.7vw, 18px); color: var(--gold); font-weight: 500; }

/* ---- Latest articles ---- */
.articles { padding-block: clamp(36px, 5vw, 48px); }
.row1 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 300px); gap: clamp(18px, 2vw, 24px); margin-bottom: clamp(18px, 2vw, 24px); }
.row2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 24px); }
.row2 .thumb-img { aspect-ratio: 16 / 11; }

/* Card images carry real renditions; cover the box. Absolute so they fill the
   frame without becoming flex items — otherwise they'd shove centered overlays
   (the video play badge) off to the side. */
.thumb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-img .play-badge { position: relative; }  /* sit above the absolute img */

/* ---- Trending sidebar widget ---- */
.sidebar-widget { background: #fff; border: 1px solid var(--line-light); border-radius: 6px; padding: clamp(18px, 2vw, 22px); align-self: start; }
.sw-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; border-bottom: 1px solid #EDE8E0; padding-bottom: 12px; font-weight: 600; }
.trend-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--cream); text-decoration: none; }
.trend-item:last-child { border-bottom: none; padding-bottom: 0; }
.trend-num { font-size: 22px; font-weight: 500; color: var(--gold); min-width: 24px; line-height: 1.1; }
.trend-title { font-size: 17px; color: var(--navy); line-height: 1.4; font-weight: 500; }
.trend-item:hover .trend-title { color: #8A6F3E; }

@media (min-width: 721px) and (max-width: 1024px) {
  .sidebar-widget .trend-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .sidebar-widget .trend-item:nth-last-child(2) { border-bottom: none; }
}
@media (max-width: 1024px) {
  .row1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row1 .sidebar-widget { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(22px, 5vw, 28px); }
  .hero-img { order: -1; aspect-ratio: 16 / 9; }
  .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row1 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .row1, .row2 { grid-template-columns: 1fr; }
  .row2 .thumb-img, .hero-img { aspect-ratio: 16 / 9; }
  .nl-form { flex-direction: column; max-width: none; }
  .nl-btn { width: 100%; }
}

/* ============================ ARTICLE PAGE ============================ */

.art-header { padding-block: clamp(28px, 4.5vw, 52px) clamp(18px, 2.5vw, 28px); }
.art-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--slate); margin-bottom: clamp(16px, 2.4vw, 24px); flex-wrap: wrap; }
.art-breadcrumb a { color: var(--slate); text-decoration: none; }
.art-breadcrumb a:hover { color: #8A6F3E; }
.art-breadcrumb .sep { color: var(--gold); }

.art-head-inner { max-width: 880px; }
.art-cat { margin-bottom: 18px; }
.art-title { font-size: clamp(30px, 5vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -1.2px; color: var(--navy); text-wrap: balance; margin-bottom: clamp(16px, 2vw, 22px); }
.art-dek { font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: #4A5C6A; text-wrap: pretty; margin-bottom: clamp(24px, 3vw, 32px); }

.art-byline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.byline-id { display: flex; align-items: center; gap: 14px; }
.art-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; letter-spacing: 0.02em; flex-shrink: 0; overflow: hidden; }
.art-avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-name { font-size: 16px; font-weight: 600; color: var(--navy); }
.byline-meta { font-size: 14px; color: var(--slate); margin-top: 2px; }
.art-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero image */
.art-hero { margin-block: clamp(24px, 3.5vw, 40px); }
.art-hero figure { background: linear-gradient(135deg, #C8BEAC 0%, #B8AE9C 100%); border-radius: 8px; aspect-ratio: 21 / 9; overflow: hidden; display: flex; align-items: flex-end; }
.art-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.art-hero figcaption { font-size: 13px; color: #6B7C8D; padding: 14px clamp(16px, 2vw, 22px); }

/* Layout */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); }
.art-body { min-width: 0; max-width: 72ch; }

/* Body typography */
.art-body p { font-size: clamp(17px, 1.55vw, 19px); line-height: 1.78; color: #34424E; margin-bottom: 1.3em; text-wrap: pretty; }
.art-body h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: var(--navy); letter-spacing: -0.5px; line-height: 1.25; margin: clamp(32px, 4vw, 48px) 0 0.6em; scroll-margin-top: 24px; }
.art-body p a { color: #8A6F3E; text-decoration: underline; text-underline-offset: 2px; }
.art-body strong { color: var(--navy); font-weight: 600; }
.art-body .first p:first-of-type::first-letter { font-size: 3.1em; line-height: 0.84; font-weight: 600; color: var(--gold-deep); float: left; padding: 4px 10px 0 0; }

/* Key takeaways (StreamField key_takeaways block) */
.takeaways { background: #fff; border: 1px solid var(--line-light); border-radius: 8px; padding: clamp(22px, 2.6vw, 30px); margin-bottom: clamp(28px, 3.5vw, 38px); }
.takeaways-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A6F3E; font-weight: 600; margin-bottom: 16px; }
.takeaways ul { list-style: none; display: grid; gap: 13px; margin: 0; padding: 0; }
.takeaways li { display: flex; gap: 12px; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55; color: #34424E; }
.takeaways li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--gold-deep); }

/* Pull quote (StreamField quote block) */
.pullquote { margin: clamp(32px, 4vw, 48px) 0; padding-top: 18px; border-top: 2px solid var(--gold); }
.pullquote p { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; font-weight: 500; color: var(--navy); letter-spacing: -0.5px; text-wrap: balance; }
.pullquote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--slate); letter-spacing: 0.02em; }

/* Inline figure (StreamField image block) */
.inline-fig { margin: clamp(28px, 3.5vw, 40px) 0; }
.inline-fig img { border-radius: 8px; width: 100%; }
.inline-fig figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; line-height: 1.5; }

/* Embed (StreamField embed block) */
.art-embed { margin: clamp(28px, 3.5vw, 40px) 0; }
.art-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

/* Tags */
.art-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: clamp(36px, 4.5vw, 52px); padding-top: clamp(24px, 3vw, 30px); border-top: 1px solid var(--line-light); }
.art-tags .lbl { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-right: 4px; }
.art-tag { font-size: 13px; letter-spacing: 0.04em; padding: 7px 14px; border-radius: 999px; background: #EDE8E0; color: #5A4520; text-decoration: none; transition: background 0.15s; }
.art-tag:hover { background: #E1D8C8; }

/* Author card */
.author-card { display: flex; gap: clamp(16px, 2vw, 22px); align-items: flex-start; background: #fff; border: 1px solid var(--line-light); border-radius: 8px; padding: clamp(22px, 2.6vw, 30px); margin-top: clamp(28px, 3.5vw, 40px); }
.author-card .art-avatar { width: 60px; height: 60px; font-size: 21px; }
.author-name { font-size: 18px; font-weight: 600; color: var(--navy); }
.author-role { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #8A6F3E; font-weight: 600; margin: 3px 0 10px; }
.author-bio { font-size: 15px; line-height: 1.6; color: #4A5C6A; margin-bottom: 12px; text-wrap: pretty; }

/* Sidebar */
.art-aside { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.aside-block { background: #fff; border: 1px solid var(--line-light); border-radius: 8px; padding: 22px; }
.aside-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #EDE8E0; }
.toc { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; font-size: 15px; line-height: 1.4; color: var(--navy); text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--cream); }
.toc li:last-child a { border-bottom: none; }
.toc a:hover { color: #8A6F3E; }
.aside-trend { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--cream); text-decoration: none; }
.aside-trend:last-child { border-bottom: none; padding-bottom: 0; }
.aside-trend .num { font-size: 20px; font-weight: 500; color: var(--gold); min-width: 22px; line-height: 1.1; }
.aside-trend .t { font-size: 15px; color: var(--navy); line-height: 1.4; font-weight: 500; }
.aside-trend:hover .t { color: #8A6F3E; }

/* Related */
.related-bar { background: #fff; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.related { padding-block: clamp(36px, 5vw, 52px); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 24px); }

@media (max-width: 980px) {
  .art-layout { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
  .art-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .art-aside .aside-block { flex: 1 1 280px; }
  .art-body { max-width: 720px; }
}
@media (max-width: 620px) {
  .related-grid { grid-template-columns: 1fr; }
  .art-aside { flex-direction: column; }
  .author-card { flex-direction: column; }
}

/* ============================ HOMEPAGE — WATCH ============================ */

.video-bar { background: var(--navy); }
.video-section { padding-block: clamp(36px, 5vw, 48px); }
.video-section .section-title { color: var(--cream); }

.featured-vid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px); margin-bottom: clamp(22px, 3vw, 28px); align-items: center; }
.featured-thumb { position: relative; border-radius: 6px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #2E4560, #1B2A3B); }
.featured-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-play { position: relative; width: clamp(54px, 6vw, 64px); height: clamp(54px, 6vw, 64px); border-radius: 50%; background: rgba(201,169,110,0.95); display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.featured-thumb:hover .featured-play { transform: scale(1.08); }
.featured-play-tri { width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 21px solid var(--navy); margin-left: 4px; }
.featured-duration { position: absolute; bottom: 14px; right: 14px; font-size: 14px; color: var(--cream); background: rgba(0,0,0,0.7); padding: 4px 10px; border-radius: 3px; font-weight: 500; }
.featured-body { display: flex; flex-direction: column; justify-content: center; }
.featured-tag { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.featured-title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 500; color: var(--cream); line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.6px; text-wrap: balance; }
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { color: var(--gold); }
.featured-desc { font-size: clamp(16px, 1.5vw, 18px); color: var(--steel); line-height: 1.6; margin-bottom: 20px; text-wrap: pretty; }
.featured-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.featured-dur { font-size: 15px; color: var(--slate); }
.featured-watch { font-size: 16px; color: var(--gold); font-weight: 500; text-decoration: none; }
.featured-watch:hover { text-decoration: underline; }

.five-col { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 18px); }
.vid-card { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 6px; overflow: hidden; transition: border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; text-decoration: none; }
.vid-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.vid-thumb { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #2E4560, #1B2A3B); }
.vid-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-play { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(201,169,110,0.9); display: flex; align-items: center; justify-content: center; }
.vid-play-tri { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 12px solid var(--navy); margin-left: 3px; }
.vid-duration { position: absolute; bottom: 8px; right: 9px; font-size: 13px; color: var(--cream); background: rgba(0,0,0,0.7); padding: 2px 7px; border-radius: 3px; font-weight: 500; }
.vid-body { padding: 16px; flex: 1; }
.vid-tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; font-weight: 600; }
.vid-title { font-size: 17px; font-weight: 500; color: #D4DCDF; line-height: 1.4; margin-bottom: 8px; text-wrap: pretty; }
.vid-meta { font-size: 14px; color: var(--slate); }

@media (max-width: 1024px) { .five-col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .featured-vid { grid-template-columns: 1fr; gap: 20px; } .five-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .five-col { grid-template-columns: 1fr; } }

/* ============================ VIDEO DETAIL ============================ */

.vp-stage { background: var(--navy); padding-block: clamp(24px, 4vw, 48px) clamp(28px, 4.5vw, 52px); }
.vp-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--steel); margin-bottom: clamp(16px, 2.4vw, 24px); flex-wrap: wrap; }
.vp-breadcrumb a { color: var(--steel); text-decoration: none; }
.vp-breadcrumb a:hover { color: var(--gold); }
.vp-breadcrumb .sep { color: var(--gold); }

.vp-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #18242F center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.vp-player iframe { width: 100%; height: 100%; border: 0; display: block; }

.vp-meta { margin-top: clamp(22px, 3vw, 30px); max-width: 940px; }
.vp-eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.vp-title { font-size: clamp(24px, 3.6vw, 40px); font-weight: 500; line-height: 1.18; letter-spacing: -0.8px; color: var(--cream); text-wrap: balance; margin-bottom: clamp(18px, 2.4vw, 24px); }
.vp-subrow { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.vp-host { display: flex; align-items: center; gap: 14px; }
.vp-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.vp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vp-host-name { font-size: 16px; font-weight: 600; color: var(--cream); }
.vp-host-sub { font-size: 14px; color: var(--steel); margin-top: 2px; }
.vp-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.vp-notes-bar { background: var(--cream); }
.vp-notes { padding-block: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(32px, 5vw, 64px); }
.vp-notes-body { min-width: 0; max-width: 72ch; }
.vp-notes-body h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 0.7em; }
.vp-notes-body p { font-size: clamp(17px, 1.55vw, 19px); line-height: 1.78; color: #34424E; margin-bottom: 1.3em; text-wrap: pretty; }
.vp-notes-body p a { color: #8A6F3E; text-decoration: underline; text-underline-offset: 2px; }
.vp-notes-body strong { color: var(--navy); font-weight: 600; }
.vp-side { align-self: start; }
.vp-resource { display: block; font-size: 15px; line-height: 1.4; color: var(--navy); text-decoration: none; padding: 11px 0; border-bottom: 1px solid var(--cream); }
.vp-resource:last-child { border-bottom: none; padding-bottom: 0; }
.vp-resource:hover { color: #8A6F3E; }
.vp-resource span { display: block; font-size: 13px; color: var(--slate); margin-top: 2px; }

@media (max-width: 860px) { .vp-notes { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 36px); } }
