/*
Theme Name: Contour
Theme URI: https://www.andorratourism.org/
Author: Andorra Tourism Guide
Author URI: https://www.andorratourism.org/
Description: A dark topographic field-guide theme for Andorra Tourism Guide. Ink ground, one glacier-blue accent, Schibsted Grotesk for reading and IBM Plex Mono for labels, data and captions. Built for long-form travel guides: derived table of contents, FAQ rows, data tables, figure captions and section indexes, all generated from ordinary post HTML.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contour
Tags: blog, news, one-column, two-columns, custom-menu, custom-logo, featured-images, block-styles, editor-style, full-width-template, translation-ready, dark
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--ink: #0f1418;
	--ink-raised: #151b21;

	--glacier: #5aa0d6;
	--glacier-hi: #8cc0e6;
	--glacier-deep: #3f86b8;

	--text-strong: #f2f5f7;
	--text: #e6ebee;
	--text-body: #d5dde2;
	--text-muted: #b9c4cb;
	--text-faint: #8fa3b0;

	--rule-18: rgba( 255, 255, 255, .18 );
	--rule-14: rgba( 255, 255, 255, .14 );
	--rule-12: rgba( 255, 255, 255, .12 );
	--rule-10: rgba( 255, 255, 255, .10 );
	--rule-09: rgba( 255, 255, 255, .09 );
	--rule-08: rgba( 255, 255, 255, .08 );

	--contour-bg: repeating-radial-gradient( ellipse 62% 58% at 84% 22%,
		rgba( 90, 160, 214, 0 ) 0, rgba( 90, 160, 214, 0 ) 33px,
		rgba( 90, 160, 214, .18 ) 34px, rgba( 90, 160, 214, 0 ) 35px );
	--contour-bg-faint: repeating-radial-gradient( ellipse 50% 70% at 96% 0%,
		rgba( 90, 160, 214, 0 ) 0, rgba( 90, 160, 214, 0 ) 33px,
		rgba( 90, 160, 214, .12 ) 34px, rgba( 90, 160, 214, 0 ) 35px );

	--font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-display: 88px;
	--fs-section: 80px;
	--fs-h1: 58px;
	--fs-feature: 36px;
	--fs-h2: 32px;
	--fs-h2-index: 30px;
	--fs-stat: 26px;

	--container: 1200px;
	--gutter: 40px;
	--article-col: 720px;
	--article-gap: 72px;

	--ease: 150ms ease-out;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media ( prefers-reduced-motion: reduce ) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var( --ink );
	color: var( --text-body );
	font-family: var( --font-sans );
	font-size: 18px;
	line-height: 1.65;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var( --glacier );
	transition: color var( --ease ), border-color var( --ease );
}

a:hover,
a:focus {
	color: var( --glacier-hi );
}

button {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var( --text-strong );
	font-weight: 500;
	letter-spacing: -.02em;
	margin: 0;
	text-wrap: pretty;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var( --glacier );
	outline-offset: 2px;
}

::selection {
	background: var( --glacier-deep );
	color: #fff;
}

.screen-reader-text {
	border: 0;
	clip-path: inset( 50% );
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.atg-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var( --ink-raised );
	border: 1px solid var( --glacier );
	color: var( --text-strong );
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 10px 16px;
	text-decoration: none;
}

.atg-skip:focus {
	left: 16px;
	top: 16px;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.atg-container {
	max-width: var( --container );
	margin-inline: auto;
	padding-inline: var( --gutter );
	width: 100%;
}

.atg-rule-top {
	border-top: 1px solid var( --rule-14 );
}

/* Mono label — the workhorse of the design. */
.atg-mono {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-mono--tight {
	letter-spacing: .1em;
	font-weight: 400;
}

.atg-mono--accent {
	color: var( --glacier );
}

.atg-mono a {
	text-decoration: none;
}

/* Section heading row: H2 left, mono link right. */
.atg-headrow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.atg-headrow h2,
.atg-headrow .atg-h2 {
	font-size: var( --fs-h2-index );
	line-height: 1.1;
	letter-spacing: -.02em;
	font-weight: 500;
}

a.atg-morelink {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	text-decoration: none;
	white-space: nowrap;
}

a.atg-morelink:hover,
a.atg-morelink:focus {
	color: var( --glacier-hi );
}

/* ==========================================================================
   4. Site header
   ========================================================================== */

.atg-header {
	border-bottom: 1px solid var( --rule-10 );
	position: relative;
	z-index: 20;
}

.atg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 20px;
}

.atg-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex: 0 0 auto;
}

.atg-brand__mark {
	display: block;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
}

.atg-brand__mark img,
.atg-brand__mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.atg-brand__name {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.2;
	color: var( --text-strong );
	white-space: nowrap;
}

.atg-brand:hover .atg-brand__name,
.atg-brand:focus .atg-brand__name {
	color: #fff;
}

.atg-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.atg-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.atg-nav li {
	margin: 0;
}

