/*
 * Hindukush — base, header, navigation, cards, listings, sidebar, footer.
 * Colours and rules: docs/hindukush-design.md
 */

/* Fonts: the outlet's own typeface (F Modam), self-hosted. */
@font-face { font-family: "HK Modam"; src: url(../fonts/modam-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Modam"; src: url(../fonts/modam-bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Modam"; src: url(../fonts/modam-black.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
	--hk-navy: #011739;
	--hk-navy-2: #0b2650;
	--hk-indigo: #1a236b;
	--hk-orange: #f7a50e;
	--hk-ink: #0f1a2e;
	--hk-text: #2a3342;
	--hk-muted: #5d6675;
	--hk-line: #e3e7ee;
	--hk-line-2: #cdd3dd;
	--hk-wash: #f4f6f9;
	--hk-on-dark: rgba(255, 255, 255, .78);
	--hk-on-dark-line: rgba(255, 255, 255, .14);

	--hk-kufi: "HK Modam", Tahoma, "Segoe UI", sans-serif;
	--hk-naskh: "HK Modam", Tahoma, sans-serif;

	--hk-max: 1240px;
	--hk-gutter: 16px;
	--hk-ease: cubic-bezier(.2, 0, 0, 1);
	--hk-r: 8px;
	--hk-bar: 0px; /* WordPress admin bar */
	--hk-sticky: 60px; /* height of the sticky header part */
}
@media (min-width: 600px) {
	:root { --hk-gutter: 24px; }
}
@media (min-width: 1100px) {
	:root { --hk-gutter: 32px; --hk-sticky: 52px; }
}
body.admin-bar { --hk-bar: 32px; }
@media (max-width: 782px) {
	body.admin-bar { --hk-bar: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar { --hk-bar: 0px; }
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--hk-bar) + var(--hk-sticky) + 16px);
}
body {
	margin: 0;
	background: #fff;
	color: var(--hk-text);
	font-family: var(--hk-kufi);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--hk-ink); font-weight: 700; line-height: 1.6; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
time { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--hk-indigo); outline-offset: 2px; }
.hk-top :focus-visible, .hk-mast :focus-visible, .hk-videos :focus-visible, .hk-foot :focus-visible { outline-color: var(--hk-orange); }
::selection { background: #fde3b0; color: var(--hk-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.hk-skip {
	position: fixed;
	top: calc(var(--hk-bar) + 8px);
	inset-inline-start: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--hk-navy);
	color: #fff;
	font-weight: 600;
	transform: translateY(-200%);
}
.hk-skip:focus { transform: none; }

.hk-wrap {
	width: 100%;
	max-width: calc(var(--hk-max) + 2 * var(--hk-gutter));
	margin-inline: auto;
	padding-inline: var(--hk-gutter);
}
.hk-main { display: block; min-height: 50vh; padding-bottom: 64px; }

.hk-icon { display: inline-block; vertical-align: middle; }
.hk-iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--hk-ink);
	transition: background-color .15s, color .15s;
}
.hk-btn, .hk-comments .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--hk-navy);
	background: var(--hk-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background-color .15s, border-color .15s;
}
@media (hover: hover) {
	.hk-iconbtn:hover { background: var(--hk-wash); }
	.hk-btn:hover, .hk-comments .submit:hover { background: var(--hk-indigo); border-color: var(--hk-indigo); }
}

/* Dates ------------------------------------------------------------------ */
.hk-today { display: flex; flex-wrap: wrap; align-items: center; margin: 0; }
.hk-today span + span::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: .9em;
	margin-inline: 10px;
	background: currentColor;
	opacity: .35;
	vertical-align: -1px;
}
.hk-today span:first-child { font-weight: 600; }

