/* First Drafts online exhibition — scoped under .fd-exhibit */

.fd-exhibit {
  --fd-navy: #232d4b;
  --fd-orange: #e57200;
  --fd-paper: #f7f5f0;
  --fd-rule: #d8d4cc;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  color: #222;
  line-height: 1.65;
}

.fd-exhibit a { color: var(--fd-navy); }
.fd-exhibit a:hover { color: var(--fd-orange); }

/* --- masthead / landing ------------------------------------------------- */
.fd-masthead { text-align: center; margin: 2rem 0 1.5rem; }
.fd-masthead h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: .02em;
  margin: 0 0 .25rem;
  color: var(--fd-navy);
}
.fd-masthead-sub {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 1rem;
}
.fd-masthead-q {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--fd-orange);
  margin: 0;
}
.fd-intro { max-width: 44em; margin: 0 auto 2rem; font-size: 1.06rem; }

.fd-stops h2, .fd-about h2, .fd-built h2, .fd-feature h2 {
  color: var(--fd-navy);
  border-top: 3px solid var(--fd-navy);
  padding-top: .75rem;
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.fd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.fd-card {
  display: block;
  text-decoration: none;
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.fd-card:hover, .fd-card:focus-visible {
  box-shadow: 0 4px 18px rgba(35, 45, 75, .18);
  transform: translateY(-2px);
}
.fd-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e4e0d8; }
.fd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-card-label { display: block; padding: .8rem 1rem 1rem; }
.fd-card-num {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--fd-orange);
  margin-bottom: .15rem;
}
.fd-card-title { display: block; font-size: 1.15rem; font-weight: 700; color: var(--fd-navy); }
.fd-card-sub { display: block; font-style: italic; color: #555; margin-top: .1rem; }

.fd-team { margin-top: .75rem; }

/* --- stop pages --------------------------------------------------------- */
.fd-breadcrumb { font-size: .9rem; margin: 0 0 1.5rem; }
.fd-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.fd-breadcrumb li { margin: 0; }
.fd-breadcrumb li + li::before { content: "\00BB"; padding: 0 .5em; color: #999; }
.fd-breadcrumb [aria-current] { color: #555; }
.fd-stop-header { margin-bottom: 1.25rem; }
.fd-stop-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  color: var(--fd-orange);
  margin: 0 0 .2rem;
}
.fd-stop-header h1 { margin: 0; color: var(--fd-navy); font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.fd-stop-subtitle { font-style: italic; font-size: 1.25rem; margin: .25rem 0 0; color: #444; }
.fd-stop-text { max-width: 46em; font-size: 1.05rem; }

/* --- audio guide --------------------------------------------------------- */
.fd-audio { margin: 1.5rem 0 2rem; }
.fd-audio-label { margin: 0 0 .45rem; font-size: .95rem; }
.fd-audio-dur { color: #666; font-weight: 400; }
.fd-audio audio { display: block; width: 100%; max-width: 620px; }
.fd-audio-note { font-size: .85rem; color: #555; margin: .4rem 0 0; }

.fd-audio-guide h2 {
  color: var(--fd-navy);
  border-top: 3px solid var(--fd-navy);
  padding-top: .75rem;
  margin-top: 2.5rem;
  font-size: 1.35rem;
}
.fd-audio-guide > p { max-width: 46em; }
.fd-audio-guide .fd-audio { margin: 1rem 0 1.25rem; }

/* --- viewers ------------------------------------------------------------ */
.fd-figure { margin: 2rem 0; }
.fd-viewer {
  width: 100%;
  height: min(72vh, 640px);
  background: #1b1b1b;
  border: 1px solid var(--fd-rule);
  border-radius: 3px;
  position: relative;
}
.fd-figure--companion .fd-viewer { height: min(52vh, 440px); }
.fd-viewer:focus-within { outline: 3px solid var(--fd-orange); outline-offset: 2px; }
.fd-viewer noscript img { width: 100%; height: 100%; object-fit: contain; }

.fd-viewer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: #555;
  margin-top: .4rem;
}
.fd-zoom-hint { flex: 1 1 auto; }
.fd-static-link { white-space: nowrap; }

.fd-osd-buttons {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fd-osd-buttons button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: rgba(35, 45, 75, .92);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.fd-osd-buttons button:hover { background: var(--fd-orange); }
.fd-osd-buttons button:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }

figcaption { margin-top: .6rem; }
.fd-credit { font-size: .92rem; color: #444; margin: 0 0 .35rem; }

.fd-description summary {
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--fd-navy);
}
.fd-description summary:hover { color: var(--fd-orange); }
.fd-description p {
  background: var(--fd-paper);
  border-left: 4px solid var(--fd-navy);
  padding: .75rem 1rem;
  margin: .5rem 0 0;
  max-width: 46em;
  font-size: .97rem;
}

/* --- notice list -------------------------------------------------------- */
/* Subordinate heading: the notice list belongs to the proposal drawing above
   it, so it sits smaller and without the heavy section rule that opens
   "What was built". */
.fd-notice h2 {
  color: var(--fd-navy);
  font-size: 1.05rem;
  margin: 1.75rem 0 .5rem;
}
.fd-notice ul { max-width: 46em; padding-left: 1.2rem; }
.fd-notice li { margin-bottom: .6rem; }
.fd-notice li::marker { color: var(--fd-orange); }

/* --- prev/next ---------------------------------------------------------- */
.fd-stopnav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  border-top: 1px solid var(--fd-rule);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-weight: 600;
}
.fd-stopnav a {
  flex: 1 1 240px;
  display: block;
  text-decoration: none;
  border: 1px solid var(--fd-rule);
  border-radius: 3px;
  padding: .7rem 1rem;
  background: var(--fd-paper);
}
.fd-stopnav a:hover, .fd-stopnav a:focus-visible { border-color: var(--fd-orange); }
.fd-nav-next { text-align: right; }

/* The theme's skrollr can pin a stale document height inline, leaving blank
   space after the footer; these pages have no skrollr animations, so let the
   document size itself. */
html.skrollr, html.skrollr body { height: auto !important; }

@media (max-width: 640px) {
  /* Full-width stacked prev/next; both left-aligned so nothing looks offset. */
  .fd-stopnav a { flex-basis: 100%; }
  .fd-nav-next { text-align: left; }
}

/* --- Q&A page (Rediscovered Drawings) ------------------------------------ */
.fd-qa-question {
  color: var(--fd-navy);
  font-size: 1.2rem;
  margin: 2.25rem 0 .5rem;
  padding-top: .75rem;
  border-top: 1px solid var(--fd-rule);
}
.fd-figrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}
.fd-figrow figure { margin: 0; }
.fd-figrow img { width: 100%; height: auto; border: 1px solid var(--fd-rule); display: block; }
.fd-figrow .fd-credit { font-size: .85rem; }

.fd-fig-wide { margin: 1.5rem 0 1.25rem; }
.fd-fig-wide img { width: 100%; height: auto; display: block; border: 1px solid var(--fd-rule); }
.fd-fig-wide .fd-credit { font-size: .85rem; }

/* --- call-to-action button + landing feature ----------------------------- */
.fd-cta-wrap {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--fd-rule);
}
.fd-exhibit a.fd-cta {
  display: inline-block;
  background: var(--fd-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: .9rem 1.75rem;
  border-radius: 3px;
}
.fd-exhibit a.fd-cta:hover, .fd-exhibit a.fd-cta:focus-visible { background: var(--fd-orange); color: #fff; }
.fd-feature > p { max-width: 46em; }
.fd-feature .fd-fig-wide { margin-top: 1.25rem; }
.fd-feature .fd-cta-wrap { border-top: 0; margin-top: 1rem; padding-top: 0; text-align: left; }

/* --- lightbox ------------------------------------------------------------ */
.fd-exhibit a.fd-zoomable { display: block; cursor: zoom-in; }
dialog.fd-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  outline: none;
}
dialog.fd-lightbox::backdrop { background: rgba(12, 15, 26, .88); }
dialog.fd-lightbox img {
  display: block;
  max-width: min(92vw, 1600px);
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 2px;
  background: #fff;
}
.fd-lightbox-caption {
  color: #fff;
  text-align: center;
  font-size: .9rem;
  line-height: 1.45;
  max-width: 70ch;
  margin: .7rem auto 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.fd-lightbox-close {
  position: fixed;
  top: 14px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.fd-lightbox-close:hover, .fd-lightbox-close:focus-visible { background: var(--fd-orange); }
