/* GA Electrical: two grounds, Forum over Literata, the duty face repeated on every page, a header ruled as a table. */

/* ---- the stuff the site is made of: grounds, inks, measures, one step of motion ---- */
:root{
  --colour-of-the-ground: #E4E9E0;
  --colour-of-the-ink: #1C2A24;
  --colour-of-the-photograph: #35B9C4; /* cyan belongs to the pictures, never to the interface */
  --space-between-sections: clamp(2.5rem, 9vh, 6.5rem);
  --padding-of-a-face: clamp(1rem, 3vw, 1.75rem);
  --reach-of-a-corner-tick: 0.9rem;
  --weight-of-a-tick: 2px;
  --measure-of-the-reading: 34rem;
  --measure-of-the-page: 80rem;
  --edge-of-the-page: clamp(0.9rem, 4vw, 2rem);
  --tracking-of-the-sign: 0.11em;
  --time-of-one-step: 140ms;
  --size-of-a-label: 0.9rem;
  --size-of-the-reading: 1rem;
  --size-of-a-section-head: 1.5rem;
  --height-of-the-consent: 0rem;
}
@media (min-width: 48em){
  :root{
    --size-of-the-reading: 1.0625rem;
    --size-of-a-section-head: 1.75rem;
    --edge-of-the-page: 2rem;
  }
}

/* ---- the ground every page stands on ---- */
*,*::before,*::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--colour-of-the-ground);
  color: var(--colour-of-the-ink);
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
  font-size: var(--size-of-the-reading);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg, video{ display: block; max-width: 100%; }
img{ height: auto; }
a{ color: inherit; }
:focus-visible{ outline: 2px solid currentColor; outline-offset: 3px; }

/* ---- a cable run: the width everything is strung along, phone first ---- */
.cable-run{
  width: 100%;
  max-width: var(--measure-of-the-page);
  margin-inline: auto;
  padding-inline: var(--edge-of-the-page);
}

/* ---- headings: Forum capitals, tracked, never the largest thing on the page ---- */
.trade-heading{
  margin: 0 0 0.6em;
  font-family: 'Forum', 'Times New Roman', serif;
  font-weight: 400;
  font-size: var(--size-of-a-section-head);
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: var(--tracking-of-the-sign);
}
h1.trade-heading{ font-size: 1.6875rem; }
@media (min-width: 48em){ h1.trade-heading{ font-size: 2.25rem; } }

