/*
Theme Name:   Try New Ways
Theme URI:    https://trynewways.com
Description:  Child theme of GeneratePress for trynewways.com. Tokens and rules: docs/07-design-system.md.
Author:       Try New Ways
Template:     generatepress
Version:      1.0.0
License:      GPL-2.0-or-later
Text Domain:  trynewways
*/

/* Fonts: self-hosted, OFL (licenses in fonts/). */
@font-face { font-family: "Gloock"; src: url("fonts/gloock-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-italic-400-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks keep layout shift near zero while the web fonts load. */
@font-face { font-family: "Gloock Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 97%; ascent-override: 98%; descent-override: 26%; }

:root {
	--tnw-ink: #272B1E;
	--tnw-ink-soft: #565A4A;
	--tnw-accent: #A94E2C; /* logo terracotta, darkened for AA */
	--tnw-accent-dark: #8C3F22;
	--tnw-sage: #B9C59E;
	--tnw-sage-tint: #F1F3EA;
	--tnw-peach-tint: #FBECE1;
	--tnw-sand-tint: #F5F0E9;
	--tnw-apricot-tint: #FDF2E3;
	--tnw-line: #E6E1D8;
	--tnw-field: #878272;
	--tnw-bg: #FFFFFF;
	--tnw-cream: #FEFBF5; /* the logo's own paper color: footer */

	--tnw-display: "Gloock", "Gloock Fallback", Georgia, serif;
	--tnw-body: "Hanken Grotesk", "Hanken Fallback", Arial, sans-serif;

	--tnw-radius: 22px;
	--tnw-pill: 999px;
	--tnw-shadow: 0 18px 40px rgb(39 43 30 / 0.16), 0 2px 6px rgb(39 43 30 / 0.08);
	--tnw-wide: 1140px;
	--tnw-read: 760px;
	--tnw-gutter: 16px;
}
@media (min-width: 769px) { :root { --tnw-gutter: 40px; } }

/* ---------------------------------------------------------------- base type */
body {
	background: var(--tnw-bg);
	color: var(--tnw-ink);
	font-family: var(--tnw-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 769px) { body { font-size: 18px; } }

h1, h2, h3, .entry-title {
	font-family: var(--tnw-display);
	font-weight: 400;
	color: var(--tnw-ink);
	letter-spacing: -0.005em;
	text-wrap: balance;
}
h1, .entry-title { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12; margin-bottom: 0.5em; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.2; margin: 1.6em 0 0.55em; }
h3 { font-size: clamp(21px, 2.2vw, 23px); line-height: 1.3; margin: 1.4em 0 0.5em; }
h4, h5, h6 { font-family: var(--tnw-body); font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--tnw-ink); }
p { margin-bottom: 1.25em; }
strong, b { font-weight: 700; }
mark { background: linear-gradient(transparent 58%, var(--tnw-sage) 58%, var(--tnw-sage) 92%, transparent 92%); color: inherit; padding: 0 0.08em; }

a { color: var(--tnw-ink); text-decoration-color: var(--tnw-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tnw-accent); }
.entry-content a { text-decoration-line: none; }
.entry-content p a, .entry-content li a, .entry-content td a { text-decoration-line: underline; }
:focus-visible { outline: 3px solid var(--tnw-accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--tnw-sage); color: var(--tnw-ink); }

/* ------------------------------------------------------------------ buttons */
.tnw-button, .wp-block-button__link, a.wp-block-button__link:not(.has-background), button, input[type="submit"], input[type="button"], .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tnw-accent); color: #FFFFFF;
	font-family: var(--tnw-body); font-weight: 700; font-size: 16px; line-height: 1;
	padding: 15px 26px; border: 0; border-radius: var(--tnw-pill);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}
.tnw-button:hover, .wp-block-button__link:hover, a.wp-block-button__link:not(.has-background):hover, button:hover, input[type="submit"]:hover, .button:hover { background: var(--tnw-accent-dark); color: #FFFFFF; }
.tnw-button:active, .wp-block-button__link:active, button:active, input[type="submit"]:active { transform: translateY(1px); }
.tnw-button .tnw-icon { width: 1.15em; height: 1.15em; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--tnw-ink); box-shadow: inset 0 0 0 2px var(--tnw-ink); }
.is-style-outline .wp-block-button__link:hover { background: var(--tnw-ink); color: #FFFFFF; }
.tnw-textlink a, a.tnw-textlink { font-weight: 700; color: var(--tnw-ink); text-decoration: underline; text-decoration-color: var(--tnw-sage); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tnw-textlink a:hover, a.tnw-textlink:hover { text-decoration-color: var(--tnw-accent); color: var(--tnw-ink); }
.wp-block-buttons .wp-block-button.tnw-textlink .wp-block-button__link, .wp-block-buttons .wp-block-button.tnw-textlink .wp-block-button__link:hover { background: transparent; padding: 8px 2px; border-radius: 0; color: var(--tnw-ink); text-decoration: underline; text-decoration-color: var(--tnw-sage); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.wp-block-buttons .wp-block-button.tnw-textlink .wp-block-button__link:hover { text-decoration-color: var(--tnw-accent); }

/* ------------------------------------------------------------------ forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select {
	font-family: var(--tnw-body); font-size: 16px; color: var(--tnw-ink);
	background: #FFFFFF; border: 1.5px solid var(--tnw-field); border-radius: var(--tnw-pill); padding: 12px 18px;
}
textarea { border-radius: 16px; }
input::placeholder, textarea::placeholder { color: #6B6A5C; }
input:focus, textarea:focus, select:focus { border-color: var(--tnw-ink); outline: 3px solid var(--tnw-accent); outline-offset: 1px; }
label { font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------------ icons + mark */
.tnw-icon { width: 1em; height: 1em; display: block; flex: none; }
.tnw-mark { display: block; flex: none; width: 40px; height: auto; }
.tnw-mark--lg { width: 56px; }
.tnw-mark--xl { width: 88px; }
.tnw-logo { display: block; width: auto; height: 58px; max-width: none; }
.tnw-logo--footer { height: 64px; }

/* ------------------------------------------------------------------ header */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--tnw-line); }
.inside-header { padding: 10px var(--tnw-gutter); max-width: var(--tnw-wide); } /* 10 + 58 logo + 10 + 1px border = 79px */
.main-title { margin: 0; font-size: 25px; line-height: 1; }
.main-title { line-height: 0; } /* no text baseline under the logo image (was adding 4px) */
.main-title a { display: block; color: var(--tnw-ink); text-decoration: none; }
.main-title a:hover { color: var(--tnw-ink); }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a, .main-navigation .menu-toggle, .main-navigation .menu-bar-item > a {
	font-family: var(--tnw-body); font-weight: 600; font-size: 15px; color: var(--tnw-ink);
	padding-left: 12px; padding-right: 12px; line-height: 52px;
}
.main-navigation .main-nav ul li a:hover, .main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--tnw-accent); background: transparent; }
.main-navigation .main-nav ul li.current-menu-item > a { text-decoration: underline; text-decoration-color: var(--tnw-sage); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.main-navigation .menu-toggle { background: transparent; font-weight: 700; }
.main-navigation .menu-toggle:hover { background: transparent; color: var(--tnw-accent); }
.navigation-search input[type="search"] { border: 0; border-radius: 0; background: #FFFFFF; color: var(--tnw-ink); }
.navigation-search.nav-search-active input[type="search"] { border-bottom: 2px solid var(--tnw-ink); }
@media (max-width: 768px) {
	.inside-header { padding: 10px var(--tnw-gutter); }
	.main-title { font-size: 21px; }
	.tnw-logo { height: 46px; }
	.tnw-logo--footer { height: 56px; }
	.main-navigation .main-nav ul li a { line-height: 48px; padding-left: var(--tnw-gutter); }
	.main-navigation.toggled .main-nav > ul { border-top: 1px solid var(--tnw-line); }
}

/* ------------------------------------------------------------------ containers */
.site.grid-container, .grid-container { max-width: var(--tnw-wide); }
.one-container .site-content { padding: 40px var(--tnw-gutter) 56px; }
.one-container.right-sidebar .site-main { margin-right: 48px; }
/* Posts: Mediavine wants the sidebar 300px+ and beside the content only from 1024px; below that it moves under the post. */
@media (min-width: 1024px) {
	.right-sidebar .site-content .content-area { width: auto; flex: 1 1 auto; min-width: 0; }
	.right-sidebar .is-right-sidebar { width: 336px; flex: 0 0 336px; }
}
@media (min-width: 769px) and (max-width: 1023px) {
	.right-sidebar .site-content { flex-direction: column; }
	.right-sidebar .site-content .content-area, .right-sidebar .is-right-sidebar { width: 100%; }
	.one-container.right-sidebar .site-main { margin-right: 0; }
}
.inside-article { padding: 0; }
.no-sidebar .entry-content, .no-sidebar .entry-header { max-width: var(--tnw-read); margin-left: auto; margin-right: auto; }
.entry-header { margin-bottom: 1.4em; }
.entry-meta { font-size: 14px; color: var(--tnw-ink-soft); }
.entry-meta a { color: var(--tnw-ink-soft); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img, .wp-block-image img { border-radius: 16px; }
.entry-content ul, .entry-content ol { margin-left: 1.25em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--tnw-accent); }
.entry-content blockquote { border-left: 4px solid var(--tnw-sage); padding: 4px 0 4px 20px; margin: 1.6em 0; font-style: normal; }
.entry-content hr { border: 0; height: 1px; background: var(--tnw-line); margin: 2.5em 0; }
@media (max-width: 768px) {
	.one-container .site-content { padding: 28px var(--tnw-gutter) 40px; }
	.one-container.right-sidebar .site-main { margin-right: 0; }
}

/* Full-width pages (homepage): bands run edge to edge, content stays in the container. */
.full-width-content .site-content, .one-container.full-width-content .site-content { padding: 0; }
.full-width-content .entry-content { max-width: none; }
.tnw-band { padding: clamp(40px, 6vw, 72px) var(--tnw-gutter); margin: 0 !important; }
/* Same content edge as the header, footer and posts (container minus its gutters). */
.tnw-band > .wp-block-group__inner-container, .tnw-band > .tnw-inner { max-width: calc(var(--tnw-wide) - 2 * var(--tnw-gutter)); margin: 0 auto; }
.site-main .tnw-band > .wp-block-group__inner-container { padding: 0; } /* GeneratePress pads every group 30-40px; bands set their own */
.tnw-band--tint { background: var(--tnw-sage-tint); }
.tnw-band--rose { background: var(--tnw-peach-tint); }

/* ------------------------------------------------------------------ hero (home) */
.tnw-hero .wp-block-columns { align-items: center; gap: clamp(28px, 5vw, 64px); margin: 0; }
.tnw-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; }
.tnw-hero .tnw-lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--tnw-ink-soft); max-width: 34ch; margin-bottom: 28px; }
.tnw-hero .wp-block-buttons { gap: 22px; align-items: center; }
.tnw-hero__img img { width: min(340px, 100%); height: auto; border-radius: 8px; box-shadow: var(--tnw-shadow); transform: rotate(2deg); display: block; margin: 0 auto; }
@media (max-width: 781px) {
	.tnw-hero__img img { width: min(220px, 70%); }
}
@media (prefers-reduced-motion: no-preference) {
	.tnw-hero__img img { animation: tnw-settle 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
	@keyframes tnw-settle { from { transform: rotate(6deg) translateY(12px); } to { transform: rotate(2deg) translateY(0); } }
}

/* ------------------------------------------------------------------ section headings (home) */
.tnw-section-title { font-size: clamp(26px, 3vw, 34px); margin: 0 0 22px; }

/* ------------------------------------------------------------------ hub cards */
.tnw-hubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tnw-hubcard { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--tnw-radius); color: var(--tnw-ink); text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.tnw-hubcard:hover { color: var(--tnw-ink); transform: translateY(-3px); }
.tnw-hubcard__icon { font-size: 28px; color: var(--tnw-accent); }
.tnw-hubcard__name { font-family: var(--tnw-display); font-size: 21px; line-height: 1.2; }
.tnw-hubcard__blurb { font-size: 15px; color: var(--tnw-ink-soft); line-height: 1.5; }
@media (max-width: 960px) { .tnw-hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tnw-hubs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tnw-hubcard, .tnw-card a { transition: none; } .tnw-hubcard:hover, .tnw-card a:hover .tnw-card__img { transform: none; } }

.tnw-tint--sage { background: var(--tnw-sage-tint); }
.tnw-tint--peach { background: var(--tnw-peach-tint); }
.tnw-tint--sand { background: var(--tnw-sand-tint); }
.tnw-tint--apricot { background: var(--tnw-apricot-tint); }

/* ------------------------------------------------------------------ about teaser (home) */
.tnw-about { text-align: center; }
.tnw-about .tnw-inner, .tnw-about > .wp-block-group__inner-container { max-width: 620px; }
.tnw-about .tnw-mark { margin: 0 auto 18px; }
.tnw-about h2 { margin-top: 0; }
.tnw-about p { color: var(--tnw-ink-soft); }

/* ------------------------------------------------------------------ planner box */
.tnw-planner { display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: center; background: var(--tnw-peach-tint); border-radius: var(--tnw-radius); padding: clamp(20px, 3vw, 32px); margin: 2.2em 0; }
.tnw-planner__cover { width: 140px; height: auto; border-radius: 6px !important; box-shadow: 0 10px 24px rgb(39 43 30 / 0.18); transform: rotate(-2deg); }
.tnw-planner__title { font-family: var(--tnw-display); font-size: 24px; line-height: 1.15; margin: 0 0 6px; }
.tnw-planner__body p { margin-bottom: 16px; font-size: 16px; color: var(--tnw-ink-soft); }
.tnw-planner__body p.tnw-planner__title { color: var(--tnw-ink); font-size: 24px; margin-bottom: 6px; }
.tnw-planner--home { background: #FFFFFF; max-width: 880px; margin: 0 auto; grid-template-columns: 200px 1fr; box-shadow: 0 1px 0 var(--tnw-line); }
.tnw-planner--home .tnw-planner__cover { width: 200px; }
.tnw-planner--home .tnw-planner__body p.tnw-planner__title { font-size: clamp(26px, 3vw, 32px); }
.tnw-planner--side { grid-template-columns: 1fr; text-align: left; margin: 0; padding: 22px; }
.tnw-planner--side .tnw-planner__cover { width: 120px; }
.tnw-planner--side .tnw-planner__title { font-size: 21px; }
.tnw-planner--side .tnw-button { width: 100%; }
.tnw-planner--hub { margin: 0 0 8px; }
@media (max-width: 600px) {
	.tnw-planner, .tnw-planner--home { grid-template-columns: 1fr; }
	.tnw-planner__cover, .tnw-planner--home .tnw-planner__cover { width: 120px; }
}

/* ------------------------------------------------------------------ post cards */
.tnw-cards { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tnw-card a { display: grid; gap: 8px; color: var(--tnw-ink); text-decoration: none; }
.tnw-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--tnw-radius) !important; display: grid; place-items: center; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.tnw-card__img--empty { background: var(--tnw-sand-tint); color: var(--tnw-field); font-size: 36px; }
.tnw-card a:hover .tnw-card__img { transform: translateY(-3px); }
.tnw-card a:hover .tnw-card__title { color: var(--tnw-accent); }
.tnw-card__title { font-family: var(--tnw-display); font-size: 21px; line-height: 1.25; text-wrap: balance; }
.tnw-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tnw-accent); }
.tnw-meta { font-size: 14px; color: var(--tnw-ink-soft); }
@media (max-width: 960px) { .tnw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tnw-cards { grid-template-columns: 1fr; } }
.tnw-latest h2 { margin-top: 0; }

