/* ============================================================================
   Greek Theater Festival Berlin — Networking page
   ----------------------------------------------------------------------------
   The Accessibility page's look (access.css), which is not loaded here: the
   same tokens on the page's own scope, never :root; every selector prefixed,
   no bare element selectors, so Divi's rules and these do not meet.
   Montserrat is already enqueued by the theme.

   Divi pads every <p> and heading underneath and gives lists their markers
   and padding; the resets below say 0 for each, once, so the layout's gaps
   are the only spacing.
   ============================================================================ */

.gtfb-net {
  --gtfb-ink: #161513;
  --gtfb-bg: #f6f4ef;
  --gtfb-white: #ffffff;
  --gtfb-sand: #ece8e0;
  --gtfb-accent: #a84a2a;
  --gtfb-text-secondary: #5f5a52;
  --gtfb-divider: #d9d4ca;
  --gtfb-ondark-body: #dcd6cb;
  --gtfb-ondark-secondary: #c9c3b8;
  --gtfb-ondark-divider: #3a3833;

  --gtfb-font: 'Montserrat', Helvetica, Arial, sans-serif;
  /* The content column is the header's, as on the Accessibility page:
     10% of the page each side, at most 1080px between (access.css says
     why `cqw`). */
  --gtfb-pad: 10cqw;
  --gtfb-maxw: calc(1080px + 2 * var(--gtfb-pad));
  container-type: inline-size;
  --gtfb-section-y: clamp(56px, 7vw, 96px);
  --gtfb-pill: 999px;
  --gtfb-ease: .3s ease;
  --gtfb-focus: var(--gtfb-accent);

  font-family: var(--gtfb-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--gtfb-ink);
  background: var(--gtfb-bg);
  -webkit-font-smoothing: antialiased;
}

.gtfb-net *,
.gtfb-net *::before,
.gtfb-net *::after {
  box-sizing: border-box;
}

.gtfb-net p,
.gtfb-net h1,
.gtfb-net h2,
.gtfb-net h3,
.gtfb-net dl,
.gtfb-net dt,
.gtfb-net dd {
  margin: 0;
  padding: 0;
}

.gtfb-net a {
  color: inherit;
}

.gtfb-net :focus-visible {
  outline: 2px solid var(--gtfb-focus);
  outline-offset: 3px;
}

.gtfb-net__shell {
  max-width: var(--gtfb-maxw);
  margin-inline: auto;
  padding-inline: var(--gtfb-pad);
}

/* Visible to a screen reader, not to the eye. */
.gtfb-net .gtfb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Headings -------------------------------------------------------------- */
.gtfb-net__title {
  max-width: 14em;
  font-family: var(--gtfb-font);
  font-weight: 800;
  font-size: clamp(28px, 7.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: inherit;
}

/* The left column's headings: the Accessibility page's (.gtfb-access__h). */
.gtfb-net__h {
  font-family: var(--gtfb-font);
  font-weight: 800;
  font-size: min(34px, 7cqw);
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: anywhere;
  color: inherit;
}

/* --- Intro ----------------------------------------------------------------- */
.gtfb-net__intro .gtfb-net__shell {
  display: grid;
  gap: 28px;
  padding-block: clamp(30px, 6vw, 90px) clamp(40px, 5vw, 64px);
}

.gtfb-net__eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gtfb-text-secondary);
}

.gtfb-net__lede {
  max-width: 760px;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--gtfb-ink);
  text-wrap: pretty;
}

/* --- At a glance (black band) ---------------------------------------------- */
.gtfb-net__facts {
  --gtfb-focus: var(--gtfb-white);
  background: var(--gtfb-ink);
  color: var(--gtfb-white);
}

.gtfb-net__facts > .gtfb-net__shell {
  padding-block: var(--gtfb-section-y);
}

.gtfb-net__facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
  width: 100%;
}

.gtfb-net__facts-list > div {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 14px;
  border-top: 2px solid var(--gtfb-white);
}

.gtfb-net__facts-list dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gtfb-ondark-secondary);
}

.gtfb-net__facts-list dd {
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
}

@media (max-width: 980px) {
  .gtfb-net__facts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .gtfb-net__facts-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Topics: heading left, text right -------------------------------------- */
.gtfb-net__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px 80px;
  padding-block: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--gtfb-divider);
}

.gtfb-net__row:first-child {
  border-top: 0;
}

.gtfb-net__row-body,
.gtfb-net__apply-body {
  display: grid;
  align-content: start;
  gap: 20px;
  max-width: 760px;
}

