/* Wave's existing identity. Keep the official logo file unchanged. */
:root {
  --brand-blue: #0367a6;
  --brand-light-blue: #94cef2;
  --brand-aqua: #51bfd3;
  --brand-purple: #8b3b89;
  --bg: #f3f7fa;
  --ink: #12334d;
  --muted: #506778;
  --line: #d9e5ed;
  --navy: #092c50;
  --navy2: #134467;
  --teal: #0367a6;
  --sky: #94cef2;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081c2d;
    --surface: #102c43;
    --ink: #eef6fb;
    --muted: #b1c8d9;
    --line: #29475d;
    --teal: #94cef2;
    --sky: #94cef2;
  }
}
:root[data-theme="dark"] {
  --bg: #081c2d;
  --surface: #102c43;
  --ink: #eef6fb;
  --muted: #b1c8d9;
  --line: #29475d;
  --teal: #94cef2;
  --sky: #94cef2;
}
html, body { margin: 0; }
.mast {
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mast::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px;
  height: 8px;
  background: url("assets/wave-ribbon.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.mast .wrap { padding-block: 9px 13px; gap: 20px; }
.brand {
  flex: none;
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff;
}
.brand img {
  display: block;
  width: 180px;
  height: auto;
}
.mast nav a { color: var(--ink); }
.mast nav a:hover { background: var(--bg); color: var(--teal); }
.mast nav .app-link { color: var(--teal); }
.mtools select, .mtools button {
  color: var(--ink);
  border-color: var(--line);
  min-height: 44px;
}
.mtools button:hover { background: var(--bg); }
.status .wrap { padding-top: 15px; }
.status a { color: var(--brand-light-blue); text-decoration: underline; text-underline-offset: 3px; }
.hero .wrap { padding-bottom: 94px; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: url("assets/wave-ribbon.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.hero .eyebrow { color: var(--brand-light-blue); }
.hero h1 { text-transform: none; letter-spacing: 0; }
.go, .pill2:not(.ghost) { background: var(--brand-blue); color: #fff; }
.go:hover, .pill2:not(.ghost):hover { background: #024f80; }
.go:focus-visible, .pill2:focus-visible { outline-offset: 4px; }
.feed b { color: var(--brand-light-blue); }
.svc { border-top-color: var(--brand-blue); }
.svc:nth-child(2) { border-top-color: var(--brand-purple); }
.svc:nth-child(3) { border-top-color: var(--brand-aqua); }
.appv {
  background: var(--bg);
  padding-block: 22px;
}
.acard { border: 1px solid var(--line); box-shadow: 0 3px 12px rgba(9,44,80,.04); }
.welcome {
  position: relative;
  overflow: hidden;
  padding-bottom: 56px;
  gap: 16px;
}
.welcome::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: url("assets/wave-ribbon.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.ag { text-transform: none; }
.welcome .pill2 { flex: none; }
.ahead { letter-spacing: .04em; }
.tabbar { background: var(--surface); border-top: 1px solid var(--line); }
.tabbar a { color: var(--muted); min-height: 44px; }
.tabbar a[aria-current="page"] { color: var(--teal); }
.tabbar a[aria-current="page"]::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-purple);
}
.allbtn { background: var(--brand-light-blue); color: var(--navy); }
.appv > .appwrap > .note { color: var(--muted); }
.footer-logo {
  display: block;
  width: 190px;
  height: auto;
  background: #fff;
  border-radius: 5px;
  padding: 7px;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .mast .wrap { gap: 12px; justify-content: space-between; }
  .brand img { width: 150px; }
  .mtools { margin-left: auto; }
  .mtools select, .mtools button { padding: 7px 8px; font-size: .75rem; }
  .mast nav { order: 3; flex-basis: 100%; }
  .mast nav a { padding: 8px; }
  .app-shell .mast nav { display: none; }
  .app-shell .status { display: none; }
  .app-shell footer { display: none; }
  .app-shell .mast { position: relative; }
  .appv { padding-top: 20px; }
  .nrow { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .nrow .right b { overflow-wrap: anywhere; }
  .nrow .dir { font-size: .85rem; }
  .ahead { flex-wrap: wrap; }
  .ahead .loc { margin-left: 0; flex-basis: 100%; }
  .hero .wrap { padding-bottom: 82px; }
}
@media (max-width: 360px) {
  .brand img { width: 128px; }
  .mast .wrap { gap: 6px; }
  .mtools { gap: 4px; }
}
