/* ======================================================
   btNOG13
   Clean static conference website
====================================================== */


/* ---------- Variables ---------- */

:root {
  --navy: #10263d;
  --navy-dark: #091827;
  --blue: #174e74;

  --gold: #b99a52;

  --white: #ffffff;
  --off-white: #f7f8f9;
  --grey-light: #e6e9ec;
  --grey: #68727c;

  --text: #17212b;

  --max-width: 1180px;

  --radius: 8px;

  --transition: 180ms ease;
}


/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  color: var(--text);
  background: var(--white);

  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* ---------- Layout ---------- */

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}


/* ======================================================
   HEADER
====================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid var(--grey-light);

  backdrop-filter: blur(10px);
}

.nav-container {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;

  font-size: 1.25rem;
  font-weight: 800;
}

.logo img {
  width: auto;
  height: 44px;
}


/* ---------- Main nav ---------- */

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;

  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav > a:not(.button) {
  position: relative;
}

.main-nav > a:not(.button)::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: var(--navy);

  transition: width var(--transition);
}

.main-nav > a:not(.button):hover::after {
  width: 100%;
}


/* ---------- Mobile menu ---------- */

.menu-toggle {
  display: none;

  border: 0;
  background: none;

  width: 40px;
  height: 40px;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  margin: 5px auto;

  background: var(--navy);
}


/* ======================================================
   BUTTONS
====================================================== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 0 24px;

  background: var(--navy);
  color: var(--white);

  border: 2px solid var(--navy);
  border-radius: 5px;

  font-size: 0.92rem;
  font-weight: 700;

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.button:hover {
  background: var(--blue);
  border-color: var(--blue);

  transform: translateY(-1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
}

.button-outline {
  background: transparent;

  border-color: var(--white);

  color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.button-outline-dark {
  background: transparent;

  border-color: var(--navy);

  color: var(--navy);
}

.button-outline-dark:hover {
  background: var(--navy);

  color: var(--white);
}


/* ======================================================
   TYPOGRAPHY
====================================================== */

h1,
h2,
h3 {
  margin-top: 0;

  line-height: 1.15;

  color: var(--navy);
}

h1 {
  margin-bottom: 16px;

  font-size: clamp(4rem, 10vw, 7.5rem);

  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;

  font-size: clamp(2rem, 4vw, 3rem);

  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-top: 0;
}

.large-text {
  font-size: 1.18rem;
  line-height: 1.75;

  color: #3d4853;
}

.eyebrow {
  margin-bottom: 12px;

  color: var(--gold);

  font-size: 0.76rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.13em;
}


/* ======================================================
   HERO
====================================================== */

.hero {
  position: relative;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );

  color: var(--white);
}

.hero-content {
  min-height: 630px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: flex-start;

  padding-block: 100px;
}

.hero h1 {
  color: var(--white);
}

.hero .eyebrow {
  color: #d5c28d;
}

.hero-location {
  margin-bottom: 34px;

  font-size: clamp(1.2rem, 3vw, 1.65rem);

  font-weight: 400;
}


/* ---------- Event dates ---------- */

.event-dates {
  display: flex;
  align-items: center;

  gap: 24px;

  margin-bottom: 38px;

  color: #dce3e8;
}

.event-dates span:not(.date-divider) {
  display: flex;
  flex-direction: column;
}

.event-dates strong {
  color: var(--white);
}

.date-divider {
  width: 1px;
  height: 45px;

  background: rgba(255,255,255,0.25);
}


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

.hero-actions {
  display: flex;
  gap: 14px;
}


/* ---------- Bhutan/prayer flag accent ---------- */

.prayer-flags {
  position: absolute;

  top: 0;
  right: 8%;

  display: flex;

  transform: rotate(3deg);
}

.prayer-flags span {
  display: block;

  width: 26px;
  height: 34px;

  opacity: 0.75;

  clip-path: polygon(
    0 0,
    100% 0,
    100% 75%,
    50% 100%,
    0 75%
  );
}

.prayer-flags span:nth-child(1) {
  background: #4579a5;
}

.prayer-flags span:nth-child(2) {
  background: #f2eee0;
}

.prayer-flags span:nth-child(3) {
  background: #c84e43;
}

.prayer-flags span:nth-child(4) {
  background: #58815b;
}

.prayer-flags span:nth-child(5) {
  background: #d3a944;
}


