/* ============================================================
   compliance.css — loaded on /compliance and all child guides.
   ============================================================ */

/* ===== Compliance landing — 4-card grid ===== */
.comp-grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.comp-card {
	position: relative; padding: 32px 24px; border-radius: 20px; text-align: center;
	background: linear-gradient(180deg, rgba(15, 33, 30, .6), rgba(7, 17, 15, .6));
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--border-subtle);
	transition: all .4s cubic-bezier(.2, .8, .2, 1);
	overflow: hidden;
}
.comp-card::after {
	content: ""; position: absolute; inset: 0; opacity: 0;
	background: radial-gradient(circle at 50% 0%, rgba(103, 211, 204, .25), transparent 60%);
	transition: opacity .4s;
}
.comp-card:hover { transform: translateY(-8px); border-color: rgba(103, 211, 204, .4); }
.comp-card:hover::after { opacity: 1; }
.comp-shield {
	width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 18px;
	background: linear-gradient(135deg, rgba(103, 211, 204, .25), rgba(103, 211, 204, .05));
	border: 1px solid rgba(103, 211, 204, .4);
	display: grid; place-items: center;
	transition: transform .8s cubic-bezier(.2, .8, .2, 1);
	position: relative;
}
.comp-card:hover .comp-shield { transform: rotateY(360deg); }
.comp-shield svg { width: 36px; height: 36px; color: var(--accent-mid); }
.comp-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); position: relative; z-index: 1; }
.comp-card p { color: var(--text-soft); font-size: 13px; position: relative; z-index: 1; }

