.homepage-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) var(--rail-width);
  grid-template-areas: "main rail" "channels rail";
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

.portal-main,
.portal-rail {
  min-width: 0;
}

.portal-main {
  grid-area: main;
}

.portal-rail {
  position: sticky;
  top: 9rem;
  display: grid;
  grid-area: rail;
  gap: 20px;
}

.channel-directory {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--fuel-line);
  border-top: 4px solid var(--fuel-signal);
  border-radius: 6px;
  background: var(--fuel-card);
}

.rail-label {
  padding: 12px 16px 8px;
  margin: 0;
  color: var(--fuel-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.channel-directory a {
  display: grid;
  min-height: 52px;
  align-content: center;
  padding: 8px 16px;
  border-top: 1px solid var(--fuel-line);
  text-decoration: none;
}

.channel-directory a:hover {
  background: #eef6f5;
  color: var(--fuel-signal);
}

.channel-directory span {
  font-size: 0.88rem;
  font-weight: 780;
}

.channel-directory small {
  color: var(--fuel-muted);
  font-size: 0.68rem;
}

.page-intro,
.story-detail,
.related-section {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--fuel-line);
}

.section-heading h2,
.page-intro h1,
.story-hero h1 {
  margin: 0;
  line-height: 1.2;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--fuel-signal);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.section-link,
.story-link,
.original-link {
  color: var(--fuel-signal);
  font-size: 0.78rem;
  font-weight: 800;
}

.story-kicker {
  margin: 0 0 6px;
  color: var(--fuel-signal);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.story-kicker--card {
  display: none;
}

.related-section {
  margin-top: 44px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-area: channels;
  gap: 18px;
  margin-top: 0;
}

.channel-brief {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--fuel-line);
  border-top: 4px solid var(--fuel-deck);
  border-radius: 6px;
  background: var(--fuel-card);
}

.channel-brief-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--fuel-line);
}

.channel-brief-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.channel-headline {
  padding: 13px 0;
  border-bottom: 1px solid var(--fuel-line);
}

.channel-headline:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.channel-headline h3 {
  margin: 0 0 7px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.channel-headline-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--fuel-muted);
  font-size: 0.68rem;
}

.channel-empty {
  min-height: 96px;
  align-content: center;
  margin: 0;
}

.meta {
  color: var(--fuel-muted);
  font-size: 0.78rem;
}

.page-intro {
  position: relative;
  padding: 20px 0 16px;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--fuel-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.page-intro::after {
  display: none;
}

.page-intro > * {
  position: relative;
  z-index: 1;
}

.page-intro h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.page-intro > p:not(.eyebrow) {
  max-width: 760px;
  margin-block: 6px 0;
  color: var(--fuel-muted);
}

.result-toolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--fuel-line);
  color: var(--fuel-muted);
  font-size: 0.76rem;
}

.result-toolbar p {
  margin: 0;
}

.source-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 0;
}

.source-directory-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 18px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--fuel-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.source-directory-card::before {
  display: none;
}

.source-directory-kicker {
  margin: 0 0 8px;
  color: var(--fuel-signal);
  font-family: var(--font-utility);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.source-directory-card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.source-directory-card h2 a,
.source-directory-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.source-directory-card h2 a {
  text-decoration: none;
}

.source-directory-card h2 a:hover,
.source-directory-link:hover {
  color: var(--fuel-signal);
}

.source-directory-count,
.source-directory-updated {
  margin: 0;
  color: var(--fuel-muted);
  font-size: 0.78rem;
}

.source-directory-count {
  margin-top: 8px;
  color: var(--fuel-ink);
  font-weight: 760;
}

.source-directory-updated {
  margin-top: 2px;
}

.source-directory-link {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--fuel-signal);
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

.source-directory-link span {
  margin-left: 0.35rem;
}

.source-directory-empty {
  grid-column: 1 / -1;
}

.list-grid,
.news-day-stories {
  display: block;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px dashed #aabdc1;
  border-radius: 4px;
  background: var(--fuel-card);
  color: var(--fuel-muted);
}

.empty-state strong {
  display: block;
  color: var(--fuel-ink);
}

.empty-state p {
  margin: 5px 0;
}

.empty-state.compact {
  padding: 13px;
  font-size: 0.8rem;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--fuel-line);
  text-align: center;
}

.pagination a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--fuel-line);
  border-radius: 3px;
  background: var(--fuel-card);
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--fuel-signal);
  color: var(--fuel-signal);
}

