/* Color Scheme: Blue And Silver. */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

: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; 
}

.brand-lockup{ display:flex; align-items:center; gap:12px; }
.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: var(--panel);
  padding:28px;
  border-radius: var(--radius);
}
.panel::before, .panel::after,
.panel .bl, .panel .br{
  content:''; position:absolute; width:14px; height:14px;
  border-color: var(--royal-bright); border-style:solid; opacity:0.9;
}
.panel::before{ top:-1px; left:-1px; border-width:2px 0 0 2px; }
.panel::after{ top:-1px; right:-1px; border-width:2px 2px 0 0; }
.panel .bl{ bottom:-1px; left:-1px; border-width:0 0 2px 2px; }
.panel .br{ bottom:-1px; right:-1px; border-width:0 2px 2px 0; }

/* ---------- full-bleed photo hero ---------- */
.hero-photo{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  height: 91.2vh; /* Added explicit height */
  min-height: 480px; /* Added minimum height constraint */
  overflow: hidden;
  border-bottom: 1px solid var(--panel-line);
  background-color: var(--black);
}

.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 40px;
}
.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; }

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

.card{
  position:relative;
  border:1px solid var(--panel-line);
  background:var(--panel);
  border-radius:var(--radius);
  padding:24px;
  transition:border-color .15s ease, transform .15s ease;
}
@media (hover: hover) {
  .card:hover{ border-color:var(--royal-bright); transform:translateY(-2px); }
  a.card:hover{ text-decoration:none; }
  a.card:hover h3{ color:var(--royal-bright); }
}
.card .part-no{
  font-family:'IBM Plex Mono'; font-size:0.72rem; color:#fff;
  letter-spacing:0.08em; margin-bottom:10px;
}
.card h3{ font-size:1.35rem; margin-bottom:6px; }
.card .role{ color:var(--royal-bright); font-family:'IBM Plex Mono'; font-size:0.78rem; margin-bottom:14px; display:block; }
.card p{ color:#fff; font-size:0.92rem; margin:0 0 16px; }
.card .stats{ display:flex; gap:18px; border-top:1px solid var(--panel-line); padding-top:14px; }
.card .stats div{ font-family:'IBM Plex Mono'; font-size:0.78rem; }
.card .stats b{ display:block; color:#fff; font-size:1.05rem; }

/* ---------- section headers ---------- */
.section{ padding:64px 0; 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:520px; border-collapse:collapse; 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:12px; border-bottom:1px solid var(--panel-line); color:#fff; }
@media (hover: hover) {
  tr:hover td{ background:rgba(63,107,255,0.06); }
}

/* ---------- 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); }

.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: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card .sponsor-logo {
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:has(.sponsor-logo) {
  text-align: center;
}

.card:has(.sponsor-logo) h3 {
  text-align: center;
  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: var(--radius);
  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: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;
    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:44px 0; 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; }

@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:var(--panel);
  border-radius:var(--radius);
  overflow:hidden;
  transition:border-color .15s ease, transform .15s ease;
}
@media (hover: hover) {
  .news-card:hover{ border-color:var(--royal-bright); transform:translateY(-2px); }
}
.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; }
.news-card-body a.news-title-link{ color:inherit; }
.news-card-body a.news-title-link:hover{ color:var(--royal-bright); text-decoration:none; }
.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);
}
.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;
}
.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:var(--radius);
  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;
  transition:transform 0.25s ease, background 0.25s ease;
}
.faq-item.open .faq-question .faq-icon{
  transform: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;
}
