/*
 * Sizing note
 *
 * Every length here is in pixels rather than rem on purpose. The site's theme
 * sets a reduced root font size, so a rem-based component renders at roughly
 * 60% of its intended size inside it. Pixels make the plugin independent of
 * whatever the theme does to the root, which is what a self-contained
 * component needs. Do not convert these back to rem.
 */

/*
 * HDF Prayer Times
 *
 * Same visual language as the HDF Islamic Calendar: a cream page, full bleed
 * colour bands, giant Barlow Condensed numerals, yellow uppercase eyebrows,
 * fully rounded pill buttons, and no shadows or gradients anywhere.
 */

.hdf-pt {
	--blue: #2564AA;
	--navy: #18406C;
	--navy-deep: #12314F;
	--yellow: #FED545;
	--yellow-deep: #F5C822;
	--charcoal: #1C1C1C;
	--red: #BB0305;
	--cream: #FFFFFF;
	--card: #F8F7F3;
	--tint: #E8EFF7;
	--rule: #DFDCD2;
	--ink-soft: #4A4A44;

	--sans: Inter, "Helvetica Neue", Arial, sans-serif;
	--cond: "Barlow Condensed", Inter, Arial, sans-serif;
	--arabic: 'Scheherazade New', serif;

	--r: 8px;

	font-family: var(--sans);
	color: var(--charcoal);
	font-size: 18px;
	line-height: 1.6;
	background: var(--cream);
}

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

.hdf-pt__wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
}

.hdf-pt :where(a) { color: var(--blue); }
.hdf-pt :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ------------------------------------------------------------------- type */

.hdf-pt__eyebrow {
	display: block;
	font-family: var(--cond);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
	margin: 0 0 10px;
}

.hdf-pt :where(h1, h2, h3) {
	font-family: var(--sans);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--charcoal);
	margin: 0 0 12px;
	text-wrap: balance;
}
.hdf-pt :where(h1) { font-size: clamp(34px, 6.2vw, 56px); }
.hdf-pt :where(h2) { font-size: clamp(26px, 4.4vw, 40px); }
.hdf-pt :where(h3) { font-size: 22px; letter-spacing: -0.01em; }

/*
 * The highlight is painted as a background image rather than a background
 * colour so its width can be animated. It sits at full width by default, and
 * only the motion rules wind it back to zero, so a visitor without script or
 * with reduced motion always sees a complete highlight.
 */
.hdf-pt__mark {
	background-color: transparent;
	background-image: linear-gradient(var(--yellow), var(--yellow));
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 100% 100%;
	color: var(--charcoal);
	padding: 0 0.28em 0.06em;
	border-radius: 3px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.hdf-pt__lede,
.hdf-pt__section-head p,
.hdf-pt__band--navy p {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 60ch;
	margin: 0 0 8px;
}
.hdf-pt__band--navy p { color: rgba(255, 255, 255, 0.88); }
.hdf-pt :where(p) { max-width: 68ch; }

/* --------------------------------------------------------------- structure */

.hdf-pt__band { padding: 80px 8%; background: var(--cream); }
.hdf-pt__band--ice { background: var(--tint); }
.hdf-pt__band--navy { background: var(--navy); color: #fff; }
.hdf-pt__band--tight { padding: 56px 8%; }

.hdf-pt__band--navy h2, .hdf-pt__band--navy h3 { color: #fff; }
.hdf-pt__band--navy h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* The trust line sits under the appeal, quieter than it. */
.hdf-pt__band--navy .hdf-pt__cta-trust {
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
	margin-top: 10px;
}
.hdf-pt__band--navy p { color: rgba(255, 255, 255, 0.86); }
.hdf-pt__band--navy .hdf-pt__eyebrow { color: var(--yellow); }
.hdf-pt__band--navy a:not(.hdf-pt__btn) { color: var(--yellow); }

.hdf-pt__section-head { max-width: 672px; margin-bottom: 24px; }

/* Matches the Islamic Calendar's breadcrumbs. */
.hdf-pt__crumbs {
	font-family: var(--cond);
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
	padding: 28px 0 0;
}
.hdf-pt__crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hdf-pt__crumbs a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.hdf-pt__crumbs a:hover { color: var(--yellow); }
.hdf-pt__crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.4); }

/* ------------------------------------------------------------ pill buttons */

/* Base is the HDF button spec: outlined blue pill on a light ground. */
.hdf-pt .hdf-pt__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px;
	border: 1px solid var(--blue);
	border-radius: 50px;
	color: var(--blue);
	background-color: transparent;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: all .5s ease;
}

