:root {
  --site-button-bg: #006e68;
}
.site-footer {
  margin-top: 35px;
  padding: 28px 0;
  background: #112d49;
  color: white;
  text-align: center;
}
.site-footer-inner {
  max-width: 1440px;
  margin: auto;
  padding: 0 14px;
}
.site-footer p {
  margin: 7px 0;
  font-size: 14px;
}
.site-footer a {
  display: inline-block;
  margin: 0 7px;
  color: #daf5f1;
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #112d49;
  color: white;
  border-bottom: 4px solid #008f87;
}
.site-header-inner,
.site-nav-inner {
  max-width: 1440px;
  margin: auto;
  padding: 0 24px;
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.site-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: white;
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}
.site-brand-name {
  display: block;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
}
.site-brand-name span {
  color: #ff9270;
}
.site-brand-tagline {
  display: block;
  margin-top: 8px;
  color: #dbe8f0;
  font-size: 13px;
}
.site-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}
.site-language {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.site-language[hidden] {
  display: none;
}
.site-language a {
  border: 1px solid #a6bccb;
  border-radius: 8px;
  padding: 7px 11px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.site-language a[aria-current] {
  background: white;
  color: #112d49;
  border-color: white;
}
.site-search {
  display: flex;
  gap: 5px;
  width: min(100%, 225px);
}
.site-search input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid #a6bccb;
  border-radius: 7px;
  padding: 5px 8px;
  font: inherit;
  font-size: 14px;
}
.site-search button {
  border: 1px solid #a6bccb;
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--site-button-bg);
  color: white;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.site-search input:focus-visible,
.site-search button:focus-visible {
  outline: 2px solid #ff9270;
  outline-offset: 2px;
}
.site-nav {
  position: sticky;
  top: var(--site-header-height, 0px);
  z-index: 999;
  background: #0b243e;
}
.site-nav-links {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 3px;
}
.site-nav-links a,
.site-more > summary {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.site-nav-links a:hover,
.site-nav-links a:focus-visible,
.site-more > summary:hover,
.site-more > summary:focus-visible {
  background: #006e68;
}
.site-more {
  position: relative;
}
.site-more > summary {
  list-style: none;
  cursor: pointer;
}
.site-more > summary::-webkit-details-marker {
  display: none;
}
.site-more > summary::after {
  content: "▾";
  margin-inline-start: 6px;
}
.site-more[open] > summary::after {
  content: "▴";
}
.site-more-links {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  min-inline-size: 195px;
  background: #112d49;
  box-shadow: 0 4px 12px #0003;
}
.site-menu {
  display: none;
}
.site-header a:focus-visible,
.site-nav button:focus-visible {
  outline: 2px solid #ff9270;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .site-header-inner,
  .site-nav-inner {
    padding-inline: 14px;
  }
  .site-header-inner {
    gap: 10px;
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .site-brand {
    flex: 1 1 205px;
    gap: 10px;
  }
  .site-logo {
    width: 54px;
    height: 54px;
    padding: 3px;
  }
  .site-brand-name {
    font-size: clamp(17px, 4.4vw, 21px);
  }
  .site-brand-tagline {
    margin-top: 5px;
    font-size: 12px;
  }
  .site-language a {
    padding: 5px 9px;
  }
  .site-tools {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .site-search {
    flex: 1 1 145px;
    max-width: 195px;
  }
  .site-nav-links {
    gap: 0;
  }
  .site-nav-links a,
  .site-more > summary {
    padding: 10px 12px;
  }
  .site-more-links {
    position: static;
    box-shadow: none;
    padding-inline-start: 14px;
  }
  .site-nav[data-menu-ready] .site-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .site-nav[data-menu-ready] .site-nav-links {
    display: none;
  }
  .site-nav[data-menu-ready] .site-nav-links.open {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
  }
  .site-nav[data-menu-ready] .site-nav-links a,
  .site-nav[data-menu-ready] .site-more > summary {
    border-top: 1px solid #294761;
  }
}
.site-content {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}
.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 16px auto 0;
  max-width: 1100px;
}
.footer-policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px;
  font-size: 14px;
  color: inherit;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .site-content {
    padding-inline: 14px;
  }
}

.site-photo-shortcut {
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.site-nav .state-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  padding: 5px 10px;
}
.site-nav .state-filter select {
  background: #12304b;
  color: white;
  border: 1px solid #648692;
  border-radius: 5px;
  padding: 5px;
  font-size: 13px;
  max-width: 168px;
  min-height: 34px;
}
.site-nav .state-filter option {
  background: white;
  color: #12304b;
}
@media (max-width: 760px) {
  .site-nav .site-nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }
  .site-nav[data-menu-ready] .site-menu {
    font-size: 12px;
    flex-shrink: 0;
    gap: 4px;
  }
  .site-nav .site-photo-shortcut {
    font-size: 12px;
    padding: 8px 5px;
    border: 1px solid #648692;
    border-radius: 5px;
    white-space: nowrap;
  }
  .site-nav .site-nav-inner > .state-filter {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    margin-left: auto;
  }
  .site-nav .site-nav-inner > .state-filter label {
    display: none;
  }
  .site-nav .site-nav-inner > .state-filter select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
  }
  .site-nav .site-nav-links {
    flex-basis: 100%;
    width: 100%;
  }
}

