/* Human Party Web Publication Standard v1.0
   Namespaced to avoid collisions with WordPress themes and plugins. */
.hp-publication {
  --hp-black: #000000;
  --hp-ink: #242424;
  --hp-muted: #666a70;
  --hp-silver: #bfc3c7;
  --hp-line: #d9dcdf;
  --hp-paper: #ffffff;
  --hp-soft: #f5f6f7;
  --hp-blue: #0057b8;
  --hp-indigo: #4b2e83;
  --hp-radius: 12px;
  color: var(--hp-ink);
  background: var(--hp-paper);
  font-family: "Inter", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
.hp-publication *, .hp-publication *::before, .hp-publication *::after { box-sizing: border-box; }
.hp-publication a { color: var(--hp-blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
.hp-publication a:hover { color: var(--hp-indigo); }
.hp-pub-shell { max-width: 1240px; margin: 0 auto; padding: clamp(26px, 4.5vw, 62px) 24px 84px; }
.hp-pub-hero { max-width: var(--hp-hero-width); margin: 0 auto 42px; text-align: center; }
.hp-pub-kicker { margin: 0 0 10px; color: var(--hp-muted); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hp-pub-title { margin: 0; color: var(--hp-black); font-family: "Inter", Arial, sans-serif; font-size: clamp(2.05rem, 4.2vw, 3.65rem); line-height: 1.06; letter-spacing: -.03em; }
.hp-pub-subtitle { max-width: 760px; margin: 18px auto 0; color: var(--hp-muted); font-size: clamp(1rem, 1.8vw, 1.22rem); line-height: 1.55; }
.hp-spectrum-rule { display: grid; grid-template-columns: repeat(6, 1fr); height: 6px; max-width: 700px; margin: 25px auto 18px; overflow: hidden; border-radius: 999px; }
.hp-spectrum-rule span:nth-child(1){background:#e60012}.hp-spectrum-rule span:nth-child(2){background:#ff8c00}.hp-spectrum-rule span:nth-child(3){background:#ffd400}.hp-spectrum-rule span:nth-child(4){background:#009b3a}.hp-spectrum-rule span:nth-child(5){background:#0057b8}.hp-spectrum-rule span:nth-child(6){background:#4b2e83}
.hp-pub-edition { margin: 0; font-size: .92rem; font-weight: 750; color: var(--hp-muted); }
.hp-pub-epigraph { max-width: 720px; margin: 24px auto 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-style: italic; line-height: 1.5; color: var(--hp-ink); }
.hp-pub-toc { max-width: var(--hp-wide-width); margin: 0 auto 42px; padding: 22px 24px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: var(--hp-soft); }
.hp-pub-toc h2 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; }
.hp-pub-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 42px; font-size: .92rem; line-height: 1.48; }
.hp-pub-toc li + li { margin-top: 8px; }
.hp-pub-toc a { color: var(--hp-ink); text-decoration: none; }
.hp-pub-toc a:hover { color: var(--hp-blue); text-decoration: underline; }
.hp-pub-main { min-width: 0; max-width: var(--hp-wide-width); margin: 0 auto; }
.hp-pub-main > p, .hp-pub-section > p { max-width: var(--hp-reading-width); margin: 0 auto 1.12em; }
.hp-pub-main h2 { scroll-margin-top: 25px; max-width: var(--hp-reading-width); margin: 3rem auto .9rem; color: var(--hp-black); font-family: "Inter", Arial, sans-serif; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
.hp-pub-main h3 { max-width: var(--hp-reading-width); margin: 2.1rem auto .7rem; color: var(--hp-black); font-size: 1.16rem; line-height: 1.35; }
.hp-pub-status { max-width: var(--hp-wide-width); margin: 0 auto 48px; }
.hp-pub-status > h2 { margin-top: 0; }
.hp-pub-status-grid { margin: 0; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); overflow: hidden; }
.hp-pub-status-grid > div { display: grid; grid-template-columns: minmax(150px, 28%) 1fr; }
.hp-pub-status-grid > div + div { border-top: 1px solid var(--hp-line); }
.hp-pub-status-grid dt, .hp-pub-status-grid dd { margin: 0; padding: 12px 15px; }
.hp-pub-status-grid dt { background: var(--hp-soft); font-size: .86rem; font-weight: 800; }
.hp-pub-status-grid dd { background: #fff; font-size: .94rem; }
.hp-pub-callout { max-width: calc(var(--hp-reading-width) + 40px); margin: 30px auto; padding: 22px 24px; border-left: 5px solid var(--hp-silver); background: var(--hp-soft); border-radius: 0 var(--hp-radius) var(--hp-radius) 0; }
.hp-pub-callout p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-style: italic; line-height: 1.55; }
.hp-pub-list, .hp-pub-steps { max-width: var(--hp-reading-width); margin: 0 auto 1.55rem; padding-left: 1.45rem; }
.hp-pub-list li, .hp-pub-steps li { margin-bottom: .55rem; padding-left: .2rem; }
.hp-pub-steps li::marker { font-weight: 800; color: var(--hp-blue); }
.hp-pub-table-wrap { width: 100%; max-width: var(--hp-wide-width); margin: 22px auto 40px; overflow-x: auto; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: #fff; -webkit-overflow-scrolling: touch; }
.hp-pub-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .91rem; line-height: 1.46; }
.hp-pub-table th { padding: 14px 15px; color: var(--hp-black); background: #e9ebed; text-align: left; vertical-align: bottom; font-size: .78rem; letter-spacing: .045em; text-transform: uppercase; }
.hp-pub-table td { padding: 14px 15px; vertical-align: top; border-top: 1px solid var(--hp-line); }
.hp-pub-table tbody tr:nth-child(even) td { background: #fafafa; }
.hp-pub-table td:first-child { font-weight: 800; white-space: nowrap; }
.hp-pub-document-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: var(--hp-reading-width); margin: 40px auto 4px; padding-top: 26px; border-top: 1px solid var(--hp-line); }
.hp-pub-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 2px solid var(--hp-black); border-radius: 999px; background: var(--hp-black); color: #fff !important; font-size: .9rem; font-weight: 800; text-decoration: none !important; }
.hp-pub-button:hover { background: var(--hp-indigo); border-color: var(--hp-indigo); }
.hp-pub-button.is-secondary { background: transparent; color: var(--hp-black) !important; }
.hp-pub-button.is-secondary:hover { color: #fff !important; }
.hp-pub-webnote { max-width: var(--hp-reading-width); margin: 12px auto 0; color: var(--hp-muted); font-size: .82rem; text-align: center; }
@media (max-width: 880px) {
  .hp-pub-toc ol { columns: 1; }
  .hp-pub-main, .hp-pub-status, .hp-pub-table-wrap { max-width: 100%; }
}
@media (max-width: 620px) {
  .hp-publication { font-size: 16px; }
  .hp-pub-shell { padding-inline: 16px; }
  .hp-pub-toc ol { columns: 1; }
  .hp-pub-status-grid > div { grid-template-columns: 1fr; }
  .hp-pub-status-grid dt { padding-bottom: 5px; }
  .hp-pub-status-grid dd { padding-top: 7px; }
  .hp-pub-table { min-width: 0; }
  .hp-pub-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hp-pub-table, .hp-pub-table tbody, .hp-pub-table tr, .hp-pub-table td { display: block; width: 100%; }
  .hp-pub-table tr + tr { border-top: 8px solid var(--hp-soft); }
  .hp-pub-table td { display: grid; grid-template-columns: minmax(105px, 34%) 1fr; gap: 10px; border-top: 1px solid var(--hp-line); white-space: normal !important; }
  .hp-pub-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-muted); }
}
@media print {
  .hp-pub-toc, .hp-pub-document-actions { display: none; }
  .hp-pub-shell { max-width: none; padding: 0; }
  .hp-pub-table-wrap { overflow: visible; break-inside: avoid; }
}

/* =========================================================
   DOCUMENT-CLASS VARIANTS
   Base class: .hp-publication
   Modifiers:
   .hp-charter, .hp-guide, .hp-policy, .hp-amendment,
   .hp-research, .hp-review, .hp-library
   ========================================================= */

.hp-publication {
  --hp-reading-width: 860px;
  --hp-wide-width: 1080px;
  --hp-hero-width: 940px;
  --hp-accent: var(--hp-blue);
  --hp-status-bg: #f5f6f7;
}

/* Enduring Charter: narrower and more ceremonial. */
.hp-publication.hp-charter {
  --hp-reading-width: 760px;
  --hp-wide-width: 900px;
  --hp-hero-width: 820px;
}
.hp-publication.hp-charter .hp-pub-title {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.025em;
}
.hp-publication.hp-charter .hp-pub-main {
  max-width: var(--hp-wide-width);
}
.hp-publication.hp-charter .hp-pub-main > p,
.hp-publication.hp-charter .hp-pub-section > p,
.hp-publication.hp-charter .hp-pub-main h2,
.hp-publication.hp-charter .hp-pub-main h3,
.hp-publication.hp-charter .hp-pub-list,
.hp-publication.hp-charter .hp-pub-steps {
  max-width: var(--hp-reading-width);
}

/* Guide and companion: spacious reference reading. */
.hp-publication.hp-guide {
  --hp-reading-width: 860px;
  --hp-wide-width: 1080px;
}

/* Policy: emphasizes authority, dependencies, and governing standard. */
.hp-publication.hp-policy {
  --hp-accent: var(--hp-blue);
}
.hp-publication.hp-policy .hp-pub-status-grid dt {
  border-left: 4px solid var(--hp-blue);
}
.hp-publication .hp-governing-standard {
  max-width: 900px;
  margin: 34px auto;
  padding: 24px 26px;
  border: 2px solid var(--hp-black);
  border-radius: var(--hp-radius);
  background: #fff;
}
.hp-publication .hp-governing-standard h2,
.hp-publication .hp-governing-standard h3 {
  margin-top: 0;
}
.hp-publication .hp-governing-standard p:last-child {
  margin-bottom: 0;
}

/* Proposed amendment: constitutional text receives distinct treatment. */
.hp-publication.hp-amendment {
  --hp-accent: var(--hp-indigo);
}
.hp-publication.hp-amendment .hp-pub-status-grid dt {
  border-left: 4px solid var(--hp-indigo);
}
.hp-publication .hp-constitutional-text {
  max-width: 820px;
  margin: 30px auto;
  padding: 28px clamp(20px, 4vw, 42px);
  border: 1px solid var(--hp-line);
  border-top: 6px solid var(--hp-indigo);
  border-radius: var(--hp-radius);
  background: #fcfcfd;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.72;
}
.hp-publication .hp-constitutional-text h2,
.hp-publication .hp-constitutional-text h3 {
  max-width: none;
  margin-top: 1.8rem;
  font-family: "Cinzel", Georgia, serif;
}

/* Research and legal/operational review: wider evidence fields. */
.hp-publication.hp-research,
.hp-publication.hp-review {
  --hp-reading-width: 900px;
  --hp-wide-width: 1160px;
}
.hp-publication.hp-research .hp-pub-main,
.hp-publication.hp-review .hp-pub-main {
  max-width: var(--hp-wide-width);
}
.hp-publication .hp-method-box,
.hp-publication .hp-findings-box {
  max-width: 920px;
  margin: 26px auto;
  padding: 22px 24px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: var(--hp-soft);
}
.hp-publication .hp-finding {
  max-width: 920px;
  margin: 18px auto;
  padding: 18px 20px;
  border-left: 5px solid var(--hp-blue);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.hp-publication .hp-finding[data-result="pass"] { border-left-color: #12823b; }
.hp-publication .hp-finding[data-result="condition"] { border-left-color: #d47a00; }
.hp-publication .hp-finding[data-result="fail"] { border-left-color: #b42318; }

/* Library and register pages: card-based document directory. */
.hp-publication.hp-library {
  --hp-reading-width: 940px;
  --hp-wide-width: 1180px;
}
.hp-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--hp-wide-width);
  margin: 24px auto 40px;
}
.hp-document-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
}
.hp-document-card__code {
  margin: 0 0 6px;
  color: var(--hp-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hp-document-card__title {
  margin: 0 0 8px;
  color: var(--hp-black);
  font-size: 1.18rem;
  line-height: 1.25;
}
.hp-document-card__status {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--hp-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hp-document-card__summary {
  flex: 1;
  margin: 0 0 16px;
  color: var(--hp-muted);
  font-size: .92rem;
}
.hp-document-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* Shared relationship and dependency components. */
.hp-publication .hp-relationship-box {
  max-width: 920px;
  margin: 26px auto;
  padding: 20px 22px;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: #fff;
}
.hp-publication .hp-relationship-box h2,
.hp-publication .hp-relationship-box h3 {
  margin-top: 0;
}
.hp-publication .hp-status-pill {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-soft);
  color: var(--hp-ink);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hp-publication .hp-meta-line {
  max-width: var(--hp-reading-width);
  margin: 0 auto 18px;
  color: var(--hp-muted);
  font-size: .86rem;
}
.hp-publication .hp-source-note {
  max-width: var(--hp-reading-width);
  margin: 12px auto 24px;
  padding-left: 14px;
  border-left: 3px solid var(--hp-silver);
  color: var(--hp-muted);
  font-size: .84rem;
}

/* Accessibility and motion. */
.hp-publication :focus-visible {
  outline: 3px solid var(--hp-blue);
  outline-offset: 3px;
}
.hp-publication [id] {
  scroll-margin-top: 30px;
}
@media (prefers-reduced-motion: reduce) {
  .hp-publication *, .hp-publication *::before, .hp-publication *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
@media (max-width: 720px) {
  .hp-document-grid { grid-template-columns: 1fr; }
}


/* Charter-specific ceremonial architecture */
.hp-publication.hp-charter .hp-pub-shell {
  max-width: 960px;
  padding-top: clamp(34px, 5vw, 76px);
}
.hp-publication.hp-charter .hp-pub-hero {
  max-width: 820px;
  margin-bottom: 54px;
}
.hp-publication.hp-charter .hp-pub-kicker {
  letter-spacing: .17em;
}
.hp-publication.hp-charter .hp-pub-title {
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  line-height: 1.03;
}
.hp-publication.hp-charter .hp-pub-subtitle {
  max-width: 650px;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}
.hp-publication.hp-charter .hp-pub-edition {
  margin-top: 18px;
  font-size: .86rem;
  letter-spacing: .03em;
}
.hp-publication.hp-charter .hp-charter-prologue {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--hp-muted);
}
.hp-publication.hp-charter .hp-pub-main {
  max-width: 840px;
}
.hp-publication.hp-charter .hp-pub-main h2 {
  max-width: 760px;
  margin-top: 4.4rem;
  margin-bottom: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hp-line);
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -.015em;
}
.hp-publication.hp-charter .hp-pub-main h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.hp-publication.hp-charter .hp-pub-main > p {
  max-width: 760px;
  margin-bottom: 1.25em;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.075rem;
  line-height: 1.82;
}
.hp-publication.hp-charter .hp-pub-callout {
  max-width: 760px;
  border-left: none;
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.hp-publication.hp-charter .hp-charter-control {
  max-width: 760px;
  margin: 64px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--hp-line);
  color: var(--hp-muted);
  font-size: .82rem;
  line-height: 1.55;
  text-align: center;
}
.hp-publication.hp-charter .hp-pub-document-actions {
  margin-top: 28px;
  border-top: 0;
}

@media (max-width: 620px) {
  .hp-publication.hp-charter .hp-pub-main > p {
    font-size: 1.02rem;
    line-height: 1.75;
  }
  .hp-publication.hp-charter .hp-pub-main h2 {
    margin-top: 3.4rem;
  }
}


.hp-publication.hp-charter .hp-pub-webnote {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--hp-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}


/* =========================================================
   HUMAN PARTY WEB TYPOGRAPHY — AUTHORITATIVE OVERRIDES
   Inter: functional and sustained reading
   Cinzel: ceremonial Charter display only
   ========================================================= */

.hp-publication,
.hp-publication p,
.hp-publication li,
.hp-publication dt,
.hp-publication dd,
.hp-publication td,
.hp-publication th,
.hp-publication a,
.hp-publication button {
  font-family: "Inter", Arial, sans-serif;
}

/* Shared publication headings remain functional Inter. */
.hp-publication .hp-pub-title,
.hp-publication .hp-pub-main h2,
.hp-publication .hp-pub-main h3 {
  font-family: "Inter", Arial, sans-serif;
}

/* Cinzel is restricted to major Charter display elements. */
.hp-publication.hp-charter .hp-pub-title,
.hp-publication.hp-charter .hp-pub-main h2 {
  font-family: "Cinzel", Georgia, serif;
}

/* Explicit Charter functional typography. */
.hp-publication.hp-charter .hp-pub-kicker,
.hp-publication.hp-charter .hp-pub-subtitle,
.hp-publication.hp-charter .hp-pub-edition,
.hp-publication.hp-charter .hp-charter-prologue,
.hp-publication.hp-charter .hp-pub-main > p,
.hp-publication.hp-charter .hp-charter-control,
.hp-publication.hp-charter .hp-pub-document-actions,
.hp-publication.hp-charter .hp-pub-button,
.hp-publication.hp-charter .hp-pub-webnote {
  font-family: "Inter", Arial, sans-serif;
  font-variant: normal;
  text-transform: none;
}

/* Restore the intended small-caps behavior only where designed. */
.hp-publication.hp-charter .hp-pub-kicker {
  text-transform: uppercase;
}
.hp-publication.hp-charter .hp-pub-edition {
  text-transform: none;
}

/* The short closing signature remains an italic literary accent. */
.hp-publication.hp-charter .hp-pub-callout p {
  font-family: Georgia, "Times New Roman", serif;
  font-variant: normal;
  text-transform: none;
}

/* Charter administrative web-edition notice. */
.hp-publication.hp-charter .hp-pub-webnote {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--hp-muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}


/* PLATFORM CLASS — v1.2 */
.hp-publication.hp-platform{--hp-reading-width:900px;--hp-wide-width:1120px;--hp-hero-width:940px}
.hp-publication.hp-platform,.hp-publication.hp-platform p,.hp-publication.hp-platform li,.hp-publication.hp-platform a{font-family:"Inter",Arial,sans-serif}
.hp-publication.hp-platform .hp-pub-title,.hp-publication.hp-platform .hp-platform-section>h2,.hp-publication.hp-platform .hp-platform-card h3,.hp-publication.hp-platform .hp-platform-principle h3{font-family:"Cinzel",Georgia,serif}
.hp-publication.hp-platform .hp-pub-title{font-size:clamp(2.35rem,5vw,4.1rem);line-height:1.04}
.hp-platform-intro{max-width:820px;margin:0 auto 46px;text-align:center;font-size:1.08rem;line-height:1.72}
.hp-platform-jump{max-width:980px;margin:0 auto 48px;padding:20px 22px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:var(--hp-soft)}
.hp-platform-jump p{margin:0 0 10px;color:var(--hp-muted);font-size:.76rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.hp-platform-jump ul{display:flex;flex-wrap:wrap;gap:9px 18px;margin:0;padding:0;list-style:none}
.hp-platform-jump a{color:var(--hp-ink);font-size:.9rem;font-weight:650;text-decoration:none}
.hp-platform-section{max-width:var(--hp-wide-width);margin:0 auto;padding:16px 0 42px}
.hp-platform-section>h2{max-width:900px;margin:2.8rem auto .75rem;color:var(--hp-black);font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.18;text-align:center}
.hp-platform-lede{max-width:820px;margin:0 auto 26px;color:var(--hp-muted);text-align:center;font-size:1rem;line-height:1.65}
.hp-platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1040px;margin:0 auto}
.hp-platform-card{display:flex;flex-direction:column;padding:22px 22px 20px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:#fff}
.hp-platform-card h3{margin:0 0 9px;color:var(--hp-black);font-size:1.28rem;line-height:1.28}
.hp-platform-card p{margin:0 0 12px;color:var(--hp-ink);font-size:.95rem;line-height:1.62}
.hp-platform-card ul{margin:2px 0 16px;padding-left:1.2rem;font-size:.91rem;line-height:1.55}
.hp-platform-card li+li{margin-top:6px}
.hp-platform-card__meta{margin-top:auto!important;padding-top:11px;border-top:1px solid var(--hp-line);color:var(--hp-muted)!important;font-size:.76rem!important;font-weight:700;letter-spacing:.035em;text-transform:uppercase}
.hp-platform-card__link{align-self:flex-start;margin-top:2px;font-size:.86rem;font-weight:750}
.hp-platform-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1040px;margin:0 auto}
.hp-platform-principle{padding:20px;border-top:4px solid var(--hp-silver);background:var(--hp-soft)}
.hp-platform-principle h3{margin:0 0 8px;font-size:1.03rem}
.hp-platform-principle p{margin:0;color:var(--hp-muted);font-size:.88rem;line-height:1.52}
.hp-platform-development{max-width:1000px;margin:0 auto;padding:24px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:var(--hp-soft)}
.hp-platform-development h3{margin:0 0 9px;font-family:"Cinzel",Georgia,serif;font-size:1.2rem}
.hp-platform-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hp-platform-topic{padding:12px 13px;border:1px solid var(--hp-line);border-radius:8px;background:#fff;font-size:.84rem;font-weight:650}
.hp-platform-commitment{max-width:880px;margin:26px auto 10px;padding:28px 30px;border-top:1px solid var(--hp-line);border-bottom:1px solid var(--hp-line);text-align:center}
.hp-platform-commitment p{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:1.1rem;font-style:italic;line-height:1.65}
.hp-platform-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:900px;margin:32px auto 0}
.hp-platform-note{max-width:820px;margin:15px auto 0;color:var(--hp-muted);font-size:.78rem;line-height:1.5;text-align:center}
@media(max-width:780px){.hp-platform-grid,.hp-platform-principles{grid-template-columns:1fr}.hp-platform-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.hp-platform-topic-grid{grid-template-columns:1fr}.hp-platform-jump ul{display:block}.hp-platform-jump li+li{margin-top:7px}}

/* =========================================================
   WEB PUBLICATION STANDARD v1.2 — VALIDATED REFINEMENTS
   ========================================================= */

/* Charter: slightly tighter control/action spacing. */
.hp-publication.hp-charter .hp-pub-document-actions {
  margin-top: 18px;
}

/* Library typography: display titles in Cinzel, functional text in Inter. */
.hp-publication.hp-library .hp-pub-title,
.hp-publication.hp-library .hp-pub-main > h2,
.hp-publication.hp-library .hp-document-card__title {
  font-family: "Cinzel", Georgia, serif;
}
.hp-publication.hp-library p,
.hp-publication.hp-library li,
.hp-publication.hp-library td,
.hp-publication.hp-library th,
.hp-publication.hp-library dt,
.hp-publication.hp-library dd,
.hp-publication.hp-library .hp-pub-kicker,
.hp-publication.hp-library .hp-pub-edition,
.hp-publication.hp-library .hp-document-card__status,
.hp-publication.hp-library .hp-document-card__code,
.hp-publication.hp-library .hp-pub-button {
  font-family: "Inter", Arial, sans-serif;
}

/* Platform refinements validated on desktop and phone. */
.hp-publication.hp-platform .hp-pub-hero {
  margin-top: -28px;
}
.hp-publication.hp-platform .hp-platform-jump {
  margin-bottom: 18px;
}
.hp-publication.hp-platform .hp-platform-card ul {
  line-height: 1.6;
}
.hp-publication.hp-platform .hp-platform-card li + li {
  margin-top: 9px;
}
.hp-publication.hp-platform .hp-platform-card__link {
  color: var(--hp-ink);
  text-decoration: underline;
  text-underline-offset: .16em;
}
.hp-publication.hp-platform .hp-platform-card__link:hover {
  color: var(--hp-blue);
}
.hp-publication.hp-platform #method .hp-platform-principle {
  padding: 23px 20px;
}
.hp-publication.hp-platform .hp-platform-note {
  margin-top: 23px;
}
@media (max-width: 780px) {
  .hp-publication.hp-platform .hp-pub-hero {
    margin-top: -12px;
  }
}

/* =========================================================
   SITE SHELL — MOBILE NAVIGATION
   Validated phone behavior.
   ========================================================= */
@media (max-width: 781px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    box-sizing: border-box;
    padding: 72px 28px 40px !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content {
    width: 100%;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__container {
    width: 100%;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 24px;
  }
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item {
    width: 100%;
    text-align: left !important;
    align-items: flex-start !important;
  }
  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
    width: auto;
    text-align: left !important;
  }
}


/* =========================================================
   v1.2.1 — MOBILE STATUS GRID CORRECTION
   Stack label/value pairs on narrow screens so long values
   never overflow the viewport.
   ========================================================= */
@media (max-width: 620px) {
  .hp-publication .hp-pub-status-grid > div {
    display: block;
  }

  .hp-publication .hp-pub-status-grid dt,
  .hp-publication .hp-pub-status-grid dd {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hp-publication .hp-pub-status-grid dt {
    padding: 12px 15px 5px;
  }

  .hp-publication .hp-pub-status-grid dd {
    padding: 7px 15px 12px;
  }
}


/* =========================================================
   v1.2.2 — MOBILE PUBLICATION TABLE CORRECTION
   Stack data-label above each table-cell value on phones.
   This supersedes the earlier 34% / 1fr mobile cell grid.
   ========================================================= */
@media (max-width: 620px) {

  .hp-publication .hp-pub-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hp-publication .hp-pub-table,
  .hp-publication .hp-pub-table tbody,
  .hp-publication .hp-pub-table tr,
  .hp-publication .hp-pub-table td {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hp-publication .hp-pub-table td {
    display: block;
    padding: 12px 15px;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal !important;
  }

  .hp-publication .hp-pub-table td::before {
    display: block;
    margin: 0 0 7px;
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--hp-muted);
  }

  .hp-publication .hp-pub-table td:first-child {
    white-space: normal;
  }
}

/* =========================================================
   v1.2.3 — READER'S GUIDE LEGACY TABLE HARDENING
   Some existing Guide tables were created before .hp-pub-table
   and retain desktop/inline column widths. On phones, constrain
   those two-column tables to the publication viewport without
   changing the already-correct Document Status component.
   ========================================================= */
@media (max-width: 620px) {

  /* Catch WordPress/table wrappers used by older Guide content. */
  .hp-publication.hp-guide .hp-pub-main .wp-block-table,
  .hp-publication.hp-guide .hp-pub-main .wp-block-table > div,
  .hp-publication.hp-guide .hp-pub-main .table-responsive,
  .hp-publication.hp-guide .hp-pub-main .table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Existing Guide tables may carry width/min-width inline or from
     Gutenberg/theme CSS. Force the table itself back into the viewport. */
  .hp-publication.hp-guide .hp-pub-main table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }

  /* Neutralize desktop widths stored in col/colgroup markup. */
  .hp-publication.hp-guide .hp-pub-main table colgroup,
  .hp-publication.hp-guide .hp-pub-main table col {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  /* Harden every Guide cell against inherited/inline desktop sizing. */
  .hp-publication.hp-guide .hp-pub-main table th,
  .hp-publication.hp-guide .hp-pub-main table td {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  /* For legacy two-column Reader's Guide rows, retain the compact
     label/value appearance that already works in Document Status. */
  .hp-publication.hp-guide .hp-pub-main table tr > :first-child:nth-last-child(2) {
    width: 34% !important;
    max-width: 34% !important;
  }

  .hp-publication.hp-guide .hp-pub-main table tr > :first-child:nth-last-child(2) + * {
    width: 66% !important;
    max-width: 66% !important;
  }

  /* The purpose-built .hp-pub-table mobile card treatment remains
     authoritative when that class is present. */
  .hp-publication.hp-guide .hp-pub-main table.hp-pub-table,
  .hp-publication.hp-guide .hp-pub-main table.hp-pub-table tbody,
  .hp-publication.hp-guide .hp-pub-main table.hp-pub-table tr,
  .hp-publication.hp-guide .hp-pub-main table.hp-pub-table td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* =========================================================
   v1.2.4 — LIVE READER'S GUIDE NAMESPACE CORRECTION
   The existing Reader's Guide predates the .hp-publication.hp-guide
   pattern and is namespaced as .hp-reader-guide. Earlier fixes therefore
   never reached the affected Article / Theme / Function tables.
   ========================================================= */
@media (max-width: 620px) {
  .hp-reader-guide,
  .hp-reader-guide .wp-block-group,
  .hp-reader-guide .wp-block-table,
  .hp-reader-guide figure.wp-block-table,
  .hp-reader-guide .table-responsive,
  .hp-reader-guide .table-wrapper,
  .hp-reader-guide .hp-table-wrap,
  .hp-reader-guide .hp-reader-table-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hp-reader-guide .wp-block-table,
  .hp-reader-guide figure.wp-block-table,
  .hp-reader-guide .table-responsive,
  .hp-reader-guide .table-wrapper,
  .hp-reader-guide .hp-table-wrap,
  .hp-reader-guide .hp-reader-table-wrap {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }

  .hp-reader-guide table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }

  .hp-reader-guide table colgroup,
  .hp-reader-guide table col {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .hp-reader-guide table tbody,
  .hp-reader-guide table tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hp-reader-guide table th,
  .hp-reader-guide table td {
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  /* Legacy Reader's Guide rows are two-column label/value records. */
  .hp-reader-guide table tr > :first-child:nth-last-child(2) {
    width: 34% !important;
    max-width: 34% !important;
  }

  .hp-reader-guide table tr > :first-child:nth-last-child(2) + * {
    width: 66% !important;
    max-width: 66% !important;
  }
}

/* =========================================================
   POLICY PAGE NAVIGATION — v1.3.0
   Policy-only. Completely separate from site, Charter, Guide,
   Reader's Guide, Library, Research, and Review navigation.
   ========================================================= */
.hp-publication.hp-policy > .hp-pub-shell {
  max-width: 1480px;
}

.hp-publication.hp-policy > .hp-pub-shell > .hp-pub-hero {
  max-width: var(--hp-hero-width);
}

/* Old policy patterns may contain a hand-maintained .hp-pub-toc.
   The generated policy navigator replaces it on policy pages only. */
.hp-publication.hp-policy > .hp-pub-shell > .hp-pub-toc[hidden] {
  display: none !important;
}

.hp-policy-nav {
  position: sticky;
  top: 24px;
  z-index: 20;
  align-self: start;
  width: 220px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.hp-policy-nav-toggle { display: none; }
.hp-policy-nav-panel { padding: 18px 14px 16px; }
.hp-policy-nav-title {
  margin: 0 8px 10px;
  color: var(--hp-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hp-policy-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.hp-policy-nav-list li { margin: 0; padding: 0; }
.hp-policy-nav-list li + li { margin-top: 2px; }
.hp-policy-nav-list a {
  display: block;
  padding: 8px 9px 8px 11px;
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0;
  color: var(--hp-muted);
  font-size: .83rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.hp-policy-nav-list a:hover,
.hp-policy-nav-list a:focus-visible {
  color: var(--hp-black);
  background: var(--hp-soft);
  text-decoration: none;
  outline: none;
}
.hp-policy-nav-list a.is-active {
  border-left-color: var(--hp-blue);
  color: var(--hp-black);
  background: #f3f7fc;
  font-weight: 800;
}
.hp-publication.hp-policy .hp-policy-nav-target {
  scroll-margin-top: 110px;
}

@media (min-width: 1101px) {
  .hp-publication.hp-policy > .hp-pub-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1080px);
    column-gap: 32px;
    justify-content: center;
    align-items: start;
  }
  .hp-publication.hp-policy > .hp-pub-shell > .hp-pub-hero {
    grid-column: 1 / -1;
    width: 100%;
  }
  .hp-publication.hp-policy > .hp-pub-shell > .hp-policy-nav {
    grid-column: 1;
  }
  .hp-publication.hp-policy > .hp-pub-shell > .hp-pub-main {
    grid-column: 2;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .hp-publication.hp-policy > .hp-pub-shell {
    max-width: 1240px;
  }
  .hp-policy-nav {
    top: 0;
    width: 100%;
    max-height: none;
    margin: 0 auto 30px;
    overflow: visible;
    border-radius: 10px;
    box-shadow: 0 5px 16px rgba(0,0,0,.08);
  }
  .admin-bar .hp-policy-nav { top: 32px; }
  .hp-policy-nav-toggle {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--hp-black);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .hp-policy-nav-toggle:focus-visible {
    outline: 3px solid rgba(0,87,184,.28);
    outline-offset: 2px;
  }
  .hp-policy-nav-toggle-label {
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .hp-policy-nav-current {
    min-width: 0;
    overflow: hidden;
    color: var(--hp-muted);
    font-size: .86rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hp-policy-nav-chevron {
    font-size: 1rem;
    transition: transform .18s ease;
  }
  .hp-policy-nav.is-open .hp-policy-nav-chevron { transform: rotate(180deg); }
  .hp-policy-nav-panel {
    display: none;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding: 8px 10px 12px;
    border-top: 1px solid var(--hp-line);
    background: #fff;
  }
  .hp-policy-nav.is-open .hp-policy-nav-panel { display: block; }
  .hp-policy-nav-title { display: none; }
  .hp-policy-nav-list a { padding: 10px 10px 10px 12px; font-size: .9rem; }
  .hp-publication.hp-policy .hp-policy-nav-target { scroll-margin-top: 128px; }
}

@media (max-width: 782px) {
  .admin-bar .hp-policy-nav { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-policy-nav-chevron { transition: none; }
}

@media print {
  .hp-policy-nav { display: none !important; }
  .hp-publication.hp-policy > .hp-pub-shell { display: block; max-width: none; }
}


/* =========================================================
   HP-13 PRODUCTION POLICY PAGE — v1.3.1
   Scoped to .hp-policy-hp13 only.
   ========================================================= */
.hp-policy-hp13 .hp-policy-lede{font-family:Georgia,"Times New Roman",serif;font-size:1.18rem;line-height:1.72}
.hp-policy-hp13 .hp-policy-thesis,.hp-policy-hp13 .hp-pillar-statement{margin:30px 0;padding:25px 28px;border-top:1px solid var(--hp-line);border-bottom:1px solid var(--hp-line);text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:1.45rem;line-height:1.45}
.hp-policy-hp13 .hp-policy-thesis strong,.hp-policy-hp13 .hp-pillar-statement{font-weight:700}
.hp-policy-hp13 .hp-policy-thesis span,.hp-policy-hp13 .hp-pillar-statement span{display:block;margin-top:4px;font-weight:400}
.hp-policy-hp13 .hp-policy-pillar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 34px}
.hp-policy-hp13 .hp-policy-pillar{padding:22px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:#fff}
.hp-policy-hp13 .hp-policy-pillar h3{margin-top:0}
.hp-policy-hp13 .hp-policy-pillar blockquote{margin:18px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--hp-line);font-family:Georgia,"Times New Roman",serif;font-style:italic;line-height:1.55}
.hp-policy-hp13 .hp-policy-quote{margin:24px 0;padding:18px 22px;border-left:4px solid var(--hp-blue);background:var(--hp-soft);font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.6}
.hp-policy-hp13 .hp-policy-crossref{font-weight:700}
.hp-policy-hp13 .hp-policy-crossref.is-forthcoming span,.hp-policy-hp13 .hp-policy-crossref.is-forthcoming{color:var(--hp-muted)}
.hp-policy-hp13 a.hp-policy-crossref.is-forthcoming{text-decoration-style:dotted}
.hp-policy-hp13 .hp-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0 30px}
.hp-policy-hp13 .hp-doc-card{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:#fff}
.hp-policy-hp13 .hp-doc-card h4{margin:8px 0 8px;font-family:"Cinzel",Georgia,serif;font-size:1rem;line-height:1.4}
.hp-policy-hp13 .hp-doc-card p{margin:0 0 14px;font-size:.9rem;line-height:1.55}
.hp-policy-hp13 .hp-doc-card a{margin-top:auto;font-weight:750}
.hp-policy-hp13 .hp-doc-status{display:inline-block;padding:4px 8px;border:1px solid var(--hp-line);border-radius:999px;background:var(--hp-soft);color:var(--hp-muted);font-size:.68rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase}
.hp-policy-hp13 .hp-doc-card.is-archive{background:#fafafa}
.hp-policy-hp13 .hp-archive-note{margin:12px 0 16px;padding:17px 19px;border-left:4px solid var(--hp-line);background:var(--hp-soft)}
.hp-policy-hp13 .hp-archive-note p{margin:5px 0 0}
.hp-policy-hp13 .hp-proposal-note{margin:42px 0 20px;padding:26px 28px;border:1px solid var(--hp-line);border-radius:var(--hp-radius);background:var(--hp-soft)}
.hp-policy-hp13 .hp-proposal-note h2{margin-top:0}
@media(max-width:780px){.hp-policy-hp13 .hp-policy-pillar-grid,.hp-policy-hp13 .hp-doc-grid{grid-template-columns:1fr}.hp-policy-hp13 .hp-policy-thesis,.hp-policy-hp13 .hp-pillar-statement{padding:21px 15px;font-size:1.25rem}.hp-policy-hp13 .hp-doc-card{padding:17px}}
