/* ==========================================================================
   Mario Meraz Author — main stylesheet
   Palette: professional orange + professional blue, black typography
   ========================================================================== */
:root {
	--orange: #ff6a00;
	--orange-deep: #e65100;
	--orange-soft: #ffb877;
	--orange-tint: #ffe2c4;
	--blue: #0b3d91;
	--blue-mid: #1e88e5;
	--blue-soft: #7fbaf5;
	--blue-tint: #cfe5fc;
	--ink: #111111;
	--ink-2: #2b2b2b;
	--line: #9fb3c8;
	--white: #ffffff;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(17, 17, 17, .08);
	--shadow-lg: 0 14px 40px rgba(17, 17, 17, .14);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Montserrat", "Inter", system-ui, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: linear-gradient(180deg, var(--blue-tint) 0%, #f4f9ff 30%, var(--orange-tint) 100%);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--orange); padding: 8px 14px; border-radius: 8px; }

/* ---------- Header ---------- */
.topbar { height: 7px; background: linear-gradient(90deg, var(--blue) 0 60%, var(--orange) 60% 100%); }
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 3px solid var(--orange);
	box-shadow: 0 2px 12px rgba(17, 17, 17, .05);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: linear-gradient(135deg, var(--orange) 0 50%, var(--blue-mid) 50% 100%);
	font-family: var(--font-head); font-weight: 800; color: var(--ink); letter-spacing: .5px;
	border: 2px solid var(--ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; }
.brand-text small { font-size: .78rem; color: var(--ink-2); letter-spacing: .5px; text-transform: uppercase; }

.primary-nav .menu { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: .55rem .8rem; border-radius: 8px;
	text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a { background: var(--orange-soft); color: var(--ink); }
.primary-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem;
	position: absolute; top: 100%; left: 0; min-width: 290px;
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue);
	border-radius: 0 0 12px 12px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
	max-height: 70vh; overflow-y: auto;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 500; }
.primary-nav .sub-menu a:hover { background: var(--blue-soft); }

.nav-toggle { display: none; background: var(--orange); border: 2px solid var(--ink); border-radius: 10px; width: 46px; height: 42px; padding: 9px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .8rem 1.35rem; border-radius: 10px; border: 2px solid var(--ink);
	font-weight: 700; text-decoration: none; color: var(--ink); line-height: 1.2;
	transition: transform .15s ease, box-shadow .15s ease, background .15s;
	box-shadow: 3px 3px 0 var(--ink);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: #ff8124; }
.btn-blue { background: var(--blue-mid); }
.btn-blue:hover { background: #3d9bf0; }
.btn-outline { background: var(--white); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.kicker { text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; font-size: .8rem; color: var(--ink); margin-bottom: .6rem; display: inline-flex; align-items: center; gap: .5rem; }
.kicker::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--orange) 50%, var(--blue) 50%); }
.lead { font-size: 1.15rem; max-width: 680px; color: var(--ink-2); }

.hero {
	padding: clamp(3rem, 7vw, 6rem) 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(30, 136, 229, .85), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(255, 106, 0, .75), transparent 45%),
		linear-gradient(120deg, #ff8a2a 0%, #ffb877 38%, #7fbaf5 62%, #2f8fea 100%);
	border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .3em; }
.hero-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
	background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
	padding: 1.3rem; box-shadow: 5px 5px 0 var(--blue);
}
.stat:nth-child(2), .stat:nth-child(3) { box-shadow: 5px 5px 0 var(--orange); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-2); }

