/* /news index + article pages (QUEUE B2). Builds on brand/tokens.css (colours)
   and landing.css (reset, nav, footer, .stores, .eyebrow, .post cards); this
   file only adds the editorial layer. Mobile-first, 16 px gutters, light + dark. */

.news main { padding-bottom: 8px; }
.read { width: 100%; max-width: calc(68ch + 32px); margin: 0 auto; padding: 0 16px; }
.wide { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* category chip */
.cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cat::before { content: ''; width: 20px; height: 4px; border-radius: 4px; flex: none;
  background: linear-gradient(90deg, var(--text) 0 50%, #e1ae45 50% 100%); }

/* ARTICLE */
.art-head { padding-top: 40px; }
.art-head h1 { font-size: clamp(32px, 8vw, 52px); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.03em; margin: 14px 0 16px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--muted);
  font-weight: 600; }
.byline span + span::before { content: '·'; margin-right: 10px; }
.art-cover { margin: 28px auto 8px; max-width: 1040px; padding: 0 16px; }
.art-cover img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); }
@media (min-width: 760px) { .art-cover img { border-radius: 28px; } }

.prose { padding-top: 24px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 18px; }
.prose > p:first-child { font-size: 20px; line-height: 1.6; }
.prose h2 { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.2; font-weight: 800;
  margin-top: 48px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 800; margin-top: 32px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose p { overflow-wrap: break-word; }
.prose a { color: var(--text); text-decoration-color: var(--gold); text-decoration-thickness: 2px;
  text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--gold); font-weight: 800; }
.prose hr { border: 0; height: 4px; width: 40px; margin: 40px auto; border-radius: 4px;
  background: linear-gradient(90deg, var(--text) 0 50%, #e1ae45 50% 100%); }
.prose blockquote { border-left: 4px solid var(--gold); padding: 4px 0 4px 18px;
  font-size: 22px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }

/* tables scroll inside their own box, never the page */
.table-scroll { overflow-x: auto; margin-inline: -16px; padding: 0 16px;
  overscroll-behavior-x: contain; scrollbar-width: thin; }
.table-scroll:focus-visible { outline-offset: -2px; }
.ntable { width: 100%; min-width: calc(var(--cols, 3) * 132px); border-collapse: separate;
  border-spacing: 0; font-size: 15px; line-height: 1.45; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ntable th, .ntable td { padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.ntable tr:last-child td { border-bottom: 0; }
.ntable thead th { font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  background: color-mix(in srgb, #e1ae45 12%, var(--card)); }
.ntable tbody td:first-child { font-weight: 800; }
@media (min-width: 760px) { .table-scroll { margin-inline: 0; padding: 0; } }

/* "Try StylePal" cards: compact near the top, full at the end */
.try { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.try .stores { gap: 10px; }
.try-top { display: grid; gap: 14px; padding: 18px 16px; margin: 28px 0; }
.try-top p { font-size: 16px; line-height: 1.5; margin: 0; }
.try-top .stores img { height: 40px; width: auto; }
.try-bottom { position: relative; overflow: hidden; margin-top: 56px; padding: 32px 20px;
  background: #111111; color: #f5f2ec; border-color: rgba(255, 255, 255, 0.14); text-align: center; }
.try-bottom::after { content: ''; position: absolute; inset: 0 0 0 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(225, 174, 69, 0.16), rgba(225, 174, 69, 0.02)); }
.try-bottom > * { position: relative; z-index: 1; }
.try-bottom .eyebrow { color: #b3ada3; justify-content: center; }
.try-bottom .eyebrow::before { background: linear-gradient(90deg, #f5f2ec 0 50%, #e1ae45 50% 100%); }
.try-bottom h3 { font-size: clamp(24px, 6vw, 34px); line-height: 1.15; font-weight: 800;
  margin: 12px auto 10px; max-width: 520px; color: #f5f2ec; }
.try-bottom p { color: #b3ada3; max-width: 520px; margin: 0 auto 22px; }
.try-bottom .stores { justify-content: center; }
.try-bottom .stores img { height: 44px; width: auto; }
.try-bottom .note { margin: 16px auto 0; font-size: 13px; }
@media (min-width: 640px) {
  .try-top { grid-template-columns: 1fr auto; align-items: center; padding: 18px 20px; }
  .try-bottom { padding: 48px 40px; }
}

/* related + index cards reuse landing's .post; covers get a real aspect */
.related { margin-top: 72px; }
.related h2, .feed-head h2 { font-size: clamp(24px, 5.5vw, 34px); margin: 10px 0 24px; }
.news .post .art { height: auto; aspect-ratio: 3 / 2; }
.news .post .art img { position: absolute; inset: 0; }
.post .cat { font-size: 11px; margin-bottom: 8px; }
.post .meta { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 10px; }
.post p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }

/* INDEX */
.feed-hero { padding-top: 40px; padding-bottom: 8px; }
.feed-hero h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.035em; margin: 14px 0 12px; max-width: 820px; }
.feed-hero .lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.popular { font-size: 15px; color: var(--muted); margin-top: 14px; max-width: 820px; }
.popular a { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.lead-post { display: grid; gap: 20px; margin-top: 36px; text-decoration: none; }
.lead-post .art { border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card); aspect-ratio: 3 / 2; }
.lead-post .art img { width: 100%; height: 100%; object-fit: cover; }
.lead-post h2 { font-size: clamp(26px, 6vw, 40px); line-height: 1.12; margin: 10px 0 12px; }
.lead-post p { color: var(--muted); font-size: 17px; }
.lead-post .meta { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 14px; }
.lead-post:hover h2 { color: var(--gold); }
@media (min-width: 900px) {
  .lead-post { grid-template-columns: 1.35fr 1fr; align-items: center; gap: 48px; }
}
.feed { margin-top: 64px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text);
  border-color: var(--btn-bg); }
.news .posts { gap: 18px; }
@media (min-width: 640px) { .news .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news .posts { grid-template-columns: repeat(3, 1fr); } }
.more { display: flex; justify-content: center; margin-top: 28px; }
.more button { font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; min-height: 44px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text); }
.post[hidden], .more[hidden] { display: none; }
.feed-cta { margin-top: 72px; }
.filters[hidden] { display: none; }
.try-index .stores { gap: 10px; }
.try-index .stores img { height: 44px; width: auto; }
