/* Site-wide responsive hardening */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

/* Headings should wrap intentionally instead of clipping. Extra line-height protects Ä/Ö/Ü and accents. */
.display, .page-title, .h2, .subhead,
.article-section h2, .quick-box-head, .aside-card strong,
.card h3, .promise strong, .game-hub-name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.display { line-height: .9; padding-top: .05em; }
.page-title { line-height: .98; padding-top: .08em; }
.h2, .subhead { line-height: 1; padding-top: .06em; }
.article-section h2, .card h3, .promise strong, .game-hub-name { line-height: 1.08; padding-top: .05em; }

/* GTA hub secondary headline gets a smaller scale than the game name */
.gta-hub-hero .page-title { max-width: none; font-size: clamp(3rem, 6.2vw, 6.5rem); }
.gta-hub-hero .gta-tagline { display: block; font-size: .74em; line-height: 1; color: var(--accent); padding-top: .08em; }

/* Keep long content from forcing horizontal scrolling */
.article, .article-layout, .card, .game-focus-head, .gta-hub-hero { min-width: 0; }
.article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.source-list a { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .gta-hub-hero { grid-template-columns: minmax(0,1fr) minmax(230px,320px); gap: 34px; }
  .gta-hub-hero .page-title { font-size: clamp(3rem, 7vw, 5.5rem); }
  .game-focus-head { grid-template-columns: minmax(0,1fr) 300px !important; gap: 28px; }
}

@media (max-width: 820px) {
  .header-inner { padding: 12px 0; min-height: 0; flex-wrap: wrap; }
  .brand { font-size: 1.75rem; }
  .nav { width: 100%; justify-content: space-between; gap: 10px 14px; }
  .nav a, .nav a:not(:first-child) { display: inline-block; font-size: .72rem; }

  .hero { padding-top: 46px; }
  .display { font-size: clamp(3.4rem, 15vw, 7rem); }
  .section { padding: 50px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }

  .game-focus-head, .gta-hub-hero { grid-template-columns: 1fr !important; }
  .gta-hub-logo { width: min(100%, 500px); justify-self: start; }
  .gta-hub-hero .page-title { font-size: clamp(3rem, 11vw, 5.4rem); }
  .gta-hub-hero .gta-tagline { font-size: .72em; }

  .card-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .promises { grid-template-columns: 1fr; }
  .promise + .promise { border-left: 0; border-top: 3px solid var(--line); }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .side-note { position: static; }
  .fact-row { gap: 8px; }
  .fact { font-size: .72rem; }
}

@media (max-width: 540px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .site-header { position: static; }
  .brand { font-size: 1.5rem; }
  .nav { justify-content: flex-start; }
  .nav a { font-size: .68rem; }

  .hero { padding: 34px 0 40px; }
  .display { font-size: clamp(3rem, 18vw, 5rem); line-height: .94; }
  .hero-copy { font-size: 1rem; }

  .search-shell { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .search-shell button { border-left: 0; border-top: 3px solid var(--line); padding: 13px 12px; }

  .page-hero { padding: 36px 0 24px; }
  .gta-hub-hero .page-title { font-size: clamp(2.8rem, 15vw, 4.4rem); line-height: 1; }
  .gta-hub-hero .gta-tagline { font-size: .68em; line-height: 1.02; }
  .gta-hub-logo { min-height: 150px; padding: 18px; box-shadow: 5px 5px 0 var(--ink); }
  .gta-hub-logo img { width: min(70vw,250px); }
  .lead { font-size: 1rem; }

  .h2 { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .subhead { font-size: clamp(2rem, 11vw, 3rem); }
  .topic-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; padding: 18px; }
  .card-tag { margin-bottom: 24px; }

  .answer-box { box-shadow: 5px 5px 0 var(--ink); }
  .answer-text { padding: 19px; font-size: 1.35rem; }
  .article h2 { font-size: 2rem; }
  .article th, .article td { padding: 10px; min-width: 120px; }

  .fact-row { align-items: stretch; }
  .fact { flex: 1 1 auto; text-align: center; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 24px; }
}

@media (max-width: 360px) {
  .display { font-size: 2.8rem; }
  .gta-hub-hero .page-title { font-size: 2.7rem; }
  .nav { gap: 8px 12px; }
  .nav a { font-size: .62rem; }
}
