.quick-search {
  padding: 0;
  border: 0;
  background: none;
  margin-top: 22px;
}
.quick-search label {
  font-size: 14px;
  font-weight: 700;
}
.quick-search > div {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.quick-search input {
  margin: 0;
  min-width: 0;
}
.quick-search button {
  white-space: nowrap;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.quick-links a {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid #cbd4bf;
  border-radius: 25px;
  text-decoration: none;
  background: #edf0e5;
}
.quick-links a:hover {
  background: #dfe8d1;
}
.task-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 30px;
}
.task-strip a {
  padding: 18px;
  border: 1px solid #d8decd;
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
}
.task-strip strong,
.task-strip span {
  display: block;
}
.task-strip span {
  font-size: 13px;
  color: #58675c;
  margin-top: 4px;
}
.section-title .eyebrow {
  margin: 22px 0 5px;
}
.section-title .eyebrow + h2 {
  margin-top: 5px;
}
.spotlight .small {
  font-size: 13px;
  color: #58675c;
  margin-bottom: 0;
}
.hub-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
}
.hub-hero h1 {
  font-size: clamp(34px, 4vw, 50px);
}
.hub-hero > img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.muted {
  font-size: 13px;
  color: #58675c;
}
select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #cccdbf;
  border-radius: 8px;
  background: white;
  color: #23352d;
  font: inherit;
  margin-top: 8px;
}
.related-pages {
  margin-top: 42px;
  padding-top: 4px;
  border-top: 1px solid #d8decd;
}
.related-pages .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.prose + .related-pages {
  max-width: 960px;
}
nav a[aria-current='page'] {
  font-weight: 800;
  text-decoration: underline;
}
.crumb {
  margin-top: 8px;
}
main > section {
  scroll-margin-top: 20px;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
.tool-page .toc {
  font-size: 15px;
}
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}
@media (max-width: 700px) {
  .hub-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }
  .hub-hero > img {
    max-height: 210px;
    object-fit: cover;
  }
  .task-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .task-strip a {
    padding: 13px 16px;
  }
  .task-strip span {
    margin-top: 2px;
  }
  .quick-search > div {
    flex-direction: column;
  }
  .quick-search button {
    min-height: 46px;
  }
  .section-title {
    flex-wrap: wrap;
  }
  .muted {
    margin-bottom: 8px;
  }
  .section-title h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}
@media print {
  .quick-search,
  .quick-links,
  .task-strip,
  .related-pages,
  .library-filter {
    display: none;
  }
}

#review-rows label {
  display: block;
  padding: 14px;
  margin: 10px 0;
  background: #edf1e8;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
#review-rows select {
  display: block;
  max-width: 100%;
  padding: 10px;
  margin-top: 8px;
  font: inherit;
}
#review-status {
  padding: 14px;
  border-left: 4px solid #496f54;
}

/* Gaming math lab: original diagrams and readable result hierarchy. */
.math-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 22px 0;
}
.math-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.math-metrics > div {
  padding: 18px;
  background: #e5eee3;
  border: 1px solid #bfcfbd;
  border-radius: 12px;
}
.math-metrics dt {
  font-size: 14px;
  color: #466250;
}
.math-metrics dd {
  font-size: 26px;
  font-weight: 780;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.math-chart svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0;
}
.formula-text {
  padding: 18px;
  border-left: 4px solid #39796a;
  background: #edf1e8;
  overflow-wrap: anywhere;
}
.math-page label {
  display: block;
}
.math-page form {
  scroll-margin-top: 20px;
}
.math-page table {
  min-width: 420px;
}
.math-page #math-result[data-state='error'] {
  color: #8f2d22;
  padding: 16px;
  background: #fce9df;
  border-radius: 10px;
}
.math-page #math-result[data-state='stale'] {
  padding: 16px;
  background: #fff1cf;
}
.math-page img {
  max-height: 300px;
  object-fit: contain;
  background: #122f2b;
}
@media (max-width: 600px) {
  .math-metrics {
    grid-template-columns: 1fr;
  }
  .math-metrics dd {
    font-size: 23px;
  }
  .math-page .tool-fields {
    grid-template-columns: 1fr;
  }
}

.math-hub-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.math-hub-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
}
.math-hub-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}
.math-page .math-cover {
  max-height: 200px;
}
@media (max-width: 700px) {
  .math-hub-hero {
    grid-template-columns: 1fr;
  }
  .math-hub-hero img {
    max-height: 180px;
    object-fit: contain;
    background: #122f2b;
  }
  .math-page .math-cover {
    max-height: 150px;
  }
}

.illustrated .math-illustration {
  aspect-ratio: 900/360;
  object-fit: contain;
  background: #122f2b;
}
.math-chart {
  overflow-x: auto;
}
@media (max-width: 600px) {
  .math-chart svg {
    min-width: 580px;
  }
}

