/* ==========================================================
   THE POLITICAL RIFT — BEYOND THE RIFT
   FULL CANONICAL CSS (Fortune 500 / Museum-Grade)
   Layout: UNCHANGED
   Change scope: HEADERS + SUBHEADER ONLY
========================================================== */

/* ----------------------------------------------------------
   0) OPTIONAL DEBUG (leave commented)
---------------------------------------------------------- */
/*
body .entry-content { outline: 4px solid #ff6f00 !important; }
*/

/* ==========================================================
   1) PAGE WRAP + TYPOGRAPHY
========================================================== */

/* Page container */
.pr-btr,
body .entry-content {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep Beyond the Rift content readable */
.pr-btr,
body.page-beyond-the-rift .entry-content,
body .entry-content .wp-block-group {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Gentle page padding */
.pr-btr,
body.page-beyond-the-rift .entry-content,
body .entry-content .wp-block-group {
  padding-left: 18px;
  padding-right: 18px;
}

/* ==========================================================
   HEADERS — THEME APPLIED (NO LAYOUT CHANGE)
========================================================== */

/* H1 — Theme Amber */
.pr-btr h1,
body .entry-content h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.2px;
  color: #ff6f00; /* THEME AMBER */
}

/* Subheader — first paragraph under H1 */
.pr-btr h1 + p,
body .entry-content h1 + p {
  margin-top: 6px;
  margin-bottom: 22px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(0,0,0,0.70);
  max-width: 720px;
}

/* Subtle museum divider */
.pr-btr h1 + p::after,
body .entry-content h1 + p::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  background: rgba(0,0,0,0.10);
  margin-top: 18px;
}

/* H2 — Theme Amber */
.pr-btr h2,
body .entry-content h2 {
  margin: 34px 0 10px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.1px;
  color: #ff6f00; /* THEME AMBER */
}

/* ==========================================================
   BODY COPY (UNCHANGED)
========================================================== */

.pr-btr p,
.pr-btr li,
body .entry-content p,
body .entry-content li {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(0,0,0,0.78);
}

/* Lists */
.pr-btr ul,
body .entry-content ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}

.pr-btr li,
body .entry-content li {
  margin: 10px 0;
}

/* Dividers */
.pr-btr hr,
.pr-btr hr.wp-block-separator,
body .entry-content hr,
body .entry-content hr.wp-block-separator {
  margin: 26px 0;
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.14);
}

/* Closing line */
.pr-btr p[style*="text-align:center"] em,
body .entry-content p[style*="text-align:center"] em {
  display: inline-block;
  margin-top: 10px;
  color: rgba(0,0,0,0.60);
}

/* ==========================================================
   2) BUTTONS — UNCHANGED
========================================================== */

.pr-btr .wp-block-buttons,
.pr-btr .wp-block-buttons.is-layout-flex,
.pr-btr .wp-block-buttons.is-layout-flow,
body .entry-content .wp-block-buttons,
body .entry-content .wp-block-buttons.is-layout-flex,
body .entry-content .wp-block-buttons.is-layout-flow {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 14px !important;
  margin: 16px 0 6px !important;
}

.pr-btr .wp-block-buttons .wp-block-button,
body .entry-content .wp-block-buttons .wp-block-button {
  flex: 1 1 240px !important;
  max-width: 320px !important;
}

.pr-btr .wp-block-button__link,
body .entry-content .wp-block-button__link {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 12px 22px !important;
  border-radius: 999px !important;
  background: #ff6f00 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18) !important;
  transition: background-color 0.15s ease,
              transform 0.15s ease,
              box-shadow 0.15s ease;
}

@media (hover:hover) {
  .pr-btr .wp-block-button__link:hover,
  body .entry-content .wp-block-button__link:hover {
    background: #e86100 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22) !important;
  }
}

/* Remove last button */
.pr-btr .wp-block-buttons .wp-block-button:last-child,
body .entry-content .wp-block-buttons .wp-block-button:last-child {
  display: none !important;
}

/* ==========================================================
   3) MOBILE TYPE POLISH (UNCHANGED)
========================================================== */

@media (max-width: 520px) {

  .pr-btr h1,
  body .entry-content h1 {
    font-size: 36px;
  }

  .pr-btr h2,
  body .entry-content h2 {
    font-size: 22px;
    margin-top: 28px;
  }

  .pr-btr p,
  .pr-btr li,
  body .entry-content p,
  body .entry-content li {
    font-size: 16px;
  }

  .pr-btr h1 + p,
  body .entry-content h1 + p {
    font-size: 16.5px;
  }
}