
/* =========================================================
   PROSE-TO-VISUAL — ARCTIC EDITORIAL
   Prefix: pv-
   ========================================================= */

article.prose {
  --pv-ink: #183B4E;
  --pv-dark: #10293A;
  --pv-ice: #9CC7DA;
  --pv-tint: #EAF2F5;
  --pv-bg: #F7FAFB;
  --pv-green: #1F7A6A;
  --pv-text: #242C32;
  --pv-muted: #6D8794;
  --pv-line: #D9E6EC;

  color: var(--pv-text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

/* Guide expansion */
#guide.pv-expanded {
  overflow: visible !important;
  max-height: none !important;
}

#guide.pv-expanded .prose-clip {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

#guide.pv-expanded button.read-more {
  display: none !important;
}

/* Layout */
article.prose .pv-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
  width: 100%;
}

article.prose .pv-intro {
  grid-column: 1 / -1;
  position: relative;
  padding: 25px 30px;
  border: 1px solid var(--pv-line);
  border-left: 4px solid var(--pv-ice);
  border-radius: 15px;
  background: linear-gradient(120deg, #fff, var(--pv-tint));
  margin-bottom: 2px;
}

article.prose .pv-intro > :last-child {
  margin-bottom: 0;
}

/* Story cards */
article.prose .pv-card {
  position: relative;
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--pv-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(16, 41, 58, .045);
  overflow: hidden;
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(22px);
}

article.prose .pv-card.pv-visible {
  opacity: 1;
  transform: translateY(0);
}

article.prose .pv-card:hover {
  transform: translateY(-5px);
  border-color: var(--pv-ice);
  box-shadow: 0 14px 35px rgba(16, 41, 58, .10);
}

article.prose .pv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pv-ink), var(--pv-ice));
}

article.prose .pv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

article.prose .pv-icon {
  display: flex;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  color: var(--pv-ink);
  background: var(--pv-tint);
  border-radius: 12px;
}

article.prose .pv-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

article.prose .pv-number {
  display: block;
  color: var(--pv-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 3px;
}

article.prose .pv-card h2 {
  color: var(--pv-ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
}

article.prose .pv-card-body > :first-child {
  margin-top: 0;
}

article.prose .pv-card-body > :last-child {
  margin-bottom: 0;
}

article.prose .pv-card p {
  margin: 0 0 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

article.prose .pv-card a {
  color: var(--pv-green);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Highlight lead */
article.prose .pv-lead {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--pv-tint);
  border-left: 3px solid var(--pv-ice);
  color: var(--pv-ink);
  font-weight: 650;
  line-height: 1.55;
}

/* More toggle */
article.prose .pv-extra {
  display: none;
}

article.prose .pv-extra.pv-open {
  display: block;
  animation: pv-reveal .35s ease both;
}

article.prose .pv-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 7px 12px;
  border: 1px solid var(--pv-line);
  border-radius: 30px;
  color: var(--pv-ink);
  background: #fff;
  font: 700 12px 'Inter', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

article.prose .pv-more:hover {
  background: var(--pv-tint);
  border-color: var(--pv-ice);
}

/* Chip lists */
article.prose .pv-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  margin: 15px 0 20px;
  list-style: none;
}

article.prose .pv-chips li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--pv-line);
  border-radius: 10px;
  background: var(--pv-bg);
  font-size: 13px;
  line-height: 1.5;
  transition: transform .25s, background .25s;
}

article.prose .pv-chips li:hover {
  transform: translateY(-3px);
  background: var(--pv-tint);
}

article.prose .pv-check {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--pv-green);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

/* Q&A */
article.prose .pv-qa {
  border: 1px solid var(--pv-line);
  border-radius: 11px;
  margin: 13px 0;
  overflow: hidden;
}

article.prose .pv-question {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: var(--pv-tint);
  color: var(--pv-ink);
  text-align: left;
  font: 700 14px/1.5 'Inter', sans-serif;
  cursor: pointer;
}

