/* Color Scheme: Blue And Silver. */

:root{
  --black: #0a0c10;
  --panel: #12151b;
  --panel-line: #24304a;
  --silver: #c7cdd6;
  --silver-dim: #838d9c;
  --royal: #1e4fd6;
  --royal-bright: #3f6bff;
  --radius: 2px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:
    linear-gradient(var(--black), var(--black)),
    repeating-linear-gradient(0deg, rgba(199,205,214,0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(199,205,214,0.035) 0 1px, transparent 1px 28px);
  color: #fff;
  font-family: 'Inter', sans-serif;
  line-height:1.55;
  overflow-x: hidden;
}

.page-wrap{ flex:1 0 auto; }
body > footer{ flex-shrink:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

h1,h2,h3,.display{
  font-family:'Oswald', sans-serif;
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:#fff;
  margin:0;
}

.mono{ font-family:'IBM Plex Mono', monospace; }

a{ color: var(--royal-bright); text-decoration:none;}
a:hover{ text-decoration:underline; }
a:focus-visible, button:focus-visible{ outline:2px solid var(--royal-bright); outline-offset:2px; }

/* ---------- layout shell ---------- */
.wrap{ max-width:1080px; margin:0 auto; padding:0 24px; }

nav.top{
  position:sticky; top:0; z-index:20;
  background:rgba(10,12,16,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--panel-line);
}
nav.top .wrap { 
  max-width: 1280px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 68px; 
  gap: 36px;
}

.brand-lockup{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand-lockup img{ height:60px; width:auto; display:block; }
.brand-lockup .brand{ font-family:'Oswald'; color:#fff; font-size:1.5rem; letter-spacing:0.06em; }
.brand-lockup .brand span{ color:var(--royal-bright); }

nav.top ul { 
  list-style: none; 
  display: flex; 
  gap: 24px; 
  margin: 0; 
  padding: 0; 
  white-space: nowrap; 
}
nav.top a{ color:#fff; font-size:0.85rem; letter-spacing:0.04em; text-transform:uppercase; font-weight:500; }

@media (hover: hover) {
  nav.top a:hover{ color:var(--royal-bright); text-decoration:none; }
}

/* ---------- nav social icons (DESKTOP) ---------- */
nav.top .nav-right {
  display: flex;
  align-items: center;
  gap: 60px; 
}

nav.top .social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 1px solid var(--panel-line);
  padding-left: 40px; 
}

nav.top .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem !important; 
  text-transform: none; 
  transition: color 0.15s ease, transform 0.15s ease;
}

@media (hover: hover) {
  nav.top .social-links a:hover {
    color: var(--royal-bright);
    transform: translateY(-2px);
  }
}

/* ---------- schematic corner-bracket panel ---------- */
.panel{
  position:relative;
  border:1px solid var(--panel-line);
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(63,107,255,0.08), transparent 55%),
    linear-gradient(180deg, #161a22, var(--panel));
  padding:28px;
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 14px 30px -20px rgba(0,0,0,0.7);
}
.panel p, .panel a{
  overflow-wrap:break-word;
  word-break:break-word;
}
.panel::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg, var(--royal-bright), transparent 85%);
  opacity:0.85;
}
/* .bl/.br spans kept in markup for older pages but no longer rendered, the accent bar above replaces the corner-bracket motif */
.panel::after, .panel .bl, .panel .br{ content:none; display:none; }

/* ---------- full-bleed photo hero ---------- */
.hero-photo{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  height: 91.2vh; /* fallback for browsers without svh support */
  height: 91.2svh; /* locks to small (toolbar-visible) viewport so height doesn't shift mid-scroll on mobile */
  min-height: 560px; /* raised floor so button always has room */
  overflow: hidden;
  border-bottom: 1px solid var(--panel-line);
  background-color: var(--black);
}

@media (max-height: 700px){
  .hero-photo{
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }
}

.hero-photo-img{
  grid-area: 1 / 1 / -1 / -1;
  width: 100%;
  height: 100%; /* Changed from auto to 100% to fill the container */
  display: block;
  object-fit: cover;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 65px;
}

.hero-photo-img.active{
  opacity: 1;
}

.hero-photo-overlay{
  grid-area: 1 / 1 / -1 / -1;
  background: rgba(10,12,16,0.3);
  z-index: 1;
}

.hero-photo-content{
  grid-area: 1 / 1 / -1 / -1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.hero-photo-content .eyebrow{ 
  margin-bottom:16px; 
}
.hero-photo-content h1{
  font-size:clamp(2.2rem, 6vw, 4rem);
  line-height:1.05;
  text-shadow:0 2px 20px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.9);
}
.hero-photo-content .sub{
  max-width:600px; margin:20px auto 0;
  color: #fff;
  font-size:1.05rem;
  text-shadow:0 2px 12px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.9);
}
.btn.btn-lg{
  margin-top:30px;
  padding:16px 40px;
  font-size:0.9rem;
  border-radius:999px;
  background:var(--royal);
  border-color:var(--royal);
}
.btn.btn-lg:hover{ background:var(--royal-bright); border-color:var(--royal-bright); }

/* ---------- hero ---------- */ 
.hero{ padding:88px 0 64px; }
.hero .logo-slot{
  width:min(280px, 60vw); height:min(280px, 60vw); margin-bottom:28px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--panel-line); border-radius:var(--radius);
  background:var(--panel);
}
.hero .logo-slot img{ max-width:90%; max-height:90%; }
.hero .logo-slot.sm{ height:120px; width:120px; margin-bottom:24px; border-radius:50%; overflow:hidden; }
.hero .eyebrow{
  font-family:'IBM Plex Mono'; color:var(--royal-bright); font-size:0.8rem;
  letter-spacing:0.12em; text-transform:uppercase; display:block; margin-bottom:18px;
}
.hero h1{ font-size:clamp(2.4rem, 6vw, 4.2rem); line-height:1.02;}
.hero h1 em{ font-style:normal; color:var(--royal-bright); }
.hero p.sub{ max-width:640px; margin-top:20px; color:#fff; font-size:1.05rem; }

/* ---------- team / spec cards ---------- */
.grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:24px; }

/* fixed 2-up grid (team rosters), always wraps at 2 cards per row, regardless of count */
.grid-2col{ display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; }
/* odd one out on its own row: center it instead of stretching full-width */
.grid-2col > :last-child:nth-child(odd){
  grid-column: 1 / -1;
  max-width: calc(50% - 12px);
  margin-inline: auto;
}
@media (max-width:640px){
  .grid-2col{ grid-template-columns:1fr; }
  .grid-2col > :last-child:nth-child(odd){ max-width:none; margin-inline:0; }
}

