:root {
  --bg: #ffffff;
  --card: #f8f9fa;
  --muted: #6c757d;
  --accent: #2d69a9;
  --accent-2: #529fc6;
  --surface: #ffffff;
  --text: #343a40;
  --glass: rgba(255, 255, 255, 0.04);
  --maxw: 1100px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  padding-bottom: 40px;
}
.wrap {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(255,255,255,0.6);
}

/* Header grid: use padding for height and center content vertically */
.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px; /* controls header height (top/bottom) */
  box-sizing: border-box;
}

/* Brand (logo + text) */
.brand {
  display: flex;
  align-items: center; /* centers logo + text vertically */
  gap: 12px;
}

/* Logo */
.site-logo {
  height: 64px;
  max-height: calc(100% - 8px); /* ensure it fits inside header padding */
  width: auto;
  display: block;
  margin: 0;
}

/* Brand text block stacked and centered */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.brand-text h1 {
  margin: 0;
  font-size: 30px;
  color: var(--accent);
}
.brand-text .tagline {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

/* Navigation */
.topnav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
  font-size: 14px;
}
.topnav a:hover, .topnav a:focus { color: var(--accent-2); }

/* Intro */
.intro {
  background: rgba(0,123,255,0.06);
  border-radius: 10px;
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.intro h2 { margin-top: 0; color: var(--accent); }
.callout {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(0,123,255,0.04);
  color: var(--text);
  font-size: 15px;
}

/* Sections */
.section {
  margin: 26px 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--card);
}
.section h3 { margin-top: 0; color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* Cards */
.cards {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.cards li {
  background: var(--glass);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);
}
.cards h4 { margin: 0 0 6px; color: var(--text); }

/* Table */
.cfg-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin-top: 10px;
  background: transparent;
}
.cfg-table th {
  text-align: left;
  padding: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  color: var(--muted);
  width: 45%;
}
.cfg-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}

/* Links & lists */
.links { list-style: none; padding: 0; margin: 8px 0; }
.links li { margin: 6px 0; }
.links a { color: var(--accent-2); text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(0,180,167,0.03), rgba(125,211,252,0.02));
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,180,167,0.08);
}
.btn:hover { transform: translateY(-2px); transition: transform .15s; }

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footnav a { color: var(--muted); margin-left: 12px; text-decoration: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0 auto;
  max-width: 980px;
  background: var(--card);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 9999;
}
.cookie-banner .cookie-inner { display: flex; gap: 12px; align-items: center; width: 100%; }
.cookie-banner p { margin: 0; color: var(--text); font-size: 14px; }
.cookie-actions { margin-left: auto; display: flex; gap: 8px; }
.cookie-actions button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-actions button#cookie-reject {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Responsive adjustments */
@media (max-width:720px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 8px;
  }
  .brand {
    width: 100%;
    padding: 6px 0;
    gap: 10px;
  }
  .brand-text h1 { font-size: 22px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  .site-logo { height: 56px; max-height: calc(100% - 6px); }
  .brand-text .tagline { font-size: 12px; }
}
