/* Forschungsnetzwerk Kunst und Kultur in der DDR, in the Common Ground design: an index on a modular grid.
   Off-white ground, ink rules that divide the page into modules like the panel joints of the
   Grünau housing blocks, Archivo Narrow headings, one blue (Pionierblau), and archive
   photographs set beside the index they illustrate. */

@font-face {
  font-family: "Archivo Narrow";
  src: url("/assets/fonts/archivo-narrow.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

html { background: #f4f4ef; scrollbar-color: #151a2c #f4f4ef; }
.common-ground {
  --ground: #f4f4ef;
  --field: #fcfcf9;
  --ink: #151a2c;
  --muted: #404650;
  --rule: #a8a9ac;
  /* One colour, at full strength: Pionierblau, the blue of the Young Pioneers' neckerchief, used
     as a colour only. Light type wherever it sits behind text. */
  --signal: #1f5aa6;
  --error: #9d2418;
  --gutter: clamp(1.1rem, 4.4vw, 4rem);
  --pad: clamp(1.1rem, 2.5vw, 2.5rem);
  --row: clamp(1.6rem, 3.6vw, 3.5rem);
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --text: Archivo, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font: 400 1.0625rem/1.55 var(--text);
  caret-color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
.common-ground *, .common-ground *::before, .common-ground *::after { box-sizing: border-box; }
.common-ground ::selection { background: var(--signal); color: var(--ground); }
.common-ground :where(h1, h2, h3, h4, p, figure, ul, ol, dl, dd) { margin: 0; }
.common-ground :where(ul, ol) { padding: 0; list-style: none; }
.common-ground img { display: block; max-width: 100%; }
.common-ground :where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.common-ground :where(a):hover { text-decoration-thickness: 2px; }
.common-ground :is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.common-ground #content:focus { outline: none; }
.common-ground :is(.cg-roster, .cg-nav) a:focus-visible { outline-offset: -5px; }
.common-ground :is(.cg-nav a[aria-current], .cg-button):focus-visible { outline-color: var(--ink); outline-offset: 3px; }
.common-ground :is(h1, h2, h3, h4) { text-wrap: balance; overflow-wrap: break-word; }
.common-ground p { text-wrap: pretty; }
.common-ground :lang(de) :is(p, dd, li) { hyphens: auto; hyphenate-limit-chars: 10 4 4; }

.cg-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cg-icon {
  width: .9em;
  height: .9em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
}

.common-ground .skip {
  position: absolute;
  inset: .6rem auto auto .7rem;
  z-index: 3;
  padding: .65rem 1rem;
  transform: translateY(-170%);
  background: var(--ink);
  color: var(--ground);
  font: 600 1rem/1 var(--narrow);
}
.common-ground .skip:focus { transform: none; }
.cg-mast, .common-ground > main, .cg-footer { width: min(92rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.common-ground > main { min-height: 60svh; }

/* Masthead: the name, the sections, then "Mitglied werden" and the language switch top right;
   a section's pages below. */
.cg-mast-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "sign nav cta lang";
  align-items: center;
  gap: .9rem clamp(1rem, 2.2vw, 2.2rem);
  padding-block: clamp(.8rem, 1.4vw, 1.15rem);
  border-bottom: 1px solid var(--ink);
}
.cg-cta { grid-area: cta; }
.cg-sign { grid-area: sign; }
.cg-lang { grid-area: lang; }
.cg-nav { grid-area: nav; }
/* The call to action: the same box as the language switch, in the blue. */
.cg-cta {
  display: grid;
  place-items: center;
  height: 2.5rem;
  padding: 0 .95rem;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--ground);
  font: 650 .95rem/1 var(--narrow);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.cg-cta:hover, .cg-cta[aria-current] { background: var(--ink); border-color: var(--ink); }
.common-ground .cg-cta:focus-visible { outline-offset: 3px; }
/* The language switch: the other language, named in itself, outlined beside the filled call to action. */
.cg-lang {
  display: grid;
  place-items: center;
  height: 2.5rem;
  padding: 0 .95rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 650 .95rem/1 var(--narrow);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.cg-lang:hover { background: var(--ink); color: var(--ground); }
.cg-lang-short { display: none; }
.cg-sign {
  display: grid;
  text-decoration: none;
  font: 700 1.06rem/1.08 var(--narrow);
  letter-spacing: -.005em;
}
.cg-sign-b { font-weight: 450; }
.cg-sign b, .cg-footer-name b { padding: 0 .14em; background: var(--signal); color: var(--ground); font-weight: 700; }
.cg-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.cg-nav a {
  display: flex;
  align-items: center;
  gap: .4em;
  height: 100%;
  padding: .62rem clamp(.55rem, .9vw, .85rem);
  text-decoration: none;
  font: 600 1.04rem/1 var(--narrow);
}
/* The current section is marked, not filled: blue words on a blue bar, so the filled
   "Mitglied werden" stays the only blue block at the top and never meets another one. */
.cg-nav a:hover { box-shadow: inset 0 -3px 0 var(--ink); }
.cg-nav a[aria-current] { color: var(--signal); box-shadow: inset 0 -3px 0 var(--signal); }
.cg-nav .cg-icon { width: .95em; height: .95em; stroke-width: 1.8; }
.cg-subnav { border-bottom: 1px solid var(--ink); }
.cg-subnav ul { display: flex; flex-wrap: wrap; column-gap: clamp(1.1rem, 2.6vw, 2.5rem); }
.cg-subnav a {
  display: block;
  margin-bottom: -1px;
  padding: .85rem 0 .7rem;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  font: 500 1.02rem/1.2 var(--narrow);
}
.cg-subnav a:hover { border-bottom-color: var(--signal); }
.cg-subnav a[aria-current] { border-bottom-color: var(--ink); font-weight: 700; }

/* Shared modules: rows on a twelve-column grid, divided by ink rules. */
.cg-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pad);
  border-top: 1px solid var(--ink);
}
.cg-split, .cg-reading, .cg-theme, .cg-join, .cg-plate { padding-block: var(--row); }
.cg-split > :first-child { grid-column: 1 / span 4; }
.cg-split > :last-child { grid-column: 5 / -1; }
.cg-row h2, .cg-module h2, .cg-empty h2, .cg-missing h1 {
  font: 650 clamp(1.6rem, 2.5vw, 2.4rem)/1 var(--narrow);
  letter-spacing: -.03em;
}
.cg-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.4rem; }
.cg-more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font: 600 1.04rem/1.25 var(--narrow);
  text-decoration: none;
}
.cg-more span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.cg-more:hover span { text-decoration-thickness: 2px; }
.cg-button {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .82rem 1.15rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ground);
  font: 600 1.04rem/1 var(--narrow);
  text-decoration: none;
  cursor: pointer;
}
.cg-button:hover { background: var(--signal); color: var(--ground); }
.cg-meta, .cg-record-meta {
  color: var(--muted);
  font: 500 .98rem/1.35 var(--narrow);
  font-variant-numeric: tabular-nums;
}

/* The one moment of motion: a blue bar runs under a name as you point at it. */
.cg-index a span, .cg-roster a span, .cg-jump a {
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 0 .16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.cg-index a:is(:hover, :focus-visible) span, .cg-roster a:is(:hover, :focus-visible) span, .cg-jump a:is(:hover, :focus-visible) {
  background-size: 100% .16em;
}
@media (prefers-reduced-motion: no-preference) {
  .cg-index a span, .cg-roster a span, .cg-jump a { transition: background-size 420ms var(--ease); }
  .cg-more .cg-icon, .cg-index .cg-icon, .cg-roster .cg-icon { transition: transform 240ms var(--ease); }
  .cg-more:hover .cg-icon, .cg-index a:hover .cg-icon, .cg-roster a:hover .cg-icon { transform: translateX(.18em); }
  .cg-more:hover .cg-icon-down { transform: translateY(.18em); }
}

/* Photographs: the image, what it shows, and its credit. */
.cg-figure img { width: 100%; height: auto; background: #dcdcd5; }
.cg-figure.is-cropped img { aspect-ratio: 4 / 3; object-fit: cover; }
.cg-figure figcaption { margin-top: .7rem; max-width: 62ch; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.cg-caption { display: block; color: var(--ink); }
.cg-credit a { overflow-wrap: anywhere; }

/* Home ---------------------------------------------------------------------------------- */
.cg-hero {
  margin-top: clamp(1rem, 2.4vw, 2.2rem);
  padding: clamp(1.4rem, 4.2vw, 4rem) var(--pad) clamp(1.5rem, 3.6vw, 3.4rem);
  background: var(--signal);
  color: var(--ground);
}
.cg-hero h1 {
  font: 720 clamp(2.45rem, 10.3vw, 6rem)/.86 var(--narrow);
  letter-spacing: -.05em;
  margin-left: -.04em;
}
.cg-hero h1 > span { display: block; }
.cg-hero h1 b { font-weight: inherit; }
.cg-claim {
  margin-top: clamp(1.4rem, 4vw, 3.6rem);
  max-width: 34ch;
  font: 400 clamp(1.18rem, 1.9vw, 1.6rem)/1.34 var(--text);
}
.cg-initiators { max-width: 60ch; margin-top: 1.2rem; color: var(--muted); }
.cg-intro-text { max-width: 54ch; font: 400 clamp(1.18rem, 1.7vw, 1.48rem)/1.45 var(--text); }
.cg-study > .cg-evidence { grid-column: 1 / span 6; padding-block: var(--row); }
.cg-study > .cg-focus { grid-column: 7 / -1; padding-block: var(--row); position: relative; }
.cg-focus > h2 { margin-bottom: 1.2rem; }
.cg-index li { padding-block: clamp(.85rem, 1.3vw, 1.2rem); border-top: 1px solid var(--rule); }
.cg-index h3 { font: 650 clamp(1.4rem, 2.15vw, 2.05rem)/1.02 var(--narrow); letter-spacing: -.03em; }
.cg-index h3 a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-decoration: none; }
.cg-index h3 .cg-icon { width: .62em; height: .62em; }
.cg-index p { margin-top: .5rem; max-width: 58ch; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.cg-pair > .cg-module { grid-column: span 6; padding-block: var(--row); }
.cg-pair > .cg-module + .cg-module { position: relative; }
.cg-study > .cg-focus::before, .cg-pair > .cg-module + .cg-module::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(var(--pad) / -2);
  border-left: 1px solid var(--ink);
}
.cg-module > h2 { margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }
.cg-latest h3, .cg-event-title {
  font: 650 clamp(1.5rem, 2.3vw, 2.2rem)/1.04 var(--narrow);
  letter-spacing: -.025em;
}
.cg-latest h3 a { text-decoration: none; }
.cg-latest h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cg-latest .cg-meta { margin: .7rem 0 .8rem; }
.cg-latest article > p:last-child { max-width: 52ch; }
.cg-sample {
  display: inline-block;
  margin-left: .3em;
  padding: .32em .5em .28em;
  vertical-align: .3em;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--ground);
  font: 700 .82rem/1 var(--narrow);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cg-sample-note { margin-top: .75rem; max-width: 50ch; color: var(--muted); font-size: .95rem; }
.cg-card { margin-top: 1.3rem; border-top: 1px solid var(--rule); }
.cg-card > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 3fr);
  gap: .2rem 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid var(--rule);
}
.cg-card dt { font: 600 1rem/1.45 var(--narrow); }
.is-sample .cg-card { border-top-style: dashed; }
.is-sample .cg-card > div { border-bottom-style: dashed; }
.cg-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.cg-roster li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cg-roster a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  height: 100%;
  min-height: clamp(6.5rem, 10vw, 8.5rem);
  padding: clamp(.8rem, 1.4vw, 1.2rem);
  text-decoration: none;
  font: 650 clamp(1.3rem, 2vw, 1.95rem)/1.02 var(--narrow);
  letter-spacing: -.025em;
}
.cg-roster .cg-icon { align-self: flex-end; width: .7em; height: .7em; }
.cg-roster-role { display: block; margin-top: -.9rem; color: var(--muted); font: 400 .92rem/1.35 var(--text); letter-spacing: 0; }
.cg-search-form label { display: block; margin-bottom: .55rem; font: 600 1.04rem/1.3 var(--narrow); }
.cg-search-field { display: flex; border: 1px solid var(--ink); background: var(--field); }
.cg-search-field:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.cg-search-field input {
  flex: 1;
  min-width: 0;
  padding: .85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.1rem/1.3 var(--text);
  outline: none;
}
.cg-search-field input::placeholder { color: var(--muted); opacity: 1; }
.cg-search-field input::-webkit-search-cancel-button { filter: grayscale(1); }
.cg-search-field .cg-button { border-width: 0 0 0 1px; }

