/* Rameen Premium 1.5.0
   1. Tokens & reset      5. Cards & kickers      9. Footer
   2. Overflow safety     6. Page / post body    10. Motion & print
   3. Header & menu       7. Pagination & forms
   4. Hero & sections     8. Comments
*/

/* 1. Tokens & reset ------------------------------------------------ */
:root {
	--ink: #121a2a;
	--ink-soft: #566070;
	--ivory: #f8f5ef;
	--paper: #fff;
	--blue: #1d74d6;
	--blue-deep: #1559a8;
	--sage: #7b9585;
	--line: rgba(18, 26, 42, .12);
	--shadow: 0 1px 2px rgba(18, 26, 42, .05), 0 12px 32px -12px rgba(18, 26, 42, .18);
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 72px;
	--radius: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--accent-text: #1760b8;
	--link: #1559a8;
	--btn-bg: #121a2a;
	--btn-fg: #fff;
	--header-bg: rgba(248, 245, 239, .88);
	--header-bg-solid: rgba(248, 245, 239, .96);
	--band-bg: #121a2a;
	--img-bg: #e8e3d8;
	--medium-bg: #1a62bd;
	--medium-hover: #0f4a96;
	color-scheme: light;
}

/* Dark theme. The inline script in <head> always sets data-theme; the media
   query is only a fallback for visitors with JavaScript disabled. */
:root[data-theme="dark"] {
	--ink: #eef2f8; --ink-soft: #a7b2c3; --ivory: #0b1220; --paper: #131c2e;
	--line: rgba(238, 242, 248, .14); --sage: #9bb8a6;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -12px rgba(0, 0, 0, .6);
	--accent-text: #7db8ff; --link: #8cc2ff;
	--btn-bg: #eef2f8; --btn-fg: #0b1220;
	--header-bg: rgba(11, 18, 32, .82); --header-bg-solid: rgba(11, 18, 32, .95);
	--band-bg: #111b30; --img-bg: #1b2740;
	--medium-bg: #2468c2; --medium-hover: #3a80dc;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--ink: #eef2f8; --ink-soft: #a7b2c3; --ivory: #0b1220; --paper: #131c2e;
		--line: rgba(238, 242, 248, .14); --sage: #9bb8a6;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -12px rgba(0, 0, 0, .6);
		--accent-text: #7db8ff; --link: #8cc2ff;
		--btn-bg: #eef2f8; --btn-fg: #0b1220;
		--header-bg: rgba(11, 18, 32, .82); --header-bg-solid: rgba(11, 18, 32, .95);
		--band-bg: #111b30; --img-bg: #1b2740;
		--medium-bg: #2468c2; --medium-hover: #3a80dc;
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

img, svg, video, canvas { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
p { text-wrap: pretty; }
::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	line-height: 1.06;
	letter-spacing: -.035em;
	font-weight: 700;
	text-wrap: balance;
	overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* 2. Overflow safety ------------------------------------------------
   Root cause of the sideways scroll: width:100% + overflow-x:hidden on BOTH
   <html> and <body> made <body> its own scroll container (which also broke the
   sticky header) while wide children still pushed the page. Now: <html> clips
   the viewport, <body> uses "clip" (no scroll container), and every grid/flex
   child is allowed to shrink. */
html { overflow-x: hidden; }
@supports (overflow: clip) {
	body { overflow-x: clip; }
}

.shell {
	width: min(1200px, calc(100% - (2 * var(--gutter))));
	margin-inline: auto;
}
.narrow { max-width: 780px; }
.shell.narrow { width: min(780px, calc(100% - (2 * var(--gutter)))); }

.hero-grid > *, .cards > *, .nav > *, .foot > *, .section-head > *, .page-head > * { min-width: 0; }

/* 3. Header & menu -------------------------------------------------- */
.skip {
	position: fixed;
	top: -100px;
	left: 12px;
	z-index: 2000;
	background: var(--btn-bg);
	color: var(--btn-fg);
	padding: 10px 16px;
	border-radius: 99px;
	text-decoration: none;
	font-weight: 700;
}
.skip:focus { top: 10px; }

.progress { position: fixed; z-index: 1001; inset: 0 0 auto; height: 3px; pointer-events: none; }
.progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sage)); }

.header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
body, .card, .award, .hero aside { transition: background-color .3s, color .3s, border-color .3s; }
.header.is-scrolled { background: var(--header-bg-solid); box-shadow: 0 8px 28px -18px rgba(18, 26, 42, .35); }

