/* ==========================================================================
   Easy News — mobile app screens (/app/…). Loaded after main.css on the app
   screens only, so the site's tokens (--hn-*) and dark mode carry over.
   --hna-color is the app colour (Customize → Mobile app).
   ========================================================================== */

:root {
	--hna-color: var(--hn-primary);
	--hna-ink: #ffffff;
	--hna-radius: 20px;
	--hna-gap: 14px;
	--hna-nav-h: 64px;
	--hna-top-h: 58px;
}

body.hna-body {
	background: var(--hn-bg);
	min-height: 100vh;
	min-height: 100dvh;
}

.hna {
	max-width: 680px;
	margin-inline: auto;
}

.hna-icon {
	width: 22px;
	height: 22px;
	flex: none;
}

[dir="rtl"] .hna-i-back,
[dir="ltr"] .hna-i-fwd {
	transform: scaleX(-1);
}

/* ---------- top bar ---------- */
.hna-top {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: calc(var(--hna-top-h) + env(safe-area-inset-top));
	padding: env(safe-area-inset-top) 12px 0;
	background: var(--hna-color);
	color: var(--hna-ink);
	box-shadow: 0 2px 12px rgb(0 0 0 / .12);
}

@media (min-width: 601px) {
	.admin-bar .hna-top {
		top: var(--wp-admin--admin-bar--height, 32px);
	}
}

.hna-top__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.hna-top__brand img {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #fff;
	object-fit: cover;
}

.hna-top__name,
.hna-top__title {
	margin: 0;
	overflow: hidden;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hna-top__back {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: inherit;
}

.hna-top__actions {
	display: flex;
	gap: 2px;
	margin-inline-start: auto;
}

.hna-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.hna-iconbtn:hover,
.hna-top__back:hover {
	background: rgb(255 255 255 / .14);
}

.hna-card .hna-iconbtn:hover,
.hna-dialog .hna-iconbtn:hover {
	background: var(--hn-surface-2);
}

.hna-lang-btn__code {
	font-size: .8rem;
	font-weight: 700;
}

.hna-scheme-light,
:root[data-scheme="dark"] .hna-scheme-dark {
	display: none;
}

:root[data-scheme="dark"] .hna-scheme-light {
	display: block;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .hna-scheme-dark {
		display: none;
	}
	:root:not([data-scheme="light"]) .hna-scheme-light {
		display: block;
	}
}

/* ---------- layout ---------- */
.hna-main {
	padding: 14px 14px calc(var(--hna-nav-h) + 28px + env(safe-area-inset-bottom));
	outline: 0;
}

.hna-greeting {
	margin: 0 0 10px;
	font-weight: 700;
	text-align: center;
	color: var(--hna-color);
}

.hna-section {
	margin-bottom: var(--hna-gap);
}

.hna-card {
	margin-bottom: var(--hna-gap);
	padding: 16px;
	border: 1px solid var(--hn-border);
	border-radius: var(--hna-radius);
	background: var(--hn-surface);
	box-shadow: var(--hn-shadow);
}

.hna-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.hna-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.05rem;
}

.hna-card__title .hna-icon {
	color: var(--hna-color);
}

.hna-more {
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--hna-color);
	white-space: nowrap;
}

.hna-note {
	margin: 8px 0 0;
	font-size: .85rem;
	line-height: 1.6;
	color: var(--hn-text-muted);
}

.hna-error {
	color: var(--hn-danger);
}

