/* Xerovi theme: rv6-insights.css, the /insights/ hub, its type and topic pages and the article layout
   (W4, agent insights-w4, 2026-12-01). Loaded last, on those views only (inc/assets.php, inc/insights.php).
   Extends the redesign v2 system (rv2-system.css): same tones, Chivo 500 display, bone paper, white cards, the arrow
   disc. Reading first (Read mode): body measure 68ch (--xv-measure-long), question headings with the short answer set
   as a lead line, lists as index rows rather than a card grid. Motion only answers the pointer: hover behind fine
   pointers, amplitudes from base.css (--xv-move-*), which reduced motion and Pause motion set to zero.
   Contents: 1 shared  2 lists  3 hub sections  4 article head  5 article body  6 Questions block  7 related  8 phone */

/* ============================================================ 1 shared */
.xv-ins-head { margin-bottom: clamp(28px, 4vw, 56px); }
.xv-ins-h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; color: var(--xv-text); text-wrap: balance; }
.xv-ins-h2--big { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.xv-ins + .xv-ins { padding-top: 0; }
.xv-ins-empty { max-width: var(--xv-measure); font-size: var(--xv-size-lead); color: var(--xv-text-soft); }
.xv-ins-feed { margin-top: clamp(28px, 3vw, 40px); }
.xv-ins :is(h2, h3)[id], .xv-ins-body :is(h2, h3)[id] { scroll-margin-top: 112px; }

/* ============================================================ 2 article lists (index rows) */
.xv-ins-list { container-type: inline-size; list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(10, 13, 12, .14); }
.xv-ins-item { border-bottom: 1px solid rgba(10, 13, 12, .14); }
.xv-ins-item__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas: "title go" "sum go" "meta go";
  column-gap: 20px;
  row-gap: 10px;
  padding: 26px 0 28px;
}
.xv-ins-item__title { grid-area: title; margin: 0; max-width: 34ch; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 500; line-height: 1.14; letter-spacing: -.022em; text-wrap: balance; }
.xv-ins-item__a { color: var(--xv-text); text-decoration: none; }
.xv-ins-item__a::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link target */
.xv-ins-item__a:focus-visible { outline: 3px solid var(--xv-accent); outline-offset: 4px; border-radius: 4px; }
.xv-ins-item__sum { grid-area: sum; margin: 0; max-width: var(--xv-measure); color: var(--xv-text-soft); font-size: var(--xv-size-body); line-height: 1.55; }
.xv-ins-item__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 2px 0 0; font-size: var(--xv-size-small); color: var(--xv-text-muted); font-variant-numeric: tabular-nums; }
.xv-ins-item__type { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 32px; color: var(--xv-green-700); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; }
.xv-ins-item__type:focus-visible { outline: 3px solid var(--xv-accent); outline-offset: 2px; border-radius: 4px; }
.xv-ins-item__go { grid-area: go; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--xv-ink-950); color: var(--xv-green-400); transition: transform 220ms var(--rv-ease, ease), background-color 200ms ease, color 200ms ease; }
.xv-ins-item__go .xv-icon { width: 16px; height: 16px; }

/* the newest article on the first hub page: the same row at a larger scale (hierarchy by size, not by a box) */
.xv-ins-item--lead .xv-ins-item__in { padding: 8px 0 clamp(32px, 4vw, 48px); row-gap: 16px; }
.xv-ins-item--lead .xv-ins-item__title { max-width: 22ch; font-size: clamp(2rem, 1.25rem + 3.2vw, 3.75rem); line-height: 1.02; letter-spacing: -.04em; }
.xv-ins-item--lead .xv-ins-item__sum { font-size: var(--xv-size-lead); line-height: 1.5; }
.xv-ins-item--lead .xv-ins-item__go { width: 56px; height: 56px; background: var(--xv-green-400); color: var(--xv-ink-950); }
.xv-ins-list:has(> .xv-ins-item--lead) { border-top: 0; }

