/*
 * public-guide: the folded guide (template/_public/guide.php), the design fg2
 * of the guide round of /vps/free/ (2026-10-25). One white card exactly as
 * wide as the site's content: it is a plain block in the .container, like the
 * FAQ's columns, the boxes of free-7 and free-10 and the closing band, at
 * every width. In it the centred title and lead, the text and the tinted
 * foot with the call to action. The text takes the card's inner width
 * («هم‌عرض کارت»), or a centred column of about 75 characters a line
 * (.is-col, «ستون خوانا»).
 *
 * The fold: folded (the <details> of the foot not open, and no part of the
 * body the :target of the address), the chapters the template marks
 * hd-gd-w-off (wide screens) or hd-gd-m-off (phones) are hidden and the one
 * marked hd-gd-w-tz or hd-gd-m-tz is a teaser: its first blocks, clipped and
 * fading out. All of it is screen only, so print shows the whole text, and
 * it all hangs on :has(), so a browser without it shows the whole text and no
 * toggle. Nothing moves on hover; the toggle and the white button fill yellow
 * from where the mouse came in (the ripple of site.js), the blue button turns
 * a lighter blue. Printed with base.css (hidata_component_stylesheets()).
 * Sizes in rem, at the root of 14px of 1440 (13px from 1140, 12px from 992 to
 * 1139 and up to 390, 13px from 576 to 991, 14px from 391 to 575); the text
 * of the body in em of --gd-p.
 */

.hd-gd {
	--gd-p: 1.14rem;
	--gd-pad: 4.57rem;
	--gd-line: #DCE8F3;
	--gd-ring: #C7DBEE;
	--gd-text: #2F5677;
	--gd-mute: #3D6283;
	--gd-tint: #F5F9FD;
	padding-block: 5.71rem;
}

.hd-gd.is-white {
	background: #fff;
}

.hd-gd bdi {
	white-space: nowrap;
}

/* --- The card: the whole width of the container, no more, no less. */
.hd-gd .hd-gd-card {
	position: relative;
	border-radius: 2rem;
	background: #fff;
	box-shadow: 0 0 0 1px var(--gd-line), 0 2.14rem 4rem -3rem rgba(16, 63, 99, .55);
}

.hd-gd .hd-gd-in {
	padding: 4.29rem var(--gd-pad) 0;
}

.hd-gd .hd-gd-card.no-foot .hd-gd-in {
	padding-bottom: 3.43rem;
}

/* --- The head: title and lead, centred. */
.hd-gd .hd-gd-head {
	text-align: center;
}

.hd-gd .hd-gd-title {
	font-size: 2.43rem;
	line-height: 1.55;
	font-weight: 900;
	color: var(--hd-navy);
	text-wrap: balance;
}

.hd-gd .hd-gd-lead {
	max-width: 51.43rem;
	margin: 1.29rem auto 0;
	font-size: 1.21rem;
	line-height: 2;
	font-weight: 500;
	color: var(--gd-text);
	text-wrap: balance;
}

.hd-gd .hd-gd-lead > * + * {
	margin-top: .8em;
}

/* --- The text. */
.hd-gd .hd-gd-body {
	margin-top: 3.14rem;
	padding-top: 3.14rem;
	border-top: 1px solid var(--gd-line);
	font-size: var(--gd-p);
	counter-reset: gd-c;
}

.hd-gd .hd-gd-body:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.hd-gd.is-col .hd-gd-body {
	max-width: 35em;
	margin-inline: auto;
}

.hd-gd .hd-gd-ch {
	counter-increment: gd-c;
}

.hd-gd .hd-gd-intro + .hd-gd-ch,
.hd-gd .hd-gd-ch + .hd-gd-ch {
	margin-top: 2.75em;
}

.hd-gd .hd-gd-ch > h3:first-child {
	position: relative;
	margin: 0 0 .57em;
	padding-inline-start: 2.29em;
	font-size: 1.31em;
	line-height: 1.6;
	font-weight: 900;
	color: var(--hd-navy);
	text-wrap: balance;
}

/* The yellow number of the chapter, beside the first line of its title. */
.hd-gd .hd-gd-ch > h3:first-child::before {
	content: counter(gd-c);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.13em;
	height: 2.1em;
	border-radius: .69em;
	background: var(--hd-yellow);
	font-size: .76em;
	line-height: 1;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-gd:lang(fa) .hd-gd-ch > h3:first-child::before {
	content: counter(gd-c, persian);
}

/* Opened from the keyboard, the focus comes to the title of the chapter the
   reading goes on with (components.js): a ring like the toggle's. */
.hd-gd .hd-gd-ch > h3:first-child:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: .45em;
	border-radius: .5em;
}

