/* --- Design tokens --- */
:root {
  --vrop-orange: #e57200;
  --vrop-text-muted: #666;
  --vrop-max-content: 800px;
  --vrop-max-wide: 900px;
  --vrop-max-site: 1280px;
  --vrop-bg-page: #faf9f7;
  --vrop-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --vrop-fade-fast: 0.42s;
  --vrop-fade-slow: 0.68s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--vrop-bg-page);
  color: #1a1a1a;
}

/* Page entrance — header then content (fonts unchanged) */
@keyframes vrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes vrop-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: relative;
  z-index: 200;
  padding: 0.65rem clamp(1rem, 4vw, 2.5rem) 0.85rem;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: vrop-fade-in var(--vrop-fade-fast) var(--vrop-ease-out) both;
}

.nav-inner {
  max-width: var(--vrop-max-site);
  margin: 0 auto;
}

.page-main {
  animation: vrop-fade-in-up var(--vrop-fade-slow) var(--vrop-ease-out) 0.07s both;
}

/* Scroll-in sections (desktop only; .is-visible set by static/js/scroll-reveal.js) */
@media (min-width: 900px) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.68s var(--vrop-ease-out),
      transform 0.68s var(--vrop-ease-out);
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .page-main,
  .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .dropdown {
    transition: none;
  }

  .article-card:hover {
    transform: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--vrop-orange);
  outline-offset: 3px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* --- Homepage --- */
.template-home .homepage {
  max-width: var(--vrop-max-content);
  margin: 4rem auto;
  padding: 0 1rem;
}

.template-home .hero .hero-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.template-home .tagline {
  font-size: 1.25rem;
  color: var(--vrop-text-muted);
}

.template-home .home-intro {
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.template-home .home-latest {
  margin-bottom: 3rem;
}

.template-home .home-latest ~ .home-latest .home-section-heading,
.template-home .home-intro + .home-latest .home-section-heading,
.template-home .hero + .home-latest .home-section-heading {
  border-top: 3px solid var(--vrop-orange);
  padding-top: 1.5rem;
}

.template-home .home-section-heading {
  font-family: Rubik, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  padding-top: 0;
}

.template-home .home-section-heading a {
  color: inherit;
  text-decoration: none;
}

.template-home .home-section-heading a:hover {
  text-decoration: underline;
}

.template-home .home-section-more {
  margin: 1rem 0 0;
  font-family: Rubik, sans-serif;
  font-size: 0.95rem;
}

.template-home .home-section-more a {
  color: var(--vrop-accent, #1a365d);
  font-weight: 500;
  text-decoration: none;
}

.template-home .home-section-more a:hover {
  text-decoration: underline;
}

.template-home .home-latest-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .template-home .home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-home .home-latest-grid > li:first-child {
    grid-column: 1 / -1;
  }

  .template-home .home-latest-grid > li:nth-child(2):last-child {
    grid-column: 1 / -1;
  }
}

/* --- Navbar --- */
.navbar {
  font-family: Rubik, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11.5px;
  font-style: normal;
}

.navbar > ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: center;
  gap: 0.25rem 0;
}

.navbar li.left {
  margin-right: auto;
}

/* Home link: title + circular mark (no nav underline bar on this row) */
.navbar li.left > a.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(100%, 22rem);
  transition: opacity 0.2s var(--vrop-ease-out);
}

.navbar li.left > a.navbar-brand::after {
  display: none;
}

.navbar li.left > a.navbar-brand:hover {
  opacity: 0.88;
}

.navbar-brand-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  color: #1a1a1a;
}

.navbar-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.navbar li {
  margin-left: 20px;
  position: relative;
}

.navbar li.left + li {
  margin-left: 0;
}

.search-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.navbar a {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navbar a:hover::after {
  transform: scaleX(1);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 0.75rem 0;
  margin: 0;
  min-width: 220px;
  max-width: 320px;
  width: max-content;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.22s var(--vrop-ease-out),
    visibility 0.22s,
    transform 0.22s var(--vrop-ease-out);
  pointer-events: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  line-height: 1.3;
}

.dropdown a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.page-title {
  display: none !important;
}

/* --- Site footer --- */
.site-footer {
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--vrop-max-site);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: Rubik, sans-serif;
  font-size: 0.85rem;
  text-align: center;
  color: var(--vrop-text-muted);
  animation: vrop-fade-in 0.55s var(--vrop-ease-out) 0.12s both;
}

.site-footer a {
  color: inherit;
  margin: 0 0.5rem;
}

.site-footer .footer-email {
  display: block;
  margin-bottom: 0.75rem;
}