.answer-panel {
  background: #e7efdf;
  border: 1px solid #a8bea3;
  border-radius: 16px;
  padding: 22px;
  margin: 24px 0;
}
.answer-panel p {
  margin-top: 0;
}
.guide-method {
  font-size: 14px;
  color: #58675c;
}
.guide-checks {
  counter-reset: guide;
  padding: 0;
  list-style: none;
}
.guide-checks li {
  counter-increment: guide;
  background: #fffdf7;
  border: 1px solid #d5ddce;
  border-radius: 12px;
  padding: 20px;
  margin: 14px 0;
}
.guide-checks li:before {
  content: counter(guide, decimal-leading-zero);
  display: block;
  color: #54745d;
  font-weight: 800;
  margin-bottom: 8px;
}
.field-guide table {
  border-collapse: collapse;
  width: 100%;
}
.field-guide th,
.field-guide td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #d5ddce;
  vertical-align: top;
}
.field-guide figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.field-guide h1 {
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.illustrated .strategy-diagram {
  aspect-ratio: 1000/580;
  object-fit: contain;
  background: #173a30;
}

.field-guide {
  max-width: 1120px;
}
.guide-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.guide-opening h1 {
  font-size: clamp(29px, 3.4vw, 40px);
}
.guide-opening figure {
  margin: 28px 0;
}
.guide-opening figcaption {
  font-size: 12px;
}
.guide-opening .answer-panel {
  padding: 18px;
}
.field-guide > h2,
.field-guide > p,
.field-guide > ol,
.field-guide > .table-scroll {
  max-width: 850px;
}
.guide-image-link {
  display: block;
}
.guide-image-link img {
  cursor: zoom-in;
}
.field-guide figure img {
  border-radius: 12px;
}
@media (max-width: 760px) {
  .guide-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .guide-opening figure {
    margin: 8px 0 20px;
  }
  .guide-opening h1 {
    font-size: 32px;
  }
}

/* Dota identity: actual hero art first, tactical schematics within the lesson. */
.dota-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  background: #201c1b;
  color: #fff5eb;
  padding: 28px;
  border-radius: 18px;
  margin: 24px 0 36px;
  border-top: 5px solid #bd4b36;
}
.dota-hub h1 {
  font-size: clamp(34px, 5vw, 58px);
}
.dota-hub .intro,
.dota-hub .eyebrow,
.dota-hub figcaption,
.dota-hub .small {
  color: #dacac0;
}
.dota-hub figure {
  margin: 0;
}
.dota-hub img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.dota-hub .quick-links a {
  background: #3b2c27;
  border-color: #795344;
  color: #fff3e6;
}
.dota-page .eyebrow {
  color: #9e412f;
}
.field-guide .dota-hero-render {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center 80%;
  background: radial-gradient(ellipse at 50% 80%, #6f3024, #221b1a 70%);
}
.illustrated .dota-card-portrait {
  aspect-ratio: 256/144;
  object-fit: cover;
  image-rendering: auto;
  background: #211d1a;
}
.dota-page .guide-opening figcaption {
  color: #65554c;
}
@media (max-width: 760px) {
  .dota-hub {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }
  .field-guide .dota-hero-render {
    height: 330px;
  }
}

.field-guide img.dota-skill-icon {
  width: 128px !important;
  max-width: 128px !important;
  height: 128px !important;
  object-fit: contain;
}
nav.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
nav.site-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  transition: background 0.15s;
}
nav.site-nav a:hover {
  background: #e6edde;
}
nav.site-nav a[aria-current='page'] {
  background: #dfe9d6;
  color: #203b2c;
  text-decoration: none;
}
@media (max-width: 600px) {
  nav.site-nav {
    gap: 5px;
  }
  nav.site-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }
}
.portal-hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 26px 0 28px;
}
.portal-hero h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 12px 0 18px;
}
.portal-hero h1 span {
  font-size: 0.8em;
  color: #56745d;
}
.portal-hero .intro {
  font-size: 18px;
  max-width: 650px;
}
.portal-feature {
  border: 1px solid #d3dbce;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.portal-feature > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.portal-feature img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.portal-feature > a > p,
.portal-feature h2,
.portal-feature > a > span {
  margin-left: 20px;
  margin-right: 20px;
}
.portal-feature h2 {
  font-size: 24px;
  margin-top: 8px;
  margin-bottom: 10px;
}
.portal-feature .eyebrow {
  margin-top: 16px;
  font-size: 11px;
}
.portal-feature > a > span {
  display: block;
  font-weight: 700;
  margin-bottom: 18px;
}
.portal-feature > .small {
  font-size: 12px;
  padding: 0 20px 14px;
  color: #58675c;
}
.portal-directory {
  padding: 24px 0 24px;
}
.portal-directory h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 10px 0 14px;
  line-height: 1.1;
}
.portal-directory .intro {
  font-size: 18px;
  max-width: 900px;
  margin-bottom: 14px;
}
.portal-games .section-title {
  margin-top: 0;
}
.portal-games .grid {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .portal-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  .portal-hero h1 {
    font-size: 34px;
  }
  .portal-feature img {
    height: 170px;
  }
  .portal-directory {
    padding: 20px 0;
  }
  .portal-directory h1 {
    font-size: 34px;
  }
  .portal-directory .intro {
    font-size: 17px;
  }
}
.dota-page video {
  display: block;
  width: 100%;
  max-width: 850px;
  aspect-ratio: 16/9;
  background: #14221c;
  border-radius: 12px;
  object-fit: contain;
}
.dota-ability-identity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0;
  padding: 20px;
  background: #edf1e7;
  border-radius: 12px;
}
.dota-ability-identity img {
  flex: none;
}
.dota-stat-table {
  overflow-x: auto;
}
.dota-stat-table table {
  width: 100%;
  border-collapse: collapse;
}
.dota-stat-table th,
.dota-stat-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #d3dbcf;
}
.dota-problem-cases section {
  padding: 16px 20px;
  margin: 14px 0;
  background: #fff;
  border-left: 4px solid #627e56;
}
.dota-problem-cases h3 {
  margin: 0 0 10px;
}
@media (max-width: 600px) {
  .dota-ability-identity {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  .dota-ability-identity img.dota-skill-icon {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
  }
  .dota-stat-table {
    font-size: 14px;
  }
}
/* User-authorized editorial portal refresh, 2026-10-17. */
.editorial-home .home-masthead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
}
.editorial-home .home-masthead h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 8px 0;
}
.home-masthead p {
  margin: 8px 0;
  color: #52675c;
}
.home-masthead .eyebrow {
  font-size: 11px;
}
.home-masthead .quick-search {
  margin: 0;
}
.game-rail {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  background: #193d32;
  color: #fff;
  padding: 13px 17px;
  border-radius: 10px;
  margin: 4px 0 24px;
}
.game-rail span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9dbc6;
}
.game-rail a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 8px;
}
.game-rail a:hover {
  text-decoration: underline;
}
.editorial-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.lead-stories a {
  text-decoration: none;
  color: inherit;
}
.lead-main {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #17362e;
  color: #fff !important;
}
.lead-main > img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
}
.lead-main > div {
  padding: 19px 22px;
}
.lead-main h2 {
  font-size: 30px;
  line-height: 1.15;
  margin: 12px 0;
}
.lead-main p {
  color: #e5eee1;
  margin: 8px 0;
}
.story-action {
  font-size: 14px;
  font-weight: 650;
}
.lead-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.lead-secondary a {
  border: 1px solid #d5ddcf;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.lead-secondary img {
  display: block;
  width: 100%;
  height: 135px;
  object-fit: cover;
}
.lead-secondary a > div {
  padding: 14px;
}
.lead-secondary h2 {
  font-size: 19px;
  line-height: 1.25;
  margin: 8px 0;
}
.lead-secondary p {
  font-size: 14px;
  margin: 8px 0;
}
.lead-secondary .eyebrow {
  font-size: 10px;
}
.home-latest {
  border-top: 4px solid #64804c;
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 18px;
}
.home-latest h2 {
  font-size: 22px;
  margin: 0;
}
.home-latest ol {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.home-latest li {
  border-top: 1px solid #e5e8df;
  padding: 11px 0;
}
.home-latest li a {
  text-decoration: none;
  color: inherit;
}
.home-latest li span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: #5b745b;
}
.home-latest h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 5px 0;
}
.home-latest .small {
  font-size: 11px;
  color: #637266;
}
.home-game-directory .grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.home-game-directory .card h3 {
  font-size: 20px;
}
.home-game-directory .card p {
  font-size: 14px;
}
.home-game-directory .card .cover {
  height: 105px;
  object-fit: cover;
}
.home-guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.home-guide-columns .grid {
  grid-template-columns: 1fr 1fr;
}
.home-guide-columns .card h3 {
  font-size: 19px;
}
.home-guide-columns .card p {
  font-size: 14px;
}
.game-factbox {
  border: 1px solid #cbd8c2;
  border-top: 4px solid #5c7a4c;
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  margin: 24px 0;
}
.game-factbox h2 {
  margin: 0 0 18px;
  font-size: 25px;
}
.game-factbox dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
}
.game-factbox dl > div {
  padding: 12px 0;
  border-top: 1px solid #e3e8dd;
}
.game-factbox dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #61715b;
}
.game-factbox dd {
  margin: 5px 0 0;
  font-weight: 650;
  font-size: 16px;
}
.game-factbox .small {
  font-size: 13px;
  margin-bottom: 0;
}
.article-jumps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.article-jumps a {
  padding: 9px 13px;
  border-radius: 7px;
  background: #e4eddc;
  font-size: 14px;
}
.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.requirements-grid > div {
  padding: 18px;
  background: #fff;
  border: 1px solid #d9dfd2;
  border-radius: 10px;
}
.requirements-grid h3 {
  margin-top: 0;
}
.requirements-grid ul {
  padding-left: 20px;
}
.requirements-grid li {
  font-size: 15px;
  margin: 8px 0;
}
@media (max-width: 850px) {
  .editorial-lead {
    grid-template-columns: 1fr;
  }
  .home-latest ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .home-guide-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .editorial-home .home-masthead {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .editorial-home .home-masthead h1 {
    font-size: 27px;
  }
  .game-rail {
    gap: 4px;
    padding: 10px;
  }
  .lead-main > img {
    height: 210px;
  }
  .lead-main h2 {
    font-size: 25px;
  }
  .lead-main > div {
    padding: 16px;
  }
  .lead-secondary {
    gap: 10px;
  }
  .lead-secondary img {
    height: 105px;
  }
  .lead-secondary a > div {
    padding: 11px;
  }
  .lead-secondary h2 {
    font-size: 17px;
  }
  .lead-secondary p {
    font-size: 13px;
  }
  .home-latest ol {
    grid-template-columns: 1fr;
  }
  .home-guide-columns .grid {
    grid-template-columns: 1fr;
  }
  .game-factbox {
    padding: 16px;
  }
  .game-factbox dl,
  .requirements-grid {
    grid-template-columns: 1fr;
  }
  .home-game-directory .grid {
    grid-template-columns: 1fr 1fr;
  }
  .home-game-directory .card {
    padding: 14px;
  }
  .home-game-directory .card h3 {
    font-size: 18px;
  }
}
.release-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0;
}
.release-overview > figure {
  margin: 0 !important;
}
.release-overview > figure img {
  display: block;
  width: 100%;
  height: auto;
}
.release-overview .game-factbox {
  margin: 0;
}
.release-overview .game-factbox dl {
  gap: 0 16px;
}
.release-overview .game-factbox dd {
  font-size: 14px;
}
.release-overview .game-factbox dl > div {
  padding: 9px 0;
}
@media (max-width: 800px) {
  .release-overview {
    grid-template-columns: 1fr;
  }
  .release-overview .game-factbox dl {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .release-overview .game-factbox dl {
    grid-template-columns: 1fr;
  }
}
/* Thumbnail guide feed and wider desktop home; article reading width unchanged. */
body.home-page > header,
body.home-page > main,
body.home-page > footer {
  max-width: 1360px;
}
.home-latest li {
  padding: 12px 0;
}
.home-latest li a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}
.home-latest li img {
  display: block;
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 7px;
}
.home-latest li h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  margin: 4px 0;
}
.home-latest li p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: #667468;
  margin: 4px 0 0;
}
.home-latest li span {
  font-size: 10px;
}
.editorial-lead {
  align-items: start;
}
.home-latest {
  min-width: 0;
}
.home-latest .section-title {
  gap: 12px;
}
.home-latest .section-title > a {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  body.home-page > header,
  body.home-page > main,
  body.home-page > footer {
    max-width: 1440px;
  }
}
@media (max-width: 850px) and (min-width: 601px) {
  .home-latest ol {
    grid-template-columns: 1fr 1fr;
  }
  .home-latest li a {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .home-latest li img {
    width: 88px;
    height: 64px;
  }
}
@media (max-width: 600px) {
  body.home-page > header,
  body.home-page > main,
  body.home-page > footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-latest {
    padding: 15px;
  }
  .home-latest li a {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 11px;
  }
  .home-latest li img {
    width: 86px;
    height: 65px;
  }
  .home-latest li h3 {
    font-size: 15px;
    -webkit-line-clamp: 4;
  }
  .home-latest li p {
    display: none;
  }
  .home-latest ol {
    display: block;
  }
  .home-latest h2 {
    font-size: 22px;
  }
}

.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  margin: 24px 0;
  background: #edf1e7;
  border: 1px solid #cbd5be;
  border-radius: 8px;
}
.guide-topic-nav strong {
  width: 100%;
}
.guide-topic-nav a {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #cbd5be;
  border-radius: 5px;
  text-decoration: none;
}
.guide-topic-nav a:hover,
.guide-topic-nav a:focus-visible {
  outline: 2px solid #56765d;
}
.guide-topic-section {
  scroll-margin-top: 85px;
  margin-block: 32px;
}
.guide-topic-nav span {
  font-size: 0.85em;
}
@media (max-width: 600px) {
  .guide-topic-nav {
    padding: 12px;
    gap: 8px;
  }
  .guide-topic-nav a {
    flex: 1 1 150px;
    font-size: 14px;
  }
}