/* Top bar ---------------------------------------------------------------- */
.hk-top {
	background: #000e24;
	color: var(--hk-on-dark);
	font-size: 12.5px;
	line-height: 1.5;
}
.hk-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.hk-top .hk-today span:first-child { color: #fff; }
.hk-top__end { display: flex; align-items: center; gap: 18px; }
.hk-langs { display: flex; align-items: center; }
.hk-langs li + li { border-inline-start: 1px solid var(--hk-on-dark-line); }
.hk-langs a, .hk-langs span { display: block; padding: 5px 12px; transition: color .2s; }
.hk-langs li:first-child > * { padding-inline-start: 0; }
.hk-langs [aria-current] { color: var(--hk-orange); font-weight: 700; }
.hk-social { display: flex; align-items: center; gap: 2px; }
.hk-social__link { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; transition: color .2s, background-color .2s, transform .2s var(--hk-ease); }
@media (hover: hover) {
	.hk-top a:hover { color: #fff; }
	.hk-social__link:hover { transform: translateY(-2px); }
}
@media (max-width: 699px) {
	.hk-top { display: none; }
}

/* Masthead (navy) -------------------------------------------------------- */
.hk-mast { background: var(--hk-navy); color: #fff; }
.hk-mast__in { display: flex; align-items: center; gap: 22px; min-height: 96px; }
.hk-logo { display: block; flex-shrink: 0; transition: opacity .2s; }
.hk-logo img { width: auto; height: 58px; }
.hk-mast__tagline {
	padding-inline-start: 22px;
	border-inline-start: 1px solid rgba(255, 255, 255, .22);
	color: rgba(255, 255, 255, .78);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.6;
}
.hk-mast__sform { margin-inline-start: auto; width: min(340px, 34vw); }
.hk-mast__sform .hk-sform__input {
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-inline-end: 0;
	border-radius: 0 var(--hk-r) var(--hk-r) 0;
	background: rgba(255, 255, 255, .07);
	color: #fff;
	font-size: 14.5px;
	transition: background-color .2s, border-color .2s;
}
.hk-mast__sform .hk-sform__input::placeholder { color: rgba(255, 255, 255, .6); }
.hk-mast__sform .hk-sform__input:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.hk-mast__sform .hk-sform__btn { height: 44px; padding: 0 14px; border-radius: var(--hk-r) 0 0 var(--hk-r); background: var(--hk-orange); color: var(--hk-navy); }
.hk-mast__sform .hk-sform__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hk-mast .hk-iconbtn { color: #fff; border-radius: var(--hk-r); }
.hk-mast__search, .hk-mast__menu { display: none; }
@media (hover: hover) {
	.hk-mast .hk-iconbtn:hover { background: rgba(255, 255, 255, .1); }
	.hk-mast__sform .hk-sform__btn:hover { background: #ffb631; }
	.hk-logo:hover { opacity: .9; }
}

@media (max-width: 1099px) {
	.hk-mast { position: sticky; top: var(--hk-bar); z-index: 40; }
	.hk-mast__in { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; min-height: 60px; }
	.hk-mast__menu, .hk-mast__search { display: inline-grid; }
	.hk-mast__menu { margin-inline-start: -8px; }
	.hk-mast__search { margin-inline-end: -8px; }
	.hk-logo { justify-self: center; }
	.hk-logo img { height: 36px; }
	.hk-mast__tagline, .hk-mast__sform { display: none; }
}
@media (min-width: 700px) and (max-width: 1099px) {
	.hk-mast__in { min-height: 68px; }
	.hk-logo img { height: 42px; }
}

/* Primary navigation (white, sticky) ------------------------------------- */
.hk-nav {
	position: sticky;
	top: var(--hk-bar);
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--hk-line);
	transition: box-shadow .25s var(--hk-ease);
}
.hk-nav.is-stuck { box-shadow: 0 6px 18px rgba(1, 23, 57, .08); }
.hk-nav__in { display: flex; align-items: stretch; min-height: 52px; }
.hk-nav__logo { display: none; align-items: center; padding-inline-end: 18px; margin-inline-end: 8px; border-inline-end: 1px solid var(--hk-line); }
.hk-nav__logo img { width: auto; height: 28px; }
.hk-nav.is-stuck .hk-nav__logo { display: flex; animation: hk-fade .25s var(--hk-ease); }
.hk-nav__list { display: flex; flex: 1; min-width: 0; align-items: stretch; overflow-x: clip; overflow-y: visible; }
.hk-nav__list > li { position: relative; display: flex; flex-shrink: 0; }
.hk-nav__list > li[hidden] { display: none; }
.hk-nav__list > li > a, .hk-more > button {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 13px;
	border: 0;
	background: none;
	color: var(--hk-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	transition: color .2s;
}
.hk-nav__list > li > a::after, .hk-more > button::after {
	content: "";
	position: absolute;
	inset-inline: 13px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--hk-orange);
	transform: scaleX(0);
	transition: transform .25s var(--hk-ease);
}
.hk-nav__list > .current-menu-item > a,
.hk-nav__list > .current-menu-parent > a,
.hk-nav__list > .current-menu-ancestor > a,
.hk-nav__list > .current-post-ancestor > a,
.hk-nav__list > .current-category-ancestor > a { color: var(--hk-indigo); }
.hk-nav__list > .current-menu-item > a::after,
.hk-nav__list > .current-menu-parent > a::after,
.hk-nav__list > .current-menu-ancestor > a::after,
.hk-nav__list > .current-post-ancestor > a::after,
.hk-nav__list > .current-category-ancestor > a::after { transform: none; }
.hk-caret { opacity: .6; transition: transform .25s var(--hk-ease); }
.hk-nav__search {
	display: grid;
	place-items: center;
	width: 44px;
	margin-block: 4px;
	margin-inline-start: 6px;
	padding: 0;
	border: 0;
	border-radius: var(--hk-r);
	background: none;
	color: var(--hk-ink);
	visibility: hidden;
	transition: background-color .2s;
}
.hk-nav.is-stuck .hk-nav__search { visibility: visible; }

/* Drop-down menus (desktop) */
.hk-nav .sub-menu {
	position: absolute;
	top: calc(100% + 1px);
	inset-inline-start: 0;
	z-index: 5;
	min-width: 230px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--hk-line);
	border-radius: 0 0 var(--hk-r) var(--hk-r);
	box-shadow: 0 14px 30px rgba(1, 23, 57, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--hk-ease), transform .2s var(--hk-ease), visibility 0s linear .2s;
}
.hk-nav .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 6px;
	color: var(--hk-ink);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.6;
	transition: background-color .15s, color .15s, padding .2s var(--hk-ease);
}
.hk-nav .sub-menu .current-menu-item > a { color: var(--hk-indigo); font-weight: 700; }
.hk-nav__list > li:hover > .sub-menu,
.hk-nav__list > li:focus-within > .sub-menu,
.hk-more.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hk-nav__list > li:hover .hk-caret, .hk-more.is-open .hk-caret { transform: rotate(180deg); }
.hk-more > .sub-menu { inset-inline-start: auto; inset-inline-end: 0; max-height: calc(100vh - 120px); overflow-y: auto; }
.hk-more .sub-menu .sub-menu { position: static; min-width: 0; padding: 0 0 6px; border: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none; }
.hk-more .sub-menu .sub-menu a { padding-inline-start: 28px; font-size: 14px; color: var(--hk-text); }
.hk-more .hk-caret { display: none; }
.hk-more > button .hk-caret { display: inline-block; }
@media (hover: hover) {
	.hk-nav__list > li > a:hover, .hk-more > button:hover { color: var(--hk-indigo); }
	.hk-nav__list > li > a:hover::after, .hk-more > button:hover::after { transform: none; }
	.hk-nav .sub-menu a:hover { background: var(--hk-wash); color: var(--hk-indigo); padding-inline-start: 18px; }
	.hk-nav__search:hover { background: var(--hk-wash); }
}

/* Mobile and tablet: a scrolling strip of sections */
@media (max-width: 1099px) {
	.hk-nav { position: relative; top: auto; z-index: 30; }
	.hk-nav__in { padding-inline: 0; }
	.hk-nav__logo, .hk-nav__search, .hk-more { display: none !important; }
	.hk-nav__list { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-inline: calc(var(--hk-gutter) - 12px); }
	.hk-nav__list::-webkit-scrollbar { display: none; }
	.hk-nav__list > li > a { padding: 0 12px; min-height: 46px; font-size: 14.5px; }
	.hk-nav__list > li > a::after { inset-inline: 12px; }
	.hk-nav .sub-menu, .hk-caret { display: none; }
}

/* Search panel ----------------------------------------------------------- */
.hk-search {
	position: fixed;
	top: var(--hk-bar);
	inset-inline: 0;
	z-index: 70;
	padding: 18px 0;
	background: #fff;
	border-bottom: 1px solid var(--hk-line);
	box-shadow: 0 0 0 100vmax rgba(1, 23, 57, .42);
	animation: hk-drop .2s var(--hk-ease);
}
.hk-search[hidden] { display: none; }
.hk-search__in { display: flex; align-items: center; gap: 12px; }
.hk-search .hk-sform { flex: 1 1 auto; width: auto; min-width: 0; max-width: 760px; margin-inline: auto; }
.hk-search__close { flex-shrink: 0; margin-inline-end: -10px; }

.hk-sform { display: flex; width: 100%; }
.hk-sform__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--hk-line-2);
	border-inline-end: 0;
	border-radius: 0;
	background: #fff;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}
.hk-sform__input::placeholder { color: #8a93a3; }
.hk-sform__input:focus { outline: none; border-color: var(--hk-navy); }
.hk-sform__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hk-sform__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 20px;
	border: 0;
	background: var(--hk-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	transition: background-color .15s;
}
@media (hover: hover) {
	.hk-sform__btn:hover { background: var(--hk-indigo); }
}
@media (max-width: 599px) {
	.hk-sform__btn { padding: 0 14px; }
	.hk-sform__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Drawer (mobile and tablet menu) ---------------------------------------- */
.hk-drawer { position: fixed; inset: 0; z-index: 90; }
.hk-drawer[hidden] { display: none; }
.hk-drawer__scrim { position: absolute; inset: 0; background: rgba(1, 23, 57, .5); opacity: 0; transition: opacity .25s var(--hk-ease); }
.hk-drawer__panel {
	position: absolute;
	top: var(--hk-bar);
	bottom: 0;
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	width: min(86vw, 380px);
	background: #fff;
	transform: translateX(100%);
	transition: transform .28s var(--hk-ease);
}
.hk-drawer.is-open .hk-drawer__scrim { opacity: 1; }
.hk-drawer.is-open .hk-drawer__panel { transform: none; }
.hk-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 0 16px;
	border-bottom: 1px solid var(--hk-line);
}
.hk-drawer__head img { width: auto; height: 34px; }
.hk-drawer__head .hk-iconbtn { margin-inline-end: -10px; }
.hk-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.hk-drawer__body .hk-sform__input, .hk-drawer__body .hk-sform__btn { height: 46px; }
.hk-drawer__list { margin-top: 12px; }
.hk-drawer__list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--hk-line);
}
.hk-drawer__list > li > a {
	flex: 1;
	padding: 12px 0;
	color: var(--hk-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}
.hk-drawer__list .current-menu-item > a,
.hk-drawer__list .current-menu-parent > a,
.hk-drawer__list .current-menu-ancestor > a { color: var(--hk-indigo); }
.hk-drawer__list > .current-menu-item > a,
.hk-drawer__list > .current-menu-parent > a,
.hk-drawer__list > .current-menu-ancestor > a { box-shadow: inset -3px 0 0 var(--hk-orange); padding-inline-start: 12px; }
.hk-subtoggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hk-muted);
}
.hk-subtoggle svg { transition: transform .2s var(--hk-ease); }
.hk-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.hk-drawer__list .sub-menu { display: none; flex-basis: 100%; padding: 0 0 10px; }
.hk-drawer__list .is-open > .sub-menu { display: block; }
.hk-drawer__list .sub-menu a {
	display: block;
	padding: 8px 14px;
	border-inline-start: 1px solid var(--hk-line-2);
	color: var(--hk-text);
	font-size: 15px;
	line-height: 1.6;
}
.hk-drawer__foot {
	display: grid;
	gap: 12px;
	padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--hk-line);
	background: var(--hk-wash);
	color: var(--hk-muted);
	font-size: 13px;
}
.hk-langs--drawer li + li { border-color: var(--hk-line-2); }
.hk-langs--drawer [aria-current] { color: var(--hk-ink); }
.hk-langs--drawer a { color: var(--hk-indigo); font-weight: 600; }
.hk-social--drawer { gap: 6px; }
.hk-social--drawer .hk-social__link { width: 40px; height: 40px; border: 1px solid var(--hk-line-2); background: #fff; color: var(--hk-navy); }
html.hk-lock, html.hk-lock body { overflow: hidden; }
@media (min-width: 1100px) {
	.hk-drawer { display: none !important; }
}

/* Media ------------------------------------------------------------------ */
.hk-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--hk-wash);
}
.hk-media__img, .hk-media__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}
.hk-media__img { transition: opacity .2s; }
.hk-media__video { object-position: 50% 50%; opacity: 0; transition: opacity .3s; background: var(--hk-navy); }
.hk-media__video.is-ready { opacity: 1; }
.hk-media__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--hk-navy);
}
.hk-media__ph img { width: 18%; max-width: 64px; min-width: 34px; height: auto; opacity: .95; }
.hk-media__play {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	background: var(--hk-orange);
	color: var(--hk-navy);
}
.hk-media__play svg { fill: currentColor; transform: translateX(1px); }