.atg-nav a {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -.005em;
	color: var( --text-muted );
	text-decoration: none;
	white-space: nowrap;
}

.atg-nav a:hover,
.atg-nav a:focus {
	color: #fff;
}

.atg-nav .current-menu-item > a,
.atg-nav .current-menu-ancestor > a,
.atg-nav .current-cat > a,
.atg-nav .atg-nav__current > a {
	color: var( --glacier );
}

.atg-header__end {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}

.atg-altitude {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .06em;
	color: var( --text-faint );
	white-space: nowrap;
}

.atg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 1px solid var( --rule-18 );
	color: var( --text );
	cursor: pointer;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 8px 12px;
	text-decoration: none;
	transition: color var( --ease ), border-color var( --ease );
}

.atg-btn:hover,
.atg-btn:focus {
	border-color: var( --glacier );
	color: var( --glacier );
}

.atg-navtoggle {
	display: none;
}

/* Header search panel — visibility is the hidden attribute, so the panel
   stays closed with JavaScript off rather than open. */
.atg-searchpanel {
	display: block;
	border-top: 1px solid var( --rule-10 );
	background: var( --ink-raised );
}

.atg-searchpanel[ hidden ],
.atg-mobilenav[ hidden ] {
	display: none;
}

.atg-searchpanel .atg-container {
	padding-block: 18px;
}

.atg-searchform {
	display: flex;
	align-items: center;
	gap: 14px;
}

.atg-searchform label {
	flex: 0 0 auto;
}

.atg-searchform input[ type="search" ] {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var( --rule-18 );
	caret-color: var( --glacier );
	color: var( --text-strong );
	font-family: var( --font-mono );
	font-size: 15px;
	letter-spacing: .02em;
	padding: 8px 2px;
}

.atg-searchform input[ type="search" ]::placeholder {
	color: var( --text-faint );
}

.atg-searchform input[ type="search" ]:focus {
	border-bottom-color: var( --glacier );
	outline: none;
}

.atg-searchform input[ type="search" ]:focus-visible {
	outline: 2px solid var( --glacier );
	outline-offset: 4px;
}

/* Mobile nav panel */
.atg-mobilenav {
	display: block;
	border-top: 1px solid var( --rule-10 );
	background: var( --ink-raised );
}

.atg-mobilenav ul {
	list-style: none;
	margin: 0;
	padding: 8px 0 20px;
}

.atg-mobilenav li {
	margin: 0;
}

.atg-mobilenav a {
	display: grid;
	grid-template-columns: 36px 1fr 28px;
	gap: 14px;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid var( --rule-09 );
	text-decoration: none;
	color: var( --text-strong );
	font-size: 16px;
	font-weight: 500;
}

.atg-mobilenav a:hover,
.atg-mobilenav a:focus {
	color: var( --glacier );
}

.atg-mobilenav .atg-row__num,
.atg-mobilenav .atg-row__arrow {
	font-family: var( --font-mono );
	font-size: 11px;
	color: var( --text-faint );
	font-weight: 400;
}

.atg-mobilenav .atg-row__arrow {
	text-align: right;
}

.atg-mobilenav a:hover .atg-row__num,
.atg-mobilenav a:hover .atg-row__arrow,
.atg-mobilenav a:focus .atg-row__num,
.atg-mobilenav a:focus .atg-row__arrow {
	color: var( --glacier );
}

/* ==========================================================================
   5. Contour grounds
   ========================================================================== */

.atg-contour {
	position: relative;
	isolation: isolate;
}

.atg-contour::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var( --contour-bg );
	pointer-events: none;
	z-index: -1;
}

.atg-contour--faint::before {
	background-image: var( --contour-bg-faint );
}

/* ==========================================================================
   6. Front page — hero
   ========================================================================== */

.atg-hero {
	padding-block: 64px 56px;
}

.atg-hero__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 48px;
	align-items: start;
}

.atg-kicker {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	margin-bottom: 26px;
}

.atg-hero__title {
	font-size: var( --fs-display );
	line-height: .94;
	letter-spacing: -.035em;
	font-weight: 500;
	color: var( --text-strong );
	margin: 0 0 26px;
}

.atg-standfirst {
	font-size: 18px;
	line-height: 1.5;
	color: var( --text-muted );
	max-width: 500px;
	font-weight: 400;
}

.atg-stats {
	margin: 0;
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	border-top: 1px solid var( --rule-14 );
	margin-top: 48px;
}

.atg-stat {
	padding: 18px 16px 0 0;
	border-left: 1px solid var( --rule-10 );
	padding-left: 16px;
}

.atg-stat:first-child {
	border-left: 0;
	padding-left: 0;
}

.atg-stat__value {
	font-size: var( --fs-stat );
	line-height: 1;
	letter-spacing: -.02em;
	font-weight: 500;
	color: var( --text-strong );
	margin-bottom: 10px;
}

.atg-stat__label {
	margin: 0;
	font-family: var( --font-mono );
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
}

