/*
Theme Name: Bhatti Brothers
Theme URI: https://bhattibrothers.org/
Author: Bhatti Brothers Ltd
Description: Classic theme for Bhatti Brothers Ltd, a Calgary trucking carrier and freight brokerage, and operator of the NTM Tracking driver app.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bhatti-brothers
*/

:root {
	--amber: #ffad2b;
	--amber-deep: #e08a00;
	--amber-soft: #fff1d9;
	--navy: #133565;
	--navy-ink: #0b2244;
	--navy-soft: #e6ecf5;
	--paper: #faf6ee;
	--paper-2: #f2ebdd;
	--ink: #1b1f27;
	--ink-2: #4a505c;
	--line: #ddd3c0;
	--white: #fffdf8;
	--radius: 14px;
	--wrap: 1200px;
	--font-display: "Lexend", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Lexend", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Editable starter-page content. */
.entry-content .lead { font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
.entry-content .content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-block: 2rem; }
.entry-content .content-grid > div { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content .content-grid h3 { margin-top: 0; }
.entry-content .callout, .entry-content .contact-panel { padding: 1.5rem; background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; margin-block: 2rem; }
.entry-content .contact-panel h2 { border: 0; margin-top: 0; padding-top: 0; font-size: 1.5rem; }
.entry-content .contact-panel a { overflow-wrap: anywhere; }
.entry-content .policy-date { font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.custom-wordmark .custom-logo { max-height: 68px; width: auto; max-width: 240px; }
@media (max-width: 640px) { .entry-content .content-grid { grid-template-columns: 1fr; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--navy); color: var(--white); border-radius: 8px; text-decoration: none; font-weight: 600;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.eyebrow {
	font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink-2); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--amber); border-radius: 2px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.35em; border-radius: 999px;
	font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent;
	transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
	line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #ffbb4f; color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-ink); color: var(--white); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { color: var(--amber); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 246, 238, .92);
	backdrop-filter: saturate(1.3) blur(10px);
	-webkit-backdrop-filter: saturate(1.3) blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar { background: var(--navy-ink); color: #cdd8ea; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }

.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.wordmark-mark {
	width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--amber);
	display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em;
	box-shadow: inset 0 -5px 0 var(--amber);
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-text strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.02em; }
.wordmark-text small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.wordmark:hover { color: var(--ink); }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.primary-nav a {
	display: block; padding: .55rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--paper-2); color: var(--ink); }
.primary-nav .nav-app > a, .primary-nav a.nav-app { color: var(--navy); }
.primary-nav ul ul { display: none; }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.menu-toggle {
	display: none; background: var(--ink); color: var(--white); border: 0; border-radius: 10px;
	padding: .65rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; align-items: center; gap: .5rem;
}
.menu-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.menu-toggle-bars::before, .menu-toggle-bars::after, .menu-toggle-bars span {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle-bars::before { top: 0; } .menu-toggle-bars span { top: 5px; } .menu-toggle-bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span { opacity: 0; }

@media (max-width: 980px) {
	.header-cta .btn { display: none; }
	.js .menu-toggle { display: inline-flex; }
	.primary-nav { width: 100%; }
	.js .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 20px 1.25rem; display: none; }
	.js .primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
	.header-inner { flex-wrap: wrap; position: relative; }
	html:not(.js) .header-inner { padding-bottom: .75rem; }
	html:not(.js) .primary-nav ul { flex-direction: row; flex-wrap: wrap; }
	html:not(.js) .primary-nav a { border: 0; padding: .4rem .6rem; font-size: .92rem; }
	.topbar-hide-sm { display: none; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(11,34,68,.94) 0%, rgba(11,34,68,.78) 38%, rgba(11,34,68,.2) 72%, rgba(11,34,68,.05) 100%),
		linear-gradient(0deg, rgba(11,34,68,.7), transparent 40%);
}
.hero-inner { padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(4rem, 8vw, 6rem); max-width: 760px; }
.hero .eyebrow { color: #f3d9a8; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6.6vw, 5.2rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #dfe6f1; max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-manifest {
	margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, auto); gap: 0; width: fit-content; max-width: 100%;
	border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(11,34,68,.45); backdrop-filter: blur(6px);
}
.hero-manifest div { padding: .9rem 1.3rem; border-right: 1px solid rgba(255,255,255,.18); }
.hero-manifest div:last-child { border-right: 0; }
.hero-manifest dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #9fb2cf; }
.hero-manifest dd { margin: .2rem 0 0; font-weight: 600; }
.hero-manifest a { color: var(--white); text-decoration: none; }
.hero-manifest a:hover { color: var(--amber); }
@media (max-width: 700px) {
	.hero-manifest { grid-template-columns: 1fr; width: 100%; }
	.hero-manifest div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
	.hero::before { background: linear-gradient(180deg, rgba(11,34,68,.75), rgba(11,34,68,.92)); }
}

/* Road strip */
.road-strip { background: var(--amber); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.road-strip ul { list-style: none; margin: 0; padding: .85rem 0; display: flex; gap: 2.4rem; white-space: nowrap; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; justify-content: center; flex-wrap: wrap; }
.road-strip li { display: inline-flex; align-items: center; gap: 2.4rem; }
.road-strip li + li::before { content: ""; width: 22px; height: 3px; background: var(--ink); }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 0; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.08rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Intro */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.intro-body p { font-size: 1.14rem; color: var(--ink-2); }
.intro-body p:first-child { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); line-height: 1.45; font-weight: 500; }
.address-card {
	margin-top: 2rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
	padding: 1.4rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; font-size: .96rem;
}
.address-card dt { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); padding-top: .25rem; }
.address-card dd { margin: 0; font-weight: 500; }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* Services split */
.services { background: var(--white); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.service {
	position: relative; border-radius: calc(var(--radius) + 6px); padding: clamp(1.75rem, 4vw, 3rem); overflow: hidden;
	display: flex; flex-direction: column; min-height: 440px;
}
.service-carrier { background: var(--ink); color: #e9e4d8; }
.service-carrier h3 { color: var(--white); }
.service-broker { background: var(--amber-soft); border: 1px solid #f3d69f; }
.service-num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 2.5rem; display: flex; justify-content: space-between; }
.service h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.service ul { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: grid; gap: .6rem; }
.service li { padding-left: 1.6rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: var(--amber); border-radius: 2px; }
.service-broker li::before { background: var(--navy); }
.service .btn { margin-top: auto; align-self: flex-start; }
.service-carrier .btn-ghost { color: var(--amber); }
.service-carrier .btn-ghost:hover { color: var(--white); }
.service-broker .btn-ghost { color: var(--navy); }
.service-art { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; opacity: .14; pointer-events: none; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 0; border-top: 3px dashed var(--line); }
.steps li { counter-increment: step; position: relative; padding-right: 1.5rem; }
.steps li::before {
	content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: var(--paper); border: 3px solid var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: .85rem; margin-bottom: 1.25rem; position: relative;
}
.steps li:first-child::before { background: var(--amber); }
.steps h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; gap: 1.75rem; }
	.steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 3px dashed var(--line); }
	.steps li { padding: 0 0 0 4.25rem; }
	.steps li::before { position: absolute; left: 0; top: -4px; }
}

