/* Greativa Content Locker — resource library, resource page, gate */

.grv-cl,
.grv-cl-gate,
.grv-cl-dl,
.grv-cl-preview {
	--o: #f55516;
	--o-dk: #d9440b;
	--o-soft: #fff1ea;
	--navy: #082a5e;
	--ink: #0b1d3a;
	--text: #3d4f6b;
	--muted: #6b7a90;
	--line: #e7e2db;
	--paper: #fbf8f4;
	--r: 20px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--serif: 'Instrument Serif', Georgia, serif;
	--sans: 'Lexend Deca', sans-serif;
}

body.grv-cl-page { background: #fbf8f4; }
.grv-cl { background: var(--paper); color: var(--text); font-family: 'Hind', sans-serif; overflow: clip; }
.grv-cl *, .grv-cl-gate *, .grv-cl *::before, .grv-cl *::after { box-sizing: border-box; }
.grv-cl-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.grv-cl-i { width: 18px; height: 18px; flex: none; }
.grv-cl em, .grv-cl-gate em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.grv-cl a:focus-visible, .grv-cl button:focus-visible, .grv-cl-gate input:focus-visible, .grv-cl-gate button:focus-visible { outline: 3px solid var(--o); outline-offset: 3px; }

.grv-cl-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--o);
}
.grv-cl-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.grv-cl-kicker.is-light { color: #ffb08f; }

/* ---------- hero ---------- */
.grv-cl-hero { position: relative; isolation: isolate; padding: 56px 0 88px; background: var(--navy); color: #fff; }
.grv-cl-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(circle at 92% 8%, rgba(245, 85, 22, .5), transparent 38%),
		radial-gradient(circle at -5% 110%, rgba(19, 99, 223, .5), transparent 45%),
		radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 24px 24px;
}
.grv-cl-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--paper); border-radius: 40px 40px 0 0; }
.grv-cl-hero.is-single { padding-bottom: 96px; }
.grv-cl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }

