.gf-story-index {
  padding-block: clamp(24px, 5vw, 64px);
}

.gf-story-header {
  display: grid;
  gap: 14px;
  max-width: 52rem;
  margin-block: 20px 44px;
}

.gf-story-header :is(h1, p),
.gf-story-chapter :is(h2, p),
.gf-story-card :is(h3, p) {
  margin: 0;
}

.gf-story-chapter-nav,
.gf-story-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gf-story-chapter-nav a,
.gf-story-pagination .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface-1);
  color: var(--c-text);
  font-weight: 700;
}

.gf-story-chapter-nav a:hover,
.gf-story-pagination .btn:hover {
  background: #000;
  color: #fff;
}

.gf-story-pagination .btn[aria-current="page"] {
  background: #f6cf1f;
  border-color: #f6cf1f;
  color: #000;
}

.gf-story-pagination .btn[aria-current="page"]:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.gf-story-chapter {
  margin-block-end: 44px;
  scroll-margin-top: 7rem;
}

.gf-story-chapter h2 {
  margin-block-end: 8px;
}

.gf-story-utility a,
.gf-story-sources a,
.gf-story-position a,
.gf-mission-reference p a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.gf-story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 14px;
  padding: 0;
  margin-block: 18px 0;
  list-style: none;
}

.gf-story-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--c-border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--c-surface-1);
  color: var(--c-text);
}

.gf-story-card:hover {
  border-color: var(--c-text);
  color: var(--c-text);
}

.gf-story-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gf-story-card div {
  padding: 15px 16px 18px;
}

.gf-story-card h3 {
  margin-block-end: 5px;
  font-size: 1.06rem;
}

.gf-story-card p,
.gf-story-chapter > p,
.gf-mission-reference ol {
  color: var(--c-secondary);
  line-height: 1.55;
}

.gf-story-position {
  margin: 0;
  color: var(--c-muted);
  font-size: 0.875rem;
}

.gf-mission-reference {
  padding: clamp(16px, 4vw, 30px);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-surface-1);
  margin-block-end: 18px;
}

.gf-story-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.gf-story-facts div,
.gf-story-tip {
  padding: 12px;
  border-radius: 8px;
  background: var(--c-surface-2);
}

.gf-story-facts dt,
.gf-story-neighbors span {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.gf-story-facts dd {
  margin: 4px 0 0;
  font-weight: 650;
}

.gf-mission-reference li + li {
  margin-top: 6px;
}

.gf-story-neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 20px;
}

.gf-story-neighbors a {
  flex: 1 1 180px;
  padding: 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-surface-1);
  color: var(--c-text);
  font-weight: 650;
}

.gf-story-search {
  display: flex;
  gap: 8px;
  max-width: 32rem;
}

.gf-story-search input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-surface-1);
  color: var(--c-text);
}

.gf-story-search .btn {
  min-height: 44px;
  background: #f6cf1f;
  color: #000;
}

.gf-story-search .btn:hover {
  background: #000;
  color: #fff;
}