.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand {
	display: flex;
	align-items: center;
	white-space: nowrap;
	text-decoration: none;
	font: 1.4rem/1 var(--serif);
	letter-spacing: -.02em;
	margin-right: auto;
	min-width: 0;
}
.brand strong { color: var(--blue); margin-left: .22em; font-weight: 700; }
.brand i {
	display: grid;
	place-items: center;
	flex: none;
	width: 18px;
	height: 18px;
	margin-left: 8px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font: 700 11px/1 var(--sans);
}

.primary ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary a {
	position: relative;
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	font-weight: 650;
	font-size: .86rem;
	border-radius: 99px;
	transition: background .2s, color .2s;
}
.primary a:hover { background: rgba(29, 116, 214, .1); color: var(--accent-text); }
.primary .current-menu-item > a,
.primary .current_page_item > a,
.primary [aria-current="page"] { color: var(--accent-text); background: rgba(29, 116, 214, .1); }

.menu {
	display: none;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	background: var(--paper);
	border-radius: 50%;
	cursor: pointer;
}
.menu b { display: block; width: 17px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .3s var(--ease); }
.menu[aria-expanded="true"] b:first-child { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] b:last-child { transform: translateY(-3px) rotate(-45deg); }

/* 4. Hero & sections ------------------------------------------------ */
.hero, .section { padding: clamp(64px, 9vw, 112px) 0; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		radial-gradient(600px 400px at 85% 10%, rgba(29, 116, 214, .10), transparent 70%),
		radial-gradient(520px 380px at 5% 95%, rgba(123, 149, 133, .16), transparent 70%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
	gap: clamp(32px, 8vw, 110px);
	align-items: end;
}

.eyebrow, .kicker {
	color: var(--accent-text);
	font-family: var(--sans);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.eyebrow { margin: 0 0 1rem; }

.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6.8rem); line-height: 1; margin: 0 0 1.4rem; }
.hero mark { background: none; color: var(--accent-text); }
.hero h1 span { color: var(--sage); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

.button {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	background: var(--btn-bg);
	color: var(--btn-fg);
	padding: 14px 24px;
	border-radius: 99px;
	text-decoration: none;
	font-weight: 700;
	transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.button:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(29, 116, 214, .7); }
.button .i { transition: transform .25s var(--ease); }
.button:hover .i-arrow { transform: translateX(4px); }

.hero aside {
	background: var(--paper);
	padding: 28px;
	border: 1px solid var(--line);
	border-top: 4px solid var(--blue);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.hero aside small { font-weight: 800; letter-spacing: .13em; color: var(--ink-soft); font-size: .7rem; }
.hero aside ul { list-style: none; margin: 12px 0 0; padding: 0; }
.hero aside li { border-top: 1px solid var(--line); padding: 8px 0; font-family: var(--serif); font-size: 1.15rem; }

.dark { background: var(--band-bg); color: #fff; padding: clamp(72px, 10vw, 128px) 0; }
.dark .eyebrow { color: #7fb6f2; }
.dark h2 { font-size: clamp(2.4rem, 5.2vw, 5rem); margin: 0 0 1.2rem; }
.dark p:not(.eyebrow) { color: #cfd7e3; font-size: 1.2rem; max-width: 56ch; }

.section h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; color: var(--accent-text); display: inline-flex; align-items: center; gap: .4em; }
.text-link:hover { color: var(--ink); border-color: var(--ink); }

/* 5. Cards & kickers ------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--paper);
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(29, 116, 214, .35); }
.card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 0 0 .7rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is clickable */
.card .excerpt { color: var(--ink-soft); margin: 0 0 1.2rem; overflow-wrap: anywhere; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .92rem; color: var(--accent-text); }
.card .more .i { transition: transform .25s var(--ease); }
.card:hover .more .i { transform: translateX(5px); }

.card .image { display: block; margin: -28px -28px 22px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--img-bg); }
.card .image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .image img { transform: scale(1.04); }

/* Kicker: CATEGORY · DATE. Long labels wrap instead of pushing the layout. */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .15em .6em; margin: 0 0 .7rem; max-width: 100%; overflow-wrap: anywhere; line-height: 1.5; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker time, .kicker span:not(.kicker-cat):not(.kicker-sep) { color: var(--ink-soft); }
.kicker-sep { color: var(--sage); }

/* 6. Page / post body ----------------------------------------------- */
.content { min-height: 70vh; padding: clamp(56px, 8vw, 96px) 0; }
.page-head { margin-bottom: clamp(24px, 4vw, 44px); }
.page-head h1, .content h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); margin: 0 0 .4em; }
.archive-desc { color: var(--ink-soft); max-width: 60ch; font-size: 1.15rem; }
.empty { font-size: 1.15rem; color: var(--ink-soft); }
.latest { margin-top: clamp(56px, 8vw, 96px); }
.latest h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1.2rem; }

.featured { margin: 0 0 clamp(28px, 4vw, 48px); }
.featured img { display: block; width: 100%; border-radius: var(--radius); }