.card{
  --card-radius: 18px;
  position:relative;
  isolation:isolate;
  border:1px solid var(--panel-line);
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(63,107,255,0.10), transparent 55%),
    linear-gradient(180deg, #161a22, var(--panel));
  border-radius:var(--card-radius);
  padding:26px 24px 24px;
  overflow:hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 14px 30px -18px rgba(0,0,0,0.7);
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card p, .card a, .card h3{
  overflow-wrap:break-word;
  word-break:break-word;
}
/* thin accent bar replaces the old hard-cornered bracket look */
.card::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--royal-bright), transparent 85%);
  opacity:0.85;
}
@media (hover: hover) {
  .card:hover{
    border-color: rgba(63,107,255,0.55);
    transform:translateY(-4px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 22px 40px -18px rgba(9,20,66,0.55);
  }
  a.card:hover{ text-decoration:none; }
  a.card:hover h3{ color:var(--royal-bright); }
}
.card .part-no{
  display:inline-flex;
  align-items:center;
  font-family:'IBM Plex Mono'; font-size:0.68rem; color:var(--royal-bright);
  letter-spacing:0.1em; margin-bottom:14px;
  padding:4px 10px;
  border:1px solid rgba(63,107,255,0.35);
  border-radius:999px;
  background:rgba(63,107,255,0.08);
}
.card h3{ font-size:1.3rem; margin-bottom:6px; letter-spacing:0.01em; }
.card .role{ color:var(--royal-bright); font-family:'IBM Plex Mono'; font-size:0.76rem; margin-bottom:14px; display:block; }
.card p{ color:var(--silver); font-size:0.92rem; margin:0 0 16px; line-height:1.6; }
.card .stats{ display:flex; gap:18px; border-top:1px solid var(--panel-line); padding-top:14px; margin-top:auto; }
.card .stats div{ font-family:'IBM Plex Mono'; font-size:0.78rem; color:var(--silver-dim); }
.card .stats b{ display:block; color:#fff; font-size:1.05rem; font-weight:500; }

/* cards in a grid stretch to equal height, footer/stats pinned to bottom */
.grid .card{ display:flex; flex-direction:column; }

/* ---------- section headers ---------- */
.section{ padding-top:64px; padding-bottom:64px; border-top:1px solid var(--panel-line); }
.section .kicker{
  font-family:'IBM Plex Mono'; color:#fff; font-size:0.78rem;
  letter-spacing:0.1em; text-transform:uppercase; margin-bottom:8px; display:block;
}
.section h2{ font-size:clamp(1.6rem,3.4vw,2.2rem); margin-bottom:28px; }

/* ---------- data table & scroll indicators ---------- */
.table-scroll{ 
  width:100%; 
  overflow-x:auto; 
  -webkit-overflow-scrolling:touch; 
  position: relative;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--panel) 30%, rgba(18, 21, 27, 0)),
    linear-gradient(to right, rgba(18, 21, 27, 0), var(--panel) 70%) 0 100%,
    radial-gradient(farthest-side at 100% 50%, rgba(63, 107, 255, 0.35), rgba(0, 0, 0, 0));
  background-repeat: no-repeat;
  background-size: 40px 100%, 40px 100%, 14px 100%;
  background-position: 0 0, 100% 0, 100% 0;
  background-attachment: local, local, scroll;
}

.table-scroll::-webkit-scrollbar,
pre::-webkit-scrollbar,
code::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.table-scroll::-webkit-scrollbar-track,
pre::-webkit-scrollbar-track,
code::-webkit-scrollbar-track {
  background: var(--black);
}
.table-scroll::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
code::-webkit-scrollbar-thumb {
  background: var(--royal-bright);
  border-radius: 3px;
}
.table-scroll,
pre,
code {
  scrollbar-width: thin;
  scrollbar-color: var(--royal-bright) var(--black);
}

/* Page-wide scrollbar (desktop), same blue theme */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--royal-bright) var(--black);
}
html::-webkit-scrollbar {
  width: 10px;
}
html::-webkit-scrollbar-track {
  background: var(--black);
}
html::-webkit-scrollbar-thumb {
  background: var(--royal-bright);
  border-radius: 3px;
  border: 2px solid var(--black);
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--royal);
}