/* NTM block */
.ntm { background: var(--navy); color: #d8e1ef; position: relative; overflow: hidden; isolation: isolate; }
.ntm::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 44px 44px;
}
.ntm-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.ntm h2 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.3rem); }
.ntm .eyebrow { color: #a9bddb; }
.ntm-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.ntm-brand img { width: 68px; height: 68px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.ntm-brand strong { display: block; color: var(--white); font-size: 1.2rem; font-family: var(--font-display); }
.ntm-brand span { font-size: .88rem; color: #a9bddb; }
.ntm-facts { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.ntm-facts li { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; align-items: start; }
.ntm-facts svg { width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.ntm-notice {
	border: 1px solid rgba(255,173,43,.45); background: rgba(255,173,43,.08); border-radius: 12px; padding: 1rem 1.2rem; font-size: .94rem; color: #f3e4c6; margin-bottom: 2rem;
}
.ntm-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.ntm .btn-ghost { color: var(--white); }
.ntm-visual { position: relative; }
.ntm-visual > img { border-radius: calc(var(--radius) + 6px); box-shadow: 0 30px 70px rgba(0,0,0,.35); aspect-ratio: 1; object-fit: cover; width: 100%; }
.ntm-links {
	position: absolute; left: -24px; bottom: -24px; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; width: min(290px, 85%);
	box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.ntm-links h3 { font-size: .74rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; }
.ntm-links ul { list-style: none; margin: 0; padding: 0; }
.ntm-links a { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); }
.ntm-links li:last-child a { border-bottom: 0; }
.ntm-links a:hover { color: var(--navy); }
.ntm-links a::after { content: "\2192"; color: var(--amber-deep); }
@media (max-width: 900px) {
	.ntm-grid { grid-template-columns: 1fr; }
	.ntm-links { position: static; width: 100%; margin-top: 1rem; }
}

/* Values */
.values { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.value { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.value:nth-child(1) { grid-column: span 5; }
.value:nth-child(2) { grid-column: span 4; }
.value:nth-child(3) { grid-column: span 3; }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--ink-2); }
.value-k { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); display: block; margin-bottom: .7rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .value:nth-child(n) { grid-column: auto; } }

/* CTA */
.cta { padding: 0 0 clamp(4.5rem, 9vw, 7rem); }
.cta-panel {
	background: var(--amber); border-radius: calc(var(--radius) + 10px); padding: clamp(2rem, 6vw, 4.5rem);
	display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: center; position: relative; overflow: hidden;
}
.cta-panel::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 26px solid rgba(27,31,39,.08); border-radius: 50%;
}
.cta-panel h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .4em; }
.cta-panel p { font-size: 1.1rem; max-width: 34em; margin: 0; }
.cta-lines { display: grid; gap: .75rem; position: relative; z-index: 1; }
.cta-line {
	display: flex; align-items: center; gap: 1rem; background: var(--ink); color: var(--white); padding: 1rem 1.25rem; border-radius: 14px; text-decoration: none;
	transition: transform .2s var(--ease);
}
.cta-line:hover { transform: translateX(4px); color: var(--amber); }
.cta-line svg { width: 22px; height: 22px; color: var(--amber); flex: none; }
.cta-line small { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #b9b3a6; }
.cta-line span { font-weight: 600; word-break: break-word; }
@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; } }

/* Page */
.page-hero { background: var(--navy-ink); color: #d6deeb; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--amber) 0 48px, transparent 48px 76px); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 18ch; margin: 0; }
.page-hero .eyebrow { color: #a9bddb; }
.page-hero.is-app { background: var(--navy); }
.page-hero.is-app .eyebrow img { width: 22px; height: 22px; border-radius: 5px; }
.page-hero.is-app .eyebrow::before { display: none; }
.breadcrumbs { font-size: .85rem; margin-top: 1.25rem; color: #9fb2cf; }
.breadcrumbs a { color: #dfe6f1; }

.page-body { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.entry-content { width: min(100% - 40px, 760px); margin-inline: auto; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line); }
.entry-content h3 { font-size: 1.28rem; margin-top: 1.8em; }
.entry-content h4 { font-size: 1.05rem; margin-top: 1.5em; }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content p, .entry-content li { color: #2e333d; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--amber-deep); }
.entry-content strong { color: var(--ink); }
.entry-content a { color: var(--navy); font-weight: 500; text-decoration-thickness: 1.5px; text-decoration-color: rgba(19,53,101,.4); }
.entry-content a:hover { color: var(--amber-deep); text-decoration-color: currentColor; }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.4rem; border-left: 4px solid var(--amber); background: var(--white); border-radius: 0 12px 12px 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-2); font-weight: 600; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { font-size: .86rem; color: var(--ink-2); margin-top: .5rem; }
.entry-content code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
.entry-content .alignwide, .entry-content .wide, .entry-content .bb-wide { width: min(100vw - 40px, 1100px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull, .entry-content .bb-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content .bb-lede, .entry-content .lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.entry-content .bb-card, .entry-content .card, .entry-content .bb-notice, .entry-content .notice {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.entry-content .bb-notice, .entry-content .notice { border-left: 4px solid var(--amber); background: var(--amber-soft); border-color: #f3d69f; }
.entry-content .bb-grid, .entry-content .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.entry-content .bb-grid > *, .entry-content .grid > * { margin: 0; }
.entry-content .bb-button, .entry-content .button, .entry-content .wp-block-button__link {
	display: inline-block; background: var(--navy); color: var(--white); padding: .8em 1.3em; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.entry-content .bb-button:hover, .entry-content .button:hover, .entry-content .wp-block-button__link:hover { background: var(--amber); color: var(--ink); }
.entry-content .wp-block-columns { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.entry-content .wp-block-column { flex: 1 1 240px; }
.entry-meta-updated { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--ink-2); margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.page-links-nav { width: min(100% - 40px, 760px); margin: 3rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.page-links-nav a { font-size: .88rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--white); color: var(--ink); }
.page-links-nav a:hover { border-color: var(--navy); color: var(--navy); }

/* Archive */
.post-list { width: min(100% - 40px, 820px); margin-inline: auto; display: grid; gap: 1.25rem; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.post-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--navy); }
.post-card time { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2); }
.pagination-wrap { width: min(100% - 40px, 820px); margin: 2rem auto 0; }
.pagination-wrap .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination-wrap .page-numbers { padding: .5rem .85rem; border-radius: 8px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.pagination-wrap .current { background: var(--ink); color: var(--white); }

/* 404 */
.notfound { padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -.06em; color: var(--ink); }
.notfound-code span { color: var(--amber); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-top: 1.5rem; }
.notfound p { color: var(--ink-2); max-width: 36em; font-size: 1.1rem; }
.notfound-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b3a6; padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; font-size: .95rem; }
.site-footer a { color: #ede7da; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h2 { font-size: .74rem; font-family: var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark-text small { color: #8f8a7e; }
.site-footer .wordmark-mark { background: var(--amber); color: var(--ink); box-shadow: inset 0 -5px 0 var(--ink); }
.footer-about p { margin-top: 1.1rem; max-width: 30em; }
.footer-ntm { display: flex; gap: .75rem; align-items: center; margin-bottom: .9rem; }
.footer-ntm img { width: 40px; height: 40px; border-radius: 10px; }
.footer-ntm strong { color: var(--white); display: block; line-height: 1.2; }
.footer-ntm span { font-size: .82rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #343944; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal (only when JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }
.hero-media img { animation: bb-drift 22s var(--ease) both; }
@keyframes bb-drift { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* WP core */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: .86rem; color: var(--ink-2); }
.sticky, .bypostauthor { }
