/* ============================================================
   German Power Solutions — About Us page
   Loaded by inc/enqueue.php on About Us only (gps_is_about_page()).

   Laid out on the reference's About page:

     1. the banner, full bleed, then the centred title -- both
        already page.php's and base.css's;
     2. a run of prose across the whole column, no wider than the
        reference's 1160px, its closing paragraph in bold;
     3. Mission and Vision side by side as two coloured cards of
        equal height, each with its heading centred over left-set
        text. They stack below 48rem.

   Everything here styles the page body, which the client edits in
   Pages -> About Us, so the selectors are keyed on the classes the
   starter copy gives its Columns block: gps-about-cards on the row,
   gps-about-card on each column. Those survive editing, and they
   are under each block's Advanced panel for a page written from
   scratch.

   The card colours are defaults and nothing more. The first card
   is yellow with black text and the second black with white, this
   site's palette rather than the reference's gold and navy; pick a
   background or text colour for a column in the editor and the
   palette class WordPress adds (!important, from theme.json)
   overrides these.

   What differs from the reference is deliberate: the prose keeps
   this theme's body size and grey rather than its 18px and lighter
   grey, the corner radius is the site's tile radius, and the space
   above the cards is a step of the spacing scale rather than the
   empty 180px block the reference uses to make it.

   Depends on tokens.css, base.css and content.css (.gps-page__body).
   ============================================================ */

.gps-page--about{
  max-inline-size:72.5rem;
  margin-inline:auto;
}

/* The reference sets its prose across the full column. content.css
   holds every other page to a 68ch reading measure; this page lifts it. */
.gps-page--about .gps-page__body{
  max-inline-size:none;
  color:var(--grey-600);
}
.gps-page--about .gps-page__body strong{font-weight:var(--fw-bold)}

/* ---- Mission and Vision ------------------------------------
   Grid rather than the Columns block's own flex: the block library
   switches its columns between wrapping and not at 782px, which is
   no rung of this theme's ladder. Equal heights come free with the
   grid's stretch. */
.gps-page--about .gps-about-cards{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:var(--sp-5);
  margin:clamp(var(--sp-8),6vw,var(--sp-10)) 0 0;
}

.gps-page--about .gps-about-card{
  padding:clamp(var(--sp-5),2.6vw,2.1875rem);
  border-radius:var(--radius-tile);
  background:var(--gps-yellow);
  color:var(--gps-black);
}
.gps-page--about .gps-about-card:nth-child(even){
  background:var(--gps-black);
  color:var(--gps-white);
}

/* content.css gives a body h2 a long top margin and a fixed colour.
   Inside a card the heading leads, and takes the card's colour. */
.gps-page--about .gps-about-card h2{
  margin:0 0 var(--sp-4);
  font-size:clamp(1.5rem,2.3vw,1.875rem);
  text-align:center;
  color:inherit;
}
.gps-page--about .gps-about-card > :last-child{margin-block-end:0}

/* Red links on yellow and on black are both weak. A link in a card
   is the card's own colour, and the underline marks it. */
.gps-page--about .gps-about-card a{color:inherit}

@media (width >= 48rem){
  .gps-page--about .gps-about-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(var(--sp-5),2.6vw,2.3rem);
  }
}

@media print{
  .gps-page--about .gps-about-card,
  .gps-page--about .gps-about-card:nth-child(even){
    border:1px solid #000;
    background:none;
    color:#000;
  }
}
