/* ==========================================================================
   FacultyHack@Gateways 2026 — mobile-first stylesheet
   WCAG 2.2 AA: colors below are verified against their actual backgrounds.

   Brand palette (as given, hand-verified against the backgrounds they're
   actually used on — see notes below, not all 5 are safe for every use):
     Soft Ivory       #FAFAF7  Neutral    → --color-bg
     Root Brown       #6B4A2A  Roots      → --color-text (AAA, ~7.6:1 on Ivory)
     Forest Olive     #55661A  Foundation → --color-link (AA, ~6.1:1 on Ivory)
     Warm Brown/Gold  #876237  Innovation → --color-accent (AA w/ white text, ~5.5:1)
     Olive Green      #6E7D1F  Knowledge  → --color-heading, h1 ONLY (~4.35:1 on
                                Ivory/white — clears the 3:1 large-text minimum
                                with margin, but falls just short of the 4.5:1
                                normal-text minimum, so it's not used for body
                                text, links, or smaller headings like mentor/
                                organizer card names)

   --color-header-bg is Forest Olive (#55661A) and --color-footer-bg is
   Root Brown (#6B4A2A) — two different brand colors, deliberately not the
   same, each its own variable. Both are dark/medium enough that they use
   Ivory text (var(--color-text-inverse)) rather than the body's Root
   Brown text color: Ivory clears ~6.1:1 on Forest Olive and ~7.6:1 on
   Root Brown, comfortably past the 4.5:1 minimum for normal-size text.
   (Olive Green, the other brand green, was NOT used here even though
   it's also "green" — at this size Ivory-on-Olive-Green only reaches
   ~4.35:1, just short of 4.5:1; Olive Green is reserved for page h1s,
   which are large enough that its lower ratio still clears the 3:1
   large-text minimum. See its own note below.)

   Root Brown and Forest Olive (L≈0.082 and L≈0.115) are both too light
   for the main amber focus ring (#B45309, L≈0.159) to clear 3:1 against —
   no single flat color clears 3:1 against both the near-white Ivory body
   AND a medium-dark bar at the same time (the achievable luminance
   windows don't overlap; verified by direct calculation). So header/
   footer links get a context-specific focus override to Ivory instead of
   amber — see ".site-header a:focus-visible, .site-footer a:focus-visible"
   below. The rest of the page keeps the amber ring.

   Note: the focus ring uses #B45309 (accessible amber) rather than a pure
   gold such as #FFD700 — #FFD700 fails the 3:1 non-text-contrast minimum
   (SC 1.4.11) against this site's background (~1.3:1); #B45309 clears 3:1
   against Ivory and white.
   ========================================================================== */

