:root {
  --medical-blue: #0066F5;
  --medical-blue-dark: #0A73FF;
  --ink: #050505;
  --muted: #5e6670;
  --line: #333333;
  --cta: #F08AEC;
  --cta-soft: #F5A0F3;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  line-height: 1.25;
}
a { color: #0000aa; font-weight: 700; text-decoration: underline; }
img { max-width: 100%; height: auto; }

.legacy-header {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 140px minmax(0, 805px) 1fr;
  align-items: stretch;
  background: linear-gradient(180deg, #f8fbff 0, #ffffff 112px);
}
.portrait {
  background: var(--medical-blue) url("/assets/images/homepage-viewport.png") left top / 945px 590px no-repeat;
  min-height: 112px;
}
.brand-strip {
  min-height: 112px;
  background: linear-gradient(180deg, #0b7cff, var(--medical-blue-dark));
  color: #fff;
  overflow: hidden;
}
.photo-ribbon {
  height: 32px;
  background: url("/assets/images/homepage-viewport.png") -140px 0 / 945px 590px no-repeat;
}
.brand-name {
  display: block;
  padding: 6px 0 2px;
  color: #fff;
  font-size: 2.05rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 36, 120, 0.55);
}
.brand-meta {
  border-top: 2px solid rgba(255,255,255,.65);
  padding-top: 5px;
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.specialty {
  padding: 16px 20px 0 0;
  color: #6d85c4;
  text-align: right;
  font-size: 1.05rem;
  letter-spacing: 4px;
  font-weight: 700;
}
.overlay-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 6px 18px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
  font-size: 0.72rem;
}
.overlay-menu div {
  position: relative;
}
.overlay-menu ul {
  display: inline;
  margin: 0 0 0 6px;
  padding: 0;
  list-style: none;
}
.overlay-menu li {
  display: inline;
  margin-right: 6px;
}

.site-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  padding: 20px 18px 34px;
}
.left-rail {
  padding-top: 34px;
}
.legacy-menu {
  display: grid;
  gap: 15px;
}
.legacy-menu a {
  color: #111;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}
.rail-search {
  margin-top: 36px;
}
.rail-search label,
.top-search label {
  display: block;
  margin-bottom: 4px;
  color: #111;
}
input[type="search"] {
  width: 118px;
  height: 21px;
  border: 1px solid #e5a8ff;
}
button {
  min-height: 22px;
  border: 1px solid #b57bd3;
  background: #fff;
  color: #000;
  font-weight: 700;
}
.honcode {
  margin-top: 12px;
  display: grid;
  gap: 9px;
  max-width: 150px;
  font-size: 0.68rem;
}

.main-column {
  min-width: 0;
}
.top-search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.top-search form {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb {
  margin: 0 0 10px;
  color: #c4c4c4;
  font-size: 0.72rem;
}
.content-panel h1 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
}
.intro-box {
  border: 5px solid var(--line);
  padding: 8px;
  text-align: center;
  background: #fff;
  color: #000;
}
.intro-box p {
  margin: 0 0 12px;
}
.appointment-cta {
  display: block;
  width: min(610px, 100%);
  margin: 20px 0 38px 4px;
  padding: 11px 16px;
  border: 3px solid #111;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cta), var(--cta-soft));
  box-shadow: 2px 2px 4px rgba(0,0,0,.35);
  color: #000;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.45rem;
  font-weight: 900;
  text-decoration: none;
}
.legacy-content {
  max-width: 1040px;
}
.legacy-content > * + * {
  margin-top: 12px;
}
.legacy-content h2,
.legacy-content h3,
.legacy-content .block-heading {
  font-size: 1rem;
  margin: 12px 0 6px;
  text-transform: uppercase;
}
.legacy-content p {
  margin: 0 0 8px;
}
.legacy-content ul {
  margin: 6px 0 14px 22px;
}
.content-card {
  display: block;
  margin: 12px 0 18px;
  padding: 0 0 0 145px;
  min-height: 80px;
}
.content-card h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.content-card p {
  margin: 0;
}
figure {
  margin: 8px 0 14px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  padding: 5px;
  vertical-align: top;
}
.legacy-footer {
  border-top: 1px solid #d5d5d5;
  padding: 16px 24px 28px 220px;
  color: var(--muted);
  font-size: 0.72rem;
}
.legacy-footer nav {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

@media (max-width: 760px) {
  body { font-size: 0.9rem; }
  .legacy-header {
    grid-template-columns: 72px 1fr;
    min-height: 98px;
  }
  .portrait { min-height: 98px; background-size: 760px auto; }
  .brand-strip { min-height: 98px; }
  .photo-ribbon { height: 24px; background-size: 760px auto; background-position: -92px 0; }
  .brand-name { font-size: 1.3rem; padding-top: 7px; }
  .brand-meta { font-size: 0.68rem; letter-spacing: 0; }
  .specialty { display: none; }
  .site-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }
  .left-rail { padding-top: 0; }
  .legacy-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }
  .top-search { justify-content: flex-start; }
  .appointment-cta { font-size: 1rem; }
  .content-card { padding-left: 0; }
  .legacy-footer { padding-left: 14px; }
}