/* ---- the oversized figure of a duty face, with its plain-words unit beside it ---- */
.figure-bay{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.sign-figure{
  font-family: 'Forum', 'Times New Roman', serif;
  font-size: 7rem;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 0.82;
  letter-spacing: 0.01em;
}
.unit-word{ font-family: 'Literata', Georgia, serif; font-size: var(--size-of-the-reading); }
@media (min-width: 48em){ .sign-figure{ font-size: 11rem; } }
@media (min-width: 75em){ .sign-figure{ font-size: 16rem; } }

/* ---- the duty face: a thin-bordered plate, its corners marked by four right angles ---- */
.duty-face{
  position: relative;
  border: 1px solid currentColor;
  padding: var(--padding-of-a-face);
  padding-top: calc(var(--padding-of-a-face) + 0.2rem);
}
.corner-tick{
  position: absolute;
  width: var(--reach-of-a-corner-tick);
  height: var(--reach-of-a-corner-tick);
  border: 0 solid currentColor;
  opacity: 0.55;
}
.tick-here-north-west{ top: -1px; left: -1px; border-top-width: var(--weight-of-a-tick); border-left-width: var(--weight-of-a-tick); }
.tick-here-north-east{ top: -1px; right: -1px; border-top-width: var(--weight-of-a-tick); border-right-width: var(--weight-of-a-tick); }
.tick-here-south-west{ bottom: -1px; left: -1px; border-bottom-width: var(--weight-of-a-tick); border-left-width: var(--weight-of-a-tick); }
.tick-here-south-east{ bottom: -1px; right: -1px; border-bottom-width: var(--weight-of-a-tick); border-right-width: var(--weight-of-a-tick); }

/* ---- a field of the face: one ruled row of a label and its worth ---- */
.face-field{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 0.9rem;
  margin: 0;
  padding-block: 0.55rem;
  border-top: 1px solid currentColor;
  font-size: var(--size-of-the-reading);
}
.face-field dt{ font-size: var(--size-of-a-label); letter-spacing: 0.03em; opacity: 0.78; }
.face-field dd{ margin: 0; text-align: right; flex: 1 1 55%; }
.face-note{ margin: 0.7rem 0 0; }

/* ---- a page opening: the duty face on one side, its photograph on the other ---- */
.page-opening{
  display: grid;
  gap: 1rem;
  padding-block: clamp(1rem, 3.5vh, 2rem) var(--space-between-sections);
}
@media (min-width: 60em){
  .page-opening{
    grid-template-columns: minmax(24rem, 34rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1rem, 2vw, 1.75rem);
  }
}

/* ---- a photograph bay, its corners located by two right angles, cropped with object-fit ---- */
.photograph-bay{ position: relative; margin: 0; }
.photograph-bay img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photograph-bay .tick-here-north-west,
.photograph-bay .tick-here-south-east{ opacity: 0.9; }
@media (min-width: 60em){
  .page-opening .photograph-bay img{ aspect-ratio: 16 / 11; }
}

/* ---- running words: the reading column, never wider than a comfortable measure ---- */
.working-note{ max-width: var(--measure-of-the-reading); }
.working-note p{ margin: 0 0 1em; }
.working-note p:last-child{ margin-bottom: 0; }
.aside-note{ font-size: var(--size-of-a-label); opacity: 0.8; margin: 0; }

/* ---- a hairline rule and a ruled list of facts, the board's other furniture ---- */
.hairline{ border: 0; border-top: 1px solid currentColor; margin: 0; }
.ruled-facts{ margin: 0; padding: 0; border-top: 1px solid currentColor; }
.ruled-facts > div{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid currentColor;
}
.ruled-facts dt{ font-size: var(--size-of-a-label); letter-spacing: 0.03em; opacity: 0.78; }
.ruled-facts dd{ margin: 0; text-align: right; flex: 1 1 55%; }

/* ---- a link that is plainly a link, and one that stands as a control ---- */
.underlined-link,
a.underlined-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.underlined-link:hover{ text-decoration-thickness: 2px; }
.pressing-word{
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--size-of-the-reading);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* ---- the header: a two-row ruled table, the name centred over four equal cells,
   tall enough on a desk screen to read as a sign rather than a utility strip ---- */
.nameplate{ border-bottom: 1px solid var(--colour-of-the-ink); background: var(--colour-of-the-ground); }
.nameplate-name{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.6rem var(--edge-of-the-page);
  color: inherit;
  text-decoration: none;
}
.duty-sign{ width: 1.55rem; height: 2rem; flex: none; }
.nameplate-words{
  font-family: 'Forum', 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: var(--tracking-of-the-sign);
  text-transform: uppercase;
}
.page-cells{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--colour-of-the-ink);
}
.page-cell{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.2rem;
  border-left: 1px solid var(--colour-of-the-ink);
  color: inherit;
  text-decoration: none;
  font-size: var(--size-of-a-label);
  line-height: 1.25;
}
.page-cell:first-child{ border-left: 0; }
.cell-number{
  font-size: var(--size-of-a-label);
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}
.cell-name{ text-align: center; }
.page-cell[aria-current="page"] .cell-name{ text-decoration: underline; text-underline-offset: 0.3em; }
.page-cell:hover .cell-name{ text-decoration: underline; text-underline-offset: 0.3em; }
@media (min-width: 48em){
  .nameplate-name{ min-height: 5.5rem; gap: 0.9rem; padding-block: 0.9rem; }
  .duty-sign{ width: 2.1rem; height: 2.75rem; }
  .nameplate-words{ font-size: 2rem; letter-spacing: 0.14em; }
  .page-cells{ grid-template-columns: repeat(4, 1fr); }
  .page-cell{
    flex-direction: row;
    gap: 0.45rem;
    min-height: 3rem;
    font-size: var(--size-of-the-reading);
  }
}

/* ---- the phone's standing call control: docked as a full-width bar on the window's foot,
   standing on its own solid ground directly above the cookie band ---- */