/* Cards ------------------------------------------------------------------ */
.hk-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hk-card__media { margin-bottom: 12px; }
.hk-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hk-card__title { font-size: 17px; font-weight: 700; line-height: 1.7; color: var(--hk-ink); }
.hk-card__title a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: .4em;
	transition: text-decoration-color .2s var(--hk-ease);
}
.hk-card__sum { font-family: var(--hk-naskh); font-size: 16.5px; line-height: 1.95; color: var(--hk-text); }
.hk-label { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--hk-indigo); }
.hk-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--hk-muted);
}
.hk-meta > * + *::before { content: "·"; margin-inline: 7px; opacity: .8; }
.hk-meta .hk-label { font-size: 12.5px; }
.hk-meta__views { display: inline-flex; align-items: center; gap: 4px; }
@media (hover: hover) {
	.hk-card:hover .hk-card__title a, .hk-card__title a:focus-visible { text-decoration-color: currentColor; }
	.hk-label:hover { text-decoration: underline; text-underline-offset: .35em; }
	.hk-card__media:hover .hk-media__img { opacity: .92; }
}

/* Lead */
.hk-card--lead .hk-card__media { margin-bottom: 16px; }
.hk-card--lead .hk-card__body { gap: 8px; }
.hk-card--lead .hk-card__title { font-size: clamp(22px, 1.1vw + 15px, 30px); line-height: 1.6; }
.hk-card--lead .hk-card__sum { font-size: 17.5px; }

/* Row (thumbnail at the start) */
.hk-card--row {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
}
.hk-card--row .hk-card__media { margin: 0; }
.hk-card--row .hk-card__title { font-size: 15.5px; line-height: 1.7; }

