/* Externalized from scripts/generate_wowslegends_ship_pages.py ship-page shell.
   The {tech_tree_branch_style} interpolation that used to be embedded mid-block
   is emitted by the generator as a tiny inline <style> only on US-tech-tree pages. */

.ship-page { max-width: 920px; margin: 0 auto; padding: 40px 20px 72px; }
.breadcrumbs { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--cyan); text-decoration: none; }
.ship-hero { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 28px; backdrop-filter: blur(12px); box-shadow: var(--shadow); margin-bottom: 24px; position: relative; overflow: hidden; }
.ship-hero::after { content: ''; position: absolute; inset: auto -20% -60% 25%; height: 180px; background: radial-gradient(circle, rgba(0,245,212,0.16), transparent 62%); pointer-events: none; }
/* Ship art lives as a backdrop on the right of the hero, faded into
   the card on its left edge so the text on the left stays fully
   readable. Sits behind .ship-hero-body content. */
.ship-hero-art { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 70%; object-fit: contain; object-position: right center; opacity: 0.55; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 28%, rgba(0,0,0,.9) 60%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 28%, rgba(0,0,0,.9) 60%, #000 100%); z-index: 0; }
.ship-hero-body { position: relative; z-index: 1; }
@media (max-width: 760px) { .ship-hero-art { opacity: 0.18; max-width: 100%; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--cyan); margin-bottom: 10px; font-weight: 700; }
.ship-hero-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ship-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.08; color: var(--text-bright); margin-bottom: 10px; }
.ship-hero-title h1 { margin-bottom: 0; }
.ship-beta-tag { display: inline-flex; align-items: center; margin-top: 0.28rem; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(255,183,3,0.42); background: rgba(255,183,3,0.12); color: var(--amber); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.ship-meta { color: var(--amber); font-size: 0.92rem; font-weight: 700; margin-bottom: 14px; }
.ship-meta a { color: inherit; text-decoration: none; }
.ship-meta a:hover { text-decoration: underline; }
.ship-dek { font-size: 1.05rem; color: var(--text); max-width: 68ch; position: relative; z-index: 1; }
.internal-id-details { position: relative; z-index: 1; margin-top: 16px; color: var(--text-muted); font-size: 0.84rem; }
.internal-id-details summary { cursor: pointer; color: var(--cyan); font-weight: 800; width: fit-content; }
.internal-id-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.internal-id-list code { padding: 5px 8px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(0,0,0,0.22); color: var(--text-bright); font-size: 0.76rem; }
.wg-classification-details { position: relative; z-index: 1; margin-top: 14px; color: var(--text-muted); font-size: 0.84rem; }
.wg-classification-details summary { cursor: pointer; color: var(--amber); font-weight: 850; width: fit-content; }
.wg-classification-list { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 7px; }
.wg-classification-list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wg-classification-list code { padding: 5px 8px; border: 1px solid rgba(255,183,3,0.20); border-radius: 8px; background: rgba(0,0,0,0.22); color: var(--text-bright); font-size: 0.76rem; }
.wg-classification-details p { margin: 0; color: var(--text-muted); font-size: 0.78rem; }
.hero-chip-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.playstyle-chip { display: inline-flex; align-items: center; border: 1px solid rgba(0,245,212,0.28); color: var(--cyan); background: rgba(0,245,212,0.07); border-radius: 999px; padding: 6px 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.01em; }
.balance-alert { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; align-items: center; margin: -8px 0 22px; padding: 15px 17px; border: 1px solid rgba(255,183,3,0.34); border-left: 4px solid var(--amber); border-radius: 17px; background: linear-gradient(135deg, rgba(255,183,3,0.14), rgba(10,22,40,0.86) 48%, rgba(0,245,212,0.07)); color: var(--text); text-decoration: none; box-shadow: 0 18px 42px rgba(0,0,0,0.24); }
.balance-alert:hover { border-color: rgba(255,183,3,0.62); transform: translateY(-1px); }
.balance-alert-kicker { color: var(--amber); font-size: 0.70rem; font-weight: 950; letter-spacing: 0.13em; text-transform: uppercase; }
.balance-alert strong { color: var(--text-bright); font-family: var(--font-display); font-size: 1rem; }
.balance-alert-copy { grid-column: 1 / 2; color: var(--text-muted); font-size: 0.86rem; line-height: 1.38; }
.balance-alert-chips { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 240px; }
.balance-alert-chips span { border: 1px solid rgba(255,183,3,0.28); border-radius: 999px; padding: 5px 8px; background: rgba(255,183,3,0.08); color: var(--amber); font-size: 0.72rem; font-weight: 900; white-space: nowrap; }
@media (max-width: 680px) { .balance-alert { grid-template-columns: 1fr; } .balance-alert-copy, .balance-alert-chips { grid-column: 1; } .balance-alert-chips { grid-row: auto; justify-content: flex-start; max-width: none; } }
.section-card { background: rgba(10,22,40,0.72); border: 1px solid var(--glass-border); border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.section-card h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-bright); margin-bottom: 10px; }
.section-card p { color: var(--text); margin: 0; }