.hd-gd .hd-gd-body :is(h3, h4) {
	margin: 1.5em 0 .5em;
	font-size: 1.13em;
	line-height: 1.7;
	font-weight: 800;
	color: var(--hd-navy);
	text-wrap: balance;
}

.hd-gd .hd-gd-body p {
	margin: 0 0 .875em;
	line-height: 2;
	font-weight: 500;
	color: var(--gd-text);
	text-wrap: pretty;
}

.hd-gd .hd-gd-body :is(strong, b),
.hd-gd .hd-gd-lead :is(strong, b) {
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-gd .hd-gd-intro > :first-child {
	margin-top: 0;
}

.hd-gd .hd-gd-intro > :last-child,
.hd-gd .hd-gd-ch > :last-child {
	margin-bottom: 0;
}

/* Links of the text: blue, underlined in a light blue that darkens on hover. */
.hd-gd .hd-gd-body a:not(.cg-card),
.hd-gd .hd-gd-lead a {
	font-weight: 800;
	color: var(--hd-blue);
	text-decoration: underline;
	text-decoration-color: #A9C6EC;
	text-decoration-thickness: 1.5px;
	text-underline-offset: .38em;
	transition: text-decoration-color .2s ease;
}

.hd-gd .hd-gd-body a:not(.cg-card):hover,
.hd-gd .hd-gd-lead a:hover {
	text-decoration-color: currentColor;
}

.hd-gd .hd-gd-body a:focus-visible,
.hd-gd .hd-gd-lead a:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* A list of use cases (ul.cg-usecases, or the divs of older texts): rows in
   a tinted panel, a blue check in a white circle before each; a leading
   <strong> on a line of its own. */
.hd-gd .hd-gd-body .cg-usecases,
.hd-gd .hd-gd-body ol {
	margin: 1em 0 1.15em;
	padding: .25em 1.4em;
	border-radius: 1.25em;
	background: var(--gd-tint);
	box-shadow: inset 0 0 0 1px var(--gd-line);
	list-style: none;
}

.hd-gd .hd-gd-body .cg-usecases > :is(li, div),
.hd-gd .hd-gd-body ol > li {
	position: relative;
	padding-block: .97em;
	padding-inline-start: 2.45em;
	font-size: .97em;
	line-height: 1.95;
	font-weight: 500;
	color: var(--gd-text);
}

.hd-gd .hd-gd-body .cg-usecases > :is(li, div) + :is(li, div),
.hd-gd .hd-gd-body ol > li + li {
	border-top: 1px solid var(--gd-line);
}

.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 1.2em;
	width: 1.55em;
	height: 1.55em;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--gd-ring);
}

.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::after {
	content: "";
	position: absolute;
	inset-inline-start: .39em;
	top: 1.59em;
	width: .77em;
	height: .77em;
	background: var(--hd-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hd-gd .hd-gd-body .cg-usecases strong {
	display: block;
	margin-bottom: .1em;
	font-size: 1.03em;
}

/* A numbered list: the same rows, the yellow number of the chapters. */
.hd-gd .hd-gd-body ol {
	counter-reset: gd-o;
}

.hd-gd .hd-gd-body ol > li {
	counter-increment: gd-o;
}

.hd-gd .hd-gd-body ol > li::before {
	content: counter(gd-o);
	position: absolute;
	inset-inline-start: 0;
	top: 1.36em;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.85em;
	height: 1.85em;
	border-radius: .55em;
	background: var(--hd-yellow);
	font-size: .84em;
	line-height: 1;
	font-weight: 900;
	color: var(--hd-navy);
}

.hd-gd:lang(fa) .hd-gd-body ol > li::before {
	content: counter(gd-o, persian);
}

/* A plain list of the editor. */
.hd-gd .hd-gd-body ul:not([class]) {
	margin: 0 0 .875em;
	padding-inline-start: 1.4em;
	list-style: disc;
}

.hd-gd .hd-gd-body ul:not([class]) > li {
	margin-bottom: .35em;
	line-height: 2;
	font-weight: 500;
	color: var(--gd-text);
}

/* Link cards (.cg-cards): white cards on the hairline, a blue arrow circle
   at their end that fills blue on hover. */
.hd-gd .hd-gd-body .cg-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75em;
	margin: 1.25em 0;
}

.hd-gd .hd-gd-body .cg-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	min-height: 44px;
	padding: .9em 1.15em;
	border-radius: 1.1em;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--gd-line);
	text-decoration: none;
	transition: box-shadow .2s ease;
}

