:root {
  --blue-deep: #1e3a8a;
  --blue: #2563eb;
  --blue-lite: #60a5fa;
  --teal-deep: #0f766e;
  --teal: #14b8a6;
  --page: #E1E0E0;
  --ink: #111;
  --muted: #444;
  --header-h: 88px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background: var(--page);
  color: var(--ink);
  min-width: 320px;
}
a { color: #0000CC; }
img { border: 0; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.header {
  display: flex;
  align-items: stretch;
  min-height: var(--header-h);
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 42%, #0f766e 100%);
  color: #fff;
  position: relative;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #5eead4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px 8px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}
.wordmark strong {
  display: block;
  font: 700 20px/1.1 Verdana, Arial, sans-serif;
  letter-spacing: 0.04em;
}
.wordmark em {
  display: block;
  font: italic 11px/1.3 Verdana, Arial, sans-serif;
  opacity: 0.9;
}
.header-mid { flex: 1 1 auto; min-width: 12px; }
.tagline {
  flex: 0 1 auto;
  align-self: center;
  margin: 0 18px 0 0;
  font: italic 700 15px/1.2 Verdana, Arial, sans-serif;
  text-align: right;
  max-width: 42%;
}
.tagline .better {
  display: block;
  margin-top: 4px;
  font: italic 700 12px/1.2 Verdana, Arial, sans-serif;
  letter-spacing: 0.06em;
  opacity: 0.95;
}

.navrow {
  display: flex;
  align-items: center;
  background: #fff;
  min-height: 28px;
}
.nav-date {
  flex: 1 1 auto;
  font-size: 12px;
  color: #3333CC;
  padding: 4px 8px;
}
.nav-tabs { display: flex; margin-left: auto; flex-wrap: wrap; }
.nav-tabs a {
  min-width: 101px;
  min-height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 11px;
  text-decoration: none;
  color: #2244aa;
  background: #dfe6ff;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -4px;
  padding: 0 12px;
}
.nav-tabs a:hover { background: #c8d4ff; }
.nav-tabs a.on { background: #2563eb; color: #fff; font-weight: bold; }

.bodyrow { display: flex; width: 100%; align-items: stretch; min-height: calc(100vh - 160px); }
.leftcol {
  flex: 0 0 220px;
  width: 220px;
  background: #d8d7d7;
  border-right: 1px solid #aaa;
}
.rightcol { flex: 1 1 auto; min-width: 0; }

.leftcol h2 {
  font-size: 12px;
  background: linear-gradient(90deg, #1e3a8a, #0f766e);
  color: #fff;
  padding: 8px 10px;
}
.filters { padding: 10px; }
.filters button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid #888;
  background: #fff;
  font: 12px Verdana, sans-serif;
  cursor: pointer;
}
.filters button.on,
.filters button:hover { background: #2563eb; color: #fff; border-color: #1e3a8a; }

.quote { padding: 10px 12px; font-size: 11px; line-height: 1.45; }
.phonebox {
  margin: 10px;
  background: #fff;
  border: 1px solid #000;
  padding: 12px;
  font-size: 12px;
}
.phonebox a.phone {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  display: inline-block;
  margin: 6px 0;
}
.phonebox a.phone:hover { color: #b91c1c; }

.band {
  min-height: 38px;
  background: linear-gradient(90deg, #dbeafe, #ccfbf1);
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 13px;
  gap: 12px;
}
.band small { margin-left: auto; font-weight: normal; color: var(--muted); }

.advantage {
  margin: 12px;
  border: 1px solid #000;
  background: #fff;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 12px;
}
.card {
  background: #fff;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.card:hover { box-shadow: 0 0 0 2px #2563eb; }
.card.picked { box-shadow: 0 0 0 2px #b91c1c; }
.art {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card h3 {
  font-size: 13px;
  padding: 8px 10px 0;
  text-decoration: underline;
}
.card p { font-size: 12px; padding: 6px 10px 12px; flex: 1; line-height: 1.4; }
.card .who { font-size: 10px; color: #666; padding: 0 10px 8px; text-align: right; }

.detail {
  display: none;
  margin: 0 12px 16px;
  border: 1px solid #000;
  background: #fff;
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.detail.show { display: block; }
.detail h3 { margin-bottom: 8px; }
.call {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  min-height: 44px;
  font-weight: bold;
}
.call:hover { background: #1e3a8a; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 12px;
}
.contact-card {
  border: 1px solid #000;
  background: #fff;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.45;
}
.contact-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1e3a8a;
  margin-bottom: 8px;
}
.contact-card .phone {
  font-size: 22px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  display: inline-block;
  margin: 4px 0 8px;
}
.contact-card .phone:hover { color: #b91c1c; }
.contact-card ul { margin: 6px 0 0 18px; }

.page-contact .rightcol {
  display: flex;
  flex-direction: column;
}
.page-contact .contact-grid {
  flex: 1 1 auto;
  align-content: stretch;
}
.page-contact .contact-card { min-height: 12rem; }

.news-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.news-item {
  border: 1px solid #000;
  background: #fff;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.news-item time {
  display: block;
  font-size: 11px;
  color: #1e3a8a;
  font-weight: bold;
  margin-bottom: 4px;
}
.news-item h3 { font-size: 14px; margin-bottom: 6px; }
.news-item.fresh {
  box-shadow: 0 0 0 2px #2563eb;
}

footer {
  background: #1e3a8a;
  color: #fff;
  font-size: 11px;
  padding: 8px 12px;
  display: flex;
  gap: 12px;
}
footer a { color: #fff; }
footer span { margin-left: auto; }

@media (max-width: 800px) {
  .bodyrow { flex-direction: column; }
  .leftcol { flex: none; width: 100%; border-right: 0; border-bottom: 1px solid #aaa; }
  .tagline { display: none; }
  .filters { display: flex; flex-wrap: wrap; gap: 6px; }
  .filters button { width: auto; flex: 1 1 140px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