.page-hero { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
.page-hero--blue { background: linear-gradient(120deg, #2f8fea 0%, #5aa8f3 55%, #8cc2f7 100%); border-bottom: 6px solid var(--orange); }
.page-hero--orange { background: linear-gradient(120deg, #ff6a00 0%, #ff8a2a 55%, #ffad66 100%); border-bottom: 6px solid var(--blue-mid); }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--blue { background: var(--blue-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--orange { background: var(--orange-soft); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; max-width: 760px; }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }

.card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.6rem; box-shadow: var(--shadow); color: var(--ink);
}
.card--orange { background: linear-gradient(160deg, var(--white) 0%, var(--orange-soft) 100%); border-left: 6px solid var(--orange); }
.card--blue { background: linear-gradient(160deg, var(--white) 0%, var(--blue-soft) 100%); border-left: 6px solid var(--blue); }
.card-img { border-radius: 10px; margin-bottom: 1rem; }
.meta { font-size: .85rem; color: var(--ink-2); }

/* ---------- Books ---------- */
.book-card { display: grid; grid-template-columns: 150px 1fr; gap: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.grid-3 .book-card { grid-template-columns: 1fr; }
.book-cover {
	position: relative; display: flex; flex-direction: column; justify-content: space-between;
	aspect-ratio: 2 / 3; padding: 1rem .9rem .9rem 1.2rem; border-radius: 4px 10px 10px 4px;
	text-decoration: none; color: var(--ink); border: 2px solid var(--ink);
	box-shadow: 6px 6px 0 rgba(17, 17, 17, .85); transition: transform .2s;
	overflow: hidden;
}
.grid-3 .book-cover { aspect-ratio: auto; min-height: 220px; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(17, 17, 17, .85); }
.book-cover--orange { background: linear-gradient(160deg, #ff8f3a 0%, var(--orange) 55%, #e65100 100%); }
.book-cover--blue { background: linear-gradient(160deg, #64b0f4 0%, var(--blue-mid) 55%, #4fa3f2 100%); }
.book-cover:hover { transform: rotate(-1.5deg) translateY(-3px); color: var(--ink); }
.book-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--white); border: 1px solid var(--ink); border-radius: 20px; padding: .15rem .55rem; align-self: flex-start; }
.book-cover-title { font-family: var(--font-head); font-weight: 800; font-size: .84rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.grid-3 .book-cover-title { font-size: 1.25rem; -webkit-line-clamp: 4; }
.book-author { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-top: 2px solid var(--ink); padding-top: .4rem; }
.book-body h3 { font-size: 1.1rem; }
.book-body p { font-size: .95rem; color: var(--ink-2); }
.book-body .kicker { font-size: .7rem; margin-bottom: .3rem; }

/* ---------- Dashboards ---------- */
.dash-tile {
	display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem;
	background: var(--white); border: 2px solid var(--ink); border-radius: 12px;
	text-decoration: none; color: var(--ink); font-size: .95rem;
	box-shadow: 4px 4px 0 var(--orange); transition: .15s;
}
.dash-tile:nth-child(even) { box-shadow: 4px 4px 0 var(--blue); }
.dash-tile:hover { transform: translate(-2px, -2px); color: var(--ink); }
.dash-icon { font-size: 1.6rem; line-height: 1; display: inline-block; margin-bottom: .4rem; }
.dash-tile .dash-icon { margin: 0; }
.dash-card { text-decoration: none; transition: .18s; border-top: 5px solid var(--orange); }
.grid .dash-card:nth-child(even) { border-top-color: var(--blue); }
.dash-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.link-arrow { font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.dash-bar { background: linear-gradient(90deg, var(--blue-soft), var(--orange-soft)); border-bottom: 1px solid var(--line); padding-top: 1rem; }
.dash-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dash-bar h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: .2rem 0 .6rem; }
.crumb { font-size: .88rem; font-weight: 600; }
.dash-tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .7rem; scrollbar-width: thin; }
.dash-tabs a {
	flex: 0 0 auto; padding: .4rem .8rem; border-radius: 20px; font-size: .82rem; font-weight: 600;
	background: var(--white); border: 1px solid var(--line); text-decoration: none; white-space: nowrap;
}
.dash-tabs a:hover { border-color: var(--blue); }
.dash-tabs a.is-active { background: var(--orange); border-color: var(--ink); }
.dash-frame-wrap { background: var(--white); }
.dash-frame { display: block; width: 100%; height: calc(100vh - var(--header-h) - 20px); min-height: 720px; border: 0; }

/* ---------- Education timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 4px; background: linear-gradient(180deg, var(--orange), var(--blue)); border-radius: 2px; }
.timeline-item { display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; align-items: center; margin-bottom: 1.4rem; position: relative; }
.timeline-icon { width: 58px; height: 58px; display: grid; place-items: center; font-size: 1.6rem; background: var(--white); border: 3px solid var(--ink); border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(odd) .card { border-left: 6px solid var(--orange); }
.timeline-item:nth-child(even) .card { border-left: 6px solid var(--blue); }
.timeline .card p { margin: 0; color: var(--ink-2); }

/* ---------- Social ---------- */
.social-card {
	display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem;
	background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); transition: .15s; box-shadow: 4px 4px 0 var(--blue);
}
.social-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--orange); color: var(--ink); }
.social-icon { flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--orange); }
.social-card--youtube .social-icon { background: var(--orange-soft); }
.social-card--linkedin .social-icon { background: var(--blue-mid); }
.social-icon svg { width: 24px; height: 24px; fill: var(--ink); }
.social-meta { display: flex; flex-direction: column; gap: .1rem; }
.social-meta small { text-transform: uppercase; letter-spacing: 1px; font-size: .72rem; font-weight: 700; }
.social-meta strong { font-family: var(--font-head); font-size: 1.1rem; }
.social-meta em { font-style: normal; font-size: .88rem; color: var(--ink-2); }
.social-meta span { font-size: .92rem; margin-top: .3rem; }

/* ---------- Podcast & CTA ---------- */
.episode { border-top: 6px solid var(--orange); }
.podcast-player { margin: 1.2rem 0; min-height: 60px; }
.cta-band {
	margin-top: 2.5rem; padding: 2rem; border-radius: var(--radius); border: 2px solid var(--ink);
	background: linear-gradient(120deg, var(--orange-soft), var(--blue-soft));
	display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cta-band h2 { margin: 0; font-size: 1.5rem; }

/* ---------- Entry content ---------- */
.entry-content > * + * { margin-top: 1em; }
.entry-content blockquote { border-left: 5px solid var(--orange); background: var(--orange-tint); margin: 1.5em 0; padding: 1em 1.4em; border-radius: 0 10px 10px 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6em; }
.entry-content th { background: var(--blue-soft); }
.pagination { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-soft); border-top: 4px solid var(--blue); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.site-footer h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: 1.2px; border-bottom: 3px solid var(--orange); display: inline-block; padding-bottom: .2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-social a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-social svg { width: 16px; height: 16px; fill: var(--ink); }
.footer-bottom { background: var(--orange); border-top: 2px solid var(--ink); padding: .9rem 0; font-size: .88rem; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(3, 1fr); }
	.nav-toggle { display: block; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
		border-bottom: 3px solid var(--orange); box-shadow: var(--shadow-lg);
		max-height: 0; overflow: hidden; transition: max-height .3s ease;
	}
	.primary-nav.is-open { max-height: 85vh; overflow-y: auto; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; padding: .8rem 4%; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--blue); border-radius: 0; margin-left: .8rem; display: none; max-height: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 860px) {
	.hero-grid, .split, .grid-2, .footer-grid { grid-template-columns: 1fr; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.dash-frame { min-height: 600px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.grid-3, .grid-4, .hero-panel { grid-template-columns: 1fr; }
	.book-card { grid-template-columns: 1fr; }
	.book-cover { aspect-ratio: auto; min-height: 200px; }
	.admin-bar .site-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Site-wide navy theme (tones from the SIEM Benchmark dashboard header)
   ========================================================================== */
body {
	--navy-hi: #3c69a9;
	--navy: #182c4d;
	--navy-deep: #101f39;
	--navy-panel: #1f385f;
	--navy-bar: #183153;
	--navy-line: #385e83;
	--sky: #8ab4e5;
	--sky-text: #a9c6ea;
	--fog: #d6e2f2;
	background: var(--navy-deep);
	color: var(--fog);
}
body h1, body h2, body h3, body h4 { color: #ffffff; }
body a { color: #ffffff; text-decoration-color: var(--sky); }
body a:hover { color: var(--sky); }
body .lead, body p { color: var(--fog); }
body .kicker { color: var(--sky-text); letter-spacing: 2.4px; font-weight: 600; }
body .kicker::before { background: var(--sky); }

/* Header + footer */
body .topbar { background: linear-gradient(90deg, var(--navy-hi), var(--navy-deep)); height: 4px; }
body .site-header { background: rgba(16, 31, 57, .96); border-bottom: 1px solid var(--navy-line); box-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
body .brand-text strong { color: #fff; }
body .brand-text small { color: var(--sky-text); }
body .brand-mark { background: linear-gradient(135deg, var(--navy-hi), var(--navy-panel)); color: #fff; border-color: var(--navy-line); }
body .primary-nav a { color: var(--fog); }
body .primary-nav a:hover,
body .primary-nav .current-menu-item > a,
body .primary-nav .current_page_item > a { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
body .primary-nav .sub-menu { background: var(--navy-bar); border-color: var(--navy-line); border-top-color: var(--sky); }
body .primary-nav .sub-menu a:hover { background: var(--navy-panel); box-shadow: none; }
body .nav-toggle { background: var(--navy-panel); border-color: var(--navy-line); }
body .nav-toggle span:not(.screen-reader-text) { background: #fff; }
body .site-footer { background: var(--navy-bar); border-top: 1px solid var(--navy-line); }
body .site-footer h4 { color: #fff; border-bottom-color: var(--sky); }
body .site-footer, body .site-footer p { color: var(--fog); }
body .footer-social svg { fill: var(--sky); }
body .footer-bottom { background: var(--navy-deep); border-top: 1px solid var(--navy-line); color: var(--sky-text); }

/* Buttons */
body .btn { box-shadow: none; border: 1px solid var(--navy-line); color: #fff; border-radius: 6px; }
body .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); color: #fff; }
body .btn-orange { background: #ff6a00; border-color: #ff8a3d; color: #111; }
body .btn-orange:hover { background: #ff8124; color: #111; }
body .btn-blue { background: var(--navy-hi); border-color: var(--sky); }
body .btn-blue:hover { background: #4a7bbd; }
body .btn-outline { background: transparent; border-color: var(--sky); }

/* Hero */
body .hero {
	background: linear-gradient(105deg, var(--navy-hi) 0%, #2a4d80 22%, var(--navy) 55%, var(--navy-deep) 100%);
	border-bottom: 0;
}
body .stat {
	background: linear-gradient(135deg, var(--navy-panel), #11213c);
	border: 1px solid var(--navy-line); border-radius: 4px; box-shadow: none;
}
body .stat strong { color: #fff; }
body .stat span { color: var(--fog); text-transform: uppercase; letter-spacing: 1.6px; font-size: .78rem; }

/* Section bands */
body .section { background: var(--navy-deep); }
body .section--blue { background: var(--navy-bar); border-color: var(--navy-line); }
body .section--orange { background: linear-gradient(105deg, var(--navy) 0%, var(--navy-deep) 100%); border-top: 1px solid var(--navy-line); }

/* Cards */
body .card,
body .book-card,
body .dash-tile,
body .social-card {
	background: linear-gradient(135deg, var(--navy-panel), #11213c);
	border: 1px solid var(--navy-line); border-radius: 6px; box-shadow: none; color: var(--fog);
}
body .card--orange { border-left: 4px solid #ff6a00; }
body .card--blue { border-left: 4px solid var(--sky); }
body .dash-tile:hover,
body .social-card:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
body .dash-tile strong, body .social-meta strong { color: #fff; }
body .book-body p, body .social-meta em, body .social-meta span { color: var(--fog); }
body .social-meta small { color: var(--sky-text); }
body .social-icon { background: var(--navy-bar); border-color: var(--navy-line); }
body .social-icon svg { fill: var(--sky); }
body .book-cover { border-color: var(--navy-line); box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
body .book-cover::before { background: rgba(0, 0, 0, .45); }
body .book-cover--blue { background: linear-gradient(150deg, #4a7bbd 0%, var(--navy-hi) 50%, #2a4d80 100%); color: #fff; }
body .book-cover--orange { background: linear-gradient(150deg, #ff8a3d 0%, #ff6a00 55%, #e65100 100%); color: #111; }
body .book-cover--blue .book-author { border-top-color: #fff; }
body .book-tag { background: rgba(16, 31, 57, .85); border-color: var(--sky); color: #fff; }

/* ---- Inner pages (navy) ---- */
body .page-hero,
body .page-hero--blue,
body .page-hero--orange {
	background: linear-gradient(105deg, var(--navy-hi) 0%, #2a4d80 22%, var(--navy) 55%, var(--navy-deep) 100%);
	border-bottom: 1px solid var(--navy-line);
}
body .page-hero--orange { border-bottom: 3px solid #ff6a00; }
body .page-hero--blue { border-bottom: 3px solid var(--sky); }

body .dash-card { border-top: 3px solid #ff6a00; }
body .grid .dash-card:nth-child(even) { border-top-color: var(--sky); }
body .dash-card:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); color: var(--fog); }
body .link-arrow { color: #fff; text-decoration-color: #ff6a00; }

/* Bar above each dashboard (the dashboard itself keeps its own colors) */
body .dash-bar { background: linear-gradient(105deg, var(--navy-hi) 0%, var(--navy) 50%, var(--navy-deep) 100%); border-bottom: 1px solid var(--navy-line); }
body .crumb { color: var(--sky-text); }
body .dash-tabs a { background: var(--navy-bar); border-color: var(--navy-line); color: var(--fog); }
body .dash-tabs a:hover { border-color: var(--sky); color: #fff; }
body .dash-tabs a.is-active { background: transparent; border-color: var(--sky); color: #fff; box-shadow: inset 0 -3px 0 var(--sky); }
body .dash-frame-wrap { background: var(--navy-deep); }

/* Education timeline */
body .timeline::before { background: linear-gradient(180deg, #ff6a00, var(--sky)); }
body .timeline-icon { background: var(--navy-bar); border: 2px solid var(--navy-line); }
body .timeline-item:nth-child(odd) .card { border-left: 4px solid #ff6a00; }
body .timeline-item:nth-child(even) .card { border-left: 4px solid var(--sky); }
body .timeline .card p { color: var(--fog); }

/* Podcast, STEAM, generic content */
body .episode { border-top: 3px solid #ff6a00; }
body .cta-band { background: linear-gradient(105deg, var(--navy-hi) 0%, var(--navy) 60%, var(--navy-deep) 100%); border: 1px solid var(--navy-line); border-radius: 6px; }
body .entry-content blockquote { background: var(--navy-panel); border-left-color: #ff6a00; }
body .entry-content th { background: var(--navy-panel); color: #fff; }
body .entry-content th, body .entry-content td { border-color: var(--navy-line); }
body .entry-content code { background: var(--navy-panel); color: #fff; padding: .1em .35em; border-radius: 4px; }
body .meta { color: var(--sky-text); }
body .books-list .book-card { align-items: start; }
body .primary-nav .current-menu-ancestor > a,
body .primary-nav .current_page_ancestor > a,
body .primary-nav .current_page_parent > a { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }

/* ==========================================================================
   Shop / Easy Digital Downloads
   ========================================================================== */
.dash-actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.mma-buy { display: inline-block; }
.mma-buy form, .mma-buy .edd_download_purchase_form, .mma-buy .edd_purchase_submit_wrapper { margin: 0; }
body .mma-buy .edd-submit,
body .mma-buy .edd_go_to_checkout,
body .mma-buy a.button,
body .mma-buy button,
body .mma-buy input[type="submit"] {
	display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
	padding: .6rem 1.1rem; border-radius: 6px; border: 1px solid #ff8a3d;
	background: #ff6a00 !important; color: #111 !important; font: 700 .92rem/1.2 var(--font);
	text-decoration: none; box-shadow: none; text-shadow: none; transition: .15s;
}
body .mma-buy .edd-submit:hover,
body .mma-buy .edd_go_to_checkout:hover { background: #ff8124 !important; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
body .mma-buy .edd_go_to_checkout { background: var(--navy-hi) !important; border-color: var(--sky); color: #fff !important; }
body .mma-buy .edd-loading-ajax, body .mma-buy .edd-cart-ajax-alert { color: var(--fog); font-size: .85rem; }
.mma-buy-admin-hint { font-size: .8rem; color: var(--sky-text); border: 1px dashed var(--navy-line); border-radius: 6px; padding: .35rem .6rem; }

.dash-card { display: flex; flex-direction: column; gap: 1rem; }
.dash-card-link { display: block; text-decoration: none; color: inherit; flex: 1; }
.dash-card-link:hover h3 { color: var(--sky); }
.mma-buy--card { align-self: flex-start; }

.shop-note { margin-top: .6rem; }
.shop-note strong { color: #ff8a3d; }
.shop-bar {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
	background: var(--navy-panel); border: 1px solid var(--navy-line); border-radius: 6px; padding: 1rem 1.3rem; margin-bottom: 1.6rem;
}
.shop-bar p { margin: 0; }
.shop-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .shop-trust { grid-template-columns: 1fr; } }

/* EDD checkout, receipt and history pages on navy */
body input[type="text"], body input[type="email"], body input[type="password"], body input[type="tel"],
body input[type="number"], body input[type="search"], body select, body textarea {
	background: #fff; color: #111; border: 1px solid var(--navy-line); border-radius: 6px; padding: .6em .75em; font: inherit; max-width: 100%;
}
body #edd_checkout_wrap, body .edd-blocks-form, body #edd_checkout_form_wrap, body .wp-block-edd-checkout { color: var(--fog); }
body #edd_checkout_form_wrap fieldset, body .edd-blocks-form fieldset {
	background: var(--navy-panel); border: 1px solid var(--navy-line); border-radius: 6px; padding: 1.2rem 1.4rem; margin: 0 0 1.4rem;
}
body #edd_checkout_form_wrap legend, body .edd-blocks-form legend { color: #fff; font-weight: 700; padding: 0 .4rem; }
body #edd_checkout_form_wrap label, body .edd-blocks-form label { color: #fff; font-weight: 600; }
body #edd_checkout_form_wrap .edd-description, body .edd-description { color: var(--sky-text); }
body #edd_checkout_cart, body .edd-blocks-cart, body #edd_purchase_receipt, body #edd_user_history, body .edd-table {
	width: 100%; border-collapse: collapse; background: var(--navy-panel); color: var(--fog);
}
body #edd_checkout_cart th, body #edd_checkout_cart td, body #edd_purchase_receipt th, body #edd_purchase_receipt td,
body #edd_user_history th, body #edd_user_history td, body .edd-table th, body .edd-table td { border: 1px solid var(--navy-line); padding: .7em; }
body #edd_checkout_cart th, body #edd_purchase_receipt th, body #edd_user_history th { background: var(--navy-bar); color: #fff; }
body .edd-stripe-card-element, body #edd-stripe-card-element, body .edd-stripe-payment-element-wrapper {
	background: #fff; border-radius: 6px; padding: .8em; color: #111;
}
body #edd-purchase-button, body .edd-submit, body #edd_purchase_form input[type="submit"] {
	background: #ff6a00 !important; color: #111 !important; border: 1px solid #ff8a3d !important; border-radius: 6px;
	padding: .8rem 1.4rem; font-weight: 700; cursor: pointer; box-shadow: none; text-shadow: none;
}
body .edd_errors, body .edd-alert-error { background: #3a1420; border: 1px solid #c0392b; color: #ffd6d6; border-radius: 6px; padding: .8em 1em; }
body .edd-alert-success { background: #12331f; border: 1px solid #2e8b57; color: #d6ffe4; border-radius: 6px; padding: .8em 1em; }
body .edd_download_file_link, body .edd_receipt_payment_status { color: #fff; }