.pagination a:first-child,
.pagination > span:first-child { justify-self: start; }
.pagination a:last-child,
.pagination > span:last-child { justify-self: end; }
.pagination > span { color: #9ba8ab; }

.news-timeline {
  margin-top: 16px;
}

.news-day {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-top: 1px solid var(--fuel-line);
}

.news-day > header {
  position: relative;
  padding: 22px 18px 16px 0;
  color: var(--fuel-deck);
  font-family: var(--font-utility);
  font-size: 0.76rem;
  font-weight: 800;
}

.news-day > header::after {
  position: absolute;
  top: 29px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fuel-signal);
  box-shadow: 0 0 0 4px var(--fuel-paper);
  content: "";
}

.news-day-stories {
  border-left: 1px solid var(--fuel-line);
  padding-left: 24px;
}

.story-hero {
  padding: 32px 0 24px;
  border: 0;
  border-bottom: 1px solid var(--fuel-line);
  border-radius: 0;
  background: #fff;
}

.story-reading-width {
  max-width: 820px;
  margin-inline: auto;
}

.story-hero h1 {
  max-width: 820px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.original-title {
  display: grid;
  max-width: 56rem;
  margin: 16px 0 0;
  color: var(--fuel-muted);
  font-size: 0.84rem;
}

.original-title > span:first-child {
  font-size: 0.68rem;
  font-weight: 800;
}

.story-provenance,
.engagement-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.story-provenance div,
.engagement-snapshot div {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--fuel-line);
}

.story-provenance dt,
.engagement-snapshot dt {
  color: var(--fuel-muted);
  font-size: 0.7rem;
}

.story-provenance dd,
.engagement-snapshot dd {
  margin: 3px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  gap: 48px;
  margin-top: 20px;
}

.story-copy,
.evidence-panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.story-copy {
  padding: 28px 0;
}

.story-copy section + section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--fuel-line);
}

.story-copy h2,
.evidence-panel h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.summary-lead {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.92;
}

.source-policy p {
  color: var(--fuel-muted);
}

.source-button {
  display: inline-flex;
  align-items: center;
  padding: 0.58rem 1rem;
  border-radius: 3px;
  background: var(--fuel-deck);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.source-button:hover {
  background: var(--fuel-signal);
}

.page-intro .source-button {
  color: #fff;
}

.evidence-panel {
  align-self: start;
  padding: 28px 0;
  border: 0;
}

.evidence-panel section + section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--fuel-line);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag {
  padding: 4px 9px;
  border: 1px solid var(--fuel-line);
  border-radius: 999px;
  background: #f7f9fa;
  font-size: 0.74rem;
}

.engagement-snapshot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.related-card {
  display: contents;
}

.priority-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.priority-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  border-left: 3px solid var(--fuel-signal);
  background: linear-gradient(90deg, rgb(207 244 90 / 18%), transparent 160px);
}

.priority-rank {
  display: flex;
  justify-content: center;
  padding-top: 24px;
  color: var(--fuel-deck);
  font-size: 0.76rem;
  font-weight: 900;
}

.brief-list .story-card--stream {
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  background: transparent;
}

.related-section .story-grid {
  display: block;
}

/* Readhub-density public home */
.daily-brief-strip {
  display: grid;
  min-height: 40px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 0 14px 0 0;
  border-block: 1px solid var(--fuel-line);
  margin-bottom: 16px;
}

.daily-brief-label {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--fuel-signal);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.daily-brief-label span {
  width: 4px;
  align-self: stretch;
  background: var(--fuel-signal);
}

.daily-brief-strip h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-brief-strip h2 a {
  text-decoration: none;
}

.daily-brief-strip time {
  color: var(--fuel-quiet);
  font-size: 12px;
  white-space: nowrap;
}

.daily-brief-link {
  color: var(--fuel-signal);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-signals {
  position: relative;
  padding: 14px 18px 2px;
  border: 1px solid var(--fuel-line);
  border-top: 3px solid var(--fuel-signal);
  margin-bottom: 24px;
  background: linear-gradient(90deg, rgb(14 116 119 / 5%), transparent 42%);
}

.live-signals-heading {
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 0;
}

.live-signals-heading h2 {
  font-size: 20px;
  line-height: 28px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--fuel-signal);
  box-shadow: 0 0 0 3px rgb(14 116 119 / 12%);
}

.live-signal-list {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  list-style: none;
}

.live-signal-list li {
  position: relative;
  min-width: 0;
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--fuel-line);
}

.live-signal-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.live-signal-list h3 {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
}

