/* ═══════════════════════════════════════════════════
   Password-protected pages
   ═══════════════════════════════════════════════════ */

.post-password-required {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* ── Heading: squares + "Request access" ──────────── */
.post-password-required .entry-title { font-size: 0; margin: 0; }
.post-password-required .entry-title::before {
  content: "";
  display: block;
  width: 40px;
  aspect-ratio: 1169 / 248;
  margin: 0 auto 28px;
  background: url("https://hcm-strategy.com/wp-content/uploads/2026/11/HCM-Element2.png")
              center / contain no-repeat;
}
.post-password-required .entry-title::after {
  content: "Request access";
  display: block;
  font-size: 90px;
  line-height: 1.1;
  color: var(--e-global-color-primary);
}

/* ── Form ─────────────────────────────────────────── */
.post-password-form { max-width: 520px; margin: 40px auto 0; }

/* WordPress's empty first paragraph */
.post-password-form p:nth-of-type(1) { display: none; }

/* Zeroed so WordPress's sentence never flashes before the swap */
.post-password-form p:nth-of-type(2) {
  display: block;
  font-size: 0;
  line-height: 0;
  margin: 0;
}

/* ── Copy ─────────────────────────────────────────── */
.post-password-form .pw-line {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  color: var(--e-global-color-text);
}
.post-password-form .pw-email {
  margin-top: 2px;
  white-space: nowrap;
}
.post-password-form .pw-line a {
  color: var(--e-global-color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--e-global-color-42d7f12);
  transition: border-color .3s;
}
.post-password-form .pw-line a:hover {
  border-color: var(--e-global-color-accent);
}

/* ── Field and submit ─────────────────────────────── */
.post-password-form p:nth-of-type(3) {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
}
.post-password-form label {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0;
  text-align: left;
}
.post-password-form label::before {
  content: "Password";
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--e-global-color-accent);
}
.post-password-form input[type="password"] {
  width: 100%;
  height: 47px;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 16px;
  background: transparent;
  color: var(--e-global-color-primary);
  border: 1px solid var(--e-global-color-42d7f12);
  border-radius: 4px;
}
.post-password-form input[type="password"]:focus {
  outline: none;
  border-color: var(--e-global-color-accent);
}

/* ── Buttons, matching the 404 ────────────────────── */
.post-password-form input[type="submit"],
.post-password-form .pw-btn {
  display: inline-block;
  height: 47px;
  box-sizing: border-box;
  padding: 0 25px;
  line-height: 41px;
  font-size: 13px;
  letter-spacing: -.3px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--e-global-color-primary);
  border: 3px double rgba(100, 98, 94, .39);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.post-password-form input[type="submit"] { flex: 0 0 auto; }
.post-password-form input[type="submit"]:hover,
.post-password-form .pw-btn:hover {
  background: var(--e-global-color-43b80c8);
  border-color: var(--e-global-color-text);
  color: var(--e-global-color-primary);
}
.post-password-form .pw-back { display: block; margin: 32px 0 0; }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 767px) {
  .post-password-required .entry-title::before { width: 33.5px; margin-bottom: 20px; }
  .post-password-required .entry-title::after { font-size: 48px; }
  .post-password-form .pw-email { white-space: normal; }
}



/* ═══════════════════════════════════════════════════
   Document pages (Privacy, Terms)
   ═══════════════════════════════════════════════════ */

/* Hide the theme's own title, since the block supplies one */
.site-main:has(.hcm-doc) .entry-title { display: none; }

.hcm-doc { padding-bottom: 80px; }

/* ── Page head: squares + centered title ──────────── */
.hcm-doc-head {
  text-align: center;
  padding-top: 40px;
  margin-bottom: 72px;
}
.hcm-doc-head::before {
  content: "";
  display: block;
  width: 40px;
  aspect-ratio: 1169 / 248;
  margin: 0 auto 28px;
  background: url("https://hcm-strategy.com/wp-content/uploads/2026/11/HCM-Element2.png")
              center / contain no-repeat;
}
.hcm-doc-head h1 {
  font-size: 90px;
  line-height: 1.1;
  margin: 0;
  color: var(--e-global-color-primary);
}
.hcm-doc-head .hcm-doc-meta {
  margin: 24px 0 0;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--e-global-color-accent);
}

/* ── Body ─────────────────────────────────────────── */
.hcm-doc-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.hcm-doc-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--e-global-color-text);
  margin: 0 0 20px;
}
.hcm-doc-body h2 {
  font-size: 24px;
  line-height: 1.3;
  color: var(--e-global-color-primary);
  margin: 44px 0 14px;
}
.hcm-doc-body h2:first-of-type { margin-top: 0; }
.hcm-doc-body a {
  color: var(--e-global-color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--e-global-color-42d7f12);
  transition: border-color .3s;
}
.hcm-doc-body a:hover { border-color: var(--e-global-color-accent); }

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 767px) {
  .hcm-doc-head {
    padding-top: 24px;
    margin-bottom: 48px;
  }
  .hcm-doc-head::before { width: 33.5px; margin-bottom: 20px; }
  .hcm-doc-head h1 { font-size: 48px; }
}