:root {
  --ptp-header-navy: #06283f;
  --ptp-header-paper: #fbf8ef;
  --ptp-header-surface: #fffdf8;
  --ptp-header-ink: #122f3f;
  --ptp-header-muted: #5e717a;
  --ptp-header-gold: #d8ad57;
  --ptp-header-gold-dark: #c3963f;
  --ptp-header-line: rgba(8, 47, 73, 0.15);
  --ptp-header-height: 72px;
}

.ptp-external-link-icon {
  display: inline-block;
  text-decoration: none !important;
}

.ptp-internal-link-icon {
  position: relative !important;
  display: inline-block !important;
  width: 0.95em !important;
  height: 0.7em !important;
  flex: 0 0 0.95em !important;
  color: currentColor;
  font-size: 1em !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  text-decoration: none !important;
  vertical-align: -0.08em !important;
}

.ptp-internal-link-icon::before,
.ptp-internal-link-icon::after {
  position: absolute;
  display: block;
  box-sizing: border-box;
  content: "";
}

.ptp-internal-link-icon::before {
  top: calc(50% - 1px);
  left: 0;
  width: 0.82em;
  height: 2px;
  background: currentColor;
}

.ptp-internal-link-icon::after {
  top: 50%;
  right: 0.04em;
  width: 0.42em;
  height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/*
 * Shared high-emphasis link to another Paper Trail Politics page. The folded
 * corner is the page signal; the right arrow retains its global internal-link
 * meaning. In-page actions and external destinations do not receive this
 * treatment.
 */
a.ptp-page-link {
  --ptp-page-link-paper: var(--ptp-header-gold);
  --ptp-page-link-paper-hover: #e5bf70;
  --ptp-page-link-ink: var(--ptp-header-navy);
  --ptp-page-link-fold: #174d68;
  --ptp-page-link-corner: 15px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  border: 1px solid var(--ptp-header-gold-dark) !important;
  border-radius: 0 !important;
  padding: 11px 42px 11px 17px !important;
  clip-path: polygon(
    0 0,
    calc(100% - var(--ptp-page-link-corner)) 0,
    100% var(--ptp-page-link-corner),
    100% 100%,
    0 100%
  );
  color: var(--ptp-page-link-ink) !important;
  background: var(--ptp-page-link-paper) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 150ms ease, filter 150ms ease;
}

a.ptp-page-link::before {
  position: absolute;
  z-index: 1;
  top: -2px;
  right: -1px;
  width: calc(var(--ptp-page-link-corner) + 1px);
  height: calc(var(--ptp-page-link-corner) + 1px);
  background: var(--ptp-page-link-fold);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

a.ptp-page-link::after {
  content: none !important;
}

a.ptp-page-link:hover {
  color: var(--ptp-page-link-ink) !important;
  background: var(--ptp-page-link-paper-hover) !important;
}

a.ptp-page-link:focus-visible {
  color: var(--ptp-page-link-ink) !important;
  background: var(--ptp-page-link-paper-hover) !important;
  filter: drop-shadow(0 0 2px #f2c76d) drop-shadow(0 0 2px #f2c76d);
  outline: 3px solid #f2c76d !important;
  outline-offset: 3px !important;
}

/*
 * Compact page signal for simple internal text links when a full page button
 * would be too large. The mark is decorative; the visible label and right
 * arrow continue to communicate the destination.
 */
.ptp-inline-page-mark {
  --ptp-inline-page-mark-color: var(--ptp-header-gold-dark);
  position: relative;
  top: -1px;
  display: inline-grid;
  width: 14px;
  height: 16px;
  flex: 0 0 14px;
  place-items: center;
  margin-right: 0.36em;
  border: 1px solid var(--ptp-inline-page-mark-color);
  clip-path: polygon(0 0, 9px 0, 100% 5px, 100% 100%, 0 100%);
  color: var(--ptp-inline-page-mark-color);
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  vertical-align: baseline;
}

.ptp-inline-page-mark::before {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  content: "";
}

.ptp-inline-page-mark::after {
  transform: translate(-0.5px, 1px);
  content: "P";
}

a.ptp-inline-page-link .ptp-internal-link-icon {
  margin-left: 0.28em;
}

@media (forced-colors: active) {
  a.ptp-page-link {
    clip-path: none;
  }

  a.ptp-page-link::before {
    display: none;
  }

  .ptp-inline-page-mark {
    clip-path: none;
  }

  .ptp-inline-page-mark::before {
    display: none;
  }
}

/*
 * Shared disclosure language. Directional arrows are reserved for links and
 * navigation; expandable controls always use a plus/minus inside a circle.
 */
.ptp-disclosure-icon {
  --ptp-disclosure-size: 18px;
  display: grid !important;
  width: var(--ptp-disclosure-size) !important;
  height: var(--ptp-disclosure-size) !important;
  flex: 0 0 var(--ptp-disclosure-size) !important;
  place-items: center !important;
  border: 1px solid currentColor !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  font-style: normal !important;
  line-height: 1 !important;
  transform: none !important;
}

.ptp-disclosure-icon::before {
  display: block;
  content: "+" !important;
  font-size: var(--ptp-disclosure-glyph-size, 0.78rem) !important;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-0.5px);
}

details[open] > summary .ptp-disclosure-icon::before,
[aria-expanded="true"] .ptp-disclosure-icon::before,
.ptp-disclosure-icon[aria-expanded="true"]::before {
  content: "\2212" !important;
}

body > .skip-link:focus {
  z-index: 1100;
}

.ptp-back-to-top {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(86px, 14vh, 140px);
  z-index: 900;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  visibility: hidden;
  transform: translateY(10px);
  border: 1px solid rgba(8, 47, 73, 0.24);
  border-radius: 50%;
  padding: 0 0 3px;
  color: var(--ptp-header-navy);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 24px rgba(8, 47, 73, 0.14);
  opacity: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms,
    border-color 160ms ease,
    background 160ms ease;
}

.ptp-back-to-top[data-visible] {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.ptp-back-to-top:hover,
.ptp-back-to-top:focus-visible {
  border-color: var(--ptp-header-gold-dark);
  background: var(--ptp-header-gold);
}

.ptp-back-to-top:focus-visible {
  outline: 3px solid #f2c76d;
  outline-offset: 3px;
}

.ptp-global-header,
.ptp-global-header * {
  box-sizing: border-box;
}

.ptp-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  min-height: var(--ptp-header-height);
  align-items: stretch;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--ptp-header-line);
  padding: 0 0 0 max(20px, calc((100vw - 1320px) / 2));
  color: var(--ptp-header-ink);
  background: rgba(251, 248, 239, 0.97);
  box-shadow: 0 7px 24px rgba(8, 47, 73, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: normal;
  font-variant-numeric: normal;
  line-height: 1.2;
  backdrop-filter: blur(16px);
}

.ptp-global-header a {
  color: inherit;
  text-decoration: none;
}

.ptp-global-header .ptp-global-brand {
  display: flex;
  width: 188px;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 18px 0 0;
  padding: 0;
  background: transparent;
}

.ptp-global-header .ptp-global-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 54px;
  margin: 0;
  object-fit: contain;
}

.ptp-global-header .ptp-page-type {
  display: flex;
  min-height: 34px;
  align-items: center;
  align-self: center;
  border-left: 1px solid var(--ptp-header-line);
  padding: 0 0 0 18px;
  color: var(--ptp-header-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.ptp-global-header .ptp-global-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 0;
  color: #405560;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.ptp-global-header .ptp-global-nav a {
  position: relative;
  display: flex;
  min-height: var(--ptp-header-height);
  align-items: center;
  margin: 0;
  padding: 0 clamp(9px, 1.1vw, 17px);
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
}

.ptp-global-header .ptp-global-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 16px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  content: "";
  background: #ad7d25;
  transition: transform 160ms ease;
}

.ptp-global-header .ptp-global-nav a:hover,
.ptp-global-header .ptp-global-nav a:focus-visible,
.ptp-global-header .ptp-global-nav a[aria-current="page"] {
  color: var(--ptp-header-navy);
}

.ptp-global-header .ptp-global-nav a:hover::after,
.ptp-global-header .ptp-global-nav a:focus-visible::after,
.ptp-global-header .ptp-global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.ptp-global-header .ptp-global-menu-button {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  align-self: center;
  flex: 0 0 44px;
  margin: 0 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 8px;
  color: var(--ptp-header-navy);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.ptp-global-header .ptp-global-menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.ptp-global-header .ptp-my-area-link {
  display: flex;
  min-width: 126px;
  min-height: var(--ptp-header-height);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0 0 0 2px;
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  color: var(--ptp-header-navy);
  background: var(--ptp-header-gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 160ms ease;
}

.ptp-global-header .ptp-my-area-link:hover,
.ptp-global-header .ptp-my-area-link:focus-visible {
  color: var(--ptp-header-navy);
  background: var(--ptp-header-gold-dark);
}

.ptp-global-header a:focus-visible,
.ptp-global-header button:focus-visible {
  z-index: 2;
  outline: 3px solid #f2c76d;
  outline-offset: -4px;
}

.ptp-section-nav,
.ptp-section-nav * {
  box-sizing: border-box;
}

.ptp-section-nav-container {
  overflow: clip !important;
}

.ptp-section-nav {
  position: sticky;
  top: calc(var(--ptp-header-height, 72px) + 1px);
  z-index: 950;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d7e0e6;
  padding: 0;
  color: #4a5b6a;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 22px rgba(6, 40, 63, 0.04);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: normal;
  font-variant-numeric: normal;
  line-height: 1.2;
  backdrop-filter: blur(14px);
}

.ptp-section-nav-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  align-items: stretch;
  gap: 4px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 4px 0;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.ptp-section-nav a {
  position: relative;
  display: flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  border: 0;
  border-radius: 5px;
  padding: 5px 9px;
  color: #4a5b6a;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.ptp-section-nav a:hover,
.ptp-section-nav a:focus-visible,
.ptp-section-nav a[aria-current="location"] {
  color: var(--ptp-header-navy);
  background: #f8f1df;
}

.ptp-section-nav a[aria-current="location"]::after {
  position: absolute;
  right: 9px;
  bottom: 2px;
  left: 9px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: #ad7d25;
}

.ptp-section-nav a:focus-visible {
  outline: 3px solid #f2c76d;
  outline-offset: -3px;
}

.ptp-section-anchor {
  scroll-margin-top: calc(
    var(--ptp-header-height, 72px) + var(--ptp-section-nav-height, 39px) + 16px
  ) !important;
}

@media (max-width: 1080px) {
  .ptp-global-header {
    padding-left: 18px;
  }

  .ptp-global-header .ptp-global-brand {
    width: 164px;
    margin-right: 14px;
  }

  .ptp-global-header .ptp-page-type {
    padding-left: 14px;
    font-size: 0.62rem;
  }

  .ptp-global-header .ptp-global-nav a {
    padding-inline: 9px;
  }

  .ptp-global-header .ptp-my-area-link {
    min-width: 112px;
    padding-inline: 18px;
  }
}

@media (max-width: 980px) {
  :root {
    --ptp-header-height: 66px;
  }

  .ptp-global-header .ptp-global-nav {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    width: min(330px, 100vw);
    align-items: stretch;
    border: 1px solid var(--ptp-header-line);
    color: #405560;
    background: var(--ptp-header-surface);
    box-shadow: 0 18px 40px rgba(8, 47, 73, 0.16);
  }

  .ptp-global-header.is-menu-open .ptp-global-nav {
    display: grid;
  }

  .ptp-global-header .ptp-global-nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--ptp-header-line);
    padding: 0 22px;
  }

  .ptp-global-header .ptp-global-nav a::after {
    display: none;
  }

  .ptp-global-header .ptp-global-menu-button {
    display: block;
  }

  .ptp-global-header .ptp-my-area-link {
    min-width: 108px;
  }
}

@media (max-width: 620px) {
  :root {
    --ptp-header-height: 62px;
  }

  .ptp-global-header {
    padding-left: 10px;
  }

  .ptp-global-header .ptp-global-brand {
    width: 128px;
    margin-right: 8px;
  }

  .ptp-global-header .ptp-page-type {
    min-height: 28px;
    max-width: 64px;
    padding-left: 8px;
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .ptp-global-header .ptp-global-menu-button {
    width: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }

  .ptp-global-header .ptp-my-area-link {
    min-width: 86px;
    padding-inline: 10px;
    font-size: 0.66rem;
  }

  .ptp-back-to-top {
    right: 12px;
    bottom: 82px;
    width: 42px;
    height: 42px;
  }

  .ptp-section-nav-inner {
    width: min(100% - 28px, 1180px);
  }
}

@media (max-width: 390px) {
  .ptp-global-header {
    padding-left: 8px;
  }

  .ptp-global-header .ptp-global-brand {
    width: 108px;
    margin-right: 6px;
  }

  .ptp-global-header .ptp-page-type {
    max-width: 56px;
    padding-left: 6px;
    font-size: 0.48rem;
  }

  .ptp-global-header .ptp-my-area-link {
    min-width: 78px;
    padding-inline: 8px;
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptp-global-header *,
  .ptp-global-header *::before,
  .ptp-global-header *::after,
  .ptp-back-to-top {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .ptp-back-to-top,
  .ptp-section-nav {
    display: none !important;
  }
}