/* Compact (text only) */
.hk-card--compact .hk-card__body { gap: 4px; }
.hk-card--compact .hk-card__title { font-size: 15px; font-weight: 600; line-height: 1.7; }

/* Rank (most read) */
.hk-card--rank {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}
.hk-card__rank {
	color: var(--hk-indigo);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}
.hk-card--rank .hk-card__title { font-size: 15px; font-weight: 600; }

/* Opinion */
.hk-card--opinion { border-top: 2px solid var(--hk-ink); padding-top: 14px; }
.hk-card__author { color: var(--hk-indigo); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.hk-card--opinion .hk-card__title { font-family: var(--hk-naskh); font-size: 20px; line-height: 1.75; }
.hk-card--opinion .hk-meta > .hk-label + *::before { content: "·"; }

/* Video */
.hk-card--video .hk-card__title { font-size: 15.5px; }

/* Stacks and lists ------------------------------------------------------- */
.hk-stack > .hk-card { padding: 12px 0; border-bottom: 1px solid var(--hk-line); }
.hk-stack > .hk-card:first-child { padding-top: 0; }
.hk-stack > .hk-card:last-child { border-bottom: 0; padding-bottom: 0; }
.hk-rank > li { padding: 14px 0; border-bottom: 1px solid var(--hk-line); }
.hk-rank > li:first-child { padding-top: 2px; }
.hk-rank > li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Section heading -------------------------------------------------------- */
.hk-shead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--hk-line);
}
.hk-shead__title { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.5; }
.hk-shead__title::before { content: ""; flex-shrink: 0; width: 4px; height: 1.05em; background: var(--hk-orange); }
.hk-shead__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
	color: var(--hk-indigo);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
}
.hk-shead__more svg { transition: transform .2s var(--hk-ease); }
.hk-shead--small { margin-bottom: 14px; }
.hk-shead--small .hk-shead__title { font-size: 17px; }
.hk-shead--dark { border-bottom-color: var(--hk-on-dark-line); }
.hk-shead--dark .hk-shead__title { color: #fff; }
.hk-shead--dark .hk-shead__more { color: var(--hk-orange); }
@media (hover: hover) {
	.hk-shead__title a:hover { color: var(--hk-indigo); }
	.hk-shead--dark .hk-shead__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
	.hk-shead__more:hover svg { transform: translateX(-3px); }
}

/* Layout ----------------------------------------------------------------- */
.hk-section { margin-top: 48px; }
.hk-grid { display: grid; gap: 28px 24px; }
.hk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hk-split {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.hk-split__main { min-width: 0; grid-column: 2; grid-row: 1; }
.hk-split__side { display: grid; gap: 40px; min-width: 0; grid-column: 1; grid-row: 1; align-content: start; }
@media (min-width: 1100px) {
	.hk-split { grid-template-columns: 330px minmax(0, 1fr); gap: 56px; }
	.hk-split__side { position: relative; }
	.hk-split__side::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		inset-inline-end: -28px;
		width: 1px;
		background: var(--hk-line);
	}
	.hk-split--archive .hk-split__side { position: sticky; top: calc(var(--hk-bar) + var(--hk-sticky) + 24px); }
}
@media (max-width: 1099px) {
	.hk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
	.hk-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.hk-split__main, .hk-split__side { grid-column: auto; grid-row: auto; }
}
@media (min-width: 640px) and (max-width: 999px) {
	.hk-split__side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
}
@media (max-width: 699px) {
	.hk-section { margin-top: 36px; }
	.hk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.hk-grid { gap: 22px; }
	.hk-grid--4, .hk-grid--3 { grid-template-columns: minmax(0, 1fr); }
	/* On phones, secondary story cards read as rows to keep lists short. */
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story,
	.hk-grid--3 > .hk-card--story {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
		gap: 12px;
		align-items: start;
	}
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story .hk-card__media,
	.hk-grid--3 > .hk-card--story .hk-card__media { margin: 0; }
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story .hk-card__title,
	.hk-grid--3 > .hk-card--story .hk-card__title { font-size: 15.5px; }
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story + .hk-card--story,
	.hk-grid--3 > .hk-card--story + .hk-card--story { padding-top: 18px; border-top: 1px solid var(--hk-line); }
	.hk-grid--4:not(.hk-grid--videos):has(> .hk-card--story),
	.hk-grid--3:has(> .hk-card--story) { gap: 18px; }
}

/* Sidebar boxes ---------------------------------------------------------- */
.hk-sidebox { min-width: 0; }
.hk-follow__title { margin-bottom: 14px; font-size: 17px; }
.hk-follow__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hk-follow__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hk-line-2);
	color: var(--hk-ink);
	font-size: 14px;
	font-weight: 600;
	transition: background-color .15s, border-color .15s, color .15s;
}
.hk-follow__list svg { color: var(--hk-navy); transition: color .15s; }
@media (hover: hover) {
	.hk-follow__list a:hover { background: var(--hk-navy); border-color: var(--hk-navy); color: #fff; }
	.hk-follow__list a:hover svg { color: #fff; }
}
.hk-widget { min-width: 0; }
.hk-widget__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--hk-line); font-size: 17px; }
.hk-widget__title::before { content: ""; width: 4px; height: 1.05em; background: var(--hk-orange); }

/* Page heading (archives, search, pages) --------------------------------- */
.hk-pagehead {
	padding: 22px 0 26px;
	margin-bottom: 36px;
	background: var(--hk-wash);
	border-bottom: 1px solid var(--hk-line);
}
.hk-pagehead__title { margin-top: 8px; font-size: clamp(25px, 1.5vw + 17px, 34px); line-height: 1.5; }
.hk-pagehead__desc { max-width: 72ch; margin-top: 8px; color: var(--hk-text); font-family: var(--hk-naskh); font-size: 17px; line-height: 1.9; }
.hk-pagehead__desc p { margin: 0; }
.hk-pagehead__count { margin-top: 8px; color: var(--hk-muted); font-size: 13.5px; }
.hk-pagehead__search { max-width: 640px; margin-top: 16px; }
.hk-tabs {
	display: flex;
	gap: 4px 24px;
	margin-top: 16px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--hk-line-2);
}
.hk-tabs::-webkit-scrollbar { display: none; }
.hk-tabs a {
	flex-shrink: 0;
	margin-bottom: -1px;
	padding: 8px 0 9px;
	border-bottom: 2px solid transparent;
	color: var(--hk-text);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: color .15s, border-color .15s;
}
.hk-tabs a[aria-current] { color: var(--hk-ink); border-bottom-color: var(--hk-orange); }
@media (hover: hover) {
	.hk-tabs a:hover { color: var(--hk-indigo); border-bottom-color: var(--hk-line-2); }
	.hk-tabs a[aria-current]:hover { border-bottom-color: var(--hk-orange); }
}