/* App promotion stays inside the existing latest-updates / navigation row. */
.spectrum-app-download {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 12px !important;
  border: 2px solid #ffd34e;
  border-radius: 10px;
  background: linear-gradient(120deg, #5020a0, #9b1254);
  color: #fff !important;
  box-shadow: 0 2px 8px #5020a033;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 1.25;
}
.spectrum-app-download img { width:36px; height:36px; object-fit:contain; border-radius:8px; background:white; flex-shrink:0; }
.spectrum-app-download b { display:block; font-size:16px; font-weight:800; color:#fff; }
.spectrum-app-download span > span { display:block; margin-top:2px; font-size:14px; font-weight:700; color:#ffe68a; }
.spectrum-app-download:hover { background:#581078; box-shadow:0 2px 10px #5020a060; }
.spectrum-app-download:focus-visible { outline:3px solid #006e68; outline-offset:3px; }
.has-app-download { display:flex; align-items:center; gap:8px; }
.has-app-download .site-nav-links { min-width:0; flex:1; }
@media (min-width: 761px) {
  .site-nav-inner { padding-inline: 10px; }
  .site-nav-links { flex-wrap: nowrap; align-items: center; gap: 0; }
  .site-nav-links > a,
  .site-more > summary { white-space: nowrap; padding: 12px 8px; font-size: 13px; }
  .site-nav .state-filter { min-width: 0; padding-inline: 4px; }
  .site-nav .state-filter select { width: 125px; }
  .site-nav .state-filter > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-nav .site-photo-shortcut { white-space: nowrap; }
  .has-app-download .spectrum-app-download { gap: 4px; padding: 4px 6px !important; }
  .has-app-download .spectrum-app-download img { width: 26px; height: 26px; }
  .has-app-download .spectrum-app-download b { font-size: 12px; }
  .has-app-download .spectrum-app-download span > span { font-size: 10px; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  .site-nav-links > a, .site-more > summary { font-size: 11px; padding-inline: 4px; }
  .site-nav .state-filter label { display: none; }
  .site-nav .state-filter select { width: 90px; }
  .has-app-download .spectrum-app-download > span { display: none; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .site-nav-links > a, .site-more > summary { font-size: 10px; padding-inline: 3px; }
  .site-nav-inner { padding-inline: 4px; }
}
@media(max-width:760px) {
  .updates-heading { gap:5px; padding:8px; }
  .updates-heading strong { font-size:14px !important; }
  .updates-heading .latest-badge { display:none; }
  .spectrum-app-download { gap:5px; padding:5px 7px !important; }
  .spectrum-app-download img { width:30px; height:30px; }
  .spectrum-app-download b { font-size:13px; }
  .spectrum-app-download span > span { font-size:12px; }
  .has-app-download { flex-wrap:wrap; }
  .has-app-download .spectrum-app-download { order:-1; }
}

/* Compact app card between the brand and header controls; no extra row. */
.site-header-inner.has-header-app-download { max-width: 1440px; }
.site-header .spectrum-app-download { margin: 0 auto; gap: 6px; padding: 5px 8px !important; }
.site-header .spectrum-app-download img { width: 28px; height: 28px; }
.site-header .spectrum-app-download b { font-size: 13px; }
.site-header .spectrum-app-download span > span { font-size: 10px; }
@media (min-width: 761px) {
  .has-header-app-download .site-brand { flex: 1 1 0; }
  .has-header-app-download .site-tools { flex: 0 1 360px; margin-inline-start: 0; }
}
@media (max-width: 760px) {
  .site-header-inner.has-header-app-download { display: grid; grid-template-columns: minmax(0,1fr) 138px; gap: 8px 10px; padding-block: 10px; }
  .has-header-app-download .site-brand { gap: 7px; }
  .has-header-app-download .site-logo { width: 42px; height: 42px; }
  .has-header-app-download .site-brand-name { font-size: 16px; }
  .has-header-app-download .site-brand-tagline { font-size: 10px; }
  .site-header .spectrum-app-download { width: 138px; gap: 4px; padding: 5px !important; }
  .site-header .spectrum-app-download img { width: 22px; height: 22px; }
  .site-header .spectrum-app-download b { font-size: 10px; }
  .site-header .spectrum-app-download span > span { font-size: 9px; }
  .has-header-app-download .site-tools { grid-column: 1 / -1; margin: 0; }
}

/* Mobile title stays on one line; the smaller app badge sits below it. */
@media(max-width:760px) {
  .site-header-inner.has-header-app-download { position: relative; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .has-header-app-download .site-brand { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 7px; row-gap: 5px; align-items: start; }
  .has-header-app-download .site-brand > span { display: contents; }
  .has-header-app-download .site-logo { grid-column: 1; grid-row: 1 / 3; width: 38px; height: 38px; align-self: center; }
  .has-header-app-download .site-brand-name { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: clamp(12px,3.9vw,17px); line-height: 22px; }
  .has-header-app-download .site-brand-tagline { grid-column: 2; grid-row: 2; width: calc(100% - 144px); min-height: 30px; margin-top: 0; font-size: 9px; line-height: 14px; }
  .site-header .spectrum-app-download { position: absolute; top: 37px; right: 14px; width: 136px; height: 30px; gap: 4px; padding: 3px 5px !important; border-radius: 7px; }
  .site-header .spectrum-app-download img { width: 20px; height: 20px; }
  .site-header .spectrum-app-download b { font-size: 9px; white-space: nowrap; }
  .site-header .spectrum-app-download span > span { margin-top: 1px; font-size: 8px; white-space: nowrap; }
}