/* ======================================================
   QUICK LINKS
====================================================== */

.quick-links {
  position: relative;

  z-index: 10;

  margin-top: -40px;
}

.quick-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  background: var(--white);

  border: 1px solid var(--grey-light);
  border-radius: var(--radius);

  box-shadow: 0 14px 45px rgba(10, 24, 40, 0.09);

  overflow: hidden;
}

.quick-card {
  position: relative;

  min-height: 230px;

  padding: 32px;

  border-right: 1px solid var(--grey-light);

  transition:
    background var(--transition),
    transform var(--transition);
}

.quick-card:last-child {
  border-right: 0;
}

.quick-card:hover {
  background: var(--off-white);
}

.quick-number {
  display: block;

  margin-bottom: 40px;

  color: #9ca5ad;

  font-size: 0.75rem;
  font-weight: 700;
}

.quick-card h2 {
  margin-bottom: 10px;

  font-size: 1.35rem;
}

.quick-card p {
  margin-bottom: 24px;

  color: var(--grey);

  font-size: 0.9rem;
}

.arrow {
  position: absolute;

  bottom: 28px;
  right: 30px;

  color: var(--navy);

  font-size: 1.4rem;

  transition: transform var(--transition);
}

.quick-card:hover .arrow {
  transform: translateX(5px);
}


/* ======================================================
   STANDARD SECTIONS
====================================================== */

.section {
  padding-block: 110px;
}

.section-alt {
  background: var(--off-white);
}

.section-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.text-link {
  color: var(--navy);

  font-size: 0.92rem;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}


/* ======================================================
   WORKSHOP CARDS
====================================================== */

.three-column-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.content-card {
  min-height: 310px;

  display: flex;
  flex-direction: column;

  padding: 30px;

  border: 1px solid var(--grey-light);
  border-radius: var(--radius);

  background: var(--white);
}

.content-card p {
  color: var(--grey);
}

.content-card .text-link {
  margin-top: auto;
}

