/*
 * Site overrides: Jennifer's site-wide rules (CTA buttons, homepage hero colour,
 * hidden header/footer links, article width, popup and HubSpot form styles).
 *
 * Origin: live Additional CSS (Customizer), custom_css post 117 for veriv-theme
 * on shepleysmith-juhtw.wpcomstaging.com, pulled 2026-10-01
 * (4800 bytes, md5 767b87edd1d119525ace53ea4384788b). It was moved here byte for
 * byte. Since then only the popup rules (.pum-*, .veriv-popup-*) changed: the
 * 2026-10-02 mobile fix for the CLOSE button, marked by comments in that section.
 *
 * Edit here, not in the Customizer. inc/setup.php prints this file at wp_head
 * priority 101, the slot core uses for Additional CSS, so it loads after every
 * theme and block stylesheet and wins the cascade exactly as it did on live.
 * Bump VERIV_VERSION in functions.php when you change it (cache busting).
 */
/* Veriv — paste into Appearance → Customize → Additional CSS */

/* Buttons: every CTA on the site */
.v-cta{min-height:52px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 26px!important;border-radius:10px!important;font-family:'Open Sans',sans-serif!important;font-size:16px!important;font-weight:600!important;line-height:1!important;text-decoration:none!important}
.v-cta--mint{background:#79f2ae!important;color:#012842!important}
.v-cta--mint:hover{background:#1fc978!important;color:#012842!important}
.v-cta--green,.v-cta--primary{background:#007549!important;color:#fff!important}
.v-cta--green:hover,.v-cta--primary:hover{background:#005c39!important;color:#fff!important}
.v-cta--outline{border:1.5px solid rgba(255,255,255,.6)!important;color:#fff!important;background:transparent!important}
.v-cta--outline:hover{background:#fff!important;color:#012842!important}
.v-cta--navy-outline{border:1.5px solid #012842!important;color:#012842!important;background:transparent!important}
.v-cta--navy-outline:hover{background:#012842!important;color:#fff!important}

/* Homepage hero video: approved colour and overlay */
.v-hm__video,.v-hm__poster{filter:saturate(1.34) contrast(1.08)!important}
.v-hm__veil{background:linear-gradient(100deg,rgba(1,40,66,.985) 0%,rgba(1,40,66,.96) 50%,rgba(1,40,66,.84) 72%,rgba(1,40,66,.3) 88%,rgba(1,40,66,.02) 100%)!important}
@media (max-width:899.98px){.v-hm__veil{background:linear-gradient(150deg,rgba(1,40,66,.985) 0%,rgba(1,40,66,.95) 55%,rgba(1,40,66,.86) 78%,rgba(1,40,66,.5) 100%)!important}}
@keyframes vflow{from{stroke-dashoffset:0}to{stroke-dashoffset:-36}} 
footer a[href*="/accessibility"] { display: none !important; }
header a[href*="/login"], header a[href$="/contact"], header a[href$="/contact/"] { display: none !important; }
.v-art, .v-post-back {
  max-width: 900px !important;
}
.v-art > *, .v-post-back > * {
  max-width: 720px;
}
.v-head__brand { overflow: visible !important; }
.v-head__former {
  white-space: nowrap !important;
  overflow: visible !important;
  padding-right: 4px;
}
/* ---------- Veriv: popup + HubSpot form ---------- */
.pum-overlay { background: rgba(1, 40, 66, .72) !important; }
.pum-container {
	border-radius: 16px !important;
	border: 0 !important;
	box-shadow: 0 24px 60px rgba(1, 40, 66, .28) !important;
	padding: 0 !important;
	overflow: hidden;
}
.pum-content { padding: clamp(24px, 4vw, 44px) !important; }
.pum-close {
	background: transparent !important;
	color: #012842 !important;
	font: 600 13px/1 'Ruda', sans-serif !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	box-shadow: none !important;
	min-width: 44px; min-height: 44px;
	top: 12px !important; right: 12px !important;
}
.pum-close:hover { color: #007549 !important; }

/* Header block */
.veriv-popup-head { background: #012842; margin: calc(-1 * clamp(24px, 4vw, 44px)); margin-bottom: 28px; padding: clamp(28px, 4vw, 44px); }
.veriv-popup-head p.eyebrow { margin: 0 0 12px; font: 500 12px/1 'Ruda', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #79f2ae; }
.veriv-popup-head h2 { margin: 0 0 12px; font: 800 clamp(24px, 3vw, 32px)/1.15 'Ruda', sans-serif; color: #fff; }
.veriv-popup-head p.lead { margin: 0; font: 400 16px/1.6 'Open Sans', sans-serif; color: rgba(255, 255, 255, .88); }

/* Close button fix, 2026-10-01 (git, not Customizer; proven in wordpress/qa-fixtures/popup/).
   1. Popup Maker's reset (.pum-content+.pum-close{min-height:0;min-width:0}) beat the 44px
      minimums above, so the button was 52x29. An invisible ::after makes the tap area 44px
      tall without moving a pixel.
   2. Below 1024px the white strip above the header (.pum-content top padding, kept because
      Popup Maker's .pum-content>:first-child{margin-top:0} cancels the header's negative top
      margin) is 24-41px, thinner than the label, so navy CLOSE sat half on the navy header.
      There, run the header to the top edge and show CLOSE in white (mint on hover and focus),
      and keep a longer eyebrow from running under CLOSE. 1024px and wider are unchanged. */
.pum-container .pum-content + .pum-close::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
@media (max-width: 1023.98px) {
	.pum-container .pum-content > .veriv-popup-head:first-child { margin-top: calc(-1 * clamp(24px, 4vw, 44px)); }
	.veriv-popup-head p.eyebrow { padding-inline-end: 48px; }
	/* White CLOSE only where the popup starts with the navy .veriv-popup-head (popup 258). A popup without it
	   (for example 490, the form alone) keeps the dark CLOSE on its white background. */
	.pum-container:has(> .pum-content > .veriv-popup-head:first-child) .pum-content + .pum-close { color: #fff !important; }
	.pum-container:has(> .pum-content > .veriv-popup-head:first-child) .pum-content + .pum-close:hover { color: #79f2ae !important; }
	.pum-container:has(> .pum-content > .veriv-popup-head:first-child) .pum-content + .pum-close:focus-visible { outline-color: #79f2ae; }
}

/* HubSpot form */
.pum-content .hs-form, .pum-content .hs-form * { font-family: 'Open Sans', sans-serif; }
.pum-content .hs-form .hs-richtext p { font: 400 15px/1.6 'Open Sans', sans-serif !important; color: #4a6478 !important; }
.pum-content .hs-form .hs-richtext a { color: #007549 !important; font-weight: 600; }
.pum-content .hs-form label { font: 600 14.5px/1.4 'Open Sans', sans-serif !important; color: #012842 !important; }
.pum-content .hs-form .hs-input {
	min-height: 48px !important;
	border: 1.5px solid rgba(1, 40, 66, .22) !important;
	border-radius: 10px !important;
	background: #fff !important;
	font-size: 16px !important;
	color: #012842 !important;
	padding: 10px 14px !important;
}
.pum-content .hs-form .hs-input:focus { outline: 3px solid #007549 !important; outline-offset: 1px; border-color: #007549 !important; }
.pum-content .hs-form .hs-error-msg, .pum-content .hs-form .hs-error-msgs label { color: #b3261e !important; font-weight: 600 !important; }
.pum-content .hs-form .hs-button, .pum-content .hs-form input[type="submit"] {
	min-height: 52px !important;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #007549 !important;
	color: #fff !important;
	font: 600 16px/1 'Open Sans', sans-serif !important;
	cursor: pointer;
}
.pum-content .hs-form .hs-button:hover, .pum-content .hs-form input[type="submit"]:hover { background: #005c39 !important; }
/* Tap targets and focus rings found by the QA run against veriv.com on 2026-10-06.
   Phones and tablets only (up to 1024px), so the desktop layout does not move. Standalone links get a 44px hit area. */
@media (max-width: 1024px) {
	main#main > nav > div > a,
	.v-vgrid__group-link,
	.v-net h4 > a,
	main#main a[href*="security-compliance"]:not([class]),
	main#main a.popmake-490:not(.v-vgrid__btn):not(.vgs-btn),
	main#main a:not([class])[href="/contact"],
	main#main section > div > div:nth-of-type(3) > a:only-child:not([class]),
	.v-post-hero__eyebrow a,
	.sd-content ul li a.sd-button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		min-width: 44px;
	}
}
/* Focus ring on the legal pages' "related policies" links: mint, so it reads on the navy hero. */
.vlp-hero .vlp-meta a:focus-visible { outline: 2px solid #79f2ae; outline-offset: 2px; }

/* Tablet and phone sweep, 2026-10-07.
   1. Platform hub: the connector lines must not cross the caption. */
@media (max-width: 999px) {
	.v-net .v-hub { padding: 22px 0; }
	.v-net .v-hub::before, .v-net .v-hub::after { height: 16px; }
}
/* 2. A grid of three cards on a tablet makes a row of two and a row of one. Let the third card fill its row. */
@media (min-width: 561px) and (max-width: 760px) {
	main [style*="display:grid"][style*="auto-fit"] > :nth-child(3):last-child,
	.v-tiers > :nth-child(3):last-child,
	.v-tier__grid > :nth-child(3):last-child,
	.v-map__offices > :nth-child(3):last-child {
		grid-column: 1 / -1;
	}
}
/* 3. Three figures sit in one row on a tablet. */
@media (min-width: 561px) and (max-width: 999px) {
	.v-stats__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 4. Small caps labels stay readable. */
.v-rf__request-eyebrow, .v-toc__title, main .vlp-toc .vlp-toc-label, main [style*="font:700 11px"] { font-size: 12px !important; }
/* Legal pages: a long web address in the text must wrap, not push the page sideways on a phone. */
.vlp-main a, .vlp-main p, .vlp-main li { overflow-wrap: anywhere; }

/* Phone header (2026-11-19). The logo, the Get started button and the menu button did not fit in one row below 430px,
   so the buttons dropped under a very large logo. These tokens and sizes make them fit from 360px up. */
@media (max-width: 479.98px) {
	body { --v-head-h: 80px; --v-logo-head: 44px; --v-gap-head: 10px; --v-gap-util: 8px; }
	.v-head__former { margin-left: 32px; margin-top: -8px; font-size: 12px; }
	.v-head__cta { padding: 0 14px; }
	.v-head__burger { width: 44px; height: 44px; }
}