.hd-gd .hd-gd-body .cg-card:hover {
	box-shadow: inset 0 0 0 1px #B9D1EC;
}

.hd-gd .hd-gd-body .cg-card:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

.hd-gd .hd-gd-body .cg-card-title {
	display: block;
	font-size: 1em;
	line-height: 1.6;
	font-weight: 800;
	color: var(--hd-navy);
}

.hd-gd .hd-gd-body .cg-card-sub {
	display: block;
	margin-top: .1em;
	font-size: .875em;
	line-height: 1.7;
	font-weight: 500;
	color: var(--gd-mute);
}

.hd-gd .hd-gd-body .cg-card::after {
	content: "";
	flex: none;
	width: 2.25em;
	height: 2.25em;
	border-radius: 50%;
	background: #E3EEFB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M10.5431 3.93966H2.36991L5.33582 0.973754L4.54349 0.181427L0.224915 4.5L4.54349 8.81858L5.33582 8.02625L2.36991 5.06035H10.5431V3.93966Z' fill='%230247AE'/%3E%3C/svg%3E") center / .7em no-repeat;
	transition: background-color .2s ease;
}

.hd-gd .hd-gd-body .cg-card:hover::after {
	background: var(--hd-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M10.5431 3.93966H2.36991L5.33582 0.973754L4.54349 0.181427L0.224915 4.5L4.54349 8.81858L5.33582 8.02625L2.36991 5.06035H10.5431V3.93966Z' fill='%23fff'/%3E%3C/svg%3E") center / .7em no-repeat;
}

/* The notice (.cg-notice): a small navy box in the text with the yellow
   square of the chapters' numbers, holding a shield. */
.hd-gd .hd-gd-body .cg-notice {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	margin: 1.25em 0;
	padding: 1.1em 1.25em;
	border-radius: 1.25em;
	background: var(--hd-navy);
}

.hd-gd .hd-gd-body .cg-notice::before {
	content: "";
	flex: none;
	width: 2.13em;
	height: 2.13em;
	margin-top: .03em;
	border-radius: .7em;
	background: var(--hd-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23103F63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 1.15em no-repeat;
}

.hd-gd .hd-gd-body .cg-notice p {
	margin: 0;
	line-height: 1.95;
	color: #fff;
}

.hd-gd .hd-gd-body .cg-notice p + p {
	margin-top: .6em;
}

.hd-gd .hd-gd-body .cg-notice :is(h3, h4) {
	margin: 0 0 .3em;
	color: #fff;
}

.hd-gd .hd-gd-body .cg-notice strong {
	color: var(--hd-yellow);
}

.hd-gd .hd-gd-body .cg-notice a:not(.cg-card) {
	color: var(--hd-yellow);
	text-decoration-color: rgba(255, 204, 0, .55);
}

.hd-gd .hd-gd-body .cg-notice a:not(.cg-card):hover {
	text-decoration-color: currentColor;
}

.hd-gd .hd-gd-body .cg-notice :focus-visible {
	outline-color: var(--hd-yellow);
}

/* A table (.cg-table): the column's width, a tinted head, hairline rows; a
   wide one scrolls in its box (focusable: tabindex), not the page. The first
   column and <bdi> keep plan codes whole. */
.hd-gd .hd-gd-body .cg-table {
	overflow-x: auto;
	margin: 1.25em 0;
	border: 1px solid var(--gd-line);
	border-radius: 1.1em;
	background: #fff;
}

.hd-gd .hd-gd-body .cg-table:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 2px;
}

.hd-gd .hd-gd-body .cg-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9em;
	line-height: 1.8;
}

.hd-gd .hd-gd-body .cg-table :is(th, td) {
	min-width: 6.5em;
	padding: .8em 1em;
	border-bottom: 1px solid var(--gd-line);
	text-align: start;
	vertical-align: top;
	overflow-wrap: normal;
	font-weight: 500;
	color: var(--gd-text);
}

.hd-gd .hd-gd-body .cg-table thead th {
	background: var(--gd-tint);
	font-weight: 800;
	color: var(--hd-navy);
}

.hd-gd .hd-gd-body .cg-table tbody :is(th, td:first-child) {
	white-space: nowrap;
	font-weight: 800;
	color: var(--hd-navy);
}

.hd-gd .hd-gd-body .cg-table tbody tr:last-child > * {
	border-bottom: 0;
}