:root {
  --color-bg: #FAFAF7;
  --color-bg-alt: #FFFFFF;
  --color-text: #6B4A2A;
  --color-heading: #6E7D1F;
  --color-text-inverse: #FAFAF7;
  --color-link: #55661A;
  --color-link-visited: #55661A;
  --color-accent: #876237;
  --color-accent-text: #FFFFFF;
  --color-border: #CED4DA;
  --color-border-strong: #767268; /* ~4.6:1 vs ivory/white — for form-control
    borders, which SC 1.4.11 requires at ≥3:1 since the border is what
    identifies the control's boundary. --color-border itself is only
    ~1.4:1 and stays fine for decorative dividers/cards, which aren't
    "UI components" under 1.4.11. */
  --color-focus: #B45309;
  --color-header-bg: #55661A;
  --color-footer-bg: #6B4A2A;

  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;

  --content-max-width: 60rem;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  font-size: 100%; /* respects user/browser font-size settings */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

h1 { font-size: 1.875rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Olive Green accent reserved for page h1s only — see the palette note at
   the top of this file for why it's not used on smaller headings. */
main h1 {
  color: var(--color-heading);
}

p, ul, ol, dl {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

a {
  color: var(--color-link);
}

a:visited {
  color: var(--color-link-visited);
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrapper {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

/* --------------------------------------------------------------------------
   Accessibility utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease-in-out;
}

.skip-link:focus {
  transform: translateY(0%);
}

/* Highly visible, consistent focus indicator for every interactive element.
   Never removed without this replacement (SC 2.4.11 / 2.4.13). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

main:focus-visible {
  outline: none; /* programmatic focus target after skip link; not user navigation */
}

/* The main amber focus ring doesn't clear 3:1 against Root Brown (see the
   palette note at the top of this file), so header/footer links get a
   light-colored ring instead — still ≥3:1, just for this dark context. */
.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--color-text-inverse);
}

/* --------------------------------------------------------------------------
   Header & primary navigation
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--color-header-bg);
  padding-block: var(--space-2);
}

.site-header .wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.site-header__brand a {
  display: inline-block;
  /* Logo has dark brand-colored artwork (black/browns/olive), so it needs
     a light backdrop to stay legible now that the bar itself is dark. */
  background-color: var(--color-bg-alt);
  padding: 0.375rem 0.75rem;
  border: 4px solid var(--color-text); /* Root Brown */
  border-radius: 0.5rem;
}

.site-header__logo {
  display: block;
  height: 2.75rem;
  max-height: 4rem;
  width: auto;
  max-width: 100%;
}

@media (min-width: 40em) {
  .site-header__logo {
    height: 3.5rem;
  }
}

.site-nav {
  width: 100%;
}

.site-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__menu a {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem 0.375rem 0 0;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  color: var(--color-text-inverse);
  text-decoration: none;
}

.site-nav__menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.site-nav__menu a[aria-current="page"] {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--color-text-inverse);
  font-weight: 700;
}

.site-nav__cta {
  color: var(--color-accent-text) !important;
  background-color: var(--color-accent);
  padding: var(--space-1) var(--space-2) !important;
  border-radius: 0.25rem;
}