/* chevron takes the button's own colour */
.hdf-pt .hdf-pt__btn::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: rotate(45deg);
	margin-right: 2px;
}

.hdf-pt .hdf-pt__btn:hover,
.hdf-pt .hdf-pt__btn:focus-visible { background-color: var(--blue); color: #fff; }

/* solid blue, for a light ground */
.hdf-pt .hdf-pt__btn--solid { background-color: var(--blue); color: #fff; }
.hdf-pt .hdf-pt__btn--solid:hover,
.hdf-pt .hdf-pt__btn--solid:focus-visible { background-color: #1D5292; color: #fff; }

/* primary on a colour band: white fill, blue label */
.hdf-pt .hdf-pt__btn--light {
	background-color: #fff;
	color: var(--blue);
	border-color: rgba(255, 255, 255, 0.45);
	background-clip: padding-box;
}
.hdf-pt .hdf-pt__btn--light:hover,
.hdf-pt .hdf-pt__btn--light:focus-visible { background-color: #EDF3FA; color: var(--blue); }

/* secondary on a colour band: lighter fill, white label */
.hdf-pt .hdf-pt__btn--soft {
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.28);
}
.hdf-pt .hdf-pt__btn--soft:hover,
.hdf-pt .hdf-pt__btn--soft:focus-visible { background-color: rgba(255, 255, 255, 0.32); color: #fff; }

.hdf-pt .hdf-pt__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --------------------------------------------------------------- the hero */

.hdf-pt__hero { background: var(--blue); color: #fff; padding: 0 8% 80px; }
.hdf-pt__hero .hdf-pt__eyebrow { color: var(--yellow); }
.hdf-pt__hero h1 { color: #fff; }
.hdf-pt__hero-grid { display: grid; gap: 32px; padding-top: 32px; }

.hdf-pt__count { margin: 24px 0 0; }
.hdf-pt__count-n {
	display: block;
	font-family: var(--cond);
	font-weight: 600;
	font-size: clamp(72px, 17vw, 136px);
	line-height: 0.8;
	letter-spacing: -0.02em;
	color: var(--yellow);
	font-variant-numeric: tabular-nums;
}
.hdf-pt__count-l {
	display: block;
	font-family: var(--sans);
	font-weight: 700;
	font-size: clamp(20px, 4vw, 30px);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin-top: 14px;
	color: #fff;
}
.hdf-pt__hero-note {
	font-size: 17px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
	margin: 12px 0 0;
	max-width: 48ch;
}

.hdf-pt__hero-aside { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
/*
 * Scheherazade New has a large design size, so its glyphs render noticeably
 * smaller than a sans at the same px value. The Arabic is set about 1.4x to
 * sit at the same visual weight as the Latin beside it.
 */
.hdf-pt__hero-arabic {
	font-family: var(--arabic);
	direction: rtl;
	font-weight: 400;
	font-size: clamp(30px, 7vw, 44px);
	line-height: 1.6;
	color: #fff;
	margin: 0;
	width: fit-content;
}

/* -------------------------------------------------------------- stat rows */

.hdf-pt__stats {
	list-style: none;
	margin: 36px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 20px;
}
.hdf-pt__stat-n {
	display: block;
	font-family: var(--cond);
	font-weight: 600;
	font-size: clamp(26px, 4.4vw, 36px);
	line-height: 1.05;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.hdf-pt__stat-n em { font-style: normal; color: var(--yellow); }
.hdf-pt__stat-l {
	display: block;
	font-family: var(--cond);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-top: 5px;
}

/* ------------------------------------------------------------- the day bar */

.hdf-pt__bar { width: 100%; }
.hdf-pt__bar-label {
	font-family: var(--cond);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--yellow);
	margin: 0 0 10px;
}
.hdf-pt__track {
	position: relative;
	height: 14px;
	border-radius: 7px;
	overflow: hidden;
	background: #17416F;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.hdf-pt__light { position: absolute; top: 0; bottom: 0; background: var(--yellow); }
.hdf-pt__now {
	position: absolute; top: -4px; width: 3px; height: 22px;
	background: #fff; border-radius: 2px; box-shadow: 0 0 0 2px var(--blue);
}
/* Tall enough for the deepest row the packer can use: three on a wide bar,
   four on a narrow one where the afternoon prayers bunch together. */
.hdf-pt__ticks { position: relative; height: 126px; margin-top: 8px; }
@media (max-width: 620px) {
	.hdf-pt__tick .nm { font-size: 12px; letter-spacing: 0.04em; }
	.hdf-pt__tick .tm { font-size: 11px; }
}
/* Width is auto so the box hugs its text. The packer measures this element,
   and a fixed width would report the box rather than the label. */
.hdf-pt__tick { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.hdf-pt__tick .tk { width: 1px; background: rgba(255, 255, 255, 0.5); margin: 0 auto 4px; }
.hdf-pt__tick .nm {
	display: block; font-family: var(--cond); font-weight: 600; font-size: 15px;
	letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.86); line-height: 1;
	white-space: nowrap;
}
.hdf-pt__tick .tm {
	display: block; font-size: 13px; color: rgba(255,255,255,.6);
	font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hdf-pt__tick.on .nm { color: var(--yellow); }
.hdf-pt__tick.on .tk { background: var(--yellow); }

/* ------------------------------------------------------ today's prayer set */

.hdf-pt__times { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hdf-pt__time {
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r);
	padding: 18px 20px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	align-items: center;
	position: relative;
}
.hdf-pt__time--now { background: var(--navy); border-color: var(--navy); color: #fff; }
.hdf-pt__time-en {
	font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--navy);
}
.hdf-pt__time--now .hdf-pt__time-en { color: #fff; }
.hdf-pt__time-ar {
	font-family: var(--arabic); direction: rtl; width: fit-content;
	font-weight: 400;
	font-size: 24px; line-height: 1.2; color: var(--ink-soft); grid-column: 1;
}
.hdf-pt__time--now .hdf-pt__time-ar { color: rgba(255,255,255,.8); }
.hdf-pt__time-at {
	grid-row: 1 / span 2; grid-column: 2;
	font-family: var(--cond); font-weight: 600; font-size: 44px; line-height: 0.95;
	font-variant-numeric: tabular-nums; color: var(--charcoal); text-align: right;
}
.hdf-pt__time--now .hdf-pt__time-at { color: var(--yellow); }
.hdf-pt__time-note {
	display: block; font-family: var(--cond); font-weight: 500;
	font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--ink-soft); margin-top: 4px;
}
.hdf-pt__time--now .hdf-pt__time-note { color: rgba(255,255,255,.75); }
.hdf-pt__time--sun { background: transparent; border-style: dashed; }

/* --------------------------------------------------------------- controls */

.hdf-pt__panel {
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
	padding: 24px 22px;
	position: relative;
	z-index: 2;
}
.hdf-pt__fields { display: grid; gap: 16px; }
.hdf-pt__field label, .hdf-pt__field .lbl {
	display: block; font-family: var(--cond); font-size: 15px; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
	margin-bottom: 7px;
}
.hdf-pt__field select, .hdf-pt__field input {
	width: 100%; font-family: var(--sans); font-size: 16px; font-weight: 500;
	padding: 11px 12px; border: 1px solid #B9B6AC; border-radius: 6px;
	background: var(--card); color: var(--charcoal); min-height: 48px;
}
.hdf-pt__field select:focus, .hdf-pt__field input:focus { border-color: var(--blue); }

/* --------------------------------------------------------- custom select */

.hdf-pt__select { position: relative; }

.hdf-pt__select-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 18px;
	background: var(--card);
	color: var(--charcoal);
	border: 1px solid var(--blue);
	border-radius: 50px;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	text-align: left;
	cursor: pointer;
	transition: all .5s ease;
}
.hdf-pt__select-btn:hover { background: var(--tint); }

/* chevron points down, and flips when the list is open */
.hdf-pt__select-btn::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: rotate(45deg);
	transition: transform .25s ease, margin .25s ease;
}
.hdf-pt__select-btn[aria-expanded="true"]::after {
	transform: rotate(225deg);
	margin-top: 4px;
}

.hdf-pt__select-list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r);
	max-height: 320px;
	overflow-y: auto;
	display: none;
}
.hdf-pt__select-list[data-open="1"] { display: block; }

.hdf-pt__select-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 14px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--charcoal);
	cursor: pointer;
}
.hdf-pt__select-list li.is-active { background: var(--tint); }
.hdf-pt__select-list li[aria-selected="true"] {
	background: var(--navy);
	color: #fff;
	font-weight: 600;
}
.hdf-pt__select-list li[aria-selected="true"].is-active { background-color: #1E4E80; }

/* tick on the chosen option, drawn rather than typed */
.hdf-pt__select-list li::after {
	content: "";
	flex: none;
	width: 6px;
	height: 11px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	opacity: 0;
}
.hdf-pt__select-list li[aria-selected="true"]::after { opacity: 1; }

.hdf-pt__seg { display: flex; gap: 6px; flex-wrap: wrap; }
.hdf-pt__seg button {
	flex: 1 1 auto; font-family: var(--cond); font-weight: 600; font-size: 17px;
	letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 16px; min-height: 48px;
	background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
	color: var(--charcoal); cursor: pointer;
}
.hdf-pt__seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.hdf-pt__note-sm {
	font-family: var(--cond); font-size: 15px; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 0;
}

/* ----------------------------------------------------------------- finder */

/*
 * The hero's stat row animates with animation-fill-mode: forwards, which keeps
 * a stacking context alive after the animation finishes. Without an explicit
 * z-index here the suggestions panel is painted underneath it, however high
 * its own z-index is.
 */
.hdf-pt__finderrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; position: relative; z-index: 5; }
.hdf-pt__finder { position: relative; flex: 1 1 320px; }
.hdf-pt__finder input {
	width: 100%; font-family: var(--sans); font-size: 16px; font-weight: 500;
	padding: 12px 16px 12px 44px;
	border: 0; border-radius: 999px; background: var(--card); color: var(--charcoal); min-height: 50px;
}
.hdf-pt__finder input::placeholder { color: #7A8189; }
.hdf-pt__finder .mag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7A8189; pointer-events: none; }

.hdf-pt__sugg {
	position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
	max-height: 340px; overflow-y: auto; display: none;
}
.hdf-pt__sugg[data-open="1"] { display: block; }
.hdf-pt__sugg button {
	display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px;
	font-family: var(--sans); font-size: 16px; text-align: left; background: transparent;
	border: 0; border-bottom: 1px solid var(--rule); cursor: pointer;
	padding: 12px 16px; color: var(--charcoal); min-height: 52px;
}
.hdf-pt__sugg button:last-child { border-bottom: 0; }
.hdf-pt__sugg button:hover, .hdf-pt__sugg button[aria-selected="true"] { background: var(--tint); }
.hdf-pt__sugg .cn { font-weight: 700; color: var(--navy); }
.hdf-pt__sugg .sn { font-size: 16px; color: var(--ink-soft); }
.hdf-pt__sugg .mg { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hdf-pt__sugg .none { padding: 16px; color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ------------------------------------------------------------ city summary */

.hdf-pt__city {
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
}
.hdf-pt__city-head {
	background: var(--navy); color: #fff; padding: 18px 22px;
	display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
}
.hdf-pt__city-name { font-family: var(--sans); font-weight: 700; font-size: 24px; letter-spacing: -0.015em; margin: 0; color: #fff; }
.hdf-pt__city-when { font-family: var(--cond); font-size: 15px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--yellow); margin: 3px 0 0; }
.hdf-pt__city-cd { font-family: var(--cond); font-weight: 600; font-size: 34px; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; text-align: right; }
.hdf-pt__city-cd small { display: block; font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: 0; color: rgba(255,255,255,.8); margin-top: 4px; }

.hdf-pt__six { display: grid; grid-template-columns: repeat(3, 1fr); }
.hdf-pt__six div { padding: 16px 12px; text-align: center; border-right: 1px solid #EDEBE4; border-bottom: 1px solid #EDEBE4; }
.hdf-pt__six div:nth-child(3n) { border-right: 0; }
.hdf-pt__six div:nth-last-child(-n+3) { border-bottom: 0; }
.hdf-pt__six .pn { display: block; font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.hdf-pt__six .pt { display: block; font-family: var(--cond); font-weight: 600; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 3px; }
.hdf-pt__six .on { background: var(--tint); box-shadow: inset 3px 0 0 var(--blue); }
.hdf-pt__six .on .pn { color: var(--blue); }

.hdf-pt__city-foot {
	padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 8px 20px;
	align-items: center; justify-content: space-between; background: #FFFFFF;
	border-top: 1px solid var(--rule);
}
.hdf-pt__city-foot a { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.hdf-pt__city-foot .path { font-family: var(--cond); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* ----------------------------------------------------------- state browse */

/*
 * Country tabs. The markup carries both lists so every link stays in the page
 * for crawlers and for anyone without script; the tabs only change which one
 * is on screen, and they stay hidden until script reveals them.
 */
.hdf-pt__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}
.hdf-pt__tabs[hidden] { display: none; }

.hdf-pt .hdf-pt__tabs button {
	display: inline-flex;
	/*
	 * Centred rather than baseline aligned. The label is Inter and the count is
	 * Barlow Condensed, so their baselines sit at different depths and baseline
	 * alignment pushed the whole line above the middle of the pill.
	 */
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 22px;
	min-height: 50px;
	line-height: 1;
	background: transparent;
	border: 1px solid var(--rule);
	border-radius: 50px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -0.01em;
	color: var(--navy);
	cursor: pointer;
	transition: all .3s ease;
}
.hdf-pt .hdf-pt__tabs button span {
	font-family: var(--cond);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}
.hdf-pt .hdf-pt__tabs button:hover { border-color: var(--blue); color: var(--blue); }
.hdf-pt .hdf-pt__tabs button[aria-selected="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}
.hdf-pt .hdf-pt__tabs button[aria-selected="true"] span { color: var(--yellow); }

/* With tabs live, the country heading would only repeat the chosen tab. */
.hdf-pt .is-tabbed .hdf-pt__country { display: none; }
.is-tabbed .hdf-pt__country-panel[hidden] { display: none; }

/* Scoped past `.hdf-pt h3`, which is more specific than a bare class and was
   otherwise resetting this margin to the shared heading value. */
.hdf-pt .hdf-pt__country {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin: 56px 0 8px;
	padding-top: 32px;
	border-top: 2px solid var(--rule);
	font-family: var(--sans);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: -0.015em;
	color: var(--navy);
}
.hdf-pt .hdf-pt__country:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.hdf-pt .hdf-pt__country span {
	font-family: var(--cond);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.hdf-pt__states { border-top: 1px solid var(--rule); }
.hdf-pt__states details { border-bottom: 1px solid var(--rule); }
.hdf-pt__states summary {
	cursor: pointer; list-style: none; padding: 16px 48px 16px 4px;
	display: flex; align-items: baseline; gap: 16px; position: relative; min-height: 60px;
}
.hdf-pt__states summary::-webkit-details-marker { display: none; }
.hdf-pt__states summary .nm { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--navy); flex: 1 1 auto; }
.hdf-pt__states summary .ct { font-family: var(--cond); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); flex: 0 0 auto; }
.hdf-pt__states summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 50%; background: var(--yellow);
	background-image: linear-gradient(to right, var(--charcoal) 0 100%), linear-gradient(to right, var(--charcoal) 0 100%);
	background-size: 11px 2px, 2px 11px; background-position: center, center; background-repeat: no-repeat;
}
.hdf-pt__states details[open] summary::after { background-size: 11px 2px, 0 0; }
.hdf-pt__citylist { columns: 3 260px; column-gap: 28px; padding: 0 4px 20px; }
.hdf-pt__citylist a {
	display: block; break-inside: avoid; text-decoration: none; color: var(--charcoal);
	font-size: 18px; padding: 5px 0;
}
.hdf-pt__citylist a:hover { color: var(--blue); }
.hdf-pt__citylist .mg {
	float: right;
	font-family: var(--cond);
	font-weight: 500;
	font-size: 15px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.hdf-pt__citylist .mg .pr {
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
	margin-right: 6px;
}
.hdf-pt__citylist a:hover .mg .pr { color: var(--navy); }

/* ------------------------------------------------------------------ table */

.hdf-pt__monthnav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.hdf-pt__printhead { display: none; }
.hdf-pt__monthnav-print { margin-left: auto; }
.hdf-pt__monthnav button {
	font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: 0.08em;
	text-transform: uppercase; padding: 8px 18px; min-height: 44px;
	background: var(--card); border: 1px solid var(--rule); border-radius: 999px; color: var(--charcoal); cursor: pointer;
}
.hdf-pt__monthnav button:hover { border-color: var(--blue); color: var(--blue); }
.hdf-pt__monthnav .lbl {
	flex: 1 1 auto; text-align: center; font-family: var(--cond); font-weight: 600;
	font-size: 24px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy);
}

.hdf-pt__table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.hdf-pt__table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 620px; }
.hdf-pt__table th, .hdf-pt__table td {
	padding: 12px 16px; border-bottom: 1px solid #EDEBE4; white-space: nowrap; text-align: right;
	font-variant-numeric: tabular-nums;
}
.hdf-pt__table th:first-child, .hdf-pt__table td:first-child,
.hdf-pt__table th:nth-child(2), .hdf-pt__table td:nth-child(2) { text-align: left; }
.hdf-pt__table thead th {
	font-family: var(--cond); font-weight: 600; font-size: 12px; letter-spacing: 0.12em;
	text-transform: uppercase; color: #fff; background: var(--navy); border-bottom: 0;
	position: sticky; top: 0;
}
.hdf-pt__table tbody td.d { font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 0.03em; color: var(--ink-soft); }
.hdf-pt__table tbody tr:last-child td { border-bottom: 0; }
.hdf-pt__table tr.is-today td { background: #FFF8DE; box-shadow: inset 3px 0 0 var(--yellow); font-weight: 600; }

/* --------------------------------------------------------------- callouts */

.hdf-pt__note {
	background: var(--yellow); color: var(--charcoal); padding: 22px 24px;
	border-radius: var(--r); font-size: 18px; margin: 28px 0 0;
}
.hdf-pt__note p { margin: 0; max-width: 70ch; }

.hdf-pt__qibla {
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
	padding: 24px 22px; display: flex; align-items: center; gap: 20px;
}
.hdf-pt__dial { width: 78px; height: 78px; flex: 0 0 auto; color: var(--ink-soft); }
.hdf-pt__qibla-n { font-family: var(--cond); font-weight: 600; font-size: 44px; line-height: 1; color: var(--blue); }
.hdf-pt__qibla p { margin: 4px 0 0; font-size: 17px; color: var(--ink-soft); }

/* ------------------------------------------------------------------- faq */

.hdf-pt__faq { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.hdf-pt__faq details + details { border-top: 1px solid var(--rule); }
.hdf-pt__faq summary {
	cursor: pointer; padding: 20px 52px 20px 24px; font-weight: 700;
	font-size: 20px; letter-spacing: -0.01em; color: var(--navy); position: relative;
	list-style: none; min-height: 56px; display: flex; align-items: center;
}
.hdf-pt__faq summary::-webkit-details-marker { display: none; }
.hdf-pt__faq summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 50%; background: var(--yellow);
	background-image: linear-gradient(to right, var(--charcoal) 0 100%), linear-gradient(to right, var(--charcoal) 0 100%);
	background-size: 11px 2px, 2px 11px; background-position: center, center; background-repeat: no-repeat;
}
.hdf-pt__faq details[open] summary::after { background-size: 11px 2px, 0 0; }
.hdf-pt__faq-a { padding: 0 24px 24px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.hdf-pt__faq-a p { margin: 0; }

/* -------------------------------------------------------- related links */

.hdf-pt__related { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hdf-pt__related a {
	display: block; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r);
	padding: 16px 20px; text-decoration: none; color: var(--navy); font-weight: 700;
	letter-spacing: -0.01em; min-height: 56px;
}
.hdf-pt__related a:hover { border-color: var(--blue); background: var(--tint); }
.hdf-pt__related span {
	display: block; font-family: var(--cond); font-weight: 500; font-size: 16px;
	letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px;
}

.hdf-pt__source {
	font-size: 14px;
	line-height: 1.55; color: var(--ink-soft); margin: 0; padding: 20px 0 0;
	border-top: 1px solid var(--rule); max-width: 74ch;
}
.hdf-pt__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- masthead */

.hdf-pt__top { background: var(--blue); }
.hdf-pt__top { padding-inline: 8%; }
.hdf-pt__top .hdf-pt__wrap { display: flex; align-items: center; padding-block: 16px; }
.hdf-pt__top img { height: 30px; width: auto; display: block; }

/* --------------------------------------------------------------- 560px+ */

@media (min-width: 560px) {
	.hdf-pt__stats { grid-template-columns: repeat(4, 1fr); }
	.hdf-pt__times { grid-template-columns: repeat(2, 1fr); }
	.hdf-pt__fields { grid-template-columns: 1fr 1fr; gap: 20px; }
	.hdf-pt__related { grid-template-columns: repeat(2, 1fr); }
	.hdf-pt__six { grid-template-columns: repeat(6, 1fr); }
	.hdf-pt__six div:nth-child(3n) { border-right: 1px solid #EDEBE4; }
	.hdf-pt__six div:last-child { border-right: 0; }
	.hdf-pt__six div { border-bottom: 0; }
}

/* --------------------------------------------------------------- 900px+ */

@media (min-width: 900px) {
	.hdf-pt__hero { padding-bottom: 80px; }
	.hdf-pt__hero-grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 48px; align-items: center; padding-top: 40px;
	}
	.hdf-pt__hero-aside { align-items: flex-end; text-align: right; width: 100%; }
	.hdf-pt__bar { text-align: left; }
	.hdf-pt__times { grid-template-columns: repeat(3, 1fr); }
	.hdf-pt__related { grid-template-columns: repeat(3, 1fr); }
}


/* =================================================================
 * Motion
 *
 * The .hdf-pt-motion class is added by script only when the visitor has not
 * asked for reduced motion, so nothing here can hide content from
 * someone who has.
 * ================================================================= */

/* ---- hover and focus feedback ---- */

.hdf-pt .hdf-pt__btn::after { transition: transform .3s ease; }
.hdf-pt .hdf-pt__btn:hover::after,
.hdf-pt .hdf-pt__btn:focus-visible::after { transform: rotate(45deg) translate(3px, -3px); }

.hdf-pt__time { transition: border-color .3s ease, transform .3s ease; }
.hdf-pt__time:not(.hdf-pt__time--now):hover { border-color: var(--blue); }

.hdf-pt__seg button { transition: all .3s ease; }
.hdf-pt__seg button:not([aria-pressed="true"]):hover { border-color: var(--blue); color: var(--blue); }

.hdf-pt__related a { transition: border-color .3s ease, background-color .3s ease, transform .3s ease; }
.hdf-pt__related a:hover { transform: translateY(-2px); }

.hdf-pt__citylist a { transition: color .25s ease, transform .25s ease; }
.hdf-pt__citylist a:hover { transform: translateX(3px); }

.hdf-pt__states summary { transition: background-color .3s ease; }
.hdf-pt__states summary:hover { background: rgba(37, 100, 170, 0.05); }
.hdf-pt__states summary:hover .nm { color: var(--blue); }
.hdf-pt__states summary::after { transition: transform .3s ease; }
.hdf-pt__states summary:hover::after { transform: translateY(-50%) scale(1.12); }

.hdf-pt__faq summary { transition: background-color .3s ease; }
.hdf-pt__faq summary:hover { background: var(--tint); }
.hdf-pt__faq summary::after { transition: transform .3s ease; }
.hdf-pt__faq summary:hover::after { transform: translateY(-50%) scale(1.12); }

.hdf-pt__table tbody tr { transition: background-color .2s ease; }
.hdf-pt__table tbody tr:hover td { background: var(--tint); }

.hdf-pt__printhead { display: none; }
.hdf-pt__monthnav-print { margin-left: auto; }
.hdf-pt__monthnav button { transition: all .3s ease; }
.hdf-pt__city-foot a { transition: color .25s ease; }
.hdf-pt__city-foot a:hover { text-decoration: underline; }
.hdf-pt__sugg button { transition: background-color .2s ease; }

/* ---- hero entrance, one sequence on load ---- */

.hdf-pt-motion .hdf-pt__hero .hdf-pt__crumbs,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__eyebrow,
.hdf-pt-motion .hdf-pt__hero h1,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__count,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__hero-note,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__finderrow,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__hero-aside,
.hdf-pt-motion .hdf-pt__hero .hdf-pt__stats,
.hdf-pt-motion .hdf-pt__enter {
	opacity: 0;
	animation: hdfEnter .7s cubic-bezier(.22, .61, .36, 1) forwards;
}
.hdf-pt-motion .hdf-pt__hero .hdf-pt__crumbs     { animation-delay: 0.04s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__eyebrow    { animation-delay: 0.11s; }
.hdf-pt-motion .hdf-pt__hero h1                  { animation-delay: 0.18s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__count      { animation-delay: 0.25s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__hero-note  { animation-delay: 0.32s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__finderrow  { animation-delay: 0.32s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__hero-aside { animation-delay: 0.39s; }
.hdf-pt-motion .hdf-pt__hero .hdf-pt__stats      { animation-delay: 0.46s; }
@keyframes hdfEnter {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

/* the daylight band grows out of the trough as the page settles */
.hdf-pt-motion .hdf-pt__light { transition: width .9s cubic-bezier(.22, .61, .36, 1) .45s; }
.hdf-pt-motion .hdf-pt__now { transition: left .6s ease; }

/* ---- the highlight wipes in behind the word ---- */

@keyframes hdfWipe {
	from { background-size: 0% 100%; }
	to   { background-size: 100% 100%; }
}

/* the hero runs on a delay, after its own entrance has settled */
.hdf-pt-motion .hdf-pt__hero .hdf-pt__mark {
	animation: hdfWipe .7s cubic-bezier(.22, .61, .36, 1) .52s both;
}

/* section headings wipe as their block scrolls into view */
.hdf-pt-motion .hdf-pt__reveal .hdf-pt__mark { background-size: 0% 100%; }
.hdf-pt-motion .hdf-pt__reveal.is-in .hdf-pt__mark {
	background-size: 100% 100%;
	transition: background-size .7s cubic-bezier(.22, .61, .36, 1) .12s;
}

/* ---- section reveal ---- */

.hdf-pt-motion .hdf-pt__reveal { opacity: 0; transform: translateY(14px); }
.hdf-pt-motion .hdf-pt__reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}

/* ---- panels that open ---- */

.hdf-pt-motion .hdf-pt__select-list[data-open="1"],
.hdf-pt-motion .hdf-pt__sugg[data-open="1"] { animation: hdfDrop .18s ease-out; }
@keyframes hdfDrop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

.hdf-pt-motion .hdf-pt__faq details[open] .hdf-pt__faq-a,
.hdf-pt-motion .hdf-pt__states details[open] .hdf-pt__citylist { animation: hdfFade .32s ease; }
@keyframes hdfFade {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
	.hdf-pt *, .hdf-pt__hero * { animation: none !important; transition: none !important; }
	.hdf-pt__reveal, .hdf-pt__enter, .hdf-pt__hero * { opacity: 1 !important; transform: none !important; }
	.hdf-pt__mark { background-size: 100% 100% !important; }
}

/* ---------------------------------------------------------------- print */

/* Landscape gives the seven time columns room to breathe on paper. */
@page {
	size: landscape;
	/* Tight top and bottom so a 31 day month clears a single sheet. */
	margin: 8mm 12mm;
}

@media print {
	/*
	 * The page is wrapped in the theme's header, footer and floating donate
	 * tab, none of which we can target by name. Hiding everything and then
	 * revealing only our own subtree is the one approach that does not depend
	 * on the theme's markup. Our container is lifted to the top of the sheet
	 * so the hidden chrome leaves no gap behind it.
	 */
	/* Fallback first: hides the ink everywhere but our own subtree. */
	body * { visibility: hidden !important; }
	#hdf-pt-main, #hdf-pt-main * { visibility: visible !important; }

	/*
	 * Then collapse the boxes. `visibility: hidden` leaves them in the layout,
	 * so the theme's tall footer was still generating a second, blank page.
	 * This removes every element that is neither our container, nor inside it,
	 * nor one of its ancestors.
	 */
	body *:not(:has(#hdf-pt-main)):not(#hdf-pt-main):not(#hdf-pt-main *) {
		display: none !important;
	}
	#hdf-pt-main { margin: 0 !important; width: 100% !important; }

	/*
	 * Only the timetable prints. Hiding components rather than whole bands
	 * used to leave headings like "Change the calculation" on the page with
	 * nothing under them.
	 */
	.hdf-pt__top,
	.hdf-pt__hero,
	.hdf-pt__band { display: none !important; }

	.hdf-pt__band--month { display: block !important; padding: 0; background: #fff !important; }
	.hdf-pt__band--month .hdf-pt__section-head,
	.hdf-pt__band--month .hdf-pt__monthnav,
	.hdf-pt__band--month .hdf-pt__note-sm { display: none !important; }

	.hdf-pt { background: #fff; font-size: 11pt; }
	.hdf-pt__wrap { max-width: none; padding: 0; }

	.hdf-pt__printhead {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 28px;
		margin: 0 0 8px;
	}
	.hdf-pt__printhead-main { flex: 1 1 auto; }
	.hdf-pt__printnote {
		flex: 0 0 40%;
		margin: 0;
		font-family: var(--sans);
		letter-spacing: 0;
		text-transform: none;
		max-width: none;
		font-size: 7.5pt;
		line-height: 1.35;
		text-align: right;
		color: #555;
	}
	.hdf-pt__printlogo { display: block; height: 30px; width: auto; margin: 0 0 8px; }
	.hdf-pt__printhead h2 { font-size: 18pt; margin: 0 0 2px; color: #000; }
	.hdf-pt__printhead-main p {
		margin: 0;
		font-family: var(--cond);
		font-size: 10.5pt;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #333;
	}

	.hdf-pt__table-wrap { border: 0; overflow: visible; }
	.hdf-pt__table { min-width: 0; font-size: 10pt; width: 100%; }
	.hdf-pt__table th, .hdf-pt__table td { padding: 1px 12px; line-height: 1.2; }

	/*
	 * Sticky positioning stops the browser repeating the header row on each
	 * printed page, which left later pages as unlabelled columns of numbers.
	 */
	/*
	 * The date and Hijri cells carry a larger size on screen, which was
	 * setting the row height no matter what the table size said.
	 */
	.hdf-pt__table tbody td.d { font-size: inherit; }

	.hdf-pt__table thead { display: table-header-group; }
	.hdf-pt__table thead th {
		position: static;
		background: #e8e8e8 !important;
		color: #000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.hdf-pt__table tbody tr { page-break-inside: avoid; }
	.hdf-pt__table tr.is-today td { background: #f3f3f3 !important; font-weight: 700; }
}

}
