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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

      .qj-nav a { text-decoration: none; border: 1px solid var(--qj-border); border-radius: var(--qj-radius); padding: .3rem .55rem; background: #fff; }
    

      .qj-main h1, .qj-main h2, .qj-main h3 { font-weight: 760; letter-spacing: .1px; }
    

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

      .qj-footer { border-top-style: solid; background: transparent; }
    
/* ---- End Dynamic Site Style Profile ---- */