@media (min-width: 40em) {
  .site-header .wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav__menu {
    flex-direction: row;
    align-items: stretch;
    gap: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--space-5);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hero__logo {
  width: 70%;
  height: auto;
  max-width: 100%;
  margin-bottom: var(--space-2);
}

.page-hero__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.page-hero__logo {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
}

@media (min-width: 40em) {
  .page-hero__logo {
    width: 6.5rem;
    height: 6.5rem;
  }
}

.hero__tagline {
  font-size: 1.125rem;
  max-width: 40rem;
}

.hero__dates {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.hero__dates-item dt {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}

.hero__dates-item dd {
  margin: 0;
}

.hero__cta {
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.hero__cta-note {
  font-size: 0.9375rem;
  max-width: 40rem;
}

@media (min-width: 40em) {
  .hero__dates {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  line-height: 1.25;
}

.button--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-text);
}

.button--primary:visited {
  color: var(--color-accent-text);
}

.button--primary:hover {
  filter: brightness(0.85);
}

.button--small {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */

.overview,
.challenges,
.apply {
  padding-block: var(--space-5);
}

.overview {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

/* Same decorative-watermark technique as .hero::before — logo is dark
   artwork on a light background here too, so no invert filter needed. */
.overview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--overview-logo);
  background-repeat: no-repeat;
  /* left, not right: transform: scaleX(-1) below mirrors this whole box
     (it spans the full section via inset: 0), which flips the apparent
     side the background-position lands on too — this "left" is what
     actually renders on the right after the mirror. */
  background-position: left -8% center;
  background-size: min(60%, 22rem);
  transform: scaleX(-1);
  opacity: 0.08;
  pointer-events: none;
}

.overview .wrapper {
  position: relative;
  z-index: 1;
}

.overview__infographic {
  display: block;
  width: 100%;
  max-width: 60rem;
  height: auto;
  margin-top: var(--space-4);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.participants {
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.participants__photo {
  display: block;
  width: 100%;
  max-width: 60rem;
  height: auto;
  margin-top: var(--space-4);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.community-map {
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.community-map__map {
  margin-top: var(--space-3);
  height: 24rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg-alt);
}

.community-map__fallback-list {
  margin: var(--space-3) 0 0;
  padding-left: 1.25rem;
}

.community-map__fallback-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.community-map__fallback-list .mentor-card__link-icon {
  flex-shrink: 0;
}

.leaflet-popup-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
}

.community-map__popup-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.community-map__popup-icon .mentor-card__link-icon {
  font-size: 1rem;
}

.dandelion {
  border-top: 1px solid var(--color-border);
}

.dandelion__image {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin-top: var(--space-3);
  border-radius: 0.5rem;
}

.apply {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.challenges__list li {
  margin-bottom: var(--space-1);
}

/* --------------------------------------------------------------------------
   Mentors
   -------------------------------------------------------------------------- */

.mentors {
  padding-block: var(--space-5);
  background-color: var(--color-bg-alt);
}

.mentor-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.mentor-card {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg);
}

.mentor-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.mentor-card__photo {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.mentor-card__name {
  font-size: 1.125rem;
  margin-top: 0;
  margin-bottom: var(--space-1);
}

.mentor-card__affiliation {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: var(--space-2);
  color: #495057;
}

.mentor-card__specialty {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.mentor-card__specialty li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.mentor-card__bio {
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
  white-space: pre-line;
}

.mentor-card__history {
  margin-bottom: var(--space-3);
}

.mentor-card__history-heading {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: var(--space-1);
}

.mentor-card__history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.mentor-card__history-list li {
  margin-bottom: 0.25rem;
}

.mentor-card__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}

.mentor-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.mentor-card__link-icon {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--color-link);
}

/* The one custom (non-Font-Awesome) icon, Jupyter, is an inline <svg> with
   no intrinsic size — size it off the same font-size the <i> icons use in
   each context, so it stays visually consistent without duplicating every
   context-specific override below. */
svg.mentor-card__link-icon {
  width: 1em;
  height: 1em;
}

@media (min-width: 48em) {
  .mentor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.teams-grid {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.teams-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg);
}

@media (min-width: 40em) {
  .teams-card {
    grid-template-columns: 1fr 1fr;
  }

  .teams-card__mentor {
    padding-left: var(--space-3);
    border-left: 1px solid var(--color-border);
  }
}

.teams-card__mentee-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.teams-card__mentee-name,
.teams-card__mentor-name {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.teams-card__mentee-header .resource-share {
  flex-shrink: 0;
  margin-left: 0;
}

.teams-card__course {
  margin: 0 0 var(--space-2);
}

.teams-card__project-goals {
  margin: 0 0 var(--space-2);
}

.teams-card__project-goals ul {
  margin: 0;
  padding-left: 1.25rem;
}

.teams-card__project-goals li + li {
  margin-top: 0.25rem;
}

.teams-card__course-label,
.teams-card__mentor-label,
.teams-card__files-label {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-link);
}

.teams-card__files {
  margin-top: var(--space-2);
}

.teams-card__photos {
  margin-top: var(--space-2);
}

.teams-card__photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.teams-card__photo {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out;
}

.teams-card__photo-grid a:hover .teams-card__photo,
.teams-card__photo-grid a:focus-visible .teams-card__photo {
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */

.resource-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3);
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.resource-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resource-toolbar__field label {
  font-weight: 600;
  font-size: 0.875rem;
}

.resource-toolbar__field input,
.resource-toolbar__field select {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 0.375rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}

.resource-toolbar__status {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  min-height: 1.25rem;
}

@media (min-width: 40em) {
  .resource-toolbar {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .resource-toolbar__field {
    flex: 1 1 16rem;
  }

  .resource-toolbar__status {
    flex-basis: 100%;
  }
}

.resource-category {
  margin-top: var(--space-5);
}

.resource-category h2 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Event Branding (Resources page)
   -------------------------------------------------------------------------- */

.branding-dropdown {
  margin-top: var(--space-3);
}

.branding-dropdown summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-link);
}

.branding-dropdown summary::-webkit-details-marker {
  display: none;
}

.branding-dropdown[open] summary {
  margin-bottom: var(--space-3);
}

.branding-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.branding-logo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.branding-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: var(--space-3);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(45deg, var(--color-border) 25%, transparent 25%),
    linear-gradient(-45deg, var(--color-border) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--color-border) 75%),
    linear-gradient(-45deg, transparent 75%, var(--color-border) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.branding-logo-preview img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

.branding-logo-preview--favicon img {
  max-height: 64px;
}

.branding-logo-info {
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.branding-logo-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.branding-logo-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.branding-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-link);
  border-radius: 0.25rem;
  color: var(--color-link);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.branding-download-btn:hover,
.branding-download-btn:focus-visible {
  background-color: var(--color-link);
  color: var(--color-text-inverse);
}

.branding-colors-heading {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: 1.0625rem;
}

.branding-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-2);
}

.branding-color-swatch {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.branding-color-block {
  height: 64px;
  background-color: var(--swatch-color);
  border-bottom: 1px solid var(--color-border);
}

.branding-color-meta {
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.branding-color-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
}

.branding-color-hex {
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #495057;
  letter-spacing: 0.02em;
}

.resource-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.resource-item {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg);
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.resource-item:hover,
.resource-item:focus-within {
  background-color: var(--color-bg-alt);
  border-color: var(--color-accent);
}

.resource-item__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.resource-item__name .mentor-card__link-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
}

.resource-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.25rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--color-link);
  cursor: pointer;
  flex-shrink: 0;
}