/* Inner pages ---------------------------------------------------------------------------- */
.cg-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pad);
  row-gap: 1.1rem;
  align-items: end;
  padding: clamp(2.2rem, 5.6vw, 5.6rem) 0 clamp(1.6rem, 3.4vw, 3.2rem);
}
.cg-head h1 {
  grid-column: 1 / span 7;
  font: 700 clamp(2.85rem, 7.2vw, 6rem)/.9 var(--narrow);
  letter-spacing: -.045em;
  margin-left: -.03em;
}
.cg-lead { grid-column: 8 / -1; max-width: 42ch; font: 400 clamp(1.1rem, 1.5vw, 1.34rem)/1.42 var(--text); }
.cg-head-article h1 { grid-column: 1 / span 10; font-size: clamp(2.05rem, 4.8vw, 4.5rem); line-height: .96; }
.cg-head-article .cg-lead { grid-column: 1 / -1; max-width: none; color: var(--muted); font-family: var(--narrow); font-weight: 500; }
.cg-head-article .cg-lead span + span::before { content: "· "; }
.cg-head-person .cg-lead { grid-column: 1 / -1; color: var(--muted); }
.cg-head-figure { grid-column: 9 / -1; align-self: end; }
.cg-head-search { align-items: end; padding-bottom: clamp(1.4rem, 2.6vw, 2.4rem); }
.cg-prose { grid-column: 1 / span 7; max-width: 60ch; }
.cg-prose p + p { margin-top: 1em; }
.cg-prose > p:first-child { font-size: clamp(1.12rem, 1.4vw, 1.25rem); line-height: 1.5; }
.cg-prose-long > p:first-child { font-size: inherit; line-height: inherit; }