/* Figures with the mono caption row */
.atg-figure {
	margin: 0;
}

.atg-figure__media {
	display: block;
	border: 1px solid var( --rule-18 );
	overflow: hidden;
	background: var( --ink-raised );
}

.atg-figure__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atg-figure--hero .atg-figure__media {
	height: 420px;
}

.atg-figure--section .atg-figure__media {
	height: 300px;
}

/* Duotone treatment — CSS only, the file itself is never touched. */
.atg-duotone {
	background: var( --glacier-deep );
}

.atg-duotone img {
	mix-blend-mode: luminosity;
	filter: grayscale( 1 ) contrast( 1.08 );
	opacity: .92;
}

.atg-figcap {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 12px;
	font-family: var( --font-mono );
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-figcap__note {
	text-align: right;
	flex: 0 1 auto;
}

.atg-figcap a {
	color: var( --text-faint );
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atg-figcap a:hover,
.atg-figcap a:focus {
	color: var( --glacier );
}

/* ==========================================================================
   7. Section index (home + category "other sections")
   ========================================================================== */

.atg-index {
	padding-block: 24px 56px;
}

.atg-index__grid {
	columns: 2;
	column-gap: 48px;
}

.atg-index__grid--three {
	columns: 3;
}

.atg-index__grid > * {
	break-inside: avoid;
}

a.atg-row,
.atg-row {
	display: grid;
	grid-template-columns: 36px 1fr 28px;
	gap: 14px;
	align-items: center;
	padding: 13px 0;
	border-bottom: 1px solid var( --rule-09 );
	text-decoration: none;
}

.atg-row__num {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	color: var( --text-faint );
}

.atg-row__name {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var( --text-strong );
	min-width: 0;
}

.atg-row__arrow {
	font-family: var( --font-mono );
	font-size: 11px;
	color: var( --text-faint );
	text-align: right;
}

a.atg-row:hover .atg-row__num,
a.atg-row:hover .atg-row__name,
a.atg-row:hover .atg-row__arrow,
a.atg-row:focus .atg-row__num,
a.atg-row:focus .atg-row__name,
a.atg-row:focus .atg-row__arrow {
	color: var( --glacier );
}

.atg-row--current .atg-row__num,
.atg-row--current .atg-row__name,
.atg-row--current .atg-row__arrow {
	color: var( --glacier );
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.atg-cards {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

.atg-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.atg-card__media {
	display: block;
	height: 220px;
	border: 1px solid var( --rule-14 );
	background: var( --ink-raised );
	overflow: hidden;
	margin-bottom: 14px;
}

.atg-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atg-card__meta {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var( --glacier );
	margin-bottom: 10px;
}

.atg-card__meta a {
	color: inherit;
	text-decoration: none;
}

.atg-card__meta a:hover,
.atg-card__meta a:focus {
	color: var( --glacier-hi );
}

.atg-card__title {
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: -.01em;
	font-weight: 600;
	margin-bottom: 10px;
}

.atg-card__title a {
	color: var( --text-strong );
	text-decoration: none;
}

.atg-card__title a:hover,
.atg-card__title a:focus {
	color: var( --glacier );
}

.atg-card__excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: var( --text-muted );
}

.atg-latest {
	padding-block: 8px 56px;
}

.atg-section {
	padding-block: 40px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.atg-footer {
	border-top: 1px solid var( --rule-10 );
	padding-block: 40px 24px;
	margin-top: auto;
}

.atg-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
}

.atg-footer__about {
	font-size: 14px;
	line-height: 1.5;
	color: var( --text-muted );
	max-width: 320px;
	margin: 16px 0 16px;
}

.atg-footer__coords {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	color: var( --text-faint );
}

.atg-footer__label {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	margin-bottom: 18px;
}

.atg-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px 16px;
}

.atg-footer__menu--two {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	grid-auto-flow: column;
	grid-template-rows: repeat( var( --atg-rows, 4 ), auto );
}

.atg-footer a {
	font-size: 14px;
	color: var( --text-muted );
	text-decoration: none;
}

.atg-footer a:hover,
.atg-footer a:focus {
	color: #fff;
}

.atg-footer__bottom {
	border-top: 1px solid var( --rule-08 );
	margin-top: 36px;
	padding-top: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-footer__bottom p {
	margin: 0;
}

.atg-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.atg-main {
	flex: 1 0 auto;
}

/* ==========================================================================
   10. Article head (single / page)
   ========================================================================== */

.atg-arthead {
	padding-top: 44px;
}

.atg-crumbs,
.atg-crumbs p {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var( --text-faint );
	margin: 0 0 22px;
}

.atg-crumbs a {
	color: var( --glacier );
	text-decoration: none;
}

.atg-crumbs a:hover,
.atg-crumbs a:focus {
	color: var( --glacier-hi );
}

.atg-crumbs .separator {
	color: var( --text-faint );
	padding-inline: 4px;
}

.atg-arthead__title {
	font-size: var( --fs-h1 );
	line-height: 1.02;
	letter-spacing: -.03em;
	font-weight: 500;
	color: var( --text-strong );
	max-width: 920px;
	margin-bottom: 22px;
}

.atg-arthead__standfirst {
	font-size: 20px;
	line-height: 1.5;
	color: var( --text-muted );
	max-width: 760px;
}

.atg-metabar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	border-top: 1px solid var( --rule-12 );
	border-bottom: 1px solid var( --rule-12 );
	padding-block: 16px;
	margin-top: 30px;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-metabar__k {
	color: var( --glacier );
}

.atg-metabar__end {
	margin-left: auto;
}

.atg-share {
	background: none;
	border: 0;
	padding: 6px 0;
	margin: -6px 0;
	cursor: pointer;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --glacier );
	transition: color var( --ease );
}

.atg-share:hover,
.atg-share:focus {
	color: var( --glacier-hi );
}

.atg-share[ data-copied="1" ]::after {
	content: " · copied";
	color: var( --text-faint );
}

.atg-arthero {
	margin-top: 32px;
}

.atg-arthero .atg-figure__media {
	height: 520px;
	border-color: var( --rule-14 );
}

/* ==========================================================================
   11. Article body grid
   ========================================================================== */

.atg-body {
	display: grid;
	grid-template-columns: minmax( 0, var( --article-col ) ) minmax( 0, 1fr );
	gap: var( --article-gap );
	align-items: start;
	padding-block: 48px 56px;
}

.atg-body--single {
	grid-template-columns: minmax( 0, var( --article-col ) ) minmax( 0, 1fr );
}

.atg-body--solo {
	grid-template-columns: minmax( 0, var( --article-col ) );
}

.atg-content {
	min-width: 0;
}

/* --- prose ------------------------------------------------------------- */

.entry-content {
	font-size: 18px;
	line-height: 1.65;
	color: var( --text-body );
}

.entry-content > * {
	margin-block: 0 26px;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content p {
	margin: 0 0 26px;
}

.entry-content strong,
.entry-content b {
	color: var( --text-strong );
	font-weight: 600;
}

.entry-content em {
	font-style: italic;
}

.entry-content > p > em:only-child,
.entry-content > p.atg-note-line {
	font-size: 15px;
	color: var( --text-faint );
	line-height: 1.6;
}

.entry-content a {
	color: var( --glacier );
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.entry-content a:hover,
.entry-content a:focus {
	color: var( --glacier-hi );
}

.entry-content h2 {
	font-size: var( --fs-h2 );
	line-height: 1.15;
	letter-spacing: -.02em;
	font-weight: 500;
	color: var( --text-strong );
	margin: 48px 0 18px;
	scroll-margin-top: 24px;
}

.entry-content h2:first-child {
	margin-top: 0;
}

.atg-h2__num {
	display: block;
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	color: var( --glacier );
	margin-bottom: 12px;
}

.entry-content h3 {
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -.01em;
	font-weight: 600;
	color: var( --text-strong );
	margin: 34px 0 14px;
	scroll-margin-top: 24px;
}

.entry-content h4 {
	font-size: 19px;
	line-height: 1.35;
	font-weight: 600;
	color: var( --text-strong );
	margin: 28px 0 12px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 26px;
	padding-left: 22px;
}

.entry-content li {
	margin-bottom: 10px;
}

.entry-content li::marker {
	color: var( --glacier );
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
	margin: 10px 0 0;
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var( --rule-14 );
	margin-block: 40px;
	height: 0;
}

.entry-content code,
.entry-content kbd {
	font-family: var( --font-mono );
	font-size: .88em;
	background: var( --ink-raised );
	border: 1px solid var( --rule-08 );
	padding: 1px 5px;
}

.entry-content pre {
	font-family: var( --font-mono );
	font-size: 14px;
	background: var( --ink-raised );
	border: 1px solid var( --rule-14 );
	padding: 18px 20px;
	overflow-x: auto;
}

.entry-content pre code {
	background: none;
	border: 0;
	padding: 0;
}

/* --- figures ----------------------------------------------------------- */

.entry-content figure,
.entry-content .wp-block-image {
	margin: 0 0 26px;
}

.entry-content figure img,
.entry-content .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var( --rule-14 );
}

.entry-content figcaption,
.entry-content .atg-figcap {
	margin-top: 12px;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-embed iframe {
	max-width: 100%;
}

.entry-content .alignwide,
.entry-content .alignfull {
	width: min( 792px, 100% );
	max-width: none;
	margin-inline: calc( ( 720px - min( 792px, 100% ) ) / 2 );
}

.entry-content .alignleft {
	float: left;
	margin: 6px 26px 20px 0;
	max-width: 45%;
}

.entry-content .alignright {
	float: right;
	margin: 6px 0 20px 26px;
	max-width: 45%;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

/* --- data tables ------------------------------------------------------- */

.atg-tablebox {
	border: 1px solid var( --rule-14 );
	margin: 0 0 32px;
}

.atg-tablebox__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding: 12px 18px;
	border-bottom: 1px solid var( --rule-14 );
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
}

.atg-tablebox__count {
	color: var( --text-faint );
	font-weight: 400;
	white-space: nowrap;
}

.atg-trow {
	display: grid;
	grid-template-columns: 250px minmax( 0, 1fr );
	gap: 18px;
	padding: 12px 18px;
	border-bottom: 1px solid var( --rule-08 );
}

.atg-trow:last-child {
	border-bottom: 0;
}

.atg-trow__k {
	font-family: var( --font-mono );
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
	padding-top: 2px;
}

.atg-trow__v {
	font-size: 15px;
	line-height: 1.5;
	color: var( --text-body );
}

.atg-tablebox table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.atg-tablebox table th,
.entry-content table th {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
	text-align: left;
	vertical-align: top;
}

.atg-tablebox table td,
.entry-content table td {
	color: var( --text-body );
	vertical-align: top;
}

.atg-tablebox table th,
.atg-tablebox table td,
.entry-content table th,
.entry-content table td {
	padding: 12px 18px;
	border-bottom: 1px solid var( --rule-08 );
}

.atg-tablebox table thead th {
	color: var( --glacier );
	border-bottom-color: var( --rule-14 );
}

.atg-tablebox table tr:last-child th,
.atg-tablebox table tr:last-child td {
	border-bottom: 0;
}

.atg-tablebox--wide {
	overflow-x: auto;
}

/* --- field note / callout ---------------------------------------------- */

.atg-note,
.entry-content .is-style-field-note {
	display: grid;
	grid-template-columns: 110px minmax( 0, 1fr );
	gap: 18px;
	border: 1px solid var( --rule-14 );
	padding: 18px 20px;
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 1.6;
	color: var( --text-body );
}

.atg-note__label,
.entry-content .is-style-field-note::before {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	line-height: 1.6;
	padding-top: 2px;
}

.entry-content .is-style-field-note::before {
	content: attr( data-label );
}

.entry-content p.is-style-field-note::before {
	content: "Field note";
}

.atg-note__body > *:last-child {
	margin-bottom: 0;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	display: grid;
	grid-template-columns: 110px minmax( 0, 1fr );
	gap: 18px;
	border: 1px solid var( --rule-14 );
	border-left: 1px solid var( --rule-14 );
	padding: 18px 20px;
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 1.6;
	font-style: normal;
	color: var( --text-body );
}

.entry-content blockquote::before {
	content: "Quote";
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	padding-top: 2px;
}

.entry-content blockquote > * {
	grid-column: 2;
	margin-bottom: 12px;
}

.entry-content blockquote > *:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
	font-style: normal;
}

/* --- FAQ rows ---------------------------------------------------------- */

.atg-faq {
	margin: 0 0 32px;
	border-top: 1px solid var( --rule-10 );
}

.atg-faq__row {
	display: grid;
	grid-template-columns: 48px minmax( 0, 1fr );
	gap: 8px;
	padding: 22px 0;
	border-bottom: 1px solid var( --rule-10 );
}

.atg-faq__num {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	color: var( --text-faint );
	padding-top: 5px;
}

.atg-faq__q {
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var( --text-strong );
	margin: 0 0 10px;
	scroll-margin-top: 24px;
}

.atg-faq__a {
	font-size: 16px;
	line-height: 1.6;
	color: var( --text-muted );
}

.atg-faq__a > *:last-child {
	margin-bottom: 0;
}

/* --- photo credits ----------------------------------------------------- */

.atg-credits {
	border: 1px solid var( --rule-14 );
	padding: 0;
	margin: 40px 0 0;
}

.atg-credits > summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 18px;
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: color var( --ease );
}

.atg-credits > summary::-webkit-details-marker {
	display: none;
}

.atg-credits > summary::after {
	content: "+";
	color: var( --text-faint );
	font-size: 13px;
}

.atg-credits[ open ] > summary::after {
	content: "\2212";
}

.atg-credits > summary:hover,
.atg-credits > summary:focus-visible {
	color: var( --glacier-hi );
}

.atg-credits__body {
	padding: 0 18px 16px;
	border-top: 1px solid var( --rule-08 );
	padding-top: 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var( --text-muted );
}

.atg-credits__body ul {
	margin: 0;
	padding-left: 20px;
}

.atg-credits__body li {
	margin-bottom: 8px;
}

.atg-credits__body p:last-child,
.atg-credits__body ul:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   12. Prev / next
   ========================================================================== */

.atg-prevnext {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 24px;
	margin-top: 48px;
}

.atg-prevnext__cell {
	display: block;
	border: 1px solid var( --rule-14 );
	padding: 20px;
	text-decoration: none;
	transition: border-color var( --ease );
}

.atg-prevnext__cell:hover,
.atg-prevnext__cell:focus {
	border-color: var( --glacier );
}

.atg-prevnext__label {
	display: block;
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	margin-bottom: 12px;
}

.atg-prevnext__cell--next {
	text-align: right;
}

.atg-prevnext__title {
	display: block;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var( --text-strong );
}

/* ==========================================================================
   13. Sidebar
   ========================================================================== */

.atg-side {
	position: sticky;
	top: 24px;
	min-width: 0;
	display: grid;
	gap: 40px;
	align-content: start;
}

.atg-side__label {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	padding-bottom: 12px;
	border-bottom: 1px solid var( --rule-14 );
	margin-bottom: 4px;
}

.atg-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.atg-toc__list li {
	border-bottom: 1px solid var( --rule-08 );
}

.atg-toc__link {
	display: grid;
	grid-template-columns: 28px minmax( 0, 1fr );
	gap: 6px;
	padding: 10px 0;
	text-decoration: none;
	color: var( --text-muted );
	font-size: 13px;
	line-height: 1.4;
}

.atg-toc__num {
	font-family: var( --font-mono );
	font-size: 11px;
	color: var( --text-faint );
	padding-top: 1px;
}

.atg-toc__link:hover,
.atg-toc__link:focus {
	color: #fff;
}

.atg-toc__link.is-active {
	color: var( --text-strong );
	font-weight: 500;
}

.atg-toc__link.is-active .atg-toc__num {
	color: var( --glacier );
}

.atg-side__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.atg-side__list a {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: var( --text );
	text-decoration: none;
}

.atg-side__list a:hover,
.atg-side__list a:focus {
	color: var( --glacier );
}

.atg-fieldnotes {
	border: 1px solid var( --rule-14 );
	padding: 18px 20px;
}

.atg-fieldnotes__grid {
	margin: 0;
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 18px 16px;
	margin-top: 16px;
}

.atg-fieldnotes__value {
	font-size: 20px;
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -.02em;
	color: var( --text-strong );
	margin-bottom: 6px;
}

.atg-fieldnotes__label {
	margin: 0;
	font-family: var( --font-mono );
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var( --text-faint );
	line-height: 1.4;
}

/* Collapsed TOC (tablet / mobile) */
.atg-toc-mobile {
	display: none;
	border: 1px solid var( --rule-14 );
	margin-bottom: 32px;
}

.atg-toc-mobile > summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 18px;
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var( --glacier );
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.atg-toc-mobile > summary::-webkit-details-marker {
	display: none;
}

.atg-toc-mobile > summary::after {
	content: "+";
	color: var( --text-faint );
}

.atg-toc-mobile[ open ] > summary::after {
	content: "\2212";
}

.atg-toc-mobile .atg-toc__list {
	padding: 0 18px 10px;
	border-top: 1px solid var( --rule-08 );
}

/* ==========================================================================
   14. Category / archive
   ========================================================================== */

.atg-secthead-wrap {
	padding-top: 44px;
}

.atg-secthead {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 48px;
	align-items: end;
	padding-bottom: 48px;
}

.atg-secthead__title {
	font-size: var( --fs-section );
	line-height: .96;
	letter-spacing: -.035em;
	font-weight: 500;
	color: var( --text-strong );
	margin-bottom: 22px;
}

.atg-secthead__desc {
	font-size: 18px;
	line-height: 1.5;
	color: var( --text-muted );
	max-width: 520px;
}

.atg-sortbar {
	border-top: 1px solid var( --rule-10 );
	border-bottom: 1px solid var( --rule-10 );
}

.atg-sortbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 14px;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-feature {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 48px;
	align-items: center;
	padding-block: 40px;
	border-bottom: 1px solid var( --rule-09 );
}

.atg-feature__media {
	display: block;
	height: 360px;
	border: 1px solid var( --rule-14 );
	background: var( --ink-raised );
	overflow: hidden;
}

.atg-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atg-feature__meta {
	font-family: var( --font-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var( --glacier );
	margin-bottom: 16px;
}

.atg-feature__title {
	font-size: var( --fs-feature );
	line-height: 1.1;
	letter-spacing: -.025em;
	font-weight: 500;
	margin-bottom: 16px;
}

.atg-feature__title a {
	color: var( --text-strong );
	text-decoration: none;
}

.atg-feature__title a:hover,
.atg-feature__title a:focus {
	color: var( --glacier );
}

.atg-feature__excerpt {
	font-size: 17px;
	line-height: 1.55;
	color: var( --text-muted );
	margin-bottom: 20px;
}

.atg-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.atg-listrow {
	display: grid;
	grid-template-columns: 36px 200px minmax( 0, 1fr ) 110px;
	gap: 24px;
	align-items: start;
	padding-block: 24px;
	border-bottom: 1px solid var( --rule-09 );
}

.atg-listrow__num {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	color: var( --text-faint );
	padding-top: 4px;
}

.atg-listrow__media {
	display: block;
	width: 200px;
	height: 134px;
	border: 1px solid var( --rule-14 );
	background: var( --ink-raised );
	overflow: hidden;
}

.atg-listrow__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atg-listrow__title {
	font-size: 22px;
	line-height: 1.25;
	letter-spacing: -.015em;
	font-weight: 600;
	margin-bottom: 8px;
}

.atg-listrow__title a {
	color: var( --text-strong );
	text-decoration: none;
}

.atg-listrow__title a:hover,
.atg-listrow__title a:focus {
	color: var( --glacier );
}

.atg-listrow__excerpt {
	font-size: 15px;
	line-height: 1.5;
	color: var( --text-muted );
}

.atg-listrow__date {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	color: var( --text-faint );
	text-align: right;
	padding-top: 4px;
}

.atg-pag {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 28px;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-pag a {
	color: var( --glacier );
	text-decoration: none;
}

.atg-pag a:hover,
.atg-pag a:focus {
	color: var( --glacier-hi );
}

.atg-pag__off {
	opacity: .45;
}

/* ==========================================================================
   15. Comments (kept plain — the guides rarely use them)
   ========================================================================== */

.atg-comments {
	border-top: 1px solid var( --rule-14 );
	padding-top: 40px;
	margin-top: 48px;
}

.atg-comments ol {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

.atg-comments .comment-body {
	border-bottom: 1px solid var( --rule-08 );
	padding-bottom: 18px;
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.6;
}

.atg-comments .comment-meta,
.atg-comments .comment-metadata,
.atg-comments .comment-author {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
}

.atg-comments label,
.atg-comments .comment-notes,
.atg-comments .comment-form-cookies-consent label {
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --text-faint );
	display: block;
	margin-bottom: 8px;
}

.atg-comments .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atg-comments .comment-form-cookies-consent label {
	margin-bottom: 0;
	text-transform: none;
	letter-spacing: .04em;
}

.atg-comments .comment-form-cookies-consent input[ type="checkbox" ] {
	width: auto;
	flex: 0 0 auto;
	accent-color: var( --glacier );
}

.atg-comments p {
	margin: 0 0 20px;
}

.atg-comments input[ type="text" ],
.atg-comments input[ type="email" ],
.atg-comments input[ type="url" ],
.atg-comments textarea {
	width: 100%;
	background: var( --ink-raised );
	border: 1px solid var( --rule-14 );
	color: var( --text-strong );
	font-family: inherit;
	font-size: 16px;
	padding: 10px 12px;
}

.atg-comments .submit {
	background: none;
	border: 1px solid var( --rule-18 );
	color: var( --text );
	cursor: pointer;
	font-family: var( --font-mono );
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 10px 16px;
	transition: color var( --ease ), border-color var( --ease );
}

.atg-comments .submit:hover,
.atg-comments .submit:focus {
	border-color: var( --glacier );
	color: var( --glacier );
}

/* ==========================================================================
   16. Utility
   ========================================================================== */

.atg-404-search {
	padding-block: 32px 40px;
	max-width: 640px;
}

.atg-nowrap {
	white-space: nowrap;
}

.atg-empty {
	font-size: 18px;
	line-height: 1.6;
	color: var( --text-muted );
	padding-block: 40px 56px;
	max-width: 640px;
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media ( max-width: 1199px ) {
	:root {
		--fs-display: 72px;
		--fs-section: 64px;
	}

	.atg-nav ul {
		gap: 16px;
	}

	.atg-nav a {
		font-size: 12.5px;
	}

	.atg-altitude {
		display: none;
	}

	.atg-body,
	.atg-body--single {
		grid-template-columns: minmax( 0, 1fr ) 300px;
		gap: 48px;
	}

	.atg-body--solo {
		grid-template-columns: minmax( 0, 1fr );
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		width: 100%;
		margin-inline: 0;
	}
}

@media ( max-width: 1023px ) {
	:root {
		--gutter: 24px;
		--fs-display: 64px;
		--fs-section: 56px;
		--fs-h1: 46px;
	}

	.atg-hero__grid,
	.atg-secthead {
		grid-template-columns: minmax( 0, 1fr );
		gap: 32px;
	}

	.atg-hero__grid .atg-figure,
	.atg-secthead .atg-figure {
		order: 2;
	}

	.atg-figure--hero .atg-figure__media,
	.atg-figure--section .atg-figure__media {
		height: 300px;
	}

	.atg-arthero .atg-figure__media {
		height: 380px;
	}

	.atg-stats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		row-gap: 4px;
	}

	.atg-stat:nth-child( 3 ) {
		border-left: 0;
		padding-left: 0;
	}

	.atg-stat:nth-child( n + 3 ) {
		border-top: 1px solid var( --rule-10 );
		padding-top: 18px;
	}

	/* single column article, TOC folds into a details above the content */
	.atg-body,
	.atg-body--single,
	.atg-body--solo {
		grid-template-columns: minmax( 0, 1fr );
		gap: 48px;
	}

	.atg-side {
		position: static;
	}

	.atg-side--toc-only {
		display: none;
	}

	.atg-toc-mobile {
		display: block;
	}

	.atg-cards {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.atg-index__grid--three {
		columns: 2;
	}

	.atg-listrow {
		grid-template-columns: 160px minmax( 0, 1fr ) 100px;
	}

	.atg-nav {
		display: none;
	}

	.atg-navtoggle {
		display: inline-flex;
	}

	.atg-listrow__num {
		display: none;
	}

	.atg-listrow__media {
		width: 160px;
		height: 107px;
	}

	.atg-feature {
		gap: 32px;
	}

	.atg-feature__media {
		height: 280px;
	}

	.atg-trow {
		grid-template-columns: 190px minmax( 0, 1fr );
	}
}

@media ( max-width: 767px ) {
	:root {
		--fs-display: 56px;
		--fs-section: 48px;
		--fs-h1: 36px;
		--fs-h2: 26px;
		--fs-h2-index: 26px;
		--fs-feature: 28px;
		--fs-stat: 22px;
	}

	.atg-hero__title,
	.atg-secthead__title {
		letter-spacing: -.03em;
	}

	.atg-header__inner {
		flex-wrap: wrap;
		gap: 14px;
	}

	.atg-hero {
		padding-block: 40px 40px;
	}

	.atg-hero__title {
		margin-bottom: 20px;
	}

	.atg-stats {
		margin-top: 36px;
	}

	.atg-cards,
	.atg-prevnext,
	.atg-feature {
		grid-template-columns: minmax( 0, 1fr );
	}

	.atg-index__grid,
	.atg-index__grid--three {
		columns: 1;
	}

	.atg-prevnext__cell--next {
		text-align: left;
	}

	.atg-feature__media {
		height: 220px;
	}

	.atg-listrow {
		grid-template-columns: minmax( 0, 1fr );
		gap: 14px;
	}

	.atg-listrow__media {
		width: 100%;
		height: 180px;
	}

	.atg-listrow__date {
		text-align: left;
	}

	.atg-arthero .atg-figure__media {
		height: 260px;
	}

	.atg-figure--hero .atg-figure__media,
	.atg-figure--section .atg-figure__media {
		height: 240px;
	}

	.atg-figcap {
		flex-direction: column;
		gap: 4px;
	}

	.atg-figcap__note {
		text-align: left;
	}

	.atg-metabar {
		gap: 8px 20px;
	}

	.atg-metabar__end {
		margin-left: 0;
	}

	/* tables become stacked label / value pairs */
	.atg-trow {
		grid-template-columns: minmax( 0, 1fr );
		gap: 6px;
	}

	.atg-tablebox table,
	.atg-tablebox thead,
	.atg-tablebox tbody,
	.atg-tablebox th,
	.atg-tablebox td,
	.atg-tablebox tr {
		display: block;
	}

	.atg-tablebox--wide table th,
	.atg-tablebox--wide table td {
		border-bottom: 0;
		padding: 4px 18px;
	}

	.atg-tablebox--wide table tr {
		border-bottom: 1px solid var( --rule-08 );
		padding-block: 10px;
	}

	.atg-tablebox--wide table tr:last-child {
		border-bottom: 0;
	}

	.atg-note,
	.entry-content .is-style-field-note,
	.entry-content blockquote,
	.entry-content .wp-block-quote {
		grid-template-columns: minmax( 0, 1fr );
		gap: 10px;
	}

	.entry-content blockquote > * {
		grid-column: 1;
	}

	.atg-faq__row {
		grid-template-columns: minmax( 0, 1fr );
		gap: 6px;
	}

	.atg-footer__grid {
		grid-template-columns: minmax( 0, 1fr );
		gap: 32px;
	}

	.atg-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.atg-body,
	.atg-body--single {
		padding-block: 36px 40px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin-inline: 0;
		max-width: 100%;
	}

	/* Touch targets: the mono links and the menu links are 14–18px of text,
	   so give them the height a finger needs without moving the layout. */
	a.atg-morelink,
	.atg-crumbs a,
	.atg-footer a,
	.atg-side__list a,
	.atg-card__meta a,
	.atg-pag a {
		display: inline-block;
		padding-block: 5px;
	}

	.atg-footer ul {
		gap: 4px 16px;
	}

	.atg-headrow {
		align-items: center;
	}
}

@media ( max-width: 599px ) {
	:root {
		--gutter: 20px;
	}

	.atg-hero__title {
		font-size: 44px;
	}

	.atg-secthead__title {
		font-size: 40px;
	}

	.atg-footer__menu--two {
		grid-template-columns: minmax( 0, 1fr );
		grid-auto-flow: row;
		grid-template-rows: none;
	}
}

@media print {
	.atg-header,
	.atg-footer,
	.atg-side,
	.atg-toc-mobile,
	.atg-prevnext {
		display: none;
	}

	body {
		background: #fff;
		color: #111;
	}
}