@container (min-width: 860px) {
  .xv-ins-item__in { grid-template-columns: minmax(140px, 2fr) minmax(0, 8fr) 56px; grid-template-areas: "meta title go" "meta sum go"; column-gap: clamp(24px, 3vw, 48px); padding: 32px 0 34px; }
  .xv-ins-item__meta { flex-direction: column; align-items: flex-start; gap: 2px; margin: 4px 0 0; align-self: start; }
  .xv-ins-item--lead .xv-ins-item__in { grid-template-areas: "title title go" "meta sum go"; row-gap: 22px; }
}
/* wide index: the summary sits beside the title, like a magazine contents page */
@container (min-width: 1160px) {
  .xv-ins-item__in { grid-template-columns: minmax(140px, 2fr) minmax(0, 5fr) minmax(0, 4fr) 56px; grid-template-areas: "meta title sum go"; align-items: start; }
  .xv-ins-item__sum { margin-top: 4px; }
  .xv-ins-item--lead .xv-ins-item__in { grid-template-columns: minmax(140px, 2fr) minmax(0, 5fr) minmax(0, 4fr) 56px; grid-template-areas: "title title title go" "meta sum sum go"; }
}

@media (hover: hover) and (pointer: fine) {
  .xv-ins-item__in:hover .xv-ins-item__go { background: var(--xv-green-400); color: var(--xv-ink-950); transform: translateX(var(--xv-move-nudge, 3px)); }
  .xv-ins-item--lead .xv-ins-item__in:hover .xv-ins-item__go { background: var(--xv-ink-950); color: var(--xv-green-400); }
  .xv-ins-item__in:hover .xv-ins-item__a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
  .xv-ins-item__type:hover { text-decoration-color: currentColor; }
}
.xv-ins-item__in:active .xv-ins-item__go { transform: scale(var(--xv-move-press, .97)); }

/* pages */
.xv-ins-pages { margin-top: clamp(28px, 3vw, 40px); }
.xv-ins-pages ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.xv-ins-pages :is(a, span) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(10, 13, 12, .18); color: var(--xv-text); font-size: var(--xv-size-ui); font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.xv-ins-pages .current { background: var(--xv-ink-950); border-color: var(--xv-ink-950); color: var(--xv-bone-100); }
.xv-ins-pages .dots { border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .xv-ins-pages a:hover { background: rgba(10, 13, 12, .06); } }