.hna-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--hna-color);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------- hero: clock + weather ---------- */
.hna-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	margin-bottom: var(--hna-gap);
	padding: 18px 18px 14px;
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(circle at 15% 0%, rgb(255 255 255 / .18), transparent 55%),
		linear-gradient(145deg, var(--hna-color), color-mix(in srgb, var(--hna-color) 55%, #000));
	color: var(--hna-ink);
	box-shadow: 0 10px 30px color-mix(in srgb, var(--hna-color) 35%, transparent);
}

.hna-hero p {
	margin: 0;
}

.hna-hero__weekday {
	font-weight: 600;
	opacity: .9;
}

.hna-hero__clock {
	font-size: clamp(2.6rem, 13vw, 3.6rem);
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
	display: flex;
	align-items: baseline;
	direction: ltr;
}

[dir="rtl"] .hna-hero__clock {
	justify-content: flex-end;
}

.hna-hero__clock > * {
	unicode-bidi: isolate;
}

.hna-hero__clock small {
	margin-inline-start: 4px;
	font-size: .4em;
	font-weight: 600;
	opacity: .85;
}

.hna-hero__dates {
	display: grid;
	gap: 2px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	opacity: .95;
}

.hna-hero__wx {
	display: grid;
	justify-items: center;
	align-content: start;
	min-width: 104px;
	padding: 8px 10px;
	border-radius: 18px;
	background: rgb(255 255 255 / .14);
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.hna-hero__wx-icon .hna-wx {
	width: 64px;
	height: 64px;
}

.hna-hero__temp {
	font-size: 1.8rem;
	font-weight: 800;
	line-height: 1.1;
}

.hna-hero__desc,
.hna-hero__range {
	font-size: .78rem;
	line-height: 1.4;
	opacity: .95;
}

.hna-hero__range {
	direction: ltr;
}

.hna-place {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	grid-column: 1 / -1;
	justify-self: start;
	max-width: 100%;
	padding: 6px 12px;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / .16);
	color: inherit;
	font: inherit;
	font-size: .88rem;
	cursor: pointer;
}

.hna-place .hna-icon {
	width: 18px;
	height: 18px;
}

.hna-place__change {
	font-size: .78rem;
	opacity: .8;
	text-decoration: underline;
}

.hna-place--bar {
	display: flex;
	width: 100%;
	margin-bottom: var(--hna-gap);
	padding: 10px 14px;
	border: 1px solid var(--hn-border);
	background: var(--hn-surface);
	color: var(--hn-text);
}

.hna-place--bar .hna-icon {
	color: var(--hna-color);
}

.hna-place--bar .hna-place__change {
	margin-inline-start: auto;
	color: var(--hna-color);
}

/* ---------- next prayer ---------- */
.hna-next__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hna-next__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: var(--hn-text-muted);
}

.hna-next__label .hna-icon {
	color: var(--hna-color);
}

.hna-next__clock {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--hn-text-muted);
}

.hna-next__main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-top: 6px;
}

.hna-next__name {
	font-size: 1.9rem;
	line-height: 1.3;
	color: var(--hna-color);
}

.hna-next__time {
	font-size: 1.3rem;
	font-weight: 700;
}

.hna-next__left {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
	color: var(--hn-text-muted);
}

.hna-countdown {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--hna-color) 14%, transparent);
	color: var(--hna-color);
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: .03em;
}

.hna-next--big .hna-next__name {
	font-size: 2.3rem;
}

.hna-progress {
	height: 6px;
	margin-top: 12px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--hn-surface-2);
}

.hna-progress i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--hna-color);
	transition: width .6s ease;
}

/* ---------- prayer time lists ---------- */
.hna-times {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-times li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--hn-surface-2);
}

.hna-times li .hna-icon {
	color: var(--hna-color);
}

.hna-times__name {
	font-weight: 600;
}

.hna-times time {
	margin-inline-start: auto;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.hna-times li.is-extra {
	background: transparent;
	color: var(--hn-text-muted);
	padding-block: 6px;
}

.hna-times li.is-current {
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hna-color) 45%, transparent);
}

.hna-times li.is-next {
	background: var(--hna-color);
	color: var(--hna-ink);
}

.hna-times li.is-next .hna-icon {
	color: inherit;
}

/* Compact row on the start screen. */
.hna-times--row {
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	margin-top: 14px;
}

.hna-times--row li {
	flex-direction: column;
	gap: 2px;
	padding: 8px 2px;
	text-align: center;
}

.hna-times--row li .hna-icon {
	width: 18px;
	height: 18px;
}

.hna-times--row .hna-times__name {
	font-size: .72rem;
	line-height: 1.3;
	white-space: nowrap;
}

.hna-times--row time {
	margin: 0;
	font-size: .82rem;
}