/* Breadcrumb */
.hk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; color: var(--hk-muted); font-size: 13px; line-height: 1.7; }
.hk-crumbs li { display: inline-flex; align-items: center; }
.hk-crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-inline: 10px 9px;
	border-left: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: .55;
}
.hk-crumbs a { transition: color .15s; }
.hk-crumbs [aria-current] { color: var(--hk-ink); }
@media (hover: hover) {
	.hk-crumbs a:hover { color: var(--hk-indigo); text-decoration: underline; text-underline-offset: .35em; }
}

/* Archive listing -------------------------------------------------------- */
.hk-list__lead { padding-bottom: 26px; border-bottom: 1px solid var(--hk-line); }
.hk-list .hk-card--row {
	grid-template-columns: 248px minmax(0, 1fr);
	gap: 22px;
	padding: 22px 0;
	border-bottom: 1px solid var(--hk-line);
}
.hk-list .hk-card--row .hk-card__body { gap: 7px; }
.hk-list .hk-card--row .hk-card__title { font-size: 18.5px; line-height: 1.65; }
.hk-list .hk-card--row .hk-card__sum { font-size: 16px; }
@media (min-width: 900px) {
	.hk-list__lead .hk-card--lead {
		display: grid;
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 26px;
		align-items: center;
	}
	.hk-list__lead .hk-card--lead .hk-card__media { margin: 0; }
	.hk-list__lead .hk-card--lead .hk-card__title { font-size: 25px; }
	.hk-list__lead .hk-card--lead .hk-card__sum { font-size: 16.5px; }
}
@media (max-width: 699px) {
	.hk-list .hk-card--row { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
	.hk-list .hk-card--row .hk-card__title { font-size: 15.5px; }
	.hk-list .hk-card--row .hk-card__sum { display: none; }
}
.hk-empty { padding: 32px 0; color: var(--hk-muted); }
.hk-split__main > .hk-empty:first-child { padding: 0 0 28px; }

/* Pagination ------------------------------------------------------------- */
.hk-pager { display: grid; justify-items: center; gap: 12px; margin-top: 36px; }
.hk-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hk-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--hk-line-2);
	background: #fff;
	color: var(--hk-ink);
	font-size: 14.5px;
	font-weight: 600;
	transition: background-color .15s, border-color .15s, color .15s;
}
.hk-pager .page-numbers.current { background: var(--hk-navy); border-color: var(--hk-navy); color: #fff; }
.hk-pager .page-numbers.dots { min-width: 24px; padding: 0 4px; border-color: transparent; color: var(--hk-muted); }
.hk-pager__info { color: var(--hk-muted); font-size: 13px; }
@media (hover: hover) {
	.hk-pager a.page-numbers:hover { border-color: var(--hk-navy); color: var(--hk-indigo); }
}
@media (max-width: 599px) {
	.hk-pager .prev span, .hk-pager .next span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.hk-pager .prev, .hk-pager .next { padding: 0; }
	.hk-pager .page-numbers { min-width: 40px; height: 40px; }
}

/* Footer ----------------------------------------------------------------- */
.hk-foot { background: var(--hk-navy); color: var(--hk-on-dark); font-size: 14.5px; }
.hk-foot > .hk-wrap {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 40px 64px;
	padding-top: 48px;
}
.hk-foot__logo img { width: auto; height: 50px; }
.hk-foot__tagline { margin-top: 14px; color: var(--hk-on-dark); font-size: 14px; line-height: 1.8; }
.hk-social--foot { gap: 8px; margin-top: 20px; }
.hk-social--foot .hk-social__link { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.hk-foot__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px 28px;
	align-content: start;
}
.hk-foot__col.is-wide { grid-column: span 2; }
.hk-foot__col.is-wide ul { columns: 2; column-gap: 28px; }
.hk-foot__col li { break-inside: avoid; }
.hk-foot__title {
	position: relative;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--hk-on-dark-line);
	color: #fff;
	font-size: 15px;
}
.hk-foot__title::after {
	content: "";
	position: absolute;
	bottom: -1px;
	inset-inline-start: 0;
	width: 28px;
	height: 2px;
	background: var(--hk-orange);
}
.hk-foot__col li a { display: inline-block; padding: 5px 0; line-height: 1.6; transition: color .15s; }
.hk-foot__title a { transition: color .15s; }
.hk-foot__bottom {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 18px 0 22px;
	border-top: 1px solid var(--hk-on-dark-line);
	color: rgba(255, 255, 255, .62);
	font-size: 13px;
}
@media (hover: hover) {
	.hk-foot a:hover { color: #fff; }
	.hk-foot__col li a:hover { text-decoration: underline; text-underline-offset: .35em; }
	.hk-social--foot .hk-social__link:hover { background: #fff; border-color: #fff; color: var(--hk-navy); }
	.hk-social--top .hk-social__link:hover { background: rgba(255, 255, 255, .08); }
}
@media (max-width: 1099px) {
	.hk-foot > .hk-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hk-foot__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
	.hk-foot__tagline { margin: 0; }
	.hk-social--foot { margin: 0; margin-inline-start: auto; }
	.hk-foot__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
	.hk-foot > .hk-wrap { padding-top: 36px; }
	.hk-foot__brand { display: grid; justify-items: start; gap: 12px; }
	.hk-foot__logo img { height: 44px; }
	.hk-social--foot { margin: 4px 0 0; }
	.hk-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 28px 20px; }
	.hk-foot__col.is-wide { grid-column: 1 / -1; }
	.hk-foot__bottom { flex-direction: column; align-items: flex-start; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* Back to top ------------------------------------------------------------ */
.hk-totop {
	position: fixed;
	bottom: calc(20px + env(safe-area-inset-bottom));
	inset-inline-end: 20px;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .16);
	background: var(--hk-navy);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s var(--hk-ease), transform .2s var(--hk-ease), visibility 0s linear .2s, background-color .15s;
}
.hk-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
	.hk-totop:hover { background: var(--hk-indigo); }
}
@media (max-width: 599px) {
	.hk-totop { inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}

/* Forms (comments and plugins) ------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
	max-width: 100%;
	border: 1px solid var(--hk-line-2);
	border-radius: 0;
	background: #fff;
	font-size: 16px;
}
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="password"], select { height: 46px; padding: 0 12px; }
textarea { padding: 10px 12px; line-height: 1.8; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hk-navy); box-shadow: 0 0 0 1px var(--hk-navy); }

/* Softer surfaces and motion (CSS only, compositor-friendly) ------------- */
.hk-media { border-radius: var(--hk-r); isolation: isolate; }
.hk-card__media .hk-media__img { transition: transform .6s var(--hk-ease), opacity .2s; }
.hk-media__play { border-radius: 50%; width: 40px; height: 40px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .3s var(--hk-ease); }
.hk-shead__title::before { border-radius: 2px; }
.hk-iconbtn, .hk-btn, .hk-sform__btn, .hk-follow__list a, .hk-pager .page-numbers, .hk-totop, .hk-social--foot .hk-social__link, .hk-social--drawer .hk-social__link { border-radius: var(--hk-r); }
.hk-sform__input { border-radius: 0 var(--hk-r) var(--hk-r) 0; }
.hk-sform__btn { border-radius: var(--hk-r) 0 0 var(--hk-r); }
.hk-btn, .hk-sform__btn, .hk-follow__list a, .hk-pager a.page-numbers, .hk-totop, .hk-social__link {
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--hk-ease), box-shadow .2s;
}
.hk-btn:active, .hk-sform__btn:active, .hk-follow__list a:active, .hk-pager a.page-numbers:active, .hk-iconbtn:active, .hk-totop:active { transform: scale(.96); }
.hk-drawer__panel { border-radius: var(--hk-r) 0 0 var(--hk-r); }
.hk-search { border-radius: 0 0 var(--hk-r) var(--hk-r); }
@media (hover: hover) {
	.hk-card:hover .hk-card__media .hk-media__img { transform: scale(1.045); }
	.hk-card:hover .hk-media__play { transform: scale(1.1); }
	.hk-follow__list a:hover, .hk-pager a.page-numbers:hover, .hk-btn:hover, .hk-totop:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(1, 23, 57, .14); }
	.hk-card__media:hover .hk-media__img { opacity: 1; }
}

