:root {
  color-scheme: dark;
  --bg: #0b0a10;
  --surface: #15131d;
  --surface-2: #1d1a27;
  --text: #f8f7fb;
  --muted: #a7a2b3;
  --line: #302b3d;
  --accent: #ff3b30;
  --accent-2: #f2c14e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(255, 59, 48, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 10, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav .active,
.site-footer a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.live-pill,
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.live-pill {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
}

.live-pill i,
.on-air span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.65);
  animation: pulse 1.8s infinite;
}

.ticker {
  display: flex;
  min-height: 2.7rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #100e16;
}

.ticker-label {
  z-index: 2;
  display: grid;
  min-width: max-content;
  place-items: center;
  padding-inline: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ticker-window {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 100%;
  align-items: center;
  gap: 3rem;
  padding-left: 100%;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.ticker-item {
  color: var(--muted);
  font-size: 0.86rem;
}

.ticker-item strong {
  color: var(--text);
}

.page-shell {
  width: min(1500px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.hero-grid,
.utility-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
}

.utility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), #100f16);
  box-shadow: var(--shadow);
}

.broadcast-card,
.chat-card,
.countdown-card,
.poll-card,
.ask-card,
.topics-panel {
  padding: 1.1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-heading.compact {
  margin-bottom: 0.75rem;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-bottom: 0.45rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.on-air {
  color: #fff;
  font-size: 0.72rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050507;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.video-placeholder strong {
  color: var(--text);
  font-size: 1.25rem;
}

.video-placeholder code {
  color: var(--accent-2);
}

.broadcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.broadcast-meta p {
  margin-bottom: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

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

.button.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.chat-card {
  min-height: 100%;
}

.chat-frame-wrap {
  min-height: 480px;
}

.chat-frame-wrap iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08070b;
}

.mobile-chat-fallback {
  display: none;
  min-height: 300px;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.chat-icon {
  font-size: 2.4rem;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.78rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.countdown div {
  padding: 0.8rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.countdown span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.poll-options {
  display: grid;
  gap: 0.65rem;
}

.poll-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.poll-option:hover,
.poll-option:focus-visible {
  border-color: var(--accent-2);
}

.poll-result {
  grid-column: 1 / -1;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #282331;
}

.poll-result span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ask-card form {
  display: grid;
  gap: 0.8rem;
}

.ask-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0d0b12;
  color: var(--text);
}

input {
  min-height: 2.7rem;
  padding: 0 0.8rem;
}

textarea {
  min-height: 110px;
  padding: 0.8rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent-2);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-message {
  min-height: 1.4rem;
  margin: 0.7rem 0 0;
  color: var(--accent-2);
}

.topics-panel {
  margin-top: 1rem;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topic-chip {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(255, 59, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .chat-frame-wrap {
    display: none;
  }

  .mobile-chat-fallback {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-copy small,
  .live-pill {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0.55rem 0.8rem;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .top-nav.open {
    display: flex;
  }

  .broadcast-meta,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .broadcast-meta {
    display: flex;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


.page-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:1rem}
.page-hero.compact{grid-template-columns:1fr}
.hero-copy{display:grid;min-height:420px;align-content:center;padding:clamp(2rem,6vw,5rem)}
.hero-copy h1,.page-title{margin:0;font-size:clamp(3rem,8vw,6rem);line-height:.92;letter-spacing:-.055em}
.hero-copy h2{margin:.8rem 0 0;color:var(--accent-2)}
.hero-copy p{max-width:760px;color:var(--muted);line-height:1.75}
.hero-media{min-height:420px;background:linear-gradient(rgba(11,10,16,.12),rgba(11,10,16,.72)),url("../Who_th_F_is_JayG_Media_Files/IMG_0347.jpeg") center/cover no-repeat}
.section{margin-top:1rem;padding:clamp(1.2rem,3vw,2rem)}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.section-heading h2,.card h2,.card h3{margin:0}
.section-heading p{max-width:650px;margin:0;color:var(--muted)}
.grid-2,.grid-3,.gallery-grid{display:grid;gap:1rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3,.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{padding:1.25rem;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.card p{color:var(--muted);line-height:1.65}
.button-row{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem}
.gallery-item{overflow:hidden;min-height:280px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.gallery-item img{width:100%;height:100%;object-fit:cover}
.placeholder{display:grid;min-height:240px;place-items:center;padding:2rem;color:var(--muted);text-align:center}
.contact-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:1rem}
.contact-form{display:grid;gap:.85rem}
.contact-form label{display:grid;gap:.4rem;color:var(--muted);font-size:.84rem}
.site-header .top-nav a.active{color:var(--text)}
@media(max-width:1000px){.page-hero,.contact-grid{grid-template-columns:1fr}.grid-3,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.grid-2,.grid-3,.gallery-grid{grid-template-columns:1fr}.hero-copy{min-height:350px;padding:2rem}.section-heading{align-items:flex-start;flex-direction:column}}


.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #050507;
}

.youtube-video-card {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.youtube-video-card h3 {
  margin: 0;
}

.youtube-video-card .button {
  justify-self: start;
}

/* Shows page */
.shows-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);min-height:520px;overflow:hidden;padding:clamp(2rem,6vw,5rem);background:radial-gradient(circle at 78% 35%,rgba(171,255,50,.15),transparent 27%),linear-gradient(135deg,#17151f 0%,#0c0b11 58%,#190812 100%)}
.shows-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 48%,rgba(128,0,35,.24) 48.2%,transparent 49%);pointer-events:none}
.shows-hero-copy{position:relative;z-index:1;align-self:center;max-width:730px}
.shows-hero h1{margin:.2rem 0 1.25rem;font-size:clamp(3.8rem,9vw,8.8rem);line-height:.75;letter-spacing:-.075em;text-transform:uppercase}
.shows-hero h1 em{color:var(--accent);font-style:normal}
.shows-hero-copy>p{max-width:620px;color:var(--muted);font-size:clamp(1rem,2vw,1.25rem);line-height:1.7}
.shows-hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.75rem}
.shows-hero-mark{position:relative;display:grid;place-content:center;align-self:center;justify-self:center;width:min(28vw,340px);aspect-ratio:1;border:2px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 18px rgba(255,255,255,.025),0 0 90px rgba(128,0,35,.3);transform:rotate(-5deg);text-align:center}
.shows-hero-mark::after{content:"";position:absolute;inset:12%;border:1px solid rgba(171,255,50,.35);border-radius:50%}
.shows-hero-mark span,.shows-hero-mark strong{position:relative;z-index:1;font-weight:950;line-height:.72;letter-spacing:-.08em}
.shows-hero-mark span{font-size:clamp(2rem,5vw,4.8rem)}
.shows-hero-mark strong{color:var(--accent);font-size:clamp(4rem,10vw,9rem)}
.shows-hero-mark small{position:relative;z-index:1;margin-top:.8rem;color:var(--muted);font-weight:900;letter-spacing:.28em}
.shows-library{padding:clamp(2rem,5vw,4rem) 0}
.shows-library-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem;padding:0 .25rem}
.shows-library-heading h2{margin:0;font-size:clamp(2rem,4vw,3.6rem)}
.shows-library-heading p{max-width:420px;margin:0;color:var(--muted);line-height:1.6}
.shows-video-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}
.youtube-video-card{display:block;overflow:hidden;gap:0;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(32,29,43,.96),rgba(15,14,20,.96));box-shadow:0 20px 45px rgba(0,0,0,.2)}
.youtube-video-card-lead{grid-column:1/-1}
.youtube-video-card-lead .video-frame{aspect-ratio:16/8}
.youtube-video-meta{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem;padding:1.15rem 1.25rem}
.youtube-video-number{color:var(--accent);font-size:.78rem;font-weight:950;letter-spacing:.14em}
.youtube-video-meta .eyebrow{margin-bottom:.2rem}
.youtube-video-meta h3{margin:0;font-size:clamp(1.05rem,2vw,1.45rem)}
.video-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(171,255,50,.35);border-radius:50%;color:var(--accent);font-size:1.35rem;transition:transform .2s ease,background .2s ease,color .2s ease}
.video-arrow:hover,.video-arrow:focus-visible{transform:translateY(-2px);background:var(--accent);color:#10100f}
@media(max-width:800px){.shows-hero{grid-template-columns:1fr;min-height:auto}.shows-hero-mark{display:none}.shows-video-layout{grid-template-columns:1fr}.youtube-video-card-lead{grid-column:auto}.youtube-video-card-lead .video-frame{aspect-ratio:16/9}.shows-library-heading{align-items:flex-start;flex-direction:column;gap:.6rem}}

.media-details {
  display: grid;
  align-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.media-details p {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.filter-button {
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.gallery-item {
  position: relative;
  cursor: zoom-in;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.8rem .85rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.9);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: 14px;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent-2);
}

.form-status.error {
  color: #ff8078;
}

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


/* Jay-G official logo */
.brand-logo {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: #050505;
  box-shadow: 0 0 0 1px var(--line);
}

@media (max-width: 760px) {
  .brand-logo {
    width: 2.85rem;
    height: 2.85rem;
    flex-basis: 2.85rem;
  }
}


/* V7 homepage brand logo */
.brand-logo {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 3.15rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: #050505;
  box-shadow:
    0 0 0 1px var(--line),
    0 4px 14px rgba(0, 0, 0, 0.28);
}

@media (max-width: 760px) {
  .brand-logo {
    width: 2.8rem;
    height: 2.8rem;
    flex-basis: 2.8rem;
  }
}


/* V8 social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent);
  background: var(--surface-3);
}

.social-icon {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
}

.footer-social {
  margin-top: 0.75rem;
}

.follow-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.follow-panel p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .follow-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    width: 100%;
  }

  .social-link {
    flex: 1 1 auto;
  }
}


/* V9 homepage-only official logo */
.home-brand-logo {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 3.4rem;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  background: #050505;
  box-shadow:
    0 0 0 1px var(--line),
    0 5px 16px rgba(0, 0, 0, 0.32);
}

@media (max-width: 760px) {
  .home-brand-logo {
    width: 2.9rem;
    height: 2.9rem;
    flex-basis: 2.9rem;
    border-radius: 12px;
  }
}


/* V10 expanded social accounts */
.social-link {
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-1px);
}

.social-facebook:hover,
.social-facebook:focus-visible,
.social-x:hover,
.social-x:focus-visible,
.social-tiktok:hover,
.social-tiktok:focus-visible,
.social-twitch:hover,
.social-twitch:focus-visible,
.social-instagram:hover,
.social-instagram:focus-visible,
.social-youtube:hover,
.social-youtube:focus-visible {
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-link {
    width: 100%;
  }
}


/* V11 header social icons */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.header-social-link {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.header-social-link:hover,
.header-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--surface-3);
}

@media (max-width: 1120px) {
  .header-social {
    gap: 0.25rem;
  }

  .header-social-link {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.75rem;
  }

  .top-nav {
    gap: 0.75rem;
  }
}

@media (max-width: 900px) {
  .header-social {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
}


/* V12 brand-colored social icons with hover/focus labels */
.header-social,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.social-icon-link {
  position: relative;
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  outline: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.social-icon-link img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.42rem;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.social-icon-link:hover,
.social-icon-link:focus-visible,
.social-icon-link:focus {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.08);
}

.social-icon-link::after {
  position: absolute;
  z-index: 80;
  bottom: calc(100% + 0.55rem);
  left: 50%;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #09080d;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  content: attr(data-label);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.social-icon-link:hover::after,
.social-icon-link:focus::after,
.social-icon-link:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.header-social .social-icon-link {
  width: 2rem;
  height: 2rem;
  flex-basis: 2rem;
}

.footer-social .social-icon-link::after {
  bottom: calc(100% + 0.45rem);
}

@media (max-width: 900px) {
  .header-social {
    display: none;
  }
}

@media (hover: none) {
  .social-icon-link:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