/* ------------------------------------------------------------------ archives + category hubs */
.archive .site-main, .blog .site-main, .search .site-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.archive .site-main > :not(article), .blog .site-main > :not(article), .search .site-main > :not(article) { grid-column: 1 / -1; }
@media (max-width: 960px) { .archive .site-main, .blog .site-main, .search .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .archive .site-main, .blog .site-main, .search .site-main { grid-template-columns: 1fr; } }
.archive .site-main > article, .blog .site-main > article, .search .site-main > article { margin: 0; }
.tnw-hub { border-radius: var(--tnw-radius); padding: clamp(28px, 5vw, 48px); margin-bottom: 8px; }
.tnw-hub__icon { font-size: 34px; color: var(--tnw-accent); margin-bottom: 12px; }
.tnw-hub__title { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 48px); }
.tnw-hub__intro { max-width: 62ch; color: var(--tnw-ink-soft); font-size: 18px; }
.tnw-hub__intro p:last-child { margin-bottom: 0; }
.page-header { margin-bottom: 8px; }
.paging-navigation { padding-top: 12px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--tnw-pill); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--tnw-ink); color: #FFFFFF; }

/* Empty state (no posts yet in a hub, nothing found in search). */
.tnw-empty { display: grid; gap: 6px; padding: 8px 0 0; }
.tnw-empty h2 { margin: 12px 0 4px; }
.tnw-empty p { color: var(--tnw-ink-soft); max-width: 60ch; margin: 0 0 12px; }
.tnw-empty .tnw-hubs { margin-top: 18px; }

