/* ==========================================================================
   FXVane v2 layout — top nav + categorized hub.
   Loaded after main.css + skin.css; reuses brand tokens (--seal / --paper / --ink)
   and the Literata / Atkinson Hyperlegible / Martian Mono type system.
   ========================================================================== */

/* ---- content flows full-width under the top nav ---- */
body.v2 #wrapper { padding-right: 0; background: transparent; }
body.v2 #main > section { border-top: 0; }
body.v2 #main > section > .container { padding: 2.6em 1.4em 3.4em; }
body.v2 #main .container { width: 100%; max-width: 46rem; margin-left: auto; margin-right: auto; }
body.v2 #main .container.wide { max-width: 74rem; font-size: 1rem; }
/* article hero: constrain full-bleed banner to content width + round it (matches card system) */
body.v2 #main .image.main { max-width: 74rem; margin: 1.6em auto 0.4em; border-radius: 12px; overflow: hidden; }

/* ---------------------------------------------------------------- top nav -- */
.topnav {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--rule, #e3e1de);
}
.topnav-in {
	position: relative;
	max-width: 74rem; margin: 0 auto; padding: 0 1.4em;
	display: flex; align-items: center; gap: 1.2em; height: 64px;
}
.topnav .brand {
	font-family: "Literata", Georgia, serif; font-weight: 700; font-size: 1.16em;
	color: var(--seal, #7c2d3a); text-decoration: none; letter-spacing: -0.01em;
	white-space: nowrap; border-bottom: 0;
}
.topnav .brand:hover { color: var(--seal-deep, #5f2029); }
.nav-links { display: flex; align-items: center; gap: 0.2em; margin-left: auto; }
.nav-links > a, .nav-drop-btn {
	font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.94em; color: var(--ink-soft, #3c3a37);
	text-decoration: none; padding: 0.55em 0.8em; border-radius: 6px; border: 0;
	background: transparent; cursor: pointer; line-height: 1; white-space: nowrap;
}
.nav-links > a:hover, .nav-drop-btn:hover { background: var(--seal-tint, #f3e7e9); color: var(--seal, #7c2d3a); }
.nav-links > a.active { color: var(--seal, #7c2d3a); font-weight: 700; }
.nav-links a.nav-cta {
	font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 700; font-size: 0.92em;
	background: var(--seal, #7c2d3a); color: #fff !important; text-decoration: none;
	padding: 0.62em 1.05em; border-radius: 7px; white-space: nowrap; margin-left: 0.4em;
}
.nav-links a.nav-cta:hover { background: var(--seal-deep, #5f2029); }

/* guides dropdown */
.nav-drop-btn::after { content: "\25be"; font-size: 0.7em; margin-left: 0.35em; opacity: 0.7; }
.nav-drop-menu {
	position: absolute; top: 58px; right: 1.4em; left: auto; transform: translateY(6px);
	width: min(640px, calc(100vw - 2.8em)); background: #fff; border: 1px solid var(--rule, #e3e1de);
	border-radius: 12px; box-shadow: 0 18px 40px -22px rgba(124,45,58,0.4);
	padding: 1.1em 1.2em; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4em 1.6em;
	opacity: 0; visibility: hidden; transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.nav-drop-col h4 {
	font-family: "Martian Mono", monospace; font-size: 0.6em; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--seal, #7c2d3a); margin: 0.6em 0 0.5em; padding-bottom: 0.4em; border-bottom: 1px solid var(--seal-tint, #f3e7e9);
}
.nav-drop-col a {
	display: block; font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.9em; color: var(--ink-soft, #3c3a37);
	text-decoration: none; padding: 0.3em 0; border: 0; line-height: 1.35;
}
.nav-drop-col a:hover { color: var(--seal, #7c2d3a); }
.nav-drop-col a.all { font-weight: 700; color: var(--seal, #7c2d3a); }

/* mobile toggle */
.nav-toggle {
	display: none; margin-left: auto; background: transparent; border: 1px solid var(--rule, #d8d5d1);
	border-radius: 7px; padding: 0.5em 0.7em; font-family: "Atkinson Hyperlegible", sans-serif;
	font-size: 0.85em; color: var(--ink, #191b1d); cursor: pointer; min-height: 40px;
}

@media screen and (max-width: 900px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: 0.4em; }
	.nav-links {
		position: fixed; inset: 64px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--rule, #e3e1de); padding: 0.6em 1.2em 1.2em;
		box-shadow: 0 24px 40px -26px rgba(0,0,0,0.4);
		max-height: calc(100dvh - 64px); overflow-y: auto;
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease;
	}
	body.nav-open .nav-links { transform: translateY(0); opacity: 1; visibility: visible; }
	.nav-links > a, .nav-drop-btn { padding: 0.85em 0.4em; border-radius: 0; border-bottom: 1px solid var(--rule-soft, #efedea); min-height: 44px; display: flex; align-items: center; }
	.nav-cta { margin: 0.9em 0 0; text-align: center; padding: 0.85em; }
	.nav-drop { display: flex; flex-direction: column; }
	.nav-drop-menu {
		position: static; transform: none; width: auto; box-shadow: none; border: 0; border-radius: 0;
		padding: 0 0 0.6em 0.8em; grid-template-columns: 1fr; gap: 0; opacity: 1; visibility: visible; pointer-events: auto;
		max-height: 0; overflow: hidden; transition: max-height 0.22s ease;
	}
	.nav-drop.open .nav-drop-menu { max-height: 1400px; }
	.nav-drop-col h4 { margin-top: 0.9em; }
}

/* ------------------------------------------------------------------- hub --- */
.hub-hero {
	--term: #07090a;
	--term-2: #101416;
	--amber: #e7b65a;
	--green: #55dea5;
	--red: #c95a4f;
	--cream: #f4efe5;
	position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
	gap: clamp(1rem, 3.4vw, 2.4rem); align-items: stretch;
	padding: clamp(0.9rem, 2.4vw, 1.4rem); isolation: isolate; width: 100%; min-width: 0;
	background:
		radial-gradient(circle at 72% 12%, rgba(85,222,165,0.13), transparent 28rem),
		linear-gradient(135deg, #060708 0%, #0f1213 46%, #090604 100%);
	border: 1px solid rgba(231,182,90,0.34); border-radius: 8px; overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 28px 70px -48px rgba(0,0,0,0.85);
}
.hub-hero:before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 22px),
		repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 28px),
		linear-gradient(180deg, rgba(255,255,255,0.08), transparent 32%);
	z-index: -1;
}
.hub-hero:after {
	content: ""; position: absolute; top: -20%; bottom: -20%; width: 11rem; left: 44%;
	background: linear-gradient(90deg, transparent, rgba(85,222,165,0.12), rgba(231,182,90,0.12), transparent);
	transform: skewX(-14deg); pointer-events: none; animation: scanSweep 6.5s ease-in-out infinite;
}
.hero-copy, .hero-reg { min-width: 0; }
.hero-copy {
	position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
	min-height: clamp(21rem, 42vw, 30rem); padding: clamp(0.55rem, 2.6vw, 1.65rem) 0;
}
.hero-kicker {
	display: inline-flex; align-items: center; gap: 0.65em; width: fit-content;
	font-family: "Martian Mono", monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--green); margin: 0 0 1rem; padding: 0.45rem 0.6rem;
	background: rgba(5,8,9,0.72); border: 1px solid rgba(85,222,165,0.28); border-radius: 4px;
}
.hero-kicker:before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--green); box-shadow: 0 0 14px rgba(85,222,165,0.75); }
#main .hub-hero h1 {
	font-family: "Literata", Georgia, serif; font-weight: 700; font-size: clamp(2.55rem, 6vw, 5.25rem);
	line-height: 0.94; letter-spacing: -0.03em; color: var(--cream); margin: 0 0 0.32em; text-wrap: balance; overflow-wrap: anywhere;
	text-shadow: 0 0 32px rgba(231,182,90,0.12);
}
#main .hub-hero .lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: #c8c6bd; line-height: 1.55; max-width: 42ch; margin: 0; }
.scan-ribbon {
	display: flex; flex-wrap: wrap; gap: 0.45rem; width: min(100%, 38rem);
	margin: clamp(1.25rem, 2.8vw, 1.8rem) 0 0; font-family: "Martian Mono", monospace;
}
.scan-ribbon span {
	display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.3rem;
	padding: 0.46rem 0.62rem; background: rgba(7,9,10,0.82); color: #8f9998;
	border: 1px solid rgba(143,153,152,0.22); border-radius: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.scan-ribbon b { color: var(--amber); font-weight: 600; }

/* top band (reuses .reg-bar styles) */
.hub-conv { margin: 1.6em 0 0.4em; }

/* hero call-to-action panel */
.hero-reg {
	position: relative; margin: 0; align-self: stretch; max-width: none; overflow: hidden; display: flex; flex-direction: column;
	border-radius: 8px; background: rgba(5,8,9,0.86); color: #fff; padding: clamp(0.78rem, 1.9vw, 1.05rem);
	border: 1px solid rgba(231,182,90,0.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-reg:before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 0.18rem;
	background: linear-gradient(90deg, var(--green), var(--amber) 62%, var(--red));
}
.scan-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0 0 0.6rem; }
.scan-head span {
	font-family: "Martian Mono", monospace; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: #121516; background: var(--green); border-radius: 4px; padding: 0.36rem 0.5rem; white-space: nowrap;
}
.hr-kicker {
	font-family: "Martian Mono", monospace; font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase;
	color: var(--amber); margin: 0;
}
.rate-stack {
	position: relative; display: grid; gap: 0.38rem; margin: 0 0 0.6rem; padding: 0.58rem 0.65rem;
	background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
	border: 1px solid rgba(143,153,152,0.18); border-radius: 8px;
}
.rate-row {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem;
	align-items: center; padding: 0.05rem 0.05rem 0;
}
.rate-row span {
	font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.76rem; line-height: 1.15; color: #cfd2ce; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rate-row b {
	font-family: "Martian Mono", monospace; font-size: 0.76rem; line-height: 1.15; color: var(--cream); font-weight: 600; white-space: nowrap;
}
.rate-row i {
	position: relative; grid-column: 1 / -1; display: block; height: 0.42rem; overflow: hidden;
	background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.05); border-radius: 999px;
}
.rate-row i:before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit;
	background: linear-gradient(90deg, rgba(85,222,165,0.2), currentColor);
}
.rate-row.mid { color: var(--green); }
.rate-row.quote { color: var(--amber); }
.rate-row.fee { color: var(--red); }
.gap-slice {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1rem; align-items: end;
	margin: 0 0 0.6rem; padding: 0.6rem 0.75rem; background: #15100a;
	border: 1px solid rgba(231,182,90,0.34); border-left: 4px solid var(--amber); border-radius: 8px;
}
.gap-slice span { font-family: "Martian Mono", monospace; font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; color: #aeb4b0; }
.gap-slice b { font-family: "Martian Mono", monospace; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 0.9; color: var(--amber); }
.gap-slice small { grid-column: 1 / -1; font-size: 0.76rem; color: #cfc8b6; }
.hero-reg .hr-lead {
	font-size: 0.9rem; line-height: 1.38; color: var(--cream); margin: 0 0 0.65em;
}
.hero-reg .hr-lead b { color: var(--amber); }
.hr-action { display: grid; grid-template-columns: 1fr; gap: 0.55em; margin: auto 0 0.55em; }
.hr-code {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65em;
	background: #0b0e0f; color: var(--cream); border: 1px solid rgba(85,222,165,0.24); border-radius: 7px; padding: 0.42rem;
	min-width: 0;
}
.hr-code .l { font-family: "Martian Mono", monospace; font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: #9aa3a0; }
.hr-code code {
	justify-self: stretch; text-align: center; font-family: "Martian Mono", monospace; font-weight: 600; font-size: 1.05rem;
	color: var(--green); background: #07110e; padding: 0.44em 0.72em; border-radius: 5px; letter-spacing: 0.04em;
	min-width: 0; overflow-wrap: anywhere;
}
.hr-copy { font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.82rem; cursor: pointer; border: 1px solid rgba(85,222,165,0.45); background: transparent; color: var(--green); padding: 0 0.75em; min-height: 40px; border-radius: 5px; }
.hr-copy:hover { background: rgba(85,222,165,0.11); }
.hr-copy.is-copied { background: var(--green); color: #07110e; border-color: var(--green); }
.hr-cta {
	display: flex; justify-content: center; align-items: center; background: var(--amber); color: #111314 !important;
	font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 700; font-size: 1rem; text-decoration: none;
	padding: 0.78em 1.15em; border-radius: 7px; min-height: 52px; border: 0;
	box-shadow: 0 14px 26px -18px rgba(231,182,90,0.8); transition: transform 0.16s ease, background 0.16s ease;
}
.hr-cta:hover { background: #f0ca7e; transform: translateY(-1px); }
.hr-fine { font-size: 0.72rem; color: #bfc6c1; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.hr-fine b { color: var(--amber); font-weight: 700; }
.hr-fine a { color: var(--green); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(85,222,165,0.45); }
.hr-fine a:hover { text-decoration: underline; }
@keyframes scanSweep {
	0%, 100% { transform: translateX(-34vw) skewX(-14deg); opacity: 0; }
	14%, 72% { opacity: 1; }
	86% { transform: translateX(34vw) skewX(-14deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hub-hero:after { animation: none; opacity: 0.4; }
	.hr-cta { transition: none; }
}
@media (max-width: 860px) {
	.hub-hero { grid-template-columns: 1fr; gap: 0.9rem; padding: 1rem; }
	.hero-copy { min-height: auto; padding: 0.2rem 0 0; }
	.hub-hero:after { left: auto; right: -5rem; }
}
@media (max-width: 560px) {
	.hub-hero .lede { display: none; }
	#main .hub-hero h1 { font-size: clamp(1.78rem, 8.4vw, 2.1rem); line-height: 0.99; letter-spacing: -0.02em; }
	.hub-hero { padding: 0.8rem; gap: 0.7rem; }
	.hero-kicker { font-size: 0.56rem; margin-bottom: 0.65rem; padding: 0.34rem 0.45rem; }
	.scan-ribbon { display: none; }
	.scan-ribbon span { min-height: 1.9rem; padding: 0.34rem 0.42rem; font-size: 0.58rem; }
	.scan-ribbon span:nth-child(4) { grid-column: 1 / -1; }
	.hero-reg { padding: 0.72rem; min-width: 0; max-width: 100%; }
	.scan-head { margin-bottom: 0.5rem; }
	.scan-head span { display: none; }
	.hr-kicker { font-size: 0.55rem; }
	.rate-stack { display: none; }
	.rate-row { gap: 0.45rem 0.55rem; }
	.rate-row span, .rate-row b { font-size: 0.7rem; }
	.rate-row i { height: 0.45rem; }
	.gap-slice { grid-template-columns: 1fr; margin-bottom: 0.55rem; padding: 0.58rem 0.65rem; }
	.gap-slice b { font-size: 1.55rem; }
	.gap-slice small { font-size: 0.68rem; }
	.hero-reg .hr-lead { font-size: 0.84rem; line-height: 1.35; margin: 0 0 0.55em; }
	.hr-action { gap: 0.55em; margin-bottom: 0.55em; }
	.hr-code { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5em; }
	.hr-code .l { grid-column: auto; }
	.hr-code code { text-align: center; padding-left: 0.5em; padding-right: 0.5em; }
	.hr-cta { min-height: 50px; padding: 0.7em 1em; }
	.hr-fine { font-size: 0.68rem; line-height: 1.35; }
	.hr-fine a { display: block; width: fit-content; margin-top: 0.18rem; }
}

/* start-here entry cards */
.starts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9em; margin: 2.4em 0 0; }
.start-card {
	display: block; text-decoration: none; border: 1px solid var(--rule, #e3e1de); border-radius: 12px;
	padding: 1.15em 1.2em; background: #fff; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.start-card:hover { transform: translateY(-2px); border-color: var(--seal, #7c2d3a); box-shadow: 0 14px 30px -22px rgba(124,45,58,0.5); }
.start-card .sc-k { font-family: "Martian Mono", monospace; font-size: 0.58em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--seal, #7c2d3a); }
.start-card .sc-t { display: block; font-family: "Literata", serif; font-weight: 600; font-size: 1.08em; color: var(--ink, #191b1d); margin: 0.5em 0 0.3em; line-height: 1.25; }
.start-card .sc-d { font-size: 0.9em; color: var(--ink-soft, #3c3a37); line-height: 1.45; }

/* category blocks */
.cat { margin: 3em 0 0; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin: 0 0 1.1em; padding-bottom: 0.6em; border-bottom: 2px solid var(--seal-tint, #f3e7e9); }
#main .cat-head h2 { font-family: "Literata", serif; font-weight: 700; font-size: 1.5rem; color: var(--ink, #191b1d); margin: 0; letter-spacing: -0.01em; }
.cat-head .cat-all { font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.9em; color: var(--seal, #7c2d3a); text-decoration: none; white-space: nowrap; border: 0; }
.cat-head .cat-all:hover { text-decoration: underline; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1.1em; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .cat-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* guide card (uses real per-guide thumbnail) */
.gcard { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--rule, #e3e1de); border-radius: 12px; overflow: hidden; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(124,45,58,0.55); }
.gcard .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--seal-tint, #f3e7e9); display: block; }
.gcard .gc-body { padding: 0.95em 1.05em 1.15em; display: flex; flex-direction: column; gap: 0.4em; flex: 1; }
.gcard .gc-tag { font-family: "Martian Mono", monospace; font-size: 0.54em; letter-spacing: 0.15em; text-transform: uppercase; color: var(--seal, #7c2d3a); }
.gcard .gc-t { font-family: "Literata", serif; font-weight: 600; font-size: 1.02em; color: var(--ink, #191b1d); line-height: 1.25; }
.gcard .gc-d { font-size: 0.88em; color: var(--ink-soft, #3c3a37); line-height: 1.45; }
.gcard.corner { border-top: 3px solid var(--seal, #7c2d3a); }
.gcard.corner .gc-tag { color: var(--seal, #7c2d3a); font-weight: 600; }
.gcard.no-thumb { border-top: 3px solid var(--rule, #d8d5d1); }
.gcard.no-thumb .gc-body { padding-top: 1.1em; }
.who-p { font-size: 1.02em; color: var(--ink-soft, #3c3a37); line-height: 1.6; max-width: 60ch; }

/* tools grid on hub */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9em; }
.tcard { display: block; text-decoration: none; border: 1px solid var(--rule, #e3e1de); border-left: 3px solid var(--seal, #7c2d3a); border-radius: 10px; padding: 1em 1.1em; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -24px rgba(124,45,58,0.5); }
.tcard .tc-t { display: block; font-family: "Literata", serif; font-weight: 600; font-size: 1.02rem; color: var(--ink, #191b1d); }
.tcard .tc-d { display: block; font-size: 0.88rem; color: var(--ink-soft, #3c3a37); line-height: 1.45; margin-top: 0.35em; }

/* ------------------------------------------------------- guides directory -- */
.dir-head { padding: 2.4em 0 0.6em; }
#main .dir-head h1 { font-family: "Literata", serif; font-weight: 700; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--ink,#191b1d); margin: 0 0 0.35em; letter-spacing: -0.015em; }
#main .dir-head p { font-size: 1.05em; color: var(--ink-soft,#3c3a37); max-width: 55ch; line-height: 1.55; margin: 0; }
.dir-cat { margin: 2.4em 0 0; }
#main .dir-cat > h2 { font-family: "Literata", serif; font-weight: 700; font-size: 1.4rem; color: var(--ink,#191b1d); margin: 0 0 0.2em; }
#main .dir-cat > p { font-size: 0.95em; color: var(--ink-soft,#3c3a37); margin: 0 0 1em; }
.dir-cat > p { font-size: 0.95em; color: var(--ink-soft,#3c3a37); margin: 0 0 1em; }
.dir-list { display: grid; grid-template-columns: 1fr; gap: 0.85em; }
@media (min-width: 620px) { .dir-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .dir-list { grid-template-columns: 1fr 1fr 1fr; } }
.dir-item { display: block; text-decoration: none; padding: 1.05em 1.2em; border: 1px solid var(--rule,#e3e1de); border-radius: 11px; background: #fff; transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease; }
.dir-item:hover { transform: translateY(-2px); border-color: var(--seal,#7c2d3a); box-shadow: 0 14px 30px -24px rgba(124,45,58,0.5); }
.dir-item .di-t { display: block; font-family: "Literata", serif; font-weight: 600; font-size: 1.05rem; color: var(--ink,#191b1d); line-height: 1.3; margin-bottom: 0.4em; }
.dir-item .di-d { display: block; font-size: 0.92rem; color: var(--ink-soft,#3c3a37); line-height: 1.5; }
.dir-item:hover .di-t { color: var(--seal,#7c2d3a); }

/* --------------------------------------------------------------- breadcrumb */
.crumbs { max-width: 54em; margin: 0 auto; padding: 1.1em 1.4em 0; font-family: "Atkinson Hyperlegible", sans-serif; font-size: 0.84em; color: var(--ink-faint,#6b6863); }
.crumbs a { color: var(--ink-soft,#3c3a37); text-decoration: none; border: 0; }
.crumbs a:hover { color: var(--seal,#7c2d3a); }
.crumbs span { margin: 0 0.5em; opacity: 0.5; }

/* ------------------------------------------------------------- site footer -- */
body.v2 #footer { background: #fbf9f8; border-top: 1px solid var(--rule,#e3e1de); color: var(--ink-soft,#3c3a37); padding: 3em 0 2.4em; }
body.v2 #footer .container { max-width: 74rem; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6em; }
.foot-brand .fb-name { font-family: "Literata", serif; font-weight: 700; font-size: 1.1em; color: var(--seal,#7c2d3a); }
.foot-brand p { font-size: 0.88em; color: var(--ink-faint,#6b6863); line-height: 1.5; margin: 0.5em 0 0; max-width: 30ch; }
.foot-col h4 { font-family: "Martian Mono", monospace; font-size: 0.56em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint,#6b6863); margin: 0 0 0.7em; }
.foot-col a { display: block; font-size: 0.9em; color: var(--ink-soft,#3c3a37); text-decoration: none; padding: 0.25em 0; border: 0; }
.foot-col a:hover { color: var(--seal,#7c2d3a); }
.foot-legal { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--rule-soft,#efedea); font-size: 0.82em; color: var(--ink-faint,#6b6863); display: flex; flex-wrap: wrap; gap: 0.4em 1em; justify-content: space-between; }
@media screen and (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 1.4em; } .foot-brand { grid-column: 1 / -1; } }

/* mobile: move the top panel above the hero, compact hero */
@media screen and (max-width: 640px) {
	body.v2 #main > section > .container.wide { display: flex; flex-direction: column; }
	.hub-conv { order: -1; margin: 0.3em 0 0.2em; }
	.hub-hero { order: 0; width: 100%; max-width: 100%; padding: 0.8rem; }
	#main .hub-hero h1 { font-size: clamp(1.78rem, 8.4vw, 2.1rem); line-height: 0.99; letter-spacing: -0.02em; }
	#main .hub-hero .lede { display: none; }
	body.v2 #main > section > .container { padding-top: 1.3em; }
	.cat { margin-top: 2.2em; }
	#main .cat-head h2 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
	.start-card, .gcard, .tcard, .nav-links, .nav-drop-menu { transition: none; }
}


/* mobile: keep the code and button visible without scrolling on small viewports */
@media (max-width: 560px) {
	.hero-reg { display: flex; flex-direction: column; }
	.hub-hero .scan-head, .hub-hero .gap-slice { display: none; }
	.hero-reg .hr-action { order: -1; margin: 0 0 0.7em; }
	.hero-reg .hr-lead { order: 0; margin: 0 0 0.5em; }
	.hero-reg .hr-fine { order: 1; }
	.hero-reg .hr-cta { width: 100%; text-align: center; }
}

/* a11y: collapsed dropdown out of the accessibility tree on mobile */
@media (max-width: 900px) {
	.nav-drop-menu { visibility: hidden; }
	.nav-drop.open .nav-drop-menu { visibility: visible; }
}