/* Legal pages: one reading column, each section under a heading the size of the side columns'. */
.cg-prose.cg-legal h2 { margin: 0 0 .6rem; font: 650 1.4rem/1.1 var(--narrow); letter-spacing: -.02em; }
.cg-legal section + section { margin-top: clamp(1.9rem, 3vw, 2.6rem); }
.cg-legal :is(p, ul) + :is(p, ul) { margin-top: 1em; }
.cg-legal .cg-legal-list { padding-left: 1.15em; list-style: disc; }
.cg-legal .cg-legal-list li + li { margin-top: .35em; }
.cg-legal-stand { margin-top: clamp(2.2rem, 4vw, 3.2rem); color: var(--muted); font: 500 .95rem/1.4 var(--narrow); }
.cg-note { color: var(--muted); max-width: 56ch; }
.cg-side { grid-column: 9 / -1; display: grid; align-content: start; gap: 2.2rem; }
.cg-side h2 { margin-bottom: .75rem; font: 650 1.4rem/1.1 var(--narrow); letter-spacing: -.02em; }
.cg-side .cg-links { margin-top: 0; flex-direction: column; }
.cg-names li { padding-block: .5rem; border-top: 1px solid var(--rule); font: 600 1.12rem/1.3 var(--narrow); }
.cg-names li:last-child { border-bottom: 1px solid var(--rule); }
.cg-names a { text-decoration: none; }
.cg-names a:hover { text-decoration: underline; }
.cg-chronicle > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; padding-block: .55rem; border-block: 1px solid var(--rule); }
.cg-chronicle dt { font: 650 1.12rem/1.3 var(--narrow); font-variant-numeric: tabular-nums; }
.cg-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.cg-cells li {
  min-height: 4.9rem;
  padding: .85rem .95rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font: 600 clamp(1.15rem, 1.55vw, 1.42rem)/1.1 var(--narrow);
  letter-spacing: -.015em;
  hyphens: auto;
}
.cg-plate .cg-figure { grid-column: 1 / span 8; }

