:root {
  --xf-primary: #2563eb;
  --xf-primary-hover: #1d4ed8;
  --xf-secondary: #1e40af;
  --xf-text: #1e293b;
  --xf-muted: #64748b;
  --xf-bg: #ffffff;
  --xf-border: #e2e8f0;
  --xf-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(--xf-text);
  background: var(--xf-bg);
  -webkit-font-smoothing: antialiased;
}

.xf-page { min-height: 100vh; display: flex; flex-direction: column; }
.xf-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

      .xf-nav a { text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
      .xf-nav a:hover { border-bottom-color: var(--xf-primary); }
    

      .xf-main h1, .xf-main h2, .xf-main h3 { font-weight: 600; color: color-mix(in srgb, var(--xf-text) 86%, #223); }
    

      .xf-header, .xf-footer, .xf-related li, .xf-plist li { border-width: 1px; }
    

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