/* ---------- Ramadan / Eid ---------- */
.hna-ramadan {
	border: 0;
	background:
		radial-gradient(circle at 85% 10%, rgb(255 215 120 / .28), transparent 40%),
		linear-gradient(150deg, #1e2a5a, #3b2470 70%, #4a2a6d);
	color: #fff;
}

.hna-ramadan .hna-note {
	color: rgb(255 255 255 / .8);
}

.hna-ramadan__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hna-ramadan__head > .hna-icon {
	width: 44px;
	height: 44px;
	padding: 9px;
	border-radius: 14px;
	background: rgb(255 255 255 / .12);
	color: #ffd479;
}

.hna-ramadan__head strong {
	display: block;
	font-size: 1.15rem;
}

.hna-ramadan__head small {
	opacity: .85;
}

.hna-ramadan__big {
	display: grid;
	margin-inline-start: auto;
	text-align: center;
}

.hna-ramadan__big b {
	font-size: 2.2rem;
	line-height: 1;
	color: #ffd479;
}

.hna-ramadan__big small {
	font-size: .75rem;
	opacity: .85;
}

.hna-ramadan__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.hna-ramadan__pair div {
	display: grid;
	padding: 10px;
	border-radius: 14px;
	background: rgb(255 255 255 / .1);
	text-align: center;
}

.hna-ramadan__pair b {
	font-size: 1.35rem;
}

.hna-ramadan__left {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
}

.hna-ramadan .hna-countdown {
	background: rgb(255 255 255 / .14);
	color: #ffd479;
}

.hna-ramadan__eids {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.hna-ramadan__eids li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0 8px;
	padding: 8px 10px;
	border-radius: 14px;
	background: rgb(255 255 255 / .1);
	font-size: .85rem;
}

.hna-ramadan__eids .hna-icon {
	grid-row: span 2;
	width: 18px;
	height: 18px;
	color: #ffd479;
}

/* ---------- link tiles ---------- */
.hna-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 520px) {
	.hna-tiles {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hna-tile {
	--hna-tile: #0d6b55;
}

.hna-tile--1 { --hna-tile: #2563eb; }
.hna-tile--2 { --hna-tile: #0891b2; }
.hna-tile--3 { --hna-tile: #7c3aed; }
.hna-tile--4 { --hna-tile: #db2777; }
.hna-tile--5 { --hna-tile: #ea580c; }
.hna-tile--6 { --hna-tile: #b7791f; }
.hna-tile--7 { --hna-tile: #059669; }
.hna-tile--8 { --hna-tile: #4f46e5; }
.hna-tile--9 { --hna-tile: #dc2626; }

.hna-tile a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 14px 6px 12px;
	border: 1px solid var(--hn-border);
	border-radius: 18px;
	background: var(--hn-surface);
	box-shadow: var(--hn-shadow);
	color: var(--hn-text);
	text-align: center;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.hna-tile a:hover {
	color: var(--hn-text);
	transform: translateY(-2px);
}

.hna-tile a:active {
	transform: scale(.97);
}

.hna-tile__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 17px;
	background: linear-gradient(145deg, var(--hna-tile), color-mix(in srgb, var(--hna-tile) 70%, #000));
	color: #fff;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--hna-tile) 35%, transparent);
}

.hna-tile__icon .hna-icon {
	width: 28px;
	height: 28px;
}

.hna-tile__icon img {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

.hna-tile__label {
	display: -webkit-box;
	overflow: hidden;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ---------- Islamic days ---------- */
.hna-events {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-event {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 14px;
	background: var(--hn-surface-2);
}

.hna-event__day {
	display: grid;
	justify-items: center;
	min-width: 58px;
	padding: 6px 4px;
	border-radius: 12px;
	background: var(--hn-surface);
	line-height: 1.3;
	text-align: center;
}

.hna-event__day b {
	font-size: 1.3rem;
	color: var(--hna-color);
}

.hna-event__day small,
.hna-event__text small {
	font-size: .72rem;
	color: var(--hn-text-muted);
}

.hna-event__text {
	display: grid;
	min-width: 0;
	line-height: 1.5;
}

.hna-event__text strong {
	font-size: .95rem;
}

.hna-event__left {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--hn-surface);
	font-size: .78rem;
	font-weight: 700;
	white-space: nowrap;
}

.hna-event.is-soon .hna-event__left {
	background: color-mix(in srgb, var(--hna-color) 15%, transparent);
	color: var(--hna-color);
}

.hna-event.is-now {
	background: var(--hna-color);
	color: var(--hna-ink);
}

.hna-event.is-now .hna-event__text small {
	color: inherit;
	opacity: .85;
}

/* ---------- today in three calendars ---------- */
.hna-today__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-today__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--hn-surface-2);
}

.hna-today__list small {
	color: var(--hn-text-muted);
}

/* ---------- forms ---------- */
.hna-form,
.hna-convert {
	display: grid;
	gap: 12px;
}

.hna-field {
	display: grid;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: .88rem;
	font-weight: 600;
}

.hna-field > span,
.hna-field > legend {
	padding: 0;
	color: var(--hn-text-muted);
}

.hna-field input,
.hna-field select,
.hna-search input {
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid var(--hn-border);
	border-radius: 12px;
	background: var(--hn-bg);
	color: var(--hn-text);
	font: inherit;
	font-weight: 500;
}

.hna-field input:focus,
.hna-field select:focus,
.hna-search input:focus {
	outline: 2px solid var(--hna-color);
	outline-offset: 1px;
}

.hna-convert__date {
	display: grid;
	grid-template-columns: 74px 1fr 92px;
	gap: 8px;
}

.hna-convert__actions,
.hna-foot__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hna-convert__out:empty {
	display: none;
}

.hna-convert__out {
	display: grid;
	gap: 8px;
	padding: 12px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--hna-color) 10%, var(--hn-surface));
}

.hna-convert__out span {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.hna-convert__out small {
	color: var(--hn-text-muted);
}

.hna-convert__wd {
	font-weight: 700;
	color: var(--hna-color);
}

.hna-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--hna-color);
	border-radius: 999px;
	background: var(--hna-color);
	color: var(--hna-ink);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.hna-btn:hover {
	color: var(--hna-ink);
	filter: brightness(1.08);
}

.hna-btn--ghost {
	background: transparent;
	color: var(--hna-color);
}

.hna-btn--ghost:hover {
	color: var(--hna-color);
	background: color-mix(in srgb, var(--hna-color) 10%, transparent);
}

.hna-btn--block {
	width: 100%;
}

.hna-btn[hidden],
.hna-iconbtn[hidden] {
	display: none;
}

.hna-seg {
	display: flex;
	padding: 4px;
	border-radius: 14px;
	background: var(--hn-surface-2);
}

.hna-seg label {
	flex: 1;
	position: relative;
}

.hna-seg input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hna-seg span {
	display: block;
	padding: 8px 6px;
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}

.hna-seg input:checked + span {
	background: var(--hn-surface);
	color: var(--hna-color);
	box-shadow: 0 1px 4px rgb(0 0 0 / .12);
}

.hna-seg input:focus-visible + span {
	outline: 2px solid var(--hna-color);
}

.hna-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .92rem;
	cursor: pointer;
}

.hna-check input {
	width: 20px;
	height: 20px;
	margin-top: 4px;
	accent-color: var(--hna-color);
}

.hna-check[hidden] {
	display: none;
}

.hna-details summary {
	font-weight: 700;
	cursor: pointer;
}

.hna-adjust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

/* ---------- day / month navigation, monthly table ---------- */
.hna-daynav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.hna-daynav .hna-iconbtn {
	border: 1px solid var(--hn-border);
}

.hna-daynav__date {
	display: grid;
	flex: 1;
	text-align: center;
	line-height: 1.5;
}

.hna-daynav__date small {
	color: var(--hn-text-muted);
}

.hna-table-wrap {
	max-height: 70vh;
	overflow: auto;
	border: 1px solid var(--hn-border);
	border-radius: 14px;
}

.hna-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .76rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.hna-table th,
.hna-table td {
	padding: 6px 3px;
	border-bottom: 1px solid var(--hn-border);
	white-space: nowrap;
}

.hna-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--hna-color);
	color: var(--hna-ink);
}

.hna-table tbody th {
	display: grid;
	text-align: start;
	font-weight: 500;
	line-height: 1.3;
}

.hna-table tbody th small {
	color: var(--hn-text-muted);
	font-size: .7rem;
}

.hna-table tr.is-friday {
	background: color-mix(in srgb, var(--hna-color) 6%, transparent);
}

.hna-table tr.is-today {
	background: color-mix(in srgb, var(--hna-color) 18%, transparent);
	font-weight: 700;
}

/* ---------- Qibla ---------- */
.hna-qibla__body {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;
}

.hna-compass {
	position: relative;
	width: 150px;
	height: 150px;
	border: 6px solid var(--hn-surface-2);
	border-radius: 50%;
	background:
		repeating-conic-gradient(var(--hn-border) 0 1deg, transparent 1deg 30deg),
		var(--hn-bg);
	transition: transform .2s linear, border-color .2s;
}

.hna-compass.is-aligned {
	border-color: var(--hn-success);
}

.hna-compass__n {
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 800;
	font-size: .85rem;
	color: var(--hn-danger);
}

.hna-compass__needle {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: center;
	transition: transform .3s ease;
}

.hna-compass__needle::before {
	content: "";
	position: absolute;
	top: 32px;
	bottom: 50%;
	left: calc(50% - 2px);
	width: 4px;
	border-radius: 2px;
	background: var(--hna-color);
}

.hna-compass__needle .hna-icon {
	position: relative;
	width: 30px;
	height: 30px;
	margin-top: 4px;
	padding: 4px;
	border-radius: 8px;
	background: #111;
	color: #e6c46a;
}

.hna-compass::after {
	content: "";
	position: absolute;
	top: calc(50% - 6px);
	left: calc(50% - 6px);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hna-color);
}

.hna-qibla__deg {
	margin: 0;
	font-size: 1.4rem;
}

@media (max-width: 380px) {
	.hna-qibla__body {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
}

/* ---------- weather ---------- */
.hna-wx {
	width: 40px;
	height: 40px;
	overflow: visible;
}

.hna-wx .w-sun circle {
	fill: #f6b40e;
}

.hna-wx .w-ray line {
	stroke: #f6b40e;
	stroke-width: 3;
	stroke-linecap: round;
}

.hna-wx .w-moon {
	fill: #e8d7a2;
}

.hna-wx .w-cloud {
	fill: #eef2f7;
	stroke: #98a7ba;
	stroke-width: 2;
}

.hna-wx .w-rain path {
	stroke: #3b82f6;
	stroke-width: 3;
	stroke-linecap: round;
	fill: none;
}

.hna-wx .w-snow circle {
	fill: #93c5fd;
}

.hna-wx .w-fog path {
	stroke: #98a7ba;
	stroke-width: 3;
	stroke-linecap: round;
}

.hna-wx .w-bolt {
	fill: #facc15;
	stroke: #b45309;
	stroke-width: 1;
}

:root[data-scheme="dark"] .hna-wx .w-cloud {
	fill: #5b6878;
	stroke: #8796a8;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-scheme="light"]) .hna-wx .w-cloud {
		fill: #5b6878;
		stroke: #8796a8;
	}
}

.hna-hero .hna-wx .w-cloud {
	fill: #ffffff;
	stroke: rgb(255 255 255 / .6);
}

.hna-wx-now__main {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hna-wx-now__icon .hna-wx {
	width: 104px;
	height: 104px;
}

.hna-wx-now__main p {
	margin: 0;
}

.hna-wx-now__temp {
	font-size: 3.4rem;
	font-weight: 800;
	line-height: 1;
}

.hna-wx-now__desc {
	font-size: 1.1rem;
	font-weight: 600;
}

.hna-wx-now__range {
	direction: ltr;
	color: var(--hn-text-muted);
	text-align: end;
}

[dir="rtl"] .hna-wx-now__range {
	text-align: right;
}

.hna-wx-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 480px) {
	.hna-wx-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hna-wx-grid li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 8px;
	padding: 10px;
	border-radius: 14px;
	background: var(--hn-surface-2);
}

.hna-wx-grid .hna-icon {
	grid-row: span 2;
	align-self: center;
	color: var(--hna-color);
}

.hna-wx-grid small {
	font-size: .75rem;
	color: var(--hn-text-muted);
}

.hna-wx-grid b {
	font-size: .95rem;
}

.hna-hours {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 0 6px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
}

.hna-hours li {
	display: grid;
	justify-items: center;
	gap: 2px;
	flex: none;
	width: 68px;
	padding: 10px 4px;
	border-radius: 16px;
	background: var(--hn-surface-2);
	scroll-snap-align: start;
	text-align: center;
}

.hna-hours li:first-child {
	background: var(--hna-color);
	color: var(--hna-ink);
}

.hna-hours small {
	font-size: .75rem;
	white-space: nowrap;
}

.hna-pop {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	min-height: 1.2em;
	font-size: .72rem;
	color: #3b82f6;
}

.hna-hours li:first-child .hna-pop {
	color: inherit;
}

.hna-pop .hna-icon {
	width: 12px;
	height: 12px;
}

.hna-days {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-days li {
	display: grid;
	grid-template-columns: 6.5em auto 3em 1fr;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	border-bottom: 1px solid var(--hn-border);
}

.hna-days li:last-child {
	border-bottom: 0;
}

.hna-days__name {
	display: grid;
	line-height: 1.3;
}

.hna-days__name small {
	font-size: .72rem;
	color: var(--hn-text-muted);
}

.hna-days__temps {
	display: flex;
	align-items: center;
	gap: 6px;
	font-variant-numeric: tabular-nums;
}

.hna-days__temps small {
	color: var(--hn-text-muted);
}

.hna-bar {
	position: relative;
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: var(--hn-surface-2);
}

.hna-bar i {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #38bdf8, #f59e0b);
}

[dir="rtl"] .hna-bar i {
	background: linear-gradient(270deg, #38bdf8, #f59e0b);
}

.hna-aqi {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hna-aqi > span:last-child {
	display: grid;
}

.hna-aqi small {
	color: var(--hn-text-muted);
	direction: ltr;
	text-align: start;
}

.hna-aqi__num {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
}

.hna-aqi--0 { background: #16a34a; }
.hna-aqi--1 { background: #ca8a04; }
.hna-aqi--2 { background: #ea580c; }
.hna-aqi--3 { background: #dc2626; }
.hna-aqi--4 { background: #9333ea; }
.hna-aqi--5 { background: #7f1d1d; }

/* ---------- radio, news, about ---------- */
.hna-radio .hn-radio {
	margin: 0;
	border-radius: var(--hna-radius);
}

.hna-news {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-news a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 4px;
	border-bottom: 1px solid var(--hn-border);
	color: var(--hn-text);
	text-decoration: none;
}

.hna-news li:last-child a {
	border-bottom: 0;
}

.hna-news__img {
	flex: none;
	width: 72px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
}

.hna-news__img--none {
	display: grid;
	place-items: center;
	background: var(--hn-surface-2);
	color: var(--hn-text-muted);
}

.hna-news__text {
	display: grid;
	min-width: 0;
	line-height: 1.55;
}

.hna-news__text strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: .95rem;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hna-news__text small {
	color: var(--hn-text-muted);
}

.hna-foot {
	padding: 6px 0 12px;
	text-align: center;
}

.hna-foot__actions {
	justify-content: center;
}

.hna-foot__copy {
	margin: 12px 0 0;
	font-size: .8rem;
	color: var(--hn-text-muted);
}

.hna-about__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.hna-about__brand img {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	object-fit: cover;
}

.hna-about__brand h2 {
	margin: 0;
}

.hna-about__actions {
	display: grid;
	gap: 14px;
	justify-items: center;
}

.hna-social {
	justify-content: center;
}

/* ---------- bottom navigation ---------- */
.hna-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 40;
	display: flex;
	justify-content: center;
	padding: 4px max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left));
	border-top: 1px solid var(--hn-border);
	background: color-mix(in srgb, var(--hn-surface) 94%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hna-nav__item {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	max-width: 120px;
	min-height: var(--hna-nav-h);
	color: var(--hn-text-muted);
	font-size: .72rem;
	font-weight: 600;
	text-decoration: none;
}

.hna-nav__item .hna-icon {
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 999px;
	transition: background .2s;
}

.hna-nav__item[aria-current="page"] {
	color: var(--hna-color);
}

.hna-nav__item[aria-current="page"] .hna-icon {
	width: 52px;
	padding: 0 14px;
	background: color-mix(in srgb, var(--hna-color) 15%, transparent);
}

.hna-nav__item:hover {
	color: var(--hna-color);
}

/* ---------- dialogs (bottom sheets on phones) ---------- */
.hna-dialog {
	width: min(560px, 100%);
	max-width: 100%;
	max-height: 86vh;
	margin: auto auto 0;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	border: 0;
	border-radius: 22px 22px 0 0;
	background: var(--hn-surface);
	color: var(--hn-text);
	box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
}

@media (min-width: 640px) {
	.hna-dialog {
		margin: auto;
		border-radius: 22px;
	}
}

.hna-dialog::backdrop {
	background: rgb(10 15 13 / .55);
}

.hna-dialog[open] {
	animation: hna-up .22s ease-out;
}

@keyframes hna-up {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
}

.hna-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.hna-dialog__head h2 {
	margin: 0;
	font-size: 1.15rem;
}

.hna-dialog__sub {
	margin: 14px 0 6px;
	font-size: .95rem;
	color: var(--hn-text-muted);
}

.hna-search {
	position: relative;
	display: block;
	margin-top: 12px;
}

.hna-search .hna-icon {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	color: var(--hn-text-muted);
}

.hna-search input {
	padding-inline-start: 42px;
}

.hna-results {
	display: grid;
	gap: 2px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.hna-results button,
.hna-langs button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.hna-results button:hover,
.hna-langs button:hover {
	background: var(--hn-surface-2);
}

.hna-results button[aria-current="true"],
.hna-langs button[aria-pressed="true"] {
	background: color-mix(in srgb, var(--hna-color) 14%, transparent);
	color: var(--hna-color);
	font-weight: 700;
}

.hna-results .hna-icon {
	width: 18px;
	height: 18px;
	color: var(--hna-color);
}

.hna-results small {
	color: var(--hn-text-muted);
}

.hna-results--cities {
	grid-template-columns: 1fr 1fr;
}

.hna-langs {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hna-langs button {
	justify-content: center;
	padding: 14px;
	border: 1px solid var(--hn-border);
	font-size: 1.1rem;
}

/* ---------- toast ---------- */
.hna-toast {
	position: fixed;
	bottom: calc(var(--hna-nav-h) + 20px + env(safe-area-inset-bottom));
	left: 50%;
	z-index: 60;
	padding: 10px 18px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	transform: translateX(-50%);
}

/* ---------- motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	.hna-tile a,
	.hna-progress i,
	.hna-compass,
	.hna-compass__needle,
	.hna-dialog[open] {
		transition: none;
		animation: none;
	}
}

@media print {
	.hna-top,
	.hna-nav,
	.hna-dialog,
	.hn-install {
		display: none !important;
	}
	.hna-print-month .hna-main > :not(#hna-month) {
		display: none !important;
	}
	.hna-print-month .hna-table-wrap {
		max-height: none;
		overflow: visible;
	}
	.hna-print-month #hna-month .hna-iconbtn {
		display: none;
	}
}

/* "Developed by" credit (Customize → Footer). */
.hna-foot__credit {
	margin: 4px 0 12px;
	font-size: .78rem;
	text-align: center;
	color: var(--hn-text-muted);
}

.hna-foot__credit a {
	font-weight: 700;
	color: var(--hna-color);
	text-decoration: none;
}

/* AM / PM: own line under the big clock and in compact prayer rows. */
.hna-hero__ampm {
	margin: -4px 0 2px;
	font-size: .85rem;
	font-weight: 600;
	opacity: .9;
}

.hna-hero__ampm:empty {
	display: none;
}

.hna-times--row time small {
	display: block;
	font-size: .66rem;
	font-weight: 500;
	opacity: .8;
}