/* ============================================================ 3 hub sections */
.xv-ins-types { display: grid; gap: 16px; }
.xv-ins-type { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.4vw, 34px); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 14px 40px -24px rgba(10, 13, 12, .24); }
.xv-ins-type__h { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.xv-ins-type__h a { color: var(--xv-text); text-decoration: none; }
.xv-ins-type__p { margin: 10px 0 0; color: var(--xv-text-muted); font-size: var(--xv-size-small); line-height: 1.5; }
.xv-ins-type__list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid rgba(10, 13, 12, .12); }
.xv-ins-type__list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid rgba(10, 13, 12, .12); }
.xv-ins-type__list a { color: var(--xv-text); font-weight: 500; line-height: 1.3; text-decoration: none; padding-block: 4px; }
.xv-ins-type__list time { color: var(--xv-text-muted); font-size: var(--xv-size-small); font-variant-numeric: tabular-nums; }
.xv-ins-type__all { margin-top: auto; padding-top: 20px; align-self: flex-start; }
@media (hover: hover) and (pointer: fine) {
  .xv-ins-type__h a:hover, .xv-ins-type__list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
}
@media (min-width: 960px) { .xv-ins-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.xv-ins-topics { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.xv-ins-topic__a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-areas: "name icon" "desc desc" "n n";
  gap: 8px 12px;
  height: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  border-radius: 24px;
  background: #fff;
  color: var(--xv-text);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 14px 40px -24px rgba(10, 13, 12, .24);
  transition: transform 250ms var(--rv-ease, ease), box-shadow 250ms ease;
}
.xv-ins-topic__name { grid-area: name; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.1; }
.xv-ins-topic__desc { grid-area: desc; color: var(--xv-text-muted); font-size: var(--xv-size-small); line-height: 1.5; }
.xv-ins-topic__n { grid-area: n; margin-top: 6px; color: var(--xv-green-700); font-size: var(--xv-size-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.xv-ins-topic__a > .xv-icon { grid-area: icon; width: 18px; height: 18px; margin-top: 6px; color: var(--xv-green-700); transition: transform 220ms var(--rv-ease, ease); }
.xv-ins-topic__a:focus-visible { outline: 3px solid var(--xv-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .xv-ins-topic__a:hover { transform: translateY(var(--xv-move-lift, -2px)); box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 22px 48px -22px rgba(10, 13, 12, .3); }
  .xv-ins-topic__a:hover > .xv-icon { transform: translateX(var(--xv-move-nudge, 3px)); }
}
.xv-ins-topic__a:active { transform: scale(var(--xv-move-press, .97)); }
@media (min-width: 700px) { .xv-ins-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .xv-ins-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============================================================ 4 article head (dark page head of T-13, rv5-fixes.css) */
.xv-ins-ahead .xv-page-head__title { max-width: 22ch; text-wrap: balance; }
.xv-ins-checked { display: inline-flex; align-items: center; gap: 10px; margin: clamp(18px, 2vw, 26px) 0 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(0, 255, 151, .1); border: 1px solid rgba(0, 255, 151, .28); color: var(--rv-mint, #7dffc6); font-size: var(--xv-size-small); font-weight: 500; line-height: 1.3; }
.xv-ins-checked .xv-icon { flex: none; width: 16px; height: 16px; color: var(--xv-green-400); }
.xv-ins-checked time { font-variant-numeric: tabular-nums; }
.xv-ins-ahead .xv-page-head__lead { max-width: 52ch; }
.xv-ins-byline { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: clamp(22px, 2.4vw, 30px) 0 0; padding: 0; color: rgba(242, 241, 236, .74); font-size: var(--xv-size-small); font-variant-numeric: tabular-nums; }
.xv-ins-byline li { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; }
.xv-ins-byline a { color: var(--xv-bone-100); text-decoration: underline; text-decoration-color: rgba(242, 241, 236, .4); text-underline-offset: .2em; display: inline-block; padding-block: 4px; }
.xv-ins-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.xv-ins-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(242, 241, 236, .22); color: var(--xv-bone-100); font-size: var(--xv-size-small); font-weight: 500; text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease; }
.xv-ins-tags a:focus-visible { outline: 3px solid var(--xv-green-400); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .xv-ins-tags a:hover { background: rgba(242, 241, 236, .08); border-color: rgba(242, 241, 236, .42); }
  .xv-ins-byline a:hover { text-decoration-color: currentColor; }
}

/* ============================================================ 5 article body */
.xv-article--solo { grid-template-columns: minmax(0, 1fr) !important; }
.xv-article--solo .xv-article__aside { display: none; }
.xv-ins-body { overflow-wrap: break-word; }
.xv-ins-body > h2 { margin-top: clamp(2.2em, 4vw, 2.8em); text-wrap: balance; }
.xv-ins-body > h2:first-child { margin-top: 0; }
/* question headings: the heading asks, the first paragraph answers (answer first, J04) */
.xv-ins-body > h2.xv-q { padding-top: clamp(22px, 2.4vw, 30px); border-top: 1px solid rgba(10, 13, 12, .14); }
.xv-ins-body > h2.xv-q:first-child { padding-top: 0; border-top: 0; }
.xv-ins-body > h2 + p { margin-top: .7em; color: var(--xv-text); font-size: clamp(1.1875rem, 1.1rem + .3vw, 1.3125rem); line-height: 1.55; }
.xv-ins-body h3 { margin-top: 1.8em; }
.xv-ins-body ul { list-style: disc; }
.xv-ins-body ol { list-style: decimal; }
.xv-ins-body :is(ul, ol) li::marker { color: var(--xv-green-700); font-weight: 500; }
.xv-ins-body ol { font-variant-numeric: tabular-nums; }
.xv-ins-body figure { margin: 1.6em 0 0; }
.xv-ins-body img { max-width: 100%; height: auto; border-radius: 18px; }
.xv-ins-body figcaption { margin-top: 10px; color: var(--xv-text-muted); font-size: var(--xv-size-small); }
.xv-ins-body .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.xv-prose.xv-ins-body table { width: 100%; border-collapse: collapse; font-size: var(--xv-size-body); line-height: 1.45; font-variant-numeric: tabular-nums; }
.xv-prose.xv-ins-body :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid rgba(10, 13, 12, .14); text-align: left; vertical-align: top; }
.xv-prose.xv-ins-body thead th { background: var(--xv-bone-200); color: var(--xv-text); font-weight: 500; }
.xv-ins-body pre { margin-top: 1.4em; padding: 18px 20px; border-radius: 16px; background: var(--xv-ink-950); color: var(--xv-bone-100); font: 500 .9375rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; tab-size: 2; }
.xv-ins-body :not(pre) > code { padding: .1em .35em; border-radius: 6px; background: rgba(10, 13, 12, .07); font: 500 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.xv-ins-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid rgba(10, 13, 12, .14); }

/* ============================================================ 6 "Questions people ask" (block pattern xerovi/questions-people-ask) */
.xv-prose .xv-questions { margin-top: clamp(48px, 6vw, 80px); padding: clamp(26px, 3.6vw, 48px); border-radius: 26px; background: #fff; box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 18px 48px -26px rgba(10, 13, 12, .28); }
.xv-prose .xv-questions > h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }
.xv-prose .xv-questions > h2 + p { font-size: var(--xv-size-body-long); color: var(--xv-text-soft); }
.xv-prose .xv-questions > h3 { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(10, 13, 12, .12); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); font-weight: 500; line-height: 1.3; letter-spacing: -.012em; }
.xv-prose .xv-questions > h2 + h3 { margin-top: 22px; }
.xv-prose .xv-questions > h3 + * { margin-top: .5em; }
.xv-prose .xv-questions > p { color: var(--xv-text-soft); }

/* ============================================================ 7 related articles and services */
.xv-ins-related { border-top: 1px solid rgba(10, 13, 12, .1); }
.xv-ins-related__grid { display: grid; gap: clamp(40px, 5vw, 72px); }
.xv-ins-related .xv-ins-h2 { margin-bottom: 18px; }
@media (min-width: 1000px) {
  .xv-ins-related__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; }
  .xv-ins-related__grid--solo { grid-template-columns: minmax(0, 1fr); }
}
.xv-ins-services { min-width: 0; }
.xv-ins:not(.xv-ins-related) .xv-ins-services { margin-top: clamp(48px, 6vw, 80px); max-width: 640px; }
.xv-ins-services .xv-ins-h2 { margin-bottom: 18px; }
.xv-ins-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(10, 13, 12, .14); }
.xv-ins-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid rgba(10, 13, 12, .14); color: var(--xv-text); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); font-weight: 500; line-height: 1.3; text-decoration: none; }
.xv-ins-link .xv-icon { flex: none; width: 16px; height: 16px; color: var(--xv-green-700); transition: transform 220ms var(--rv-ease, ease); }
.xv-ins-link:focus-visible { outline: 3px solid var(--xv-accent); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .xv-ins-link:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
  .xv-ins-link:hover .xv-icon { transform: translateX(var(--xv-move-nudge, 3px)); }
}

/* ============================================================ 8 phone */
/* touch: every control outside running text at least 44 px tall (the site's target rule) */
@media (pointer: coarse) {
  .xv-ins-item__type, .xv-ins-tags a, .xv-ins-type__list a, .xv-ins-type__h a { min-height: 44px; display: inline-flex; align-items: center; }
  .xv-ins-type__list a { display: flex; }
}
@media (max-width: 640px) {
  .xv-ins-item__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "sum" "meta"; padding: 22px 0 24px; }
  .xv-ins-item__go { display: none; }
  .xv-ins-item--lead .xv-ins-item__in { padding-top: 0; }
  .xv-ins-checked { border-radius: 14px; }
  .xv-prose .xv-questions { margin-inline: calc(-1 * clamp(4px, 1vw, 8px)); border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .xv-ins-item__go, .xv-ins-topic__a, .xv-ins-topic__a > .xv-icon, .xv-ins-link .xv-icon { transition: none; }
}
