:root{
  --bg:#0b1220;
  --panel:#0f1b33;
  --panel2:#101f3b;
  --text:#e8eefc;
  --muted:#a8b6d9;
  --line:rgba(255,255,255,.12);
  --accent:#7dd3fc;
  --warn:#fbbf24;
  --good:#34d399;
  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 20px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(900px 600px at 15% 10%, rgba(125,211,252,.10), transparent 60%),
              radial-gradient(900px 600px at 85% 25%, rgba(52,211,153,.08), transparent 60%),
              var(--bg);
  color:var(--text);
}

.wrap{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.7);
  border-bottom: 1px solid var(--line);
}

.topbar__inner{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand__title{
  font-weight:800;
  letter-spacing:.2px;
  font-size:18px;
}
.brand__subtitle{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.chips{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.chip{
  border:1px solid var(--line);
  background: rgba(15,27,51,.75);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--text);
}
.chip--warn{
  border-color: rgba(251,191,36,.35);
  background: rgba(251,191,36,.12);
  color:#ffe7a3;
}

.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  padding:22px 0 18px;
  align-items:start;
}

h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.5px;
}

.lead{color:var(--muted); font-size:15.5px; line-height:1.55; margin:0 0 14px}

.panel{
  background: rgba(15,27,51,.7);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px 14px;
  box-shadow: var(--shadow);
  margin:12px 0;
}

.panel--soft{
  background: rgba(16,31,59,.75);
}

.panel h2{
  font-size:16px;
  margin:0 0 8px;
}
.panel h3{
  font-size:15px;
  margin:0 0 8px;
}

.panel ul, .panel ol{margin:0; padding-left:18px; color:var(--muted)}
.panel li{margin:6px 0}

.resource-row{display:flex; gap:10px; flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(125,211,252,.25);
  background: rgba(125,211,252,.15);
  color: var(--text);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{
  border:1px solid var(--line);
  background: rgba(15,27,51,.6);
}
.btn--small{padding:8px 10px; border-radius:10px; font-size:12px}

.hero__right{display:flex; flex-direction:column; gap:12px}

.media-card{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(15,27,51,.65);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.media-card__label{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  font-weight:800;
  font-size:13px;
}
.media-card__link{display:block}
.media-card img{
  width:100%;
  height:auto;
  display:block;
  background: rgba(255,255,255,.04);
}
.media-card__hint{
  padding:10px 12px;
  color:var(--muted);
  font-size:12px;
}

.mini-panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,31,59,.65);
  padding:12px;
}
.mini-panel h3{margin:0 0 8px; font-size:14px}
.mini-panel ol{margin:0; padding-left:18px; color:var(--muted)}
.mini-panel li{margin:6px 0}

.timeline{padding: 10px 0 30px}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  margin: 10px 0 14px;
}
.section-head h2{
  margin:0;
  font-size:20px;
}
.cards{display:flex; flex-direction:column; gap:12px}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(15,27,51,.65);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card__header{
  width:100%;
  text-align:left;
  border:0;
  background: transparent;
  color: var(--text);
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px 14px;
  cursor:pointer;
}
.card__title{font-weight:800; font-size:14.5px}
.tag{
  font-size:12px;
  font-weight:800;
  color:#d9f5ff;
  background: rgba(125,211,252,.14);
  border:1px solid rgba(125,211,252,.2);
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
}
.chev{margin-left:auto; color:var(--muted)}
.card__body{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height:1.55;
}
.card__body h3{
  color: var(--text);
  margin:12px 0 8px;
  font-size:14px;
}
.card__body p{margin:10px 0}
.card__body ul, .card__body ol{margin:8px 0; padding-left:18px}
.card__body li{margin:6px 0}

.stamp-row{display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 6px}
.stamp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
}
.stamp:hover{background: rgba(255,255,255,.09)}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  align-items:start;
  margin-top:8px;
}

.img-ph{
  border:1px dashed rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding:10px;
  background: rgba(0,0,0,.12);
}
.img-ph__label{
  font-size:12px;
  font-weight:800;
  color: var(--muted);
  margin-bottom:8px;
}
.img-ph img{width:100%; height:auto; display:block; border-radius:12px; background: rgba(255,255,255,.04)}

.sep{
  border:0;
  border-top:1px solid var(--line);
  margin:14px 0;
}

.finish{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid rgba(52,211,153,.25);
  background: rgba(52,211,153,.10);
  border-radius: var(--radius);
  padding:12px;
  color:#c7ffe8;
}
.finish__badge{
  font-weight:900;
  white-space:nowrap;
  color:#b9ffe5;
}

.footer{padding: 18px 0 32px; border-top:1px solid var(--line)}
.muted{color:var(--muted); font-size:12.5px}

@media (max-width: 900px){
  .hero{grid-template-columns: 1fr; }
  .grid-2{grid-template-columns: 1fr}
  h1{font-size:28px}
  .chips{justify-content:flex-start}
}


/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.is-open{ display: block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}
.lightbox__dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  background: rgba(15,27,51,.95);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 12px;
  overflow: hidden;
}
.lightbox__img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display:block;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.lightbox__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover{ background: rgba(0,0,0,.5); }
.lightbox__caption{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}


/* Click-to-zoom images */
.lb-target{ cursor: zoom-in; }
.lb-target:hover{ filter: brightness(1.05); }


/* Uniform thumbnail sizing */
.media-card__link img,
.img-ph img{
  width: 100%;
  height: 340px;           /* consistent small size */
  object-fit: cover;       /* fills the box nicely */
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px){
  .media-card__link img,
  .img-ph img{
    height: 300px;
  }
}

.lightbox__close{ z-index:2; }





/* Image sizing – wide cinematic crop */
.media-card__link img,
.img-ph img{
  width: 100%;
  height: 260px;          /* wide banner look */
  object-fit: cover;      /* intentional crop for style */
  border-radius: 12px;
  display: block;
}

@media (max-width: 900px){
  .media-card__link img,
  .img-ph img{
    height: 200px;
  }
}
@media (max-width: 900px){
  .media-card__link img,
  .img-ph img{
    height: 260px;
  }
}
}

/* Make the infographic button look like a link/card, not a form button */
.media-button{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  display: block;
  text-align: left;
}

@media (max-width: 900px){
  .media-card__link img,
  .img-ph img{
    height: 300px;
  }
}

/* Infographic lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
}
.lightbox__dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  background: rgba(15,27,51,.96);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  padding: 12px;
}
.lightbox__img{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  display:block;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.lightbox__close{
  position:absolute;
  top:10px;
  right:10px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.45);
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}
.lightbox__close:hover{ background: rgba(0,0,0,.6); }
