/* =====================================================================
   DrugsGeek Magazine
   1. Tokens and base      6. Archives, search, 404   11. Article components (.dgx-*)
   2. Layout               7. Articles                12. Small screens
   3. Disclosure + header  8. Pages, A-Z, compare     13. Motion and print
   4. Navigation           9. Comments, pagination
   5. Cards and homepage  10. Footer
   ===================================================================== */

/* 1. Tokens and base ------------------------------------------------- */
:root {
	--ink: #16324f;          /* headings, primary buttons: 13.1:1 on white */
	--text: #263238;         /* body: 13.2:1 */
	--muted: #5f6b73;        /* meta: 5.5:1 */
	--brand: #0b6e55;        /* links, labels: 6.2:1 */
	--brand-dark: #085241;
	--mint: #eaf6f2;
	--bg: #f8fafc;
	--card: #ffffff;
	--line: #dce6e2;
	--amber: #8a5a00;
	--amber-soft: #fdf4e3;
	--red: #a3261c;
	--red-soft: #fdeeec;
	--blue: #1f5a96;
	--blue-soft: #eaf1fb;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(22, 50, 79, .06), 0 8px 24px -16px rgba(22, 50, 79, .25);
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--header-h: 64px;
	--container: 1200px;
	--narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 18px/1.7 var(--font);
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; overflow: visible; white-space: normal;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none;
}

/* 2. Layout ---------------------------------------------------------- */
.dgm-container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.dgm-container--narrow { width: min(var(--narrow), 100% - 40px); }
.dgm-main { display: block; min-height: 50vh; }
.dgm-section { padding-block: 48px; }
.dgm-section + .dgm-section { padding-top: 8px; }

.dgm-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
.dgm-section__head h2 { margin: 0; }
.dgm-section__head p { margin: 0; color: var(--muted); font-size: 1rem; flex: 1 1 320px; }
.dgm-more { margin-left: auto; font-weight: 650; font-size: .95rem; white-space: nowrap; }
.dgm-more::after { content: " \2192"; }

.dgm-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .dgm-grid--3, .dgm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dgm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dgm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dgm-label {
	display: inline-block;
	font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
	color: var(--brand); text-decoration: none; margin-bottom: 6px;
	padding-block: 4px; /* 24px minimum target height (WCAG 2.2) */
}
.dgm-label:hover { text-decoration: underline; }
.dgm-eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }

/* 3. Disclosure bar and header ------------------------------------- */
.dgm-disclosure {
	background: var(--mint);
	color: var(--ink);
	font-size: 13px; line-height: 1.4;
	padding: 7px 0;
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.dgm-disclosure a { color: var(--ink); font-weight: 650; margin-left: 6px; }

.dgm-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.admin-bar .dgm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dgm-header { top: 0; } }

.dgm-header__inner {
	display: flex; align-items: stretch; gap: 20px;
	height: var(--header-h);
}

