/* Game wiki hub, adapted from the supplied GTA V reference. All colors follow ThemeScope. */
.game-hub {
  --shell: 1300px;
}

.game-hub main {
  line-height: 1.5;
}

.hub-hero {
  height: clamp(380px, 34vw, 465px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 22px;
  background: color-mix(in srgb, var(--accent) 30%, #161719);
  color: #fff;
}

.hub-hero > img,
.hub-hero > .hub-hero-image-fallback,
.hub-spotlight > img,
.hub-spotlight > .hub-spotlight-image-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hub-hero > img {
  object-position: center 47%;
}

.hub-hero-shade,
.hub-spotlight-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hub-hero-shade {
  background: linear-gradient(90deg, rgba(13, 16, 19, .91) 0%, rgba(13, 16, 19, .74) 40%, rgba(13, 16, 19, .08) 85%),
    linear-gradient(0deg, rgba(12, 13, 16, .38), transparent 38%);
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 675px;
  padding: clamp(32px, 4vw, 54px) clamp(24px, 4vw, 54px);
}

.hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hub-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.hub-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  letter-spacing: -.055em;
  line-height: .98;
  max-width: 12ch;
  text-wrap: balance;
  margin: 23px 0 18px;
}

.hub-hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,.82);
  font-weight: 600;
  margin-bottom: 16px;
}

.hub-hero-lede {
  max-width: 48ch;
  color: rgba(255,255,255,.88);
  font-size: calc(17px * var(--reader-scale, 1));
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 45px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  line-height: 1.25;
}

.hub-button:hover {
  text-decoration: none;
}

.hub-button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  margin-top: 25px;
}

.hub-button-primary:hover {
  background: var(--accent-2);
  color: var(--accent-ink);
}

.hub-hero-caption {
  position: absolute;
  z-index: 2;
  right: 31px;
  bottom: 22px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-shadow: 0 1px 8px #000;
}

.hub-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 90px;
  border-bottom: 1px solid var(--rule);
}

.hub-stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-right: 1px solid var(--rule);
  padding-right: 26px;
  white-space: nowrap;
}

.hub-stats strong {
  font-family: var(--font-head);
  font-size: 30px;
  letter-spacing: -.045em;
  line-height: 1;
}

.hub-stats span,
.hub-stats p {
  font-size: 12px;
  color: var(--ink-3);
}

.hub-stats p {
  margin-left: auto;
  text-align: right;
}

.hub-jump {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hub-jump-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.hub-jump a {
  display: inline-block;
  padding: 14px 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
}

.hub-jump a:hover,
.hub-jump a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.hub-jump .hub-jump-all {
  margin-left: auto;
  color: var(--ink);
}

.hub-body {
  padding-top: 47px;
}

.hub-section {
  scroll-margin-top: 125px;
  margin-bottom: 47px;
}

.hub-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.hub-section-heading h2,
.hub-more h2 {
  font-family: var(--font-head);
  font-size: clamp(23px, 2.35vw, 32px);
  letter-spacing: -.04em;
  line-height: 1.18;
  color: var(--ink);
}

.hub-section-heading p,
.hub-more p {
  font-size: 13px;
  color: var(--ink-3);
}

.hub-section-heading a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hub-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hub-collection-card {
  min-width: 0;
  min-height: 220px;
  padding: 18px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--card-edge);
  display: flex;
  flex-direction: column;
}

.hub-collection-card:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--accent);
}

.hub-collection-top,
.hub-collection-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.hub-collection-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
}

.hub-collection-icon svg {
  width: 21px;
  height: 21px;
}

.hub-collection-count {
  text-align: right;
  line-height: 1;
}

.hub-collection-count strong {
  display: block;
  font-family: var(--font-head);
  font-size: 23px;
  letter-spacing: -.05em;
}

.hub-collection-count small {
  display: block;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11px;
}

.hub-collection-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: -.035em;
  margin: 22px 0 4px;
  line-height: 1.2;
}

