:root {
  --primary: #0024c1;
  --primary-strong: #0033ff;
  --secondary: #923897;
  --secondary-soft: #fc97fd;
  --surface: #f9f9f9;
  --panel: #ffffff;
  --panel-muted: #eeeeee;
  --line: #1a1c1c;
  --line-soft: #c4c5da;
  --text: #1a1c1c;
  --muted: #444657;
  --rail-width: 220px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.48;
}
a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--primary);
  color: #fff;
  border-bottom: 2px solid var(--line);
}
.brand-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 6px var(--gutter);
}
.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-portrait {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border: 1px solid #fff;
  background: #fff;
}
.brand-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-name {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.brand-meta {
  flex: 0 1 420px;
  display: grid;
  gap: 2px;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 48px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.24);
}
.photo-strip img {
  width: 100%;
  height: 48px;
  object-fit: cover;
}

.site-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: calc(100vh - 126px);
}
.left-rail {
  padding: 28px 16px 36px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.rail-heading {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.rail-menu,
.content-menu,
.footer-links {
  display: grid;
  gap: 8px;
}
.rail-menu a,
.content-menu a {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
}
.rail-menu a:first-child {
  color: var(--primary);
  border-left: 4px solid var(--primary);
}
.rail-menu .nav-icon,
.content-menu .nav-icon {
  width: 18px;
  flex: 0 0 18px;
  color: var(--primary);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.content-menu {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.appointment-rail {
  display: block;
  margin: 28px 0 14px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--secondary-soft);
  color: #37003c;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}
.legal-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.main-column {
  min-width: 0;
  max-width: 1120px;
  padding: 26px var(--gutter) 48px;
}
.top-search {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}
.top-search form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-search label {
  color: var(--muted);
  font-size: 13px;
}
input[type="search"] {
  width: 190px;
  max-width: 45vw;
  height: 30px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 3px 7px;
}
button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--panel-muted);
  color: var(--text);
  padding: 2px 12px;
  font-weight: 700;
}
.breadcrumb {
  margin: 0 0 14px;
  color: #747689;
  font-size: 12px;
  font-style: italic;
}
.content-panel {
  max-width: 1000px;
}
.content-panel h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}
.content-panel h2,
.content-panel h3,
.block-heading {
  margin: 26px 0 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.content-panel h3 { font-size: 17px; }
.content-panel p {
  margin: 0 0 14px;
}
.summary {
  font-size: 16px;
  color: var(--muted);
}
.intro-box {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.1);
}
.intro-box p:last-child { margin-bottom: 0; }
.appointment-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 28px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--secondary-soft);
  color: #37003c;
  font-weight: 900;
  text-transform: uppercase;
}
.legacy-content,
.content-flow {
  max-width: 1000px;
}
.embedded-html,
.embedded-html > section {
  min-width: 0;
  max-width: 100%;
}
.content-flow > * + *,
.legacy-content > * + * {
  margin-top: 12px;
}
.content-flow ul,
.legacy-content ul,
.toc ul {
  margin: 8px 0 18px 24px;
}
.content-flow ol,
.legacy-content ol {
  margin: 8px 0 18px 24px;
}
.toc {
  margin: 16px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.main-image,
figure img {
  border: 1px solid var(--line-soft);
}
figure {
  margin: 14px 0 18px;
}
figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  background: #fff;
}
.cards-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.cards-grid.columns-1 { grid-template-columns: 1fr; }
.cards-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.content-card.no-thumb {
  grid-template-columns: 1fr;
}
.content-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.content-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}
.content-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.read-more {
  font-size: 12px;
  text-transform: uppercase;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.legacy-table-block {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.legacy-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.legacy-table-cell {
  min-width: 0;
}
.legacy-table-cell:empty,
.legacy-table-row:empty {
  display: none;
}
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.content-panel table {
  display: block;
  overflow-x: auto;
}
.content-panel thead,
.content-panel tbody,
.content-panel tr {
  width: 100%;
}
th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--text);
  font-weight: 900;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.site-footer {
  padding: 18px 24px 28px calc(var(--rail-width) + 24px);
  border-top: 1px solid var(--line-soft);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.footer-links {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 8px;
}

@media (max-width: 820px) {
  .site-header { position: static; }
  .brand-row {
    align-items: flex-start;
    padding: 8px 14px;
  }
  .brand-name { font-size: 24px; }
  .brand-meta {
    display: none;
  }
  .photo-strip { height: 38px; }
  .photo-strip img { height: 38px; }
  .site-shell {
    grid-template-columns: 1fr;
  }
  .left-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }
  .rail-menu,
  .content-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .main-column {
    padding: 18px 14px 36px;
  }
  .top-search { justify-content: flex-start; }
  .content-panel h1 { font-size: 22px; }
  .cards-grid,
  .cards-grid.columns-2,
  .cards-grid.columns-3,
  .listing-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding: 16px 14px 24px;
  }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .brand-portrait {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .brand-name { font-size: 20px; }
  .rail-menu,
  .content-menu {
    grid-template-columns: 1fr;
  }
  .top-search form {
    width: 100%;
    align-items: stretch;
  }
  input[type="search"] {
    width: 100%;
    max-width: none;
  }
  .content-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .content-card img {
    width: 64px;
    height: 64px;
  }
}