.live-signal-list h3 a {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-signal-list h3 a:hover {
  color: var(--fuel-signal);
}

.live-signal-list li > p {
  display: -webkit-box;
  margin: 4px 0 9px;
  overflow: hidden;
  color: var(--fuel-muted);
  font-size: 12px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-signal-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--fuel-quiet);
  font-family: var(--font-utility);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.live-signal-meta span {
  overflow: hidden;
  color: var(--fuel-signal);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-signal-meta time {
  flex: 0 0 auto;
  white-space: nowrap;
}

.homepage-grid.home-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--main-column) var(--rail-width);
  grid-template-areas: "main rail" "channels rail";
  gap: var(--layout-gap);
  align-items: start;
  margin-top: 0;
}

.compact-section-heading {
  align-items: center;
  padding-block: 10px;
  margin: 0;
}

.compact-section-heading h1 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.latest-section,
.latest-stream {
  min-width: 0;
}

.portal-rail {
  position: sticky;
  top: 102px;
  display: grid;
  grid-area: rail;
  gap: 28px;
}

.latest-focus,
.channel-directory {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--fuel-ink);
  box-shadow: none;
}

.rail-heading {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--fuel-line);
}

.rail-heading h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

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

.focus-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--fuel-line);
}

.focus-list li:first-child .focus-index,
.focus-list li:nth-child(2) .focus-index,
.focus-list li:nth-child(3) .focus-index {
  color: var(--fuel-signal);
}

.focus-index {
  color: var(--fuel-quiet);
  font-family: var(--font-utility);
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
}

.focus-list h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.focus-list h3 a {
  text-decoration: none;
}

.focus-list h3 a:hover {
  color: var(--fuel-signal);
}

.focus-list time {
  color: var(--fuel-quiet);
  font-size: 11px;
  line-height: 18px;
}

.focus-list .quick-empty {
  display: block;
  color: var(--fuel-muted);
  font-size: 12px;
}

.quick-more {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  color: var(--fuel-signal);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.channel-directory {
  display: grid;
}

.channel-directory .rail-label {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--fuel-line);
  margin: 0;
  color: var(--fuel-ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.channel-directory a {
  min-height: 44px;
  padding: 7px 0;
  border-top: 0;
  border-bottom: 1px solid var(--fuel-line);
}

.channel-directory a:hover {
  background: var(--fuel-mist);
}

.channel-directory span {
  font-size: 13px;
  font-weight: 600;
}

.channel-directory small {
  color: var(--fuel-quiet);
  font-size: 11px;
}

/* Text-first story streams */
.story-card,
.story-card--stream,
.story-card--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 14px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--fuel-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.story-card:hover,
.story-card--stream:hover {
  border-color: var(--fuel-line);
  background: var(--fuel-mist);
  box-shadow: none;
  transform: none;
}

.story-card-body,
.story-card--stream .story-card-body,
.story-card--channel-lead .story-card-body {
  min-width: 0;
  padding: 0;
}

.story-title-row {
  display: grid;
  min-width: 0;
  align-items: baseline;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.story-card .story-title-row :is(h2, h3),
.story-card--stream .story-title-row :is(h2, h3) {
  min-width: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.story-card .story-title-row :is(h2, h3) a {
  text-decoration: none;
}

.story-card .story-title-row :is(h2, h3) a:hover {
  color: var(--fuel-signal);
}

.story-time {
  color: var(--fuel-quiet);
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}

.story-summary {
  display: -webkit-box;
  margin: 6px 0 7px;
  overflow: hidden;
  color: var(--fuel-muted);
  font-size: 13px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  color: var(--fuel-muted);
  font-size: 12px;
  line-height: 18px;
}

.story-meta-row a {
  color: var(--fuel-signal);
  text-decoration: none;
}

.story-kicker--card {
  display: none;
}

.story-card--section-github .story-kicker--card,
.story-card--section-services .story-kicker--card {
  display: block;
  margin: 0 0 3px;
  color: var(--fuel-signal);
  font-size: 11px;
  line-height: 16px;
}

.story-card--channel-lead {
  grid-template-columns: minmax(0, 1fr);
}

.story-card--channel-lead.story-card--with-media {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
}

.story-card--channel-lead .story-media {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.story-card--channel-lead .story-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}

.story-card--channel-lead:hover .story-thumbnail {
  transform: none;
}

.channel-board {
  display: grid;
  grid-area: channels;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 28px;
}

.channel-brief {
  min-width: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--fuel-ink);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.channel-brief-head {
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fuel-line);
}

.channel-brief-head h2 {
  font-size: 16px;
  line-height: 22px;
}

.channel-headline {
  padding: 12px 0;
  border-bottom: 1px solid var(--fuel-line);
}

.channel-headline h3 {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

.channel-headline h3 a {
  text-decoration: none;
}

.channel-headline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
  color: var(--fuel-quiet);
  font-size: 11px;
  line-height: 17px;
}

.channel-headline-meta a {
  color: var(--fuel-signal);
  text-decoration: none;
}
