/* Intellectual Property, from the "Intellectual Property · Desktop" / "· Phone" boards.
   Loads after home.css and clinical-studies.css (hero layout, search box). */

/* ---------- Hero image ---------- */

body .ivp-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 704 / 621; box-shadow: 0 40px 80px -46px rgba(0, 64, 110, .6); }
body .ivp-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
body .ivp-img:hover img { transform: scale(1.04); }
/* The number leads; same light card and hover as the QPD hero stats. */
body .ivp-stat { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 18px; margin-top: 32px; padding: 14px 40px 18px 28px; border-radius: 26px; background: linear-gradient(160deg, #FFFFFF 0%, #F4FAFE 100%); border: 1px solid var(--iv-line); box-shadow: 0 24px 48px -36px rgba(0, 64, 110, .4); transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .45s ease; }
body .ivp-stat::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 173, 227, .22), rgba(37, 173, 227, 0) 70%); opacity: 0; transform: scale(.7); transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
body .ivp-stat::after { content: ""; position: absolute; left: 28px; bottom: 0; width: 36px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--iv-accent), #7CCBEF); transition: width .55s cubic-bezier(.22, 1, .36, 1); }
body .ivp-stat:hover { transform: translateY(-5px); border-color: var(--iv-line-2); box-shadow: 0 32px 56px -34px rgba(0, 64, 110, .5); }
body .ivp-stat:hover::before { opacity: 1; transform: scale(1); }
body .ivp-stat:hover::after { width: calc(100% - 56px); }
body .ivp-stat b { display: inline-block; position: relative; font-size: 96px; line-height: 1; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #25ADE3 0%, #0A5A96 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
body .ivp-stat:hover b { transform: translateY(-3px) scale(1.03); }
body .ivp-stat span { position: relative; font-size: 18px; line-height: 1.4; font-weight: 400; color: var(--iv-slate); }

/* ---------- Families ---------- */

body .ivp-families { background: var(--iv-white); }
body .ivp-fam-inner { padding-top: 96px; padding-bottom: 40px; }
body .ivp h2 { font-size: 48px; line-height: 1.08; font-weight: 600; color: var(--iv-navy); }
body .ivp-fam { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; align-items: start; }
body .ivp-fam-card { position: relative; display: flex; gap: 18px; padding: 26px; border-radius: 22px; background: var(--iv-white); border: 1px solid var(--iv-line); transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
body .ivp-fam-card:hover { border-color: var(--iv-line-2); box-shadow: 0 22px 44px -30px rgba(0, 64, 110, .45); transform: translateY(-2px); }
body .ivp-fam-n { flex-shrink: 0; min-width: 40px; font-size: 28px; line-height: 1; font-weight: 700; color: var(--iv-line-2); transition: color .3s ease; }
body .ivp-fam-card:hover .ivp-fam-n, body .ivp-fam-card.is-open .ivp-fam-n { color: var(--iv-navy); }
body .ivp-fam-body { min-width: 0; }
body .ivp-fam-body h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: normal; color: var(--iv-navy); }
body .ivp-fam-d { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--iv-text); }
body .ivp-fam-d :is(p, div) { margin: 0; }
body .ivp-fam-d p + p { margin-top: 10px; }
body .ivp-fam-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body .ivp-fam-full[hidden], body .ivp-fam-short[hidden] { display: none; }
body .ivp .ivp-fam-more,
body .ivp .ivp-fam-more:is(:hover, :focus) {
	margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer;
	font: 600 14px var(--iv-font); color: var(--iv-navy); text-transform: none; letter-spacing: normal;
}
body .ivp-fam-more svg { transition: transform .25s ease; }
body .ivp-fam-more[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---------- Coverage table ---------- */

body .ivp-coverage { background: var(--iv-white); }
body .ivp-cov-inner { padding-top: 72px; padding-bottom: 112px; }
body .ivp-cov-head { display: flex; flex-wrap: wrap; gap: 16px 56px; align-items: flex-end; }
body .ivp-cov-head h2 { flex: 1 1 420px; font-size: 40px; line-height: 1.1; }
body .ivp .ivp-cov-head p { flex: 1.3 1 480px; font-size: 16px; line-height: 1.7; color: var(--iv-text); }
body .ivp-tools { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body .ivp-pills { display: inline-flex; flex-wrap: wrap; gap: 8px; }
body .ivp .ivp-pill,
body .ivp .ivp-pill:focus {
	border: 1px solid var(--iv-line); background: var(--iv-white); color: var(--iv-slate); border-radius: 999px; padding: 0 16px; min-height: 42px;
	font: 500 14px var(--iv-font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: normal;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
body .ivp .ivp-pill:hover { border-color: var(--iv-navy); color: var(--iv-navy); background: var(--iv-white); }
body .ivp .ivp-pill.is-on, body .ivp .ivp-pill.is-on:is(:hover, :focus) { background: var(--iv-navy); border-color: var(--iv-navy); color: var(--iv-white); }
body .ivp .ivp-pill em { font-style: normal; font-size: 12px; opacity: .7; }
body .ivp-filters { display: flex; flex-wrap: wrap; gap: 10px; }
body .ivp .ivp-sel { height: 44px; border-radius: 12px; border: 1px solid var(--iv-line); background: var(--iv-white); padding: 0 14px; font: 14px var(--iv-font); color: var(--iv-slate); }
body .ivp .ivp-srch { height: 44px; min-width: 240px; }
body .ivp-tbl-wrap { margin-top: 20px; border: 1px solid var(--iv-line); border-radius: 20px; overflow: auto; max-height: 640px; background: var(--iv-white); }
body .ivp-tbl-wrap:focus-visible { outline: 3px solid var(--iv-accent); outline-offset: 3px; }
body .ivp .ivp-tbl { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 820px; }
body .ivp .ivp-tbl th { position: sticky; top: 0; z-index: 1; background: var(--iv-tint); color: var(--iv-navy); text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--iv-line); }
body .ivp .ivp-tbl td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--iv-tint); color: var(--iv-slate); white-space: nowrap; background: transparent; vertical-align: middle; }
body .ivp .ivp-tbl tbody tr:nth-child(odd) > td { background: transparent; }
body .ivp .ivp-tbl tr:hover td { background: #F6FAFD; }
body .ivp .ivp-tbl tr[hidden] { display: none; }
body .ivp .ivp-tbl td.ivp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
body .ivp-valid { display: block; margin-top: 2px; font-size: 11px; color: var(--iv-text); letter-spacing: .04em; }
body .ivp-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
body .ivp-st--Granted { background: var(--iv-navy); color: var(--iv-white); }
body .ivp-st--Pending { background: var(--iv-tint); color: var(--iv-navy); border: 1px solid var(--iv-line-2); }
body .ivp-st--Design { background: var(--iv-white); color: var(--iv-slate); border: 1px solid var(--iv-line); }
body .ivp .ivp-count { margin-top: 12px; font-size: 13px; color: var(--iv-text); }

/* ---------- Case study ---------- */

body .ivp-cs { background: var(--iv-white); }
body .ivp-case {
	max-width: 1240px; margin: 0 auto 96px; padding: 72px 56px; border-radius: 32px;
	background: linear-gradient(135deg, #EEF6FC 0%, #FFFFFF 70%); border: 1px solid var(--iv-line); box-shadow: 0 40px 80px -60px rgba(0, 64, 110, .45);
	display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center;
}
body .ivp .ivp-case img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; border-radius: 0; filter: drop-shadow(0 30px 40px rgba(0, 64, 110, .25)); transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
body .ivp-case:hover img { transform: translateY(-6px) rotate(-1deg); }
body .ivp-case h2 { font-size: 44px; }
body .ivp .ivp-case p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--iv-text); }
body .ivp .ivp-case p.ivp-case-lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--iv-slate); }
body .ivp .ivp-case p.ivp-case-kicker { font-weight: 600; color: var(--iv-navy); }
body .ivp .ivp-case .iv-cta { margin-top: 28px; }
body .ivp .ivp-case .iv-cta, body .ivp .ivp-case .iv-cta:hover { color: var(--iv-white); }

