/* Styles of /geowide-display/ 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 + big preview)
   is the hero of the case. It fills the hero box (columns 4-12, rows 2-8 on
   desktop); the box sits on the column lines and the content has 32px of
   space inside (inset rule). Everything is spans of columns, no fixed
   positions. */
body.case-page .gw-fit { background: var(--black, #1f1f29); color: #fff; border-radius: 20px; overflow: hidden; }  /* same corners as the Galatea specimen */
body.case-page .gw-specimen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 32px;
  min-width: 0;
  min-height: 0;
}
body.case-page .gw-tabs {
  flex: none;
  display: flex;
  gap: var(--g-gutter);
  margin-bottom: var(--v-gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
body.case-page .gw-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  margin: 0 0 -1px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
body.case-page .gw-tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
body.case-page .gw-tab:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

/* Panel: nine tracks like the nine content columns of the hero. Letters on
   the first five, the large preview on the last four. Above 1200px, twelve:
   letters on seven, preview on five. */
body.case-page .gw-panel {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--g-gutter);
  align-items: stretch;
}
body.case-page .gw-panel[hidden] { display: none; }
body.case-page .gw-letters {
  grid-column: 1 / span 5;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: min-content;
  gap: calc(var(--g-gutter) / 2);
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
body.case-page .gw-letters::-webkit-scrollbar { width: 6px; }
body.case-page .gw-letters::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
body.case-page .gw-letters img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: pointer;
  padding: 12%;
  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 .gw-letters img:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.55); }
body.case-page .gw-visor {
  grid-column: 6 / -1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.case-page .gw-visor img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

/* Links to the fonts, under the numbered titles of the pair. */
body.case-page .gw-link {
  display: inline-block;
  margin-top: 0;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.case-page .gw-link:hover,
body.case-page .gw-link:focus-visible { text-decoration-thickness: 2px; }

/* Poster figures: the ratio of each image, so none is cropped. */
body.case-page .cp-figure .cp-fit img { object-fit: cover; }

/* Tablet and phone: the hero has no row height to follow, so the specimen
   gets its own (relative to the screen). Phone stacks letters over preview. */
@media (max-width: 63.99em) {
  body.case-page .cp-hero .gw-fit { aspect-ratio: auto; height: min(80svh, 40rem); }
  body.case-page .gw-visor img { max-height: 100%; }
  body.case-page .cp-figure--tall { grid-column: 1 / span 4; }
}
@media (max-width: 37.49em) {
  body.case-page .cp-hero .gw-fit { height: min(88svh, 44rem); }
  body.case-page .gw-specimen { padding: 16px; }
  body.case-page .gw-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); row-gap: var(--g-gutter); }
  body.case-page .gw-letters { grid-column: 1; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  body.case-page .gw-visor { grid-column: 1; }
  body.case-page .cp-figure--tall { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  body.case-page .cp-figure--tall { grid-column: 1 / span 4; }
}
@media (min-width: 75.0625em) {
  body.case-page .gw-panel { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  body.case-page .gw-letters { grid-column: 1 / span 7; }
  body.case-page .gw-visor { grid-column: 8 / -1; }
}
/* Only the title is set in GeoWide (single regular cut: no faux bold,
   never italic). Its own @font-face, since css/style.css is not loaded. */
@font-face { font-family: 'GeoWide'; src: url("../css/geowide-regular.woff") format("woff"); font-display: swap; }
body.case-page .cp-title { font-family: 'GeoWide', var(--font-main); font-weight: 400; font-style: normal; }
/* GeoWide is very wide: its longest word ("GeOWIde") measures 8.8 times
   the font size. The size is capped so that word fits the column (cqi of
   the head), in every mode css/a11y.css sizes the title in. */
body.case-page .cp-head { container-type: inline-size; }
html body.case-page .cp-title { font-size: min(22px, 100cqi / 8.9); }
html.a11y body.case-page .cp-title[data-a11y-s] { font-size: min(var(--a11y-s), 100cqi / 8.9) !important; }
@media (max-width: 39.99em) {
  html.has-topnav:not(.a11y) body.case-page .cp-title[data-a11y-s] { font-size: min(var(--a11y-s), 100cqi / 8.9) !important; }
  html.a11y body.case-page .cp-title[data-a11y-s] { font-size: min(var(--a11y-m, var(--a11y-s)), 100cqi / 8.9) !important; }
}