/* Lists of records: date and kind in the margin column, the title and summary beside them. */
.cg-records { border-top: 1px solid var(--ink); }
.cg-record {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pad);
  padding-block: clamp(1.15rem, 2.4vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
}
.cg-record-main { grid-column: 4 / -1; grid-row: 1; }
.cg-record-meta { grid-column: 1 / span 3; grid-row: 1; display: flex; flex-direction: column; padding-top: .2rem; }
.cg-record :is(h2, h3, h4) { max-width: 30ch; font: 650 clamp(1.4rem, 2.15vw, 2.05rem)/1.05 var(--narrow); letter-spacing: -.025em; hyphens: auto; }
.cg-record :is(h2, h3, h4) a { text-decoration: none; }
.cg-record :is(h2, h3, h4) a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cg-record-main > p { margin-top: .55rem; max-width: 64ch; }
.cg-record-by { color: var(--muted); }
.cg-record-links { margin-top: .8rem; font: 500 1rem/1.4 var(--narrow); }
.cg-record-links > span:first-child { font-weight: 650; }
.cg-group + .cg-group { margin-top: 2rem; }
/* Linked lists on profiles and project pages: compact entries, a smaller title, no summary. */
.cg-group .cg-record { padding-block: .85rem; }
.cg-group .cg-record h4 { max-width: 46ch; font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.18; letter-spacing: -.012em; }
.cg-group .cg-record-by { margin-top: .25rem; font-size: .95rem; }
.cg-group .cg-record-meta { font-size: .92rem; }
.cg-group > h3 { margin-bottom: .8rem; font: 650 1.3rem/1.1 var(--narrow); }
.cg-group .cg-record { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.cg-group .cg-record-main { grid-column: 2; }
.cg-group .cg-record-meta { grid-column: 1; }
.cg-group .cg-records { border-top-color: var(--rule); }

/* An empty page: six vacant panels, what will fill them, and how to propose something. */
.cg-empty {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pad);
  row-gap: 1.6rem;
  padding-block: var(--row);
  border-top: 1px solid var(--ink);
}
.cg-vacant {
  grid-column: 1 / span 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  aspect-ratio: 3 / 2;
  border-top: 1px dashed var(--muted);
  border-left: 1px dashed var(--muted);
}
.cg-vacant span { border-right: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
.cg-empty-text { grid-column: 5 / -1; }
.cg-empty-text p { margin: .9rem 0 1.5rem; max-width: 54ch; font-size: clamp(1.06rem, 1.3vw, 1.18rem); }

/* Forschung: the four focus areas. */
.cg-jump { border-top: 1px solid var(--ink); }
.cg-jump ul { display: flex; flex-wrap: wrap; gap: .3rem clamp(1rem, 2.4vw, 2.2rem); padding-block: .9rem; }
.cg-jump a { font: 600 1.06rem/1.3 var(--narrow); text-decoration: none; }
.cg-theme { scroll-margin-top: 1rem; }
/* The home page's photograph when no event is coming up: it fills the slot, cropped to 4:3. */
.cg-still { display: flex; flex-direction: column; }
.cg-still-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* A focus area's works: the newest few, the rest behind "Alle n anzeigen". */
.cg-theme-list { margin-top: 1.6rem; }
.cg-theme-list h3 { margin-bottom: .35rem; font: 650 1.05rem/1.2 var(--narrow); }
.cg-theme-works { border-top: 1px solid var(--rule); }
.cg-theme-works li { padding: .5rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; line-height: 1.35; }
.cg-theme-works a { text-decoration: none; }
.cg-theme-works a:hover { text-decoration: underline; }
.cg-theme-meta { display: block; margin-top: .1rem; color: var(--muted); font: 500 .86rem/1.3 var(--narrow); }
.cg-theme-more summary { display: inline-flex; margin-top: .7rem; font: 600 1rem/1.3 var(--narrow); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; list-style: none; }
.cg-theme-more summary::-webkit-details-marker { display: none; }
.cg-theme-more summary::after { content: "↓"; margin-left: .3em; }
.cg-theme-more[open] summary { display: none; }
.cg-theme h2 { grid-column: 1 / span 4; font-size: clamp(1.85rem, 3.4vw, 3.3rem); line-height: .96; }
.cg-theme-text { grid-column: 5 / -1; max-width: 62ch; }
.cg-theme.has-figure .cg-theme-text { grid-column: 5 / span 4; }
.cg-theme-figure { grid-column: 9 / -1; }
.cg-theme-lead { font-size: clamp(1.14rem, 1.55vw, 1.38rem); line-height: 1.42; }
.cg-theme-text > p + p { margin-top: .9rem; }
.cg-theme:target h2 { background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 100% / 100% .28em; }

/* Veranstaltungen */
.cg-event-row .cg-event-title { font-size: clamp(1.75rem, 3vw, 2.8rem); }
.cg-event-row .cg-card { margin-top: 0; }
.cg-event-row .cg-record-links { margin-top: 1rem; }

/* Über uns */
.cg-quad > .cg-module { grid-column: span 3; padding-block: var(--row); position: relative; }
.cg-quad > .cg-module + .cg-module::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(var(--pad) / -2);
  border-left: 1px solid var(--ink);
}
.cg-quad h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
.cg-quad .cg-module > h2 { margin-bottom: .8rem; }
.cg-quad p:not(.cg-links) { max-width: 36ch; }
.cg-address { font-family: var(--narrow); font-weight: 650; overflow-wrap: anywhere; }
.cg-join-fields { grid-column: 1 / span 4; }
.cg-join-fields h2, .cg-form h2 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.cg-join-fields h2 { margin-bottom: 1.1rem; }
.cg-join-fields .cg-cells { grid-template-columns: 1fr; }
.cg-join-fields .cg-cells li { min-height: 0; padding-block: .7rem; }
/* Boxes that can be ticked: the whole cell is the control; a square shows it can be chosen. */
.cg-choices-hint { margin: -.4rem 0 .9rem; color: var(--muted); font-size: .95rem; }
.cg-join-fields .cg-choices li { padding: 0; }
.cg-choices label { display: flex; align-items: center; gap: .6rem; height: 100%; padding: .7rem .95rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cg-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-choices span { display: flex; align-items: center; gap: .6rem; }
.cg-choices span::before {
  content: ""; flex: none; width: .95rem; height: .95rem; border: 1.5px solid currentColor;
  background: center / .7rem no-repeat;
}
.cg-choices label:hover { background: var(--field); }
.cg-choices label:has(input:checked) { background: var(--signal); color: var(--ground); }
.cg-choices input:checked + span::before {
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f5aa6' stroke-width='2.4'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
  border-color: var(--ground);
}
.cg-choices label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -4px; }
.cg-choices.is-invalid { outline: 2px solid var(--error); outline-offset: 3px; }
.cg-form {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem var(--pad);
  align-content: start;
}
.cg-form h2 { grid-column: 1 / -1; }
.cg-wide { grid-column: 1 / -1; }
.cg-form label > span { display: block; margin-bottom: .45rem; font: 600 1.04rem/1.3 var(--narrow); }
.cg-form :is(input, select, textarea) {
  width: 100%;
  padding: .78rem .9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 1.06rem/1.4 var(--text);
}
.cg-form textarea { resize: vertical; min-height: 9rem; }
.cg-form select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23151a2c' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 1rem;
}
.cg-form :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.cg-form :is(input, textarea):user-invalid { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.cg-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.cg-form-actions p, .cg-direct { color: var(--muted); font-size: .95rem; }
.cg-form-status:empty { display: none; }
.cg-form-note { max-width: 60ch; color: var(--muted); font-size: .95rem; }
.cg-form-status { padding: .9rem 1rem; background: var(--signal); color: var(--ground); }
.cg-form-status strong { display: block; margin-bottom: .15rem; font: 650 1.12rem/1.3 var(--narrow); }
.cg-form-status a { color: inherit; font-family: var(--narrow); font-weight: 650; overflow-wrap: anywhere; }
.cg-form-status.is-error { background: var(--field); color: var(--error); box-shadow: inset 0 0 0 2px var(--error); }
.cg-form[aria-busy] button[type=submit] { cursor: progress; opacity: .72; }

/* Search */
.cg-search-head { padding-block: var(--row); }
.cg-search-head > form { grid-column: 1 / span 8; }
.cg-search-head > .cg-search-status { grid-column: 9 / -1; align-self: end; padding-bottom: .9rem; font: 500 1.04rem/1.35 var(--narrow); }
.cg-search-status span:first-child:not(:only-child) { font-weight: 700; }
.cg-search-status span + span::before { content: "· "; }
.cg-hit[hidden] { display: none; }
.cg-hits .cg-record { padding-block: clamp(.85rem, 1.5vw, 1.25rem); }
.cg-hits .cg-record h2 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); }
.cg-hits .cg-record-main > p { margin-top: .3rem; color: var(--muted); }
.cg-search.is-empty .cg-hits { border-top-style: dashed; }