.dgm-logo {
	display: inline-flex; align-items: center; gap: 9px;
	text-decoration: none; color: var(--ink); flex: 0 0 auto;
	font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em;
}
.dgm-logo b { color: var(--brand); font-weight: 800; }
.dgm-logo__mark {
	width: 28px; height: 28px; border-radius: 8px; background: var(--brand); position: relative; flex: 0 0 auto;
}
.dgm-logo__mark::before, .dgm-logo__mark::after {
	content: ""; position: absolute; background: #fff; border-radius: 2px;
	left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.dgm-logo__mark::before { width: 14px; height: 4px; }
.dgm-logo__mark::after { width: 4px; height: 14px; }

.dgm-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.dgm-header__about { font-size: .95rem; font-weight: 650; color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.dgm-header__about:hover { background: var(--mint); color: var(--ink); }

.dgm-searchpop { position: relative; }
.dgm-searchpop > summary {
	list-style: none; cursor: pointer;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink);
}
.dgm-searchpop > summary::-webkit-details-marker { display: none; }
.dgm-searchpop > summary:hover, .dgm-searchpop[open] > summary { background: var(--mint); }
.dgm-searchpop__panel {
	position: absolute; right: 0; top: calc(100% + 10px); width: min(420px, 86vw);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; z-index: 70;
}

.dgm-menu-btn {
	display: none; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
	background: #fff; color: var(--ink); font: 650 .95rem var(--font); cursor: pointer;
}
.dgm-menu-btn__bars, .dgm-menu-btn__bars::before, .dgm-menu-btn__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.dgm-menu-btn__bars::before { position: absolute; top: -6px; }
.dgm-menu-btn__bars::after { position: absolute; top: 6px; }

/* Search form (shared) */
.dgm-search { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.dgm-search input[type="search"] {
	flex: 1 1 auto; width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px;
	border: 1px solid #b9c9c3; border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 1rem;
}
.dgm-search button {
	min-height: 46px; padding: 0 18px; border: 0; border-radius: 10px;
	background: var(--ink); color: #fff; font: 650 .95rem var(--font); cursor: pointer;
}
.dgm-search button:hover { background: #0e2238; }

/* 4. Navigation ------------------------------------------------------ */
.dgm-nav { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.dgm-nav__list { display: flex; align-items: stretch; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.dgm-nav__item { display: flex; align-items: center; }
.dgm-nav__link {
	display: inline-flex; align-items: center; padding: 8px 6px 8px 10px; border-radius: 8px;
	color: var(--ink); font-size: .95rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.dgm-nav__item.is-current > .dgm-nav__link,
.dgm-nav__link:hover { background: var(--mint); color: var(--ink); }
.dgm-nav__toggle {
	width: 24px; height: 34px; margin-left: 0; padding: 0; border: 0; border-radius: 6px; /* 24px target, no overlap with the link */
	background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.dgm-nav__toggle::before {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .15s ease;
}
.dgm-nav__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.dgm-nav__toggle:hover { color: var(--ink); background: var(--mint); }

.dgm-nav__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	box-shadow: 0 24px 40px -24px rgba(22, 50, 79, .35);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .2s;
}
.dgm-nav__panel-inner {
	width: min(var(--container), 100% - 40px); margin-inline: auto; padding: 24px 0 26px;
	display: grid; gap: 8px 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.dgm-nav__heading { margin: 0 0 8px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.dgm-nav__heading a { color: var(--brand); text-decoration: none; }
.dgm-nav__col ul { list-style: none; margin: 0 0 10px; padding: 0; columns: 1; }
.dgm-nav__col li { margin: 0; break-inside: avoid; }
.dgm-nav__col li a {
	display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 8px;
	color: var(--text); font-size: .93rem; line-height: 1.4; text-decoration: none;
}
.dgm-nav__col li a:hover { background: var(--mint); color: var(--ink); }
.dgm-nav__all { font-size: .9rem; font-weight: 650; }
.dgm-nav__all::after { content: " \2192"; }
.dgm-nav__mobile-extra { display: none; }

@media (min-width: 1240px) {
	.dgm-nav__item:hover > .dgm-nav__panel,
	.dgm-nav__item:focus-within > .dgm-nav__panel,
	.dgm-nav__toggle[aria-expanded="true"] + .dgm-nav__panel {
		opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
	}
	.dgm-nav__panel-inner:has(> .dgm-nav__col:only-child) { grid-template-columns: minmax(0, 1fr); }
	.dgm-nav__col:only-child ul { columns: 2; column-gap: 40px; }
}

/* Drawer below 1240px */
@media (max-width: 1239px) {
	.dgm-menu-btn { display: inline-flex; }
	.dgm-header__about { display: none; }
	.dgm-searchpop { display: none; }
	.dgm-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(22, 50, 79, .35);
		flex-direction: column; padding: 8px 20px 24px;
	}
	.dgm-nav-open .dgm-nav { display: flex; }
	.dgm-nav-open body { overflow: hidden; }
	.dgm-nav__list { flex-direction: column; margin: 0; gap: 0; }
	.dgm-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.dgm-nav__link { flex: 1 1 auto; padding: 14px 4px; font-size: 1.05rem; border-radius: 0; }
	.dgm-nav__link:hover { background: transparent; text-decoration: underline; }
	.dgm-nav__toggle { width: 48px; height: 48px; margin: 0; }
	.dgm-nav__panel {
		position: static; flex: 1 0 100%; display: none; opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; transition: none;
	}
	.dgm-nav__toggle[aria-expanded="true"] + .dgm-nav__panel { display: block; }
	.dgm-nav__panel-inner { width: 100%; padding: 0 0 14px 12px; grid-template-columns: 1fr; gap: 6px; border-left: 2px solid var(--line); }
	.dgm-nav__mobile-extra { display: block; padding-top: 18px; }
	.dgm-nav__mobile-extra p { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-weight: 650; }
}

/* 5. Cards and homepage -------------------------------------------- */
.dgm-card {
	display: flex; flex-direction: column;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow);
}
.dgm-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dgm-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 16px; }
.dgm-card__title { font-size: 1.12rem; line-height: 1.35; margin: 0 0 8px; }
.dgm-card__title a { color: var(--ink); text-decoration: none; }
.dgm-card__title a:hover { color: var(--brand); text-decoration: underline; }
.dgm-card__excerpt { color: var(--muted); font-size: .97rem; line-height: 1.55; margin: 0 0 12px; }
.dgm-card__meta { margin: auto 0 0; color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; }

.dgm-card--lead.no-image { background: var(--ink); border-color: var(--ink); }
.dgm-card--lead.no-image .dgm-card__body { padding: 36px 38px 32px; justify-content: center; min-height: 100%; }
.dgm-card--lead.no-image .dgm-card__body::before { content: ""; width: 56px; height: 4px; border-radius: 2px; background: #5fd3a8; margin-bottom: 22px; }
.dgm-card--lead.no-image .dgm-card__meta { margin-top: 14px; }
.dgm-card--lead.no-image .dgm-label { color: #b7f0dc; }
.dgm-card--lead.no-image .dgm-card__title a,
.dgm-card--lead.no-image .dgm-card__title { color: #fff; }
.dgm-card--lead.no-image .dgm-card__excerpt { color: #d8e3ee; }
.dgm-card--lead.no-image .dgm-card__meta { color: #c3d2e1; }
.dgm-card--lead .dgm-card__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; }
.dgm-card--lead .dgm-card__excerpt { font-size: 1.08rem; }
.dgm-card--side .dgm-card__excerpt { font-size: .92rem; }
.dgm-card--lead.has-image .dgm-card__media img { aspect-ratio: 16 / 9; }
.dgm-card--side.has-image { flex-direction: row; }
/* The image fills the media box without sizing it; a percentage-height image here fed back into the grid row and stretched the cards to thousands of pixels. */
.dgm-card--side.has-image .dgm-card__media { flex: 0 0 38%; position: relative; min-height: 132px; }
.dgm-card--side.has-image .dgm-card__media img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.dgm-card--side.has-image .dgm-card__excerpt { display: none; }
@media (max-width: 420px) {
	.dgm-card--side.has-image { flex-direction: column; }
	/* flex-basis must not be a percentage here: in a column it resolves against the card height and the image spills over the text. */
	.dgm-card--side.has-image .dgm-card__media { flex: 0 0 auto; position: static; min-height: 0; }
	.dgm-card--side.has-image .dgm-card__media img { position: static; height: auto; aspect-ratio: 16 / 10; }
}

.dgm-statement { background: #fff; border-bottom: 1px solid var(--line); }
.dgm-statement__inner { padding-block: 32px 30px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 56px; }
.dgm-statement h1 { font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.4rem); max-width: 26ch; margin-bottom: 10px; }
.dgm-statement__text { max-width: 60ch; color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (min-width: 960px) {
	.dgm-statement__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
	.dgm-statement .dgm-search { justify-self: end; }
}

.dgm-featured { padding-top: 32px; }
.dgm-featured__grid { display: grid; gap: 20px; }
.dgm-featured__side { display: grid; gap: 20px; }
@media (min-width: 900px) {
	.dgm-featured__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
	.dgm-featured__lead .dgm-card { height: 100%; }
}

.dgm-topics__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .dgm-topics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dgm-topics__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dgm-topic a {
	display: flex; flex-direction: column; gap: 6px; height: 100%;
	padding: 18px 20px; border-radius: var(--radius); background: var(--mint); border: 1px solid #cfe7de;
	color: var(--text); text-decoration: none;
}
.dgm-topic a:hover { border-color: var(--brand); background: #e0f1ea; }
.dgm-topic__name { color: var(--ink); font-weight: 750; font-size: 1.08rem; }
.dgm-topic__desc { font-size: .9rem; line-height: 1.45; color: #3c4a52; }
.dgm-topic__count { margin-top: auto; font-size: .82rem; font-weight: 650; color: var(--brand); }
.dgm-topic.has-image a { padding: 0; overflow: hidden; }
.dgm-topic__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dgm-topic.has-image a > span { padding-inline: 20px; }
.dgm-topic.has-image .dgm-topic__name { padding-top: 12px; }
.dgm-topic.has-image .dgm-topic__count { padding-bottom: 16px; }

.dgm-trust { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.dgm-trust.dgm-section { padding-top: 44px; }
.dgm-trust__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dgm-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dgm-trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dgm-trust__grid a {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px;
	border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: .93rem;
}
.dgm-trust__grid a:hover { border-color: var(--brand); }
.dgm-trust__grid strong { color: var(--ink); font-size: 1rem; }

/* 6. Archives, search, 404 ----------------------------------------- */
.dgm-archive-header { background: #fff; border-bottom: 1px solid var(--line); padding-block: 30px 28px; }
.dgm-archive-header h1 { margin-bottom: 10px; }
.dgm-archive-header__desc { max-width: 68ch; color: var(--muted); font-size: 1.06rem; }
.dgm-archive-header__desc p:last-child { margin-bottom: 0; }
.dgm-archive-header__count { margin: 10px 0 0; font-size: .9rem; font-weight: 650; color: var(--brand); }
.dgm-archive-header .dgm-search { margin-top: 16px; }

.dgm-crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.dgm-crumbs p { margin: 0; }
.dgm-crumbs a { color: var(--muted); }
.dgm-crumbs .separator { margin: 0 6px; }

.dgm-topic-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dgm-topic-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--mint); text-decoration: none; font-weight: 650; color: var(--ink); }

/* 7. Articles -------------------------------------------------------- */
.dgm-article__header { padding-top: 30px; }
.dgm-article__title { margin-bottom: 14px; }
.dgm-article__dek { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); line-height: 1.5; color: #34444d; margin-bottom: 18px; }
.dgm-byline {
	display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 16px;
	font-size: .92rem; color: var(--muted);
}
.dgm-byline > span + span::before { content: "\00B7"; margin: 0 9px; }
.dgm-byline a { color: var(--ink); font-weight: 650; }
.dgm-medical-note {
	margin: 0 0 8px; padding: 12px 16px; border-left: 3px solid var(--brand); background: #fff;
	font-size: .9rem; line-height: 1.5; color: #3c4a52; border-radius: 0 8px 8px 0;
}
.dgm-medical-note a { font-weight: 650; margin-left: 4px; }
.dgm-article__image { margin: 22px auto 0; width: min(960px, 100% - 40px); }
.dgm-article__image img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dgm-article__image figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: right; }
.dgm-article__image figcaption a { color: var(--muted); }
.dgm-article__body { padding-top: 28px; }
.dgm-article__footer { padding-bottom: 8px; }
.dgm-process { margin: 40px 0 0; padding: 22px 24px; background: var(--mint); border-radius: var(--radius); font-size: .97rem; }
.dgm-process h2 { font-size: 1.15rem; margin-bottom: 8px; }
.dgm-process__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-weight: 650; }
.dgm-related { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }

/* 8. Pages, A-Z, compare -------------------------------------------- */
.dgm-page__header { padding-top: 30px; }
.dgm-page__body { padding-block: 10px 56px; }
.dgm-prose h2 { margin-top: 1.6em; }
.dgm-prose ul, .dgm-prose ol { padding-left: 1.3em; }
.dgm-prose li { margin-bottom: .4em; }

.dgm-az-letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dgm-az-letters a {
	display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 8px;
	background: var(--mint); font-weight: 750; text-decoration: none; color: var(--ink);
}
.dgm-az { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .dgm-az { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dgm-az__group h2 { font-size: 1.4rem; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.dgm-az__group ul { list-style: none; padding: 0; margin: 0 0 24px; }
.dgm-az__group li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; }
.dgm-az__group li a { font-weight: 600; text-decoration: none; color: var(--ink); }
.dgm-az__group li a:hover { color: var(--brand); text-decoration: underline; }
.dgm-az__group li span { font-size: .82rem; color: var(--muted); }

/* 9. Comments and pagination ---------------------------------------- */
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 650; color: var(--ink);
}
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.dgm-comments { margin: 32px 0 48px; }
.dgm-comments__list { padding-left: 0; list-style: none; }
.dgm-comments textarea, .dgm-comments input[type="text"], .dgm-comments input[type="email"], .dgm-comments input[type="url"] {
	width: 100%; padding: 10px 12px; border: 1px solid #b9c9c3; border-radius: 10px; font: inherit;
}
.dgm-comments .submit { min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 650 1rem var(--font); cursor: pointer; }

/* 10. Footer ---------------------------------------------------------- */
.dgm-footer { background: var(--ink); color: #d8e3ee; margin-top: 56px; font-size: .95rem; }
.dgm-footer__grid { display: grid; gap: 32px; padding-block: 48px 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .dgm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.dgm-footer .dgm-logo { color: #fff; margin-bottom: 14px; }
.dgm-footer .dgm-logo b { color: #8fe0c2; }
.dgm-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.dgm-footer ul { list-style: none; margin: 0; padding: 0; }
.dgm-footer li { margin-bottom: 8px; }
.dgm-footer a { color: #d8e3ee; text-decoration: none; }
.dgm-footer a:hover { color: #fff; text-decoration: underline; }
.dgm-footer__disclosure { color: #b7c7d6; font-size: .88rem; }
.dgm-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 18px 26px; font-size: .85rem; color: #b7c7d6; }
.dgm-footer__bottom p { margin: 0; }

/* 11. Article components (.dgx-*) ------------------------------------ */
.dgx-wrap {
	--dgx-ink: var(--ink); --dgx-body: var(--text); --dgx-muted: var(--muted); --dgx-line: var(--line);
	--dgx-green: var(--brand); --dgx-green-soft: var(--mint);
	--dgx-amber: var(--amber); --dgx-amber-soft: var(--amber-soft);
	--dgx-red: var(--red); --dgx-red-soft: var(--red-soft);
	--dgx-blue: var(--blue); --dgx-blue-soft: var(--blue-soft);
	font-family: var(--font); color: var(--dgx-body); line-height: 1.75; font-size: 18px;
}
.dgx-wrap h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); line-height: 1.25; margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.dgx-wrap h3 { font-size: 1.3rem; line-height: 1.3; margin: 1.6em 0 .5em; }
.dgx-wrap p { margin: 0 0 1.05em; }
.dgx-wrap ul, .dgx-wrap ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.dgx-wrap li { margin-bottom: .5em; }
.dgx-hero { background: var(--ink); border-radius: 16px; padding: 32px 30px; color: #fff; margin: 0 0 30px; }
.dgx-hero p { color: #eef3f8; font-size: 1.25rem; line-height: 1.45; margin: 0; }
.dgx-kicker { display: inline-block; background: rgba(255, 255, 255, .14); padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.dgx-answer { background: var(--mint); border-left: 5px solid var(--brand); border-radius: 0 14px 14px 0; padding: 24px 28px; margin: 0 0 32px; }
.dgx-answer strong { color: var(--brand-dark); }
.dgx-lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; margin-bottom: 8px; }
.dgx-answer .dgx-lbl { color: var(--brand); }
.dgx-toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; margin: 0 0 36px; }
.dgx-toc .dgx-lbl { color: var(--muted); margin-bottom: 12px; }
.dgx-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.dgx-toc li { margin-bottom: 7px; break-inside: avoid; font-size: .97rem; }
.dgx-toc a { color: var(--blue); }
.dgx-note { border-radius: 13px; padding: 20px 24px; margin: 24px 0; border-left: 4px solid; }
.dgx-tip { background: var(--mint); border-color: var(--brand); }
.dgx-warn { background: var(--amber-soft); border-color: var(--amber); }
.dgx-stop { background: var(--red-soft); border-color: var(--red); }
.dgx-info { background: var(--blue-soft); border-color: var(--blue); }
.dgx-note p:last-child { margin-bottom: 0; }
.dgx-note .dgx-h { font-weight: 750; margin-bottom: 6px; display: block; font-size: 1rem; }
.dgx-tip .dgx-h { color: var(--brand-dark); }
.dgx-warn .dgx-h { color: var(--amber); }
.dgx-stop .dgx-h { color: var(--red); }
.dgx-info .dgx-h { color: var(--blue); }
.dgx-wrap blockquote { border: 0; border-left: 4px solid var(--brand); background: #fff; margin: 28px 0; padding: 16px 24px; font-size: 1.15rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.dgx-tbl-wrap { overflow-x: auto; margin: 26px 0; border-radius: 13px; border: 1px solid var(--line); background: #fff; }
.dgx-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; margin: 0; }
.dgx-wrap thead th { background: var(--ink); color: #fff; text-align: left; padding: 13px 16px; font-weight: 650; font-size: 13.5px; letter-spacing: .03em; }
.dgx-wrap tbody td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.dgx-wrap tbody tr:nth-child(even) { background: #f7faf9; }
.dgx-yes { color: var(--brand-dark); font-weight: 700; }
.dgx-no { color: var(--red); font-weight: 700; }
.dgx-mid { color: var(--amber); font-weight: 700; }
.dgx-pbox { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 34px 0; background: #fff; box-shadow: var(--shadow); }
.dgx-pbox-top { background: var(--brand); padding: 9px 22px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dgx-pbox-body { padding: 26px 28px; }
.dgx-pbox h3 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; }
.dgx-pbox-sub { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.dgx-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.dgx-spec { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.dgx-spec-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.dgx-spec-v { font-size: 15px; font-weight: 650; color: var(--ink); }
.dgx-plist { list-style: none; padding: 0; margin: 18px 0; }
.dgx-plist li { padding-left: 28px; position: relative; margin-bottom: 10px; font-size: 16px; }
.dgx-plist li::before { content: "\2713"; position: absolute; left: 0; top: 2px; color: var(--brand-dark); font-weight: 800; background: var(--mint); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.dgx-buy {
	display: block; background: #ffa41c; color: #0f1111 !important; text-align: center;
	padding: 15px 24px; border-radius: 12px; font-weight: 800; font-size: 1.05rem; text-decoration: none !important;
	border: 1px solid #e3901a; margin-top: 6px;
}
.dgx-buy:hover { background: #fa9a0a; color: #0f1111 !important; }
.dgx-buy-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.dgx-check { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; margin: 32px 0; }
.dgx-check ul { list-style: none; padding: 0; margin: 0; }
.dgx-check li { padding-left: 32px; position: relative; margin-bottom: 12px; font-size: 16.5px; }
.dgx-check li::before { content: "\2610"; position: absolute; left: 0; top: -1px; font-size: 19px; color: var(--brand); }
.dgx-faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 11px; background: #fff; overflow: hidden; }
.dgx-faq summary { padding: 16px 22px; font-weight: 650; cursor: pointer; font-size: 1.02rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; }
.dgx-faq summary::-webkit-details-marker { display: none; }
.dgx-faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; flex-shrink: 0; }
.dgx-faq details[open] summary::after { content: "\2212"; }
.dgx-faq details[open] summary { background: var(--bg); }
.dgx-faq .dgx-a { padding: 0 22px 20px; color: var(--dgx-body); }
.dgx-sources { font-size: 15px; line-height: 1.55; padding-left: 1.4em; margin: 0 0 1.5em; }
.dgx-sources li { margin-bottom: .65em; overflow-wrap: anywhere; }
.dgx-sources a { color: var(--blue); }
.dgx-disc { background: #fff; border: 1px dashed #c9d6d1; border-radius: 12px; padding: 18px 22px; margin: 36px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 12. Small screens ------------------------------------------------- */
@media (max-width: 640px) {
	body { font-size: 17px; }
	.dgm-container, .dgm-container--narrow { width: calc(100% - 32px); }
	.dgm-section { padding-block: 36px; }
	.dgm-disclosure { font-size: 12px; padding: 6px 0; }
	.dgm-logo { font-size: 1.2rem; }
	.dgm-statement__inner { padding-block: 28px 26px; }
	.dgm-statement__text { font-size: 1.03rem; }
	.dgm-search { flex-wrap: nowrap; }
	.dgm-card--lead.no-image .dgm-card__body { padding: 24px 22px 22px; }
	.dgm-more { margin-left: 0; }
	.dgx-wrap { font-size: 17px; }
	.dgx-hero { padding: 24px 20px; }
	.dgx-toc { padding: 20px; }
	.dgx-toc ol { columns: 1; }
	.dgx-pbox-body { padding: 20px 18px; }
	.dgx-answer { padding: 20px; }
	.dgx-check { padding: 20px; }

	/* Tables become labelled rows instead of scrolling sideways. */
	.dgx-tbl-wrap { overflow: visible; border: 0; background: transparent; }
	.dgx-wrap table, .dgx-wrap tbody, .dgx-wrap tr, .dgx-wrap td { display: block; width: 100%; }
	.dgx-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.dgx-wrap tbody tr { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 6px 0; background: #fff; }
	.dgx-wrap tbody tr:nth-child(even) { background: #fff; }
	.dgx-wrap tbody td { border: 0; padding: 6px 14px; }
	.dgx-wrap tbody td[data-label]::before {
		content: attr(data-label); display: block;
		font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px;
	}
}

/* 13. Motion and print ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.dgm-disclosure, .dgm-header, .dgm-related, .dgm-footer, .dgm-process, .dgx-buy { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.dgm-container, .dgm-container--narrow { width: 100%; }
}