.commander-section p { margin: 0; }
.commander-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.commander-example-label { color: var(--amber); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.commander-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(0,245,212,0.22); border-radius: 999px; background: rgba(0,245,212,0.07); color: var(--cyan); font-size: 0.78rem; font-weight: 850; }
.commander-note { margin-top: 12px !important; color: var(--text-muted) !important; font-size: 0.86rem; }
.cmdr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.cmdr-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(0,245,212,0.16); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cmdr-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; width: fit-content; margin-bottom: 2px; }
.cmdr-label-primary { color: var(--cyan); background: rgba(0,245,212,0.10); border: 1px solid rgba(0,245,212,0.28); }
.cmdr-label-alt { color: var(--amber); background: rgba(255,183,3,0.09); border: 1px solid rgba(255,183,3,0.26); }
.cmdr-free-badge { background: rgba(100,220,130,0.15); border: 1px solid rgba(100,220,130,0.32); color: #7de0a0; border-radius: 999px; padding: 1px 7px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.09em; }
.cmdr-inner { display: flex; gap: 11px; align-items: flex-start; }
/* Commander portraits are taller than wide (~384x432) and the face
   sits in the upper third of the frame, so cover-cropping needs to
   favor the top, not the center. Bumped from 52 to 80 so the face is
   readable without dominating the card. */
/* The bare .cmdr-portrait selector is also used by a totally different
   commander-detail-page component in css/style.css that sets padding,
   display:flex, align-self, justify-self, etc. Because *{box-sizing:
   border-box} is global, that 28px top padding shrinks the actual image
   area inside this 80x80 box to ~80x52 and crops the face. Reset every
   inherited layout property explicitly so the img genuinely renders at
   80x80 of content. */
img.cmdr-portrait { width: 80px; height: 80px; padding: 0; border-radius: 12px; object-fit: cover; object-position: center top; flex-shrink: 0; display: block; align-self: auto; justify-self: auto; border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }
.cmdr-portrait-placeholder { width: 80px; height: 80px; border-radius: 12px; background: rgba(255,255,255,0.06); flex-shrink: 0; }
.cmdr-details { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cmdr-name { color: var(--cyan); font-weight: 900; font-size: 0.92rem; text-decoration: none; line-height: 1.2; }
.cmdr-name:hover { text-decoration: underline; }
.cmdr-snippet { color: var(--text-muted); font-size: 0.80rem; line-height: 1.45; margin: 0; }
.cmdr-build-desc { color: var(--text-muted); font-size: 0.78rem; font-style: italic; line-height: 1.4; margin: 2px 0 6px; }
.cmdr-traits { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.cmdr-base-trait-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,183,3,0.28); background: rgba(255,183,3,0.08); color: var(--amber); font-size: 0.72rem; font-weight: 850; }
.cmdr-skill-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(0,245,212,0.18); background: rgba(0,245,212,0.06); color: var(--cyan); font-size: 0.72rem; font-weight: 800; text-decoration: none; }
.cmdr-skill-chip:hover { border-color: rgba(0,245,212,0.38); background: rgba(0,245,212,0.12); }
.insp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.07); }
.insp-row-label { color: var(--amber); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; margin-right: 2px; white-space: nowrap; }
.insp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border: 1px solid rgba(255,183,3,0.22); border-radius: 999px; background: rgba(255,183,3,0.07); text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.insp-chip:hover { border-color: rgba(255,183,3,0.44); background: rgba(255,183,3,0.13); }
.insp-portrait { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,0.12); flex-shrink: 0; }
.insp-name { color: var(--amber); font-size: 0.76rem; font-weight: 850; white-space: nowrap; }
.insp-trait { color: var(--text-muted); font-size: 0.70rem; white-space: nowrap; }
/* Generic section-card collapsible (mirrors .acquisition-collapsible but in
   the v2 teal/glass palette). Apply to any <details class="section-card
   section-collapsible"> with a <summary class="section-collapsible-summary">
   containing the heading + the section-collapsible-toggle span. */