.body { font: 1.17rem/1.75 var(--serif); overflow-wrap: anywhere; }
.body > * { max-width: 100%; }
.body > p:first-child { margin-top: 0; }
.body h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 2.2em 0 .5em; }
.body h3 { font-size: 1.5rem; margin: 1.8em 0 .4em; }
.body li { margin: .65rem 0; }
.body a { color: var(--link); text-decoration-thickness: 1px; }
.body a:hover { color: var(--ink); }
.body figure { margin: 2em 0; }
.body figcaption { font: .85rem/1.5 var(--sans); color: var(--ink-soft); margin-top: .6em; }
.body img { border-radius: 6px; }
.body blockquote {
	margin: 2em 0;
	padding: .2em 0 .2em 1.4em;
	border-left: 3px solid var(--blue);
	font-size: 1.3rem;
	font-style: italic;
	color: var(--ink);
}
.body hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.body pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #0c1320; color: #e6ecf5; padding: 18px; border-radius: 8px; font-size: .9rem; }
.body code { font-size: .92em; }
.body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.body th, .body td { padding: .6em .9em; border-bottom: 1px solid var(--line); text-align: left; }
.body iframe, .body .wp-block-embed__wrapper { max-width: 100%; }
.body .wp-block-embed iframe { width: 100%; }

/* Block alignments stay inside the column: 100vw would cause sideways scroll. */
.body .alignwide, .body .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.body .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.body .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.body .aligncenter { margin-inline: auto; }

.body .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.body .wp-block-column, .editorial-feature { min-width: 0; }

.page-intro { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.45; letter-spacing: -.01em; }

.editorial-feature {
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 4px solid var(--blue);
	border-radius: var(--radius);
	padding: 26px;
	margin: 24px 0;
}
.editorial-feature h3 { margin: .2em 0 .4em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.editorial-feature p:last-child { margin-bottom: 0; }

.tags { margin-top: 2.5rem; font: .85rem var(--sans); }
.tags a { display: inline-block; margin: 0 .4em .4em 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--paper); }
.tags a:hover { border-color: var(--blue); color: var(--accent-text); }

