:root {
  --paper: #f3f5fc;
  --surface: #fff;
  --navy: #101332;
  --text: #16203c;
  --muted: #52617c;
  --line: #dbe1ef;
  --blue: #4839d0;
  --blue-ink: #392baf;
  --blue-soft: #eceaff;
  --accent: #5142d8;
  --accent-ink: #392baf;
  --accent-soft: #eeebff;
  --panel-shadow: 0 12px 32px #22295d0e;
  --ease-out: cubic-bezier(.2,.8,.2,1);
}

[data-tone="tech"] { --accent: #5142d8; --accent-ink: #392baf; --accent-soft: #eeebff; }
[data-tone="gamestation"] { --accent: #a248d2; --accent-ink: #732596; --accent-soft: #f7e8ff; }
[data-tone="football"] { --accent: #168363; --accent-ink: #11634c; --accent-soft: #e4f7ee; }
[data-tone="running"] { --accent: #d96c28; --accent-ink: #913e12; --accent-soft: #fff0e4; }
[data-tone="weather"] { --accent: #1788ad; --accent-ink: #0c627f; --accent-soft: #e2f5fc; }
[data-tone="science-space"] { --accent: #4f6dde; --accent-ink: #324db7; --accent-soft: #e8efff; }
[data-tone="automotive"] { --accent: #cd4b67; --accent-ink: #9d2846; --accent-soft: #ffebf0; }
[data-tone="stocks"] { --accent: #bb8932; --accent-ink: #775015; --accent-soft: #fff3d5; }
[data-tone="breaking"] { --accent: #e55376; --accent-ink: #a82549; --accent-soft: #ffe6ed; }

body {
  background: radial-gradient(ellipse at 7% 11rem, var(--accent-soft), transparent 43rem),
    radial-gradient(ellipse at 94% 23rem, #e7f8ff, transparent 41rem), var(--paper);
}

.masthead {
  position: relative;
  z-index: 5;
  border: 0;
  background: linear-gradient(110deg, #10132e, #21194a 72%, #17264e);
  box-shadow: 0 6px 24px #17163525;
}
.masthead::before, .footer::before {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #8e75ff, #d589f4 28%, #63bdff 64%, #62e9cb);
  content: '';
}
.masthead .wordmark strong span, .footer .wordmark strong span { color: #b7aaff; }
.masthead-inner { gap: 14px; }
.masthead .top-nav {
  min-width: 0;
  justify-content: flex-start;
  column-gap: clamp(12px, 1.25vw, 19px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.masthead .top-nav a { padding-inline: 2px; }
.masthead .top-nav a[aria-current]::after { background: #b7aaff; }
.search-form, .saved-link { transition: border-color .2s, background-color .2s; }
.masthead .search-form:hover, .masthead .saved-link:hover { background-color: #ffffff19; border-color: #a8a1e1; }

.intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
  min-height: 290px;
  padding: clamp(24px, 4vw, 48px);
  margin-block: 34px 19px;
  overflow: hidden;
  border: 1px solid #363768;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(ellipse at 77% 12%, #754db882, transparent 62%),
    radial-gradient(ellipse at 100% 100%, #126681ad, transparent 55%),
    linear-gradient(115deg, #161537 15%, #20204f 80%);
  box-shadow: 0 19px 39px #29285d25;
}
.intro::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#f6f0ff13 1px, transparent 1px), linear-gradient(90deg, #f6f0ff13 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(125deg, transparent 30%, #000);
  content: '';
}
/* Homepage brand artwork: derived from the site's existing news-mark asset. */
.intro-brand {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.intro-brand::before {
  content: "";
  position: absolute;
  width: min(47%, 520px);
  aspect-ratio: 1;
  inset-inline-end: 2%;
  top: 50%;
  transform: translateY(-54%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #9f8aff38 0%, #62deeb1a 40%, transparent 70%),
    repeating-radial-gradient(circle, #c2bef31c 0 1px, transparent 1px 33px);
  mask-image: radial-gradient(circle, #000 26%, #000c 50%, transparent 71%);
}
.intro-brand-logo {
  position: absolute;
  width: clamp(130px, 25vw, 325px);
  height: auto;
  inset-inline-end: clamp(28px, 8vw, 126px);
  top: 47%;
  transform: translateY(-50%);
  opacity: .50;
  filter: drop-shadow(0 0 22px #8887ff70);
}
.intro-brand-mark {
  position: absolute;
  inset-inline-end: clamp(12px, 3.6vw, 54px);
  bottom: clamp(10px, 3vw, 25px);
  color: #d5d1ff;
  opacity: .16;
  font: 800 clamp(1.65rem, 5.25vw, 4.75rem)/1 system-ui, sans-serif;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.intro-copy { align-self: center; min-width: 0; }
@media (max-width: 800px) {
  .intro-brand-logo { width: clamp(110px, 27vw, 195px); inset-inline-end: 7%; opacity: .36; }
  .intro-brand-mark { opacity: .14; }
}
@media (max-width: 570px) {
  .intro-brand-logo { width: clamp(95px, 31vw, 146px); inset-inline-end: -8px; top: 34%; opacity: .24; }
  .intro-brand-mark { inset-inline-end: 11px; bottom: 9px; opacity: .13; font-size: clamp(1.5rem, 7.8vw, 2.6rem); }
  .intro-brand::before { width: 63%; inset-inline-end: -12%; }
}
.intro h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 4.125rem);
  font-weight: 700;
  line-height: 1.19;
  text-wrap: balance;
}
.intro h1 span { display: block; color: #baa9ff; }
.intro p { color: #dedff7; margin-top: 13px; max-width: 38rem; }
.intro .edition-control { align-items: flex-start; margin-top: 17px; }
.intro .edition-control > span { color: #e6e1ff; }
.intro .issue-date-picker, .intro .share-button {
  color: #f3efff;
  border-color: #ffffff55;
  background: #14163270;
}
.intro .issue-date-picker:hover, .intro .share-button:hover { background: #ffffff25; border-color: #d9cffd; }
.intro .calendar-icon { color: #d8ccff; }

.tech-hardware {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 138px;
  max-width: 32rem;
  margin-block: 14px;
  display: grid;
  align-self: stretch;
  align-content: end;
  gap: 3px;
  padding: clamp(15px, 2.4vw, 25px);
  overflow: hidden;
  border: 1px solid #cabaff76;
  border-radius: 19px;
  color: #fff;
  background: #25274c;
  transition: border-color .2s, box-shadow .25s var(--ease-out);
}
.tech-hardware::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(155deg, #29205a47, transparent 41%), linear-gradient(0deg, #10122de8, #13142f38 94%),
    url('assets/lead.webp') 50% 52% / cover;
  content: '';
  transition: transform .45s var(--ease-out);
}
.tech-hardware:focus-visible { outline: 3px solid #6f4acd; outline-offset: 3px; }
.tech-hardware:hover { border-color: #dcd3ff; box-shadow: 0 9px 30px #1412365e; }
.tech-hardware:hover::before { transform: scale(1.06); }
.tech-hardware strong { font-size: clamp(1.15rem, 2.25vw, 1.7rem); line-height: 1.4; overflow-wrap: anywhere; }
.tech-hardware > span:last-child { color: #ede8ff; font-size: .95rem; }
.hardware-mark {
  width: 17px;
  height: 17px;
  margin-bottom: 6px;
  border: 2px solid #b4f6ee;
  border-radius: 4px;
  box-shadow: 0 0 0 4px #9be5f228;
}

.hub-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.hub-tile {
  position: relative;
  min-width: 0;
  min-height: 61px;
  gap: 9px;
  padding: 9px 11px;
  border-color: color-mix(in srgb, var(--accent), #fff 74%);
  border-radius: 13px;
  background: linear-gradient(140deg, var(--accent-soft), #fff 86%);
  color: var(--accent-ink);
  box-shadow: 0 3px 9px #23346909;
  transition: background .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.hub-tile:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px #23346915;
}
.hub-tile .hub-logo { flex: 0 0 29px; width: 29px; height: 29px; border-radius: 8px; }
.hub-tile strong { font-size: .875rem; overflow-wrap: anywhere; }
.section-title::before, .home-headlines .section-title::before {
  height: 22px;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), #aa86f5);
}

.ticker-links, .ticker-headline { border-radius: 20px; }
.ticker-links { box-shadow: 0 10px 28px #1b234b20; }
.ticker-headline {
  border-color: #39385b;
  color: #fff;
  background: radial-gradient(ellipse at 95% 100%, color-mix(in srgb, var(--accent), #171735 60%), transparent 83%), #17172f;
}
.ticker-media { border-radius: 13px; }
.ticker-body { padding-inline-end: 10px; }
.ticker-title { font-weight: 700; }
.ticker-summary { color: #edecf9; }
.ticker-credit { color: #d9d9ed; }
.ticker-topic { padding: 3px 9px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); }
.ticker-topic-breaking { background: #9f2147; color: #fff; }
.ticker-topic-trending { background: #d9ffc1; color: #1c4030; }
.trend-ticker-help { margin: 0 0 .65rem; color: #43576d; font-size: .9rem; }


.feed-tabs { padding-inline: 11px; border-radius: 13px; border: 1px solid var(--line); background: #ffffffcc; }
.feed-tabs a:hover { color: var(--accent-ink); }
.feed-tabs a[aria-current]::after { background: var(--accent); }
.news-grid.feed-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.news-card, .feed-list .news-card {
  border: 1px solid var(--line);
  border-inline-start: 3px solid color-mix(in srgb, var(--accent), #fff 42%);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--panel-shadow);
  transition: transform .24s var(--ease-out), box-shadow .24s, border-color .24s;
}
.feed-list .news-card { padding: 15px; }
.feed-list .card-link { gap: 17px; }
.feed-list .card-bottom { margin-inline-start: 197px; }
.card-image img { transition: transform .4s var(--ease-out); }
.news-card:hover, .feed-list .news-card:hover { border-color: var(--accent); box-shadow: 0 12px 26px #22295d15; }
.news-card:hover .card-image img { transform: scale(1.04); }
.news-card :is(.card-link:hover, .card-link:focus-visible) :is(h2,h3) { color: var(--accent-ink); }
.category-badge:not(.depth-badge,.breaking-badge) { background: var(--accent-soft); color: var(--accent-ink); }
.breaking-badge { background: #ffe6ed; color: #a82549; }

.market-card, .topic-panel, .watchlist, .archive-promo, .football-desk, .empty-state {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}
.topic-panel nav a { background: var(--accent-soft); color: var(--accent-ink); }
.topic-panel nav a:hover { border-color: var(--accent); }
.watchlist { background: linear-gradient(145deg, #f0edff, #fff 65%); }
.archive-promo { background: linear-gradient(140deg, #e6eaff, #eee6ff); color: #302884; }

.listing-head, .story-header {
  padding: clamp(18px, 3.2vw, 36px);
  border: 1px solid color-mix(in srgb, var(--accent), #fff 73%);
  border-inline-start: 5px solid var(--accent);
  border-radius: 20px;
  background: radial-gradient(ellipse at 92% 15%, var(--accent-soft), transparent 80%), #fff;
  box-shadow: var(--panel-shadow);
}
.story-header { max-width: 100%; margin-bottom: 22px; }
.story-header h1, .story-header .story-dek { max-width: 52rem; }
.listing-head h1 span { color: var(--accent-ink); }
.filters a[aria-current], .filters a:hover,
.archive-days a:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.story-image .story-visual { border-radius: 17px; }
.impact { border: 1px solid var(--line); border-inline-start: 4px solid var(--accent); border-radius: 14px; background: var(--accent-soft); }
.impact h2, .sources a { color: var(--accent-ink); }
.footer { border: 0; background: linear-gradient(115deg, #171632, #251d48 75%, #16304b); }
.notice { background: #28214e; }

.reading-progress { display: none; }
@supports (animation-timeline: scroll()) {
  body[data-page="story"] .reading-progress {
    position: fixed;
    z-index: 8;
    inset: 0 auto auto 0;
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #997aef);
    transform-origin: left;
    animation: reading-progress linear both;
    animation-timeline: scroll(root block);
    pointer-events: none;
  }
  @keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: no-preference) {
  .main > :first-child { animation: editorial-enter .42s var(--ease-out) both; }
  @keyframes editorial-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="story"] .reading-progress { display: none; }
  .hub-tile:hover, .news-card:hover, .tech-hardware:hover::before, .news-card:hover .card-image img { transform: none; }
}
@media (max-width: 1100px) {
  .hub-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feed-list .card-bottom { margin-inline-start: 162px; }
}
@media (min-width: 651px) and (max-width: 1280px) {
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; min-height: 0; padding-top: 12px; }
  .top-nav { grid-column: 1 / -1; grid-row: 2; min-height: 48px; }
  .utilities { grid-column: 2; grid-row: 1; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .feed-list .card-bottom { margin-inline-start: 197px; }
}
@media (max-width: 650px) {
  .masthead-inner { gap: 0 9px; }
  .masthead .top-nav { column-gap: 17px; scrollbar-width: none; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; margin-top: 20px; border-radius: 19px; }
  .intro h1 { font-size: clamp(1.85rem, 8vw, 2.8rem); }
  .tech-hardware { min-height: 145px; background-position: center; }
  .hub-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-tile { min-height: 48px; }
  .ticker-body { padding: 0 3px 5px; }
  .ticker-links, .ticker-headline, .listing-head, .story-header { border-radius: 15px; }
  .feed-list .card-bottom { margin-inline-start: 0; }
}


/* Category links are carried by the homepage icon grid. */
.masthead .masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  padding-block: clamp(12px, 2vw, 23px);
  gap: clamp(8px, 2vw, 20px);
}
.masthead .brand { flex: 0 1 auto; min-width: 0; gap: clamp(8px, 1.4vw, 16px); text-decoration: none; }
.masthead .brand-logo {
  width: clamp(42px, 6vw, 62px); height: clamp(42px, 6vw, 62px);
  flex: 0 0 auto; border-radius: 22%; border: 1px solid #c1b9ff70;
  box-shadow: 0 5px 24px #8f83ff48;
}
.masthead .wordmark strong {
  display: block; font-size: clamp(1.45rem, 3.65vw, 2.45rem);
  font-weight: 750; line-height: 1; letter-spacing: -.035em; white-space: nowrap;
}
.masthead .wordmark small {
  display: block; margin-top: .4rem; color: #e3dfff; font-size: clamp(.76rem, 1.5vw, 1rem);
  line-height: 1.25; font-weight: 600; letter-spacing: .045em;
}
.masthead .utilities { flex: 0 0 auto; margin-inline-start: auto; }
@media(max-width:380px){.masthead .brand-logo{width:38px;height:38px}.masthead .wordmark strong{font-size:1.36rem}}