/* ---------- Breakpoints ---------- */

@media (max-width: 1300px) {
	body .ivp-cs { padding: 0 24px; }
}
@media (max-width: 900px) {
	body .ivp-fam, body .ivp-case { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body .ivp-fam-inner { padding-top: 56px; }
	body .ivp-cov-inner { padding-top: 48px; padding-bottom: 64px; }
	body .ivp h2, body .ivp-cov-head h2, body .ivp-case h2 { font-size: 28px; line-height: 1.12; }
	body .ivp-fam-card { padding: 20px; gap: 14px; }
	body .ivp .ivp-srch { min-width: 0; width: 100%; }
	body .ivp-filters { width: 100%; }
	body .ivp .ivp-sel { flex: 1; }
	body .ivp .ivp-tbl { min-width: 0; }
	body .ivp .ivp-tbl thead { display: none; }
	body .ivp .ivp-tbl tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--iv-line); }
	body .ivp .ivp-tbl td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; white-space: normal; text-align: right; }
	body .ivp .ivp-tbl td::before { content: attr(data-label); font: 500 12px var(--iv-font); color: var(--iv-text); text-align: left; }
	body .ivp-valid { display: inline; margin: 0 0 0 6px; }
	body .ivp-tbl-wrap { max-height: 720px; }
	body .ivp-cs { padding: 0 16px; }
	body .ivp-case { padding: 40px 20px; margin-bottom: 56px; border-radius: 24px; }
}

@media (max-width: 640px) {
	body .ivp-stat { gap: 14px; margin-top: 24px; padding: 12px 28px 16px 18px; border-radius: 22px; }
	body .ivp-stat::after { left: 18px; }
	body .ivp-stat:hover::after { width: calc(100% - 36px); }
	body .ivp-stat b { font-size: 64px; }
	body .ivp-stat span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	body .ivp-stat, body .ivp-stat *, body .ivp-stat::before, body .ivp-stat::after { transition: none !important; animation: none !important; }
}