.resource-share:hover {
  background-color: var(--color-bg-alt);
}

.resource-share .mentor-card__link-icon {
  font-size: 1.125rem;
  margin: 0;
}

.share-menu {
  position: absolute;
  z-index: 20;
  min-width: 12rem;
  padding: var(--space-1) 0;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(33, 24, 15, 0.2);
}

.share-menu__title {
  margin: 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #495057;
}

.share-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.share-menu__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.875rem;
  border: none;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.share-menu__link:hover {
  background-color: var(--color-bg);
}

.share-menu__link .mentor-card__link-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.resource-item__description {
  font-size: 0.9375rem;
  color: #495057;
  margin-bottom: 0;
}

@media (min-width: 48em) {
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Schedule
   -------------------------------------------------------------------------- */

.schedule {
  padding-block: var(--space-5);
  background-color: var(--color-bg);
}

.schedule section {
  margin-top: var(--space-5);
}

.schedule h2 {
  margin-bottom: var(--space-2);
}

.table-scroll {
  overflow-x: auto;
  margin-top: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.table-scroll table {
  width: 100%;
  min-width: 40em; /* below this, the table scrolls as a unit rather than
    squeezing three columns of prose into unreadably narrow strips */
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.table-scroll thead th {
  background-color: var(--color-bg-alt);
  font-weight: 700;
}

.table-scroll tbody th[scope="row"] {
  font-weight: 600;
  white-space: nowrap;
  background-color: var(--color-bg-alt);
}

.table-scroll tbody tr:last-child th,
.table-scroll tbody tr:last-child td {
  border-bottom: none;
}

.schedule-timeline {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.schedule-block {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg-alt);
  overflow: hidden;
  transition: border-color 0.15s ease-in-out;
}

.schedule-block:hover,
.schedule-block:focus-within {
  border-color: var(--color-accent);
}

.schedule-block__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  cursor: pointer;
  list-style: none;
}

.schedule-block__summary::-webkit-details-marker {
  display: none;
}

.schedule-block__datetime {
  display: flex;
  flex-direction: column;
}

.schedule-block__date {
  font-weight: 700;
  color: var(--color-text);
}

.schedule-block__time {
  font-size: 0.875rem;
  color: #495057;
}

.schedule-block__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.schedule-block__chevron {
  color: var(--color-link);
  transition: transform 0.15s ease-in-out;
}

.schedule-block[open] .schedule-block__chevron {
  transform: rotate(180deg);
}

.schedule-block__body {
  padding: 0 var(--space-3) var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
}

.schedule-block__event + .schedule-block__event {
  margin-top: var(--space-3);
}

.schedule-block__event-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.schedule-block__event-time {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #495057;
}

.schedule-block__recap-summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-link);
}

