/* Game OS re-skin for the section hubs (inc/os-hv.php). The hubs keep their
   own markup and CSS (hubs-v2.css, hv-*.css); here their tokens map to the
   Game OS palette and the shared pieces (hero, headings, chips, cards) take
   the tile look: violet tiles, two chamfered corners, magenta caps. */

.osx .os-hv {
  --surface: var(--o-card); --bg: var(--o-ground); --ink: var(--o-ink); --muted: var(--o-muted); --line: var(--o-line);
  --accent: var(--o-accent-text); --accent-graphic: var(--o-accent-hi); --accent-ink: var(--o-accent-ink);
  --hv-raised: var(--o-card); --hv-line: var(--o-line); --hv-stage: var(--o-tile);
  --hv-display: var(--o-display); --hv-body: var(--o-body);
  display: grid; gap: var(--o-gap); min-width: 0;
}
.osx .os-hv .hv-main { overflow-x: visible; }
.osx .os-hv .hv-wrap { width: auto; margin: 0; padding: 0; gap: var(--o-gap); }
.osx .os-hv__band:empty { display: none; }
.osx .os-hv .hv-crumbs { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Hero: a violet tile with chamfered corners; the mascot stays on the right */
.osx .os-hv .hv-sf { background: var(--o-tile); color: var(--o-tile-ink); box-shadow: var(--o-shade); clip-path: polygon(var(--o-cut) 0, 100% 0, 100% calc(100% - var(--o-cut)), calc(100% - var(--o-cut)) 100%, 0 100%, 0 var(--o-cut)); }
.osx .os-hv .hv-sf h1 { font: 900 clamp(40px, 4.6vw, 68px)/0.92 var(--o-display); font-stretch: 115%; letter-spacing: -0.015em; text-transform: uppercase; color: #fff; }
.osx .os-hv .hv-sf p { color: #E7DCEE; }
.osx .os-hv .hv-sf__stats b { color: #fff; }
.osx .os-hv .hv-sf__stats span { color: var(--o-tile-muted); }
.osx .os-hv .hv-sf__link { color: var(--o-accent-hi); }
.osx .os-hv .hv-sf__door { border-color: var(--o-accent-hi); }

/* Section headings: magenta caps like the rest of Game OS */
body.osx .os-hv h2.hv-sec-h, body.osx .os-hv h2.releases-month__label, body.osx .os-hv h2.nl-page__h2, body.osx .os-hv h2.lib-section__title, body.osx .os-hv h2[id^="hw-"] {
  font: 800 26px/1 var(--o-display); font-stretch: 112%; text-transform: uppercase; color: var(--o-accent-text); letter-spacing: 0; font-weight: 800;
}

/* Chips and buttons */
.osx .os-hv .hv-chip { background: var(--o-card); color: var(--o-ink); font-family: var(--o-display); text-transform: uppercase; font-size: 13px; letter-spacing: 0.02em; }
.osx .os-hv .hv-chip[aria-pressed="true"], .osx .os-hv .hv-chip.is-on, .osx .os-hv .hv-chip[aria-current] { background: var(--o-accent); color: #fff; }
.osx .os-hv .hv-btn, .osx .os-hv .hv-sf__search button { background: var(--o-accent); color: var(--o-accent-ink); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }

/* Raised panels read as tiles */
.osx .os-hv .hv-show { background: var(--o-tile); }

@media (max-width: 860px) {
  .osx .os-hv .hv-sf__art { display: none; }
  body.osx .os-hv h2.hv-sec-h, body.osx .os-hv h2.releases-month__label, body.osx .os-hv h2.nl-page__h2, body.osx .os-hv h2.lib-section__title, body.osx .os-hv h2[id^="hw-"] { font-size: 21px; }
  .osx .os-hv .hv-sf { margin-inline: -12px; }
  .osx .os-hv .hv-sf h1 { font-size: clamp(32px, 9vw, 44px); }
}

/* Hardware hub (inc/os-hardware.php) */
.osx .hwp { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; font: 800 12px/1 var(--o-display); text-transform: uppercase; letter-spacing: 0.03em; background: rgb(255 255 255 / 0.12); color: #fff; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.osx .hwp i { width: 8px; height: 8px; border-radius: 50%; background: var(--o-tile-muted); }
.osx .hwp--on { background: var(--o-accent); } .osx .hwp--on i { background: #fff; box-shadow: 0 0 8px #fff; }
.osx .hw-hero > img { object-position: 70% 40%; }
.osx .hw-hero .scrim { background: linear-gradient(90deg, rgb(20 10 28 / 0.88) 0%, rgb(20 10 28 / 0.55) 55%, rgb(20 10 28 / 0.1) 100%); }
.osx .hw-hero__dev { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 15px/1.3 var(--o-body); color: #E7DCEE; }
.osx .hw-hero__tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osx .hw-hero__tiles li { background: rgb(14 10 19 / 0.6); padding: 10px 12px; display: grid; gap: 3px; }
.osx .hw-hero__tiles b { font: 900 20px/1 var(--o-display); color: #fff; }
.osx .hw-hero__tiles span { font-size: 12px; color: var(--o-tile-muted); }
.osx .hwd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--o-gap); }
.osx .hwd { display: grid; grid-template-rows: auto 1fr; background: var(--o-tile); color: var(--o-tile-ink); text-decoration: none; box-shadow: var(--o-shade); transition: transform 200ms var(--o-ease); }
.osx .hwd:hover { transform: translateY(-2px); }
.osx .hwd__img { aspect-ratio: 16 / 10; background: #0E0A13; display: grid; place-items: center; overflow: hidden; }
.osx .hwd__img img { width: 100%; height: 100%; object-fit: cover; }
.osx .hwd__body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.osx .hwd__body .hwp { justify-self: start; }
.osx .hwd b { font: 800 21px/1.1 var(--o-display); color: #fff; }
.osx .hwd small { font-size: 13px; color: var(--o-tile-muted); }
.osx .hwd__line { font-size: 14px; color: #E7DCEE; }
.osx .hwd__count { font: 700 12.5px/1 var(--o-display); color: var(--o-accent-hi); margin-top: 4px; }
.osx .hw-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--o-gap); align-items: start; }
.osx .hw-cols__side { display: grid; gap: var(--o-gap); }
.osx .hw-up ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.osx .hw-up li { display: grid; gap: 2px; }
.osx .hw-up time, .osx .hw-up li > span { font-size: 12.5px; color: var(--o-tile-muted); }
.osx .hw-up a, .osx .hw-gl a { font: 800 15px/1.25 var(--o-display); color: #fff; text-decoration: none; }
.osx .hw-gl ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
@media (max-width: 860px) {
  .osx .hw-cols { grid-template-columns: minmax(0, 1fr); }
  .osx .hw-hero .scrim { background: rgb(20 10 28 / 0.72); }
}
.osx .hwd__ph { font: 900 34px/0.9 var(--o-display); font-stretch: 115%; text-transform: uppercase; color: var(--o-tile-2); text-align: center; padding: 18px; -webkit-text-stroke: 1px rgb(255 61 138 / 0.5); }
/* News / previews: ad under the Latest list fills the column next to the lead story */
.osx .os-hv .hv-today { display: flex; flex-direction: column; }
.osx .os-hv .hv-today__ad { margin-top: auto; padding-top: 18px; }
.osx .os-hv .hv-today__ad .hz { min-height: 250px; }
@media (max-width: 860px) { .osx .os-hv .hv-today__ad { padding-top: 12px; } }

/* Compact News banner (olag2_hvn_os_banner): title on the left, a wall of the newest stories'
   images cut into slanted panels (the 17.7deg brand slant) on the right. */
.osx .nhero { position: relative; min-height: 220px; display: grid; align-items: center; background: var(--o-tile); overflow: hidden; box-shadow: var(--o-shade); }
.osx .nhero { --sl: 70px; }
.osx .nhero__wall { position: absolute; top: 0; bottom: 0; right: 0; width: 55%; display: flex; }
/* Parallelogram panels: 0.32 x height is the 17.7deg run; panels overlap by that run minus an 8px seam. */
.osx .nhero__panel { position: relative; flex: 1 1 0; margin-left: calc(8px - var(--sl)); clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); background: #0E0A13; }
.osx .nhero__panel:first-child { margin-left: 0; }
.osx .nhero__panel:last-child { clip-path: polygon(var(--sl) 0, 100% 0, 100% 100%, 0 100%); }
.osx .nhero__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 200ms var(--o-ease), transform 400ms var(--o-ease); }
.osx .nhero__panel:hover img { opacity: 1; transform: scale(1.04); }
.osx .nhero__wall::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: calc(var(--sl) + 6px); background: var(--o-accent-hi); clip-path: polygon(var(--sl) 0, calc(var(--sl) + 6px) 0, 6px 100%, 0 100%); pointer-events: none; }
.osx .nhero__text { position: relative; padding: 28px 36px; display: grid; gap: 12px; max-width: 46%; }
.osx .nhero h1 { margin: 0; font: 900 clamp(44px, 4.6vw, 66px)/0.9 var(--o-display); font-stretch: 115%; text-transform: uppercase; color: #fff; }
.osx .nhero p { margin: 0; color: #E7DCEE; font-size: 16px; }
.osx .nhero__stats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 8px; }
.osx .nhero__stats li { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; background: rgb(255 255 255 / 0.08); padding: 8px 11px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.osx .nhero__stats b { font: 900 21px/1 var(--o-display); font-stretch: 112%; color: var(--o-accent-hi); }
.osx .nhero__stats span { font: 700 12.5px/1.2 var(--o-body); color: #F1EAF5; }
@media (max-width: 1180px) { .osx .nhero__text { max-width: 52%; } .osx .nhero__stats li:nth-child(3) { display: none; } }
@media (max-width: 860px) {
  .osx .nhero { margin-inline: -12px; min-height: 0; display: block; }
  .osx .nhero { --sl: 35px; }
  .osx .nhero__wall { position: relative; width: auto; height: 110px; }
  .osx .nhero__text { max-width: none; padding: 18px 18px 22px; }
  .osx .nhero h1 { font-size: 40px; }
}

/* Newsletter (inc/os-newsletter.php): the News banner with the signup form, then ad slots
   beside this week's peek and the latest issue. Steven 2026-11-29. */
.osx .nhero--nl { min-height: 260px; }
.osx .nhero--nl .nhero__text { max-width: 50%; gap: 14px; }
.osx .nhero--nl p { max-width: 46ch; }
.osx .nhero__form .nl-form { margin: 0; max-width: 30rem; }
.osx .nhero__form .nl-form__input { background: #17111F; color: #F1EAF5; border-color: rgb(241 234 245 / 0.28); }
.osx .nhero__form .nl-form__input::placeholder { color: #A99DB5; }
.osx .nhero__form .nl-form__button { background: var(--o-accent); color: #fff; font-family: var(--o-display); text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.osx .nhero__form .nl-form__button:hover, .osx .nhero__form .nl-form__button:focus-visible { background: #F1EAF5; color: #0E0A13; }
.osx .nhero__form .nl-form__fine, .osx .nhero__form .nl-done__text { color: #C9BFD3; margin-top: 8px; }
.osx .nhero__form .nl-form__error { color: var(--o-accent-hi); }
.osx .nhero__form .nl-done { background: #17111F; color: #F1EAF5; }

/* This week's peek: art | rows | 300x250 */
.osx .os-hv .nl-board--ad { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 300px; gap: var(--o-gap) 28px; }
.osx .nl-ad { min-width: 0; }
.osx .nl-ad--board { display: grid; align-content: start; }
.osx .nl-ad .hz, .osx .nl-ad .adt { min-height: 250px; }
.osx .nl-ad .spons-side img { aspect-ratio: 4 / 3; }
/* The issue rail: the half page rides along the long email */
.osx .os-hv .nl-page__rail { position: static; align-self: stretch; display: flex; flex-direction: column; }
.osx .nl-ad--rail { position: sticky; top: 84px; margin-top: 28px; width: 300px; max-width: 100%; }
.osx .nl-ad--rail .adt { min-height: 600px; }
@media (max-width: 1279px) {
  .osx .os-hv .nl-board--ad { grid-template-columns: minmax(0, 1fr) 300px; }
  .osx .os-hv .nl-board--ad .nl-board__lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto; gap: 20px; align-items: end; }
  .osx .os-hv .nl-board--ad .nl-board__lead-text { padding: 0 0 6px; }
}
@media (max-width: 860px) {
  .osx .nhero--nl .nhero__text { max-width: none; }
  .osx .os-hv .nl-board--ad { grid-template-columns: minmax(0, 1fr); }
  .osx .os-hv .nl-board--ad .nl-board__lead { grid-template-columns: minmax(0, 1fr); }
  .osx .nl-ad--board, .osx .nl-ad--rail { justify-self: center; width: 100%; max-width: 336px; }
  .osx .nl-ad--rail { position: static; }
  .osx .nl-ad--rail .adt { min-height: 250px; }
}
.osx .nhero--nl h1 { font-size: clamp(34px, 3.4vw, 54px); }
.osx .nhero--nl .nhero__text { min-width: 0; }
@media (max-width: 860px) {
  .osx .nhero--nl h1 { font-size: 31px; }
  .osx .nhero--nl .nhero__text { padding: 18px 16px 22px; }
  .osx .os-hv .nl-board__rows { grid-template-rows: none; }
}
@media (min-width: 861px) and (max-width: 1279px) {
  .osx .nhero--nl .nhero__wall { width: 42%; }
  .osx .nhero--nl .nhero__text { max-width: 56%; }
}

/* Reviews banner (inc/os-reviews-banner.php): News banner + the score spread, scores on the panels. */
.osx .nhero--rv { min-height: 300px; }
.osx .nhero--rv .nhero__text { gap: 14px; }
.osx .nhero--rv .hv-sf__hist { margin-top: 2px; width: min(100%, 20rem); }
.osx .nhero--rv .hv-sf__hist > * { grid-template-rows: 3.75rem auto; }
.osx .nhero--rv .hv-sf__link { color: var(--o-accent-hi); font: 800 14px/1 var(--o-display); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.osx .nhero--rv .hv-sf__link svg { width: 14px; height: 14px; }
.osx .nhero__score { position: absolute; z-index: 1; right: calc(var(--sl) * 0.35 + 8px); bottom: 12px; padding: 6px 8px; font: 900 18px/1 var(--o-display); font-stretch: 112%; color: #fff; background: var(--o-accent); clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.osx .nhero__panel:last-child .nhero__score { right: 12px; }
@media (max-width: 860px) { .osx .nhero--rv .nhero__score { font-size: 14px; bottom: 8px; } }
/* The next panel overlaps each panel's right side; its bottom-left corner is always clear. */
.osx .nhero__score, .osx .nhero__panel:last-child .nhero__score { right: auto; left: 14px; }

/* Guides banner: the search sits under the line. */
.osx .nhero--gd .nhero__text { gap: 16px; max-width: 48%; }
.osx .nhero--gd .hv-sf__search { max-width: 30rem; margin: 0; }
@media (min-width: 861px) and (max-width: 1279px) {
  .osx .nhero--gd .nhero__wall { width: 42%; }
  .osx .nhero--gd .nhero__text { max-width: 56%; }
}
@media (max-width: 860px) { .osx .nhero--gd .nhero__text { max-width: none; } }

/* Browse by game: 12 games in full rows (Steven 2026-11-29), 6 / 4 / 3 / 2 across. */
.osx .os-hv .hv-games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1179px) { .osx .os-hv .hv-games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .osx .os-hv .hv-games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .osx .os-hv .hv-games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hardware hub (Steven 2026-11-29): hero + a side column of the newest story and a full 300x250. */
.osx .hrow--hw { grid-template-rows: auto; align-items: stretch; }
.osx .hrow--hw > .phero { grid-row: auto; }
.osx .hw-side { display: grid; grid-template-rows: minmax(170px, 1fr) auto; gap: var(--o-gap); min-width: 0; }
.osx .hw-side > .tile--art { min-height: 170px; }
.osx .hw-side .side-h { font: 800 19px/1.15 var(--o-display); text-transform: none; letter-spacing: 0; }
.osx .hw-side > .tile--art .scrim { background: linear-gradient(0deg, rgb(20 10 28 / 0.92) 0%, rgb(20 10 28 / 0.35) 70%, rgb(20 10 28 / 0.1) 100%); }
.osx .hw-side > .hz, .osx .hw-side > .adt { min-height: 250px; }
.osx .os-hv--hardware-index .hwd-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.osx .hwd__count { color: var(--o-accent-hi); }
/* Breadcrumb links read like the rest of the crumb on every hub. */
.osx .os-hv .hv-crumbs a { color: inherit; text-decoration: none; }
.osx .os-hv .hv-crumbs a:hover { color: var(--o-accent-hi); }
@media (max-width: 860px) { .osx .hw-side { grid-template-rows: auto; } }
/* No photo yet: the brand slant on violet-black, no fake title art. */
.osx .hwd__img .hwd__ph { display: block; width: 100%; height: 100%; padding: 0; -webkit-text-stroke: 0; background: linear-gradient(107.7deg, transparent 0 46%, var(--o-accent) 46% 47.5%, transparent 47.5% 52%, rgb(255 61 138 / 0.35) 52% 53%, transparent 53%), #17111F; }
@media (max-width: 860px) {
  .osx .hw-side > .tile--art { min-height: 0; height: auto; }
  .osx .hw-side > .tile--art .tile__body { position: relative; padding-top: 70px; }
}