@keyframes hk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hk-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.hk-top, .hk-mast__menu, .hk-mast__search, .hk-nav, .hk-search, .hk-drawer, .hk-foot, .hk-totop, .hk-share, .hk-article__side, .hk-related, .hk-comments { display: none !important; }
	.hk-mast { position: static; border: 0; }
	body { color: #000; }
}

/* ===== Shared refinements ================================================ */
.hk-avatar {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-inline-end: 8px;
	border-radius: 50%;
	background: var(--hk-navy);
	color: var(--hk-orange);
	font-size: 14px;
	font-weight: 900;
	vertical-align: middle;
}
.hk-card__author { display: flex; align-items: center; }
.hk-shead__title { font-weight: 900; }
.hk-shead__more {
	padding: 3px 12px 3px 8px;
	border: 1px solid var(--hk-line);
	border-radius: 999px;
	transition: background-color .2s, border-color .2s, color .2s;
}
.hk-shead--dark .hk-shead__more { border-color: rgba(255, 255, 255, .2); }
@media (hover: hover) {
	.hk-shead__more:hover { background: var(--hk-navy); border-color: var(--hk-navy); color: #fff; }
	.hk-shead--dark .hk-shead__more:hover { background: var(--hk-orange); border-color: var(--hk-orange); color: var(--hk-navy); }
}
/* Sidebar boxes as framed panels */
.hk-split__side .hk-sidebox, .hk-article__side .hk-sidebox, .hk-split__side .hk-widget, .hk-article__side .hk-widget {
	padding: 18px;
	border: 1px solid var(--hk-line);
	border-radius: 12px;
	background: #fff;
}
.hk-split__side { gap: 24px; }
@media (min-width: 1100px) {
	.hk-split__side::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hk-ts__latest .hk-shead__title::before { animation: none; }
}

/* Lists trimmed by the fill script */
[data-fill-ref] > [hidden] { display: none !important; }
.hk-split--archive .hk-split__side { position: static; }
.hk-sidebox--fill .hk-card--row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.hk-sidebox--fill .hk-card--row .hk-card__title { font-size: 14.5px; }

/* ===== Header: livelier, still light (transform/opacity only) =========== */
.hk-mast { position: relative; overflow: hidden; }
.hk-mast::before {
	/* the brand mark, large and faint, at the far end of the masthead */
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 8%;
	width: 260px;
	height: 260px;
	background: url(../img/mark.webp) center / contain no-repeat;
	opacity: .06;
	transform: translateY(-50%) rotate(-8deg);
	pointer-events: none;
}
.hk-mast::after {
	/* a thin orange light that crosses the bottom edge every few seconds */
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--hk-orange) 50%, transparent);
	transform: translateX(-100%);
	animation: hk-sweep 7s var(--hk-ease) 1s infinite;
	pointer-events: none;
}
@keyframes hk-sweep {
	0% { transform: translateX(100%); opacity: 0; }
	10% { opacity: 1; }
	45% { transform: translateX(-100%); opacity: 1; }
	46%, 100% { transform: translateX(-100%); opacity: 0; }
}
.hk-mast__in { position: relative; z-index: 1; }
.hk-logo { animation: hk-rise .7s var(--hk-ease) both; }
.hk-mast__tagline { animation: hk-rise .7s var(--hk-ease) .15s both; }
.hk-mast__sform { animation: hk-rise .7s var(--hk-ease) .25s both; transition: width .35s var(--hk-ease); }
.hk-mast__sform:focus-within { width: min(440px, 40vw); }
@keyframes hk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hk-logo img { transition: transform .35s var(--hk-ease); }
@media (hover: hover) {
	.hk-logo:hover img { transform: scale(1.03); }
}
/* menu items arrive one after another, once */
@media (min-width: 1100px) {
	.hk-nav__list > li { animation: hk-rise .5s var(--hk-ease) both; }
	.hk-nav__list > li:nth-child(2) { animation-delay: .04s; }
	.hk-nav__list > li:nth-child(3) { animation-delay: .08s; }
	.hk-nav__list > li:nth-child(4) { animation-delay: .12s; }
	.hk-nav__list > li:nth-child(5) { animation-delay: .16s; }
	.hk-nav__list > li:nth-child(6) { animation-delay: .2s; }
	.hk-nav__list > li:nth-child(7) { animation-delay: .24s; }
	.hk-nav__list > li:nth-child(8) { animation-delay: .28s; }
	.hk-nav__list > li:nth-child(n + 9) { animation-delay: .32s; }
}
/* the top bar's current language as a small pill */
.hk-langs [aria-current] { padding: 2px 10px; border-radius: 999px; background: rgba(247, 165, 14, .14); }
@media (max-width: 1099px) {
	.hk-mast::before { width: 140px; height: 140px; inset-inline-end: 4%; }
}
@media (prefers-reduced-motion: reduce) {
	.hk-mast::after { display: none; }
}
.hk-stack > .hk-card.is-last { border-bottom: 0; padding-bottom: 0; }