.kettle-lead{
  position: fixed;
  inset-inline: 0;
  bottom: var(--height-of-the-consent, 0rem);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem var(--edge-of-the-page);
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  border: 0;
  border-top: 1px solid var(--colour-of-the-ground);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.kettle-lead.gae-quiet-on{ display: none; }
@media (min-width: 48em){ .kettle-lead{ display: none; } }

/* ---- the footer: a full-width timetable on the deep-pine ground ---- */
.timetable{
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  padding-block: clamp(1.75rem, 5vh, 3rem);
}
.timetable-name{ font-size: 1.5rem; margin-bottom: 1rem; }
.timetable-lines{ margin: 0; border-top: 1px solid var(--colour-of-the-ground); }
.timetable-line{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 1.25rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid currentColor;
  font-size: var(--size-of-the-reading);
}
.timetable-line dt{ font-size: var(--size-of-a-label); letter-spacing: 0.03em; opacity: 0.8; }
.timetable-line dd{ margin: 0; text-align: right; flex: 1 1 60%; }
.timetable a{ text-decoration: underline; text-underline-offset: 0.26em; }
.timetable .underlined-link{ color: var(--colour-of-the-ground); }
/* on a desk screen the pairs are a table with one fixed label column: label and worth read
   across a short gap, both at reading size */
@media (min-width: 48em){
  .timetable-line{
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0 1.5rem;
  }
  .timetable-line dt{ font-size: var(--size-of-the-reading); opacity: 0.86; }
  .timetable-line dd{ flex: none; text-align: left; }
}
@media (max-width: 47.99em){
  .timetable{ padding-bottom: calc(clamp(1.75rem, 5vh, 3rem) + 3rem); }
}

/* ---- the consent band: a solid pine strip at the foot of the window ---- */
#cookies{
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1.25rem;
  max-height: 20vh;
  overflow: auto;
  padding: 0.55rem var(--edge-of-the-page);
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  border-top: 1px solid var(--colour-of-the-ground);
}
#cookies[hidden]{ display: none; }
.consent-words{ margin: 0; max-width: 46rem; font-size: var(--size-of-a-label); line-height: 1.45; }
.consent-aside{ display: inline; }
.consent-choices{ display: flex; gap: 1.1rem; margin: 0; }
.consent-choices button{
  min-height: 1.9rem;
  padding: 0.2rem 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: var(--size-of-a-label);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  cursor: pointer;
}
/* on a phone the band is two lines of running text: the short sentence, and the two choices
   set in the line where it ends. The choices keep the text's own line height, and each one's
   pressing area reaches past its letters, so the band stays slim under the call bar */
@media (max-width: 47.99em){
  #cookies{
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0.4rem var(--edge-of-the-page);
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .consent-words{
    display: inline;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .consent-aside{ display: none; }
  .consent-choices{
    display: inline;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .consent-choices button{
    position: relative;
    display: inline;
    min-height: 0;
    margin: 0 0 0 0.9rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
  }
  .consent-choices button::before{
    content: "";
    position: absolute;
    inset: -0.75rem -0.4rem;
  }
}

/* ---- the offer ticket: hidden until a real offer exists, then it drops in three steps ---- */
#invite{
  position: fixed;
  top: 7rem;
  right: var(--edge-of-the-page);
  z-index: 50;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  border: 1px solid var(--colour-of-the-ground);
  transform: translateY(-160%);
  opacity: 0;
  transition: transform 300ms steps(3, end), opacity 0ms;
}
#invite[hidden]{ display: none; }
#invite.is-in{ transform: translateY(0); opacity: 1; }
.ticket-words{ margin: 0 0 0.5rem; font-size: var(--size-of-the-reading); }
.ticket-way{ color: inherit; text-decoration: underline; text-underline-offset: 0.26em; }
.ticket-shut{
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2rem;
  height: 2rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---- arriving in one step: script adds .gae-rise-on; without script nothing is hidden ---- */
.circuit-rise{ opacity: 1; }
.js .circuit-rise{ opacity: 0; }
.js .circuit-rise.gae-rise-on{ opacity: 1; }

/* ---- the face firms up when it is reached: ticks and border at full ink, no fade ---- */
.duty-face.gae-solid-on .corner-tick{ opacity: 1; }

/* ---- the skip link, out of the way until it is wanted ---- */
.first-jump{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 90;
  transform: translateY(-130%);
  padding: 0.6rem 1rem;
  background: var(--colour-of-the-ink);
  color: var(--colour-of-the-ground);
  font-size: var(--size-of-the-reading);
  text-decoration: underline;
}
.first-jump:focus{ transform: translateY(0); }

/* ---- for a line only a screen reader should hear ---- */
.said-only-to-a-reader{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce){
  #invite{ transition: none; transform: none; }
  *{ scroll-behavior: auto; }
}

@media (min-width:1921px){html{font-size:calc(100vw/120)}}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html,body{overflow-x:clip}
header a,header button,nav a,nav button{position:relative;z-index:2}
