/* =========================================================
   POLICY & MEDIA PAGE: BASE / DESKTOP
   Loaded after styles.css by policy.qmd.
   All rules are scoped to this page.
   ========================================================= */

.policy-page {
  --pp-accent: #c65335;
  --pp-accent-dark: #a9442d;
  --pp-button-hover: #913b28;
  --pp-panel: #eee9e1;
  --pp-line: #d7cfc4;
  --pp-muted: #625d56;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  line-height: 1.65;
}

.policy-page,
.policy-page * {
  box-sizing: border-box;
}

.policy-page p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.policy-page .pp-intro {
  max-width: 78ch;
  margin: 0 0 2.5rem;
}

.policy-page .pp-intro > :last-child {
  margin-bottom: 0;
}

.policy-page h2 {
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--pp-line);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.policy-page h3.pp-title,
.policy-page h3.pp-topic-title,
.policy-page h3.pp-event-title,
.policy-page h3.pp-contact-title {
  margin: 0 0 0.7rem;
  padding: 0;
  border: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* Inline links inherit paragraph metrics to avoid extra line spacing. */
.policy-page a.pp-link,
.policy-page a.pp-link:visited {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--pp-accent-dark);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  white-space: normal;
  overflow-wrap: break-word;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.policy-page a.pp-link:hover {
  color: var(--pp-accent-dark);
  text-decoration-thickness: 2px;
}

.policy-page a.pp-link:focus-visible,
.policy-page a.pp-button:focus-visible,
.policy-page .pp-summary > summary:focus-visible {
  outline: 2px solid var(--pp-accent-dark);
  outline-offset: 4px;
  border-radius: 2px;
}


/* =========================================================
   CURRENT POLICY DEBATES
   ========================================================= */

.policy-page .pp-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  align-items: start;
}

.policy-page .pp-topic {
  min-width: 0;
  padding: 1.15rem 0 0.5rem;
  border-top: 2px solid var(--pp-accent);
}

.policy-page h3.pp-topic-title {
  font-size: 1.15rem;
}

.policy-page .pp-topic > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   POLICY OUTPUTS
   ========================================================= */

.policy-page .pp-publications {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
}

.policy-page .pp-paper {
  min-width: 0;
  margin: 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--pp-line);
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.policy-page .pp-selected .pp-paper {
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--pp-accent);
  background: var(--pp-panel);
}

.policy-page .pp-selected h3.pp-title {
  font-size: 1.4rem;
}

.policy-page p.pp-publication {
  margin: 0 0 0.8rem;
  color: var(--pp-accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

.policy-page p.pp-authors {
  margin: 0 0 0.8rem;
  color: var(--pp-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.policy-page p.pp-full-text {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.65;
}


/* =========================================================
   EXPANDABLE SUMMARIES
   Native details/summary works without JavaScript.
   ========================================================= */

.policy-page details.pp-summary {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.policy-page .pp-summary > summary {
  display: list-item;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 0.15rem;
  color: var(--pp-accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: disclosure-closed inside;
}

.policy-page .pp-summary[open] > summary {
  list-style-type: disclosure-open;
}

.policy-page .pp-summary > summary::marker {
  color: var(--pp-accent);
}

.policy-page .pp-summary > summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.policy-page .pp-summary > p {
  max-width: 78ch;
  margin: 0.45rem 0 0.7rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--pp-accent);
  font-size: 1rem;
  line-height: 1.65;
}

.policy-page .pp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   POLICY ADVICE & DIALOGUE
   ========================================================= */

.policy-page .pp-events {
  margin-top: 1.75rem;
}

.policy-page .pp-event {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--pp-line);
}

.policy-page .pp-event-copy {
  min-width: 0;
}

.policy-page p.pp-event-date {
  margin: 0;
  color: var(--pp-accent-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.policy-page h3.pp-event-title {
  font-size: 1.1rem;
}

.policy-page .pp-event-copy > :last-child {
  margin-bottom: 0;
}


/* =========================================================
   MEDIA & CONTACT
   ========================================================= */

.policy-page .pp-commentary {
  margin: 1.5rem 0 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--pp-line);
  border-bottom: 1px solid var(--pp-line);
}

.policy-page .pp-contact {
  margin: 2rem 0 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 4px;
  background: var(--pp-panel);
}

.policy-page p.pp-contact-action {
  margin: 1.1rem 0 0;
}

.policy-page a.pp-button,
.policy-page a.pp-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--pp-accent-dark);
  border-radius: 3px;
  background: var(--pp-accent-dark);
  box-shadow: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.policy-page a.pp-button:hover {
  border-color: var(--pp-button-hover);
  background: var(--pp-button-hover);
  color: #fff;
  text-decoration: none;
}


/* =========================================================
   POLICY & MEDIA PAGE: MOBILE / TABLET
   ========================================================= */

@media (max-width: 850px) {
  .policy-page .pp-intro {
    margin-bottom: 2rem;
  }

  .policy-page h2 {
    margin-top: 2.5rem;
    font-size: 1.6rem;
  }

  .policy-page .pp-topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .policy-page .pp-topic {
    padding-top: 1rem;
  }

  .policy-page .pp-publications {
    gap: 1rem;
  }

  .policy-page .pp-paper,
  .policy-page .pp-selected .pp-paper {
    padding: 1.25rem;
  }

  .policy-page h3.pp-title,
  .policy-page .pp-selected h3.pp-title {
    font-size: 1.2rem;
  }

  .policy-page p.pp-publication,
  .policy-page p.pp-authors,
  .policy-page p.pp-full-text {
    font-size: 0.9rem;
  }

  .policy-page .pp-summary > summary {
    min-height: 44px;
    padding-block: 0.65rem;
  }

  .policy-page .pp-summary > p {
    padding-left: 0.8rem;
  }

  .policy-page .pp-event {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    padding-block: 1.15rem;
  }

  .policy-page .pp-contact {
    margin: 1.75rem 0 1.5rem;
    padding: 1.35rem;
  }

  .policy-page a.pp-button {
    padding: 0.8rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .policy-page .pp-paper,
  .policy-page .pp-selected .pp-paper {
    padding: 1rem;
  }

  .policy-page .pp-contact {
    padding: 1.1rem;
  }

  .policy-page a.pp-button {
    width: 100%;
  }
}



/* =========================================================
   POLICY Talk photo
   ========================================================= */

.policy-page .pp-talk-photo {
  width: 520px;
  max-width: 100%;
  margin: 2.5rem auto 3rem;
}

.policy-page .pp-talk-photo p,
.policy-page .pp-talk-photo figure,
.policy-page .pp-talk-photo .quarto-figure {
  margin: 0;
}

.policy-page .pp-talk-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 4px;
}

@media (max-width: 850px) {
  .policy-page .pp-talk-photo {
    width: 82%;
    max-width: 360px;
    margin: 2rem auto 2.5rem;
  }
}