/* Footer: the newsletter block, then the network's name, its addresses and the colophon. */
.cg-footer {
  margin-top: clamp(1.5rem, 3.5vw, 3rem);
  padding-bottom: 2.5rem;
}

/* Newsletter: a second blue block on every page, closing it as the title block opens the home
   page, in the same blue, padding and type. Light type only on the blue. The field and its button
   are panels set into the blue with a hairline joint between them; a wrong address and the
   written email each join one more pale panel underneath. */
.cg-newsletter {
  --on-signal-quiet: #dfe5e8; /* ground with a tenth of the blue in it: 5.4:1 on the blue */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pad);
  row-gap: clamp(.9rem, 2.2vw, 1.8rem);
  margin-bottom: clamp(1.1rem, 2vw, 1.6rem);
  padding: clamp(1.4rem, 3.8vw, 3.6rem) var(--pad) clamp(1.5rem, 3.4vw, 3.2rem);
  background: var(--signal);
  color: var(--ground);
  scroll-margin-top: 1rem;
}
.cg-newsletter ::selection { background: var(--ground); color: var(--signal); }
.cg-newsletter :is(input, .cg-newsletter-error, .cg-newsletter-sent)::selection,
.cg-newsletter :is(.cg-newsletter-error, .cg-newsletter-sent) ::selection { background: var(--signal); color: var(--ground); }
/* The name on the first row; the text and the form share the second, on one baseline, so a panel
   that joins under the field grows the block downward and moves nothing above it. */
