/* Force-close any element using the HTML hidden attribute (even if other CSS uses !important) */
html body [hidden],
html body .tt-pop[hidden],
html body .tt-pop[aria-hidden="true"]{
  display: none !important;
}

/* TEST: if CSS loads, you will see a subtle border at the top */
.site-header { border-bottom: 3px solid #0f1428 !important; }

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f1428;
  background: #f6f7fb;
}
a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.site-header {
  background: #fff;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand-name {
  font-weight: 800;
  letter-spacing: .5px;
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
}
.nav-link:active { transform: scale(.99); }

/* Typography */
.h1 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 10px; }
.h2 { font-size: 1.1rem; margin: 0 0 10px; }
.lead { margin: 0 0 14px; color: rgba(15,20,40,.8); }
.muted { color: rgba(15,20,40,.65); }
.small { font-size: .9rem; }
.tiny { font-size: .82rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn.primary {
  background: #005eb8;
  color: #fff;
}
.btn.ghost {
  background: #fff;
  border-color: rgba(15,20,40,.12);
}
.btn:active { transform: translateY(1px); }

/* Cards */
.card {
  background: #fff;
  border: 1px solid rgba(15,20,40,.10);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

/* Sections */
.section { margin-top: 18px; }
.page-head { margin: 10px 0 14px; }
.page-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.small-link { font-weight: 700; color: rgba(0,94,184,.95); }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.tool-card {
  display: block;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15,20,40,.10);
}
.tool-title { font-weight: 800; margin-bottom: 6px; }
.tool-cta { margin-top: 10px; font-weight: 800; color: #005eb8; }

/* Forms */
.field { margin-top: 12px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,20,40,.18);
  background: #fff;
  font-size: 1rem;
  outline: none;
}
input:focus { border-color: rgba(0,94,184,.55); box-shadow: 0 0 0 4px rgba(0,94,184,.12); }
.help { margin-top: 6px; }

.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Segmented controls */
.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,20,40,.14);
  background: #fff;
  font-weight: 800;
}
.seg-item input { width: auto; padding: 0; margin: 0; }

/* Alerts */
.alert {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
}
.alert.danger {
  border-color: rgba(237,32,71,.35);
  background: rgba(237,32,71,.07);
}
.list { margin: 0; padding-left: 18px; }

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(15,20,40,.10);
}
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tablet+ */
@media (min-width: 760px) {
  .wrap { padding: 18px; }
  .two { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Header: mobile-first ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(15,20,40,.12);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#0f1428;
}
.brand-logo{ width:34px; height:34px; object-fit:contain; }
.brand-name{ font-weight:900; letter-spacing:.02em; }

/* Desktop nav hidden on mobile */
.site-nav{ display:none; gap:14px; align-items:center; }
.nav-link{
  text-decoration:none;
  color:#0f1428;
  font-weight:800;
  padding:8px 10px;
  border-radius:12px;
}
.nav-link:hover{ background: rgba(15,79,168,.08); }

/* Hamburger */
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(15,20,40,.12);
  background:#fff;
  cursor:pointer;
}
.burger{
  width:18px;
  height:12px;
  position:relative;
  display:block;
}
.burger::before,
.burger::after,
.burger{
  background: transparent;
}
.burger::before,
.burger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#0f1428;
  border-radius:999px;
}
.burger::before{ top:0; }
.burger::after{ bottom:0; }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }
.burger{ }

/* middle line */
.burger{
}
.burger::before{}
/* add middle line using box-shadow */
.burger::before{
  box-shadow: 0 5px 0 #0f1428;
}

/* Backdrop + drawer */
.nav-backdrop{
  position:fixed;
  inset:0;
  background: rgba(15,20,40,.45);
  z-index: 60;
}

.mobile-nav{
  position:fixed;
  top:0;
  right:0;
  width:min(86vw, 360px);
  height:100vh;
  background:#fff;
  z-index: 70;
  border-left:1px solid rgba(15,20,40,.12);
  box-shadow: 0 10px 30px rgba(15,20,40,.18);
  display:flex;
  flex-direction:column;
}

.mobile-nav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(15,20,40,.12);
}
.mobile-nav-title{ font-weight:900; }
.nav-close{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(15,20,40,.12);
  background:#fff;
  cursor:pointer;
  font-size:22px;
  font-weight:900;
}

.mobile-nav-links{
  padding:10px 10px 16px;
  display:grid;
  gap:8px;
}
.m-link{
  text-decoration:none;
  color:#0f1428;
  font-weight:900;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(15,20,40,.10);
  background:#fff;
}
.m-link:hover{
  background: rgba(15,79,168,.08);
  border-color: rgba(15,79,168,.18);
}

/* Prevent background scroll when menu open */
html.nav-open, html.nav-open body{ overflow:hidden; }

/* Desktop breakpoint */
@media (min-width: 980px){
  .nav-toggle{ display:none; }
  .site-nav{ display:flex; }
  .nav-backdrop, .mobile-nav{ display:none !important; }
}

