/*
 * The furniture: dateline, masthead, section strip, footer.
 *
 * The section strip's mega-panel opens on hover and focus-within and uses no
 * JavaScript at all — which is why it keeps working for a keyboard and for a
 * crawler. Do not "improve" it into a click handler.
 */

/* ── Dateline ──────────────────────────────────────────── */

.fg-top { border-bottom: 1px solid var(--rule); }
.fg-top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 32px;
}
.fg-top .fg-code { font-size: 10px; }
.fg-top__wide { display: none; }
@media (min-width: 768px) { .fg-top__wide { display: block; } }

/* ── Masthead ──────────────────────────────────────────── */

.fg-mast { border-bottom: 1px solid var(--ink); }
.fg-mast__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.fg-mark {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
}
.fg-mark__a {
  font-family: var(--font-grot);
  font-weight: 700;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
}
.fg-mark__b {
  font-family: var(--font-serif);
  font-weight: 400;
  padding-left: 0.04em;
}
.fg-mast__acts { display: flex; align-items: center; gap: 10px; }

.fg-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-fg), color 0.3s var(--ease-fg);
}
.fg-btn:hover { border-color: var(--vir); color: var(--vir); }
.fg-btn svg { width: 15px; height: 15px; }

.fg-sub {
  display: none;
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font-family: var(--font-grot);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease-fg), color 0.3s var(--ease-fg);
}
.fg-sub:hover { background: var(--vir); color: var(--chalk); border-color: var(--vir); }
@media (min-width: 900px) { .fg-sub { display: inline-block; } }

/* ── Section strip ─────────────────────────────────────── */

.fg-strip { border-bottom: 1px solid var(--rule); position: relative; }
.fg-strip__row {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fg-strip__row::-webkit-scrollbar { display: none; }

.fg-sec { position: static; }
.fg-sec__a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding-block: 11px;
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease-fg), color 0.3s var(--ease-fg);
}
.fg-sec__a:hover { color: var(--vir); border-bottom-color: var(--vir); }
.fg-sec__n {
  font-family: var(--font-grot);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/*
 * The panel. `visibility` rather than `display` so the transition can run, and
 * focus-within so it opens for the keyboard exactly as it does for a pointer.
 */
.fg-sec__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-fg), transform 0.3s var(--ease-fg), visibility 0.3s;
}
.fg-sec:hover .fg-sec__panel,
.fg-sec:focus-within .fg-sec__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.fg-sec__panel-in {
  display: grid;
  gap: 28px;
  padding-block: 26px 32px;
}
@media (min-width: 900px) {
  .fg-sec__panel-in { grid-template-columns: 1fr 2fr; gap: 56px; }
}
.fg-sec__subs { display: flex; flex-wrap: wrap; gap: 8px; }
.fg-sec__sub {
  border: 1px solid var(--rule);
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fg-sec__sub:hover { border-color: var(--vir); color: var(--vir); }

/* ── Footer ────────────────────────────────────────────── */

.fg-foot {
  background: var(--nox);
  color: var(--nox-fg);
  padding-block: 44px 28px;
}
@media (min-width: 1024px) { .fg-foot { padding-block: 80px 28px; } }

.fg-foot__grid {
  display: grid;
  gap: 28px;
  border-bottom: 1px solid var(--nox-rule);
  padding-bottom: 32px;
}
@media (min-width: 640px) { .fg-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .fg-foot__grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 52px; padding-bottom: 48px; }
}

.fg-foot__blurb {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--nox-muted);
}
.fg-foot__social { display: flex; gap: 10px; margin-top: 18px; }
.fg-foot__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--nox-rule);
  transition: border-color 0.3s var(--ease-fg), color 0.3s var(--ease-fg);
}
.fg-foot__social a:hover { border-color: var(--vir-lift); color: var(--vir-lift); }
.fg-foot__social svg { width: 15px; height: 15px; }

.fg-foot__h {
  margin: 0 0 12px;
  font-family: var(--font-grot);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 9.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--nox-muted);
}
.fg-foot__list { margin: 0; padding: 0; list-style: none; }
.fg-foot__list li { border-top: 1px solid var(--nox-rule); }
.fg-foot__list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  font-size: 15px;
}
.fg-foot__list a:hover { color: var(--vir-lift); }
.fg-foot__list .fg-code { color: var(--nox-muted); font-size: 9.5px; }

.fg-foot__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 24px;
}
.fg-foot__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.fg-foot__legal a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--nox-muted);
}
.fg-foot__legal a:hover { color: var(--vir-lift); }
