:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --card:#ffffff;
  --shadow: 0 10px 24px rgba(2,6,23,.08);
  --blue:#0b3b8f;
  --red:#b10000;
  --radius:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  width:min(1200px, 92vw);
  margin:0 auto;
}

.topbar{
  border-bottom:1px solid var(--line);
  background:#fff;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.brand img{display:block; height:auto}

.date{
  font-size:13px;
  color:var(--muted);
  text-align:right;
  margin-bottom:6px;
}
.top-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.netbar{
  background: var(--blue);
  color:#fff;
}
.netbar-inner{
  padding:10px 0;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.netbar a{
  color:#fff;
  font-size:13px;
  font-weight:bold;
}
.sep{opacity:.6}

.layout{
  display:grid;
  grid-template-columns: 260px 1fr 260px;
  gap:18px;
  padding:18px 0 30px;
}

@media (max-width: 1020px){
  .layout{grid-template-columns: 1fr; }
  .rail{order:2}
  .content{order:1}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.pad{padding:16px}

.card-title{
  margin:0 0 12px;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#0b1220;
}

.hero{
  padding:18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.hero h1{
  margin:0 0 8px;
  font-size:26px;
}
.lead{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}

.hero-badge{
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  min-width:180px;
  background:#f8fafc;
}
.badge-title{font-weight:bold; margin-bottom:4px}
.badge-sub{font-size:13px; color:var(--muted)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:10px;
  font-weight:bold;
  font-size:13px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none !important;
}
.btn-solid{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.btn-solid:hover{filter:brightness(1.05)}
.btn-ghost{
  background:#fff;
  border-color:var(--line);
  color:var(--text);
}
.btn-ghost:hover{background:#f8fafc}
.w-100{width:100%}

.navlist{display:flex; flex-direction:column; gap:10px}
.navitem{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  padding:10px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}
.navitem:hover{background:#f8fafc; text-decoration:none}
.dot{
  width:10px;height:10px;border-radius:50%;
  background:var(--red);
  display:inline-block;
}

.adbox img{max-width:100%; height:auto; border-radius:12px; display:block; margin:0 auto 10px}
.muted{color:var(--muted); font-size:13px; line-height:1.4; margin:10px 0}

.linkblock{
  display:block;
  padding:12px;
  border:1px dashed var(--line);
  border-radius:12px;
  background:#f8fafc;
  color:var(--text);
  font-weight:bold;
}
.linkblock:hover{background:#eef2ff; text-decoration:none}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin:18px 0;
}
@media (max-width: 780px){
  .grid2{grid-template-columns:1fr}
}

.h2{
  margin:0 0 8px;
  font-size:18px;
}
.imglink img{max-width:100%; height:auto; display:block; margin-top:10px}

.map-wrap{
  margin-top:14px;
  border-radius:12px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#fff;
  padding:10px;
}

/* State links */
.states-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:12px;
}
@media (max-width: 780px){
  .states-grid{grid-template-columns:1fr}
}
.states-col a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  margin-bottom:8px;
  color:var(--text);
  background:#fff;
}
.states-col a:hover{
  background:#f8fafc;
  text-decoration:none;
}

/* Thumbnails */
.thumb-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  margin-top:12px;
}
@media (max-width: 780px){
  .thumb-grid{grid-template-columns:1fr}
}
.thumb-grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid var(--line);
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}
.biglink{
  font-size:22px;
  font-weight:bold;
  color:var(--blue);
}

.site-footer{
  margin:18px 0 0;
  text-align:center;
  padding:12px;
  color:var(--muted);
}

.fullimg{width:100%; height:auto; border-radius:12px; border:1px solid var(--line); display:block}

.hr{height:1px; background:var(--line); margin:14px 0}

/* Popup (optional) */
#popup-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.78);
  z-index:9999;
  opacity:0;
  visibility:hidden;
  transition: opacity .6s ease, visibility .6s ease;
}
#popup-overlay.show{opacity:1; visibility:visible}
#popup-box{
  width:min(520px, 92vw);
  background:#111;
  color:#fff;
  border-radius:14px;
  padding:18px;
  position:relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  text-align:center;
}
#popup-box img{
  width:100%;
  height:auto;
  border-radius:12px;
  margin-bottom:12px;
}
#popup-box h2{margin:6px 0 10px; font-size:22px}
#popup-btn{
  display:inline-block;
  background:#e50914;
  color:#fff;
  padding:12px 16px;
  border-radius:10px;
  font-weight:bold;
  text-decoration:none;
}
#popup-btn:hover{filter:brightness(1.07)}
#popup-close{
  position:absolute;
  top:10px; right:12px;
  background:transparent;
  border:0;
  color:#fff;
  font-size:28px;
  cursor:pointer;
}