.grv-cl-trail {
	display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px;
	padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
	font: 500 13px/1.3 var(--sans); color: rgba(255, 255, 255, .6);
}
.grv-cl-trail a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.grv-cl-trail a:hover { color: #fff; }
.grv-cl-trail [aria-current] { color: #fff; }

.grv-cl-h1 { margin: 16px 0 0; font: 600 clamp(36px, 5vw, 62px)/1.04 var(--sans); letter-spacing: -.03em; color: #fff; }
.grv-cl-h1.is-single { max-width: 860px; font-size: clamp(32px, 4.2vw, 52px); }
.grv-cl-h1 em { color: #ffb08f; font-size: 1.1em; }
.grv-cl-lead { max-width: 600px; margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, .78); }

.grv-cl-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 36px 0 0; }
.grv-cl-stats div { display: flex; flex-direction: column-reverse; }
.grv-cl-stats dt { font: 600 30px/1 var(--sans); color: #fff; }
.grv-cl-stats dd { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- gate (sign-up box) ---------- */
.grv-cl-gate {
	position: relative; margin: 32px 0; padding: 36px 32px 30px; text-align: center;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: 0 30px 60px -30px rgba(8, 42, 94, .3); color: var(--text); font-family: 'Hind', sans-serif;
}
.grv-cl-gate::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(90deg, var(--o), #ffb08f); }
.grv-cl-gate-badge {
	display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px;
	border-radius: 16px; background: var(--o-soft); color: var(--o);
}
.grv-cl-gate-badge .grv-cl-i { width: 24px; height: 24px; }
.grv-cl-gate .grv-cl-kicker { justify-content: center; }
.grv-cl-gate .grv-cl-kicker::before { display: none; }
.grv-cl-gate-title { margin: 10px 0 0; font: 600 24px/1.25 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.grv-cl-gate-text { max-width: 460px; margin: 10px auto 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.grv-cl-form { max-width: 460px; margin: 22px auto 0; }
.grv-cl-row {
	display: flex; gap: 6px; padding: 5px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.grv-cl-row:focus-within { border-color: var(--o); box-shadow: 0 0 0 4px rgba(245, 85, 22, .12); }
.grv-cl-gate input[type=email] {
	flex: 1; min-width: 0; height: auto; margin: 0; padding: 10px 16px; border: 0; border-radius: 999px;
	background: transparent; color: var(--ink); font-size: 16px; outline: none; box-shadow: none;
}
.grv-cl-gate input[type=email]::placeholder { color: #9aa6b6; }
.grv-cl-gate button[type=submit] {
	flex: none; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--o); color: #fff;
	font: 600 15px/1.2 var(--sans); white-space: nowrap; cursor: pointer; transition: background .2s, transform .2s;
}
.grv-cl-gate button[type=submit]:hover { background: var(--o-dk); }
.grv-cl-gate button[type=submit]:active { transform: scale(.98); }
.grv-cl-gate button[type=submit]:disabled { opacity: .7; cursor: wait; }
.grv-cl-gate .grv-nl-msg { min-height: 1em; margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.grv-cl-gate .grv-nl-msg.is-ok { color: #15803d; }
.grv-cl-gate .grv-nl-msg.is-bad { color: #c2410c; }
.grv-cl-form.is-done .grv-cl-row { display: none; }
.grv-cl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px auto 0; max-width: 460px; }
.grv-cl-actions .grv-cl-btn { width: auto; flex: 1 1 160px; white-space: nowrap; padding: 14px 22px; font-size: 15px; }
.grv-cl-btn.is-ghost { background: #fff; color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.grv-cl-btn.is-ghost:hover { background: #fff; border-color: var(--o); color: var(--o) !important; }
.grv-cl-sidecard .grv-cl-actions { flex-direction: column; }
.grv-cl-sidecard .grv-cl-actions .grv-cl-btn { flex: none; width: 100%; }
.grv-cl-note { max-width: 420px; margin: 14px auto 0; line-height: 1.5; font-size: 13px; color: var(--muted); }
.grv-cl-gate.is-compact { margin: 0; padding: 30px 26px 24px; }
.grv-cl-gate.is-compact .grv-cl-gate-title { font-size: 22px; }
.grv-cl-gate.is-compact .grv-cl-gate-text { font-size: 15px; }
.grv-cl-gate.is-done .grv-cl-gate-badge { background: #dcfce7; color: #15803d; }

/* Locked article preview fades into the gate. */
.grv-cl-preview { position: relative; }
.grv-cl-preview > :last-child { -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }

/* ---------- download button ---------- */
.grv-cl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	padding: 16px 24px; border-radius: 999px; background: var(--o); color: #fff !important;
	font: 600 16px/1.2 var(--sans); text-decoration: none; transition: background .2s, transform .2s var(--ease), box-shadow .2s;
	box-shadow: 0 14px 30px -14px rgba(245, 85, 22, .8);
}
.grv-cl-btn:hover { background: var(--o-dk); transform: translateY(-2px); }
.grv-cl-unlocked { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #15803d; }
.grv-cl-unlocked .grv-cl-i { width: 16px; height: 16px; }
.grv-cl-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }

/* Library page "pass" (already unlocked). */
.grv-cl-pass {
	padding: 34px 30px; border-radius: var(--r); text-align: center;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
}
.grv-cl-pass-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(74, 222, 128, .15); color: #4ade80; }
.grv-cl-pass-icon .grv-cl-i { width: 26px; height: 26px; }
.grv-cl-pass-title { margin: 16px 0 0; font: 600 22px/1.2 var(--sans); color: #fff; }
.grv-cl-pass-text { margin: 8px 0 0; color: rgba(255, 255, 255, .72); }

/* ---------- library ---------- */
.grv-cl-lib { padding: 24px 0 110px; }
.grv-cl-lib.is-related { padding-top: 0; }
.grv-cl-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.grv-cl-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px;
	background: #fff; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.grv-cl-chip span { padding: 3px 7px; border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--muted); }
.grv-cl-chip:hover { border-color: var(--o); }
.grv-cl-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.grv-cl-chip.is-active span { background: rgba(255, 255, 255, .15); color: #fff; }

.grv-cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grv-cl-card {
	display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.grv-cl-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 28px 50px -28px rgba(8, 42, 94, .35); }
.grv-cl-card[hidden] { display: none; }
.grv-cl-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--o-soft); }
.grv-cl-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.grv-cl-card:hover .grv-cl-card-media img { transform: scale(1.04); }
.grv-cl-cover {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: radial-gradient(circle at 80% 10%, rgba(245, 85, 22, .25), transparent 50%), linear-gradient(140deg, #0b2f66, var(--navy));
	color: rgba(255, 255, 255, .14);
}
.grv-cl-cover > .grv-cl-i { width: 120px; height: 120px; stroke-width: 1; }
.grv-cl-cover-ext { position: absolute; font: 700 30px/1 var(--sans); letter-spacing: .06em; color: #fff; }
.grv-cl-access {
	position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
	border-radius: 999px; font: 600 12px/1 var(--sans); backdrop-filter: blur(6px);
}
.grv-cl-access .grv-cl-i { width: 14px; height: 14px; }
.grv-cl-access.is-locked { background: rgba(11, 29, 58, .78); color: #fff; }
.grv-cl-access.is-open { background: rgba(255, 255, 255, .92); color: #15803d; }
.grv-cl-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 22px; }
.grv-cl-card-type { margin: 0 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--o); }
.grv-cl-card-title { margin: 0; font: 600 20px/1.3 var(--sans); letter-spacing: -.01em; }
.grv-cl-card-title a { color: var(--ink); text-decoration: none; }
.grv-cl-card-title a:hover { color: var(--o); }
.grv-cl-card-text { margin: 10px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.grv-cl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.grv-cl-card-format { font-size: 13.5px; color: var(--muted); }
.grv-cl-card-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); color: var(--o); text-decoration: none; }
.grv-cl-card-link .grv-cl-i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.grv-cl-card:hover .grv-cl-card-link .grv-cl-i { transform: translateX(4px); }

.grv-cl-empty-state { max-width: 520px; margin: 30px auto; padding: 50px 30px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r); }
.grv-cl-empty-state > span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--o-soft); color: var(--o); }
.grv-cl-empty-state h2 { margin: 16px 0 0; font: 600 22px/1.3 var(--sans); color: var(--ink); }
.grv-cl-empty-state p { margin: 10px 0 0; }
.grv-cl-empty-state .grv-cl-btn { width: auto; margin-top: 10px; }

.grv-cl-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.grv-cl-h2 { margin: 0; font: 600 clamp(26px, 3vw, 36px)/1.15 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.grv-cl-h2 em { color: var(--o); font-size: 1.12em; }
.grv-cl-more { display: inline-flex; align-items: center; gap: 6px; font: 600 15px/1 var(--sans); color: var(--o); text-decoration: none; white-space: nowrap; }

/* ---------- single resource ---------- */
.grv-cl-detail { padding: 8px 0 90px; }
.grv-cl-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.grv-cl-detail-grid { margin-top: -64px; position: relative; }
.grv-cl-content { padding-top: 64px; }
.grv-cl-figure { margin: 0 0 32px; overflow: hidden; border-radius: var(--r); }
.grv-cl-figure img { display: block; width: 100%; height: auto; }
.grv-cl-prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.grv-cl-prose h2, .grv-cl-prose h3 { margin: 1.6em 0 .5em; font-family: var(--sans); color: var(--ink); letter-spacing: -.015em; }
.grv-cl-prose ul { padding-left: 1.2em; }
.grv-cl-prose li { margin: .35em 0; }
.grv-cl-prose > :first-child { margin-top: 0; }
.grv-cl-side { position: sticky; top: 110px; scroll-margin-top: 110px; }
.grv-cl-sidecard { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); box-shadow: 0 30px 60px -30px rgba(8, 42, 94, .35); }
.grv-cl-meta { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.grv-cl-meta-ext { display: grid; place-items: center; width: 58px; height: 68px; flex: none; border-radius: 10px 18px 10px 10px; background: var(--navy); color: #fff; font: 700 14px/1 var(--sans); letter-spacing: .05em; }
.grv-cl-meta-format { margin: 0; font: 600 16px/1.3 var(--sans); color: var(--ink); }
.grv-cl-meta-access { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.grv-cl-meta-access .grv-cl-i { width: 15px; height: 15px; color: var(--o); }
.grv-cl-sidecard .grv-cl-gate { margin: 0; padding: 0; border: 0; box-shadow: none; }
.grv-cl-sidecard .grv-cl-gate::before, .grv-cl-sidecard .grv-cl-gate-badge { display: none; }
.grv-cl-sidecard .grv-cl-gate-title { margin-top: 10px; font-size: 20px; }
.grv-cl-sidecard .grv-cl-gate-text { font-size: 15px; }
.grv-cl-sidecard .grv-cl-row { flex-direction: column; padding: 0; border: 0; border-radius: 0; gap: 10px; box-shadow: none; }
.grv-cl-sidecard .grv-cl-gate input[type=email] { padding: 14px 18px; border: 1.5px solid var(--line); text-align: center; }
.grv-cl-sidecard .grv-cl-gate input[type=email]:focus { border-color: var(--o); box-shadow: 0 0 0 4px rgba(245, 85, 22, .12); }
.grv-cl-sidecard .grv-cl-gate button[type=submit] { padding: 15px 22px; font-size: 16px; }

/* [grv_resource id=""] inline box */
.grv-cl-inline { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 32px 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.grv-cl-inline h3 { margin: 10px 0 4px; font: 600 20px/1.3 var(--sans); }
.grv-cl-inline h3 a { color: var(--ink); text-decoration: none; }
.grv-cl-inline .grv-cl-gate { margin: 0; padding: 22px 18px 18px; }
.grv-cl-inline .grv-cl-gate-badge { display: none; }
.grv-cl > .grv-cl-grid { margin: 32px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.grv-cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grv-cl-detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
}
@media (max-width: 860px) {
	.grv-cl-hero-grid, .grv-cl-detail-grid, .grv-cl-inline { grid-template-columns: 1fr; }
	.grv-cl-hero-grid { gap: 36px; }
	.grv-cl-detail-grid { margin-top: -56px; }
	.grv-cl-side { position: static; order: -1; }
	.grv-cl-content { padding-top: 0; }
}
@media (max-width: 640px) {
	.grv-cl-wrap { padding: 0 16px; }
	.grv-cl-hero { padding: 32px 0 72px; }
	.grv-cl-grid { grid-template-columns: 1fr; gap: 20px; }
	.grv-cl-stats { gap: 24px; }
	.grv-cl-gate { padding: 28px 18px 22px; }
	.grv-cl-row { flex-direction: column; padding: 0; border: 0; gap: 10px; }
	.grv-cl-row:focus-within { box-shadow: none; }
	.grv-cl-gate input[type=email] { padding: 13px 16px; border: 1.5px solid var(--line); text-align: center; }
	.grv-cl-gate button[type=submit] { padding: 14px 20px; }
	.grv-cl-section-head { flex-direction: column; align-items: start; }
	.grv-cl-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 26px; padding: 0 16px 4px; scrollbar-width: none; }
	.grv-cl-chip { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	.grv-cl *, .grv-cl-gate * { transition: none !important; }
}