/* ===== Guides grid ===== */
.guides-section { padding: 100px 0; }
.guides-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.guide-card {
	position: relative; padding: 32px 28px; border-radius: 20px;
	background: linear-gradient(180deg, rgba(15, 33, 30, .6), rgba(7, 17, 15, .6));
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--border-subtle);
	display: flex; flex-direction: column;
	transition: all .4s cubic-bezier(.2, .8, .2, 1);
	overflow: hidden;
	color: inherit; text-decoration: none;
}
.guide-card::before {
	content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
	background: linear-gradient(135deg, rgba(103, 211, 204, .4), transparent 50%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .4s; pointer-events: none;
}
.guide-card:hover { transform: translateY(-6px); border-color: rgba(103, 211, 204, .4); }
.guide-card:hover::before { opacity: 1; }
.guide-card:hover .guide-arrow {
	transform: translate(4px, -4px);
	background: var(--gradient-1);
	color: var(--text-invert);
	border-color: var(--accent-mid);
}
.guide-icon {
	width: 56px; height: 56px; border-radius: 14px;
	background: linear-gradient(135deg, rgba(103, 211, 204, .25), rgba(103, 211, 204, .05));
	border: 1px solid rgba(103, 211, 204, .4);
	display: grid; place-items: center;
	margin-bottom: 20px; position: relative; z-index: 1;
}
.guide-icon svg { width: 28px; height: 28px; color: var(--accent-mid); }
.guide-tag {
	display: inline-block; align-self: flex-start;
	font-family: var(--mono); font-size: 10px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .14em;
	color: var(--accent-mid);
	padding: 4px 10px; border-radius: 100px;
	background: rgba(103, 211, 204, .08);
	border: 1px solid rgba(103, 211, 204, .25);
	margin-bottom: 14px; position: relative; z-index: 1;
}
.guide-card h3 {
	font-size: 18px; font-weight: 700; line-height: 1.3;
	color: var(--text-main); margin-bottom: 12px;
	letter-spacing: -.01em; position: relative; z-index: 1;
}
.guide-card p {
	font-size: 14px; line-height: 1.6; color: var(--text-soft);
	margin-bottom: 24px; flex-grow: 1; position: relative; z-index: 1;
}
.guide-meta {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 18px; border-top: 1px solid rgba(103, 211, 204, .1);
	position: relative; z-index: 1;
}
.guide-read {
	font-family: var(--mono); font-size: 11px;
	color: var(--text-muted);
	text-transform: uppercase; letter-spacing: .06em;
}
.guide-arrow {
	width: 36px; height: 36px; border-radius: 10px;
	border: 1px solid var(--border-subtle);
	background: rgba(103, 211, 204, .06);
	color: var(--accent-mid);
	display: grid; place-items: center;
	transition: all .3s ease;
}
.guide-arrow svg { width: 14px; height: 14px; }

/* ============================================================
   Individual guide page (child of /compliance)
   ============================================================ */
.guide-page { padding: 140px 0 100px; }
.guide-breadcrumb {
	font-family: var(--mono); font-size: 12px;
	color: var(--text-muted); margin-bottom: 30px;
	display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.guide-breadcrumb a { color: var(--text-muted); transition: color .25s ease; }
.guide-breadcrumb a:hover { color: var(--accent-mid); }
.guide-breadcrumb [aria-current] { color: var(--accent-mid); }

.guide-head {
	text-align: center; max-width: 820px; margin: 0 auto 50px;
	padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle);
}
.guide-head h1 {
	font-size: clamp(32px, 5vw, 52px); font-weight: 800;
	line-height: 1.15; letter-spacing: -.02em;
	margin-bottom: 18px; color: var(--text-main);
}
.guide-lead {
	font-size: 17px; color: var(--text-soft); line-height: 1.65;
	max-width: 680px; margin: 0 auto 24px;
}
.guide-meta-bar {
	display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.meta-pill {
	font-family: var(--mono); font-size: 11px; font-weight: 500;
	padding: 6px 12px; border-radius: 100px;
	background: rgba(103, 211, 204, .06);
	border: 1px solid var(--border-subtle);
	color: var(--text-muted);
}

/* Body — typography for the actual guide content */
.guide-body {
	max-width: 780px; margin: 0 auto;
	color: var(--text-soft); font-size: 16px; line-height: 1.8;
}
.guide-body h2 {
	font-size: clamp(22px, 2.6vw, 30px); font-weight: 700;
	color: var(--text-main); margin: 50px 0 20px;
	letter-spacing: -.01em; line-height: 1.25;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 {
	font-size: 19px; font-weight: 700;
	color: var(--text-main); margin: 36px 0 14px;
}
.guide-body p { margin-bottom: 18px; }
.guide-body a {
	color: var(--accent-mid);
	text-decoration: underline;
	text-decoration-color: rgba(103, 211, 204, .4);
	text-underline-offset: 3px;
}
.guide-body a:hover { text-decoration-color: var(--accent-mid); }
.guide-body ul, .guide-body ol { margin: 0 0 24px 22px; }
.guide-body li { margin-bottom: 8px; }
.guide-body blockquote {
	margin: 24px 0; padding: 20px 24px;
	border-left: 3px solid var(--accent-mid);
	background: rgba(103, 211, 204, .06);
	border-radius: 0 12px 12px 0;
	color: var(--text-soft); font-style: italic;
}
.guide-body code {
	font-family: var(--mono); font-size: 13px;
	background: rgba(103, 211, 204, .1);
	padding: 2px 7px; border-radius: 5px;
	color: var(--accent-light);
}
.guide-body pre {
	background: var(--bg-deep);
	padding: 20px 24px; border-radius: 14px;
	border: 1px solid var(--border-subtle);
	overflow-x: auto; margin: 24px 0;
}
.guide-body pre code { background: transparent; padding: 0; font-size: 13.5px; line-height: 1.7; }
.guide-body img { border-radius: 14px; margin: 24px 0; border: 1px solid var(--border-subtle); }
.guide-body table {
	width: 100%; border-collapse: collapse; margin: 24px 0;
	border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden;
}
.guide-body th, .guide-body td {
	padding: 12px 16px; text-align: left;
	border-bottom: 1px solid var(--border-subtle); font-size: 14px;
}
.guide-body th { background: rgba(103, 211, 204, .08); color: var(--text-main); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

.placeholder-banner {
	font-family: var(--mono); font-size: 13px;
	padding: 14px 18px; border-radius: 10px;
	background: rgba(255, 184, 77, .1);
	border: 1px dashed rgba(255, 184, 77, .4);
	color: var(--warning);
	margin-bottom: 36px !important;
}

/* ===== Sibling guides ===== */
.guide-siblings {
	max-width: 820px; margin: 70px auto 0;
	padding-top: 40px; border-top: 1px solid var(--border-subtle);
}
.guide-siblings h3 {
	font-family: var(--mono); font-size: 12px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .18em;
	color: var(--accent-mid); margin-bottom: 20px;
}
.sibling-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sibling-card {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 22px; border-radius: 14px;
	background: rgba(15, 33, 30, .5);
	border: 1px solid var(--border-subtle);
	transition: all .3s ease;
}
.sibling-card:hover { transform: translateX(2px); border-color: rgba(103, 211, 204, .4); background: rgba(15, 33, 30, .8); }
.sibling-card:hover .sibling-arrow { background: var(--gradient-1); color: var(--text-invert); border-color: var(--accent-mid); }
.sibling-tag { display: block; font-family: var(--mono); font-size: 10px; color: var(--accent-mid); margin-bottom: 4px; letter-spacing: .12em; }
.sibling-card h4 { font-size: 14px; color: var(--text-main); font-weight: 600; line-height: 1.35; flex: 1; }
.sibling-arrow {
	width: 32px; height: 32px; border-radius: 10px;
	border: 1px solid var(--border-subtle);
	background: rgba(103, 211, 204, .06); color: var(--accent-mid);
	display: grid; place-items: center; flex-shrink: 0;
	transition: all .3s ease;
}
.sibling-arrow svg { width: 13px; height: 13px; }

/* ===== Bottom CTA on guide pages ===== */
.guide-bottom-cta {
	max-width: 820px; margin: 60px auto 0;
	padding: 40px 32px; border-radius: 20px; text-align: center;
	background:
		radial-gradient(400px 200px at 50% 0%, rgba(103, 211, 204, .25), transparent 60%),
		linear-gradient(180deg, rgba(15, 33, 30, .8), rgba(7, 17, 15, .8));
	border: 1px solid rgba(103, 211, 204, .35);
}
.guide-bottom-cta h3 { font-size: 22px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.guide-bottom-cta p { color: var(--text-soft); margin-bottom: 22px; }

/* Responsive */
@media (max-width: 980px) {
	.comp-grid { grid-template-columns: repeat(2, 1fr); }
	.guides-grid { grid-template-columns: repeat(2, 1fr); }
	.sibling-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.comp-grid, .guides-grid { grid-template-columns: 1fr; }
	.guide-page { padding: 110px 0 70px; }
	.guide-bottom-cta { padding: 28px 22px; }
}