/* ===== Three-tier header: fixed, top bar hides and masthead shrinks on scroll ===== */
:root { --hk-head: 183px; --hk-top-h: 34px; }
@media (min-width: 700px) and (max-width: 1099px) { :root { --hk-head: 148px; --hk-sticky: 102px; } }
@media (max-width: 699px) { :root { --hk-head: 106px; --hk-top-h: 0px; --hk-sticky: 98px; } }
@media (min-width: 1100px) { :root { --hk-sticky: 117px; } }
body { padding-top: var(--hk-head); }
.hk-head {
	position: fixed;
	top: var(--hk-bar);
	inset-inline: 0;
	z-index: 50;
	transition: transform .4s var(--hk-ease), box-shadow .3s;
}
.hk-head.no-anim, .hk-head.no-anim * { transition: none !important; }
.hk-head .hk-mast, .hk-head .hk-nav { position: relative; top: auto; z-index: auto; }
.hk-head.is-compact { transform: translateY(calc(var(--hk-top-h) * -1)); box-shadow: 0 8px 22px rgba(1, 23, 57, .1); }
.hk-head .hk-nav { box-shadow: none; }
.hk-nav__logo, .hk-nav__search { display: none !important; }

/* tier 1 and 2 share the navy; a hairline keeps them apart */
.hk-top { background: var(--hk-navy); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hk-top__in { min-height: 34px; }

/* tier 2 shrinks */
.hk-mast__in { transition: min-height .4s var(--hk-ease); }
.hk-logo img { transition: height .4s var(--hk-ease), transform .35s var(--hk-ease); }
.hk-mast__tagline, .hk-mast__sform { transition: opacity .3s, transform .4s var(--hk-ease), width .35s var(--hk-ease); }
.hk-head.is-compact .hk-mast__in { min-height: 64px; }
.hk-head.is-compact .hk-logo img { height: 40px; }
.hk-head.is-compact .hk-mast__sform .hk-sform__input, .hk-head.is-compact .hk-mast__sform .hk-sform__btn { height: 38px; }
.hk-head.is-compact .hk-mast::before { opacity: 0; }
.hk-mast::before { transition: opacity .3s; }
@media (max-width: 1099px) {
	.hk-head.is-compact .hk-mast__in { min-height: 52px; }
	.hk-head.is-compact .hk-logo img { height: 30px; }
}

/* the tagline is typed, held, erased and typed again */
@media (min-width: 1100px) {
	.hk-mast__tagline { display: inline-flex; align-items: center; min-height: 28px; color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 700; }
}
.hk-type { white-space: nowrap; }
.hk-type__cursor {
	display: inline-block;
	width: 2px;
	height: 1.15em;
	margin-inline-start: 3px;
	border-radius: 1px;
	background: var(--hk-orange);
	animation: hk-blink 1s steps(1) infinite;
}
@keyframes hk-blink { 50% { opacity: 0; } }
.hk-tagline__mark {
	display: inline-block;
	width: 5px;
	height: 18px;
	margin-inline: 10px;
	border-radius: 2px;
	background: var(--hk-orange);
	transform: skewX(-28deg);
}
.hk-tagline__mark:nth-child(2) { margin-inline-start: 0; }
@media (prefers-reduced-motion: reduce) {
	.hk-type__cursor { display: none; }
}

/* tier 3: one indicator glides between items */
.hk-nav__in { position: relative; }
.hk-nav__ink {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 1px;
	height: 3px;
	background: var(--hk-orange);
	transform-origin: left center;
	opacity: 0;
	pointer-events: none;
	transition: transform .4s var(--hk-ease), opacity .25s;
}
.hk-nav__ink.no-anim { transition: none; }
@media (min-width: 1100px) {
	.hk-nav.has-ink .hk-nav__list > li > a::after, .hk-nav.has-ink .hk-more > button::after { display: none; }
	.hk-nav__list > li > a { transition: color .3s var(--hk-ease); }
}
@media (max-width: 1099px) { .hk-nav__ink { display: none; } }

/* ===== Section label on the picture (bottom-right) ====================== */
.hk-card__figure { position: relative; margin-bottom: 12px; }
.hk-card__figure > .hk-card__media { margin: 0 !important; }
.hk-card--lead .hk-card__figure { margin-bottom: 16px; }
.hk-card--row .hk-card__figure { margin: 0; }
.hk-label--pic {
	position: absolute;
	bottom: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 20px);
	padding: 3px 11px 3px 10px;
	border-radius: 999px;
	background: rgba(1, 23, 57, .86);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	transition: background-color .25s, color .25s, transform .25s var(--hk-ease);
}
.hk-label--pic::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--hk-orange); }
@media (hover: hover) {
	.hk-label--pic:hover { background: var(--hk-orange); color: var(--hk-navy); text-decoration: none; transform: translateY(-2px); }
	.hk-label--pic:hover::before { background: var(--hk-navy); }
}
/* play button in the middle of the picture, clear of the label */
.hk-media__play { top: 50%; bottom: auto; inset-inline-start: 50%; transform: translate(50%, -50%); }
[dir="ltr"] .hk-media__play { transform: translate(-50%, -50%); }
.hk-card:hover .hk-media__play { transform: translate(50%, -50%) scale(1.1); }
.hk-card--row .hk-media__play { width: 30px; height: 30px; }
@media (max-width: 599px) {
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story .hk-card__figure,
	.hk-grid--3 > .hk-card--story .hk-card__figure { margin: 0; }
	.hk-grid--4:not(.hk-grid--videos) > .hk-card--story .hk-label--pic,
	.hk-grid--3 > .hk-card--story .hk-label--pic { display: none; }
}
@media (min-width: 900px) {
	.hk-list__lead .hk-card--lead .hk-card__figure { margin: 0; }
}