/* ------------------------------------------------------------------ single post */
.rank-math-breadcrumb { font-size: 14px; color: var(--tnw-ink-soft); margin-bottom: 14px; }
.rank-math-breadcrumb a { color: var(--tnw-ink-soft); text-decoration: none; font-weight: 600; }
.rank-math-breadcrumb a:hover { color: var(--tnw-accent); }
.rank-math-breadcrumb .separator { padding: 0 6px; }
.single .entry-header .entry-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.single .post-image img { border-radius: var(--tnw-radius); }
.tnw-disclosure { font-size: 14px; color: var(--tnw-ink-soft); border-left: 3px solid var(--tnw-sage); padding-left: 12px; margin: 0 0 1.8em; }
.tnw-disclosure a { color: var(--tnw-ink-soft); }
.single footer.entry-meta { display: none; }
.tnw-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--tnw-sand-tint); border-radius: var(--tnw-radius); padding: 24px; margin: 2.6em 0 0; font-size: 16px; }
.tnw-author p { margin: 0 0 8px; color: var(--tnw-ink-soft); }
.tnw-author .tnw-author__name { font-weight: 700; color: var(--tnw-ink); }
.tnw-author a { font-weight: 700; }
.tnw-related { margin-top: 2.8em; }
.tnw-related h2 { margin: 0 0 18px; }
.tnw-related .tnw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .tnw-related .tnw-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tnw-related .tnw-cards { grid-template-columns: 1fr; } }
.wp-block-rank-math-toc-block, .rank-math-toc { background: var(--tnw-sage-tint); border-radius: var(--tnw-radius); padding: 20px 24px; margin: 1.8em 0; }