/* --- The foot: the call to action on a tint, the toggle on its top edge. */
.hd-gd .hd-gd-foot {
	position: relative;
	margin-top: 2.43rem;
	padding: 3.29rem var(--gd-pad);
	border-top: 1px solid var(--gd-line);
	border-radius: 0 0 2rem 2rem;
	background: #F6FAFE;
	text-align: center;
}

.hd-gd .hd-gd-foot.has-fold {
	margin-top: 1.71rem;
	padding-top: 4.14rem;
}

/* Open, the toggle keeps a clear room above it, the text being whole. */
.hd-gd .hd-gd-card:has(.hd-gd-fold[open]) .hd-gd-foot.has-fold {
	margin-top: 3.43rem;
}

/* The toggle without a call to action: on the edge, no tinted foot. */
.hd-gd .hd-gd-foot.is-bare {
	padding: 3.21rem 0 0;
	background: none;
}

/* The toggle is the <summary> of a <details> that holds nothing else: a
   button with its state (expanded or collapsed) for Enter, Space and the
   screen reader, and no script. It sits on the crease, centred, as wide as
   its words; a longer label (another language) wraps inside the card
   instead of leaving it. The pill itself is the span in it, so its flex
   box does not depend on how a browser lays out a <summary>. */
.hd-gd .hd-gd-more {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	display: block;
	width: max-content;
	max-width: calc(100% - 2rem);
	border-radius: 99rem;
	list-style: none;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.hd-gd .hd-gd-more::-webkit-details-marker {
	display: none;
}

.hd-gd .hd-gd-more::marker {
	content: "";
}

.hd-gd .hd-gd-pill {
	display: flex;
	align-items: center;
	gap: .86rem;
	min-height: max(3.57rem, 44px);
	padding-block: .36rem;
	padding-inline: 1.57rem .57rem;
	border-radius: 99rem;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--gd-ring), 0 1rem 1.86rem -1.29rem rgba(16, 63, 99, .55);
	font-size: 1.07rem;
	line-height: 1.5;
	font-weight: 900;
	color: var(--hd-blue);
	text-align: center;
	text-wrap: balance;
}

.hd-gd .hd-gd-more .ripple {
	background: var(--hd-yellow);
	opacity: 1;
}

.hd-gd .hd-gd-more small {
	unicode-bidi: isolate;
	margin-inline-start: .43rem;
	padding-inline-start: .79rem;
	border-inline-start: 1px solid var(--gd-ring);
	font-size: .93rem;
	font-weight: 800;
	color: var(--gd-mute);
	transition: color .25s ease, border-color .25s ease;
}

.hd-gd .hd-gd-more:hover small {
	color: var(--hd-navy);
	border-color: rgba(16, 63, 99, .35);
}

.hd-gd .hd-gd-more-ic {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.43rem;
	height: 2.43rem;
	border-radius: 50%;
	background: #E3EEFB;
	color: var(--hd-blue);
}

.hd-gd .hd-gd-more-ic svg {
	width: 1.29rem;
	height: 1.29rem;
}

.hd-gd .hd-gd-more-c,
.hd-gd .hd-gd-k-m {
	display: none;
}

.hd-gd .hd-gd-more:focus-visible {
	outline: 3px solid var(--hd-blue);
	outline-offset: 3px;
}

.hd-gd .hd-gd-fold[open] .hd-gd-more-o {
	display: none;
}

.hd-gd .hd-gd-fold[open] .hd-gd-more-c {
	display: inline;
}

.hd-gd .hd-gd-fold[open] .hd-gd-more-ic svg {
	transform: rotate(180deg);
}

/* Opened by a link to a part of the text: the toggle has nothing to do. */
.hd-gd .hd-gd-card:has(.hd-gd-body :target) .hd-gd-fold {
	visibility: hidden;
}

/* Folded, wide screens: the open chapters, a teaser and the rest hidden. The
   teaser shows its title and the first two blocks, solid to 10rem, then
   fading out to nothing 2.3rem above its clipped edge. */
@media screen and (min-width: 576px) {
	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-w-off {
		display: none;
	}

	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-w-tz {
		max-height: 19.14rem;
		overflow: hidden;
		overflow: clip;
		-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 10rem, transparent calc(100% - 2.29rem));
		mask-image: linear-gradient(to bottom, #000 0, #000 10rem, transparent calc(100% - 2.29rem));
	}

	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-w-tz > :nth-child(n+4) {
		display: none;
	}
}

