/*
 * Get help page (inc/help/). Loaded only on the page that holds the Help resources block,
 * and in the editor.
 *
 * Calm and plain on purpose: Charcoal on Paper, underlined Charcoal links, no Ember, no
 * highlights, no pills, no jokes. Uses the theme's tokens from hellpdesk.css.
 */

/* 1. The satire switched off on this page ------------------------------------------------ */

.hd-calm #masthead :is(.header-button-wrap, .mobile-header-button-wrap),
.hd-calm .hd-footer__seal,
.hd-calm .hd-footer__about,
.hd-calm .hd-footer__si-line {
	display: none;
}

@media (min-width: 1025px) {
	.hd-calm .hd-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Room for the Quick exit button below the footer's last line. */
.hd-calm .hd-footer {
	padding-bottom: 104px;
}

/* 2. Quick exit: a bar along the bottom on phones, a button bottom-right on larger screens -- */

.hd-quick-exit {
	position: fixed;
	z-index: 100000;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px 16px;
	background: var(--hd-charcoal);
	box-shadow: 0 -4px 16px rgba(28, 22, 22, .2);
	color: var(--hd-white);
	font: 800 18px/1.2 var(--hd-font);
	text-decoration: none;
}

.hd-quick-exit:hover,
.hd-quick-exit:focus {
	background: var(--hd-charcoal-2);
	color: var(--hd-white);
}

/* An Ember ring inside the dark button (Ember is 5.3:1 on Charcoal). */
.hd-quick-exit:focus-visible {
	outline: 3px solid var(--hd-ember);
	outline-offset: -7px;
}

.hd-quick-exit__hint {
	color: var(--hd-ash-light);
	font-size: var(--hd-small);
	font-weight: 600;
}

/* No Esc key on phones and tablets. */
@media (hover: none) {
	.hd-quick-exit__hint {
		display: none;
	}
}

@media (min-width: 768px) {
	.hd-quick-exit {
		right: 24px;
		bottom: 24px;
		left: auto;
		padding: 12px 28px;
		border-radius: var(--hd-radius-pill);
		box-shadow: var(--hd-shadow-ticket);
	}
}

@media print {
	.hd-quick-exit {
		display: none;
	}
}

/* 3. The list ------------------------------------------------------------------------------ */

.hd-help {
	color: var(--hd-charcoal);
	font-size: var(--hd-body);
	line-height: 1.6;
}

.hd-help a:where(:not(.hd-help__emergency-number):not(.hd-help__action)) {
	color: var(--hd-charcoal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.hd-help a:where(:not(.hd-help__emergency-number):not(.hd-help__action)):hover {
	color: var(--hd-charcoal);
	text-decoration-thickness: 2px;
}

.hd-help :is(h2, h3) {
	color: var(--hd-charcoal);
	letter-spacing: -.01em;
}

.hd-help ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hd-help [hidden] {
	display: none !important;
}

/* "This page is not satire." */
.hd-help__notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid var(--hd-charcoal);
	background: var(--hd-bone);
}

/* Emergency numbers: first, and the biggest tap targets on the page. */
.hd-help__emergency {
	margin: 0 0 32px;
	padding: clamp(20px, 4vw, 32px);
	border: 2px solid var(--hd-charcoal);
	border-radius: var(--hd-radius-card);
	background: var(--hd-paper);
}

.hd-help .hd-help__emergency-title {
	margin: 0 0 20px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
}

.hd-help__emergency-list {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
}

.hd-help__emergency-list li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hd-help__emergency-number,
.hd-help__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .3em;
	border: 2px solid var(--hd-charcoal);
	border-radius: var(--hd-radius-pill);
	font-family: var(--hd-font);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.hd-help__emergency-number {
	min-height: 56px;
	padding: 8px 20px;
	background: var(--hd-charcoal);
	color: var(--hd-white);
	font-size: 20px;
}

.hd-help__digits {
	font-size: 26px;
	font-weight: 900;
}

.hd-help__emergency-area {
	color: var(--hd-ash);
	font-size: var(--hd-small);
	text-align: center;
}

.hd-help__intro {
	margin: 0 0 32px;
}

/* Jump links. */
.hd-help__jump {
	margin: 0 0 32px;
	padding: 20px 24px;
	border: 1px solid var(--hd-line);
	border-radius: var(--hd-radius-card);
}

.hd-help .hd-help__jump-title {
	margin: 0 0 12px;
	color: var(--hd-ash);
	font: 600 var(--hd-label)/1.2 var(--hd-font);
	letter-spacing: .14em;
	text-transform: uppercase;
}

.hd-help__jump-list {
	columns: 2 220px;
	column-gap: 32px;
}

.hd-help__jump-list li {
	padding: 6px 0;
	break-inside: avoid;
}

/* Country filter (shown by help.js). */
.hd-help__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 16px;
}

.hd-help__filter-label {
	font-weight: 800;
}

.hd-help__filter-select {
	min-height: 48px;
	max-width: 100%;
}

.hd-help__filter-status {
	flex-basis: 100%;
	margin: 0;
	color: var(--hd-ash);
	font-size: var(--hd-small);
}

.hd-help__filter-status:empty {
	display: none;
}

/* Categories and services. */
.hd-help__category,
.hd-help__safety {
	margin-top: 48px;
	scroll-margin-top: 24px;
}

.hd-help .hd-help__category-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.2;
}

.hd-help__category-desc {
	margin: 0 0 20px;
	color: var(--hd-charcoal-2);
}

.hd-help__list {
	display: grid;
	gap: 16px;
}

.hd-help__item {
	padding: clamp(18px, 3vw, 24px);
	border: 1px solid var(--hd-line);
	border-radius: 14px;
	background: var(--hd-paper);
}

.hd-help .hd-help__name {
	margin: 0 0 4px;
	font-size: 21px;
	line-height: 1.3;
}

.hd-help__where {
	margin: 0 0 8px;
	color: var(--hd-ash);
	font-size: var(--hd-small);
}

.hd-help__desc {
	margin: 0 0 16px;
}

.hd-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hd-help__action {
	min-height: 48px;
	padding: 10px 20px;
	background: var(--hd-paper);
	color: var(--hd-charcoal);
	font-size: 16px;
}

.hd-help__action--call,
.hd-help__emergency-number:hover,
.hd-help__action:hover {
	background: var(--hd-charcoal);
	color: var(--hd-white);
}

.hd-help__action--call:hover,
.hd-help__emergency-number:hover {
	background: var(--hd-charcoal-2);
	border-color: var(--hd-charcoal-2);
}

@media (max-width: 599px) {
	.hd-help__actions {
		flex-direction: column;
	}

	.hd-help__action {
		width: 100%;
	}
}

/* Safety tips and the "last checked" line. */
.hd-help__safety ul {
	padding-left: 1.2em;
	list-style: disc;
}

.hd-help__safety li + li {
	margin-top: 10px;
}

.hd-help__verified {
	margin: 48px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--hd-line);
	color: var(--hd-ash);
	font-size: var(--hd-small);
}

.hd-help__verified p {
	margin: 0 0 8px;
}
