body {
  margin: 0px;
  topmargin: 0px;
  color: #000000;
  background-color: #EDECE8;
  font-family: verdana,geneva,arial,helvetica;
}
td {
  font-size: 12px;
  font-family: verdana,geneva,arial,helvetica;
}
a:link {
  color: #000000;
  text-decoration: none;
}
a:visited {
  color: #000000;
  text-decoration: none;
}
a:hover {
  color: #999999;
  text-decoration: none;
}
a:active {
  color: #999999;
  text-decoration: none;
}
a:link.menu {
  color: #81D0F4;
  text-decoration: none;
}
a:visited.menu {
  color: #81D0F4;
  text-decoration: none;
}
a:hover.menu {
  color: #FFED00;
  text-decoration: none;
}
a:active.menu {
  color: #FFED00;
  text-decoration: none;
}

.text_10 {
  font-size: 10px;
}
.text_11 {
  font-size: 11px;
}
.menu_td {
  font-size: 11px;
  font-family: verdana,geneva,arial,helvetica;
}
.header {
  color: #000099;
  font-size:18px;
  font-weight: 700;
  font-family: "Trebuchet MS", Verdana, Arial;
}
.gray_header {
	color: #000000;
	font-weight: bold;
	background-color: #C8C8C8;
	padding-left: 8px;
	padding-top: 3px;
	padding-bottom: 3px;
}
.frame_bottom_text {
  color: #7A7662;
  font-size: 10px;
}

:root {
  --bg: #f7f7f9;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #33227C;
  --primary-contrast: #6633cc;
  --border: #e5e7eb;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body.site {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.site-header__logo {
  height: 40px;
  width: auto;
}
.site-header__title {
  font-size: 18px;
  font-weight: 700;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;                /* or a light brand tint */
  border-bottom: 1px solid #e5e7eb;   /* subtle divider */
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Ensure header sticks to top spacing-wise, not visually fixed */
#app > .page-header {
  margin-bottom: 8px;
}

/* Logo sizing and behavior */
.page-header img {
  height: 40px;            /* adjust as needed */
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Header title enhancements */
.page-header .title {
  font-size: 20px;            /* stronger hierarchy */
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;     /* subtle polish */
  line-height: 1.2;
  white-space: nowrap;        /* keep on one line next to logo */
}

/* Add an accent bar to the left of the title */
.page-header .title {
  position: relative;
  padding-left: 10px;
}
.page-header .title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1.2em;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}

/* Optional: subtle text shadow for contrast on light backgrounds */
.page-header .title {
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Optional: gradient ink for a premium feel (keeps accessibility) */
.page-header .title.title--gradient {
  background: linear-gradient(90deg, var(--primary), var(--primary-contrast));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 16px;
}

/* Sidebar */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  align-self: start;
}
.menu__section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.menu__group { margin-bottom: 12px; }
.menu__group-title {
  font-weight: 700;
  margin: 6px 0;
}
.menu__group-title a {
  color: var(--text);
  text-decoration: none;
}
.menu__group-title a:hover { color: var(--primary-contrast); }

.menu__links {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.menu__link-item { margin: 2px 0; padding-left: 10px; }
.menu__link {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
}
.menu__link:hover {
  color: var(--primary-contrast);
  background: var(--surface-alt);
}

/* Main content */
.main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.content { height: 70vh; display: flex; }
.content__iframe {
  border: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 12px auto 24px auto;
  padding: 0 16px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer__text {
  display: block;
  text-align: right;
}

/* Links */
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-contrast); text-decoration: underline; }
a:visited { color: var(--primary); }
a:active { color: var(--primary-contrast); }

/* XSLT page styles (kept and modernized) */
body.page {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px 12px 24px;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border-bottom: 1px solid var(--border);
}

.header-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-subtitle {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text);
}

.divider { height: 2px; background: var(--border); }

.card-section { padding: 16px 24px; font-size: 15px; }

.topic { border-top: 1px solid var(--border); }
.topic-header {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
  padding: 10px 24px;
  font-size: 14px;
}

/* Legacy compatibility */
td { font-size: 15px; font-family: inherit; }
.header { color: var(--text); font-size: 22px; font-weight: 700; font-family: inherit; }
.gray_header { color: var(--text); font-weight: 600; background-color: var(--surface-alt); padding: 10px 24px; }
.text_10 { font-size: 12px; color: var(--muted); }
.text_11 { font-size: 13px; color: var(--muted); }

/* Readability for lists and code within content */
.card-section ul, .card-section ol { margin: 8px 0 8px 24px; }
.card-section code, .card-section pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 6px;
}
.card-section pre { padding: 12px; overflow: auto; }

/* Responsive */
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; margin-top: 12px; }
  .main { order: 1; }
  .content { height: 60vh; }
  .page-header .title {
    font-size: 18px;
    letter-spacing: 0.01em;
  }
  .page-header {
    gap: 14px;                  /* a touch more breathing room */
  }
  .page-header img {
    height: 40px;               /* keep the logo visually balanced with title */
  }
}