article.prose .pv-question::after {
  content: "+";
  font-size: 21px;
  flex: 0 0 auto;
}

article.prose .pv-question[aria-expanded="true"]::after {
  content: "−";
}

article.prose .pv-answer {
  display: none;
  padding: 14px;
  font-size: 14px;
}

article.prose .pv-answer.pv-open {
  display: block;
  animation: pv-reveal .25s ease both;
}

article.prose .pv-answer p:last-child {
  margin-bottom: 0;
}

/* Number pills */
article.prose .pv-stat {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 1px;
  color: var(--pv-green);
  background: #E9F5F0;
  border: 1px solid #CBE8DC;
  border-radius: 7px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Tables */
article.prose .pv-table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
}

article.prose .pv-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

article.prose .pv-table-wrap th {
  background: var(--pv-ink);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

article.prose .pv-table-wrap th,
article.prose .pv-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid var(--pv-line);
}

article.prose .pv-table-wrap tr {
  transition: background .2s;
}

article.prose .pv-table-wrap tbody tr:hover {
  background: var(--pv-tint);
}

article.prose .pv-table-wrap tbody tr.pv-row-visible {
  animation: pv-row-in .4s ease both;
}

/* CTA */
article.prose .pv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 19px;
  margin: 10px 0 15px;
  border-radius: 50px;
  color: #fff !important;
  background: var(--pv-green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 5px 15px rgba(31, 122, 106, .18);
  transition: transform .25s, background .25s;
}

article.prose .pv-cta:hover {
  background: var(--pv-ink);
  transform: translateY(-3px);
}

/* Images */
article.prose .pv-card img,
article.prose .pv-intro img {
  max-width: 100%;
  height: auto;
  border-radius: 11px;
}

article.prose .pv-card figure {
  margin: 15px 0;
}

/* Intro */
article.prose .pv-intro p:last-child {
  margin-bottom: 0;
}

/* Animations */
@keyframes pv-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pv-row-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Tablet */
@media (max-width: 900px) {
  article.prose .pv-layout {
    gap: 15px;
  }

  article.prose .pv-card {
    padding: 19px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  article.prose .pv-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  article.prose .pv-intro {
    padding: 19px;
  }

  article.prose .pv-card {
    padding: 19px;
    border-radius: 13px;
  }

  article.prose .pv-card h2 {
    font-size: 21px;
  }

  article.prose .pv-chips {
    grid-template-columns: minmax(0, 1fr);
  }

  article.prose .pv-table-wrap {
    overflow: visible;
    border: 0;
  }

  article.prose .pv-table-wrap table,
  article.prose .pv-table-wrap tbody {
    display: block;
    width: 100%;
  }

  article.prose .pv-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  article.prose .pv-table-wrap tr {
    display: block;
    margin-bottom: 12px;
    padding: 9px 13px;
    border: 1px solid var(--pv-line);
    border-radius: 11px;
    background: var(--pv-bg);
  }

  article.prose .pv-table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--pv-line);
    text-align: right;
  }

  article.prose .pv-table-wrap td:last-child {
    border-bottom: 0;
  }

  article.prose .pv-table-wrap td::before {
    content: attr(data-label);
    color: var(--pv-muted);
    font-weight: 700;
    text-align: left;
    flex: 0 0 42%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  article.prose *,
  article.prose *::before,
  article.prose *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  article.prose .pv-card {
    opacity: 1;
    transform: none;
  }
}


/* LC integration (v3.13.1) */
#guide.pv-expanded .wrap.narrow{max-width:1180px!important;width:min(1180px,calc(100% - 32px))!important}
#guide.pv-expanded article.prose{max-width:none!important;width:100%}
#guide.pv-expanded .prose-clip{padding-left:0;padding-right:0}
#guide.pv-expanded .prose-clip{max-height:none!important;-webkit-mask:none!important;mask:none!important}
article.prose .pv-lead{display:block;margin:0 0 10px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
article.prose .pv-stat{display:inline-block;line-height:1.25;padding:1px 7px;margin:0 1px;vertical-align:baseline}