.card-label {
  margin-bottom: 38px;

  color: var(--gold);

  font-size: 0.72rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ======================================================
   SCHEDULE
====================================================== */

.schedule {
  border-top: 1px solid #d7dde2;
}

.schedule-row {
  display: grid;

  grid-template-columns: 120px 1fr;

  gap: 30px;

  padding: 28px 0;

  border-bottom: 1px solid #d7dde2;
}

.schedule-row time {
  color: var(--gold);

  font-size: 1.1rem;
  font-weight: 700;
}

.schedule-row h3 {
  margin-bottom: 5px;
}

.schedule-row p {
  margin: 0;

  color: var(--grey);
}


/* ======================================================
   SPEAKERS
====================================================== */

.speakers-intro {
  max-width: 760px;
  margin-bottom: 42px;
  color: var(--grey);
  font-size: 1.05rem;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.speaker-card {
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.speaker-card:hover {
  transform: translateY(-3px);
  border-color: #c8d0d6;
  box-shadow: 0 12px 30px rgba(10, 24, 40, 0.08);
}

.speaker-card-button {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.speaker-card-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: var(--navy-dark);
}

.speaker-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: var(--white);
  text-align: center;
}

.speaker-placeholder-initials {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.speaker-placeholder-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speaker-modal-placeholder {
  min-height: 520px;
}


.speaker-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 22px;
}

.speaker-name {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
}

.speaker-org {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.speaker-talk-title {
  display: block;
  color: var(--grey);
  font-size: 0.88rem;
  line-height: 1.55;
}

.speaker-bio-link {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

/* Speaker modal */

body.modal-open {
  overflow: hidden;
}

.speaker-modal[hidden] {
  display: none;
}

.speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.speaker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 28, 0.72);
  backdrop-filter: blur(3px);
}

.speaker-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.speaker-modal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.speaker-modal-photo {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: var(--navy-dark);
}

.speaker-modal-content {
  padding: 48px;
}

.speaker-modal-content h3 {
  margin-bottom: 5px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.speaker-modal-org {
  margin-bottom: 28px;
  color: var(--gold);
  font-weight: 800;
}

.speaker-modal-bio {
  color: #46515b;
  font-size: 1rem;
  line-height: 1.75;
}

.speaker-modal-talk {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-light);
}

.speaker-modal-talk span {
  display: block;
  margin-bottom: 7px;
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.speaker-modal-talk strong {
  display: block;
  color: var(--navy);
  line-height: 1.5;
}

.speaker-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

@media (max-width: 950px) {
  .speakers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .speaker-modal {
    padding: 14px;
  }

  .speaker-modal-panel {
    max-height: calc(100vh - 28px);
  }

  .speaker-modal-layout {
    grid-template-columns: 1fr;
  }

  .speaker-modal-photo {
    height: auto;
    min-height: 0;
    max-height: 430px;
    object-position: center 20%;
  }

  .speaker-modal-content {
    padding: 28px 24px 32px;
  }
}

@media (max-width: 650px) {
  .speakers-grid {
    grid-template-columns: 1fr;
  }
}


/* ======================================================
   FELLOWSHIP
====================================================== */

.fellowship-intro {
  max-width: 720px;

  margin-bottom: 54px;

  color: var(--grey);

  font-size: 1.05rem;
}

.fellowship-group + .fellowship-group {
  margin-top: 64px;
}

.fellowship-heading {
  display: flex;

  justify-content: space-between;
  align-items: baseline;

  gap: 20px;

  margin-bottom: 24px;

  padding-bottom: 14px;

  border-bottom: 1px solid #d7dde2;
}

.fellowship-heading h3 {
  margin: 0;

  font-size: 1.4rem;
}

.fellowship-heading span {
  color: var(--grey);

  font-size: 0.8rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fellows-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;
}

.fellow-card {
  padding: 22px 24px;

  background: var(--white);

  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
}

.fellow-card h4 {
  margin: 0 0 6px;

  color: var(--navy);

  font-size: 1rem;
}

.fellow-card p {
  margin: 0;

  color: var(--grey);

  font-size: 0.88rem;
  line-height: 1.5;
}

.fellowship-note {
  margin-top: 42px;
  margin-bottom: 0;

  padding: 18px 22px;

  background: var(--white);

  border-left: 3px solid var(--gold);

  color: var(--grey);

  font-size: 0.9rem;
}


@media (max-width: 650px) {

  .fellows-grid {
    grid-template-columns: 1fr;
  }

  .fellowship-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 4px;
  }

}

/* ======================================================
   VENUE
====================================================== */

.venue-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.venue-location {
  min-width: 0;
}

.venue-location h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.venue-address {
  margin-bottom: 24px;
  color: var(--grey);
}

.venue-map {
  width: 100%;
  height: 340px;

  overflow: hidden;

  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
}

.venue-map iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;
}

.venue-map-button {
  margin-top: 18px;
}


@media (max-width: 800px) {

  .venue-locations {
    grid-template-columns: 1fr;
    gap: 55px;
  }

}


@media (max-width: 650px) {

  .venue-map {
    height: 290px;
  }

}

/* ======================================================
   SPONSORS
====================================================== */

/* ======================================================
   SPONSORS
====================================================== */

.sponsors-section {
  border-top: 1px solid var(--grey-light);
}


/* ---------- Tier blocks ---------- */

.sponsor-tier-block {
  margin-top: 62px;
}

.sponsor-tier-title {
  position: relative;

  width: fit-content;

  margin: 0 auto 30px;

  padding-top: 12px;

  color: var(--navy);

  font-size: 0.75rem;
  font-weight: 800;

  text-align: center;
  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.sponsor-tier-title::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 48px;
  height: 3px;

  transform: translateX(-50%);

  background: var(--gold);

  border-radius: 999px;
}


/* ---------- General grid ---------- */

.sponsor-grid {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 32px 48px;
}

.sponsor-item {
  display: flex;

  justify-content: center;
  align-items: center;

  padding: 10px 16px;

  background: var(--white);
}

.sponsor-item img {
  display: block;

  width: auto;
  height: auto;

  object-fit: contain;
}


/* ======================================================
   SUPPORTED BY
====================================================== */

.sponsor-supported {
  margin-top: 48px;
}

.sponsor-supported .sponsor-tier-title::before {
  background: #a83232;
}

.sponsor-grid-supported .sponsor-item {
  width: 175px;
  height: 82px;
}

.sponsor-grid-supported .sponsor-item img {
  max-width: 100%;
  max-height: 64px;
}


/* ======================================================
   PLATINUM
====================================================== */

.sponsor-platinum {
  margin-top: 72px;
}

.sponsor-platinum .sponsor-tier-title::before {
  background: #8d9294;
}

.sponsor-grid-platinum {
  gap: 42px 64px;
}

.sponsor-grid-platinum .sponsor-item {
  width: 235px;
  height: 125px;
}

.sponsor-grid-platinum .sponsor-item img {
  max-width: 100%;
  max-height: 105px;
}



/* ======================================================
   FELLOWSHIP & LANYARD
====================================================== */

.sponsor-fellowship .sponsor-tier-title::before {
  background: #00778e;
}

.sponsor-grid-fellowship .sponsor-item {
  width: 260px;
  height: 105px;
}

.sponsor-grid-fellowship .sponsor-item img {
  max-width: 100%;
  max-height: 82px;
}


/* ======================================================
   GOLD
====================================================== */

.sponsor-gold .sponsor-tier-title::before {
  background: #d8a51d;
}

.sponsor-grid-gold {
  max-width: 1050px;

  margin-inline: auto;

  gap: 34px 46px;
}

.sponsor-grid-gold .sponsor-item {
  width: 180px;
  height: 92px;
}

.sponsor-grid-gold .sponsor-item img {
  max-width: 100%;
  max-height: 74px;
}


/* ======================================================
   SILVER / INTERNET / SUPPORTING PARTNER
====================================================== */

.sponsor-lower-grid {
  display: grid;

  grid-template-columns: 1.25fr 1fr 1fr;

  gap: 30px;

  max-width: 1050px;

  margin: 20px auto 0;
}

.sponsor-lower-grid .sponsor-tier-block {
  margin-top: 58px;
}


/* Silver */

.sponsor-silver .sponsor-tier-title::before {
  background: #b8bcbe;
}


/* Internet */

.sponsor-internet .sponsor-tier-title::before {
  background: #006957;
}


/* Supporting Partner */

.sponsor-supporting .sponsor-tier-title::before {
  background: var(--navy);
}


/* Same visual weight */

.sponsor-grid-lower .sponsor-item {
  width: 160px;
  height: 82px;
}

.sponsor-grid-lower .sponsor-item img {
  max-width: 100%;
  max-height: 62px;
}


.sponsor-silver .sponsor-grid-lower {
  gap: 16px;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 950px) {

  .sponsor-lower-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sponsor-grid-platinum .sponsor-item {
    width: 195px;
    height: 110px;
  }

  .sponsor-grid-gold .sponsor-item {
    width: 160px;
    height: 84px;
  }

}


@media (max-width: 650px) {

  .sponsor-tier-block {
    margin-top: 48px;
  }

  .sponsor-grid {
    gap: 24px;
  }


  /* Supported By */

  .sponsor-grid-supported .sponsor-item {
    width: 130px;
    height: 68px;
  }

  .sponsor-grid-supported .sponsor-item img {
    max-height: 52px;
  }


  /* Platinum */

  .sponsor-grid-platinum {
    gap: 24px;
  }

  .sponsor-grid-platinum .sponsor-item {
    width: 145px;
    height: 92px;
  }

  .sponsor-grid-platinum .sponsor-item img {
    max-height: 78px;
  }


  /* Fellowship */

  .sponsor-grid-fellowship .sponsor-item {
    width: 220px;
    height: 92px;
  }

  .sponsor-grid-fellowship .sponsor-item img {
    max-height: 70px;
  }


  /* Gold */

  .sponsor-grid-gold {
    gap: 22px 18px;
  }

  .sponsor-grid-gold .sponsor-item {
    width: 135px;
    height: 74px;
  }

  .sponsor-grid-gold .sponsor-item img {
    max-height: 58px;
  }


  /* Lower tiers */

  .sponsor-grid-lower .sponsor-item {
    width: 135px;
    height: 72px;
  }

  .sponsor-grid-lower .sponsor-item img {
    max-height: 56px;
  }

}


/* ======================================================
   ABOUT
====================================================== */

.about-section {
  background: var(--navy);

  color: var(--white);
}

.about-section h2 {
  color: var(--white);
}

.about-section .large-text {
  color: #d5dde3;
}

.about-section .text-link {
  color: var(--white);
}


/* ======================================================
   FOOTER
====================================================== */

.site-footer {
  padding-block: 55px;

  background: var(--navy-dark);

  color: #bdc6cd;

  font-size: 0.86rem;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1fr auto;

  gap: 30px;
}

.site-footer strong {
  color: var(--white);

  font-size: 1.1rem;
}

.footer-links {
  display: flex;

  gap: 22px;

  align-items: flex-start;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  grid-column: 1 / -1;

  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,0.1);
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 950px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;

    top: 76px;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 20px;

    background: var(--white);

    border-bottom: 1px solid var(--grey-light);

    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > a {
    padding: 13px 5px;
  }

  .main-nav .button {
    margin-top: 12px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-card:nth-child(2) {
    border-right: 0;
  }

  .quick-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--grey-light);
  }

  .three-column-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 250px;
  }

  .venue-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

}