.post-navigation { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { font: 700 1rem/1.35 var(--serif); text-decoration: none; overflow-wrap: anywhere; }
.post-navigation a:hover { color: var(--blue); }

/* 7. Pagination & forms --------------------------------------------- */
.pagination { margin-top: clamp(32px, 5vw, 56px); }
.pagination .nav-links, .pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 99px;
	background: var(--paper);
	text-decoration: none;
	font-weight: 700;
	font-size: .9rem;
	transition: background .2s, color .2s, border-color .2s;
}
a.page-numbers:hover { border-color: var(--blue); color: var(--accent-text); }
.page-numbers.current { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.page-numbers.dots { border-color: transparent; background: none; }

.search-form { display: flex; gap: 10px; max-width: 520px; margin-top: 1.4rem; }
.search-form label { flex: 1; min-width: 0; }
.search-field, input[type="text"], input[type="email"], input[type="url"], textarea {
	width: 100%;
	min-width: 0;
	padding: 13px 18px;
	font: 1rem var(--sans);
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 99px;
}
textarea { border-radius: var(--radius); }
.search-field:focus, input:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(29, 116, 214, .25); outline-offset: 0; }
.search-submit, input[type="submit"] {
	flex: none;
	padding: 13px 22px;
	border: 0;
	border-radius: 99px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 700 .95rem var(--sans);
	cursor: pointer;
	transition: background .25s;
}
.search-submit:hover, input[type="submit"]:hover { background: var(--blue); color: #fff; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 8. Comments ------------------------------------------------------- */
.comments { margin-top: 4rem; font-family: var(--sans); }
.comments h2 { font-size: 1.6rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 32px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comment-meta .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin: 0 0 1rem; }

/* 9. Footer --------------------------------------------------------- */
.site-footer { background: #0c1320; color: #ccd4df; padding: clamp(44px, 6vw, 64px) 0 28px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.foot-main p { margin: .6rem 0 0; }
.site-footer .brand span { color: #fff; }
.site-footer .brand { margin: 0; }
.site-footer em { color: #ff4d6d; font-style: normal; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.foot a:not(.brand) { text-decoration: none; font-size: .9rem; }
.foot-nav a:hover, .foot-social a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8793a5; }

/* Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
	.menu { display: block; }
	.nav { gap: 10px; }
	.primary {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ivory);
		padding: 12px var(--gutter) 20px;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgba(18, 26, 42, .4);
	}
	.primary.open { display: block; animation: drop .28s var(--ease); }
	.primary ul { display: grid; gap: 2px; }
	.primary a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
	.hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brand { max-width: calc(100% - 58px); overflow: hidden; }
}
@media (max-width: 600px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
	.card { padding: 22px; }
	.card .image { margin: -22px -22px 20px; }
	.hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.6rem); }
	.foot { align-items: flex-start; flex-direction: column; }
	.search-form { flex-direction: column; }
	.search-submit, input[type="submit"] { width: 100%; }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.post-navigation .nav-next { grid-column: auto; text-align: left; }
	.body .alignleft, .body .alignright { float: none; max-width: 100%; margin: 1em 0; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 10. Motion & print ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
@media print {
	.header, .progress, .site-footer, .skip, .menu { display: none !important; }
	body { background: #fff; }
	.card { break-inside: avoid; box-shadow: none; }
}

/* 11. Icons, theme toggle, Medium button, breadcrumbs -------------- */
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.brand i .i { width: 11px; height: 11px; stroke-width: 3.2; stroke: #fff; vertical-align: 0; }

.theme-toggle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	border-radius: 50%;
	cursor: pointer;
	transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.theme-toggle:hover { border-color: var(--blue); transform: rotate(14deg); }
.theme-toggle .i { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.theme-toggle .i-moon { display: block; }

.btn-medium,
.body a.btn-medium {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: 12px 22px;
	border-radius: 99px;
	background: var(--medium-bg);
	color: #fff;
	font: 700 .95rem/1.2 var(--sans);
	text-decoration: none;
	box-shadow: 0 8px 20px -10px rgba(26, 98, 189, .8);
	transition: background .25s, transform .25s var(--ease);
}
.btn-medium:hover, .body a.btn-medium:hover { background: var(--medium-hover); color: #fff; transform: translateY(-2px); }
.btn-medium .i { width: 1.15em; height: 1.15em; stroke: #fff; }

.breadcrumbs { margin: 0 0 1.2rem; font: 600 .8rem/1.4 var(--sans); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--sage); }
.breadcrumbs a { color: var(--accent-text); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.contact-links a { display: inline-flex; align-items: center; gap: .35em; margin-right: 1.2em; }

/* 12. Awards -------------------------------------------------------- */
.awards-wrap { margin-top: clamp(28px, 4vw, 48px); }
.section-awards .awards-wrap { margin-top: 0; }
.narrow-body { max-width: 780px; }

.award-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.award-stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.award-stats strong { display: block; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--serif); letter-spacing: -.03em; color: var(--accent-text); }
.award-stats span { font: 600 .8rem var(--sans); color: var(--ink-soft); }

.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.award {
	--m-out: #1d3a6e; --m-in: #3b6fc4; --m-ico: #fff; --m-rib: #c99a1d; --m-rib2: #a67c12;
	--tone: rgba(29, 58, 110, .35); --tone-bg: rgba(29, 58, 110, .12);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 26px 26px;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.award::before { content: ""; position: absolute; z-index: -1; inset: 8px; border: 1px solid var(--tone); border-radius: 10px; pointer-events: none; }
.award::after { content: ""; position: absolute; z-index: -1; top: -70px; right: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--tone-bg), transparent 70%); pointer-events: none; }
.award:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.award-gold { --m-out: #c99a1d; --m-in: #f2cf63; --m-ico: #5b4200; --m-rib: #b4232f; --m-rib2: #8f1b25; --tone: rgba(201, 154, 29, .55); --tone-bg: rgba(242, 207, 99, .28); }
.award-blue { --m-out: #1760b8; --m-in: #4f9bf0; --m-ico: #fff; --m-rib: #7b9585; --m-rib2: #5f7a6b; --tone: rgba(23, 96, 184, .4); --tone-bg: rgba(79, 155, 240, .2); }

.award-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.medal { width: 74px; height: auto; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .2)); }
.m-rib { fill: var(--m-rib); } .m-rib2 { fill: var(--m-rib2); }
.m-out { fill: var(--m-out); }
.m-in { fill: var(--m-in); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.m-ico { fill: none; stroke: var(--m-ico); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.award-badge { font: 800 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px; background: var(--tone-bg); color: var(--ink); border: 1px solid var(--tone); white-space: nowrap; }
.award-meta { display: flex; flex-wrap: wrap; gap: .1em .55em; margin: 6px 0 0; font: 700 .74rem/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.award-year { color: var(--accent-text); }
.award-title { font-size: clamp(1.35rem, 2.3vw, 1.75rem); margin: 0; line-height: 1.1; }
.award-desc { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.body .awards h2 { margin: 0; }

@media (max-width: 600px) { .award { padding: 24px 20px 22px; } }
@media (prefers-reduced-motion: reduce) { .theme-toggle:hover, .award:hover { transform: none; } }
