/*
 * GEED CAMPER — shared homepage layout
 * 12 columns desktop / 8 tablet / 4 phone.
 * Keep this stylesheet after section styles. Full-bleed backgrounds stay full width.
 * Designer overlay: set <html data-geed-grid="true">; never enabled for visitors.
 */
:root {
  --geed-content-max: 1344px;
  --geed-gutter: 32px;
  --geed-grid-gap: 24px;
  --geed-grid-columns: 12;
  --geed-edge: max(var(--geed-gutter), calc((100% - var(--geed-content-max)) / 2));
}

/* Every section owns the background, every inner container shares these edges. */
html body #geed-models.zm,
html body #geed-personal,
html body #geed-winter,
html body #geed-production,
html body #geed-ownership,
html body #geed-tow {
  padding-inline: var(--geed-gutter);
}

html body #geed-models .zm-wrap,
html body #geed-personal .gch-wrap,
html body #geed-winter .gt-wrap,
html body #geed-production .gp-wrap,
html body #geed-ownership .go-wrap,
html body #geed-tow .gt-wrap,
.geed-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--geed-content-max);
  min-width: 0;
  margin-inline: auto;
}

/* The landscape remains edge-to-edge; only the header and hero copy are inset. */
html body .panorama-shell .website > header,
html body .panorama-shell.mobile-study[data-variant="03"] .website > .hero {
  padding-inline: var(--geed-edge);
}
html body .panorama-shell .website > header .phone-menu {
  padding-inline: var(--geed-edge);
}
html body .panorama-shell .website > .hero > .copy,
html body .panorama-shell .website > .hero > .hero-bottom {
  width: 100%;
  max-width: var(--geed-content-max);
  margin-inline: auto;
}

/* Shared 8 / 4 editorial split: headings, image stages and accompanying text. */
html body #geed-personal .gcp-heading,
html body #geed-production .gp-heading,
html body #geed-personal .gcp-layout,
html body #geed-production .gp-story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--geed-grid-gap);
}
html body #geed-personal .gcp-heading > :first-child,
html body #geed-production .gp-heading > :first-child,
html body #geed-personal .gcp-visual,
html body #geed-production .gp-media {
  grid-column: 1 / span 8;
  min-width: 0;
}
html body #geed-personal .gcp-heading > .gch-lead,
html body #geed-production .gp-heading > .gp-intro,
html body #geed-personal .gcp-panel,
html body #geed-production .gp-tabs {
  grid-column: 9 / -1;
  min-width: 0;
}
html body #geed-personal .gcp-heading > .gch-lead,
html body #geed-production .gp-heading > .gp-intro {
  max-width: none;
}
html body #geed-personal .gcp-layout > *,
html body #geed-production .gp-story > * {
  grid-row: 1;
}

/* Winter retains its equal photo / copy composition, now exactly 6 / 6 columns. */
html body #geed-winter .gw-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--geed-grid-gap);
}
html body #geed-winter .gw-figure { grid-column: 1 / span 6; }
html body #geed-winter .gw-content { grid-column: 7 / -1; min-width: 0; }

/* The model card follows 8 / 4 tracks; its intentional inner padding is retained. */
html body #geed-models .zm-single:not(.zm-launch-panel) {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--geed-grid-gap);
}
html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-visual { grid-column: 1 / span 8; grid-row: 1; }
html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-info { grid-column: 9 / -1; grid-row: 1; }

/* Order, handover and support use the same tracks, not fractional ad-hoc widths. */
html body #geed-ownership .go-heading,
html body #geed-ownership .go-main,
html body #geed-ownership .go-support {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--geed-grid-gap);
}
html body #geed-ownership .go-heading > h2 { grid-column: 1 / span 7; }
html body #geed-ownership .go-heading > .go-lead { grid-column: 8 / -1; max-width: none; justify-self: stretch; }
html body #geed-ownership .go-film { grid-column: 1 / span 5; }
html body #geed-ownership .go-plan { grid-column: 6 / -1; }

html body #geed-ownership .go-support-copy { grid-column: 1 / span 8; }
html body #geed-ownership .go-contact { grid-column: 9 / -1; justify-self: start; }