.hub-collection-card p {
  color: var(--ink-3);
  font-size: calc(13px * var(--reader-scale, 1));
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hub-collection-bottom {
  align-items: flex-end;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--rule-2);
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.25;
}

.hub-collection-bottom > span:last-child {
  color: var(--accent);
  font-size: 21px;
  line-height: .8;
}

.hub-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 30px;
  align-items: start;
}

.hub-main-column {
  min-width: 0;
}

.hub-character-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hub-character-card {
  display: block;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--card-edge);
  min-width: 0;
}

.hub-character-card:hover {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--accent);
}

.hub-character-portrait {
  position: relative;
  height: clamp(150px, 18vw, 225px);
  background: color-mix(in srgb, var(--accent) 25%, var(--paper-3));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hub-character-monogram {
  font-family: var(--font-head);
  color: var(--ink-3);
  font-size: 68px;
  letter-spacing: -.09em;
}

.hub-portrait-label {
  position: absolute;
  left: 11px;
  bottom: 11px;
  padding: 4px 7px;
  background: rgba(15, 16, 18, .75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.hub-character-info {
  padding: 15px 14px 12px;
}

.hub-character-info h3 {
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 5px;
}

.hub-character-info p {
  color: var(--ink-3);
  font-size: calc(12px * var(--reader-scale, 1));
  line-height: 1.4;
  min-height: 34px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hub-character-link {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule-2);
  margin-top: 13px;
  padding-top: 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.hub-mission-list {
  border: 1px solid var(--card-edge);
  background: var(--card);
}

.hub-mission-head,
.hub-mission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 25px;
  gap: 14px;
  align-items: center;
  padding: 12px 17px;
}

.hub-mission-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--card-edge);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hub-mission-row {
  min-height: 64px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-2);
  font-size: 12px;
}

.hub-mission-row:last-child {
  border-bottom: 0;
}

.hub-mission-row:hover {
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}

.hub-mission-row strong,
.hub-mission-row small {
  display: block;
}

.hub-mission-row strong {
  font-size: 14px;
  font-weight: 700;
}

.hub-mission-row small {
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
  margin-top: 2px;
}

.hub-mission-role {
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-mission-row > span:last-child {
  color: var(--accent);
  font-size: 20px;
  text-align: right;
}

.hub-spotlight {
  position: relative;
  isolation: isolate;
  min-height: 248px;
  background: color-mix(in srgb, var(--accent) 24%, #171a1d);
  color: #fff;
  overflow: hidden;
  scroll-margin-top: 125px;
}

.hub-spotlight > img {
  object-position: center;
}

.hub-spotlight-shade {
  background: linear-gradient(90deg, rgba(13,16,19,.9), rgba(13,16,19,.48) 66%, rgba(13,16,19,.16));
}

.hub-spotlight-copy {
  position: relative;
  z-index: 2;
  padding: 31px;
  max-width: 510px;
}

.hub-spotlight h2 {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 37px);
  letter-spacing: -.045em;
  line-height: 1.13;
  margin-bottom: 10px;
}

.hub-spotlight p {
  color: rgba(255,255,255,.87);
  font-size: calc(14px * var(--reader-scale, 1));
  line-height: 1.5;
  max-width: 42ch;
}

.hub-button-light {
  background: #fff;
  color: #17191b;
  margin-top: 22px;
}

.hub-button-light:hover {
  background: #e9e8e4;
  color: #17191b;
}

.hub-spotlight-all {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.hub-spotlight-all:hover {
  color: #fff;
}

.hub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-facts-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
}

.hub-aside-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px;
  border-bottom: 1px solid var(--rule-2);
}

.hub-aside-title svg,
.hub-weapons-card > svg {
  width: 23px;
  height: 23px;
  color: var(--accent);
  flex-shrink: 0;
}

.hub-aside-title h2 {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.hub-facts-card dl {
  padding: 6px 17px;
}

.hub-facts-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 12px;
}

.hub-facts-card dl > div:last-child {
  border-bottom: 0;
}

.hub-facts-card dt {
  color: var(--ink-3);
  white-space: nowrap;
}

.hub-facts-card dd {
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.hub-facts-card > a {
  display: flex;
  justify-content: space-between;
  padding: 12px 17px;
  border-top: 1px solid var(--rule-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.hub-weapons-card {
  padding: 23px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--card-edge));
}

.hub-weapons-card h2 {
  font-family: var(--font-head);
  font-size: 27px;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 21px 0 10px;
}

.hub-weapons-card p,
.hub-coverage-note p {
  color: var(--ink-3);
  font-size: calc(13px * var(--reader-scale, 1));
  line-height: 1.5;
}

.hub-weapons-card a {
  display: inline-block;
  margin-top: 19px;
  font-size: 12px;
  font-weight: 700;
}

.hub-coverage-note {
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
}

.hub-coverage-note strong {
  color: var(--ink);
}

.hub-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 10px;
  border-top: 1px solid var(--rule);
}

.hub-more p {
  margin-top: 5px;
}

.hub-button-secondary {
  color: var(--ink);
  border: 1px solid var(--card-edge);
  background: var(--card);
}

.hub-button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hub-content-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .hub-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-collection-card { min-height: 198px; }
}