.gtfb-net__row-body p,
.gtfb-net__apply-body p {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.gtfb-net__row-body em {
  font-style: italic;
}

/* --- The host --------------------------------------------------------------
   As the writer on the Workshop page (workshop.css): his name in the left
   column, as a topic's heading, and his photo under it, uncropped; left out
   while there is no file (template.php). */
.gtfb-net__person-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.gtfb-net__photo {
  margin: 0;
  max-width: 320px;
}

.gtfb-net__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--gtfb-sand);
}

@media (max-width: 767px) {
  .gtfb-net__photo {
    max-width: 240px;
  }
}

/* --- The application (white) -----------------------------------------------
   White, as the Accessibility page's contact section: the site's footer opens
   with the blue Newsletter band right under it. */
.gtfb-net__apply {
  background: var(--gtfb-white);
  color: var(--gtfb-ink);
  /* A link to #gtfb-net-apply lands the heading below the pinned header
     (102px, 86px, 66px by width), as on the Accessibility page. */
  scroll-margin-top: 126px;
}

@media (max-width: 980px) {
  .gtfb-net__apply {
    scroll-margin-top: 110px;
  }
}

@media (max-width: 767px) {
  .gtfb-net__apply {
    scroll-margin-top: 90px;
  }
}

.gtfb-net__apply > .gtfb-net__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 80px;
  padding-block: clamp(48px, 6vw, 80px);
}

@media (max-width: 767px) {
  .gtfb-net__row,
  .gtfb-net__apply > .gtfb-net__shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gtfb-net__apply-body {
  gap: 24px;
}

.gtfb-net__apply-body strong {
  font-weight: 700;
}

.gtfb-net__mail {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.gtfb-net__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gtfb-ink);
}

.gtfb-net__mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* The address is long; 32px at most keeps it on one line beside the copy
   button in the 2/3 column on a laptop. */
.gtfb-net__mail-addr {
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 32px);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.gtfb-net a.gtfb-net__mail-addr:hover {
  color: var(--gtfb-ink);
  text-decoration-thickness: 4px;
}

/* "Show email address": the address is put together only when this is
   pressed (template.php says why). Like the copy button, drawn only when the
   script can make it work; without it, the address with [at] stands in. */
.gtfb-net__reveal {
  display: none;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 14px 28px;
  border: 2px solid var(--gtfb-ink);
  border-radius: var(--gtfb-pill);
  background: var(--gtfb-ink);
  color: var(--gtfb-white);
  font: 700 14px/1.2 var(--gtfb-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--gtfb-ease), color var(--gtfb-ease);
}

.gtfb-net--js .gtfb-net__reveal {
  display: inline-flex;
}

.gtfb-net__reveal:hover {
  background: transparent;
  color: var(--gtfb-ink);
}

/* The link and the copy button wait, hidden, until the address is asked
   for; `hidden` has to win over the display the rules above give them. */
.gtfb-net .gtfb-net__mail-row [hidden] {
  display: none !important;
}

/* It swaps its own label, so it keeps one width (access.css). Shown only
   when networking.js can make it work. */
.gtfb-net__copy {
  display: none;
  min-width: 13em;
  margin: 0;
  font: 500 13px/1 var(--gtfb-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--gtfb-pill);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--gtfb-ease), color var(--gtfb-ease);
}

.gtfb-net--js .gtfb-net__copy {
  display: inline-block;
}

.gtfb-net__copy:hover {
  background: var(--gtfb-ink);
  border-color: var(--gtfb-ink);
  color: var(--gtfb-white);
}

/* "This one is important": set apart, with the festival's accent. */
.gtfb-net__important {
  display: grid;
  gap: 12px;
  margin-block: 8px;
  padding: clamp(20px, 2.5vw, 32px);
  border-left: 4px solid var(--gtfb-accent);
  border-radius: 0 20px 20px 0;
  background: var(--gtfb-bg);
}

.gtfb-net__important-h {
  font-family: var(--gtfb-font);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gtfb-accent);
}

.gtfb-net .gtfb-net__free {
  font-weight: 700;
}

.gtfb-net .gtfb-net__host {
  font-size: 15px;
  color: var(--gtfb-text-secondary);
}

/* --- Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html:has(.gtfb-net) {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtfb-net *,
  .gtfb-net *::before,
  .gtfb-net *::after {
    transition-duration: 0s !important;
  }
}