/* Use these for subsequent blocks without introducing another maximum width. */
.geed-grid {
  display: grid;
  grid-template-columns: repeat(var(--geed-grid-columns), minmax(0, 1fr));
  column-gap: var(--geed-grid-gap);
}
.geed-grid > * { min-width: 0; }
.geed-span-full { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  :root { --geed-grid-columns: 8; }
  html body #geed-personal .gcp-heading,
  html body #geed-production .gp-heading,
  html body #geed-personal .gcp-layout,
  html body #geed-production .gp-story,
  html body #geed-winter .gw-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  html body #geed-personal .gcp-heading > :first-child,
  html body #geed-production .gp-heading > :first-child,
  html body #geed-personal .gcp-visual,
  html body #geed-production .gp-media { grid-column: 1 / span 5; }
  html body #geed-personal .gcp-heading > .gch-lead,
  html body #geed-production .gp-heading > .gp-intro,
  html body #geed-personal .gcp-panel,
  html body #geed-production .gp-tabs { grid-column: 6 / -1; }
  html body #geed-winter .gw-figure { grid-column: 1 / span 4; }
  html body #geed-winter .gw-content { grid-column: 5 / -1; }
  html body #geed-models .zm-single:not(.zm-launch-panel),
  html body #geed-ownership .go-heading,
  html body #geed-ownership .go-main,
  html body #geed-ownership .go-support { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-visual { grid-column: 1 / span 5; }
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-info { grid-column: 6 / -1; }
  html body #geed-ownership .go-heading > h2 { grid-column: 1 / span 5; }
  html body #geed-ownership .go-heading > .go-lead { grid-column: 6 / -1; }
  html body #geed-ownership .go-film { grid-column: 1 / span 4; align-self: center; }
  html body #geed-ownership .go-plan { grid-column: 5 / -1; }
  
  html body #geed-ownership .go-support-copy { grid-column: 1 / span 4; grid-row: 1; }
  html body #geed-ownership .go-contact { grid-column: 5 / -1; grid-row: 1; }
}

/* Give model specifications enough readable width on small tablets. */
@media (min-width: 701px) and (max-width: 900px) {
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-visual { grid-column: 1 / span 4; }
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-info { grid-column: 5 / -1; }
}

/* Existing production tabs become a horizontal row at this breakpoint. */
@media (max-width: 1000px) {
  html body #geed-production .gp-story { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  html body #geed-production .gp-tabs { grid-column: 1 / -1; grid-row: 1; }
  html body #geed-production .gp-media { grid-column: 1 / -1; grid-row: 2; }
}

/* Preserve the interior's established stacked tablet/phone layout. */
@media (max-width: 760px) {
  html body #geed-personal .gcp-heading > *,
  html body #geed-personal .gcp-layout > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  :root {
    --geed-gutter: 22px;
    --geed-grid-gap: 16px;
    --geed-grid-columns: 4;
  }
  html body #geed-personal .gcp-heading,
  html body #geed-production .gp-heading,
  html body #geed-personal .gcp-layout,
  html body #geed-production .gp-story,
  html body #geed-winter .gw-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html body #geed-production .gp-heading > * {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  /* .gw-content uses display:contents on phones: all its children span 4 columns. */
  html body #geed-winter .gw-figure,
  html body #geed-winter .gw-content,
  html body #geed-winter .gw-content > * { grid-column: 1 / -1; }
  html body #geed-production .gp-heading { row-gap: 0; }
  html body #geed-models .zm-single:not(.zm-launch-panel) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-visual,
  html body #geed-models .zm-single:not(.zm-launch-panel) > .zm-info { grid-column: 1; grid-row: auto; }
  html body #geed-ownership .go-heading { display: block; }
  html body #geed-ownership .go-main { display: flex; }
  html body #geed-ownership .go-contact { justify-self: stretch; }
  html body #geed-ownership .go-support { grid-template-columns: minmax(0, 1fr); }
  html body #geed-ownership .go-support-copy,
  html body #geed-ownership .go-contact { grid-column: 1; grid-row: auto; }
}

/* Read-only design overlay, opt-in through an HTML attribute. */
html[data-geed-grid="true"]::after {
  content: "";
  position: fixed;
  inset-block: 0;
  inset-inline: var(--geed-edge);
  z-index: 2147483646;
  pointer-events: none;
  --grid-track: calc((100% + var(--geed-grid-gap)) / var(--geed-grid-columns));
  background: repeating-linear-gradient(
    90deg,
    rgba(189, 119, 75, .11) 0,
    rgba(189, 119, 75, .11) calc(var(--grid-track) - var(--geed-grid-gap)),
    transparent calc(var(--grid-track) - var(--geed-grid-gap)),
    transparent var(--grid-track)
  );
  border-inline: 1px solid rgba(189, 119, 75, .35);
}
