/* ============================================================================
   Greek Theater Festival Berlin — Accessibility page
   ----------------------------------------------------------------------------
   From design-accessibility/accessibility.src.html. Same tokens as the
   Programme page (programme.css), on the page's own scope, never :root; every
   selector is 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 <ol> a decimal marker
   and padding; the resets below say 0 for each, once, so the layout's gaps
   are the only spacing.
   ============================================================================ */

.gtfb-access {
  --gtfb-ink: #161513;
  --gtfb-bg: #f6f4ef;
  --gtfb-white: #ffffff;
  --gtfb-sand: #ece8e0;
  --gtfb-blue: #0041fa;
  --gtfb-accent: #a84a2a;
  --gtfb-text-secondary: #5f5a52;
  --gtfb-text-tertiary: #6e685e;
  --gtfb-divider: #d9d4ca;
  --gtfb-ondark-body: #dcd6cb;
  --gtfb-ondark-secondary: #c9c3b8;
  --gtfb-ph-dark: #2a2825;

  --gtfb-font: 'Montserrat', Helvetica, Arial, sans-serif;
  /* The content column is the header's: Divi's rows are 80% of the page,
     at most 1080px. So the side padding is 10% of the page, and the column
     at most 1080px plus that padding. `cqw` is measured on this scope (a
     size container, below), which is the page's full width without the
     scrollbar, exactly what Divi's 80% is a share of; and it stays the same
     on the nested elements that pull a band out to the edge with
     calc(-1 * pad). */
  --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-access *,
.gtfb-access *::before,
.gtfb-access *::after {
  box-sizing: border-box;
}

.gtfb-access p,
.gtfb-access h1,
.gtfb-access h2,
.gtfb-access h3,
.gtfb-access ol,
.gtfb-access figure {
  margin: 0;
  padding: 0;
}

.gtfb-access a {
  color: inherit;
}

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

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

/* Visible to a screen reader, not to the eye. The same rule as programme.css,
   which is not loaded here. */
.gtfb-access .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-access__title {
  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;
  hyphens: auto;
  /* «Barrierefreiheit» and «Προσβασιμότητα» are single long words; `anywhere`
     is what lets the browser count a break when it measures the grid, so the
     word never pushes the page wider than a phone (programme.css explains). */
  overflow-wrap: anywhere;
  color: inherit;
}

/* The left column's headings: 34px, as on a play's page (.gtfb-prod__h2),
   and on a phone no more than 7% of the page, which keeps «Επικοινωνία» and
   the rest on one line in the 80% column. */
.gtfb-access__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-access__intro .gtfb-access__shell {
  display: grid;
  gap: 28px;
  padding-block: clamp(30px, 6vw, 90px) clamp(40px, 5vw, 64px);
}

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

/* The Programme page's note under its lede (.gtfb-prog__lede-note). */
.gtfb-access__lede {
  max-width: 720px;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--gtfb-text-secondary);
  text-wrap: pretty;
}

/* --- Venue tabs: two big buttons, one per venue ---------------------------
   Drawn only once access.js can run them (the template's inline line adds
   .gtfb-access--js). Without it both venues are shown, one after the other. */
.gtfb-access__tabs {
  display: none;
}

.gtfb-access--js .gtfb-access__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gtfb-access__tab {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 4px;
  min-height: 84px;
  margin: 0;
  padding: 18px 32px;
  border: 2px solid var(--gtfb-ink);
  border-radius: var(--gtfb-pill);
  background: transparent;
  color: var(--gtfb-ink);
  font-family: var(--gtfb-font);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--gtfb-ease), color var(--gtfb-ease);
}

.gtfb-access__tab-name {
  font-weight: 800;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.15;
  text-transform: uppercase;
}

.gtfb-access__tab-sub {
  font-size: 14px;
  line-height: 1.3;
  color: var(--gtfb-text-secondary);
  transition: color var(--gtfb-ease);
}

.gtfb-access__tab:hover {
  background: var(--gtfb-sand);
}

.gtfb-access__tab[aria-selected="true"] {
  background: var(--gtfb-ink);
  color: var(--gtfb-white);
}

.gtfb-access__tab[aria-selected="true"] .gtfb-access__tab-sub {
  color: var(--gtfb-ondark-secondary);
}