table{ width:100%; min-width:640px; border-collapse:collapse; table-layout:fixed; font-family:'IBM Plex Mono'; font-size:0.85rem; }
th{ text-align:left; color:#fff; font-weight:500; text-transform:uppercase; letter-spacing:0.06em; font-size:0.72rem; padding:10px 12px; border-bottom:1px solid var(--panel-line); }
td{ padding:14px 12px; border-bottom:1px solid var(--panel-line); color:#fff; vertical-align:middle; }
@media (hover: hover) {
  tr:hover td{ background:rgba(63,107,255,0.06); }
}

/* events schedule table: sane column proportions instead of auto-stretch */
table.events-table th:nth-child(1), table.events-table td:nth-child(1){ width:24%; white-space:nowrap; }
table.events-table th:nth-child(2), table.events-table td:nth-child(2){ width:20%; }
table.events-table th:nth-child(3), table.events-table td:nth-child(3){ width:20%; }
table.events-table th:nth-child(4), table.events-table td:nth-child(4){ width:26%; }
table.events-table th:nth-child(5), table.events-table td:nth-child(5){ width:10%; text-align:right; }
table.events-table th:nth-child(5){ text-align:right; }

/* team pills inside the events table */
.team-pills{ display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
.team-pill{
  display:inline-block; font-size:0.68rem; letter-spacing:0.01em;
  padding:2px 7px; border-radius:999px;
  border:1px solid rgba(63,107,255,0.35); background:rgba(63,107,255,0.08);
  color:var(--royal-bright); white-space:nowrap;
}

/* result status badge */
.result-badge{
  display:inline-block; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.05em;
  padding:4px 10px; border-radius:999px; font-weight:500; white-space:nowrap;
}
.result-badge.is-upcoming{ background:rgba(63,107,255,0.12); color:var(--royal-bright); border:1px solid rgba(63,107,255,0.35); }
.result-badge.is-win{ background:rgba(46,204,113,0.12); color:#3fd77c; border:1px solid rgba(46,204,113,0.35); }
.result-badge.is-loss{ background:rgba(230,70,70,0.12); color:#ef6b6b; border:1px solid rgba(230,70,70,0.35); }
.result-badge.is-neutral{ background:rgba(255,255,255,0.06); color:var(--silver-dim); border:1px solid var(--panel-line); }

@media (max-width:640px){
  table.events-table{ min-width:560px; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; font-family:'IBM Plex Mono'; font-size:0.82rem; letter-spacing:0.04em;
  padding:12px 22px; border:1px solid var(--royal-bright); color:#fff; border-radius:var(--radius);
  text-transform:uppercase;
  background: transparent; 
}
.btn:hover{ background:var(--royal); border-color:var(--royal); text-decoration:none; }

.btn.ghost{ 
  border-color:var(--panel-line); 
  color:#fff; 
  background: transparent; 
}
.btn.ghost:hover{ background:var(--panel-line); }

.btn.btn-round{ border-radius:999px; }

.share-icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem !important;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Gallery & Folder Switcher Styles ---------- */
.folder-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.folder-btn {
  cursor: pointer;
  font-size: 0.78rem;
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.folder-btn.active {
  background: var(--royal-bright);
  border-color: var(--royal-bright);
  color: #ffffff;
}

.gallery-folder {
  margin-bottom: 56px;
}

.folder-title {
  font-family: 'Oswald', sans-serif;
  color: var(--silver);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--panel-line);
  padding-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: linear-gradient(180deg, #161a22, var(--panel));
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 14px 30px -22px rgba(0,0,0,0.7);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Sponsors & Cards Grid Styles (3 per row, rounded corners) ---------- */
.card:has(.sponsor-logo),
#sponsors-grid .card {
  text-align: center;
  border-radius: 24px;
  padding: 24px;
  box-sizing: border-box;
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.sponsor-card {
  cursor: pointer;
}

#sponsors-grid .sponsor-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 16px;
}

#sponsors-grid .sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ---------- Sponsor Detail Modal Styles ---------- */
.sponsor-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sponsor-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-modal-content {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 40px 32px 32px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.7);
}

.sponsor-modal-content .lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
}

.sponsor-modal-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px auto;
  background: var(--black);
  border-radius: 16px;
  border: 1px solid var(--panel-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.sponsor-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.sponsor-modal-content h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #fff;
}

.sponsor-modal-content p {
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (hover: hover) {
  .gallery-item:hover {
    border-color: var(--royal-bright);
    transform: translateY(-2px);
  }
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: var(--black);
  cursor: zoom-in;
}

.gallery-item .meta {
  padding-top: 12px;
}

.gallery-item h4 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.gallery-item .desc {
  font-size: 0.85rem;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: var(--black);
}

.lightbox-caption {
  margin-top: 16px;
  color: #ffffff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  text-align: center;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--silver);
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Oswald', sans-serif;
  transition: color 0.15s ease;
}

.lightbox-close:hover {
  color: var(--royal-bright);
}

.folder-nav {
  justify-content: center;
}

@media (hover: hover) {
  .share-icon-btn:hover {
    color: var(--royal-bright);
    transform: translateY(-2px);
  }
}

/* Custom Share Modal Overlay */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.share-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.share-modal-content {
  width: 100%;
  max-width: 480px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.share-modal-header h3 {
  font-size: 1.2rem;
}
.share-modal-header .lightbox-close {
  position: static;
  font-size: 1.8rem;
}

.share-options-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  text-align: center;
  color: #fff;
  font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .share-item:hover {
    color: var(--royal-bright);
    text-decoration: none;
  }
}
.share-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
}

.share-link-box {
  display: flex;
  align-items: center;
  background: var(--black);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
}
.share-link-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  width: 100%;
  outline: none;
}
#share-copy-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
#share-copy-btn:hover {
  background: var(--royal-bright);
  color: #ffffff;
}

/* ---------- iPad Desktop Version Overrides ---------- */
body.is-ipad nav.top .nav-right { 
  flex-direction: row; 
  gap: 60px; 
  width: auto; 
}
body.is-ipad nav.top .social-links { 
  border-left: 1px solid var(--panel-line); 
  border-top: none; 
  padding-left: 40px; 
  padding-top: 0; 
  width: auto; 
  justify-content: flex-start; 
}
body.is-ipad nav.top ul {
  gap: 24px; 
  flex-wrap: nowrap; 
  justify-content: flex-start;
  width: auto;
}
body.is-ipad nav.top a { font-size: 0.85rem; }
body.is-ipad nav.top .wrap { 
  flex-direction: row; 
  height: 68px; 
  padding: 0 24px; 
  gap: normal; 
}
body.is-ipad .hero-photo-content h1 { 
  display: block; 
}
body.is-ipad .btn.btn-lg { 
  width: auto; 
}

/* ---------- footer ---------- */
/* ---------- changelog / "what's new" list ---------- */
.changelog-list{ display:flex; flex-direction:column; gap:0; }
.changelog-entry{ padding:18px 0; border-bottom:1px solid var(--panel-line); }
.changelog-entry:last-child{ border-bottom:none; padding-bottom:0; }
.changelog-entry:first-child{ padding-top:0; }
.changelog-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
.changelog-version{ font-family:'IBM Plex Mono', monospace; font-weight:600; color:#fff; font-size:0.95rem; }
.changelog-badge{
  font-family:'IBM Plex Mono', monospace; font-size:0.68rem; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--royal-bright); border:1px solid var(--royal-bright);
  border-radius:999px; padding:2px 9px;
}
.changelog-date{ color:var(--silver-dim); font-size:0.78rem; margin-left:auto; }
.changelog-entry ul{ margin:0; padding-left:18px; color:#fff; font-size:0.92rem; }
.changelog-entry li{ margin:4px 0; }
.changelog-older{ display:flex; flex-direction:column; }
.changelog-toggle{
  display:flex; align-items:center; gap:8px; margin-top:16px;
  background:none; border:1px solid var(--panel-line); border-radius:999px;
  color:#fff; font-family:'IBM Plex Mono', monospace; font-size:0.78rem;
  text-transform:uppercase; letter-spacing:0.06em; padding:8px 16px;
  cursor:pointer; transition:border-color 0.15s, color 0.15s;
}
.changelog-toggle[hidden]{ display:none; }
.changelog-toggle:hover{ border-color:var(--royal-bright); color:var(--royal-bright); }
.changelog-toggle i{ font-size:0.7rem; }

footer{ border-top:1px solid var(--panel-line); padding:40px 0; color:#fff; font-size:0.85rem; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
footer .foot-brand{ display:flex; align-items:center; gap:10px; }
footer .foot-brand img{ height:24px; width:auto; opacity:0.85; }

/* ---------- responsive ---------- */
@media (max-width:1250px){
  nav.top ul{ gap:14px; }
  nav.top .nav-right{ gap:20px; }
  nav.top a{ font-size:0.78rem; }
  .brand-lockup .brand{ font-size:1.2rem; }
  .brand-lockup img{ height:48px; }
}

@media (max-width:900px){
  .wrap{ padding:0 18px; }
  .grid{ grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px; }
}

@media (max-width:640px){
  .wrap{ padding:0 24px; }

  nav.top .nav-right { 
    flex-direction: column; 
    gap: 14px; 
    width: 100%; 
  }
  
  nav.top .social-links { 
    border-left: none; 
    border-top: none; 
    padding-left: 0; 
    padding-top: 8px; 
    width: 100%; 
    justify-content: center; 
  }

  nav.top ul{
    gap:10px 16px; flex-wrap:wrap; justify-content:center; text-align:center;
    width:100%;
  }
  nav.top a{ font-size:0.78rem; }
  nav.top .wrap{ flex-direction:column; height:auto; padding:16px 24px; gap:14px; border-bottom:none; }
  .brand-lockup{ justify-content:center; width:100%; }
  .brand-lockup img{ height:44px; }
  .brand-lockup .brand{ font-size:1.15rem; }

  .hero{ padding:48px 0 32px; text-align:center; }
  .hero h1{ font-size:clamp(1.9rem, 9vw, 2.6rem); }
  .hero p.sub{ font-size:0.95rem; margin-left:auto; margin-right:auto; }

  .hero-photo {
    height: 65vh; /* fallback */
    height: 65svh; /* locks to toolbar-visible viewport so it doesn't grow mid-scroll */
    min-height: 480px; 
  }

  .hero-photo-img {
    height: 100% !important; 
    object-fit: cover;
    object-position: 44% 50%;
  }

  .hero-photo-content {
    padding: 40px 20px 32px; 
    justify-content: flex-end;
  }

  .hero-photo-overlay {
    background: rgba(10, 12, 16, 0.15);
  }
  
  .hero-photo-content h1 {
    display: none; 
  }

  .hero-photo-content .eyebrow {
    margin-top: 50px; 
    margin-bottom: 12px;
  }

  .hero-photo-content .sub{ 
    font-size: 0.95rem; 
    margin-top: 8px;
  }

  .btn.btn-lg{ 
    width: 100%; 
    text-align: center; 
    padding: 14px 24px; 
    margin-top: 20px;
  }

  .panel{ padding:18px; text-align:center; border:none; }
  .section{ padding-top:44px; padding-bottom:44px; text-align:center; border-top:none; }
  .section h2{ font-size:1.5rem; margin-bottom:20px; }

  .grid{ grid-template-columns:1fr; gap:14px; }
  .card{ padding:18px; text-align:center; border:none; }
  .card:hover{ transform:none; }
  .card .stats{ justify-content:center; }

  table{ font-size:0.78rem; }
  th, td{ padding:9px 8px; }

  .btn{ padding:12px 18px; font-size:0.78rem; }

  footer{ border-top:none; }
  footer .wrap{ flex-direction:column; text-align:center; }
  footer .foot-brand{ flex-direction:column; }

  .btn-row{ flex-direction:column; }
  .btn-row .btn{ text-align:center; }

  .hero .logo-slot {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .brand-lockup {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  
  .brand-lockup .brand {
    display: block !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
  }

  .brand-lockup .brand span {
    display: block !important;
    text-align: center !important;
  }
}
/* ---------- location / map section (home page) ---------- */
.location-layout{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:22px;
  align-items:stretch;
}

.map-panel{
  padding:0;
  overflow:hidden;
  min-height:460px;
  display:flex;
  border-radius:16px;
}

/* rounded panels in this section shouldn't have the sharp schematic
   corner brackets, hide pseudo-elements too, not just the .bl/.br spans */
.map-panel::before, .map-panel::after,
.map-panel .bl, .map-panel .br,
.info-panel::before, .info-panel::after,
.info-panel .bl, .info-panel .br{
  content:none;
  display:none;
}

.map-frame{
  position:relative;
  width:100%;
  height:100%;
  min-height:460px;
  border-radius:16px;
  overflow:hidden;
}

.map-frame::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:16px;
  box-shadow: inset 0 0 0 1px var(--panel-line), inset 0 0 40px rgba(10,12,16,0.35);
}

.map-frame iframe{
  display:block;
  /* Dark Reader-style recipe: invert lightness, then rotate hue back
     so colors read natural instead of inverted-orange. Tweak hue-rotate
     between 160-200deg to shift the tone greener/bluer. */
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.05) saturate(1.1);
}

.info-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
  border-radius:16px;
}

.info-row{
  display:flex;
  flex-direction:column;
  gap:4px;
  border-bottom:1px solid var(--panel-line);
  padding-bottom:16px;
}
.info-row:last-of-type{ border-bottom:none; padding-bottom:0; }

.info-label{
  font-size:0.72rem;
  color:var(--royal-bright);
  letter-spacing:0.1em;
  text-transform:uppercase;
}

.info-value{
  color:#fff;
  font-size:1.05rem;
  line-height:1.35;
}

.location-btn{
  text-align:center;
  margin-top:4px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.location-btn i{ font-size:0.9rem; }

/* ---------- Fixed Sitewide Notifications & Sticky Nav ---------- */
.site-notifications {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 25;
}

.notification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  text-align: left;
  position: relative;
  border-bottom: 1px solid var(--panel-line);
}

.notification-banner.type-info {
  background: rgba(30, 79, 214, 0.15);
  border-bottom-color: rgba(63, 107, 255, 0.35);
}

.notification-banner.type-warning {
  background: rgba(214, 150, 30, 0.12);
  border-bottom-color: rgba(214, 150, 30, 0.35);
  color: #ffda85;
}

.notification-banner.type-error {
  background: rgba(224, 41, 75, 0.15); 
  border-bottom-color: rgba(224, 41, 75, 0.35);
  color: #ff9fb0;
}

.notification-content {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  padding-right: 12px;
}

.notification-content strong {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
  color: #fff;
}

.notification-close {
  background: none;
  border: none;
  color: var(--silver-dim);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.notification-close:hover {
  color: #fff;
}

/* Ensure sticky navigation stays cleanly positioned below dynamic banners on scroll */
nav.top {
  position: sticky;
  top: var(--notification-height, 0px);
  z-index: 20;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--panel-line);
  transition: top 0.2s ease;
}

/* ---------- Sitewide Announcement Modal Overlay ---------- */
.notification-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.notification-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.notification-modal-content {
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  padding: 36px 32px 32px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.notification-modal-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.notification-list-scroll {
  overflow-y: auto;
  max-height: calc(70vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--royal-bright) var(--black);
}

.notification-modal-item {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: rgba(22, 26, 34, 0.9);
}

.notification-modal-item.type-info {
  background: rgba(30, 79, 214, 0.12);
  border-color: rgba(63, 107, 255, 0.35);
}

.notification-modal-item.type-warning {
  background: rgba(214, 150, 30, 0.1);
  border-color: rgba(214, 150, 30, 0.35);
}

.notification-modal-item.type-warning strong {
  color: #ffda85;
}

.notification-modal-item.type-error {
  background: rgba(224, 41, 75, 0.12);
  border-color: rgba(224, 41, 75, 0.35);
}

.notification-modal-item.type-error strong {
  color: #ff9fb0;
}

.notification-modal-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: #fff;
}

.notification-modal-item p {
  margin: 0;
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .notification-banner {
    padding: 12px 18px;
    align-items: flex-start;
  }
  .notification-content {
    font-size: 0.82rem;
  }
}

@media (max-width:900px){
  .location-layout{ grid-template-columns:1fr; }
  .map-panel{ min-height:340px; }
  .map-frame{ min-height:340px; }
}

@media (max-width:640px){
  .info-panel{ text-align:center; align-items:center; }
  .info-row{ align-items:center; }
}

/* ---------- news / blog cards ---------- */
.news-grid{ display:flex; flex-direction:column; gap:20px; }

.news-card{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:0;
  border:1px solid var(--panel-line);
  background:linear-gradient(180deg, #161a22, var(--panel));
  border-radius:18px;
  overflow:hidden;
  box-shadow: 0 14px 30px -20px rgba(0,0,0,0.7);
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .news-card:hover{
    border-color: rgba(63,107,255,0.55);
    transform:translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(9,20,66,0.55);
  }
}
.news-card-img{
  width:100%; height:100%; min-height:200px;
  object-fit:cover; display:block; background:var(--black);
}
.news-card-body{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
}
.news-card-meta{
  display:flex; align-items:center; gap:10px;
  margin-bottom:12px;
}
.news-avatar{
  width:34px; height:34px; border-radius:50%;
  background:var(--royal); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'Oswald'; font-size:0.9rem; font-weight:600;
  flex-shrink:0;
}
.news-meta-text{ font-family:'IBM Plex Mono'; font-size:0.76rem; color:var(--silver-dim); line-height:1.3; }
.news-meta-text b{ color:#fff; font-weight:500; display:block; }
.news-card-body h3{ font-size:1.25rem; margin-bottom:8px; }
/* Make the title blue by default so it stands out on mobile */
/* Makes the title blue and underlines it by default */
.news-card-body a.news-title-link { 
  color: var(--royal-bright); 
  text-decoration: underline; 
  text-underline-offset: 4px; /* Drops the underline down slightly so it's easier to read */
}

/* Removes the underline on desktop when a mouse hovers over it */
.news-card-body a.news-title-link:hover { 
  text-decoration: none; 
}

.news-card-body a.news-title-link:hover::after {
  transform: translateX(4px);
}
.news-excerpt{ color:var(--silver); font-size:0.92rem; margin:0 0 18px; flex-grow:1; }
.news-card-footer{
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--panel-line); padding-top:14px;
  font-family:'IBM Plex Mono'; font-size:0.8rem; color:var(--silver-dim);
}
.news-stats{ display:flex; align-items:center; gap:16px; }
.news-stat{ display:flex; align-items:center; gap:6px; }
.news-like-btn{
  background:none; border:none; cursor:pointer; padding:0;
  display:flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono'; font-size:0.8rem; color:var(--silver-dim);
  -webkit-tap-highlight-color: transparent;
}
.news-like-btn i{ font-size:0.95rem; color:var(--silver-dim); transition:color .15s ease, transform .1s ease; }
.news-like-btn.liked i{ color:#e0294b; }
.news-like-btn:hover i{ transform:scale(1.15); }
.news-share-btn{
  background:none; border:none; cursor:pointer; color:var(--silver-dim);
  font-size:0.95rem; padding:0;
  -webkit-tap-highlight-color: transparent;
}
.news-share-btn:hover{ color:var(--royal-bright); }

@media (max-width:700px){
  .news-card{ grid-template-columns:1fr; }
  .news-card-img{ min-height:180px; }
}

/* ---------- single post page ---------- */
.post-hero-img{
  width:100%; max-height:480px; object-fit:cover;
  border:1px solid var(--panel-line); border-radius:18px;
  margin-bottom:28px; display:block;
}
.post-meta-row{
  display:flex; align-items:center; gap:12px; margin-bottom:18px;
}
.post-body{ color:var(--silver); font-size:1.02rem; white-space:pre-line; }
.post-stats-row{
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line);
  padding:16px 0; margin:28px 0; font-family:'IBM Plex Mono'; font-size:0.85rem;
}
.post-not-found{ text-align:center; padding:60px 0; color:var(--silver-dim); }

/* ---------- FAQ accordion ---------- */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{
  border:1px solid var(--panel-line);
  background:var(--panel);
  border-radius:14px;
  overflow:hidden;
  transition:border-color 0.2s ease;
}
.faq-item.open{ border-color:var(--royal-bright); }
.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  background:transparent;
  border:none;
  cursor:pointer;
  text-align:left;
  font-family:'Oswald', sans-serif;
  font-size:1.02rem;
  letter-spacing:0.01em;
  color:#fff;
}
.faq-question:hover{ color:var(--royal-bright); }
.faq-question .faq-icon{
  flex:none;
  width:26px; height:26px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--panel-line);
  border-radius:50%;
  color:var(--royal-bright);
  font-family:'IBM Plex Mono', monospace;
  font-size:1rem;
  line-height:1;
  transform:translateY(-1px);
  transition:transform 0.25s ease, background 0.25s ease;
}
.faq-item.open .faq-question .faq-icon{
  transform:translateY(-1px) rotate(45deg);
  background:var(--royal);
  border-color:var(--royal-bright);
  color:#fff;
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.3s ease, padding 0.3s ease;
  padding:0 20px;
}
.faq-item.open .faq-answer{
  max-height:400px;
  padding:0 20px 20px;
}
.faq-answer p{
  margin:0;
  color:var(--silver);
  font-size:0.95rem;
  line-height:1.6;
}

/* Fundraising progress bar */
.funding-panel{ padding-top:28px; }
.funding-top{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:20px; flex-wrap:wrap; margin-bottom:22px;
}
.funding-raised, .funding-goal{ display:flex; flex-direction:column; gap:4px; }
.funding-goal{ align-items:flex-end; text-align:right; }
.funding-label{
  font-family:'IBM Plex Mono'; font-size:0.72rem; text-transform:uppercase;
  letter-spacing:0.08em; color:var(--silver-dim);
}
.funding-amount{ font-family:'Oswald',sans-serif; font-weight:600; font-size:2.1rem; color:#fff; }
.funding-raised .funding-amount{ color:var(--royal-bright); }

.funding-bar-track{
  position:relative;
  width:100%; height:22px;
  background:var(--black);
  border:1px solid var(--panel-line);
  border-radius:999px;
  overflow:hidden;
}
.funding-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--royal), var(--royal-bright));
  box-shadow:0 0 14px rgba(63,107,255,0.55);
  transition:width 0.8s ease;
  min-width:2px;
}
.funding-bar-pct{
  position:absolute; top:0; right:10px; height:100%;
  display:flex; align-items:center;
  font-size:0.72rem; color:var(--silver);
  text-shadow:0 1px 2px rgba(0,0,0,0.6);
}
.funding-updated{
  margin:14px 0 0; font-size:0.76rem; color:var(--silver-dim);
}

@media (max-width:520px){
  .funding-top{ flex-direction:column; align-items:flex-start; }
  .funding-goal{ align-items:flex-start; text-align:left; }
  .funding-amount{ font-size:1.7rem; }
}

/* Mobile responsive view: converts crowded table into clean event cards */
@media (max-width: 768px) {
  table.events-table, 
  table.events-table thead, 
  table.events-table tbody, 
  table.events-table th, 
  table.events-table td, 
  table.events-table tr { 
    display: block; 
  }

  table.events-table thead {
    display: none; /* Hide header row on phones */
  }

  table.events-table tr {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--panel-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  table.events-table td {
    width: 100% !important;
    padding: 6px 0;
    border-bottom: none;
    text-align: left !important;
    white-space: normal !important;
  }

  /* Highlight date at the top of each mobile card */
  table.events-table td:nth-child(1) {
    font-weight: 700;
    color: var(--royal-bright);
    font-size: 1.05rem;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--panel-line);
  }

  /* Separate result badge cleanly at the bottom */
  table.events-table td:nth-child(5) {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--panel-line);
  }
}