.mechanic-flow {
  padding: 20px;
  border: 1px solid #b8c9bb;
  background: #edf3ee;
  border-radius: 8px;
}
.mechanic-flow ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mechanic-flow li {
  padding: 14px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.mechanic-flow li strong {
  background: #25483a;
  color: #fff;
  border-radius: 50%;
  min-width: 28px;
  text-align: center;
}
.decision-panel th {
  background: #e9efe6;
}
.decision-panel td,
.decision-panel th {
  padding: 12px;
  border: 1px solid #cbd5c6;
  text-align: left;
  vertical-align: top;
}
.decision-panel table {
  border-collapse: collapse;
  width: 100%;
}
.table-scroll {
  overflow-x: auto;
}
@media (max-width: 600px) {
  .mechanic-flow ol {
    grid-template-columns: 1fr;
  }
  .decision-panel td,
  .decision-panel th {
    padding: 8px;
    font-size: 14px;
  }
}
/* Compact gaming portal: strong header, readable light content. */
body {
  background: #f1f3f5;
  color: #20282e;
}
body > header {
  background: #17252b;
  color: #fff;
  border-bottom: 3px solid #e89938;
  border-radius: 0 0 8px 8px;
}
body > header nav a {
  color: #f4f7f8;
  text-decoration: none;
}
body > header nav a:hover {
  color: #ffc576;
}
body > header .brand {
  color: #fff;
}
body.home-page > header,
body.home-page > main,
body.home-page > footer {
  width: 94%;
  max-width: 1800px;
}
.card {
  border-color: #dce2e6;
  border-radius: 9px;
}
.badge {
  background: #fce7c7;
  color: #74450d;
}
.game-rail {
  border-radius: 6px;
}
.home-latest {
  border-top-color: #e89938;
}
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
  align-items: start;
}
.release-grid .release-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce2e6;
  background: #fff;
  border-radius: 9px;
  min-width: 0;
}
.release-card > img.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.release-card-copy {
  padding: 14px 16px 16px;
}
.release-card .badge {
  font-size: 10px;
  padding: 3px 8px;
}
.release-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 9px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.release-card .release-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 6px;
}
.release-dates span {
  color: #68717a;
}
.release-card .release-meta {
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0;
}
.release-card .release-summary {
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 8px 0;
}
.release-read {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #245344;
  margin-top: 10px;
}
@media (min-width: 1500px) {
  .home-page .release-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body.home-page > header,
  body.home-page > main,
  body.home-page > footer {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  body > header {
    border-radius: 0;
  }
  .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .release-card-copy {
    padding: 10px;
  }
  .release-card h3 {
    font-size: 17px;
  }
  .release-card .release-summary {
    display: none;
  }
  .release-card .release-dates {
    font-size: 11px;
  }
  .release-card .release-meta {
    font-size: 11px;
  }
  .release-read {
    margin-top: 8px;
  }
}
@media (max-width: 360px) {
  .release-grid {
    grid-template-columns: 1fr;
  }
}
body.collection-page > header,
body.collection-page > main,
body.collection-page > footer {
  width: 94%;
  max-width: 1600px;
}
.collection-page .portal-directory {
  padding: 24px 0 18px;
}
.collection-page .portal-directory h1 {
  font-size: clamp(30px, 3vw, 46px);
  margin: 12px 0;
}
.collection-page .portal-directory > p:not(.eyebrow) {
  max-width: 900px;
}
.collection-page .release-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.collection-page .grid {
  align-items: start;
}
.collection-page .card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.collection-page .release-card p.release-dates {
  display: flex;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.collection-page .release-card p.release-summary {
  -webkit-line-clamp: 2;
}
.collection-page .release-card h3 {
  min-height: 2.5em;
}
.collection-page .release-meta {
  min-height: 3em;
}
body > header nav a[aria-current='page'] {
  background: #304c45;
  color: #fff;
  border-radius: 5px;
}
@media (max-width: 600px) {
  body.collection-page > header,
  body.collection-page > main,
  body.collection-page > footer {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .collection-page .release-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-page .release-card p.release-summary {
    display: none;
  }
  .collection-page .portal-directory {
    padding-top: 12px;
  }
  .collection-page .portal-directory h1 {
    letter-spacing: -1px;
  }
  header nav {
    gap: 8px 14px;
  }
  header nav a {
    padding: 4px 0;
  }
}
@media (max-width: 360px) {
  .collection-page .release-grid {
    grid-template-columns: 1fr;
  }
}
.collection-page .card h3 {
  font-size: 19px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.text-guide-card {
  border-top: 4px solid #497367;
}
.collection-page .text-guide-card {
  padding: 18px;
}
.collection-page .guide-topic-section .grid {
  align-items: stretch;
}
.collection-page .card p {
  font-size: 13px;
  line-height: 1.5;
}

/* Preserve the entire featured gameplay frame at every viewport. */
.editorial-home .lead-main > img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* Game-directory cards need readable widths rather than a single narrow strip. */
.home-game-directory .grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.home-game-directory .card {
  min-width: 0;
  padding: 16px;
}
.home-game-directory .card .cover {
  width: calc(100% + 32px);
  margin: -16px -16px 14px;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.home-game-directory .card .badge {
  font-size: 11px;
  padding: 4px 9px;
  line-height: 1.35;
}
.home-game-directory .card h3 {
  font-size: 21px;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.home-game-directory .card p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 600px) {
  .home-game-directory .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .home-game-directory .card {
    padding: 12px;
  }
  .home-game-directory .card .cover {
    width: calc(100% + 24px);
    margin: -12px -12px 12px;
  }
  .home-game-directory .card h3 {
    font-size: 18px;
  }
  .home-game-directory .card p {
    font-size: 12px;
  }
  .home-game-directory .card .badge {
    font-size: 10px;
    padding: 3px 7px;
  }
}
@media (max-width: 340px) {
  .home-game-directory .grid {
    grid-template-columns: 1fr;
  }
}

/* Keep long console commands readable within narrow article columns. */
.prose {
  overflow-wrap: anywhere;
}
.card .cover[src*='/images/valheim/'][src$='.svg'] {
  object-fit: contain;
  background: #162f36;
}

/* Instructional video stays optional; steps and the original-source link remain usable without it. */
.prose .demo-direct {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid #466b67;
  border-radius: 9px;
  background: #e9f0ed;
  color: #183f38;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.5;
}
.prose .demo-direct:hover,
.prose .demo-direct:focus-visible {
  background: #dce8e2;
  text-decoration: underline;
}
.prose .guide-video {
  margin: 1rem 0 1.5rem;
  padding: 14px 18px;
  border: 1px solid #cad5d0;
  border-radius: 10px;
  background: #fff;
}
.prose .guide-video summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}
.prose .guide-video figure {
  margin: 18px 0 0;
  min-width: 0;
}
.prose .guide-video iframe {
  max-width: 100%;
  min-height: 200px;
  background: #142b30;
}
.prose .guide-video-portrait figure {
  max-width: 320px;
  margin: 18px auto 0;
}
.prose .guide-video figcaption {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .prose .guide-video {
    padding: 12px;
  }
  .prose .demo-direct {
    display: block;
    font-size: 15px;
  }
  .field-guide .guide-checks {
    padding-left: 0;
  }
  .field-guide table {
    font-size: 14px;
  }
  .field-guide th,
  .field-guide td {
    padding: 10px;
    overflow-wrap: anywhere;
  }
}
/* Wide-screen guide layout: reserve room for media and tables without stretching prose. */
@media (min-width: 1200px) {
  body:has(article.field-guide) > header,
  body:has(article.field-guide) > main,
  body:has(article.field-guide) > footer {
    width: calc(100% - 80px);
    max-width: 1600px;
    box-sizing: border-box;
  }
  body:has(article.field-guide) article.field-guide {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }
  article.field-guide .guide-opening {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
  }
  article.field-guide > p,
  article.field-guide > ol,
  article.field-guide > ul,
  article.field-guide > h2,
  article.field-guide > h3 {
    max-width: 960px;
  }
  article.field-guide > .table-scroll {
    max-width: 1200px;
  }
  article.field-guide > figure {
    max-width: 1100px;
  }
  article.field-guide.inline-step-guide {
    max-width: 1100px !important;
  }
}
@media (min-width: 2200px) {
  body:has(article.field-guide) > header,
  body:has(article.field-guide) > main,
  body:has(article.field-guide) > footer {
    max-width: 1760px;
  }
}
/* Shared page frame: directories, home and guides use the same responsive gutters. */
@media (min-width: 1000px) {
  body > header,
  body > main,
  body > footer,
  body.home-page > header,
  body.home-page > main,
  body.home-page > footer,
  body:has(article.field-guide) > header,
  body:has(article.field-guide) > main,
  body:has(article.field-guide) > footer {
    box-sizing: border-box;
    width: calc(100% - 64px);
    max-width: 1760px;
    margin-inline: auto;
  }
  .editorial-home .lead-main > img {
    width: 100%;
    height: clamp(280px, 27vw, 440px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 65%;
  }
  .editorial-home .lead-secondary img {
    height: 150px;
  }
  .home-latest li h3 {
    -webkit-line-clamp: 2;
  }
  .home-latest li p {
    -webkit-line-clamp: 1;
  }
}
@media (min-width: 2200px) {
  body > header,
  body > main,
  body > footer,
  body.home-page > header,
  body.home-page > main,
  body.home-page > footer,
  body:has(article.field-guide) > header,
  body:has(article.field-guide) > main,
  body:has(article.field-guide) > footer {
    max-width: 2040px;
  }
}
article.field-guide figure img {
  max-width: 100%;
  height: auto;
}
article.field-guide figure.step-screenshot {
  max-width: min(100%, 900px);
}
@media (max-width: 999px) {
  body > header,
  body > main,
  body > footer {
    box-sizing: border-box;
    max-width: 100%;
  }
  .editorial-home .lead-main > img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center 65%;
  }
}
.reading-route {
  border: 1px solid #d5dfd9;
  border-left: 4px solid #d99532;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0 24px;
  background: #fff;
}
.reading-route h2 {
  font-size: 22px;
  margin: 0 0 14px;
}
.reading-route ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.reading-route li {
  margin: 0;
  min-width: 0;
}
.reading-route a {
  display: block;
  padding: 12px;
  background: #f0f4f1;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.4;
}
.next-task {
  max-width: 960px;
  border-top: 2px solid #d99532;
  margin: 32px 0 20px;
  padding: 18px 0;
}
.next-task h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.next-task p {
  margin: 8px 0;
}
@media (max-width: 500px) {
  .reading-route {
    padding: 15px;
  }
  .reading-route ol {
    grid-template-columns: 1fr;
  }
}

/* Compact browsing cards and homepage masthead — 2026-10-20. */
.grid > .card {
  padding: 16px;
  min-width: 0;
}
.grid > .card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 10px 0 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.grid > .card p {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.grid > .card .badge {
  font-size: 11px;
  line-height: 1.3;
  padding: 4px 9px;
}
.grid > .card.illustrated .cover {
  width: calc(100% + 32px);
  margin: -16px -16px 12px;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
}
body:has(.editorial-home) > header {
  padding: 12px 20px;
  min-height: 56px;
}
body:has(.editorial-home) > main {
  padding-top: 10px;
}
.editorial-home .home-masthead {
  padding: 8px 0 12px;
  gap: 20px;
}
.editorial-home .home-masthead .eyebrow {
  display: none;
}
.editorial-home .home-masthead h1 {
  font-size: 26px;
  margin: 0 0 5px;
  line-height: 1.2;
}
.editorial-home .home-masthead p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.editorial-home .quick-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.editorial-home .quick-search input {
  padding: 9px 12px;
  margin: 0;
  min-height: 40px;
  font-size: 15px;
}
.editorial-home .quick-search button {
  padding: 9px 15px;
  min-height: 40px;
  font-size: 15px;
}
.editorial-home .game-rail {
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
  gap: 4px;
  padding: 7px 10px;
  margin: 0 0 16px;
  border-radius: 7px;
}
.editorial-home .game-rail > * {
  min-width: 0;
  white-space: nowrap;
}
.editorial-home .game-rail a {
  padding: 4px 8px;
  font-size: 13px;
}
@media (max-width: 700px) {
  body:has(.editorial-home) > header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
  }
  body:has(.editorial-home) > header .brand {
    font-size: 21px;
  }
  body:has(.editorial-home) > header nav {
    gap: 12px;
    font-size: 12px;
  }
  .editorial-home .home-masthead {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 4px 0 12px;
  }
  .editorial-home .home-masthead h1 {
    font-size: 24px;
    line-height: 1.18;
    margin: 0;
  }
  .editorial-home .home-masthead > div > p:not(.eyebrow) {
    display: none;
  }
  .editorial-home .game-rail span {
    display: none;
  }
  .home-game-directory .card h3,
  .home-guide-columns .card h3 {
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .editorial-home .quick-search > div {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
  }
  .editorial-home .quick-search input {
    width: 0;
    min-width: 0;
    flex: 1;
  }
  .editorial-home .quick-search button {
    width: auto;
    flex: 0 0 auto;
  }
}

/* The homepage feature is a compact reading entry; article screenshots retain their full proportions. */
.editorial-home .lead-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 240px;
}
.editorial-home .lead-main > img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}
.editorial-home .lead-main > div {
  padding: 20px;
  min-width: 0;
  align-self: center;
}
.editorial-home .lead-main h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 10px 0;
}
.editorial-home .lead-main p {
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial-home .lead-secondary a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
}
.editorial-home .lead-secondary img {
  width: 100px;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
}
.editorial-home .lead-secondary a > div {
  padding: 12px;
  min-width: 0;
}
.editorial-home .lead-secondary h2 {
  font-size: 16px;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial-home .lead-secondary p {
  display: none;
}
.editorial-home .game-rail a {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) {
  .editorial-home .lead-main {
    grid-template-columns: 1fr;
  }
  .editorial-home .lead-main > img {
    height: 190px;
    min-height: 0;
    max-height: 190px;
  }
  .editorial-home .lead-main > div {
    padding: 16px;
  }
  .editorial-home .lead-secondary {
    grid-template-columns: 1fr;
  }
  .editorial-home .lead-secondary img {
    height: 94px;
  }
  .editorial-home .lead-main h2 {
    font-size: 23px;
  }
}
@media (max-width: 600px) {
  .editorial-home .lead-main > img {
    height: 160px;
    max-height: 160px;
  }
  .editorial-home .lead-main h2 {
    font-size: 22px;
  }
  .editorial-home .lead-main p {
    -webkit-line-clamp: 2;
  }
  .editorial-home .lead-main .badge {
    font-size: 11px;
  }
  .editorial-home .game-rail a {
    max-width: 145px;
    font-size: 12px;
  }
  .editorial-home .game-rail a:nth-of-type(n + 3):not(:last-child) {
    display: none;
  }
  .editorial-home .lead-secondary {
    gap: 10px;
    margin-top: 10px;
  }
  .editorial-home .lead-secondary img {
    height: 80px;
  }
  .editorial-home .lead-secondary h2 {
    -webkit-line-clamp: 2;
  }
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #586675;
  margin: 10px 0 20px;
}
.publication-meta > span + span::before {
  content: '·';
  margin-right: 12px;
  color: #88949d;
}
.publication-meta time,
.card-date {
  font-variant-numeric: tabular-nums;
}
.editorial-home .lead-main .story-date {
  font-size: 12px;
  color: #d1dfd8;
  margin: 6px 0;
  display: block;
}
.editorial-home .lead-secondary .story-date {
  display: block;
  font-size: 11px;
  color: #586675;
  margin: 6px 0 0;
}
.editorial-home .home-latest .card-date {
  display: block;
  font-size: 11px;
  color: #586675;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 5px;
}

/* Keep the first coverage row close to the directory rather than letting the sidebar create a large gap. */
.editorial-home .editorial-lead {
  margin-bottom: 18px;
}
.editorial-home .home-latest {
  padding: 14px 18px;
}
.editorial-home .home-latest ol {
  margin: 10px 0 0;
}
.editorial-home .home-latest li {
  padding: 10px 0;
}
.editorial-home .home-latest li img {
  height: 64px;
}
.editorial-home .home-latest li h3 {
  -webkit-line-clamp: 2;
}
.editorial-home .home-latest li p,
.editorial-home .home-latest > .small {
  display: none;
}
.editorial-home .home-game-directory > .section-title h2 {
  margin: 0 0 16px;
}

/* Game shortcuts use the homepage width; the directory link stays at the right edge. */
.editorial-home {
  container-type: inline-size;
}
.editorial-home .game-rail {
  flex-wrap: nowrap;
  gap: 6px;
}
.editorial-home .game-rail > * {
  flex: 0 0 auto;
}
.editorial-home .game-rail a:not(:last-child) {
  flex: 1 1 auto;
  text-align: center;
}
.editorial-home .game-rail a:last-child {
  margin-left: auto;
  max-width: none;
}
@container (max-width:1500px) {
  .editorial-home .game-rail a:nth-of-type(n + 7):not(:last-child) {
    display: none;
  }
}
@container (max-width:1100px) {
  .editorial-home .game-rail a:nth-of-type(n + 5):not(:last-child) {
    display: none;
  }
}
@container (max-width:900px) {
  .editorial-home .game-rail span {
    display: none;
  }
}
@container (max-width:800px) {
  .editorial-home .game-rail a:nth-of-type(n + 4):not(:last-child) {
    display: none;
  }
}
@container (max-width:650px) {
  .editorial-home .game-rail a:nth-of-type(n + 3):not(:last-child) {
    display: none;
  }
}

/* Compact shared navigation and game-hub introductions. */
body > header,
body:has(.editorial-home) > header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 5px 20px;
  border-bottom-width: 2px;
}
body > header .brand {
  font-size: 22px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.7px;
}
body > header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  line-height: 1.2;
}
body > header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 0;
  white-space: nowrap;
}
body:has(.guide-topic-nav) > main {
  padding-top: 12px;
}
body:has(.guide-topic-nav) main > .hero {
  padding: 8px 0 10px;
}
body:has(.guide-topic-nav) main > .hero .eyebrow {
  display: none;
}
body:has(.guide-topic-nav) main > .hero h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 4px 0 7px;
  max-width: none;
}
body:has(.guide-topic-nav) main > .hero .intro {
  font-size: 14px;
  line-height: 1.45;
  max-width: 1000px;
  margin: 0;
}
.guide-topic-nav {
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  max-width: 100%;
  gap: 8px;
  padding: 0 0 8px;
  margin: 4px 0 14px;
  background: none;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
}
.guide-topic-nav strong {
  display: none;
}
.guide-topic-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 11px;
  min-height: 34px;
}
.guide-topic-section {
  margin-block: 18px;
}
.guide-topic-section > h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 16px 0 14px;
}
@media (max-width: 700px) {
  body > header,
  body:has(.editorial-home) > header {
    padding: 4px 14px;
    min-height: 48px;
    gap: 8px;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  body > header .brand,
  body:has(.editorial-home) > header .brand {
    font-size: 18px;
  }
  body > header nav,
  body:has(.editorial-home) > header nav {
    font-size: 12px;
    gap: 12px;
  }
  body > header nav a {
    min-height: 38px;
  }
  body:has(.guide-topic-nav) main > .hero h1 {
    font-size: 27px;
    line-height: 1.15;
    margin: 4px 0 6px;
  }
  body:has(.guide-topic-nav) main > .hero .intro {
    font-size: 13px;
    line-height: 1.4;
  }
  .guide-topic-nav {
    padding: 0 0 6px;
    margin: 2px 0 10px;
    gap: 6px;
  }
  .guide-topic-nav a {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 8px 10px;
  }
  .guide-topic-section > h2 {
    font-size: 20px;
    margin-top: 12px;
  }
}
@media (max-width: 350px) {
  body > header .brand,
  body:has(.editorial-home) > header .brand {
    font-size: 16px;
  }
  body > header nav,
  body:has(.editorial-home) > header nav {
    font-size: 11px;
    gap: 9px;
  }
}

@media (max-width: 700px) {
  body > header nav,
  body:has(.editorial-home) > header nav {
    flex-wrap: nowrap !important;
    width: auto !important;
    min-width: 0;
    flex: 0 0 auto;
    gap: 10px;
  }
  body > header .brand {
    flex: 0 1 auto;
  }
}

@media (max-width: 700px) {
  body > header nav a {
    font-size: 12px !important;
    padding: 4px 0 !important;
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
  }
  body > header nav {
    gap: 10px !important;
  }
}
/* The original feature and compact white list share their top and bottom edges. */
.editorial-home .single-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}
.editorial-home .single-feature .lead-stories {
  display: flex;
  min-width: 0;
}
.editorial-home .single-feature .lead-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.editorial-home .single-feature .lead-main > img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 2.1/1;
  object-fit: cover;
  object-position: center;
  flex: 1 1 auto;
}
.editorial-home .single-feature .lead-main > div {
  padding: 16px 20px;
  align-self: stretch;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.editorial-home .single-feature .lead-main h2 {
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.2;
  margin: 8px 0;
}
.editorial-home .single-feature .lead-main p {
  display: block;
  overflow: visible;
  font-size: 15px;
  line-height: 1.4;
  margin: 6px 0;
}
.editorial-home .single-feature .lead-main .story-date {
  font-size: 12px;
  margin: 3px 0;
}
.editorial-home .single-feature .story-action {
  margin-top: 8px;
  font-size: 14px;
}
.editorial-home .single-feature .home-latest {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: white;
  border-top: 4px solid #ed9a33;
  border-radius: 0;
}
.editorial-home .single-feature .home-latest h2 {
  font-size: 22px;
}
.editorial-home .single-feature .home-latest ol {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  flex: 1;
  gap: 0;
  margin: 10px 0 0;
}
.editorial-home .single-feature .home-latest li {
  padding: 10px 0;
  border-top: 1px solid #e5e8df;
  min-width: 0;
}
.editorial-home .single-feature .home-latest li a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  height: 100%;
}
.editorial-home .single-feature .home-latest li img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}
.editorial-home .single-feature .home-latest li a > div {
  min-width: 0;
}
.editorial-home .single-feature .home-latest li span {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.editorial-home .single-feature .home-latest li h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 4px 0;
  -webkit-line-clamp: 2;
}
.editorial-home .single-feature .home-latest li p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: #68766d;
  margin: 4px 0;
}
.editorial-home .single-feature .home-latest .card-date {
  font-size: 11px;
  margin-top: 4px;
}
@media (max-width: 850px) {
  .editorial-home .single-feature {
    grid-template-columns: 1fr;
  }
  .editorial-home .single-feature .home-latest ol {
    grid-template-rows: none;
  }
  .editorial-home .single-feature .lead-main > img {
    aspect-ratio: 16/9;
    flex: none;
  }
}
@media (max-width: 480px) {
  .editorial-home .single-feature .home-latest li a {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .editorial-home .single-feature .home-latest li img {
    width: 86px;
    height: 65px;
  }
  .editorial-home .single-feature .lead-main > div {
    padding: 16px;
  }
}
#library-results .card-publication {
  font-size: 12px;
  line-height: 1.5;
  color: #65736d;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.editorial-home .single-feature .lead-main .story-summary {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-home .single-feature .lead-main > div {
  padding: 12px 18px;
}
.editorial-home .single-feature .lead-main h2 {
  font-size: clamp(23px, 1.7vw, 28px);
  margin: 6px 0;
  line-height: 1.2;
}
.editorial-home .single-feature .lead-main .story-date {
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
  color: #c8d8d0;
}
.editorial-home .single-feature .story-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.editorial-home .single-feature .lead-main .story-summary {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.editorial-home .single-feature .story-action {
  flex: none;
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .editorial-home .single-feature .story-footer {
    flex-wrap: wrap;
    gap: 6px;
  }
  .editorial-home .single-feature .lead-main .story-summary {
    flex-basis: 100%;
  }
}

.collection-page .portal-directory {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 8px 0 16px;
  flex-wrap: wrap;
}
.collection-page .portal-directory h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.6px;
}
.collection-page .portal-directory p.intro {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  max-width: none;
}
.collection-page .portal-directory > a {
  margin-left: auto;
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .collection-page .portal-directory {
    gap: 6px 12px;
  }
  .collection-page .portal-directory h1 {
    font-size: 24px;
  }
}
/* Information pages share the compact site type scale. */
body:has(.info-page) > main {
  padding-top: 18px;
}
.info-page {
  max-width: 960px;
  font-size: 15px;
  line-height: 1.65;
}
.info-page h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 14px;
  max-width: none;
}
.info-page h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 22px 0 8px;
}
.info-page p {
  margin: 8px 0 12px;
}
@media (max-width: 600px) {
  .info-page h1 {
    font-size: 26px;
  }
  .info-page {
    font-size: 14px;
  }
}
.legacy-game-hub main > .hero {
  padding: 8px 0 16px;
}
.legacy-game-hub main h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 4px 0 8px;
  max-width: none;
}
.legacy-game-hub main .intro {
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0;
}
@media (max-width: 600px) {
  .legacy-game-hub main h1 {
    font-size: 27px;
  }
}
@media (max-width: 700px) {
  body > header nav.site-nav a[href='/about/'] {
    display: none;
  }
  body > header nav.site-nav {
    gap: 8px !important;
  }
}
@media (max-width: 350px) {
  body > header .brand {
    font-size: 15px !important;
  }
  body > header nav.site-nav a {
    font-size: 11px !important;
  }
  body > header nav.site-nav {
    gap: 6px !important;
  }
}
.editorial-home .section-title > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.card-image-credit {
  display: block;
  padding: 6px 16px 0;
  color: #667b79;
  font-size: 11px;
  line-height: 1.4;
  text-transform: none;
}
.lead-main .card-image-credit,
.home-latest .card-image-credit {
  padding: 0;
  font-weight: 400;
}
