/*
 * LinkedInn v7 Style Sheet
 *
 * This stylesheet defines a minimal, spacious interface inspired by
 * corporate hospitality systems. Colours and spacings are controlled
 * through CSS custom properties to support light and dark themes.
 */

/* Colour variables */
:root {
  --bg-color: #ffffff;
  --surface-color: #f6f6f6;
  --text-color: #0e0e0e;
  --muted-text: #555555;
  --accent-red: #be1a21;
  --accent-blue: #0f4aa9;
  --card-radius: 16px;
  --blur-amount: 1px;
  --logo-filter: invert(0);
}

[data-theme="dark"] {
  --bg-color: #0c0d0f;
  --surface-color: #14161a;
  --text-color: #e4e6eb;
  --muted-text: #8a8e97;
  --card-radius: 16px;
  --blur-amount: 1.5px;
  --logo-filter: invert(1);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  min-height: 100%;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Logo link ensures image aligns centrally and scales properly */
.logo-link {
  display: flex;
  align-items: center;
}

/* Logo wrapper for new structure */
.logo-wrapper {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}
/* Logo sizing: ensure the LinkedInn logo has a strong presence
   Increase the height for better visibility across devices */
.logo-wrapper img {
  /* Increase logo size for better visibility */
  height: 100px;
  width: auto;
}

/* Use separate images for light and dark logos instead of CSS filters */
/* Logo sizes: sync with wrapper so both versions remain consistent */
.logo-light,
.logo-dark {
  height: 100px;
  width: auto;
}
/* Hide dark logo in light mode */
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: inline;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  text-transform: uppercase;
  font-size: 1rem;
}
.site-nav a:hover {
  color: var(--accent-blue);
}
/* underline indicator on hover */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}
.site-nav a:hover::after {
  background-color: var(--accent-blue);
}

/* Theme toggle */
/* Theme toggle slider */
.theme-toggle {
  background-color: var(--surface-color);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 16px;
  width: 50px;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 0;
}
.theme-toggle .toggle-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  transition: transform 0.3s ease;
}
[data-theme="dark"] .theme-toggle {
  background-color: var(--surface-color);
  border: 1px solid rgba(255,255,255,0.25);
}
[data-theme="dark"] .theme-toggle .toggle-knob {
  transform: translateX(26px);
}