@media (max-width: 820px) {
  .hub-content-layout { grid-template-columns: 1fr; }
  .hub-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-coverage-note { grid-column: 1 / -1; }
  .hub-jump { top: 66px; }
  .hub-stats p { display: none; }
}

@media (max-width: 600px) {
  .game-hub .site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .game-hub .site-header-inner > .brand { grid-column: 1; grid-row: 1; }
  .game-hub .site-header-inner > .header-actions { grid-column: 2; grid-row: 1; }
  .game-hub .site-header-inner > .site-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 17px; }
  .hub-jump { top: 92px; }
  .hub-hero { height: 410px; margin-top: 16px; }
  .hub-hero-shade { background: linear-gradient(90deg, rgba(13,16,19,.9), rgba(13,16,19,.65)), linear-gradient(0deg, rgba(13,16,19,.35), transparent); }
  .hub-hero-content { padding: 31px 22px; }
  .hub-hero h1 { font-size: clamp(2.9rem, 12vw, 4rem); margin-top: 19px; }
  .hub-hero-caption { right: 18px; bottom: 15px; }
  .hub-stats { min-height: 75px; gap: 17px; }
  .hub-stats > div { display: block; padding-right: 17px; }
  .hub-stats strong { display: block; font-size: 25px; margin-bottom: 4px; }
  .hub-stats span { font-size: 10px; }
  .hub-jump-inner { gap: 22px; }
  .hub-body { padding-top: 31px; }
  .hub-section-heading { align-items: start; flex-wrap: wrap; gap: 7px; }
  .hub-section-heading h2 { width: 100%; }
  .hub-collection-grid { gap: 9px; }
  .hub-collection-card { padding: 12px; min-height: 205px; }
  .hub-collection-icon { width: 32px; height: 32px; }
  .hub-collection-icon svg { width: 19px; height: 19px; }
  .hub-collection-card h3 { font-size: 17px; }
  .hub-collection-bottom { font-size: 10px; }
  .hub-character-grid { grid-template-columns: 1fr; }
  .hub-character-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .hub-character-portrait { height: 155px; }
  .hub-character-info { display: flex; flex-direction: column; }
  .hub-character-link { margin-top: auto; }
  .hub-character-monogram { font-size: 46px; }
  .hub-sidebar { grid-template-columns: 1fr; }
  .hub-coverage-note { grid-column: auto; }
  .hub-mission-head,
  .hub-mission-row { grid-template-columns: minmax(0, 1fr) 20px; }
  .hub-mission-head > span:nth-child(2),
  .hub-mission-role { display: none; }
  .hub-spotlight-copy { padding: 23px; padding-bottom: 50px; }
  .hub-spotlight-all { right: 15px; bottom: 13px; }
  .hub-more { display: block; }
  .hub-more .hub-button { margin-top: 18px; }
}