/* --- The call to action. */
.hd-gd .hd-gd-cta-t {
	font-size: 1.5rem;
	line-height: 1.6;
	font-weight: 900;
	color: var(--hd-navy);
	text-wrap: balance;
}

.hd-gd .hd-gd-cta-s {
	margin-top: .29rem;
	font-size: 1.07rem;
	line-height: 1.9;
	font-weight: 500;
	color: var(--gd-mute);
	text-wrap: pretty;
}

.hd-gd .hd-gd-acts {
	justify-content: center;
	gap: .86rem;
	margin-top: 1.57rem;
}

.hd-gd .hd-gd-acts:first-child {
	margin-top: 0;
}

.hd-gd .hd-gd-acts .button {
	height: auto;
	min-height: max(3.86rem, 44px);
	padding: 0 2rem;
	gap: .71rem;
	font-size: 1.11rem;
	line-height: 1.4;
	font-weight: 900;
	box-shadow: 0 1.14rem 2.14rem -1rem rgba(2, 71, 174, .65);
}

.hd-gd .hd-gd-acts .hd-go::after {
	width: 1.29rem;
	height: 1.29rem;
}

.hd-gd .hd-gd-acts .button-white {
	border: 0;
	background: #fff;
	color: var(--hd-blue);
	box-shadow: inset 0 0 0 1px #D3E2F1;
	transition: color .25s ease;
}

.hd-gd .hd-gd-acts .button-white:hover {
	color: var(--hd-navy);
}

.hd-gd .hd-gd-acts .button-white .ripple {
	background: var(--hd-yellow);
	opacity: 1;
}

/* 992 to 1139px, root 12px: the reading text keeps about 15px. */
@media (min-width: 992px) and (max-width: 1139.98px) {
	.hd-gd {
		--gd-p: 1.25rem;
	}
}

/* Tablets (576 to 991px, root 13px): a narrower padding. */
@media (max-width: 991.98px) {
	.hd-gd {
		--gd-p: 1.23rem;
		--gd-pad: 3.69rem;
		padding-block: 4.92rem;
	}

	.hd-gd .hd-gd-in {
		padding-top: 3.69rem;
	}

	.hd-gd .hd-gd-lead {
		max-width: none;
	}

	.hd-gd .hd-gd-foot {
		padding: 3.08rem var(--gd-pad);
	}

	.hd-gd .hd-gd-foot.has-fold {
		padding-top: 4.15rem;
	}

	.hd-gd .hd-gd-foot.is-bare {
		padding: 3.21rem 0 0;
	}
}

/* Phones (the design at 390px, root 12px): one chapter fewer open, the lead
   from the start side, the buttons one under the other. */
