/* Legal pages (templates/legal.php): the guide layout of boards 13 and 14 without the comparison sections. */

.article-hero {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-block: 20px 28px;
}

.article-hero > * {
	max-width: 980px;
}

.article-hero h1 {
	margin: 0;
	text-wrap: balance;
}

.article-hero__meta {
	margin: 0;
	font-size: 14px;
	color: var(--c-muted);
}

.article-layout {
	display: grid;
	gap: 24px;
	padding-bottom: 56px;
}

.article-toc__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.article-toc__nav a {
	padding: 6px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--c-body);
	text-decoration: none;
}

.article-toc__nav a:hover,
.article-toc__nav a:focus-visible {
	color: var(--c-teal);
}

.article-toc__label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.article-body {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
	max-width: 760px;
}

.article-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	scroll-margin-top: 24px;
}

.article-section h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--c-charcoal);
	text-wrap: balance;
}

.article-section p,
.article-section ul {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-body);
}

.article-section ul {
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.article-section strong {
	color: var(--c-charcoal);
}

.article-section a {
	color: var(--c-teal);
	font-weight: 700;
}

.article-table {
	overflow-x: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--r-card);
}

.article-table table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.article-table th,
.article-table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-body);
}

.article-table th {
	background: var(--c-pale);
	font-weight: 800;
	color: var(--c-charcoal);
}

.article-table tr:last-child td {
	border-bottom: 0;
}

@media (min-width: 1024px) {
	.article-hero {
		padding-block: 20px 36px;
		gap: 14px;
	}

	.article-layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}

	.article-toc {
		position: sticky;
		top: 24px;
		border-left: 2px solid var(--c-border);
		padding-left: 16px;
	}

	.article-toc__nav a {
		font-size: 14px;
		padding: 5px 0;
	}

	.article-body {
		gap: 40px;
	}

	.article-section h2 {
		font-size: 28px;
		letter-spacing: -0.02em;
	}
}

/* Document pages (templates/document.php): the Quick answer box of board 13, the official rules line and the closing block. */

.article-quick {
	background: var(--c-amber-tint);
	border-radius: var(--r-card-lg);
	padding: 18px 20px;
	gap: 8px;
}

.article-quick h2 {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-warn);
}

.article-quick p {
	color: var(--c-charcoal);
	font-size: 17px;
}

.article-official {
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid var(--c-border);
	font-size: 15px;
	line-height: 1.6;
	color: var(--c-body);
}

.article-official a {
	color: var(--c-teal);
	font-weight: 700;
}

.documents-help {
	padding-bottom: 56px;
}

.documents-help__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 980px;
	background: var(--c-pale);
	border: 1px solid var(--c-border);
	border-radius: var(--r-card-lg);
	padding: 22px 20px;
}

.documents-help__card h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--c-charcoal);
}

.documents-help__card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-body);
}

.documents-help__card a {
	color: var(--c-teal);
	font-weight: 700;
	white-space: nowrap;
}

.documents-help__note {
	font-size: 14px;
	color: var(--c-muted);
}

@media (min-width: 1024px) {
	.article-quick {
		padding: 22px 24px;
	}

	.documents-help__card {
		padding: 28px 32px;
	}

	.documents-help__card h2 {
		font-size: 26px;
	}
}

/* Guides (templates/guide.php, boards 13 and 14): lead, the travel-date button under "On this page",
   guide 1's comparison cards, situation table and option cards, the state picker and guide 8's state list. */

.guide-hero__lead {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--c-body);
}

/* ---------- Travel forms guides: the top section (boards 76, 77; October 28 c) ----------
   Phones: the photo first (full width, 200 px tall), then the text. Desktop: text left, photo right. */
.guide-hero--form {
	display: grid;
	gap: 12px;
	padding-top: 12px;
}

.guide-hero--form .guide-hero__text {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.guide-hero__photo {
	order: -1;
	margin: 0;
}

.guide-hero__photo img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 16px;
}

.guide-hero__photo figcaption {
	padding-top: 6px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--c-muted);
}

.guide-hero__photo figcaption a {
	color: inherit;
	text-decoration: none;
}

.guide-hero__photo figcaption a:hover {
	text-decoration: underline;
}

.guide-official__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 800;
}

.guide-hero__cost {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-body);
}