/* Sidebar (posts only): short, so the Mediavine sticky ad has room. No overflow:hidden here (sticky ads need it visible). */
.inside-right-sidebar { padding-top: 6px; }
.tnw-side { display: grid; gap: 20px; }
.tnw-side__card { background: var(--tnw-sand-tint); border-radius: var(--tnw-radius); padding: 22px; font-size: 15px; }
.tnw-side__card .tnw-mark { margin-bottom: 12px; }
.tnw-side__title { font-family: var(--tnw-display); font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.tnw-side__card p { margin: 0 0 10px; color: var(--tnw-ink-soft); }
.tnw-side__card a { font-weight: 700; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--tnw-cream); color: var(--tnw-ink); border-top: 1px solid var(--tnw-line); }
.site-footer a { color: var(--tnw-ink); text-decoration-color: var(--tnw-accent); }
.site-footer a:hover { color: var(--tnw-accent); }
.tnw-footer { max-width: var(--tnw-wide); margin: 0 auto; padding: 56px var(--tnw-gutter) 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.tnw-footer__logo { display: inline-block; text-decoration: none; }
.tnw-footer__brand p { color: var(--tnw-ink-soft); margin: 14px 0 0; max-width: 34ch; font-size: 16px; }
.tnw-footer__col h2 { font-family: var(--tnw-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tnw-ink-soft); margin: 6px 0 14px; }
.tnw-footer__col ul { list-style: none; margin: 0; display: grid; gap: 8px; font-size: 16px; }
.tnw-footer__col a { text-decoration: none; }
.tnw-footer__col a:hover { text-decoration: underline; }
.site-info { background: var(--tnw-cream); color: var(--tnw-ink-soft); font-size: 14px; border-top: 1px solid var(--tnw-line); }
.inside-site-info { max-width: var(--tnw-wide); padding: 18px var(--tnw-gutter); }
@media (max-width: 768px) { .tnw-footer { grid-template-columns: 1fr 1fr; padding-top: 40px; } .tnw-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .tnw-footer { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ printables gallery */
/* A fixed grid (WordPress's flex gallery stretches the last row), swipeable on phones. */
.wp-block-gallery.has-nested-images.tnw-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 1.2em 0 1.6em; align-items: start; }
.wp-block-gallery.has-nested-images.tnw-gallery figure.wp-block-image { width: auto !important; margin: 0; flex-direction: column; }
.wp-block-gallery.has-nested-images.tnw-gallery figure.wp-block-image img { border-radius: 6px !important; box-shadow: 0 6px 16px rgb(39 43 30 / 0.12); height: auto; }
.wp-block-gallery.has-nested-images.tnw-gallery figure.wp-block-image:has(figcaption)::before { content: none; display: none; }
.wp-block-gallery.has-nested-images.tnw-gallery figure.wp-block-image figcaption { position: static; background: none; color: var(--tnw-ink-soft); font-size: 13px; line-height: 1.4; padding: 10px 0 0; margin: 0; text-align: left; text-shadow: none; max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; backdrop-filter: none; }
@media (max-width: 700px) {
	.wp-block-gallery.has-nested-images.tnw-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
	.wp-block-gallery.has-nested-images.tnw-gallery figure.wp-block-image { scroll-snap-align: start; }
}
.tnw-lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--tnw-ink-soft); }

/* ------------------------------------------------------------------ misc */
.wp-block-separator { border: 0; height: 1px; background: var(--tnw-line); }
.screen-reader-text:focus { background: #FFFFFF; color: var(--tnw-ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
