:root {
  --on-primary: #2563eb;
  --on-primary-hover: #1d4ed8;
  --on-secondary: #1e40af;
  --on-text: #1e293b;
  --on-muted: #64748b;
  --on-bg: #ffffff;
  --on-border: #e2e8f0;
  --on-radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-text);
  background: var(--on-bg);
  -webkit-font-smoothing: antialiased;
}

.on-page { min-height: 100vh; display: flex; flex-direction: column; }
.on-main { flex: 1; }

/* Resist host/theme bleed on shared CMS installs. */
body[class*="-page"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body[class*="-page"] > [class$="-header"],
body[class*="-page"] > [class$="-main"],
body[class*="-page"] > [class$="-footer"] {
  display: block !important;
  float: none !important;
  clear: both !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.on-header,
.on-main,
.on-footer {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem;
}
@media (min-width: 640px) {
  .on-header,
  .on-main,
  .on-footer { padding: 1.5rem 2rem; }
}

.on-header {
  border-bottom: 1px solid var(--on-border);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.on-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.on-nav a {
  color: var(--on-primary);
  text-decoration: none;
  font-weight: 500;
}
.on-nav a:hover { color: var(--on-primary-hover); text-decoration: underline; }

.on-breadcrumb {
  font-size: 0.813rem;
  color: var(--on-muted);
  margin-bottom: 1rem;
}
.on-breadcrumb a {
  color: var(--on-primary);
  text-decoration: none;
}
.on-breadcrumb a:hover { text-decoration: underline; }

.on-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}
@media (min-width: 640px) {
  .on-main h1 { font-size: 1.75rem; }
}

.on-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem 0;
}
@media (min-width: 640px) {
  .on-main h2 { font-size: 1.25rem; }
}

.on-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem 0;
}

.on-main p { margin: 0 0 1rem 0; }
.on-intro { margin-bottom: 1.5rem; }

.on-sbody ul,
.on-sbody ol {
  margin: 0.75rem 0 1rem 1.25rem;
  padding-left: 1.25rem;
}
.on-sbody li { margin-bottom: 0.4rem; }

.on-sbody table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}
@media (min-width: 480px) {
  .on-sbody table { display: table; }
}
.on-sbody th,
.on-sbody td {
  border: 1px solid var(--on-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.on-sbody th {
  background: var(--on-border);
  font-weight: 600;
}

.on-faq { margin-top: 2rem; }
.on-faq h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-text);
}

.on-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.on-related li {
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--on-border);
}
.on-related li:last-child { border-bottom: none; }
.on-related a {
  color: var(--on-primary);
  text-decoration: none;
}
.on-related a:hover { text-decoration: underline; }

.on-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-border);
  font-size: 0.875rem;
  color: var(--on-muted);
}
.on-footer a {
  color: var(--on-primary);
  text-decoration: none;
}
.on-footer a:hover { text-decoration: underline; }

.on-hubinfo {
  color: var(--on-muted);
  margin-bottom: 1.5rem;
}
.on-plist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.on-plist li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--on-border);
}
.on-plist li:last-child { border-bottom: none; }
.on-plist a {
  color: var(--on-primary);
  text-decoration: none;
  display: block;
}
.on-plist a:hover { text-decoration: underline; }

.on-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.on-pager a {
  color: var(--on-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--on-bg);
  border: 1px solid var(--on-border);
  border-radius: var(--on-radius);
}
.on-pager a:hover {
  background: var(--on-primary);
  color: white;
  border-color: var(--on-primary);
}
.on-pginfo {
  color: var(--on-muted);
  font-size: 0.875rem;
}


/* ---- Dynamic Site Style Profile ---- */
:root { --on-radius: 4px; }
.on-header, .on-main, .on-footer { max-width: 1240px; }
body { font-size: 16px; line-height: 1.62; }
.on-header, .on-main, .on-footer { padding: 1rem 1.25rem; }
.on-main h2 { margin-top: 1.8rem; }
.on-pager a, .on-sbody th, .on-sbody td { border-radius: var(--on-radius); }

      .on-nav { gap: .45rem .75rem; }
      .on-nav a { text-decoration: none; font-size: .9em; }
    

      .on-main h1, .on-main h2, .on-main h3 { font-family: Georgia, "Times New Roman", serif; }
    

      .on-header, .on-footer, .on-related li, .on-plist li { border-width: 2px; }
    

      .on-footer { border: 1px solid var(--on-border); border-radius: var(--on-radius); padding: .9rem 1rem; margin-bottom: 1rem; }
    
/* ---- End Dynamic Site Style Profile ---- */