/* ---------- app download panel ---------- */
.app-panel{ max-width:960px; margin-bottom:28px; }
.app-head{ display:flex; align-items:center; gap:18px; margin-bottom:24px; }
.app-icon{ width:72px; height:72px; border-radius:16px; border:1px solid var(--panel-line); flex-shrink:0; }
.app-head h3{ font-size:1.6rem; }
.app-tag{ margin:2px 0 0; color:var(--silver); font-size:0.92rem; }
.store-group{ margin-bottom:20px; }
.store-group:last-of-type{ margin-bottom:0; }
.store-label{ display:block; margin-bottom:8px; font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--silver-dim); }
.store-row{ display:flex; flex-wrap:wrap; gap:14px; }
.store-btn{
  display:inline-flex; align-items:center; gap:12px;
  padding:10px 24px; min-width:200px;
  border:1px solid var(--royal-bright); border-radius:999px; /* TUNE: button roundness (999px = pill, 14px = soft corners) */
  background:transparent; color:#fff; line-height:1.15;
}
.store-btn i{ font-size:1.6rem; }
.store-btn span{ font-family:'Oswald', sans-serif; font-size:1.05rem; letter-spacing:0.02em; text-transform:uppercase; }
.store-btn small{ display:block; font-family:'IBM Plex Mono', monospace; font-size:0.66rem; letter-spacing:0.06em; color:var(--silver); text-transform:uppercase; }
a.store-btn:hover{ background:var(--royal); border-color:var(--royal); text-decoration:none; }
.store-btn.disabled{ border-color:var(--panel-line); color:var(--silver-dim); cursor:not-allowed; }
.store-btn.disabled small{ color:var(--silver-dim); }
.app-note{ margin:22px 0 0; font-size:0.78rem; color:var(--silver-dim); }