/* --- Generic content pages (SimplePage, etc.) --- */
.template-content-page .content-page {
  max-width: var(--vrop-max-content);
  margin: 4rem auto;
  padding: 0 1rem;
}

.template-content-page .content-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.template-content-page .content-page .tagline {
  font-size: 1.1rem;
  color: var(--vrop-text-muted);
  margin-bottom: 1rem;
}

.template-content-page .content-page hr {
  border: none;
  border-top: 3px solid var(--vrop-orange);
  margin: 1.5rem 0 2rem;
}

.template-content-page .content-page .rich-body {
  line-height: 1.7;
}

/* About section (/about/*): match Masthead fonts & layout (Rubik, centered title, uppercase h2) */
.template-content-page.template-section-masthead .content-page {
  max-width: var(--vrop-max-wide);
}

.template-content-page.template-section-masthead .content-page h1 {
  text-align: center;
  font-size: 2.8rem;
  font-family: Rubik, sans-serif;
  font-weight: 600;
  margin-bottom: 2rem;
}

.template-content-page.template-section-masthead .content-page .tagline {
  font-family: Rubik, sans-serif;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.template-content-page.template-section-masthead .content-page hr {
  margin: 2rem 0;
}

.template-content-page.template-section-masthead .content-page p,
.template-content-page.template-section-masthead .content-page li {
  font-family: Rubik, sans-serif;
}

.template-content-page.template-section-masthead .content-page .rich-body {
  font-family: Rubik, sans-serif;
}

.template-content-page.template-section-masthead .content-page .rich-body h2,
.template-content-page.template-section-masthead .content-page .rich-body h3 {
  font-family: Rubik, sans-serif;
  font-weight: 600;
}

.template-content-page.template-section-masthead .content-page .rich-body h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.template-content-page.template-section-masthead .content-page .rich-body h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.template-content-page.template-section-masthead .content-page .rich-body h4 {
  font-family: Rubik, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* FAQ default (legacy Squarespace Q/A format) */
.template-content-page.template-section-masthead .content-page .faq-legacy > h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.template-content-page.template-section-masthead .content-page .faq-legacy .faq-item {
  margin-bottom: 1.85rem;
}

.template-content-page.template-section-masthead .content-page .faq-legacy .faq-item:last-child {
  margin-bottom: 0;
}

.template-content-page.template-section-masthead .content-page .faq-legacy .faq-q {
  margin: 0 0 0.4rem;
  font-weight: 500;
}

.template-content-page.template-section-masthead .content-page .faq-legacy .faq-a {
  margin: 0 0 0.65rem;
}

.template-content-page.template-section-masthead .content-page .faq-legacy .faq-a:last-child {
  margin-bottom: 0;
}

.template-content-page.template-section-masthead .content-page .faq-legacy a {
  color: var(--vrop-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.template-content-page.template-section-masthead .content-page .faq-legacy a:hover {
  text-decoration-thickness: 2px;
}

.template-content-page.template-section-masthead .content-page .faq-stream-root .faq-a-richtext {
  line-height: 1.7;
}

.template-content-page.template-section-masthead .content-page .faq-stream-root .faq-a-richtext p {
  margin: 0 0 0.65rem;
}

.template-content-page.template-section-masthead .content-page .faq-stream-root .faq-a-richtext p:last-child {
  margin-bottom: 0;
}

.template-content-page.template-section-masthead .content-page .faq-stream-root .faq-rich-freeform a {
  color: var(--vrop-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.template-donate .donate-stream-p {
  line-height: 1.65;
  margin-bottom: 1rem;
}

.template-donate .donate-stream-p p {
  margin: 0 0 1rem;
}

.template-donate .donate-stream-p p:last-child {
  margin-bottom: 0;
}

.template-donate .donate-stream-p a {
  color: var(--vrop-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.template-section-masthead.template-donate .donate-stream-p,
.template-section-masthead.template-donate .donate-stream-p p {
  font-family: Rubik, sans-serif;
}

/* IRC: video stack under masthead intro */
.template-content-page.template-section-masthead .content-page .irc-videos {
  margin-top: 2rem;
}

.template-content-page.template-section-masthead .content-page .irc-videos .irc-video + .irc-video,
.template-content-page.template-section-masthead .content-page .irc-videos .irc-video + .irc-video-fallback {
  margin-top: 1.5rem;
}

/* --- Apply (staff recruitment) --- */
.template-apply .apply-page .apply-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* First StreamField intro on Apply matches legacy .apply-lead weight */
.template-apply .apply-page > .apply-stream-richtext:first-of-type {
  font-size: 1.1rem;
  line-height: 1.6;
}

.template-apply .apply-stream-richtext {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.template-apply .apply-stream-richtext p {
  margin: 0 0 1rem;
}

.template-apply .apply-stream-richtext p:last-child {
  margin-bottom: 0;
}

.template-apply .apply-stream-richtext a {
  color: var(--vrop-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.template-apply .apply-stream-richtext ol,
.template-apply .apply-stream-richtext ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.template-section-masthead.template-apply .apply-stream-richtext,
.template-section-masthead.template-apply .apply-stream-richtext p,
.template-section-masthead.template-apply .apply-stream-richtext li {
  font-family: Rubik, sans-serif;
}

.template-apply .apply-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

/* Apply page when under /about/: use Masthead section heading style */
.template-section-masthead.template-apply .apply-section h2 {
  font-family: Rubik, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.template-section-masthead.template-apply .apply-section:first-of-type h2 {
  margin-top: 0;
}

.template-section-masthead.template-apply .apply-lead,
.template-section-masthead.template-apply .apply-section p,
.template-section-masthead.template-apply .apply-ops-list {
  font-family: Rubik, sans-serif;
}

.template-apply .apply-section p {
  line-height: 1.7;
  margin: 0 0 1rem;
}

.template-apply .apply-ops-list {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  line-height: 1.65;
}

.template-apply .apply-ops-list li {
  margin-bottom: 0.5rem;
}

.template-content-page .search-page .site-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  max-width: 36rem;
  align-items: center;
}

.template-content-page .search-page .site-search-form input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.template-content-page .search-page .site-search-form button {
  padding: 0.5rem 1rem;
  font: inherit;
  cursor: pointer;
  background: var(--vrop-orange);
  color: #fff;
  border: none;
  border-radius: 2px;
}

.template-content-page .search-page .search-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.template-content-page .search-page .search-results li {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
}

.template-content-page .search-page .search-results li:last-child {
  border-bottom: none;
}

.template-content-page .search-page .search-results a {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
}

.template-content-page .search-page .search-results a:hover {
  text-decoration: underline;
}

.template-content-page .search-page .search-results .dek {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #444;
}

.template-content-page .search-page .search-results-empty {
  color: var(--vrop-text-muted);
  font-style: italic;
}

/* --- Donate --- */
.template-donate .donate-page {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.template-donate .donate-text {
  flex: 1 1 350px;
  min-width: 300px;
}

.template-donate .donate-form {
  flex: 1 1 400px;
  min-width: 300px;
  min-height: 620px;
}

.template-donate .donate-form iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  background: #fafafa;
}

.template-donate .donate-fallback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--vrop-text-muted);
}

.template-donate .donate-text h1 {
  font-family: "Playfair Display", Georgia, serif;
}

.template-section-masthead.template-donate .donate-text h1 {
  text-align: center;
  font-size: 2.8rem;
  font-family: Rubik, sans-serif;
  font-weight: 600;
  margin-bottom: 2rem;
}

.template-section-masthead.template-donate .donate-text p,
.template-section-masthead.template-donate .donate-text a,
.template-section-masthead.template-donate .donate-fallback {
  font-family: Rubik, sans-serif;
}

.template-donate .donate-text hr {
  border: none;
  border-top: 3px solid var(--vrop-orange);
  margin: 1rem 0 1.5rem;
}

.template-section-masthead.template-donate .donate-text hr {
  margin: 2rem 0;
}

/* --- Masthead --- */
body.template-masthead h1:not(.masthead h1) {
  display: none !important;
}

.template-masthead .masthead {
  max-width: var(--vrop-max-wide);
  margin: 4rem auto;
  padding: 0 1rem;
}

.template-masthead h1 {
  text-align: center;
  font-size: 2.8rem;
  font-family: Rubik, sans-serif;
  margin-bottom: 2rem;
  font-weight: 600;
}

.template-masthead h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 2rem;
  font-family: Rubik, sans-serif;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.template-masthead hr {
  border: none;
  border-top: 3px solid var(--vrop-orange);
  margin: 2rem 0;
}

.template-masthead .name-list {
  line-height: 1.8;
  font-size: 1rem;
  font-family: Rubik, sans-serif;
}

.template-masthead .name-list span::after {
  content: " · ";
}

.template-masthead .name-list span:last-child::after {
  content: "";
}

.template-masthead .name-list span {
  white-space: nowrap;
}

/* --- Article listing (hub pages) --- */
.article-listing {
  max-width: var(--vrop-max-wide);
  margin: 4rem auto;
  padding: 0 1rem;
}

.article-listing h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.article-listing .hub-intro {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #333;
}

.article-listing hr {
  border: none;
  border-top: 3px solid var(--vrop-orange);
  margin: 1.5rem 0 2rem;
}

/* Op-Eds / Interviews / Features: match Masthead hub typography */
.template-section-masthead.template-opeds .article-listing > h1,
.template-section-masthead.template-interviews .article-listing > h1,
.template-section-masthead.template-features .article-listing > h1 {
  text-align: center;
  font-size: 2.8rem;
  font-family: Rubik, sans-serif;
  font-weight: 600;
  margin-bottom: 2rem;
}

.template-section-masthead.template-opeds .article-listing .hub-intro,
.template-section-masthead.template-interviews .article-listing .hub-intro,
.template-section-masthead.template-features .article-listing .hub-intro {
  font-family: Rubik, sans-serif;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.template-section-masthead.template-opeds .article-listing hr,
.template-section-masthead.template-interviews .article-listing hr,
.template-section-masthead.template-features .article-listing hr {
  margin: 2rem 0;
}

.template-section-masthead.template-opeds .opeds-subnav {
  justify-content: center;
}

.template-section-masthead .article-cards--grid .article-card__title {
  font-family: Rubik, sans-serif;
  font-weight: 600;
}

.template-section-masthead .article-card .meta,
.template-section-masthead .article-card .dek {
  font-family: Rubik, sans-serif;
}

/* Op-Eds index tabs (All | Domestic | …) */
.opeds-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: Rubik, sans-serif;
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.opeds-subnav .sep {
  color: var(--vrop-text-muted);
  user-select: none;
}

.opeds-subnav a {
  color: inherit;
  text-decoration: none;
}

.opeds-subnav a:hover {
  text-decoration: underline;
}

.opeds-subnav a.is-active {
  font-weight: 600;
  text-decoration: underline;
}

.article-card .meta .section-label {
  font-weight: 500;
  color: #222;
}

.article-card .meta .meta-sep {
  margin: 0 0.2rem;
}

.article-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0.75rem 1.5rem;
  border-radius: 8px;
  /* transform/opacity: leave to .scroll-reveal on desktop */
  transition:
    background-color 0.25s var(--vrop-ease-out),
    box-shadow 0.25s var(--vrop-ease-out);
}

.article-card:hover {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  transition:
    background-color 0.25s var(--vrop-ease-out),
    box-shadow 0.25s var(--vrop-ease-out),
    transform 0.25s var(--vrop-ease-out);
}

.article-card:last-child {
  border-bottom: none;
}

.article-card a.title-link {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: inherit;
  text-decoration: none;
}

.article-card a.title-link:hover {
  text-decoration: underline;
}

.article-card .meta {
  font-size: 0.85rem;
  color: var(--vrop-text-muted);
  margin: 0.35rem 0 0.5rem;
}

.article-card .dek {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

/* Hub listings (op-eds, interviews, features): two-column cards with featured image */
.article-cards--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .article-cards--grid {
    grid-template-columns: 1fr;
  }
}

.article-cards--grid .empty-note {
  grid-column: 1 / -1;
  border: none;
  padding: 0.5rem 0;
}

.article-cards--grid .article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.article-cards--grid .article-card:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-cards--grid .article-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-cards--grid .article-card__link:focus-visible {
  outline: 2px solid var(--vrop-orange);
  outline-offset: 2px;
}

.article-cards--grid .article-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eceae6;
}

.article-cards--grid .article-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cards--grid .article-card--no-image .article-card__body {
  padding-top: 1.15rem;
}

.article-cards--grid .article-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1.1rem 1.2rem;
}

.article-cards--grid .article-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 0.2rem;
}

.article-cards--grid .article-card__link:hover .article-card__title {
  text-decoration: underline;
}

.article-listing .empty-note {
  color: var(--vrop-text-muted);
  font-style: italic;
}

.article-list-pagination {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: Rubik, sans-serif;
  font-size: 0.9rem;
}

.article-list-pagination-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.article-list-pagination .pagination-status {
  color: var(--vrop-text-muted);
  text-align: center;
}

@media (max-width: 479px) {
  .article-list-pagination .pagination-status {
    order: -1;
  }
}

@media (min-width: 480px) {
  .article-list-pagination-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.25rem 1.5rem;
  }
}

.article-list-pagination .pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.5rem 1rem;
  min-width: 7.5rem;
  box-sizing: border-box;
  border: 2px solid var(--vrop-orange);
  border-radius: 6px;
  background: #fff;
  color: var(--vrop-accent, #1a365d);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.article-list-pagination .pagination-btn:hover {
  background: rgba(229, 114, 0, 0.08);
  border-color: var(--vrop-orange);
  text-decoration: none;
}

.article-list-pagination .pagination-btn:focus-visible {
  outline: 2px solid var(--vrop-orange);
  outline-offset: 2px;
}

.article-list-pagination .pagination-btn--disabled {
  opacity: 0.38;
  pointer-events: none;
  border-color: rgba(229, 114, 0, 0.35);
  color: var(--vrop-text-muted);
  cursor: default;
}

.article-list-pagination .pagination-arrow {
  font-size: 1.05em;
  line-height: 1;
}

/* --- Article detail --- */
.template-article .article-page {
  max-width: var(--vrop-max-wide);
  margin: 4rem auto;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 36px rgba(0, 0, 0, 0.05);
}

.template-article .article-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.template-article .article-page .byline {
  font-family: Rubik, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.template-article .article-page time {
  display: block;
  font-size: 0.85rem;
  color: var(--vrop-text-muted);
  margin-bottom: 1.5rem;
}

.template-article .article-page:has(.article-tags) time {
  margin-bottom: 0.35rem;
}

.template-article .article-page .article-tags {
  font-size: 0.9rem;
  color: var(--vrop-text-muted);
  margin: 0 0 1.5rem;
}

.template-article .article-page .featured-image {
  margin-bottom: 1.5rem;
}

/* Wagtail {% image %} may render <picture>; keep wrapper sized so the image never collapses */
.template-article .article-page .featured-image picture {
  display: block;
  width: 100%;
}

.template-article .article-page .featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image captions: show on hover/focus (featured + body images) */
.template-article .article-figure {
  position: relative;
  display: block;
  max-width: 100%;
}

.template-article .article-figure:focus {
  outline: none;
}

.template-article .article-figure:focus-visible {
  outline: 2px solid var(--vrop-orange);
  outline-offset: 3px;
}

.template-article .article-figure-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.75);
  color: #f5f5f5;
  font-size: 0.82rem;
  line-height: 1.4;
  font-style: italic;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s var(--vrop-ease-out),
    visibility 0.2s var(--vrop-ease-out);
}

.template-article .article-figure--captioned:hover .article-figure-caption,
.template-article .article-figure--captioned:focus-within .article-figure-caption {
  opacity: 1;
  visibility: visible;
}

.template-article .article-figure-caption-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.template-article .article-figure-caption-link:hover {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .template-article .article-figure-caption {
    transition: none;
  }

  .template-article .article-figure--captioned .article-figure-caption {
    position: static;
    opacity: 1;
    visibility: visible;
    margin-top: 0.35rem;
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    font-style: italic;
  }
}

.template-article .article-body {
  line-height: 1.75;
  font-size: 1.05rem;
  /* Lets wide replaced content shrink inside flex/grid ancestors */
  min-width: 0;
}

.template-article .article-body .block-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.template-article .article-body .block-paragraph {
  margin-bottom: 1rem;
}

.template-article .article-body .block-quote {
  border-left: 4px solid var(--vrop-orange);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #333;
}

/* Images: streamfield blocks + RichText (imports often leave bare <img> with large dimensions). */
.template-article .article-body .block-image,
.template-article .article-body .block-paragraph figure {
  max-width: 100%;
}

.template-article .article-body .block-image {
  margin: 1.25rem 0;
}

/* Do not style .responsive-object here — Wagtail uses padding-bottom for video aspect ratio; max-width on
   the wrapper breaks layout. */

.template-article .article-body picture {
  display: block;
  max-width: 100%;
}

.template-article .article-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.template-article .article-body .block-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* RichText / imported HTML: block images so they don’t sit inline with caption stray text */
.template-article .article-body .block-paragraph img {
  display: block;
  margin: 1.25rem 0;
}

/* Squarespace export wrappers */
.template-article .article-body .sqs-html-content {
  max-width: 100%;
}

/* --- Print editions --- */
.template-print-editions .print-editions-page {
  max-width: var(--vrop-max-content);
  margin: 4rem auto;
  padding: 0 1rem;
}

.template-print-editions .print-editions-page h1 {
  font-family: "Playfair Display", Georgia, serif;
}

.template-print-editions .print-editions-page hr {
  border: none;
  border-top: 3px solid var(--vrop-orange);
  margin: 1rem 0 1.5rem;
}

.template-print-editions .pdf-embed {
  margin-top: 1.5rem;
  min-height: 70vh;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.template-print-editions .pdf-embed iframe {
  width: 100%;
  min-height: 70vh;
  border: none;
}

.template-print-editions .pdf-download {
  display: inline-block;
  margin-top: 1rem;
  font-family: Rubik, sans-serif;
  font-size: 0.9rem;
}