.cg-newsletter-head { display: contents; }
.cg-newsletter h2 {
  grid-column: 1 / span 6;
  font: 720 clamp(2.3rem, 5.6vw, 4.6rem)/.88 var(--narrow);
  letter-spacing: -.045em;
  margin-left: -.035em;
}
.cg-newsletter-head p {
  grid-column: 1 / span 6;
  grid-row: 2;
  align-self: baseline;
  max-width: 32ch;
  font: 400 clamp(1.1rem, 1.5vw, 1.34rem)/1.38 var(--text);
}
.cg-newsletter form { grid-column: 7 / -1; grid-row: 2; align-self: baseline; }
.cg-newsletter label { display: block; margin-bottom: .6rem; font: 600 1.04rem/1.3 var(--narrow); }
.cg-newsletter-field { display: flex; flex-wrap: wrap; gap: 1px; }
.cg-newsletter-field input {
  flex: 999 1 11rem;
  min-width: 0;
  padding: .95rem 1rem;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: 400 1.1rem/1.3 var(--text);
  outline: none;
}
.cg-newsletter-field input:autofill { -webkit-text-fill-color: var(--ink); box-shadow: inset 0 0 0 100vmax var(--field); }
.cg-newsletter-field .cg-button { flex: 1 0 auto; justify-content: center; border: 0; padding-inline: 1.25rem; }
.cg-newsletter-field .cg-button:hover { background: var(--field); color: var(--ink); }
/* Focus: the edition's ink ring would vanish on the blue (2.5:1), so here it is drawn in the ground. */
.cg-newsletter-field:has(input:focus-visible) { outline: 2px solid var(--ground); outline-offset: 3px; }
.common-ground .cg-newsletter-field button[type=submit]:focus-visible { outline-color: var(--ground); }
.cg-newsletter-note { margin-top: .75rem; color: var(--on-signal-quiet); font-size: .95rem; }