/* screenshots strip (Play Store style) */
.shots{
  display:flex; gap:14px; overflow-x:auto; padding:4px 2px 14px;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
}
.shot{
  flex:0 0 auto; width:190px; aspect-ratio:9/19.5; /* TUNE: screenshot card size */
  border:1px solid var(--panel-line); border-radius:22px; overflow:hidden;
  background:var(--black); padding:0; cursor:zoom-in; scroll-snap-align:start;
}
.shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.shot.wide{ aspect-ratio:auto; width:360px; height:auto; align-self:flex-start; }
.shot.wide img{ height:auto; }

/* about / app info */
.app-about{ text-align:left; }
.app-about h3{ margin:0 0 10px; }
.app-about p{ color:var(--silver); margin:0 0 14px; }
.app-features{ list-style:none; margin:0 0 6px; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; }
.app-features li{ display:flex; gap:10px; align-items:flex-start; color:var(--silver); }
.app-features i{ color:var(--royal-bright); margin-top:5px; }
.app-info{ display:grid; grid-template-columns:1fr 1fr; gap:0 40px; margin:0; text-align:left; }
.app-info > div{
  display:flex; justify-content:space-between; align-items:baseline; gap:20px;
  padding:14px 0; border-bottom:1px solid var(--panel-line);
}
.app-info > div:nth-last-child(-n+2){ border-bottom:none; } /* last row of the 2-col grid */
.app-info dt{ font-family:'IBM Plex Mono', monospace; font-size:0.7rem; letter-spacing:0.06em; text-transform:uppercase; color:var(--silver-dim); flex-shrink:0; }
.app-info dd{ margin:0; color:#fff; text-align:right; overflow-wrap:anywhere; }
@media (max-width:760px){
  .app-info{ grid-template-columns:1fr; }
  .app-info > div:nth-last-child(2){ border-bottom:1px solid var(--panel-line); }
}

/* fullscreen screenshot viewer */
.shot-viewer{
  position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,0.88); padding:24px; cursor:zoom-out;
}
.shot-viewer.open{ display:flex; }
.shot-viewer img{ max-width:100%; max-height:100%; border-radius:22px; border:1px solid var(--panel-line); }

