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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

      .ph-nav a { text-decoration: none; border: 1px solid var(--ph-border); border-radius: 999px; padding: .25rem .65rem; background: #fff; }
    

      .ph-main h1, .ph-main h2, .ph-main h3 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.2px; }
    

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

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