.schedule-block__recap-summary::-webkit-details-marker {
  display: none;
}

.schedule-block__recap[open] .schedule-block__recap-summary {
  margin-bottom: var(--space-2);
}

.schedule-block__recap-body p:first-child {
  margin-top: 0;
}

.schedule-block__recap-highlights-heading {
  margin: var(--space-3) 0 var(--space-2);
  font-size: 1rem;
}

.schedule-block__recap-highlights {
  margin: 0;
  padding-left: 1.25rem;
}

.schedule-block__recap-highlights li + li {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Deliverables
   -------------------------------------------------------------------------- */

.deliverables {
  padding-block: var(--space-5);
  background-color: var(--color-bg-alt);
}

.deliverables-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
}

.deliverable-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.deliverable {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg);
}

.deliverable__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.deliverable__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  font-size: 1rem;
  font-weight: 700;
}

.deliverable__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: #495057;
}

.deliverable__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
}

.deliverable p + p {
  margin-top: var(--space-2);
}

.deliverable ul {
  margin: var(--space-2) 0 0;
  padding-left: 1.25rem;
}

.deliverable ul li + li {
  margin-top: 0.375rem;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-link);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--color-accent);
}

.template-dialog {
  width: min(90vw, 48rem);
  max-height: 85vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.template-dialog::backdrop {
  background-color: rgba(33, 24, 15, 0.5);
}

.template-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.template-dialog__title {
  margin: 0;
}

.template-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--color-text);
  font-size: 1.125rem;
  cursor: pointer;
}

.template-dialog__close:hover {
  background-color: var(--color-bg);
}

.template-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.template-dialog__code {
  margin: 0;
  padding: var(--space-3);
  overflow: auto;
  max-height: 60vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--color-footer-bg);
  color: var(--color-text-inverse);
  padding-block: var(--space-5);
  margin-top: var(--space-4);
}

/* Same decorative-watermark approach as .hero::before, but the logo file
   is solid black shapes on transparent — invisible on this dark footer
   without inverting it to white first. filter: invert(1) flips black to
   white and leaves transparency untouched. */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--footer-logo);
  background-repeat: no-repeat;
  background-position: left -10% center;
  background-size: min(50%, 20rem);
  filter: invert(1);
  opacity: 0.08;
  pointer-events: none;
}

.site-footer .wrapper {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: #9EC8FF; /* light blue: >7:1 against the dark footer background */
}

.footer-section {
  margin-bottom: var(--space-4);
}

.footer-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-sponsors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-sponsors__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-bg-alt);
  border-radius: 0.375rem;
}

.footer-sponsors__logo {
  height: 2rem;
  width: auto;
  max-width: 8rem;
  display: block;
}

.footer-acknowledgment {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  /* #495057 (the old divider color) is nearly the same luminance as Root
     Brown and would be almost invisible here — a translucent light
     overlay stays visible against any dark background instead. */
  border-top: 1px solid rgba(250, 250, 247, 0.25);
  font-size: 0.9375rem;
  max-width: 40rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-acknowledgment__logo {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
  padding: 0.25rem;
  background-color: var(--color-bg-alt);
  border-radius: 0.25rem;
}

@media (min-width: 40em) {
  .site-footer .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .footer-acknowledgment {
    grid-column: 1 / -1;
    max-width: none;
  }
}