.section-collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-collapsible > summary::-webkit-details-marker { display: none; }
.section-collapsible:not([open]) { padding-bottom: 18px; }
.section-collapsible[open] > summary { margin-bottom: 14px; }
.section-collapsible-summary h2, .section-collapsible-summary h3 { margin: 0; }
.section-collapsible-meta { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.84rem; }
.section-collapsible-toggle::after { content: 'Show'; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 6px 10px; border: 1px solid rgba(0,245,212,0.28); border-radius: 999px; color: var(--cyan); background: rgba(0,245,212,0.07); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.section-collapsible[open] .section-collapsible-toggle::after { content: 'Hide'; }
.section-collapsible-inner-summary { padding: 10px 0; cursor: pointer; list-style: none; color: var(--cyan); font-weight: 800; font-size: 0.84rem; display: inline-flex; align-items: center; gap: 8px; }
.section-collapsible-inner-summary::-webkit-details-marker { display: none; }
.section-collapsible-inner-summary::before { content: '▸'; display: inline-block; transition: transform 0.16s ease; }
details[open] > .section-collapsible-inner-summary::before { transform: rotate(90deg); }

.acquisition-section { border-color: rgba(255,183,3,0.18); background: linear-gradient(135deg, rgba(255,183,3,0.055), rgba(10,22,40,0.72) 42%, rgba(0,245,212,0.035)); }
.acquisition-collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.acquisition-collapsible > summary::-webkit-details-marker { display: none; }
.acquisition-collapsible:not([open]) { padding-bottom: 18px; }
.acquisition-collapsible[open] > summary { margin-bottom: 14px; }
.acquisition-toggle::after { content: 'Show'; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 6px 10px; border: 1px solid rgba(255,183,3,0.24); border-radius: 999px; color: var(--amber); background: rgba(255,183,3,0.07); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.acquisition-collapsible[open] .acquisition-toggle::after { content: 'Hide'; }
.acquisition-heading span { display: inline-flex; margin-bottom: 6px; color: var(--amber); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.acquisition-section h3 { color: var(--amber); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; margin: 18px 0 10px; }
.acquisition-methods { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.acquisition-methods li { display: flex; flex-direction: column; gap: 4px; padding: 11px 12px; border: 1px solid rgba(255,183,3,0.18); border-radius: 13px; background: rgba(255,183,3,0.045); }
.acquisition-methods strong { color: var(--amber); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.acquisition-methods span { color: var(--text); font-size: 0.84rem; line-height: 1.38; }
.acquisition-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.acquisition-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.acquisition-list li { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px; border: 1px solid rgba(0,245,212,0.16); border-radius: 13px; background: rgba(0,245,212,0.035); }
.acquisition-card { position: relative; overflow: hidden; min-height: 132px; padding-right: 88px; }
.acquisition-card::after { content: ''; position: absolute; inset: auto -25% -55% 35%; height: 70px; background: radial-gradient(circle, rgba(0,245,212,0.16), transparent 68%); pointer-events: none; }
.acquisition-card img { position: absolute; top: 8px; right: 4px; width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45)); }
.acquisition-container { color: var(--cyan); font-size: 0.94rem; font-weight: 900; text-decoration: none; }
.acquisition-container:hover { text-decoration: underline; }
.acquisition-list strong { color: var(--amber); font-size: 1.16rem; font-variant-numeric: tabular-nums; }
.acquisition-list span { color: var(--text); font-size: 0.84rem; }
.acquisition-list em { color: var(--text-muted); font-size: 0.76rem; font-style: normal; line-height: 1.35; }
.acquisition-path-details { margin-top: 6px; position: relative; z-index: 1; color: var(--text-muted); font-size: 0.76rem; }
.acquisition-path-details summary { cursor: pointer; color: var(--cyan); font-weight: 850; width: fit-content; }
.acquisition-path-details ul { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 5px; }
.acquisition-path-details li { display: flex; flex-direction: row; justify-content: space-between; gap: 8px; min-height: 0; padding: 6px 7px; border-radius: 8px; background: rgba(0,0,0,0.16); border-color: rgba(0,245,212,0.08); }
.acquisition-path-details li span { font-size: 0.74rem; color: var(--text-muted); }
.acquisition-path-details li b { color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acquisition-more { margin-top: 10px !important; color: var(--text-muted) !important; font-size: 0.86rem; font-style: italic; }
.acquisition-direct-details { margin-top: 14px; color: var(--text-muted); font-size: 0.84rem; }
.acquisition-direct-details summary { cursor: pointer; color: var(--cyan); font-weight: 850; width: fit-content; }
.acquisition-direct-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 7px; }
.acquisition-direct-list li { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,0.12); }
.acquisition-direct-list a { color: var(--cyan); font-weight: 800; text-decoration: none; }
.acquisition-direct-list span { color: var(--text-muted); }
.acquisition-source-details { margin-top: 14px; color: var(--text-muted); font-size: 0.84rem; }
.acquisition-source-details summary { cursor: pointer; color: var(--cyan); font-weight: 850; width: fit-content; }
.acquisition-source-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 9px; }
.acquisition-source-list li { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid rgba(255,255,255,0.10); border-radius: 13px; background: rgba(255,255,255,0.025); }
.acquisition-source-list a { color: var(--cyan); font-weight: 850; text-decoration: none; }
.acquisition-source-list a:hover { text-decoration: underline; }
.acquisition-source-list strong { color: var(--amber); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.acquisition-source-list span { color: var(--text); font-size: 0.82rem; }
.acquisition-source-list em { color: var(--text-muted); font-size: 0.78rem; font-style: normal; line-height: 1.35; }
.armor-breakpoints-section { border-color: rgba(0,245,212,0.22); background: linear-gradient(135deg, rgba(0,245,212,0.06), rgba(10,22,40,0.72) 46%, rgba(255,183,3,0.04)); }
.bp-intro { color: var(--text-muted); font-size: 0.82rem; margin: 0 0 14px; line-height: 1.45; }
.bp-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.bp-zone-card { display: flex; flex-direction: column; gap: 7px; padding: 12px 13px; border: 1px solid rgba(0,245,212,0.15); border-radius: 13px; background: rgba(0,245,212,0.03); }
.bp-zone-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-zone-name { color: var(--cyan); font-size: 0.80rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.10em; }
.bp-plate-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.07); color: var(--text-bright); font-size: 0.72rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.bp-plate-badge.bp-approx { border-color: rgba(255,183,3,0.28); background: rgba(255,183,3,0.07); color: var(--amber); }
.bp-outcomes { display: flex; flex-direction: column; gap: 5px; }
.bp-chip-outcome { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 850; width: fit-content; }
.bp-overmatch { border: 1px solid rgba(255,90,60,0.36); background: rgba(255,90,60,0.10); color: #ff7b62; }
.bp-safe { border: 1px solid rgba(80,200,120,0.30); background: rgba(80,200,120,0.08); color: #7de8a0; }
.bp-he-pen { border: 1px solid rgba(255,183,3,0.30); background: rgba(255,183,3,0.08); color: var(--amber); }
.bp-he-shatter { border: 1px solid rgba(150,150,170,0.28); background: rgba(150,150,170,0.07); color: var(--text-muted); }
.bp-citadel { border: 1px solid rgba(0,245,212,0.28); background: rgba(0,245,212,0.07); color: var(--cyan); }
.bp-source-note { color: var(--text-muted); font-size: 0.70rem; margin-top: 8px; font-style: italic; }
.bp-legend { color: var(--text-muted); font-size: 0.75rem; margin: 14px 0 0; line-height: 1.5; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 10px; }
.bp-key-term { color: var(--text-secondary, #c8d8f0); font-style: italic; }
.bp-low-conf { opacity: 0.70; }
.special-camos-section { border-color: rgba(0,245,212,0.18); background: linear-gradient(135deg, rgba(0,245,212,0.055), rgba(10,22,40,0.72) 44%, rgba(255,183,3,0.04)); }
/* Skin/exterior gallery — preview-image cards from the in-game skin catalog. */
.skin-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.skin-card { border: 1px solid rgba(0,245,212,0.16); border-radius: 14px; overflow: hidden; background: rgba(0,245,212,0.035); transition: border-color 0.15s ease, background 0.15s ease; }
.skin-card-link { display: block; color: inherit; text-decoration: none; }
.skin-card:has(.skin-card-link):hover { border-color: rgba(0,245,212,0.45); background: rgba(0,245,212,0.08); }
.skin-card-art { width: 100%; height: auto; display: block; aspect-ratio: 800 / 494; object-fit: cover; background: rgba(4,16,32,0.85); }
.skin-card-art--none { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.skin-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.skin-card-body strong { color: var(--text-bright); font-size: 0.86rem; }
.skin-card-body span { color: var(--text-muted); font-size: 0.72rem; }
.skin-theme { align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: rgba(255,183,3,0.14); color: var(--amber); font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.camo-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.camo-card { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; align-items: start; padding: 13px; border: 1px solid rgba(0,245,212,0.16); border-radius: 15px; background: rgba(0,245,212,0.035); }
.camo-sources { list-style: none; padding: 0; margin: 6px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.camo-sources li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 8px; border: 1px solid rgba(0,245,212,0.10); border-radius: 7px; background: rgba(0,245,212,0.02); font-size: 0.78rem; }
.camo-sources li a { color: var(--text); text-decoration: none; font-weight: 700; }
.camo-sources li a:hover { color: var(--cyan); text-decoration: underline; }
.camo-sources .camo-odds { color: var(--amber); font-weight: 900; font-size: 0.72rem; white-space: nowrap; }
.camo-art { display: grid; place-items: center; min-height: 82px; border-radius: 13px; background: radial-gradient(circle at 50% 35%, rgba(255,183,3,0.12), rgba(0,245,212,0.045) 52%, rgba(0,0,0,0.16)); border: 1px solid rgba(255,255,255,0.08); }
.camo-art img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.38)); }
.camo-copy { display: grid; gap: 5px; min-width: 0; }
.camo-copy strong { color: var(--text-bright); font-size: 0.98rem; }
.camo-copy strong a { color: inherit; text-decoration: none; font-weight: inherit; }
.camo-copy strong a:hover { text-decoration: underline; }
.camo-copy span { color: var(--text); font-size: 0.84rem; }
.camo-copy em { color: var(--amber); font-size: 0.78rem; font-style: normal; font-weight: 850; }
.camo-copy a { color: var(--cyan); text-decoration: none; font-weight: 850; }
.camo-copy a:hover { text-decoration: underline; }
.camo-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.camo-links a { border: 1px solid rgba(0,245,212,0.18); border-radius: 999px; padding: 4px 8px; background: rgba(0,245,212,0.055); font-size: 0.72rem; }
.tag-intro { color: var(--text-muted) !important; margin-bottom: 18px !important; }
.chip-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.chip-group { border: 1px solid rgba(255,255,255,0.08); border-radius: 15px; padding: 14px; background: rgba(255,255,255,0.025); }
.chip-group h3 { color: var(--amber); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.why-tags-heading { color: var(--text-bright); font-size: 0.96rem; margin: 22px 0 12px; }
.chip-evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.chip-evidence-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 15px; padding: 14px; background: rgba(0,0,0,0.14); }
.chip-evidence-card p { color: var(--text-muted); margin-top: 9px; font-size: 0.9rem; line-height: 1.45; }
.evidence-chip { background: rgba(255,183,3,0.08); border-color: rgba(255,183,3,0.25); color: var(--amber); }
.ship-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.variant-note-card { margin: -6px 0 20px; padding: 16px 18px; border: 1px solid rgba(255,183,3,0.22); border-radius: 16px; background: linear-gradient(135deg, rgba(255,183,3,0.08), rgba(10,22,40,0.66)); }
/* "Variant of <Base>" headline — title-sized link to the parent
   hull's page, then a one-line key-differences body. Replaces the
   previous generic-boilerplate variant-note card whenever the ship
   has a relationship entry in data/wows-legends-ship-variants.json. */
.ship-variant-rel-section--standalone { margin: -6px 0 22px; padding: 22px 24px; border: 1px solid rgba(0,245,212,0.20); border-radius: 18px; background: linear-gradient(135deg, rgba(0,245,212,0.07), rgba(10,22,40,0.72)); }
.ship-variant-headline { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 0 0 8px; color: var(--text-bright); font-weight: 900; line-height: 1.12; }
.ship-variant-headline a { color: var(--cyan); text-decoration: none; border-bottom: 2px solid rgba(0,245,212,0.36); }
.ship-variant-headline a:hover { border-bottom-color: var(--cyan); }
.ship-variant-rel-section--standalone .ship-variant-diff { margin: 0; color: var(--text); font-size: 0.96rem; line-height: 1.55; }
.ship-variant-details { margin-top: 14px; }
.ship-variant-details > summary { cursor: pointer; color: var(--cyan); font-size: 0.86rem; font-weight: 700; padding: 6px 10px; border: 1px solid rgba(0,245,212,0.24); border-radius: 10px; display: inline-block; list-style: none; user-select: none; }
.ship-variant-details > summary::-webkit-details-marker { display: none; }
.ship-variant-details[open] > summary { background: rgba(0,245,212,0.08); }
.ship-variant-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.ship-variant-detail-group h4 { margin: 0 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 800; }
.ship-variant-detail-group ul { margin: 0; padding-left: 0; list-style: none; }
.ship-variant-detail { margin: 0 0 4px; padding: 6px 10px; border-radius: 8px; font-size: 0.88rem; line-height: 1.4; background: rgba(255,255,255,0.03); color: var(--text); }
.ship-variant-detail--buff { border-left: 3px solid #00f5d4; }
.ship-variant-detail--nerf { border-left: 3px solid #ff6b6b; }
.ship-variant-detail--neutral { border-left: 3px solid rgba(255,255,255,0.16); }
.variant-note-card span { display: inline-flex; margin-bottom: 7px; color: var(--amber); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }
.variant-note-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.ship-variant-section { margin: -6px 0 20px; padding: 22px; border: 1px solid rgba(0,245,212,0.22); border-radius: 18px; background: linear-gradient(135deg, rgba(0,245,212,0.07), rgba(10,22,40,0.72)); }
.variant-section-kicker { display: inline-flex; color: var(--cyan); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 6px; }
.variant-section-copy h2 { color: var(--text-bright); font-family: var(--font-display); font-size: 1.08rem; margin: 0 0 6px; }
.variant-section-copy p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.5; font-size: 0.92rem; }
.variant-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.variant-card { display: flex; flex-direction: column; gap: 7px; padding: 15px; border: 1px solid rgba(0,245,212,0.20); border-radius: 15px; background: rgba(0,0,0,0.16); color: inherit; text-decoration: none; transition: transform 0.18s, border-color 0.18s, background 0.18s; }
.variant-card:hover { transform: translateY(-1px); border-color: rgba(0,245,212,0.42); background: rgba(0,245,212,0.08); }
.variant-card-meta { color: var(--amber); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 800; }
.variant-card strong { color: var(--cyan); font-size: 1rem; }
.variant-card span:not(.variant-card-meta) { color: var(--text); font-size: 0.9rem; line-height: 1.45; }
.variant-card ul { margin: 4px 0 0 18px; padding: 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }
.community-data-card { margin: -6px 0 20px; padding: 18px 20px; border: 1px solid rgba(0,245,212,0.22); border-radius: 18px; background: linear-gradient(135deg, rgba(0,245,212,0.09), rgba(10,22,40,0.76)); box-shadow: 0 18px 38px rgba(0,0,0,0.18); }
.community-data-kicker { display: inline-flex; color: var(--cyan); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 6px; }
.community-data-card h2 { color: var(--text-bright); font-family: var(--font-display); font-size: 1.06rem; margin: 0 0 6px; }
.community-data-card p { margin: 0; color: var(--text-muted); line-height: 1.5; font-size: 0.92rem; }
.community-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
/* display: flex above wins over the browser's default [hidden]
   display:none, so populate()'s ctaEl.hidden = true had no visual
   effect — explicitly hide the CTA when the JS marks it hidden. */
.community-cta[hidden] { display: none; }
.community-cta .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 720px) { .community-cta { align-items: flex-start; flex-direction: column; } }
.community-stats-header { margin-bottom: 14px; }
.community-stats-meta { margin: 2px 0 0 !important; color: var(--text-muted); font-size: 0.82rem !important; }
.community-stats-section-label { color: var(--text-muted); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.10em; margin: 12px 0 7px; }
.community-stats-section-label--max { color: var(--amber); opacity: 0.8; margin-top: 16px; }
.community-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.community-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid rgba(0,245,212,0.14); border-radius: 12px; background: rgba(0,0,0,0.18); }
.community-stat--max { border-color: rgba(255,183,3,0.16); background: rgba(255,183,3,0.04); }
.community-stat--max .cstat-value { color: var(--amber); }
.community-stats-section--locked { position: relative; pointer-events: none; user-select: none; }
.community-stats-section--locked .cstat-value,
.community-stats-section--locked .cstat-holder,
.community-stats-section--locked .wr-value { filter: blur(5px); transition: filter .2s; }
.community-stats-teaser { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 10px 0 14px; border-radius: 12px; background: rgba(255,183,3,.08); border: 1px solid rgba(255,183,3,.25); color: var(--text-bright); font-size: .9rem; }
/* Same [hidden] gotcha as .community-cta — display: flex would
   otherwise keep the teaser visible for uploaders. */
.community-stats-teaser[hidden] { display: none; }
.community-stats-teaser__icon { font-size: 1.1rem; color: var(--amber); flex-shrink: 0; }
.community-stats-teaser__text { flex: 1; line-height: 1.45; }
.community-stats-teaser .btn { flex-shrink: 0; }
.community-stats-section-label--record { color: #c084fc; opacity: 0.9; margin-top: 16px; }
.community-stat--record { border-color: rgba(192,132,252,0.18); background: rgba(192,132,252,0.04); }
.community-stat--record .cstat-value { color: #c084fc; }
.cstat-label { color: var(--text-muted); font-size: 0.70rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.cstat-value { color: var(--text-bright); font-size: 1.12rem; font-weight: 900; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.cstat-holder { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 0.68rem; line-height: 1.3; color: rgba(255,255,255,0.62); max-width: 100%; word-break: break-word; overflow-wrap: anywhere; }
.cstat-holder:empty { display: none; }
.cstat-holder-badge { align-self: flex-start; font-size: 0.60rem; font-weight: 800; background: rgba(251,191,36,0.15); color: #fbbf24; padding: 1px 5px; border-radius: 4px; letter-spacing: 0.04em; white-space: nowrap; }
.community-wr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; padding: 9px 14px; border: 1px solid rgba(0,245,212,0.30); border-radius: 13px; background: rgba(0,245,212,0.08); position: relative; z-index: 1; text-align: center; }
.community-wr-box .wr-kicker { color: var(--cyan); font-size: 0.60rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.10em; white-space: nowrap; }
.community-wr-box .wr-value { color: var(--text-bright); font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; font-family: var(--font-display); line-height: 1.1; }
.streamer-video-section { margin: -6px 0 20px; padding: 22px 22px 18px; border: 1px solid rgba(255,183,3,0.22); border-radius: 18px; background: linear-gradient(135deg, rgba(255,183,3,0.08), rgba(10,22,40,0.72)); }
.streamer-video-summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.streamer-video-summary::-webkit-details-marker { display: none; }
.streamer-video-section:not([open]) { padding-bottom: 18px; }
.streamer-video-section[open] .streamer-video-summary { margin-bottom: 14px; }
.streamer-video-toggle::after { content: 'Show'; display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 6px 10px; border: 1px solid rgba(255,183,3,0.24); border-radius: 999px; color: var(--amber); background: rgba(255,183,3,0.07); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.streamer-video-section[open] .streamer-video-toggle::after { content: 'Hide'; }
.streamer-video-copy { margin: 0; }
.streamer-video-kicker { display: inline-flex; color: var(--amber); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.11em; margin-bottom: 6px; }
.streamer-video-section h2 { color: var(--text-bright); font-family: var(--font-display); font-size: 1.08rem; margin: 0; }
.streamer-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.streamer-video-card { display: flex; flex-direction: column; gap: 6px; min-height: 118px; padding: 14px; border: 1px solid rgba(255,183,3,0.20); border-radius: 15px; background: rgba(0,0,0,0.16); color: inherit; text-decoration: none; transition: transform 0.18s, border-color 0.18s, background 0.18s; }
.streamer-video-card:hover { transform: translateY(-1px); border-color: rgba(255,183,3,0.42); background: rgba(255,183,3,0.08); }
.streamer-video-meta { color: var(--amber); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 800; }
.streamer-video-card strong { color: var(--text-bright); line-height: 1.3; }
.streamer-video-cta { margin-top: auto; color: var(--cyan); font-size: 0.84rem; font-weight: 850; }
.related-ships { margin-top: 28px; padding: 22px; border: 1px solid var(--glass-border); border-radius: 18px; background: rgba(15,32,53,0.45); }
.related-ships h3 { font-family: var(--font-display); font-size: 1rem; color: var(--text-bright); margin-bottom: 12px; }
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.related-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.025); transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.related-card:hover { border-color: rgba(0,245,212,0.35); background: rgba(0,245,212,0.06); transform: translateY(-1px); }
.related-card strong { color: var(--cyan); }
.related-card span { color: var(--text-muted); font-size: 0.86rem; }
.related-meta { color: var(--amber) !important; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; font-size: 0.74rem !important; }
.source-section { margin-top: 24px; padding: 22px; border: 1px solid var(--glass-border); border-radius: 18px; background: rgba(10,22,40,0.68); }
.source-section h2 { font-family: var(--font-display); color: var(--text-bright); font-size: 1.12rem; margin-bottom: 8px; }
.source-section p { color: var(--text-muted); margin: 0 0 14px; font-size: 0.92rem; }
.source-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.source-card { display: flex; flex-direction: column; gap: 4px; padding: 13px; border: 1px solid rgba(0,245,212,0.18); border-radius: 14px; background: rgba(0,245,212,0.045); text-decoration: none; color: inherit; }
.source-card:hover { border-color: rgba(0,245,212,0.4); background: rgba(0,245,212,0.09); }
.source-card span { color: var(--amber); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.source-card strong { color: var(--cyan); font-size: 0.92rem; }
.source-card em { width: fit-content; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(255,183,3,0.09); color: var(--amber); font-size: 0.68rem; font-style: normal; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.source-empty-card { display: flex; flex-direction: column; gap: 4px; max-width: 420px; padding: 13px; border: 1px dashed rgba(255,183,3,0.26); border-radius: 14px; background: rgba(255,183,3,0.045); }
.source-empty-card span { color: var(--amber); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.source-empty-card strong { color: var(--text-bright); font-size: 0.92rem; }
.source-empty-card em { width: fit-content; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0,245,212,0.08); color: var(--cyan); font-size: 0.68rem; font-style: normal; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.source-empty-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 14px; background: rgba(255,255,255,0.025); }
.source-empty-card strong { color: var(--text-bright); }
.source-empty-card span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }
.balance-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.balance-list li { padding: 12px 13px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(255,255,255,0.025); }
.balance-list a { color: var(--cyan); text-decoration: none; font-weight: 700; }
.balance-list span { display: block; color: var(--text-muted); font-size: 0.86rem; margin-top: 4px; }
.graph-event-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.graph-event-chip { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: rgba(0,245,212,0.08); border: 1px solid rgba(0,245,212,0.18); color: var(--cyan); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.balance-change-list { display: grid; gap: 12px; }
.balance-change-card { padding: 15px; border: 1px solid rgba(255,255,255,0.08); border-radius: 15px; background: rgba(255,255,255,0.025); }
.balance-change-meta { color: var(--amber); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin-bottom: 6px; }
.balance-change-card h3 { color: var(--text-bright); font-size: 0.98rem; margin-bottom: 10px; }
.balance-change-card ul { margin: 0 0 12px 18px; padding: 0; color: var(--text); }
.balance-change-card li { margin: 5px 0; }
.balance-more { color: var(--text-muted); font-style: italic; }
.balance-change-card a { color: var(--cyan); font-weight: 800; text-decoration: none; }
.balance-change-card a:hover { text-decoration: underline; }

/* Spec Explorer banner — sits between the hero and the next section on
   old-format ship guides for ships that have a generated /specs/ page.
   The v2 layout uses its own in-section spec link instead. */
.ship-spec-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(0,245,212,0.32); background: linear-gradient(135deg, rgba(0,245,212,0.08), rgba(5,16,30,0.55)); color: var(--cyan); text-decoration: none; font-weight: 700; transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease; }
.ship-spec-cta:hover { border-color: var(--cyan); background: linear-gradient(135deg, rgba(0,245,212,0.16), rgba(5,16,30,0.68)); color: var(--text-bright); }
.ship-spec-cta__icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.ship-spec-cta__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ship-spec-cta__body strong { display: block; color: var(--text-bright); font-family: var(--font-display); font-size: 1rem; }
.ship-spec-cta__body small { color: var(--text-muted); font-size: 0.78rem; font-weight: 500; line-height: 1.35; }
.ship-spec-cta__arrow { color: var(--cyan); font-size: 1.4rem; font-weight: 900; flex-shrink: 0; }
@media (max-width: 600px) {
  .ship-spec-cta { padding: 12px 14px; gap: 10px; }
  .ship-spec-cta__body small { display: none; }
}

/* ============================================================
   Ship page v2 layout — opt-in via .ship-page--v2 on <main>.
   Widens to 1280px on desktop and splits into a 2-col grid
   (content + sticky right rail) without touching the existing
   .ship-page rules used by the other ~750 pages.
   ============================================================ */
.ship-page.ship-page--v2 { max-width: 1280px; padding: 32px 24px 80px; }

.ship-page--v2 .ship-hero { margin-bottom: 18px; }

.ship-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-top: 18px; }
.ship-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ship-main > * { margin: 0 !important; }
.ship-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.ship-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }

.ship-rail-card { padding: 16px; border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; background: rgba(10,22,40,0.68); }
.ship-rail-card h3 { margin: 0 0 12px; font-family: var(--font-display); color: var(--text-bright); font-size: 1rem; letter-spacing: 0.02em; }
.ship-rail-card .ship-rail-kicker { display: block; margin-bottom: 4px; color: var(--amber); font-size: 0.7rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0.12em; }

.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 600px; padding: 14px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 16px; background: rgba(255,255,255,0.02); color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.ad-slot[data-ad-size="300x600"] { min-height: 600px; }
.ad-slot__placeholder { font-weight: 900; color: rgba(255,255,255,0.34); }
.ad-slot__hint { font-size: 0.62rem; color: rgba(255,255,255,0.24); text-transform: none; letter-spacing: 0; }

/* "Support GamingDiver" card. Sized to occupy the same reserved
   300x600 slot as the eventual Mediavine ad, so there is zero CLS
   when the ad replaces it. */
.ad-slot--support { border-style: solid; border-color: rgba(0,245,212,0.22); background: linear-gradient(180deg, rgba(0,245,212,0.06), rgba(5,14,28,0.82)); padding: 26px 22px; text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: var(--text); gap: 14px; align-items: stretch; }
.support-card { display: flex; flex-direction: column; gap: 14px; height: 100%; align-items: stretch; text-align: left; width: 100%; }
.support-card__kicker { color: var(--amber); font-weight: 900; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; }
.support-card__title { color: var(--text-bright); font-family: var(--font-display); margin: 0; font-size: 1.35rem; line-height: 1.15; }
.support-card__copy { color: var(--text); font-size: 0.88rem; line-height: 1.55; margin: 0; flex: 1; }
.support-card__highlights { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.support-card__highlights li { color: var(--text-muted); font-size: 0.82rem; padding-left: 18px; position: relative; }
.support-card__highlights li::before { content: "\2713"; position: absolute; left: 0; color: var(--cyan); font-weight: 900; }
.support-card__cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; border-radius: 999px; background: var(--cyan); color: #061522; text-decoration: none; font-weight: 900; font-size: 0.9rem; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.support-card__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,245,212,0.30); }
.support-card__small { color: var(--text-muted); font-size: 0.72rem; text-align: center; }

.ship-rail .related-ships { padding: 0; }
.ship-rail .related-ships h3 { margin: 0 0 10px; font-size: 0.92rem; }
.ship-rail .related-links { display: flex; flex-direction: column; gap: 8px; }
.ship-rail .related-card { padding: 10px 12px; border-radius: 12px; font-size: 0.78rem; }
.ship-rail .related-card strong { font-size: 0.92rem; }
.ship-rail .related-meta { font-size: 0.66rem; }

.rail-toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rail-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.84rem; border: 1px solid transparent; transition: background 0.12s ease, border-color 0.12s ease; }
.rail-toc a:hover { background: rgba(0,245,212,0.08); border-color: rgba(0,245,212,0.18); color: var(--cyan); }

/* Quick-stats strip: 3-up at top of main column for an immediate desktop "dashboard" feel. */
.quick-stats-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-stats-strip .stat-tile { padding: 14px 16px; border: 1px solid rgba(0,245,212,0.18); border-radius: 14px; background: linear-gradient(145deg, rgba(0,245,212,0.06), rgba(5,14,28,0.7)); }
.quick-stats-strip .stat-tile span { display: block; color: var(--amber); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 900; margin-bottom: 4px; }
.quick-stats-strip .stat-tile strong { display: block; color: var(--text-bright); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; }
.quick-stats-strip .stat-tile em { display: block; font-style: normal; color: var(--text-muted); font-size: 0.74rem; margin-top: 4px; }

/* 2-up grid for short role/positioning paragraphs to stop them eating vertical space. */
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-grid > .section-card { margin: 0; }

/* Placeholder widgets for future blocks — render as labeled empty boxes today,
   easy to find via data-slot when wiring the real data. */
.placeholder-widget { padding: 22px; border: 1px dashed rgba(0,245,212,0.28); border-radius: 16px; background: rgba(0,245,212,0.03); color: var(--text-muted); }
.placeholder-widget .ph-kicker { display: inline-flex; padding: 4px 9px; margin-bottom: 8px; border: 1px solid rgba(0,245,212,0.32); border-radius: 999px; color: var(--cyan); font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; background: rgba(0,245,212,0.06); }
.placeholder-widget h2 { margin: 0 0 8px; color: var(--text-bright); font-family: var(--font-display); font-size: 1.2rem; }
.placeholder-widget p { margin: 0; font-size: 0.86rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .ship-layout { grid-template-columns: 1fr; }
  .ship-rail { position: static; max-height: none; overflow: visible; flex-direction: column; }
  .ad-slot[data-ad-size="300x600"] { min-height: 250px; }
}
@media (max-width: 720px) {
  .quick-stats-strip { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
}

/* Mobile fixes (<=600px). Address horizontal overflow and grid layouts
   that were too tight on phone widths. */
@media (max-width: 600px) {
  /* Stop horizontal scroll at the body level. Some descendant (entity
     pager, tech-tree branch, etc.) was forcing the page wider than the
     viewport, and overflow-x: hidden on .ship-page--v2 only clipped its
     content while the body kept scrolling. */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .ship-page.ship-page--v2 { padding: 18px 14px 60px; }
  /* Hero art is absolutely positioned at right:0 with max-width:70% of
     hero — on a 390px viewport that can extend past the card edge. */
  .ship-hero { overflow: hidden; }
  .ship-hero-art { max-width: 60%; }

  /* Entity pager: stack prev/context/next vertically so long ship names
     truncate cleanly within their own row instead of pushing the grid
     wider than the viewport. */
  .entity-pager { grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; }
  .entity-pager__link { min-width: 0; }
  .entity-pager__link .entity-pager__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .entity-pager__context { text-align: left; font-size: 0.72rem; padding: 4px 0; }

  /* specs-head: drop link below h2 on small screens (was already
     flex-wrap, but the link needs full width to render cleanly). */
  .specs-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .specs-head a.specs-head-link { white-space: normal; }
  .specs-head-actions { align-items: flex-start; }

  /* Community stats grid: 6 columns on desktop, switch to 2 on mobile so
     numbers like "157,808" never get clipped. */
  .community-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Derived rows: stack label / value vertically so wide values fit
     while keeping the f chip anchored top-right. On desktop the formula
     <code> drops into grid-row 2 (under the label+value row); on mobile
     the value already lives at grid-row 2, so the formula gets its own
     grid-row 3 underneath, and `overflow-wrap: anywhere` prevents long
     identifier tokens (e.g. `firing_range_km`) from forcing horizontal
     overflow on a narrow viewport. */
  .guide-derived-section .derived-row { grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; }
  .guide-derived-section .derived-row > b { grid-column: 1; grid-row: 2; font-size: 1rem; }
  .guide-derived-section .derived-row > span { grid-column: 1; grid-row: 1; }
  .guide-derived-section .derived-row details > summary { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .guide-derived-section .derived-row details > code { grid-column: 1 / -1; grid-row: 3; }

  /* Spec rows: stack label/value vertically on mobile so values never
     get squeezed against the label inside a narrow card. */
  .guide-spec-card .spec-line { flex-direction: column; align-items: flex-start; }
  .guide-spec-card .spec-line b { text-align: left; }

  /* Variant card: ensure body text can wrap by killing any inherited
     nowrap. Also tighten padding. */
  .ship-variant-rel-grid { grid-template-columns: 1fr; }
  .ship-variant-card { padding: 12px 14px; }
  .ship-variant-card p { white-space: normal; word-wrap: break-word; }
}

/* Guide-page static port of the /specs/ tool. Renders all 7 categories
   as a flat grid (no interactive simulator). Reuses the spec-icon class
   from the standalone /specs/ inline styles, recolored for the guide
   page palette. */
.specs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.specs-head h2 { margin: 0; }
.specs-head a.specs-head-link { color: var(--cyan); text-decoration: none; font-size: 0.84rem; font-weight: 800; white-space: nowrap; }
.specs-head a.specs-head-link:hover { text-decoration: underline; }
.specs-head-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.specs-head-actions a.specs-head-sublink { color: var(--text-muted); text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.specs-head-actions a.specs-head-sublink:hover { color: var(--cyan); text-decoration: underline; }
.specs-intro { margin: 8px 0 18px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.guide-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.guide-spec-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid rgba(0,245,212,0.14); border-radius: 16px; background: linear-gradient(160deg, rgba(0,245,212,0.045), rgba(5,14,28,0.78)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.guide-spec-card > header { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.guide-spec-card .spec-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: rgba(0,245,212,0.10); color: var(--cyan); font-weight: 900; font-size: 1.1rem; }
.guide-spec-card .spec-icon--art { background: transparent; }
.guide-spec-card .spec-icon--art img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.guide-spec-card .spec-card-head { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guide-spec-card .spec-card-head strong { color: var(--text-bright); font-family: var(--font-display); font-size: 0.94rem; text-transform: uppercase; letter-spacing: 0.04em; }
.guide-spec-card .spec-card-head em { font-style: normal; color: var(--amber); font-weight: 900; font-size: 0.86rem; }
.guide-spec-card .spec-line { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,0.06); color: var(--text); }
.guide-spec-card .spec-line--stack { flex-direction: column; align-items: flex-start; }
.guide-spec-card .spec-line:first-of-type { border-top-color: rgba(255,255,255,0.10); }
.guide-spec-card .spec-line span { color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; }
.guide-spec-card .spec-line b { flex-grow: 1; color: var(--text-bright); font-variant-numeric: tabular-nums; font-weight: 700; word-break: break-word; overflow-wrap: anywhere; font-size: 0.88rem; text-align: right; }
.guide-spec-card .spec-line--stack b { text-align: left; }
.guide-spec-card .spec-line--header { padding-top: 12px; border-top-color: rgba(66,255,216,0.28); }
.guide-spec-card .spec-line--header span { color: var(--amber); font-weight: 900; font-size: 0.74rem; }
.guide-spec-card .upgrade-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid rgba(66,255,216,0.32); border-radius: 999px; color: #42ffd8; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.04em; text-transform: none; cursor: help; }
.guide-spec-card .consumable-icon { display: inline-block; width: 20px; height: 20px; vertical-align: middle; margin-right: 7px; border-radius: 5px; background: rgba(255,255,255,0.04); object-fit: contain; }
.guide-specs-section .upgrade-chip-demo { display: inline-block; padding: 1px 7px; border: 1px solid rgba(66,255,216,0.32); border-radius: 999px; color: #42ffd8; font-size: 0.74rem; font-weight: 900; }
.guide-spec-card .spec-note-flag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid rgba(255,183,3,0.42); border-radius: 999px; color: var(--amber); font-style: normal; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; cursor: help; }

/* Traverse-to-turn ratio chip — 5-bucket coloring. Applied next to the
   numeric ratio anywhere the metric is shown (Maneuverability card on
   ship guide pages, planned for the standalone /specs/ tool). */
.ratio-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; cursor: help; vertical-align: middle; }
.ratio-chip-bad { color: #ff5b5b; background: rgba(255,91,91,0.10); border: 1px solid rgba(255,91,91,0.45); }
.ratio-chip-ok { color: #ffd166; background: rgba(255,209,102,0.10); border: 1px solid rgba(255,209,102,0.45); }
.ratio-chip-mid { color: #ffe999; background: rgba(255,233,153,0.08); border: 1px solid rgba(255,233,153,0.40); }
.ratio-chip-good { color: #9bffd2; background: rgba(155,255,210,0.08); border: 1px solid rgba(155,255,210,0.40); }
.ratio-chip-excel { color: #42ffd8; background: rgba(66,255,216,0.10); border: 1px solid rgba(66,255,216,0.45); }
.guide-spec-card .spec-subhead { margin: 8px 0 -2px; padding: 4px 8px; border-radius: 7px; background: rgba(255,183,3,0.10); color: var(--amber); font-size: 0.66rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }

/* Derived stats — ported from the standalone /specs/ tool's "Derived" tab.
   Each row is a CSS grid (label | value | ƒ chip), with a <details>
   wrapper using display:contents so its <code> formula slot can drop
   into a new grid row when the chip is clicked. */
.guide-derived-section { margin-top: 22px; }
.guide-derived-section .guide-derived-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.guide-derived-section .derived-card { padding: 14px 16px; border: 1px solid rgba(0,245,212,0.14); border-radius: 16px; background: linear-gradient(160deg, rgba(0,245,212,0.04), rgba(5,14,28,0.78)); }
.guide-derived-section .derived-card h3, .guide-derived-section .derived-card h4 { margin: 0 0 10px; color: var(--amber); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.guide-derived-section .derived-row { display: grid; grid-template-columns: minmax(0,1fr) max-content auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); color: var(--text); font-size: 0.86rem; }
.guide-derived-section .derived-row:first-of-type { border-top-color: rgba(255,255,255,0.10); }
.guide-derived-section .derived-row > span { color: var(--text-muted); }
.guide-derived-section .derived-row > b { color: var(--text-bright); font-variant-numeric: tabular-nums; font-weight: 700; }
.guide-derived-section .derived-row details { display: contents; }
.guide-derived-section .derived-row details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; border: 1px solid rgba(66,255,216,0.32); color: #42ffd8; font-size: 0.66rem; font-weight: 900; line-height: 1; margin-left: auto; opacity: 0.55; transition: opacity 0.15s, background 0.15s; grid-column: 3; grid-row: 1; }
.guide-derived-section .derived-row details > summary::-webkit-details-marker { display: none; }
.guide-derived-section .derived-row details > summary::before { content: '\01D453'; font-style: italic; }
.guide-derived-section .derived-row details > summary:hover, .guide-derived-section .derived-row details[open] > summary { opacity: 1; background: rgba(66,255,216,0.10); }
.guide-derived-section .derived-row details > code { grid-column: 1 / -1; grid-row: 2; color: #d7fff8; font-family: var(--font-mono, ui-monospace, 'SF Mono', Consolas, monospace); font-size: 0.74rem; white-space: normal; word-break: break-word; overflow-wrap: anywhere; min-width: 0; display: block; margin-top: 6px; padding: 8px 10px; background: rgba(5,22,52,0.6); border-radius: 8px; border: 1px solid rgba(66,255,216,0.18); }

.specs-cta-row { margin-top: 18px; display: flex; justify-content: center; }
.specs-cta-row a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(135deg, rgba(0,245,212,0.18), rgba(0,245,212,0.06)); border: 1px solid rgba(0,245,212,0.34); color: var(--cyan); text-decoration: none; font-weight: 900; font-size: 0.88rem; letter-spacing: 0.02em; transition: background 0.14s ease, border-color 0.14s ease; }
.specs-cta-row a:hover { background: linear-gradient(135deg, rgba(0,245,212,0.28), rgba(0,245,212,0.10)); border-color: rgba(0,245,212,0.55); }
.specs-cta-row a .cta-arrow { font-size: 1rem; }
