.ag-certificate-page {
	--content-width: 66rem;
	background: #f5f5f7;
	color: #1d1d1f;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ag-certificate-page a {
	text-decoration: none;
}

.ag-certificate-page svg {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.cert-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid #e5e5eb;
	background: rgb(255 255 255 / 92%);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.cert-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 70px;
}

.cert-brand img {
	display: block;
	width: 140px;
	height: auto;
}

.cert-languages {
	display: flex;
	gap: 6px;
}

.cert-languages a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 12px;
	color: #6e6e73;
	font-size: 13px;
}

.cert-languages a[aria-current="page"] {
	background: #edf3fc;
	color: #0071e3;
}

.cert-main {
	flex: 1;
	padding-block: 48px;
}

.cert-intro {
	margin-bottom: 30px;
}

.cert-symbol,
.cert-small-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 17px;
	background: #eaf3ee;
	color: #548467;
}

.cert-symbol {
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
}

.cert-symbol svg {
	width: 30px;
	height: 30px;
}

.cert-eyebrow {
	margin: 0 0 9px;
	color: #6e6e73;
	font-size: 13px;
	font-weight: 500;
}

.ag-certificate-page h1 {
	max-width: none;
	margin: 0;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: -0.045em;
	overflow-wrap: normal;
}

.cert-subtitle {
	margin: 16px 0 0;
	color: #6e6e73;
	font-size: 16px;
}

.cert-status {
	margin-bottom: 24px;
	padding: 28px;
	border: 1px solid;
	border-radius: 26px;
}

.cert-status-valid {
	background: #edf7ef;
	border-color: #d6e8db;
	color: #315f40;
}

.cert-status-revoked {
	background: #fff0ef;
	border-color: #edcecb;
	color: #963e38;
}

.cert-status-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.cert-status-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}

.cert-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.cert-number-label {
	font-size: 12px;
}

.cert-status h2 {
	margin: 18px 0 12px;
	font-size: clamp(23px, 4vw, 34px);
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
	scroll-margin-top: 100px;
}

.cert-status-description,
.cert-reason,
.cert-revoked-date {
	max-width: none;
	margin: 8px 0 0;
	font-size: 14px;
}

.cert-reason {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.cert-card {
	min-width: 0;
	padding: 28px;
	border: 1px solid #e5e5eb;
	border-radius: 25px;
	background: #fff;
	box-shadow: 0 7px 24px rgb(0 0 0 / 4%);
}

.cert-artwork {
	scroll-margin-top: 95px;
}

.cert-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.cert-small-icon {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 13px;
	background: #edf3fc;
	color: #5c83b9;
}

.cert-section-heading h2,
.cert-info-grid h2 {
	margin: 0;
	font-size: 23px;
	line-height: 1.25;
	letter-spacing: -0.025em;
}

/* Prikaz koji vraća certificate_render_data() */

.cert-record {
	min-width: 0;
	overflow-wrap: anywhere;
}

.cert-record img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-block: 18px;
	border-radius: 16px;
}

.cert-record dl {
	display: grid;
	grid-template-columns: minmax(130px, 1fr) minmax(0, 2fr);
	gap: 0;
	max-width: none;
	margin: 0;
}

.cert-record dl > dt,
.cert-record dl > dd {
	margin: 0;
	padding: 15px;
	border-bottom: 1px solid #e9e9ef;
}

.cert-record dl > dt {
	background: #f5f7fa;
	color: #6e6e73;
	font-size: 13px;
	font-weight: 500;
}

.cert-record dl > dd {
	color: #303037;
	font-size: 15px;
}

.cert-record p {
	max-width: none;
}

.cert-record code {
	font-size: 12px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cert-record table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.cert-record th,
.cert-record td {
	padding: 14px;
	border-bottom: 1px solid #e9e9ef;
	text-align: start;
}

.cert-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 24px;
}

.cert-issuer {
	background: #f0f5fc;
	border-color: #dfe7f2;
}

.cert-basis {
	background: #fff6eb;
	border-color: #efe1ce;
}

.cert-info-grid p {
	font-size: 14px;
}

.cert-muted {
	color: #6e6e73;
}

.cert-issued-date {
	display: grid;
	gap: 6px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #dbe3ee;
	font-size: 13px;
}

.cert-issued-date span {
	color: #6e6e73;
}

.cert-issued-date strong {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.cert-notice {
	margin-top: 24px;
	padding: 24px;
	border: 1px solid #e4e4ea;
	border-radius: 22px;
	background: #eeeef2;
}

.cert-notice h2 {
	margin: 0 0 10px;
	font-size: 17px;
}

.cert-notice p {
	max-width: none;
	margin: 0;
	color: #606069;
	font-size: 13px;
	line-height: 1.75;
}

.cert-footer {
	padding-block: 28px;
	border-top: 1px solid #e0e0e7;
}

.cert-footer .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

.cert-footer-logo {
	width: auto;
	height: 63px;
	max-width: 100%;
	object-fit: contain;
}

.cert-footer p {
	margin: 0;
	color: #6e6e73;
	font-size: 12px;
}

.cert-mobile-nav {
	display: none;
}

@media (max-width: 650px) {
	.ag-certificate-page {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}

	.cert-header-inner {
		min-height: 62px;
	}

	.cert-brand img {
		width: 135px;
	}

	.cert-main {
		padding-block: 28px;
	}

	.cert-status,
	.cert-card {
		padding: 20px;
		border-radius: 22px;
	}

	.cert-info-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.cert-section-heading h2 {
		font-size: 20px;
	}

	.cert-record dl {
		display: block;
	}

	.cert-record dl > dt {
		padding: 12px 12px 4px;
		border-bottom: 0;
		border-radius: 10px 10px 0 0;
	}

	.cert-record dl > dd {
		margin-bottom: 10px;
		padding: 4px 12px 12px;
		border-bottom: 0;
		border-radius: 0 0 10px 10px;
		background: #f5f7fa;
	}

	.cert-mobile-nav {
		position: fixed;
		inset: auto 0 0;
		z-index: 110;
		display: flex;
		justify-content: space-around;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid #e1e1e8;
		background: rgb(255 255 255 / 94%);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
	}

	.cert-mobile-nav a {
		display: flex;
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-height: 48px;
		color: #606069;
		font-size: 11px;
	}

	.cert-mobile-nav a:nth-child(2) {
		color: #528368;
	}

	.cert-mobile-nav a:nth-child(3) {
		color: #5c83b9;
	}

	.cert-mobile-nav svg {
		width: 22px;
		height: 22px;
	}
}
.ag-certificate-page .cert-back {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	margin-bottom: 22px;
	color: #62626a;
	font-size: 14px;
	text-decoration: none;
}

.ag-certificate-page .cert-back svg {
	width: 20px;
	height: 20px;
}

.ag-certificate-page .cert-back:hover {
	color: #0071e3;
	text-decoration: none;
}