@media (min-width: 900px) {
	.guide-hero--form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
		align-items: center;
		padding-top: 20px;
	}

	.guide-hero--form .guide-hero__text {
		gap: 14px;
	}

	.guide-hero__photo {
		order: 0;
	}

	.guide-hero__photo img {
		height: auto;
		aspect-ratio: 560 / 360;
		border: 1px solid var(--c-border);
		border-radius: 24px;
	}

	.guide-official__button {
		align-self: flex-start;
		width: auto;
		padding: 15px 22px;
		font-size: 17px;
	}

	.guide-hero__cost {
		font-size: 14px;
	}
}

.guide-hero .article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	font-size: 12px;
	line-height: 1.5;
}

.guide-body .article-quick p {
	font-size: 15px;
	line-height: 1.55;
}

.guide-toc__checker {
	margin-top: 14px;
	width: 100%;
	font-size: 14px;
	padding: 11px;
}

.article-section h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--c-charcoal);
}

.article-section ol {
	margin: 0;
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-body);
}

.article-table th[scope="row"] {
	background: none;
	font-weight: 800;
}

.guide-situations thead th {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-teal);
}

.article-section .guide-ways {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-way {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	padding: 14px;
}

.guide-way--ours {
	border: 2px solid var(--c-teal);
}

.guide-way__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.guide-way__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--c-icon-quiet-bg);
	color: var(--c-icon-quiet);
}

.guide-way--ours .guide-way__icon {
	background: var(--c-benefit);
	color: var(--c-teal);
}

.guide-way__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-charcoal);
}

.guide-way__rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.guide-way__row dt {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.guide-way__row dd {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--c-body);
}

.guide-way__row--time dd {
	font-size: 16px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--c-charcoal);
}

.guide-way__row--time dd::first-letter {
	text-transform: uppercase;
}

.article-section .guide-way__link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 4px;
	font-size: 14px;
}

.guide-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--c-pale);
	border: 1px solid var(--c-border);
	border-radius: 18px;
	padding: 18px 16px;
	scroll-margin-top: 24px;
}

.guide-step--ours {
	background: var(--c-white);
	border: 2px solid var(--c-teal);
}

.article-section .guide-step__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-teal);
}

.guide-step ol,
.guide-step p:not(.guide-step__eyebrow) {
	font-size: 15px;
}

.guide-state-picker {
	display: flex;
	gap: 10px;
	align-items: center;
}

.guide-state-picker select {
	flex: 1 1 auto;
	max-width: 320px;
	min-height: 48px;
}

.article-section .guide-states {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	padding: 0;
	list-style: none;
}

.guide-states a {
	font-size: 15px;
}

@media (min-width: 1024px) {
	.guide-hero__lead {
		font-size: 19px;
	}

	.guide-hero .article-hero__meta {
		font-size: 14px;
	}

	.guide-body .article-quick p {
		font-size: 17px;
		line-height: 1.6;
	}

	.guide-body {
		max-width: none;
	}

	.article-section .guide-ways {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.guide-way {
		border-radius: var(--r-card);
		padding: 18px;
		gap: 10px;
	}

	.guide-way__icon {
		width: 38px;
		height: 38px;
		border-radius: 11px;
	}

	.guide-way__row--time dd {
		font-size: 17px;
	}

	.guide-step {
		border-radius: 22px;
		padding: 26px;
		gap: 14px;
	}

	.article-section .guide-step__eyebrow {
		font-size: 13px;
	}

	.guide-step h3 {
		font-size: 24px;
	}

	.article-section .guide-states {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Text message opt-in page (templates/sms-opt-in.php): one column, no "On this page" menu; the
   checkout screenshot and the box's quoted wording. */
.article-layout--single {
	grid-template-columns: minmax(0, 760px);
}

.article-figure {
	margin: 16px 0 20px;
	display: grid;
	gap: 8px;
}

.article-figure img {
	display: block;
	width: 100%;
	max-width: 683px;
	height: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--r-card);
}

.article-figure figcaption {
	font-size: 14px;
	color: var(--c-muted);
}

.article-quote {
	margin: 12px 0 0;
	padding: 16px 20px;
	background: var(--c-pale);
	border-radius: var(--r-field);
}

.article-quote p {
	margin: 0;
}