/* Hero section */
/* Hero section */
.hero-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  overflow: visible;
  position: relative;
  flex-direction: column;
  align-items: center;
}
.hero-image {
  /* Hide the photographic hero image; use unified hero content instead */
  display: none;
}
/* Hero content: unified layout displayed in both light and dark themes */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}
.hero-message {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  /* Ensure dark mode text is visible by overriding colour */
  color: var(--text-color);
}
/* Crest images: separate light and dark versions to avoid white edges in dark mode */
.crest-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin-bottom: 1rem;
}
.crest-light,
.crest-dark {
  width: 80%;
  height: auto;
}
/* Show only the appropriate crest version depending on theme */
.crest-dark { display: none; }
[data-theme="dark"] .crest-light { display: none; }
[data-theme="dark"] .crest-dark { display: block; }
.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  /* Subtitle inherits text colour for legibility and boldness */
  color: var(--text-color);
}
.inn-bubble {
  display: inline-block;
  background-color: var(--accent-blue);
  color: #fff;
  border-radius: 9999px;
  padding: 0.2em 0.5em;
  font-weight: 600;
  margin-left: 0.4em;
  font-size: 0.9em;
  line-height: 1;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  text-decoration: none;
  /* maintain aspect ratio rather than fixed height */
  aspect-ratio: 16 / 9;
  min-height: 180px;
  display: block;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: blur(var(--blur-amount));
  transform: scale(1.02);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.card:hover .card-image {
  filter: blur(0);
  transform: scale(1.0);
}

.card-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-color);
  pointer-events: none;
  /* Add subtle shadow for readability on varied backgrounds */
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Shared page styles */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.banner {
  width: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Access page */
.access-message {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
}

form.mailing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

form.mailing-list input[type="email"] {
  flex: 1 1 240px;
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form.mailing-list button {
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: var(--accent-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
form.mailing-list button:hover {
  background-color: #0d3b89;
}

/* Event detail page (Room Service) */
.event-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* About page enhancements */
.about-logo {
  max-width: 160px;
  margin: 1rem 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
}

.social-text {
  font-size: 0.95rem;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.social-text:hover {
  opacity: 0.65;
}

/* About page styles */
.about-description {
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  color: var(--text-color);
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.6;
}

.event-poster {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-poster img {
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  display: block;
}

.event-gallery {
  flex: 1 1 300px;
  min-height: 300px;
  background-color: var(--surface-color);
  border-radius: var(--card-radius);
  padding: 1rem;
}

/* Back link for event pages */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Archive albums grid */
.albums {
  display: grid;
  /* Keep album covers sized for comfortable browsing without requiring scroll */
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.album-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background-color: var(--surface-color);
  text-decoration: none;
  /* Square album cards reminiscent of music playlists */
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

.album-card img {
  width: 100%;
  height: 100%;
  /* Fill the square album card completely since the image is already square */
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover img {
  transform: scale(1.02);
}

/* Album title overlay appears when hovering */
.album-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-color);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* subtle translucent backdrop for readability */
  background-color: rgba(255,255,255,0.6);
  padding: 0.4rem 0;
}

.album-card:hover .album-title {
  opacity: 1;
}

/* Archive listing */
.event-details {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.event-details strong {
  display: block;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* Responsive design */
@media (max-width: 600px) {
  .site-nav {
    gap: 1rem;
  }
  .card-label {
    font-size: 1.2rem;
  }
  .hero-image {
    border-radius: 0;
  }
}

/* === LinkedInn v13 precision overrides === */
.site-header {
  min-height: 96px;
  padding: 0.8rem 1.75rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-wrapper img,
.logo-light,
.logo-dark {
  height: 132px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

.site-nav {
  gap: 1.85rem;
  align-items: center;
}

.site-nav a {
  text-transform: uppercase !important;
  font-size: 1.05rem !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-bottom: 6px;
}

.site-nav a::after {
  height: 3px !important;
  border-radius: 99px;
}

.theme-toggle {
  width: 52px !important;
  height: 28px !important;
  border-radius: 999px !important;
}

.theme-toggle .toggle-knob {
  width: 24px !important;
  height: 24px !important;
  top: 1px !important;
  left: 1px !important;
}

[data-theme="dark"] .theme-toggle .toggle-knob {
  transform: translateX(24px) !important;
}

.hero-content {
  display: flex !important;
  max-width: 620px;
  padding: 2.2rem 1rem 1.6rem;
}

.hero-message {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  color: var(--text-color);
  text-transform: uppercase;
}

.crest-container {
  max-width: 560px !important;
}

.crest-light,
.crest-dark {
  width: 82% !important;
  max-width: 520px;
}

[data-theme="dark"] .crest-dark {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

[data-theme="dark"] .crest-light {
  display: none !important;
}

.card {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.055);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.34), rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.02));
  pointer-events: none;
}

.card-image {
  filter: blur(1px) saturate(0.98) !important;
  transform: scale(1.01) !important;
  object-fit: contain !important;
}

.card:hover .card-image {
  filter: blur(0) saturate(1) !important;
  transform: scale(1) !important;
}

.card-label {
  z-index: 3;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.42);
  text-transform: uppercase;
}

[data-theme="dark"] .card {
  background: #111 !important;
  border-color: rgba(255,255,255,0.12);
}

.banner img {
  object-fit: contain !important;
  background: #fff;
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 92px !important;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.9rem !important;
  }

  .cards {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* === LinkedInn v14 final polish === */
.logo-wrapper img,
.logo-light,
.logo-dark {
  height: 182px !important;
  width: auto !important;
  max-width: none !important;
}

.site-header {
  min-height: 108px !important;
  padding: 0.55rem 1.75rem !important;
}

.site-nav {
  gap: 2rem !important;
}

.site-nav a {
  text-transform: uppercase !important;
  font-size: 1.18rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.hero-message {
  font-size: 1.82rem !important;
}

.hero-subtitle {
  font-size: 1.52rem !important;
  font-weight: 800 !important;
}

.crest-container {
  max-width: 560px !important;
}

.crest-light,
.crest-dark {
  display: block;
  width: 88% !important;
  max-width: 540px !important;
  height: auto !important;
  filter: none !important;
}

.crest-dark { display: none !important; }
[data-theme="dark"] .crest-light { display: block !important; }
[data-theme="dark"] .crest-dark { display: none !important; }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.30), rgba(0,0,0,0.10) 52%, rgba(0,0,0,0.02));
  pointer-events: none;
  z-index: 1;
}

.card-label {
  z-index: 3 !important;
  color: #ffffff !important;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45) !important;
}

@media (max-width: 760px) {
  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 126px !important;
  }
  .site-nav a {
    font-size: 0.95rem !important;
  }
}


/* === LinkedInn v15 final refinement === */
:root {
  --divider-color: rgba(0,0,0,0.14);
}
[data-theme="dark"] {
  --divider-color: rgba(255,255,255,0.16);
}
.site-header {
  min-height: 88px !important;
  padding: 0.6rem 1.5rem !important;
  border-bottom: 2px solid var(--divider-color) !important;
}
.logo-wrapper {
  margin-right: 1.1rem !important;
}
.logo-wrapper img,
.logo-light,
.logo-dark {
  height: 78px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}
.site-nav {
  gap: 2rem !important;
}
.site-nav a {
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}
.site-nav a::after {
  height: 3px !important;
}
.crest-container {
  max-width: 560px !important;
}
.crest-light {
  display: block !important;
  width: 88% !important;
  max-width: 540px !important;
  height: auto !important;
}
.crest-dark,
[data-theme="dark"] .crest-dark {
  display: none !important;
}
[data-theme="dark"] .crest-light {
  display: block !important;
}
.card-label {
  color: #ffffff !important;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.48) !important;
}
.card::after {
  background: linear-gradient(to top, rgba(0,0,0,0.34), rgba(0,0,0,0.10) 54%, rgba(0,0,0,0.02)) !important;
}
@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem !important;
  }
  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 62px !important;
  }
  .site-nav a {
    font-size: 0.92rem !important;
  }
}


/* === LinkedInn v16 precision finish === */
:root {
  --divider-color: rgba(0,0,0,0.16);
}
[data-theme="dark"] {
  --divider-color: rgba(255,255,255,0.18);
}
.site-header {
  min-height: 78px !important;
  padding: 0.45rem 1.4rem !important;
  border-bottom: 2px solid var(--divider-color) !important;
}
.logo-wrapper {
  margin-right: 0.9rem !important;
}
.logo-wrapper img,
.logo-light,
.logo-dark {
  height: 70px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}
.site-nav {
  gap: 1.8rem !important;
}
.site-nav a {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}
.theme-toggle {
  width: 48px !important;
  height: 26px !important;
}
.hero-section {
  margin: 0.4rem auto 0.15rem !important;
}
.hero-content {
  max-width: 560px !important;
  padding: 0.6rem 1rem 0.35rem !important;
}
.hero-message {
  font-size: 1.68rem !important;
  margin-bottom: 0.55rem !important;
}
.crest-container {
  max-width: 500px !important;
  margin-bottom: 0.45rem !important;
}
.crest-light {
  width: 76% !important;
  max-width: 430px !important;
  height: auto !important;
  display: block !important;
}
.crest-dark,
[data-theme="dark"] .crest-dark {
  display: none !important;
}
[data-theme="dark"] .crest-light {
  display: block !important;
}
.hero-subtitle {
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
.cards {
  gap: 1rem !important;
  padding: 0 1.4rem 0.9rem !important;
  max-width: 1180px !important;
}
.card {
  min-height: 160px !important;
}
.card-label {
  color: #ffffff !important;
  font-size: 1.24rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5) !important;
}
.card::after {
  background: linear-gradient(to top, rgba(0,0,0,0.32), rgba(0,0,0,0.10) 54%, rgba(0,0,0,0.02)) !important;
}
@media (min-width: 901px) {
  .home-page {
    overflow: hidden;
  }
  .home-page main {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .home-page .cards {
    margin-top: 0.3rem;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0.75rem 1rem !important;
  }
  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 54px !important;
  }
  .site-nav {
    gap: 0.85rem !important;
  }
  .site-nav a {
    font-size: 0.88rem !important;
  }
  .hero-content {
    padding-top: 0.35rem !important;
  }
  .hero-message {
    font-size: 1.35rem !important;
  }
  .hero-subtitle {
    font-size: 1.06rem !important;
  }
  .card {
    min-height: 145px !important;
  }
}


/* === LinkedInn v17 micro-tune === */
:root {
  --divider-color: rgba(0,0,0,0.16);
}
[data-theme="dark"] {
  --divider-color: rgba(255,255,255,0.18);
}
.site-header {
  min-height: 74px !important;
  padding: 0.55rem 1.4rem !important;
  border-bottom: 2px solid var(--divider-color) !important;
  justify-content: space-between !important;
}
.logo-wrapper {
  margin-right: 1rem !important;
  flex: 0 0 auto;
}
.logo-wrapper img,
.logo-light,
.logo-dark {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav {
  gap: 1.35rem !important;
  align-items: center;
}
.site-nav a {
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}
.theme-toggle {
  width: 46px !important;
  height: 24px !important;
  flex: 0 0 auto;
}
.theme-toggle .toggle-knob {
  width: 20px !important;
  height: 20px !important;
}
[data-theme="dark"] .theme-toggle .toggle-knob {
  transform: translateX(22px) !important;
}
.hero-section {
  margin: 0.55rem auto 0.25rem !important;
}
.hero-content {
  max-width: 520px !important;
  padding: 0.55rem 1rem 0.2rem !important;
}
.hero-message {
  font-size: 1.56rem !important;
  margin-bottom: 0.45rem !important;
}
.crest-container {
  max-width: 450px !important;
  margin-bottom: 0.35rem !important;
}
.crest-light {
  width: 72% !important;
  max-width: 360px !important;
  height: auto !important;
  display: block !important;
}
.crest-dark,
[data-theme="dark"] .crest-dark {
  display: none !important;
}
[data-theme="dark"] .crest-light {
  display: block !important;
}
.hero-subtitle {
  font-size: 1.16rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
.cards {
  gap: 1rem !important;
  padding: 0 1.4rem 1.1rem !important;
  max-width: 1160px !important;
  margin-top: 0.6rem !important;
}
.card {
  min-height: 150px !important;
}
.card-label {
  font-size: 1.2rem !important;
}
@media (min-width: 901px) {
  .home-page {
    overflow: hidden;
  }
  .home-page main {
    min-height: calc(100vh - 74px);
    height: calc(100vh - 74px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.15rem;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0.7rem 0.9rem !important;
    gap: 0.8rem;
  }
  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 48px !important;
  }
  .header-actions {
    gap: 0.65rem;
  }
  .site-nav {
    gap: 0.8rem !important;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-nav a {
    font-size: 0.84rem !important;
  }
  .hero-content {
    padding-top: 0.35rem !important;
  }
  .hero-message {
    font-size: 1.28rem !important;
  }
  .crest-light {
    max-width: 300px !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
  }
}




/* === LinkedInn v20 recovery final === */
html, body {
  background: #ffffff !important;
  color: #0e0e0e !important;
}

.site-header {
  min-height: 78px !important;
  padding: 0.65rem 1.5rem !important;
  border-bottom: 2px solid rgba(0,0,0,0.14) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.logo-wrapper {
  margin-right: 1rem !important;
  flex: 0 0 auto !important;
}

.logo-wrapper img,
.logo-light {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain !important;
  display: block !important;
}

.logo-dark {
  display: none !important;
}

.header-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

.site-nav {
  display: flex !important;
  gap: 1.35rem !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.site-nav a {
  text-transform: uppercase !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #0e0e0e !important;
}

.site-nav a:hover {
  color: var(--accent-blue) !important;
}

.theme-toggle {
  display: none !important;
}

.hero-section {
  margin: 0.65rem auto 0.25rem !important;
}

.hero-content {
  max-width: 540px !important;
  padding: 0.55rem 1rem 0.25rem !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero-message {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.45rem !important;
  color: #0e0e0e !important;
  text-transform: uppercase !important;
}

.crest-container {
  max-width: 440px !important;
  margin-bottom: 0.35rem !important;
}

.crest-light {
  display: block !important;
  width: 74% !important;
  max-width: 350px !important;
  height: auto !important;
}

.crest-dark {
  display: none !important;
}

.hero-subtitle {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: #0e0e0e !important;
  text-transform: uppercase !important;
}

.cards {
  max-width: 1160px !important;
  padding: 0 1.5rem 1.25rem !important;
  gap: 1rem !important;
  margin: 0.55rem auto 0 !important;
}

.card {
  min-height: 150px !important;
  background: #ffffff !important;
}

.card-image {
  object-fit: contain !important;
}

.card::after {
  background: linear-gradient(to top, rgba(0,0,0,0.32), rgba(0,0,0,0.10) 54%, rgba(0,0,0,0.02)) !important;
}

.card-label {
  color: #ffffff !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.48) !important;
}

@media (min-width: 901px) {
  .home-page {
    overflow: hidden !important;
  }

  .home-page main {
    height: calc(100vh - 78px) !important;
    min-height: calc(100vh - 78px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.7rem 0.95rem !important;
  }

  .logo-wrapper img,
  .logo-light {
    height: 46px !important;
  }

  .site-nav {
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
  }

  .site-nav a {
    font-size: 0.82rem !important;
  }

  .hero-message {
    font-size: 1.25rem !important;
  }

  .crest-light {
    max-width: 290px !important;
  }

  .hero-subtitle {
    font-size: 0.98rem !important;
  }
}

/* === LinkedInn v_mobile_header_fix === */
/*
 * On narrow viewports (≤760px), stack the header contents vertically,
 * center the logo and place navigation below the logo. Use CSS !important
 * to override previous declarations without modifying desktop layout.
 */
@media (max-width: 760px) {
  /* Stack header vertically and center all contents */
  .site-header {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 1px solid var(--divider-color) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  /* Remove the right margin on logo wrapper for centering */
  .logo-wrapper {
    margin-right: 0 !important;
  }
  /* Shrink the logo height to free vertical space */
  .logo-wrapper img,
  .logo-light,
  .logo-dark {
    height: 46px !important;
    width: auto !important;
  }
  /* Center the navigation below the logo and allow it to wrap nicely */
  .site-nav {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 0.4rem !important;
    gap: 1rem !important;
  }
  /* Keep navigation link font size consistent for mobile */
  .site-nav a {
    font-size: 0.82rem !important;
  }
}

/* === LinkedInn home page cards mobile centering (v21) === */
/*
 * On mobile (≤760px), center the three home page navigation cards (ACCESS / ARCHIVE / RADIO)
 * by converting the grid into a flex column. This fix targets only the home page.
 */
@media (max-width: 760px) {
  /* Override home page card container to centre cards horizontally on mobile */
  .home-page .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1.5rem !important;
  }
  .home-page .cards .card {
    /* Centre each card horizontally within its container */
    width: 100% !important;
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* === LinkedInn home page cards mobile horizontal centering and overflow fix (v22) === */
/*
 * Additional override for mobile (≤760px) to eliminate horizontal overflow and ensure
 * the three navigation cards (ACCESS / ARCHIVE / RADIO) are perfectly centered
 * within the visible viewport. This does not modify desktop layout.
 */
@media (max-width: 760px) {
  /* Ensure page elements do not extend beyond the viewport and remove horizontal overflow */
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Constrain the main container on the home page */
  .home-page main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Final centering override for the cards container */
  .home-page .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Maintain card widths and centre them horizontally */
  .home-page .cards .card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* === LinkedInn mobile unified centering fix (v23) === */
/*
 * This override ensures that on mobile (≤760px) all elements below the header divider
 * on the home page share the same center axis. It resets overflow and margins
 * so that the hero message, crest image, "NEXT ONE SOON", and navigation cards
 * are all visually centered together. Desktop layout remains unaffected.
 */
@media (max-width: 760px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .home-page main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Ensure hero section, hero content, crest container, and cards align on the same centre axis */
  .home-page .hero-section,
  .home-page .hero-content,
  .home-page .crest-container,
  .home-page .cards {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  /* Centre hero and crest containers */
  .home-page .hero-section,
  .home-page .hero-content,
  .home-page .crest-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Centre cards container and remove extra padding */
  .home-page .cards {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Centre each card */
  .home-page .cards .card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