/* ===== Brand label: yellow with dark-blue text ========================== */
.hk-label--pic, .hk-ts__lead .hk-label, .hk-card--lead .hk-card__body > .hk-label {
	background: var(--hk-orange);
	color: var(--hk-navy);
	font-weight: 900;
}
.hk-label--pic::before { background: var(--hk-navy); }
.hk-card--lead .hk-card__body > .hk-label { padding: 2px 12px; border-radius: 999px; font-size: 12.5px; }
@media (hover: hover) {
	.hk-label--pic:hover { background: var(--hk-navy); color: #fff; }
	.hk-label--pic:hover::before { background: var(--hk-orange); }
}
/* videos: section name as text under the picture */
.hk-card--video .hk-card__body > .hk-label { color: var(--hk-orange); font-size: 12.5px; }

/* ===== Header on tablets and phones: all three tiers, tagline typed ===== */
@media (max-width: 699px) {
	:root { --hk-top-h: 30px; --hk-head: 158px; }
	.hk-top { display: block; font-size: 11.5px; }
	.hk-top__in { min-height: 30px; }
	.hk-top .hk-today span:last-child, .hk-social--top { display: none; }
	.hk-langs a, .hk-langs span { padding: 3px 9px; }
}
@media (max-width: 1099px) {
	.hk-mast__tagline {
		display: flex;
		align-items: center;
		justify-content: center;
		grid-column: 1 / -1;
		grid-row: 2;
		min-height: 22px;
		margin: -4px 0 0;
		padding: 0 0 10px;
		border: 0;
		color: rgba(255, 255, 255, .88);
		font-size: 13px;
		font-weight: 700;
		overflow: hidden;
		max-height: 40px;
		transition: max-height .35s var(--hk-ease), opacity .25s, padding .35s var(--hk-ease);
	}
	.hk-mast__tagline .hk-tagline__mark { width: 4px; height: 13px; margin-inline: 8px; }
	.hk-head.is-compact .hk-mast__tagline { max-height: 0; opacity: 0; padding-bottom: 0; }
}
@media (min-width: 700px) and (max-width: 1099px) {
	.hk-mast__in { grid-template-columns: 44px auto minmax(0, 1fr) 44px; }
	.hk-logo { justify-self: start; }
	.hk-mast__tagline { grid-column: 3; grid-row: 1; justify-content: flex-start; margin: 0; padding: 0 18px; border-inline-start: 1px solid rgba(255, 255, 255, .2); font-size: 14px; max-height: none; }
	.hk-mast__search { grid-column: 4; }
	.hk-head.is-compact .hk-mast__tagline { max-height: none; opacity: 1; padding-bottom: 0; }
}
@media (max-width: 699px) {
	.hk-mast__menu { grid-column: 1; grid-row: 1; }
	.hk-logo { grid-column: 2; grid-row: 1; }
	.hk-mast__search { grid-column: 3; grid-row: 1; }
}
@media (min-width: 700px) and (max-width: 1099px) {
	.hk-mast__menu { grid-column: 1; grid-row: 1; }
	.hk-logo { grid-column: 2; grid-row: 1; }
	.hk-mast__search { grid-row: 1; }
}

/* ===== Round 9: calmer joins, smooth scrolling, back-to-top, sidebar ===== */
.hk-top { border-bottom: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* horizontal strips glide; snapping only nudges */
.hk-nav__list, .hk-tabs, .hk-guide__list, .hk-grid--videos { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }

/* Back to top: centred, a ring shows how far you have read */
.hk-totop {
	inset-inline: auto;
	left: 50%;
	bottom: calc(18px + env(safe-area-inset-bottom));
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: var(--hk-navy);
	box-shadow: 0 8px 22px rgba(1, 23, 57, .28);
	transform: translate(-50%, 16px) scale(.9);
}
.hk-totop.is-visible { transform: translate(-50%, 0) scale(1); }
.hk-totop .hk-icon { position: relative; z-index: 1; }
.hk-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hk-totop__track, .hk-totop__bar { fill: none; stroke-width: 3; }
.hk-totop__track { stroke: rgba(255, 255, 255, .14); }
.hk-totop__bar { stroke: var(--hk-orange); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }
@media (hover: hover) {
	.hk-totop:hover { background: var(--hk-indigo); transform: translate(-50%, -3px) scale(1); }
}
@media (max-width: 599px) {
	.hk-totop { width: 48px; height: 48px; left: 50%; inset-inline-end: auto; }
}

/* Sidebar: framed panels with a tinted heading */
.hk-split__side .hk-sidebox, .hk-article__side .hk-sidebox {
	padding: 0 0 16px;
	overflow: hidden;
	border: 1px solid var(--hk-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(1, 23, 57, .04);
}
.hk-split__side .hk-sidebox > .hk-shead, .hk-article__side .hk-sidebox > .hk-shead {
	margin: 0 0 6px;
	padding: 13px 18px;
	border-bottom: 1px solid var(--hk-line);
	background: linear-gradient(to left, #f6f7fb, #fff);
}
.hk-split__side .hk-sidebox > :not(.hk-shead), .hk-article__side .hk-sidebox > :not(.hk-shead) { margin-inline: 18px; }
.hk-sidebox .hk-shead__title { font-size: 16px; }
.hk-sidebox .hk-shead__more { padding: 2px 10px 2px 6px; font-size: 12.5px; }
/* most read: numbered badges */
.hk-rank > li { padding: 12px 0; }
.hk-card--rank { grid-template-columns: 32px minmax(0, 1fr); align-items: center; }
.hk-card__rank {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hk-navy);
	color: var(--hk-orange);
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	transition: background-color .25s, color .25s;
}
.hk-rank > li:first-child .hk-card__rank { background: var(--hk-orange); color: var(--hk-navy); }
@media (hover: hover) {
	.hk-card--rank:hover .hk-card__rank { background: var(--hk-orange); color: var(--hk-navy); }
}
.hk-sidebox--fill .hk-card--row { padding: 11px 0; }
.hk-sidebox--fill .hk-card--row .hk-media { border-radius: 8px; }

/* No seam between top bar and masthead at any zoom or pixel ratio */
.hk-head { background: var(--hk-navy); }
.hk-top, .hk-top__in { border: 0 !important; box-shadow: none !important; }
.hk-mast { margin-top: -1px; border-top: 0; }
.hk-mast::after { bottom: 0; }