@media (max-width: 599px) {
  .gtfb-access--js .gtfb-access__tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .gtfb-access__tab {
    min-height: 72px;
    padding: 14px 24px;
  }
}

/* With the tabs, only the selected venue. */
.gtfb-access--js .gtfb-access__panel:not(.is-active) {
  display: none;
}

/* --- Entrance: the route in photos (black band) ---------------------------- */
.gtfb-access__route {
  --gtfb-focus: var(--gtfb-white);
  background: var(--gtfb-ink);
  color: var(--gtfb-white);
}

.gtfb-access__route > .gtfb-access__shell {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  padding-block: var(--gtfb-section-y);
}

.gtfb-access__route-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px 80px;
}

.gtfb-access__route-text {
  display: grid;
  gap: 16px;
  grid-column: span 2;
  max-width: 760px;
}

@media (max-width: 680px) {
  .gtfb-access__route-text {
    grid-column: auto;
  }
}

.gtfb-access__route-text p {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--gtfb-ondark-body);
  text-wrap: pretty;
}

.gtfb-access__route-text p.gtfb-access__ask {
  font-size: 16px;
  color: var(--gtfb-ondark-secondary);
}

.gtfb-access__ask a {
  color: var(--gtfb-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gtfb-access__photos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gtfb-access__photos figure {
  display: grid;
  gap: 14px;
}

/* Tall, as the design showed them: 800px at every width. The column is
   narrower than the 750×1000 files, so the sides are cropped and the middle
   of the route — the passage, the ramp — stays. (The design's CSS says 3/4,
   but its <img height="1000"> won over it, and tall photos are what was
   approved; 800px was then chosen over the design's 1000.) */
.gtfb-access__photos img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 800px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--gtfb-ph-dark);
}

.gtfb-access__photos figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
  color: var(--gtfb-ondark-body);
}

.gtfb-access__step {
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--gtfb-white);
  border-top: 2px solid var(--gtfb-white);
  padding-top: 4px;
}

/* Phones: the three photos stay one route, swiped left to right. */
@media (max-width: 767px) {
  .gtfb-access__photos {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .gtfb-access__photos li {
    scroll-snap-align: start;
  }

  /* A photo taller than the screen could not be seen whole while swiping:
     at most three quarters of the screen's height. */
  .gtfb-access__photos img {
    height: min(800px, 75svh);
  }
}

/* --- Details: heading left, text right ------------------------------------- */
.gtfb-access__rows {
  background: var(--gtfb-bg);
}

.gtfb-access__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-access__row:first-child {
  border-top: 0;
}

.gtfb-access__row-head {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.gtfb-access__row-body {
  max-width: 900px;
}

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

/* "Booking needed": a button down to the contact section. */
.gtfb-access__book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid var(--gtfb-accent);
  border-radius: var(--gtfb-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--gtfb-ease), color var(--gtfb-ease);
}

.gtfb-access a.gtfb-access__book {
  color: var(--gtfb-accent);
}

.gtfb-access__book svg {
  flex: none;
}

.gtfb-access a.gtfb-access__book:hover {
  background: var(--gtfb-accent);
  color: var(--gtfb-white);
}

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

/* --- Contact (white) -------------------------------------------------------
   White with black text, not the design's festival blue: the site's footer
   opens with the blue Newsletter band right under it, and the two read as
   one block. */
.gtfb-access__contact {
  background: var(--gtfb-white);
  color: var(--gtfb-ink);
  /* The site's header is pinned once the page scrolls (102px, 86px, 66px by
     width — programme.js measures it); the jump from "Booking needed" lands
     the heading below it. */
  scroll-margin-top: 126px;
}

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

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

.gtfb-access__contact > .gtfb-access__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-access__contact > .gtfb-access__shell {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gtfb-access__contact-body {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

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

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

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

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

.gtfb-access__mail-addr {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.gtfb-access a.gtfb-access__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-access__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-access--js .gtfb-access__reveal {
  display: inline-flex;
}

.gtfb-access__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-access .gtfb-access__mail-row [hidden] {
  display: none !important;
}

/* It swaps its own label, so it keeps one width: 13em, padding included,
   clears «Αντιγράφηκε», the longest of the six. Shown only when access.js
   can make it work. */
.gtfb-access__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-access--js .gtfb-access__copy {
  display: inline-block;
}

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

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

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