/* A wrong or missing address: the field takes a red frame and a panel says what is wrong. */
.is-invalid .cg-newsletter-field input { box-shadow: inset 0 0 0 2px var(--error); }
.is-invalid .cg-newsletter-field input:autofill { box-shadow: inset 0 0 0 2px var(--error), inset 0 0 0 100vmax var(--field); }
/* Both panels: pale, joined under the field by a hairline of the blue, a drawn mark before the words.
   The error says what is wrong; the written email says what happens next, and where to write if nothing does. */
.cg-newsletter :is(.cg-newsletter-error, .cg-newsletter-sent):not(:empty) {
  display: flex;
  gap: .75rem;
  margin-top: 1px;
  padding: .85rem 1rem .9rem;
  background: var(--field);
  font-size: .98rem;
  line-height: 1.45;
}
.cg-newsletter-error { color: var(--error); }
.cg-newsletter-sent { color: var(--ink); }
.cg-newsletter form[aria-busy] button[type=submit] { cursor: progress; opacity: .72; }
.cg-newsletter :is(.cg-newsletter-error, .cg-newsletter-sent):not(:empty)::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .1rem;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.cg-newsletter-error {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M8 4.6v4.2M8 10.9v.5'/%3E%3C/svg%3E");
}
.cg-newsletter-sent {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M1.8 3.6h12.4v8.8H1.8z'/%3E%3Cpath d='M2.4 4.2L8 8.8l5.6-4.6'/%3E%3C/svg%3E");
}
.cg-newsletter-sent strong { display: block; margin-bottom: .15rem; font: 650 1.12rem/1.3 var(--narrow); }
.cg-newsletter-sent a { font-family: var(--narrow); font-weight: 650; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .cg-newsletter :is(.cg-newsletter-error, .cg-newsletter-sent):not(:empty) { animation: cg-panel 420ms var(--ease) both; }
}
@keyframes cg-panel {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-.35rem); }
  to { clip-path: inset(0); transform: none; }
}

.cg-footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .8rem 2rem; }
.cg-footer-name { display: grid; font: 700 1.2rem/1.15 var(--narrow); text-decoration: none; }
.cg-footer-name span + span { font-weight: 450; }
.cg-footer nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; font: 600 1.02rem/1.3 var(--narrow); }
.cg-colophon { margin-top: 1.4rem; max-width: 82ch; color: var(--muted); font-size: .86rem; }