@media (max-width:640px){
  .app-head{ flex-direction:column; text-align:center; }
  .store-row{ justify-content:center; }
  .store-label{ text-align:center; }
  .store-btn{ width:100%; justify-content:center; }
  .shot{ width:160px; }
}

/* screenshot tabs + about copy */
.shot-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.shot-tab{
  font-family:'IBM Plex Mono', monospace; font-size:0.78rem; letter-spacing:0.05em; text-transform:uppercase;
  padding:8px 18px; border:1px solid var(--panel-line); border-radius:999px;
  background:transparent; color:var(--silver); cursor:pointer;
}
.shot-tab:hover{ border-color:var(--royal-bright); color:#fff; }
.shot-tab.active{ background:var(--royal); border-color:var(--royal); color:#fff; }
.shot-tab[hidden]{ display:none; }
.shot.wide{ width:420px; } /* TUNE: tablet screenshot width */
.feature-graphic{ display:block; width:100%; max-width:100%; aspect-ratio:1024/500; object-fit:cover; border-radius:16px; border:1px solid var(--panel-line); margin:0 0 20px; }
.app-about h4{ margin:22px 0 4px; font-family:'Oswald', sans-serif; font-size:1.05rem; letter-spacing:0.03em; text-transform:uppercase; color:#fff; }
.app-about h4 + p{ margin-top:0; }
.app-about .disclaimer{ font-size:0.78rem; color:var(--silver-dim); }
.app-about .app-credit{ margin-top:24px; color:var(--silver-dim); font-size:0.9rem; }
@media (max-width:640px){ .shot.wide{ width:280px; } }

/* ---------- legal pages (privacy policy, terms of use) ---------- */
.legal{ padding-top:40px; padding-bottom:72px; text-align:left; }
.legal .panel{ text-align:left; }
.legal .panel p, .legal .panel a{ word-break:normal; overflow-wrap:break-word; }

.legal-hero{ padding:36px 36px 32px; margin-bottom:28px; }
.legal-hero .kicker{ font-family:'IBM Plex Mono', monospace; font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--royal-bright); display:block; margin-bottom:10px; }
.legal-hero h1{ font-size:clamp(2rem,5vw,3rem); line-height:1.1; margin-bottom:14px; }
.legal-meta{ display:flex; flex-wrap:wrap; gap:6px 18px; margin:0 0 18px; padding:0; font-family:'IBM Plex Mono', monospace; font-size:0.78rem; letter-spacing:0.04em; color:var(--silver-dim); }
.legal-meta span + span::before{ content:'·'; margin-right:18px; color:var(--panel-line); }
.legal-lead{ font-size:1.1rem; line-height:1.65; color:var(--silver); max-width:68ch; margin:0 0 26px; }
.legal-glance{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.legal-card{ display:flex; flex-direction:column; gap:4px; padding:16px; border:1px solid var(--panel-line); border-radius:12px; background:rgba(63,107,255,0.06); }
.legal-card i{ color:var(--royal-bright); font-size:1.1rem; margin-bottom:6px; }
.legal-card strong{ font-size:0.95rem; color:#fff; font-weight:600; }
.legal-card span{ font-size:0.85rem; line-height:1.45; color:var(--silver-dim); }

.legal-layout{ display:grid; grid-template-columns:240px minmax(0,1fr); gap:28px; align-items:start; }
.legal-aside{ position:sticky; top:92px; max-height:calc(100vh - 112px); overflow-y:auto; }
.legal-toc{ border:1px solid var(--panel-line); border-radius:14px; background:var(--panel); padding:6px 0 10px; }
.legal-toc summary{ list-style:none; padding:12px 16px 8px; font-family:'IBM Plex Mono', monospace; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--silver-dim); cursor:default; }
.legal-toc summary::-webkit-details-marker{ display:none; }
.legal-toc ol{ list-style:none; margin:0; padding:0 8px; }
.legal-toc li a{ display:flex; gap:10px; align-items:baseline; padding:7px 8px; border-radius:8px; font-size:0.86rem; line-height:1.35; color:var(--silver); }
.legal-toc li a:hover{ background:rgba(63,107,255,0.1); color:#fff; text-decoration:none; }
.legal-toc li a.active{ background:rgba(63,107,255,0.16); color:#fff; }
.legal-toc .toc-n{ font-family:'IBM Plex Mono', monospace; font-size:0.7rem; color:var(--royal-bright); flex-shrink:0; }
.legal-toc .toc-part{ margin:12px 8px 4px; padding-top:10px; border-top:1px solid var(--panel-line); font-family:'IBM Plex Mono', monospace; font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--silver-dim); }
.legal-toc .toc-part:first-child{ border-top:none; margin-top:4px; }
.legal-other{ display:block; margin:10px 16px 2px; padding-top:12px; border-top:1px solid var(--panel-line); font-size:0.85rem; }

.legal-body{ padding:12px 40px 40px; }
.legal-part{ margin:44px 0 0; }
.legal-part:first-child{ margin-top:28px; }
.legal-part span{ display:inline-block; padding:6px 12px; border-radius:999px; border:1px solid var(--panel-line); background:rgba(63,107,255,0.1); font-family:'IBM Plex Mono', monospace; font-size:0.74rem; letter-spacing:0.1em; text-transform:uppercase; color:#fff; }
.legal-sec{ padding:28px 0 4px; scroll-margin-top:92px; }
.legal-sec + .legal-sec{ border-top:1px solid var(--panel-line); margin-top:28px; }
.legal-part + .legal-sec{ border-top:none; margin-top:0; padding-top:18px; }
.legal-sec h2{ display:flex; align-items:baseline; gap:12px; font-size:1.55rem; line-height:1.2; margin:0 0 16px; }
.legal-sec .sec-n{ font-family:'IBM Plex Mono', monospace; font-size:0.8rem; letter-spacing:0.05em; color:var(--royal-bright); }
.legal-sec h3{ font-family:'Inter', sans-serif; text-transform:none; letter-spacing:0; font-size:1.05rem; font-weight:600; margin:24px 0 8px; }
.legal-sec p, .legal-sec li{ color:var(--silver); font-size:1rem; line-height:1.72; max-width:72ch; }
.legal-sec p{ margin:0 0 14px; }
.legal-sec ul{ margin:0 0 16px; padding-left:22px; }
.legal-sec li{ margin-bottom:8px; padding-left:2px; }
.legal-sec li::marker{ color:var(--royal-bright); }
.legal-sec strong{ color:#fff; font-weight:600; }
.legal-sec code{ background:rgba(255,255,255,0.07); padding:2px 6px; border-radius:4px; font-family:'IBM Plex Mono', monospace; font-size:0.85em; color:#fff; white-space:normal; overflow-wrap:anywhere; }

.legal-callout{ display:flex; gap:12px; align-items:flex-start; margin:0 0 18px; padding:14px 16px; border-left:3px solid var(--royal-bright); border-radius:0 10px 10px 0; background:rgba(30,79,214,0.13); font-size:0.95rem; line-height:1.6; color:var(--silver); max-width:72ch; }
.legal-callout i{ margin-top:4px; color:var(--royal-bright); }
.legal-callout.warn{ border-left-color:#f2b705; background:rgba(242,183,5,0.09); }
.legal-callout.warn i{ color:#f2b705; }

.legal-table{ margin:0 0 18px; border:1px solid var(--panel-line); border-radius:12px; overflow:hidden; }
.legal-table table{ min-width:0; table-layout:auto; font-family:'Inter', sans-serif; font-size:0.92rem; }
.legal-table th{ background:rgba(63,107,255,0.08); padding:12px 16px; font-family:'IBM Plex Mono', monospace; }
.legal-table td{ padding:14px 16px; color:var(--silver); line-height:1.55; vertical-align:top; }
.legal-table td:first-child{ color:#fff; font-weight:500; width:30%; }
.legal-table tr:last-child td{ border-bottom:none; }

@media (max-width:1000px){
  .legal-glance{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .legal-layout{ grid-template-columns:1fr; gap:16px; }
  .legal-aside{ position:static; max-height:none; overflow:visible; }
  .legal-toc summary{ cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:14px 16px; }
  .legal-toc summary::after{ content:'\25BE'; font-size:1rem; transition:transform .2s; }
  .legal-toc[open] summary::after{ transform:rotate(180deg); }
  .legal-sec{ scroll-margin-top:16px; }
}
@media (max-width:640px){
  .legal{ padding-top:24px; padding-bottom:48px; }
  .legal .panel{ padding:20px; text-align:left; border:1px solid var(--panel-line); }
  .legal-hero{ padding:24px 20px; }
  .legal-lead{ font-size:1rem; }
  .legal-glance{ grid-template-columns:1fr; }
  .legal-body{ padding:4px 20px 28px; }
  .legal-sec h2{ font-size:1.3rem; }
  .legal-sec p, .legal-sec li{ font-size:0.98rem; }
  .legal-table table, .legal-table tbody, .legal-table tr, .legal-table td{ display:block; width:100%; }
  .legal-table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .legal-table tr{ padding:12px 16px; border-bottom:1px solid var(--panel-line); }
  .legal-table tr:last-child{ border-bottom:none; }
  .legal-table td{ padding:0; border:none; }
  .legal-table td:first-child{ width:100%; margin-bottom:4px; }
  .legal-table tr:hover td{ background:none; }
}
@media (max-width:640px){ .legal-meta{ flex-direction:column; gap:4px; } .legal-meta span + span::before{ content:none; } }
@media (max-width:640px){ nav.top{ position:static; } } /* stacked mobile nav is ~230px tall, too much to keep pinned */

/* ---------- nav fit (tablets / narrow desktops) ---------- */
/* >1000px: keep ONE row, just more compact. 641-1000px: logo + icons on top, links evenly spread below. Phones (<=640px) use their own stacked layout. */
@media (min-width:1001px) and (max-width:1360px){
  nav.top .wrap{ flex-direction:row; flex-wrap:nowrap; height:64px; padding:0 16px; gap:16px; }
  nav.top .brand-lockup{ gap:8px; }
  nav.top .brand-lockup img{ height:40px; }
  nav.top .brand-lockup .brand{ font-size:1.05rem; }
  nav.top .nav-right{ flex-direction:row; flex:1; gap:16px; width:auto; min-width:0; }
  nav.top ul{ gap:14px; flex-wrap:nowrap; width:auto; flex:1; justify-content:center; }
  nav.top a{ font-size:0.72rem; }
  nav.top .social-links{ gap:12px; padding-left:14px; width:auto; }
  nav.top .social-links a{ font-size:1.1rem !important; }
}
@media (min-width:1001px){
  body.is-ipad nav.top .wrap{ flex-direction:row; flex-wrap:nowrap; height:64px; padding:0 16px; gap:16px; }
  body.is-ipad nav.top .brand-lockup{ gap:8px; }
  body.is-ipad nav.top .brand-lockup img{ height:40px; }
  body.is-ipad nav.top .brand-lockup .brand{ font-size:1.05rem; }
  body.is-ipad nav.top .nav-right{ flex-direction:row; flex:1; gap:16px; width:auto; min-width:0; }
  body.is-ipad nav.top ul{ gap:14px; flex-wrap:nowrap; width:auto; flex:1; justify-content:center; }
  body.is-ipad nav.top a{ font-size:0.72rem; }
  body.is-ipad nav.top .social-links{ gap:12px; padding-left:14px; width:auto; }
  body.is-ipad nav.top .social-links a{ font-size:1.1rem !important; }
}
@media (min-width:641px) and (max-width:1000px){
  nav.top .wrap{ flex-direction:row; flex-wrap:wrap; height:auto; padding:8px 16px 0; gap:4px 12px; justify-content:space-between; }
  nav.top .nav-right{ display:contents; }
  nav.top .brand-lockup{ order:1; gap:8px; }
  nav.top .brand-lockup img{ height:40px; }
  nav.top .brand-lockup .brand{ font-size:1.1rem; }
  nav.top .social-links{ order:2; border-left:none; padding-left:0; gap:16px; width:auto; }
  nav.top .social-links a{ font-size:1.2rem !important; }
  nav.top ul{ order:3; width:100%; flex-wrap:nowrap; justify-content:space-between; gap:6px; margin-top:4px; padding:10px 2px; border-top:1px solid var(--panel-line); }
  nav.top ul a{ font-size:0.72rem; }
  body.is-ipad nav.top .wrap{ flex-direction:row; flex-wrap:wrap; height:auto; padding:8px 16px 0; gap:4px 12px; justify-content:space-between; }
  body.is-ipad nav.top .nav-right{ display:contents; }
  body.is-ipad nav.top .brand-lockup{ order:1; gap:8px; }
  body.is-ipad nav.top .brand-lockup img{ height:40px; }
  body.is-ipad nav.top .brand-lockup .brand{ font-size:1.1rem; }
  body.is-ipad nav.top .social-links{ order:2; border-left:none; padding-left:0; gap:16px; width:auto; }
  body.is-ipad nav.top .social-links a{ font-size:1.2rem !important; }
  body.is-ipad nav.top ul{ order:3; width:100%; flex-wrap:nowrap; justify-content:space-between; gap:6px; margin-top:4px; padding:10px 2px; border-top:1px solid var(--panel-line); }
  body.is-ipad nav.top ul a{ font-size:0.72rem; }
}

/* ---------- nav: links truly centered on the page (logo left | links centered | icons right) ---------- */
@media (min-width:1001px) and (max-width:1360px){
  nav.top .wrap{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; column-gap:16px; }
  nav.top .nav-right{ display:contents; }
  nav.top .brand-lockup{ justify-self:start; }
  nav.top ul{ justify-self:center; flex:none; }
  nav.top .social-links{ justify-self:end; }
}
@media (min-width:1001px){
  body.is-ipad nav.top .wrap{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; column-gap:16px; }
  body.is-ipad nav.top .nav-right{ display:contents; }
  body.is-ipad nav.top .brand-lockup{ justify-self:start; }
  body.is-ipad nav.top ul{ justify-self:center; flex:none; }
  body.is-ipad nav.top .social-links{ justify-self:end; }
}
@media (min-width:1001px) and (max-width:1120px){
  nav.top ul{ gap:12px; }
  nav.top a{ font-size:0.7rem; }
  nav.top .social-links a{ font-size:1.1rem !important; }
  nav.top .brand-lockup .brand{ font-size:1rem; }
  body.is-ipad nav.top ul{ gap:12px; }
  body.is-ipad nav.top a{ font-size:0.7rem; }
  body.is-ipad nav.top .social-links a{ font-size:1.1rem !important; }
  body.is-ipad nav.top .brand-lockup .brand{ font-size:1rem; }
}

/* Download page: browser / SmartScreen warning notice */
.dl-notice{
  display:flex; gap:14px; align-items:flex-start;
  margin:6px 0 26px; padding:16px 18px;
  border:1px solid var(--panel-line);
  border-left:3px solid #f5b942;
  border-radius:var(--radius);
  background:rgba(245,185,66,0.06);
}
.dl-notice > i{ color:#f5b942; font-size:1.15rem; margin-top:3px; flex:0 0 auto; }
.dl-notice h4{ margin:0 0 6px; font-size:1rem; }
.dl-notice p{ margin:0 0 8px; font-size:0.9rem; color:var(--silver); }
.dl-notice ol{ margin:0 0 10px; padding-left:20px; font-size:0.9rem; color:var(--silver); }
.dl-notice li{ margin:0 0 4px; }
.dl-notice strong, .dl-notice em{ color:#fff; font-style:normal; }
.dl-notice .dl-notice-small{ margin:0; font-size:0.78rem; color:var(--silver-dim); }
.dl-notice a{ color:var(--royal-bright); }
@media (max-width:520px){ .dl-notice{ padding:14px; gap:10px; } }

/* Homepage feature cards (OmniScout + Resources) */
.feature-panel{ display:flex; flex-direction:column; gap:20px; }
.feature-main{ display:flex; align-items:center; gap:20px; }
.feature-icon{
  width:72px; height:72px; flex:0 0 auto; border-radius:16px;
  border:1px solid var(--panel-line); background:var(--black);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  color:var(--royal-bright); font-size:1.9rem;
}
.feature-icon img{ width:100%; height:100%; object-fit:cover; }
.feature-text{ flex:1; min-width:0; }
.feature-tag{
  display:inline-flex; align-items:center; margin-bottom:8px; padding:4px 10px;
  font-family:'IBM Plex Mono', monospace; font-size:0.68rem; letter-spacing:0.1em;
  color:var(--royal-bright); border:1px solid rgba(63,107,255,0.35);
  border-radius:999px; background:rgba(63,107,255,0.08);
}
.feature-text h3{ font-size:1.5rem; margin:0 0 4px; }
.feature-text p{ color:var(--silver); font-size:0.95rem; margin:0; line-height:1.5; }
.feature-foot{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--panel-line); padding-top:18px; margin-top:4px;
}
.feature-platforms{
  display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center;
  color:var(--silver-dim); font-family:'IBM Plex Mono', monospace; font-size:0.8rem;
}
.feature-platforms i{ color:var(--royal-bright); margin-right:4px; }
.feature-foot .btn{ display:inline-flex; align-items:center; gap:8px; }
@media (max-width:640px){
  .feature-main{ flex-direction:column; text-align:center; gap:14px; }
  .feature-platforms{ justify-content:center; width:100%; }
  .feature-foot{ flex-direction:column; align-items:stretch; gap:14px; }
  .feature-foot .btn{ justify-content:center; width:100%; }
}

/* Announcements modal: scale up moderately on large monitors */
@media (min-width:1400px){
  .notification-modal-content{ max-width:640px; padding:40px 36px 36px; border-radius:26px; }
  .notification-modal-content h2{ font-size:2.3rem; margin-bottom:22px; }
  .notification-list-scroll{ gap:18px; }
  .notification-modal-item{ padding:18px 22px; border-radius:16px; }
  .notification-modal-item strong{ font-size:1.3rem; margin-bottom:7px; }
  .notification-modal-item p{ font-size:1.08rem; line-height:1.55; }
  .notification-modal-content .lightbox-close{ font-size:1.8rem; }
}
@media (min-width:1900px){
  .notification-modal-content{ max-width:760px; padding:46px 42px 42px; border-radius:30px; }
  .notification-modal-content h2{ font-size:2.7rem; margin-bottom:26px; }
  .notification-modal-item{ padding:22px 26px; border-radius:18px; }
  .notification-modal-item strong{ font-size:1.55rem; margin-bottom:8px; }
  .notification-modal-item p{ font-size:1.25rem; }
  .notification-modal-content .lightbox-close{ font-size:2rem; }
}
@media (min-width:2400px){
  .notification-modal-content{ max-width:880px; padding:52px 48px 48px; border-radius:34px; }
  .notification-modal-content h2{ font-size:3.1rem; margin-bottom:30px; }
  .notification-list-scroll{ gap:22px; }
  .notification-modal-item{ padding:26px 30px; border-radius:20px; }
  .notification-modal-item strong{ font-size:1.8rem; margin-bottom:10px; }
  .notification-modal-item p{ font-size:1.4rem; }
  .notification-modal-content .lightbox-close{ font-size:2.3rem; }
}
