/* NotDaily / field guide. Loaded exclusively outside the homepage. */
.nd-inner {
	--nd-reading: 68ch;
	--nd-inner-line: #dededb;
}

.nd-inner main :is(a, button, summary):focus-visible {
	outline: 3px solid var(--nd-red);
	outline-offset: 5px;
}

.nd-breadcrumbs {
	padding-block: 23px;
	font-size: 11px;
	font-weight: 550;
	line-height: 1.6;
	color: #70706b;
}

.nd-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nd-breadcrumbs li + li::before {
	margin-right: 12px;
	color: #c0c0bc;
	content: "/";
}

.nd-breadcrumbs a:hover,
.nd-breadcrumbs [aria-current] { color: var(--nd-black); }

.nd-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 25px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .15em;
	line-height: 1.4;
	text-transform: uppercase;
}

.nd-kicker > span {
	padding-right: 13px;
	border-right: 1px solid #d8d8d5;
	color: var(--nd-red-dark);
	font-variant-numeric: tabular-nums;
}

.nd-page-hero { padding-bottom: 44px; }
.nd-page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
	align-items: center;
	gap: clamp(32px, 4.8vw, 78px);
}

.nd-page-hero__copy { padding-block: 30px 35px; min-width: 0; }
.nd-page-hero h1 {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding-right: .42em;
	font-size: clamp(56px, 6.7vw, 100px);
	font-weight: 850;
	letter-spacing: -.065em;
	line-height: .98;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.nd-title-stop {
	position: absolute;
	right: 0;
	bottom: -.025em;
	color: var(--nd-red);
	font-weight: 850;
}

.nd-page-hero__intro {
	max-width: 480px;
	margin: 29px 0 0;
	color: #676767;
	font-size: clamp(15px, 1.3vw, 18px);
	line-height: 1.6;
	text-wrap: pretty;
}

.nd-page-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.nd-action {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 56px;
	padding: 17px 23px;
	border: 1px solid var(--nd-black);
	border-radius: 8px;
	background: var(--nd-black);
	color: white;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .02em;
	transition: background .2s, border-color .2s;
}
.nd-action svg { width: 20px; height: 20px; flex: 0 0 20px; }
.nd-page :is(.nd-action, .nd-aside-link, .nd-page-end) svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nd-action:hover { background: var(--nd-red-dark); border-color: var(--nd-red-dark); color: white; }
.nd-scroll-link { display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: 11px; font-weight: 650; }
.nd-scroll-link span { font-size: 22px; color: var(--nd-red); }

.nd-page-hero__visual {
	position: relative;
	width: 100%;
	height: clamp(390px, 34vw, 490px);
	margin: 0;
	overflow: hidden;
	border-radius: 16px 16px 16px 3px;
	background: #eaeae6;
}
.nd-page-hero__visual > img { width: 100%; height: calc(100% - 46px); display: block; object-fit: cover; }
.nd-photo-corner { position: absolute; top: 0; left: 0; width: 46px; height: 46px; background: white; clip-path: polygon(0 0, 100% 0, 0 100%); }
.nd-page-hero__visual figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 20px; background: var(--nd-black); color: white; }
.nd-page-hero__visual figcaption > span:first-child { font-weight: 850; font-size: 19px; letter-spacing: -.055em; }
.nd-page-hero__visual figcaption > span:last-child { display: flex; align-items: center; gap: 18px; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.nd-page-hero__visual figcaption i { color: var(--nd-red); font-size: 21px; font-style: normal; }
.nd-page-hero__visual--poster > img { object-fit: contain; background: #171717; }
.nd-page[data-page="participants"] .nd-page-hero__visual > img,
.nd-page[data-page="drift"] .nd-page-hero__visual > img { object-position: 43% center; }
.nd-page[data-page="media"] .nd-page-hero__visual > img,
.nd-page[data-page="accreditation"] .nd-page-hero__visual > img { object-position: 60% center; }

.nd-page--guide .nd-page-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.nd-page--guide .nd-page-hero h1 { font-size: clamp(46px, 5.3vw, 80px); }
.nd-page--guide .nd-page-hero__visual { height: 330px; }
.nd-page--guide .nd-page-hero__intro { max-width: 620px; }
.nd-page-hero--plain { position: relative; overflow: hidden; background: #f5f5f2; padding-block: 30px 32px; margin-bottom: 0; }
.nd-page-hero--plain .nd-page-hero__grid { grid-template-columns: minmax(0, 1fr) 280px; }
.nd-page-hero--plain .nd-page-hero__copy { padding-block: 20px; }
.nd-page-hero--plain h1 { max-width: 900px; }
.nd-page-hero--plain .nd-page-hero__intro { max-width: 590px; margin-top: 22px; }
.nd-page-hero--plain .nd-page-hero__actions { margin-top: 24px; }
.nd-page-hero__graphic { display: flex; position: relative; align-items: flex-end; justify-content: flex-end; height: 240px; gap: 11px; padding: 20px; }
.nd-page-hero__graphic > span { position: absolute; top: -20px; right: 22px; font-size: 210px; font-weight: 850; line-height: 1; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px #deded7; }
.nd-page-hero__graphic i { z-index: 1; width: 32px; height: 93px; transform: skewX(-15deg); border-radius: 2px; background: var(--nd-red); }

.nd-section-rail { position: sticky; top: 0; z-index: 15; border-block: 1px solid var(--nd-inner-line); background: rgb(255 255 255 / 97%); }
.nd-section-rail__inner { display: flex; align-items: center; gap: 28px; }
.nd-section-rail__label { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; font-size: 10px; font-weight: 800; }
.nd-section-rail__label > span { font-size: 20px; color: var(--nd-red); }
.nd-section-rail nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ddd transparent; }
.nd-section-rail ul { display: flex; gap: 26px; width: max-content; margin: 0; padding: 0; list-style: none; }
.nd-section-rail a { display: block; padding: 24px 0 21px; border-bottom: 3px solid transparent; font-size: 11px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.nd-section-rail a.is-active { color: var(--nd-red-dark); border-bottom-color: var(--nd-red); }
.nd-section-rail a:hover { color: var(--nd-red-dark); }
.admin-bar .nd-section-rail { top: 32px; }

.nd-page-body { padding-block: 70px 32px; }
.nd-page-body--aside { display: grid; grid-template-columns: minmax(0, 1fr) 238px; gap: clamp(40px, 6vw, 110px); align-items: start; }
.nd-page-content { min-width: 0; }
.nd-page-content > :is(p, ul:not(.nd-facts), ol:not(.nd-steps)) { max-width: var(--nd-reading); }
.nd-page--overview .nd-page-content > .nd-lead { max-width: 900px; }
.nd-page-aside { position: sticky; top: 96px; padding-top: 6px; }
.nd-page-toc .nd-kicker { margin-bottom: 16px; font-size: 9px; letter-spacing: .1em; }
.nd-page-toc nav { border-top: 1px solid var(--nd-inner-line); }
.nd-page-toc a { display: flex; align-items: baseline; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--nd-inner-line); color: #666; font-size: 11px; font-weight: 600; line-height: 1.55; }
.nd-page-toc a > span { flex: 0 0 20px; color: #aaa; font-size: 9px; font-weight: 550; }
.nd-page-toc a[aria-current], .nd-page-toc a:hover { color: var(--nd-red-dark); }
.nd-aside-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 32px; padding: 22px 18px; border-radius: 10px; background: #f2f2ef; font-size: 11px; color: #777; }
.nd-aside-link strong { display: block; margin-top: 5px; color: var(--nd-black); font-size: 13px; line-height: 1.4; }
.nd-aside-link svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--nd-red); }
.nd-page-jump { display: none; }
.nd-page [id] { scroll-margin-top: 100px; }

.nd-faq-search { max-width: 860px; margin-bottom: 32px; }
.nd-faq-search label { display: block; margin-bottom: 14px; font-weight: 750; font-size: 18px; letter-spacing: -.025em; }
.nd-faq-search > div { display: flex; gap: 14px; align-items: center; border: 1px solid #cececa; border-radius: 10px; padding: 12px 18px; background: #fafaf8; }
.nd-faq-search svg { width: 22px; height: 22px; flex: 0 0 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nd-faq-search input { min-width: 0; width: 100%; padding: 6px 0; border: 0; background: transparent; font: inherit; font-size: 14px; outline-offset: 2px; }
.nd-faq-search button { min-height: 40px; border: 0; background: transparent; color: #767672; font: inherit; font-size: 10px; font-weight: 650; cursor: pointer; }
.nd-faq-search [role="status"] { margin: 12px 0 0; font-size: 12px; }
.nd-page details[hidden] { display: none; }

.nd-page-end { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 38px 60px; border-top: 1px solid var(--nd-inner-line); }
.nd-page-end > span { font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nd-page-end > a { display: flex; align-items: center; gap: 40px; font-size: clamp(19px, 2.3vw, 32px); font-weight: 750; letter-spacing: -.04em; }
.nd-page-end svg { width: 32px; height: 32px; flex: 0 0 32px; color: var(--nd-red); transition: transform .2s; }
.nd-page-end a:hover svg { transform: translateX(5px); }

.nd-error__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding-block: 80px 120px; }
.nd-error__number { font-size: clamp(100px, 18vw, 290px); font-weight: 850; letter-spacing: -.075em; line-height: 1; }
.nd-error__number > span { color: var(--nd-red); }
.nd-error h1 { max-width: 12ch; margin: 0 0 20px; font-size: clamp(30px, 4vw, 55px); line-height: 1.08; letter-spacing: -.04em; }
.nd-error__grid > div > p:not(.nd-kicker) { max-width: 40ch; color: #777; margin-bottom: 28px; }
.nd-error .nd-scroll-link { margin-top: 15px; }

@media (max-width: 1100px) {
	.nd-page-hero__grid { gap: 30px; }
	.nd-page-hero h1 { font-size: clamp(45px, 6.5vw, 76px); }
	.nd-page-hero__visual { height: 380px; }
	.nd-page-hero__intro { font-size: 15px; }
	.nd-page-hero__actions { gap: 16px; }
	.nd-page-body--aside { grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; }
	.nd-action { gap: 22px; padding-inline: 18px; }
}

@media (max-width: 800px) {
	.nd-breadcrumbs { padding-block: 17px; font-size: 10px; }
	.nd-page-hero__grid, .nd-page--guide .nd-page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 24px; }
	.nd-page-hero h1, .nd-page--guide .nd-page-hero h1 { font-size: clamp(39px, 6.3vw, 55px); letter-spacing: -.055em; }
	.nd-page-hero__visual, .nd-page--guide .nd-page-hero__visual { height: 340px; }
	.nd-page-hero__visual figcaption { padding-inline: 12px; }
	.nd-page-hero__visual figcaption > span:last-child { font-size: 8px; max-width: 125px; }
	.nd-page-hero__visual figcaption i { display: none; }
	.nd-page-hero__copy { padding-block: 12px; }
	.nd-page-hero__intro { font-size: 14px; margin-top: 20px; }
	.nd-page-hero__actions { margin-top: 24px; }
	.nd-page-hero--plain .nd-page-hero__grid { grid-template-columns: minmax(0, 1fr) 140px; }
	.nd-page-hero__graphic { height: 200px; gap: 7px; padding: 0 15px; }
	.nd-page-hero__graphic > span { font-size: 140px; top: 0; right: 0; }
	.nd-page-hero__graphic i { width: 20px; height: 66px; }
	.nd-section-rail__label { display: none; }
	.nd-section-rail ul { gap: 24px; }
	.nd-section-rail a { padding-block: 18px 16px; }
	.nd-page-body { padding-top: 42px; }
	.nd-page-body--aside { display: block; }
	.nd-page-aside { display: none; }
	.nd-page-jump { display: block; margin: 0 0 28px; border-block: 1px solid var(--nd-inner-line); }
	.nd-page-jump summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-block: 14px; font-size: 11px; font-weight: 750; cursor: pointer; list-style: none; }
	.nd-page-jump summary::-webkit-details-marker { display: none; }
	.nd-page-jump summary span { font-size: 20px; color: var(--nd-red); }
	.nd-page-jump[open] summary span { transform: rotate(45deg); }
	.nd-page-jump nav { display: grid; padding-bottom: 16px; gap: 3px; }
	.nd-page-jump a { padding-block: 9px; font-size: 12px; }
	.nd-page-end { padding-block: 28px 40px; }
	.admin-bar .nd-section-rail { top: 46px; }
}

@media (max-width: 600px) {
	.nd-error__grid { display: block; padding-block: 25px 60px; }
	.nd-error__number { display: block; margin-bottom: 25px; font-size: 140px; }
	.nd-inner .nd-page > .site-shell, .nd-inner .nd-page .nd-page-hero > .site-shell, .nd-section-rail > .site-shell { width: calc(100% - 32px); }
	.nd-breadcrumbs { padding-block: 16px; font-size: 9px; }
	.nd-breadcrumbs ol { gap: 5px 8px; }
	.nd-breadcrumbs li + li::before { margin-right: 8px; }
	.nd-page-hero { padding-bottom: 24px; }
	.nd-page-hero__grid, .nd-page--guide .nd-page-hero__grid, .nd-page-hero--plain .nd-page-hero__grid { display: block; }
	.nd-page-hero__copy { padding: 14px 0 26px; }
	.nd-kicker { font-size: 8px; letter-spacing: .12em; margin-bottom: 18px; gap: 10px; }
	.nd-page-hero h1, .nd-page--guide .nd-page-hero h1 { max-width: 100%; font-size: clamp(36px, 10.4vw, 58px); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
	.nd-page-hero__intro { margin-top: 20px; font-size: 14px; line-height: 1.6; max-width: 440px; }
	.nd-page-hero__actions { gap: 18px; margin-top: 22px; }
	.nd-action { min-height: 48px; padding: 13px 16px; font-size: 10px; gap: 26px; }
	.nd-action svg { width: 18px; height: 18px; flex-basis: 18px; }
	.nd-scroll-link { font-size: 10px; gap: 10px; }
	.nd-page-hero__visual, .nd-page--guide .nd-page-hero__visual { height: 230px; border-radius: 12px 12px 12px 2px; }
	.nd-page-hero__visual > img { height: calc(100% - 36px); }
	.nd-page-hero__visual figcaption { height: 36px; padding-inline: 15px; }
	.nd-page-hero__visual figcaption > span:first-child { font-size: 16px; }
	.nd-page-hero__visual figcaption > span:last-child { max-width: none; font-size: 7px; }
	.nd-page-hero__visual figcaption i { display: inline; font-size: 16px; }
	.nd-photo-corner { width: 30px; height: 30px; }
	.nd-page--guide .nd-page-hero--photo .nd-page-hero__visual { height: 180px; }
	.nd-page-hero__visual--poster > img { object-fit: contain; }
	.nd-page-hero--plain { padding-block: 15px 4px; }
	.nd-page-hero--plain .nd-page-hero__copy { padding-block: 14px 25px; }
	.nd-page-hero__graphic { display: none; }
	.nd-section-rail { top: 0; }
	.nd-section-rail nav { scrollbar-width: none; }
	.nd-section-rail nav::-webkit-scrollbar { display: none; }
	.nd-section-rail ul { gap: 21px; }
	.nd-section-rail a { font-size: 10px; padding-block: 17px 15px; }
	.nd-page-body { padding-top: 30px; padding-bottom: 16px; }
	.nd-page-end { display: block; padding-block: 26px 36px; }
	.nd-page-end > span { font-size: 8px; }
	.nd-page-end > a { margin-top: 12px; justify-content: space-between; gap: 20px; font-size: 23px; line-height: 1.15; }
	.nd-page-end svg { width: 26px; height: 26px; flex-basis: 26px; }
	.admin-bar .nd-section-rail { top: 0; }
}

/* Size all section titles against their actual column, not the viewport. */
.nd-page .nd-page-hero__copy { container-type: inline-size; }
.nd-page .nd-page-hero h1 {
	width: fit-content;
	padding-right: 0;
	font-size: clamp(1.75rem, 5vw, 5.25rem);
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	line-height: 1.05;
}
.nd-page .nd-title-stop {
	position: static;
	margin-left: .08em;
}
.nd-title-ending { white-space: nowrap; }
@supports (font-size: 1cqw) {
	.nd-page .nd-page-hero h1 { font-size: clamp(1.75rem, 11cqw, 5.25rem); }
}

@media (prefers-reduced-motion: reduce) {
	.nd-inner { scroll-behavior: auto; }
	.nd-inner *, .nd-inner *::before, .nd-inner *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