@media (max-width: 650px) {

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .hero-content {
    min-height: 560px;

    padding-block: 80px;
  }

  .hero-location {
    font-size: 1.1rem;
  }

  .event-dates {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .date-divider {
    width: 50px;
    height: 1px;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-links {
    margin-top: 0;
  }

  .quick-grid {
    grid-template-columns: 1fr;

    border-radius: 0;
  }

  .quick-card {
    min-height: 180px;

    border-right: 0;
    border-bottom: 1px solid var(--grey-light);
  }

  .quick-card:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 75px;
  }

  .section-heading {
    align-items: flex-start;

    flex-direction: column;

    margin-bottom: 35px;
  }

  .schedule-row {
    grid-template-columns: 75px 1fr;

    gap: 15px;
  }

  .venue-visual,
  .mountain-art {
    min-height: 300px;
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;

    gap: 10px;
  }

}

/* ======================================================
   FINAL SINGLE-PAGE UPDATES
====================================================== */

section[id] {
  scroll-margin-top: 95px;
}

.workshop-card {
  color: inherit;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.workshop-card:hover {
  transform: translateY(-3px);
  border-color: #c8d0d6;
  box-shadow: 0 12px 30px rgba(10, 24, 40, 0.08);
}

.workshop-card:hover .text-link {
  text-decoration: underline;
}

/* Full conference programme */

.schedule-row {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 38px;
  padding: 32px 0;
}

.schedule-row time {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.session-label {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session-chair {
  margin-bottom: 22px !important;
  color: var(--grey);
  font-size: 0.88rem;
}

.programme-talks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-talks li {
  padding: 15px 0;
  border-top: 1px solid rgba(16, 38, 61, 0.09);
}

.programme-talks li:first-child {
  border-top: 0;
}

.programme-talks strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.45;
}

.programme-talks span {
  display: block;
  margin-top: 3px;
  color: var(--grey);
  font-size: 0.86rem;
}

.schedule-break,
.schedule-admin {
  padding-top: 18px;
  padding-bottom: 18px;
}

.schedule-break h3,
.schedule-admin h3 {
  margin: 0;
  font-size: 0.95rem;
}

/* Keep logistics visible, but quieter than technical sessions. */
.schedule-admin time {
  color: var(--grey);
  font-size: 0.88rem;
}

.schedule-admin h3 {
  color: var(--grey);
  font-weight: 600;
}

.schedule-break {
  background: rgba(16, 38, 61, 0.025);
}

/* Venue map layout */

.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

@media (max-width: 950px) {
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 650px) {
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .schedule-row time {
    font-size: 0.85rem;
  }

  .programme-talks li {
    padding: 13px 0;
  }
}

/* ======================================================
   SPEAKER MODAL VISIBILITY FIX
   The placeholder has display:flex for its visible state,
   so explicitly honour the hidden attribute in the modal.
====================================================== */

.speaker-modal-photo[hidden],
.speaker-modal-placeholder[hidden] {
  display: none !important;
}


/* ======================================================
   PROGRAMME ↔ SPEAKER BIO LINKS
====================================================== */

.programme-speaker-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(16, 38, 61, 0.25);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.programme-speaker-link:hover,
.programme-speaker-link:focus-visible {
  color: var(--navy);
  text-decoration-color: currentColor;
}

.programme-speaker-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.speaker-modal-talk-links {
  display: grid;
  gap: 8px;
}

.speaker-modal-talk-links a {
  display: block;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.speaker-modal-talk-links a::after {
  content: "  →";
  color: var(--gold);
}

.speaker-modal-talk-links a:hover,
.speaker-modal-talk-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.programme-talk-item {
  scroll-margin-top: 110px;
  border-radius: 6px;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.programme-talk-item.programme-talk-highlight {
  background: rgba(185, 154, 82, 0.13);
  box-shadow: 0 0 0 8px rgba(185, 154, 82, 0.13);
}
