/* Styles of /galatea-typeface/ only (moved out of its <style> block on 2026-11-10).
   Loaded after the shared sheets, at the same place the block was, so the
   cascade is unchanged. Rules shared by several pages go in /css. */

/* Page-specific: the typeface specimen (tabs + glyph grid + visor) is the
   hero of the case. Galatea stays as the specimen's own face (tabs and
   buttons); everything else is Geist through the template. Never italic. */

/* ---------- Specimen: dark panel on all the content columns ---------- */
body.case-page .gl-specimen {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  padding: 32px;                       /* the box sits on the column lines, its content 32px in */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--black, #1f1f29);
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
}
body.case-page .gl-tabs {
  display: flex;
  gap: var(--g-gutter);
  margin: 0 0 var(--v-gutter);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
body.case-page .gl-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -11px;
  transition: color .2s ease, border-color .2s ease;
}
body.case-page .gl-tab:hover { color: #fff; }
body.case-page .gl-tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
body.case-page .gl-tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Inside the panel: nine tracks (the nine content columns of the hero,
   narrower by the inset). Letters on 5 of them, one tile per track; the
   visor on 4. Above 1200px, twelve: letters on 7, visor on 5. */
body.case-page .gl-panel {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--g-gutter);
  min-height: 0;
  align-items: stretch;
}
body.case-page .gl-letters {
  grid-column: 1 / span 5;
  display: grid;
  grid-template-columns: subgrid;
  grid-auto-rows: min-content;
  gap: var(--g-gutter);
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
body.case-page .gl-letters::-webkit-scrollbar { width: 6px; }
body.case-page .gl-letters::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
body.case-page .gl-letters img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-sizing: border-box;
  object-fit: contain;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  opacity: 0.85;
  transition: opacity .15s ease, border-color .15s ease;
}
body.case-page .gl-letters img:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.55); }
body.case-page .gl-visor {
  grid-column: 6 / -1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.case-page .gl-visor img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

/* ---------- Get Galatea: two buttons in the first block ---------- */
body.case-page .gl-cta {
  display: grid;
  gap: var(--v-gutter);
  margin: 0;
}
body.case-page .gl-cta a {
  display: block;
  padding: 14px 16px;
  background: var(--black, #1f1f29);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: 'Galatea', 'Times New Roman', serif;
  font-style: normal;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity .2s ease;
}
body.case-page .gl-cta a:hover { opacity: 0.78; }
body.case-page .gl-cta a:focus-visible { outline: 2px solid var(--black, #1f1f29); outline-offset: 3px; }

/* ---------- Examples: three posters of three content columns each (four above 1200px) ---------- */
body.case-page .gl-posters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: var(--cp-gap);
}
body.case-page .gl-posters .cp-figure { display: block; grid-column: span 3; }
body.case-page .gl-posters .cp-fit { aspect-ratio: 3 / 4; }
@media (min-width: 75.0625em) {
  body.case-page .gl-panel { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  body.case-page .gl-letters { grid-column: 1 / span 7; }
  body.case-page .gl-visor { grid-column: 8 / -1; }
  body.case-page .gl-posters .cp-figure { grid-column: span 4; }
}

/* ---------- Tablet and phone: the specimen goes back to natural height ---------- */
@media (max-width: 63.99em) {
  body.case-page .cp-hero .gl-fit { aspect-ratio: auto; overflow: visible; }
  body.case-page .gl-specimen {
    position: static;
    display: block;
    padding: 32px;
  }
  body.case-page .gl-panel { display: block; }
  body.case-page .gl-letters {
    grid-template-columns: repeat(var(--g-cols), minmax(0, 1fr));
    max-height: 50vh;
  }
  body.case-page .gl-visor { min-height: 240px; padding-top: var(--v-gutter); }
  body.case-page .gl-visor img { max-height: 480px; }

  body.case-page .gl-posters { grid-column: 1 / -1; }
  body.case-page .gl-posters .cp-figure { grid-column: span 4; }
  body.case-page .gl-posters .cp-figure:nth-child(3) { grid-column: 3 / span 4; }
}
@media (max-width: 37.49em) {
  body.case-page .gl-specimen { padding: 32px 16px; }
  body.case-page .gl-posters .cp-figure,
  body.case-page .gl-posters .cp-figure:nth-child(3) { grid-column: 1 / -1; }
}
  /* Only the title is set in Galatea (the face is a single regular cut:
   no faux bold, never italic). The @font-face lives in css/sidebars.css. */
body.case-page .cp-title { font-family: 'Galatea', 'Times New Roman', serif; font-weight: 400; font-style: normal; }