/* Narrower screens ----------------------------------------------------------------------- */
@media (max-width: 70rem) {
  .cg-mast-bar { grid-template-columns: auto 1fr auto auto; grid-template-areas: "sign . cta lang" "nav nav nav nav"; }
  .cg-nav ul { justify-content: flex-start; margin-left: calc(clamp(.55rem, .9vw, .85rem) * -1); }
  .cg-quad > .cg-module { grid-column: span 6; }
  .cg-quad > .cg-module:nth-child(3) { border-top: 1px solid var(--ink); }
  .cg-quad > .cg-module:nth-child(4) { border-top: 1px solid var(--ink); }
  .cg-quad > .cg-module:nth-child(3)::before { display: none; }
}
@media (max-width: 56rem) {
  .cg-split > :first-child, .cg-split > :last-child, .cg-head h1, .cg-lead, .cg-prose, .cg-side,
  .cg-study > .cg-evidence, .cg-study > .cg-focus, .cg-pair > .cg-module, .cg-theme h2, .cg-theme-text, .cg-theme.has-figure .cg-theme-text,
  .cg-theme-figure, .cg-join-fields, .cg-form, .cg-plate .cg-figure, .cg-search-head > form, .cg-search-head > .cg-search-status, .cg-empty-text,
  .cg-newsletter h2, .cg-newsletter-head p, .cg-newsletter form {
    grid-column: 1 / -1;
  }
  .cg-split > :last-child, .cg-theme-text, .cg-theme-figure { margin-top: 1.1rem; }
  .cg-side { margin-top: 2.4rem; }
  .cg-newsletter form { grid-row: 3; margin-top: .9rem; }
  .cg-head-figure { display: none; }
  .cg-study > .cg-evidence { padding-bottom: 0; }
  .cg-pair > .cg-module + .cg-module { border-top: 1px solid var(--ink); }
  .cg-study > .cg-focus::before, .cg-pair > .cg-module + .cg-module::before { display: none; }
  .cg-join-fields .cg-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cg-form { margin-top: 2.4rem; }
  .cg-search-head > .cg-search-status { padding: 1rem 0 0; }
  .cg-vacant { grid-column: 1 / span 6; }
  .cg-record-main { grid-column: 1 / -1; }
  .cg-record-meta { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; column-gap: .9rem; padding-top: .7rem; }
  .cg-group .cg-record { grid-template-columns: 1fr; }
  .cg-group .cg-record-main, .cg-group .cg-record-meta { grid-column: 1; }
}
/* Phones: the language switch shrinks to its code, so the name keeps to two lines. */
@media (max-width: 30rem) {
  .cg-lang-long { display: none; }
  .cg-lang-short { display: inline; }
}
@media (max-width: 23rem) {
  .common-ground .cg-cta { padding: 0 .5rem; font-size: .84rem; }
}
/* The smallest phones: the name takes its own row, under the button and the switch. */
@media (max-width: 21.5rem) {
  .common-ground .cg-mast-bar { grid-template-columns: 1fr auto auto; grid-template-areas: ". cta lang" "sign sign sign" "nav nav nav"; }
  .common-ground .cg-sign { font-size: .9rem; }
}
@media (max-width: 40rem) {
  /* Phones: the name, then the call to action and the language switch, in one row; the menu below. */
  .cg-mast-bar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "sign cta lang" "nav nav nav"; column-gap: .5rem; row-gap: .8rem; border-bottom: 0; }
  .cg-cta { height: 2.3rem; padding: 0 .6rem; font-size: .88rem; }
  .cg-lang { height: 2.3rem; padding: 0 .6rem; font-size: .88rem; }
  .cg-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
  }
  /* Cells as wide as their words, growing to fill each row, so no section name is hyphenated
     and no row ends on an empty cell. */
  .cg-nav li { flex: 1 1 auto; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .cg-nav a { hyphens: none; white-space: nowrap; }
  .cg-nav a { padding: .78rem .55rem; font-size: .98rem; }
  /* The name keeps to two lines: its second line does not wrap, and the type scales with the screen. */
  .cg-sign { font-size: clamp(.8rem, 3.55vw, .95rem); }
  .cg-sign-b { white-space: nowrap; }
  .cg-subnav ul { column-gap: 1.1rem; }
  .cg-subnav a { padding-block: .7rem .6rem; }
  .cg-hero, .cg-newsletter { padding-inline: 1rem; }
  .cg-quad > .cg-module { grid-column: 1 / -1; }
  .cg-quad > .cg-module + .cg-module { border-top: 1px solid var(--ink); }
  .cg-quad > .cg-module + .cg-module::before { display: none; }
  .cg-roster, .cg-cells, .cg-join-fields .cg-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-cells li { min-height: 3.9rem; font-size: 1.12rem; }
  .cg-vacant { grid-column: 1 / span 6; }
  .cg-form { grid-template-columns: 1fr; }
  .cg-search-field { flex-wrap: wrap; }
  .cg-search-form .cg-search-field .cg-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cg-card > div { grid-template-columns: 1fr; }
  .cg-footer-main { flex-direction: column; }
}
