/* WordPress-only compatibility around the exact compiled localhost design. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body.veria-classic-runtime {
  overflow-x: clip;
}

.min-h-\[60vh\] {
  min-height: 60vh;
}

.p-8 {
  padding: 2rem;
}

.py-28 {
  padding-block: 7rem;
}

.admin-bar > .relative.min-h-screen > header {
  top: 32px;
}

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

.veria-post-content > * + * {
  margin-top: 1.5rem;
}

.veria-post-content :where(h2, h3, h4) {
  color: #0b0f1a;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-top: 3rem;
}

.veria-post-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.veria-post-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.veria-post-content :where(p, li) {
  font-size: 1.0625rem;
  line-height: 2rem;
}

.veria-post-content :where(ul, ol) {
  margin: 1.5rem 0 0 1.4rem;
}

.veria-post-content ul {
  list-style: disc;
}

.veria-post-content ol {
  list-style: decimal;
}

.veria-post-content a {
  color: #d83e19;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.veria-post-content :where(img, video, iframe) {
  border-radius: 1.5rem;
  max-width: 100%;
}

.veria-post-content .alignwide {
  width: min(100%, 72rem);
}

.veria-post-content .alignfull {
  width: 100%;
}

.veria-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.veria-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.65rem 1rem;
}

.veria-pagination .current {
  background: #0b0f1a;
  color: #fff;
}

@media (max-width: 782px) {
  .admin-bar > .relative.min-h-screen > header {
    top: 46px;
  }
}

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

/* Remove the featured image from individual post pages */
[data-veria-slot="article-hero"] .translate-y-10 {
    display: none !important;
}

/* Remove the unnecessary tall space left by the featured image */
/* Increase the butterfly background height on article pages */
[data-veria-slot="article-hero"] {
    min-height: 520px !important;
}

/* Vertically center the article heading */
[data-veria-slot="article-hero"] > .relative.z-10 {
    min-height: 520px;
    justify-content: center;
    padding-top: 90px !important;
    padding-bottom: 70px !important;
}

/* Smaller height on phones */
@media (max-width: 767px) {
    [data-veria-slot="article-hero"],
    [data-veria-slot="article-hero"] > .relative.z-10 {
        min-height: 420px !important;
    }
}

/* Remove the large repeated excerpt above the article content */
[data-veria-slot="article-body"] > div.max-w-3xl > p:first-child {
    display: none !important;
}

/* Remove the Report Details label */
[data-veria-slot="article-body"] > aside > span:first-child {
    display: none !important;
}


/* Remove the repeated excerpt from the butterfly/title section */
[data-veria-slot="article-hero"] h1 + p {
    display: none !important;
}

/* Reduce empty space between the butterfly section and article */
[data-veria-slot="article-body"] {
    padding-top: 40px !important;
}

/* Remove extra spacing above the article details */
[data-veria-slot="article-body"] aside dl {
    margin-top: 0 !important;
}


/* Clean Newsroom archive grid */
[data-veria-slot="newsroom-archive"] > .mt-12 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

/* Remove the old 7/5-column spans */
[data-veria-slot="newsroom-archive"] > .mt-12 > div {
    grid-column: auto !important;
    min-width: 0;
}

/* Keep every card equal in height */
[data-veria-slot="newsroom-archive"] a.group {
    display: flex !important;
    height: 100%;
    flex-direction: column;
    border: 1px solid rgba(11, 15, 26, 0.06);
    box-shadow: 0 10px 30px rgba(11, 15, 26, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Use the same image proportions on every card */
[data-veria-slot="newsroom-archive"] a.group > div:first-child {
    width: 100%;
    min-height: 0 !important;
    aspect-ratio: 16 / 10 !important;
}

/* Make the text areas fill the remaining card height */
[data-veria-slot="newsroom-archive"] a.group > div:last-child {
    flex: 1;
}

/* Subtle interaction */
[data-veria-slot="newsroom-archive"] a.group:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 15, 26, 0.10);
}

/* Tablet */
@media (max-width: 1023px) {
    [data-veria-slot="newsroom-archive"] > .mt-12 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 639px) {
    [data-veria-slot="newsroom-archive"] > .mt-12 {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}


/* Enlarge the Android device on the Downloads page */
img[alt="Mind Mappr Android interface"] {
    width: 74% !important;
    bottom: -40px !important;
}

/* Slightly larger on phones */
@media (max-width: 639px) {
    img[alt="Mind Mappr Android interface"] {
        width: 78% !important;
        bottom: -24px !important;
    }
}

/* Reduce the Web app screenshot corners */
figure:has(img[alt="Mind Mappr web workspace"]) {
    border-radius: 5px !important;
}

/* Reduce the Windows screenshot corners */
img[alt="Mind Mappr Windows workspace"] {
    border-radius: 5px !important;
}


/* Display the complete updated Web app screenshot */
img[alt="Mind Mappr web workspace"] {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: top center !important;
}
