/* Majesty V2 — approved layout, original artwork and functional modules.
   Keep the full-screen headers and the complete V1 team/staff bands. */
:root {
  --v2-space: clamp(24px, 3vw, 48px);
  --v2-chrome: 138px;
  --v2-header: 100px;
}
.wrap { max-width: 1440px; padding: clamp(36px, 4vw, 64px) 5% 88px; }
.heading { gap: 24px; margin-bottom: 32px; }
.heading h1, .heading h2 { line-height: 1.2; }
.heading .muted { max-width: 70ch; }
.grid { gap: 26px; }
.card-body { padding: 26px; }
.panel { border-color: #e4b65c24; }
.panel > p, .card-body > p { line-height: 1.75; }
.tabs, .filters, .club-toplinks { gap: 12px; }
.tabs { margin-bottom: 28px; }
.tabs .selected, .tabs [aria-selected="true"] { border-color: var(--gold); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px;
}
body > header nav a { position: relative; padding-block: 10px; }
body > header nav a.active::after {
  content: ""; position: absolute; height: 2px; bottom: 0; left: 0; right: 0;
  background: var(--gold);
}

/* The opening artwork fills the viewport beneath the existing navigation.
   Original scenes, emblem coordinates, carousel controls and effects retained. */
.hero {
  height: auto; min-height: calc(100vh - var(--v2-chrome));
  min-height: calc(100svh - var(--v2-chrome));
  width: 100%; display: flex; align-items: center;
}
.hero .hero-scene {
  inset: 0; width: 100%; height: 100%; left: 0;
  transform: none !important; background-size: cover !important;
  background-position: center !important; mask-image: none;
}
.hero .hero-inner, .hero[class*="hero-"] .hero-inner {
  width: 100%; max-width: 1440px; height: auto;
  padding: clamp(64px, 9vh, 120px) 5% 130px; align-items: center;
}
.hero-inner > div { max-width: 580px; }
.hero h1 { font-size: clamp(42px, 4.8vw, 76px); line-height: 1.08; }
.hero .lead { font-size: 16px; line-height: 1.8; }
.hero > .carousel-controls { width: min(90%, 1296px); bottom: 30px; }
.ribbon { flex-wrap: wrap; gap: 22px 48px; padding: 28px 5%; }
.ribbon > span { line-height: 1.6; }

/* Page headers remain large instead of the short panels in the PDF export. */
.academy-page > .academy-intro, .shop-wrap > .shop-hero,
.wrap > .prediction-hero, .support-page > .support-hero {
  min-height: calc(100vh - var(--v2-chrome));
  min-height: calc(100svh - var(--v2-chrome));
  padding: clamp(36px, 5vw, 72px); align-content: center;
}
.shop-wrap > .shop-hero, .wrap > .prediction-hero {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.foundation-hero > .foundation-hero-grid {
  min-height: calc(100vh - var(--v2-chrome));
  min-height: calc(100svh - var(--v2-chrome));
  align-content: center;
}
.academy-page, .shop-wrap, .support-page { padding-top: 0; }
.academy-page > .academy-intro, .shop-wrap > .shop-hero,
.support-page > .support-hero { border-top: 0; border-radius: 0 0 12px 12px; }
.shop-hero h1, .prediction-hero h1 { font-size: clamp(38px, 4.5vw, 64px); }
.shop-hero p, .prediction-hero p { max-width: 60ch; line-height: 1.8; }

/* Preserve every original roster cell on a single proportional stage.
   These are the V1 bands, not isolated player cards or replacement portraits. */
.teams-page { max-width: none; width: 100%; padding-inline: 4%; }
.teams-page > .heading, .teams-page > .lineup-demo-note { max-width: 1440px; }
.teams-page .lineups-list { gap: 56px; margin-top: 40px; }
.teams-page .lineup-band { width: 100%; }
.teams-page .lineup-heading { margin-bottom: 22px; }
.teams-page .lineup-content { overflow: clip; }
.teams-page .lineup-ribbon { flex-wrap: nowrap; }
.teams-page .feature { margin-top: 64px; }
.teams-page .ambition-panels { margin-top: 40px !important; }
.home-team-showcase { width: 100%; }
.home-streams { padding-top: 40px; }
.home-closing { padding-top: 32px; }
.club-prose, .article-body { max-width: 75ch; line-height: 1.85; }
.club-news, .club-event { min-width: 0; }

/* Command center: persistent module navigation and a clear working area. */
.command-center { max-width: 1600px; }
.command-mast { margin: 0 0 36px; align-items: flex-end; }
.command-mast h1 { line-height: 1.1; }
.command-toolbar { gap: 24px; padding: 24px 28px; margin-bottom: 32px; }
.command-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 36px; }
.command-nav { top: calc(var(--v2-header) + 16px); padding: 20px 14px; }
.command-group + .command-group { margin-top: 12px; padding-top: 8px; border-top: 1px solid #ffffff10; }
.command-link { line-height: 1.5; min-height: 44px; }
.command-body > .panel { padding: 32px; margin-bottom: 28px; }
.command-grid { gap: 24px; margin-block: 28px; }
.command-card { padding: 28px; }
.command-body .row { padding-block: 18px; }
.command-body .row .actions { margin-top: 0; }
.command-body .heading { flex-wrap: wrap; }
.command-body .panel h2 { line-height: 1.3; }
[data-command-density="compact"] .command-body > .panel { padding: 20px; }
[data-command-density="compact"] .command-link { min-height: 36px; }

/* Business Plan and offices keep their real forms, calculations and permissions. */
.business-private { max-width: 1600px; }
.business-private .business-mast { margin-bottom: 40px; gap: 48px; }
.business-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
.business-navigation { top: calc(var(--v2-header) + 16px); padding: 24px 18px; }
.business-navigation button, .business-navigation > a { min-height: 44px; }
.business-content > .panel, .business-two > .panel { padding: 36px; }
.business-content > .panel, .business-content > .business-two,
.business-content > .business-kpis { margin-bottom: 32px; }
.business-two, .office-seats { gap: 26px; }
.business-table-scroll { border: 1px solid #e4b65c24; border-radius: 8px; }
.business-table-scroll th, .business-table-scroll td { padding: 16px; }
.business-form-grid { gap: 16px 24px; }
.office-tabs { gap: 12px; margin-bottom: 32px; }
.office-tabs .btn { min-height: 44px; }
.office-private > .panel { padding: 36px; margin-block: 32px; }
.office-seats > .panel { padding: 28px; }

@media (max-width: 1100px) {
  .command-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .business-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .grid { gap: 20px; }
}
@media (max-width: 850px) {
  .command-layout, .business-layout { grid-template-columns: 1fr; }
  .command-nav, .business-navigation { position: static; }
  .command-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .command-group + .command-group { margin-top: 0; }
  .command-grid { grid-template-columns: 1fr; }
  .command-toolbar { flex-wrap: wrap; }
  .command-toolbar label { flex-basis: 100%; }
  .business-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-navigation > .eyebrow, .business-navigation > label { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --v2-chrome: 122px; --v2-header: 82px; }
  .wrap { padding: 32px 6% 60px; }
  .hero { min-height: max(720px, calc(100svh - var(--v2-chrome))); align-items: flex-end; }
  .hero .hero-scene { background-position: 65% top !important; }
  .hero .hero-inner, .hero[class*="hero-"] .hero-inner { padding: 350px 6% 120px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 48px); }
  .hero .lead { font-size: 14px; min-height: 0; }
  .hero-0 .hero-scene > .hero-logo, .hero-2 .hero-scene > .hero-logo {
    width: 220px; height: 220px; left: 65%; top: 180px;
  }
  .hero > .carousel-controls { bottom: 24px; }
  .grid { gap: 20px; }
  .heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .card-body { padding: 22px; }
  .teams-page { padding-inline: 3%; }
  .teams-page .lineups-list { gap: 36px; }
  .academy-page, .shop-wrap, .support-page { padding-top: 0; }
  .academy-page > .academy-intro, .shop-wrap > .shop-hero,
  .wrap > .prediction-hero, .support-page > .support-hero { padding: 32px 24px; }
  .command-mast { display: block; }
  .command-mast > a { margin-top: 16px; }
  .command-toolbar, .command-body > .panel, .command-card { padding: 24px; }
  .command-nav { padding: 12px; gap: 6px; }
  .command-link { padding: 10px 8px; font-size: 12px; }
  .business-private .business-mast { padding: 28px 24px; gap: 20px; }
  .business-content > .panel, .business-two > .panel, .office-private > .panel { padding: 24px; }
  .business-table-scroll th, .business-table-scroll td { padding: 12px; }
  .office-tabs .btn { flex: 1 1 130px; }
}
@media print {
  .hero, .academy-page > .academy-intro, .shop-wrap > .shop-hero,
  .wrap > .prediction-hero, .support-page > .support-hero,
  .foundation-hero > .foundation-hero-grid { min-height: 0; }
  .command-nav, .business-navigation { position: static; }
}