@media (max-width: 575.98px) {
	.hd-gd {
		--gd-p: 1.29rem;
		--gd-pad: 1.67rem;
		padding-block: 4rem;
	}

	.hd-gd .hd-gd-card {
		border-radius: 2rem;
	}

	.hd-gd .hd-gd-in {
		padding-top: 2.67rem;
	}

	.hd-gd .hd-gd-card.no-foot .hd-gd-in {
		padding-bottom: 2.33rem;
	}

	.hd-gd .hd-gd-title {
		font-size: 2.08rem;
		line-height: 1.6;
	}

	.hd-gd .hd-gd-lead {
		margin-top: 1.17rem;
		font-size: 1.29rem;
		line-height: 1.95;
		text-align: start;
		text-wrap: pretty;
	}

	.hd-gd .hd-gd-body {
		margin-top: 2rem;
		padding-top: 2.33rem;
	}

	.hd-gd .hd-gd-intro + .hd-gd-ch,
	.hd-gd .hd-gd-ch + .hd-gd-ch {
		margin-top: 2.2em;
	}

	.hd-gd .hd-gd-ch > h3:first-child {
		margin-bottom: .55em;
		padding-inline-start: 2.27em;
		font-size: 1.19em;
	}

	.hd-gd .hd-gd-body .cg-usecases,
	.hd-gd .hd-gd-body ol {
		padding: .13em .8em;
		border-radius: 1.1em;
	}

	.hd-gd .hd-gd-body .cg-usecases > :is(li, div),
	.hd-gd .hd-gd-body ol > li {
		padding-block: .87em;
		padding-inline-start: 2.1em;
	}

	.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::before {
		top: 1.12em;
		width: 1.4em;
		height: 1.4em;
	}

	.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::after {
		inset-inline-start: .35em;
		top: 1.47em;
		width: .7em;
		height: .7em;
	}

	.hd-gd .hd-gd-body ol > li::before {
		top: 1.27em;
	}

	.hd-gd .hd-gd-body .cg-notice {
		gap: .8em;
		padding: 1em;
	}

	.hd-gd .hd-gd-body .cg-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.hd-gd .hd-gd-foot {
		margin-top: 2.33rem;
		padding: 2.67rem var(--gd-pad) 2rem;
		border-radius: 0 0 2rem 2rem;
	}

	.hd-gd .hd-gd-foot.has-fold {
		margin-top: 2.33rem;
		padding-top: 4rem;
	}

	.hd-gd .hd-gd-foot.is-bare {
		padding: 3.21rem 0 0;
	}

	/* The open text keeps a clear room above the (taller) toggle. */
	.hd-gd .hd-gd-card:has(.hd-gd-fold[open]) .hd-gd-foot.has-fold {
		margin-top: 3.83rem;
	}

	.hd-gd .hd-gd-pill {
		gap: 1rem;
		min-height: max(4.17rem, 44px);
		padding-inline: 1.83rem .67rem;
		font-size: 1.25rem;
	}

	.hd-gd .hd-gd-more small {
		margin-inline-start: .42rem;
		padding-inline-start: .67rem;
		font-size: 1.08rem;
	}

	.hd-gd .hd-gd-more-ic {
		width: 2.83rem;
		height: 2.83rem;
	}

	.hd-gd .hd-gd-k-w {
		display: none;
	}

	.hd-gd .hd-gd-k-m {
		display: inline;
	}

	.hd-gd .hd-gd-cta-t {
		font-size: 1.58rem;
	}

	.hd-gd .hd-gd-cta-s {
		font-size: 1.21rem;
	}

	.hd-gd .hd-gd-acts {
		flex-direction: column;
		align-items: stretch;
		gap: .83rem;
		margin-top: 1.5rem;
	}

	.hd-gd .hd-gd-acts .button {
		width: 100%;
		min-height: max(4.5rem, 44px);
		padding: .5rem 1.67rem;
		font-size: 1.29rem;
		white-space: normal;
	}
}

/* Folded, phones: one chapter fewer open (at least one), the next a teaser. */
@media screen and (max-width: 575.98px) {
	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-m-off {
		display: none;
	}

	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-m-tz {
		max-height: 18.33rem;
		overflow: hidden;
		overflow: clip;
		-webkit-mask-image: linear-gradient(to bottom, #000 0, #000 8rem, transparent calc(100% - 2.5rem));
		mask-image: linear-gradient(to bottom, #000 0, #000 8rem, transparent calc(100% - 2.5rem));
	}

	.hd-gd .hd-gd-card:has(.hd-gd-fold:not([open])):not(:has(.hd-gd-body :target)) .hd-gd-m-tz > :nth-child(n+4) {
		display: none;
	}
}

/* The arrows point the way the text reads. */
[dir=ltr] .hd-gd .hd-gd-body .cg-card::after {
	transform: scaleX(-1);
}

/* Without :has() nothing folds: the whole text, and no toggle. */
@supports not selector(:has(*)) {
	.hd-gd .hd-gd-fold {
		display: none;
	}
}

@media print {
	.hd-gd .hd-gd-fold {
		display: none;
	}

	.hd-gd .hd-gd-card {
		box-shadow: none;
		outline: 1px solid var(--gd-line);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hd-gd *,
	.hd-gd ::before,
	.hd-gd ::after {
		transition: none !important;
	}
}

/* High contrast draws no shadows and no backgrounds: the card, the toggle,
   the list panels, the cards and the notice get an outline, the checks the
   colour of the text. */
@media (forced-colors: active) {
	.hd-gd .hd-gd-card {
		outline: 1px solid CanvasText;
	}

	.hd-gd .hd-gd-acts .button {
		border: 1px solid ButtonText;
	}

	.hd-gd .hd-gd-pill,
	.hd-gd .hd-gd-body .cg-usecases,
	.hd-gd .hd-gd-body ol,
	.hd-gd .hd-gd-body .cg-card,
	.hd-gd .hd-gd-body .cg-notice,
	.hd-gd .hd-gd-ch > h3:first-child::before {
		outline: 1px solid CanvasText;
		outline-offset: -1px;
	}

	.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::before {
		outline: 1px solid CanvasText;
	}

	.hd-gd .hd-gd-body .cg-usecases > :is(li, div)::after {
		forced-color-adjust: none;
		background: CanvasText;
	}
}
