/* =========================================================================
   The UAE Blog: main stylesheet
   Colours come from the existing site: copper (logo), terracotta (buttons),
   warm sand neutrals and deep coffee brown.
   ========================================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/lato-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/lato-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/lato-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/noto-kufi-arabic-arabic-wght-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens ---------- */
:root {
	--bg: #fbfaf7;
	--bg-alt: #f3efe8;
	--surface: #ffffff;
	--line: #e6e1d8;
	--line-2: #d8d1c5;
	--ink: #221a14;
	--ink-2: #4e463e;
	--muted: #6b6258;
	--accent: #c3512f;
	--accent-ink: #a1300d;
	--copper: #cf7a33;
	--brown: #7c6853;
	--deep: #1e1712;
	--deep-2: #2a211a;
	--on-deep: #f6f0e8;
	--on-deep-2: #cdbfae;
	--glass: rgba(251, 250, 247, 0.72);
	--glass-dark: rgba(22, 17, 13, 0.38);
	--shadow: 0 1px 2px rgba(34, 26, 20, .05), 0 12px 40px -12px rgba(34, 26, 20, .18);
	--shadow-lg: 0 30px 80px -30px rgba(34, 26, 20, .35);

	--font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-ar: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
	--radius: 22px;
	--radius-sm: 14px;
	--header-h: 64px;
	--gutter: clamp(16px, 4vw, 40px);
	--maxw: 1320px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #14100d; --bg-alt: #1b1511; --surface: #211a15; --line: #33291f; --line-2: #45382c;
		--ink: #f4eee6; --ink-2: #d9cfc3; --muted: #ab9f90;
		--accent: #e2734b; --accent-ink: #f09068; --copper: #e09050;
		--deep: #0d0a08; --deep-2: #1a140f;
		--glass: rgba(20, 16, 13, 0.7);
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px -12px rgba(0,0,0,.6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #14100d; --bg-alt: #1b1511; --surface: #211a15; --line: #33291f; --line-2: #45382c;
	--ink: #f4eee6; --ink-2: #d9cfc3; --muted: #ab9f90;
	--accent: #e2734b; --accent-ink: #f09068; --copper: #e09050;
	--deep: #0d0a08; --deep-2: #1a140f;
	--glass: rgba(20, 16, 13, 0.7);
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px -12px rgba(0,0,0,.6);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}
[dir="rtl"] body, body.is-rtl { font-family: var(--font-ar); line-height: 1.9; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 900; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; font-weight: 800; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
kbd { font: 600 .72rem/1 var(--font); border: 1px solid currentColor; border-radius: 6px; padding: 3px 6px; opacity: .6; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.wrap--wide { max-width: 1480px; }
.section { padding-block: clamp(64px, 10vw, 140px); position: relative; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.eyebrow--light { color: #f3c8a4; }
.display { font-size: clamp(2.5rem, 6.4vw, 5.8rem); letter-spacing: -0.04em; line-height: 1.02; }
.h1 { font-size: clamp(2rem, 4.4vw, 3.8rem); letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.03em; }
[dir="rtl"] .display, [dir="rtl"] .h1, [dir="rtl"] .h2 { letter-spacing: 0; line-height: 1.35; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); line-height: 1.55; max-width: 62ch; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-ink); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn .icon, [dir="rtl"] .row__arrow, [dir="rtl"] .emirate__meta .icon { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-ink); color: #fff; }
.btn--primary:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: #221a14; }
.btn--light:hover { color: var(--accent-ink); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; }

.pill, .pills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s; }
.pill:hover, .pills a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.pills span { color: var(--muted); font-weight: 400; font-family: var(--font-ar); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; color: var(--ink); transition: color .35s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__bar {
	position: relative; height: var(--header-h); display: flex; align-items: center; gap: 20px;
	padding-inline: var(--gutter); max-width: 100%;
}
.site-header__bar::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--glass);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
	transition: background .35s, border-color .35s;
}
.site-header.is-dark:not(.is-open) { color: #fff; }
.site-header.is-dark:not(.is-open) .site-header__bar::before { background: var(--glass-dark); border-bottom-color: rgba(255,255,255,.12); }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; }
.brand__img { height: 40px; width: auto; }
.brand--header .brand__img--white, .brand--drawer .brand__img--white { display: none; }
.site-header.is-dark:not(.is-open) .brand__img--color { display: none; }
.site-header.is-dark:not(.is-open) .brand__img--white { display: block; }
.brand--footer .brand__img { height: 48px; }
.brand__text { font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.brand__text small { font-size: .55em; text-transform: uppercase; letter-spacing: .1em; display: block; line-height: 1; }
.brand__text em { font-style: normal; color: var(--copper); }
:root[data-theme="dark"] .brand--header .brand__img--color, :root[data-theme="dark"] .brand--drawer .brand__img--color { display: none; }
:root[data-theme="dark"] .brand--header .brand__img--white, :root[data-theme="dark"] .brand--drawer .brand__img--white { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand--header .brand__img--color, :root:not([data-theme="light"]) .brand--drawer .brand__img--color { display: none; }
	:root:not([data-theme="light"]) .brand--header .brand__img--white, :root:not([data-theme="light"]) .brand--drawer .brand__img--white { display: block; }
}

.mega-nav { margin-inline: auto; }
.mega-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mega-nav__btn, .mega-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .95rem; color: inherit; text-decoration: none; transition: background .2s; }
.mega-nav__btn:hover, .mega-nav__link:hover, .mega-nav__btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.mega-nav__chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.mega-nav__btn[aria-expanded="true"] .mega-nav__chev { transform: rotate(180deg); }

.site-header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.mega-nav + .site-header__actions { margin-inline-start: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; background: none; border: 0; cursor: pointer; color: inherit; font-weight: 700; font-size: .85rem; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn .icon { width: 20px; height: 20px; }
.search-trigger { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); padding: 0 12px 0 14px; }
.search-trigger__label { font-weight: 500; opacity: .8; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle__sun { display: block; } :root:not([data-theme="light"]) .theme-toggle__moon { display: none; } }
.menu-toggle { display: none; }

.lang-menu { position: relative; }
.lang-menu__pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; }
.lang-switch { list-style: none; margin: 0; padding: 0; }
.lang-switch--menu a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.lang-switch--menu a:hover { background: var(--bg-alt); }
.lang-switch a.is-current { color: var(--accent-ink); }
.lang-switch a[lang="ar"] { font-family: var(--font-ar); }

.progress { position: absolute; inset-inline: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--copper), var(--accent)); transform: scaleX(var(--read, 0)); transform-origin: left center; }
[dir="rtl"] .progress span { transform-origin: right center; }

/* Mega menu */
.mega { position: absolute; inset-inline: 0; top: var(--header-h); color: var(--ink); }
.mega::before { content: ""; position: absolute; inset: 0; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: -1; }
.mega__inner { max-width: var(--maxw); margin-inline: auto; padding: 36px var(--gutter) 40px; display: grid; grid-template-columns: 1.1fr 1.3fr 1.2fr 1.3fr; gap: 36px; }
.mega:not([hidden]) .mega__inner > * { animation: megaIn .5s var(--ease-out) both; }
.mega:not([hidden]) .mega__inner > *:nth-child(2) { animation-delay: .04s; }
.mega:not([hidden]) .mega__inner > *:nth-child(3) { animation-delay: .08s; }
.mega:not([hidden]) .mega__inner > *:nth-child(4) { animation-delay: .12s; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega__lede { font-size: 1.3rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; }
.mega__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.mega__cats a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; font-weight: 600; }
.mega__cats a:hover { background: var(--bg-alt); color: var(--accent-ink); }
.mega__cats .icon { width: 20px; height: 20px; color: var(--copper); flex: none; }
.mega__cats small { margin-inline-start: auto; color: var(--muted); font-weight: 500; }
.mega__guides ul { list-style: none; margin: 0; padding: 0; }
.mega__guides li + li { border-top: 1px solid var(--line); }
.mega__guides a { display: block; padding: 11px 0; text-decoration: none; color: inherit; font-weight: 600; line-height: 1.35; font-size: .95rem; }
.mega__guides a:hover { color: var(--accent-ink); }
.mega__feature { display: grid; gap: 10px; text-decoration: none; color: inherit; align-content: start; }
.mega__feature-img { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.mega__feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature .eyebrow { margin: 4px 0 0; }
.mega__feature-title { font-weight: 800; line-height: 1.3; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(20, 15, 11, .4); }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--bg); overflow-y: auto; padding: 14px var(--gutter) 40px; animation: drawerIn .45s var(--ease-out); }
[dir="rtl"] .drawer__panel { animation-name: drawerInRtl; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerInRtl { from { transform: translateX(-100%); } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__top .brand__img { height: 36px; }
.drawer__search { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--muted); margin-bottom: 14px; }
.drawer__search .icon { width: 20px; }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font-weight: 800; font-size: 1.25rem; cursor: pointer; }
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary .icon { width: 18px; transition: transform .3s; }
.drawer__group[open] summary .icon { transform: rotate(180deg); }
.drawer__group ul, .drawer__links { list-style: none; margin: 0; padding: 0 0 14px; }
.drawer__group a, .drawer__links a { display: flex; justify-content: space-between; padding: 10px 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.drawer__group small { color: var(--muted); font-weight: 500; }
.drawer__links { padding-top: 14px; }
.drawer__links a { font-size: 1.1rem; }
.drawer__langs { margin-top: 18px; }
.lang-switch--drawer, .lang-switch--footer { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-switch--drawer a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.lang-switch--drawer a.is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Search dialog */
.search-dialog { position: fixed; inset: 0; z-index: 300; background: rgba(20, 15, 11, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 120px) 16px 16px; }
.search-dialog[hidden] { display: none; }
.search-dialog__panel { width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .35s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.search-dialog__form { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 20px; border-bottom: 1px solid var(--line); }
.search-dialog__form > .icon { width: 22px; color: var(--muted); flex: none; }
.search-dialog__form input { flex: 1; min-width: 0; border: 0; background: none; font: 500 1.2rem var(--font); color: var(--ink); padding: 16px 0; outline: none; }
[dir="rtl"] .search-dialog__form input { font-family: var(--font-ar); }
.search-dialog__close { background: none; border: 0; cursor: pointer; padding: 10px; color: var(--muted); }
.search-dialog__body { overflow-y: auto; padding: 8px 10px 14px; }
.search-dialog__status { font-size: .85rem; color: var(--muted); margin: 6px 12px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit; }
.search-results li[aria-selected="true"] a, .search-results a:hover { background: var(--bg-alt); }
.search-results img, .search-results .sr-ph { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-alt); }
.search-results .sr-t { font-weight: 700; line-height: 1.3; display: block; }
.search-results .sr-k { font-size: .8rem; color: var(--muted); }
.search-results mark { background: color-mix(in srgb, var(--copper) 30%, transparent); color: inherit; border-radius: 3px; }
.search-dialog__suggest { padding: 10px 12px; }
.search-dialog__suggest ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.search-dialog__suggest button { border: 1px solid var(--line-2); border-radius: 999px; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.search-dialog__suggest button:hover { background: var(--ink); color: var(--bg); }
.search-dialog__hint { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- Main offset ---------- */
.site-main { display: block; padding-top: var(--header-h); outline: none; }
.has-hero .site-main { padding-top: 0; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 175vh; height: 175svh; --p: 0; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: end; color: #fff; }
.hero__frame {
	position: absolute; inset: 0; overflow: hidden; background: var(--deep);
	transform: scale(calc(1 - var(--p) * .1)); border-radius: calc(var(--p) * 40px);
	will-change: transform;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--p) * .14)); will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,7,.45) 0%, rgba(14,10,7,.08) 35%, rgba(14,10,7,.15) 55%, rgba(14,10,7,.78) 100%); }
.hero__content {
	position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gutter) clamp(48px, 9vh, 110px);
	transform: translateY(calc(var(--p) * -70px)); opacity: calc(1 - var(--p) * 1.6);
}
.hero__title { font-size: clamp(2.6rem, 7.2vw, 6.6rem); letter-spacing: -0.045em; line-height: .98; max-width: 15ch; margin-bottom: 18px; text-wrap: balance; }
[dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.3; max-width: 18ch; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.88); max-width: 46ch; margin-bottom: 28px; }
.hero__search { display: flex; align-items: center; gap: 12px; width: min(560px, 100%); min-height: 60px; padding: 0 16px 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); color: #fff; cursor: pointer; font-size: 1.05rem; text-align: start; transition: background .25s; }
.hero__search:hover { background: rgba(255,255,255,.24); }
.hero__search .icon { width: 22px; flex: none; }
.hero__search span { flex: 1; opacity: .9; }
.hero__search--light { border-color: var(--line-2); background: var(--surface); color: var(--ink); margin: 28px 0 8px; }
.hero__search--light:hover { background: var(--bg-alt); }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.hero__chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.hero__chips a:hover { background: #fff; color: #221a14; }
.hero__cue { position: absolute; bottom: 22px; left: 50%; width: 1px; height: 46px; background: rgba(255,255,255,.3); overflow: hidden; opacity: calc(1 - var(--p) * 3); z-index: 2; }
.hero__cue span { position: absolute; inset-inline: 0; top: 0; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- Calligraphy background ---------- */
[data-calli] { position: relative; isolation: isolate; }
.calli {
	position: absolute; z-index: -1; pointer-events: none; user-select: none; white-space: nowrap;
	font-family: var(--font-ar); font-weight: 900; line-height: 1;
	font-size: clamp(8rem, 26vw, 24rem); color: var(--copper); opacity: .07;
	inset-inline-end: -4vw; top: 50%; transform: translateY(calc(-50% + var(--cy, 0px)));
}
.calli--footer { color: #fff; opacity: .04; top: auto; bottom: -.18em; transform: none; inset-inline-start: -2vw; inset-inline-end: auto; }

/* ---------- Intro ---------- */
.intro { text-align: center; padding-block: clamp(80px, 14vw, 180px); overflow: hidden; }
.intro .lede { margin-inline: auto; }

/* ---------- Horizontal pinned carousel ---------- */
.hscroll { position: relative; height: 300vh; background: var(--bg-alt); }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 36px); padding-top: var(--header-h); }
.hscroll__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hscroll__head .h1 { margin: 0; }
.hscroll__count { font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; gap: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.hscroll__count [data-hscroll-current] { color: var(--ink); font-size: 2rem; }
.hscroll__sep { width: 34px; height: 1px; background: currentColor; }
.hscroll__viewport { overflow: visible; }
.hscroll__track { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.emirate { width: min(80vw, 560px); flex: none; }
.emirate__link { position: relative; display: block; height: min(60vh, 560px); border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--deep); box-shadow: var(--shadow); transform: scale(calc(.94 + var(--f, 1) * .06)); transition: transform .2s linear; }
.emirate__img { position: absolute; inset: 0; }
.emirate__img img { width: 118%; max-width: none; height: 100%; object-fit: cover; transform: translateX(var(--px, 0px)); margin-inline-start: -9%; }
.emirate__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-ar); font-size: 5rem; font-weight: 900; color: rgba(255,255,255,.12); background: linear-gradient(135deg, var(--brown), var(--deep)); }
.emirate__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,7,0) 30%, rgba(14,10,7,.82)); }
.emirate__body { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); display: grid; gap: 6px; }
.emirate__num { font-weight: 900; font-size: .9rem; opacity: .7; letter-spacing: .1em; }
.emirate__name { font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.03em; line-height: 1; }
[dir="rtl"] .emirate__name { letter-spacing: 0; line-height: 1.3; }
.emirate__ar { font-family: var(--font-ar); font-size: 1.15rem; opacity: .7; }
.emirate__desc { max-width: 40ch; opacity: .88; font-size: .98rem; line-height: 1.45; }
.emirate__meta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-top: 6px; }
.emirate__meta .icon { width: 18px; }
.emirate__link:hover .emirate__img img { transform: translateX(var(--px, 0px)) scale(1.04); }
.hscroll__bar { height: 2px; position: relative; }
.hscroll__bar::before { content: ""; position: absolute; inset-inline: var(--gutter); top: 0; height: 2px; background: var(--line-2); }
.hscroll__bar span { position: absolute; inset-inline-start: var(--gutter); top: 0; height: 2px; width: calc(100% - var(--gutter) * 2); background: var(--ink); transform: scaleX(var(--hp, 0)); transform-origin: left; }
[dir="rtl"] .hscroll__bar span { transform-origin: right; }

/* ---------- Section heads, grids, cards ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.section-head .h1, .section-head .h2 { margin: 0; }
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--latest { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--latest .card--wide { grid-column: span 2; grid-row: span 2; }
.grid--hub, .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; min-width: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); position: relative; }
.card__img { position: absolute; inset: -8% 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); transform: translateY(var(--py, 0px)) scale(1.02); }
.card__link:hover .card__img img { transform: translateY(var(--py, 0px)) scale(1.07); }
.card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-alt), var(--line)); inset: 0; }
.card__img--empty span { font-family: var(--font-ar); font-size: 2.6rem; font-weight: 900; color: var(--copper); opacity: .35; }
.card__body { padding: 16px 2px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
[dir="rtl"] .card__cat { letter-spacing: 0; font-size: .85rem; }
.card__title { font-size: 1.2rem; line-height: 1.28; letter-spacing: -.015em; margin: 0; font-weight: 800; text-wrap: pretty; transition: color .2s; }
[dir="rtl"] .card__title { line-height: 1.55; letter-spacing: 0; }
.card__link:hover .card__title { color: var(--accent-ink); }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card--wide .card__media { aspect-ratio: 16 / 11; }
.card--wide .card__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1.12; }
[dir="rtl"] .card--wide .card__title { line-height: 1.45; }
.card--wide .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }
.card--mini { width: min(72vw, 300px); flex: none; scroll-snap-align: start; }
.card--mini .card__media { aspect-ratio: 1 / 1; }
.card--mini .card__title { font-size: 1.05rem; }

/* ---------- Topic tiles ---------- */
.topics { overflow: hidden; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.tile a { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 230px; height: 100%; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.tile a:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.tile--big { grid-column: span 2; }
.tile--big a { min-height: 340px; color: #fff; border: 0; justify-content: flex-end; background: var(--deep); }
.tile__img { position: absolute; inset: -10% 0; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.tile--big a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,10,7,.05) 20%, rgba(14,10,7,.8)); }
.tile--big a > :not(.tile__img) { position: relative; z-index: 2; }
.tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--copper) 14%, transparent); color: var(--copper); }
.tile--big .tile__icon { background: rgba(255,255,255,.16); color: #fff; }
.tile__icon .icon { width: 24px; height: 24px; }
.tile__name { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; margin-top: auto; }
.tile--big .tile__name { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 0; }
.tile__desc { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.tile--big .tile__desc { color: rgba(255,255,255,.86); max-width: 44ch; }
.tile__count { font-size: .82rem; font-weight: 700; color: var(--muted); }
.tile--big .tile__count { color: rgba(255,255,255,.75); }

/* ---------- Numbers ---------- */
.numbers { background: var(--deep); color: var(--on-deep); padding-block: clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.numbers::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(207,122,51,.22), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(195,81,47,.18), transparent 60%); }
.numbers .wrap { position: relative; }
.numbers__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.numbers__item { border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.numbers__value { display: block; font-size: clamp(3rem, 6vw, 5.2rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.numbers__value span { color: inherit; }
.numbers__label { display: block; margin-top: 10px; color: var(--on-deep-2); font-size: 1rem; }

/* ---------- Start here rows ---------- */
.starthere__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.starthere__head { position: sticky; top: calc(var(--header-h) + 40px); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row a { display: grid; grid-template-columns: 52px 1fr 24px; gap: 12px; align-items: center; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.row__num { font-weight: 900; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.row__title { font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -.015em; line-height: 1.3; }
.row__arrow { width: 22px; color: var(--muted); transition: transform .3s var(--ease); }
.row a:hover .row__title { color: var(--accent-ink); }
.row a:hover .row__arrow { transform: translateX(6px); color: var(--accent-ink); }

/* ---------- Shelf (horizontal scroll-snap) ---------- */
.shelf { overflow: hidden; }
.shelf__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
@media (min-width: 1400px) { .shelf__track { padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, #2a1d13, #7c3a1e 55%, #c3512f); color: #fff; overflow: hidden; }
.cta__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta .lede { color: rgba(255,255,255,.85); }
.cta__text { max-width: 720px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hub ---------- */
.hub-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--deep); }
.hub-hero__img { position: absolute; inset: 0; transform: scale(var(--z, 1.12)); will-change: transform; }
.hub-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hub-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,10,7,.5), rgba(14,10,7,.15) 40%, rgba(14,10,7,.82)); }
.hub-hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 6vw, 72px); }
.hub-hero__title { font-size: clamp(2.8rem, 8vw, 7rem); letter-spacing: -.05em; line-height: .95; margin: 0 0 16px; }
[dir="rtl"] .hub-hero__title { letter-spacing: 0; line-height: 1.25; }
.hub-hero__desc { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; color: rgba(255,255,255,.88); }
.hub-hero__count { font-weight: 700; color: #f3c8a4; margin: 0; }
.hub-hero .crumbs a, .hub-hero .crumbs { color: rgba(255,255,255,.8); }

.filters { position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 10px; margin-bottom: 26px; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border: 1px solid var(--line); }
.admin-bar .filters { top: calc(var(--header-h) + 42px); }
.filters__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 420px; min-width: 0; }
.filters__chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.chip small { font-weight: 500; opacity: .7; }
.chip:hover { background: var(--bg-alt); }
.chip.is-active { background: var(--ink); color: var(--bg); }
.filters__tools { display: flex; gap: 8px; flex: 0 1 auto; }
.filters__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); min-height: 40px; }
.filters__search .icon { width: 18px; color: var(--muted); flex: none; }
.filters__search input { border: 0; background: none; outline: none; font: inherit; font-size: .95rem; color: var(--ink); width: 170px; min-width: 0; }
.filters__sort select { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; font-size: .9rem; font-weight: 600; }
.filters__status { font-size: .85rem; color: var(--muted); min-height: 1.2em; margin: -10px 4px 14px; }
.card.is-hidden { display: none; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.lang-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--copper) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--copper) 30%, transparent); color: var(--ink-2); font-size: .95rem; }
.more-places { padding-top: 0; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Single story ---------- */
.story__head { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(28px, 4vw, 44px); }
.story__cat { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); text-decoration: none; margin-bottom: 14px; }
[dir="rtl"] .story__cat { letter-spacing: 0; font-size: .9rem; }
.story__title { font-size: clamp(2.2rem, 5.4vw, 4.4rem); letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
[dir="rtl"] .story__title { letter-spacing: 0; line-height: 1.4; }
.story__dek { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink-2); line-height: 1.5; }
.story__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; margin: 0; }
.story__meta .icon { width: 16px; display: inline; vertical-align: -3px; }
.story__cover { margin: 0 auto; }
.story__cover-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); clip-path: inset(0 round var(--radius)); }
.story__cover-frame img { width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.story__cover figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.story__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(32px, 5vw, 80px); padding-top: clamp(36px, 5vw, 64px); }
.story__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: 30px; max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 7px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-inline-start-color: var(--accent); font-weight: 700; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share .icon { width: 14px; }

.facts, .highlights { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; background: var(--surface); }
.facts__title, .highlights__title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.facts dl { margin: 0; display: grid; }
.facts dl > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 0; }
.highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 10px; }
.highlights .icon { width: 20px; color: var(--copper); flex: none; margin-top: 3px; }

.prose { font-size: 1.12rem; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
[dir="rtl"] .prose { line-height: 2; }
.prose > * { max-width: 100%; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 2em 0 .6em; letter-spacing: -.025em; line-height: 1.2; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 1.7em 0 .5em; letter-spacing: -.015em; line-height: 1.3; }
[dir="rtl"] .prose h2, [dir="rtl"] .prose h3 { letter-spacing: 0; line-height: 1.5; }
.prose h4 { font-size: 1.15rem; margin: 1.5em 0 .4em; }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--copper); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-inline-start: 3px solid var(--copper); font-size: 1.25rem; color: var(--ink-2); }
[dir="rtl"] .prose blockquote { padding: 4px 24px 4px 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.prose iframe, .prose video, .prose embed { max-width: 100%; border-radius: var(--radius-sm); }
.prose .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 42%; }
.prose .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 42%; }
[dir="rtl"] .prose .alignright { float: left; margin: .4em 1.4em 1em 0; }
[dir="rtl"] .prose .alignleft { float: right; margin: .4em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.prose h2 img, .prose h3 img { margin-top: .2em; }
.prose::after { content: ""; display: table; clear: both; }
.prose code { font-size: .9em; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; }

.faqs { margin-top: 48px; }
.faqs h2 { font-size: 1.6rem; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 800; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; flex: none; transition: transform .3s; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq__a { color: var(--ink-2); padding-bottom: 14px; }
.sources { margin-top: 40px; font-size: .95rem; }
.sources h2 { font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.story__fix { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.related { background: var(--bg-alt); }
.page-links { margin: 24px 0; font-weight: 700; }

/* Comments (default WordPress markup) */
.comments-wrap { padding-top: 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { border-bottom: 1px solid var(--line); padding: 18px 0; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { width: 100%; }

/* ---------- Pages ---------- */
.page-head { padding-block: clamp(48px, 8vw, 110px) clamp(24px, 4vw, 48px); overflow: hidden; }
.page-head__title { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.045em; line-height: 1; }
[dir="rtl"] .page-head__title { letter-spacing: 0; line-height: 1.35; }
.page-body { padding-bottom: clamp(60px, 8vw, 120px); }
.page-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; padding-bottom: clamp(60px, 8vw, 120px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }

/* Forms */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input:not([type=checkbox]), .field textarea, .field select { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 12px 14px; font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #b42318; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-ink); flex: none; }
.req { color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { font-size: .85rem; color: var(--muted); margin: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 18px; }
.notice p { margin: 0; }
.notice .icon { width: 22px; flex: none; }
.notice--ok { background: color-mix(in srgb, #1a7f37 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, #1a7f37 35%, transparent); }
.notice--error { background: color-mix(in srgb, #b42318 10%, var(--surface)); border: 1px solid color-mix(in srgb, #b42318 35%, transparent); }

/* A to Z */
.az { padding-bottom: clamp(60px, 8vw, 120px); }
.az__letters { position: sticky; top: calc(var(--header-h) + 8px); z-index: 10; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 16px; padding: 6px; margin-bottom: 18px; }
.az__letters ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.az__letters a { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.az__letters a:hover { background: var(--ink); color: var(--bg); }
.az__filter { max-width: 420px; margin-bottom: 26px; }
.az__filter input { width: 100%; }
.az__group { display: grid; grid-template-columns: 90px 1fr; gap: 20px; border-top: 1px solid var(--line); padding: 22px 0; }
.az__letter { font-size: 2.6rem; color: var(--copper); margin: 0; line-height: 1; }
.az__group ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.az__group li { break-inside: avoid; }
.az__group a { display: flex; flex-direction: column; padding: 8px 0; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; }
.az__group a:hover span { color: var(--accent-ink); }
.az__group small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.az__group.is-hidden, [data-az-item].is-hidden { display: none; }

.search-inline { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); margin-top: 18px; }
.search-inline .icon { width: 20px; color: var(--muted); flex: none; }
.search-inline input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--ink); }
.search-count { color: var(--muted); margin-top: 12px; }
.notfound { padding-block: clamp(70px, 12vw, 160px); overflow: hidden; }
.nav-links { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-links .current { background: var(--ink); color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--deep); color: var(--on-deep-2); overflow: hidden; isolation: isolate; }
.site-footer .calli { z-index: -1; }
.site-footer__inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 40px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.site-footer__brand p { margin-top: 18px; font-size: .95rem; max-width: 40ch; }
.site-footer__title { color: #fff; font-weight: 800; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer a { color: var(--on-deep-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { max-width: var(--maxw); margin-inline: auto; padding: 22px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.lang-switch--footer a { padding: 6px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.lang-switch--footer a.is-current { color: #fff; border-color: rgba(255,255,255,.5); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__copy { margin: 0; }
.site-footer__copy .credit a { color: #f3c8a4; text-decoration: underline; text-underline-offset: .2em; }
.social { display: flex; gap: 14px; margin-top: 14px !important; }

/* ---------- Motion (only with JS and when motion is allowed) ---------- */
.js [data-mask] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-mask] .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js [data-mask].is-in .w > span { transform: none; }
.js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js [data-blur] { opacity: .15; filter: blur(12px); transform: translateY(30px) scale(.97); transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform .9s var(--ease-out); }
.js [data-blur].is-in { opacity: 1; filter: blur(0); transform: none; }
.js [data-grow] { transform: scale(.88); opacity: .3; transition: transform 1s var(--ease-out), opacity .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-grow].is-in { transform: none; opacity: 1; }
.js [data-draw] path, .js [data-draw] circle, .js [data-draw] rect { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease-out) .25s; }
.js .is-in [data-draw] path, .js .is-in [data-draw] circle, .js .is-in [data-draw] rect { stroke-dashoffset: 0; }
.js .story__cover[data-reveal-cover] .story__cover-frame { clip-path: inset(6% 8% round var(--radius)); transition: clip-path 1.4s var(--ease-out); }
.js .story__cover.is-in .story__cover-frame { clip-path: inset(0 round var(--radius)); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js [data-mask] .w > span, .js [data-rise], .js [data-blur], .js [data-grow] { transform: none !important; opacity: 1 !important; filter: none !important; }
	.js [data-draw] * { stroke-dashoffset: 0 !important; }
	.hero { height: auto; }
	.hero__sticky { position: relative; height: 92vh; }
	.hero__frame, .hero__img, .hero__content { transform: none !important; opacity: 1 !important; border-radius: 0 !important; }
	.hscroll { height: auto !important; }
	.hscroll__sticky { position: relative; height: auto; padding-block: 80px; }
	.hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
	.hscroll__track { transform: none !important; }
	.emirate { scroll-snap-align: start; }
	.js .story__cover .story__cover-frame { clip-path: inset(0 round var(--radius)) !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.mega__inner { grid-template-columns: 1fr 1.2fr 1.2fr; }
	.mega__feature { display: none; }
	.site-footer__inner { grid-template-columns: repeat(3, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
	.search-trigger__label, .search-trigger kbd { display: none; }
	.search-trigger { border: 0; padding: 0 10px; }
}
@media (max-width: 1000px) {
	.mega-nav, .mega { display: none !important; }
	.menu-toggle { display: inline-flex; }
	.story__layout { grid-template-columns: minmax(0, 1fr); }
	.story__aside { position: static; max-height: none; order: 2; }
	.story__aside .toc { display: none; }
	.grid--latest, .grid--hub, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--latest .card--wide { grid-column: 1 / -1; grid-row: auto; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.starthere__inner, .page-split { grid-template-columns: 1fr; }
	.starthere__head { position: static; }
}
@media (max-width: 700px) {
	:root { --header-h: 58px; --radius: 18px; }
	body { font-size: 1rem; }
	.brand__img { height: 32px; }
	.lang-menu, .theme-toggle { display: none; }
	.grid--latest, .grid--hub, .grid--3 { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr 1fr; }
	.tile--big { grid-column: 1 / -1; }
	.tile a { min-height: 180px; padding: 18px; }
	.tile--big a { min-height: 280px; }
	.tile__desc { display: none; }
	.tile--big .tile__desc { display: block; }
	.tile__name { font-size: 1.15rem; }
	.emirate { width: 84vw; }
	.emirate__link { height: min(58svh, 500px); }
	.hscroll__count [data-hscroll-current] { font-size: 1.4rem; }
	.hscroll__head { flex-direction: column; align-items: flex-start; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.filters { position: static; }
	.filters__tools { width: 100%; }
	.filters__search { flex: 1; }
	.filters__search input { width: 100%; }
	.az__group { grid-template-columns: 1fr; gap: 6px; }
	.az__group ul { columns: 1; }
	.facts dl > div { grid-template-columns: 1fr; gap: 2px; }
	.prose .alignright, .prose .alignleft { float: none; margin: 1em auto; max-width: 100%; }
	.hero__chips, .hero__cue { display: none; }
	.hero { height: 150vh; height: 150svh; }
	.search-dialog { padding-top: 12px; }
	.search-dialog__panel { max-height: 88vh; }
	.search-dialog__hint { display: none; }
	.cta__inner { align-items: flex-start; }
}
@media (max-width: 380px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr; }
}

@media print {
	.site-header, .site-footer, .story__aside, .related, .search-dialog, .drawer { display: none !important; }
	.site-main { padding: 0; }
	.js [data-mask] .w > span, .js [data-blur], .js [data-rise] { transform: none; opacity: 1; filter: none; }
}

/* =========================================================================
   Free tools
   ========================================================================= */
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; min-width: 0; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--copper) 14%, var(--surface)); color: var(--accent-ink); }
.tool-card__icon .icon { width: 22px; height: 22px; }
.tool-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.tool-card__title { font-size: 1.05rem; line-height: 1.3; }
.tool-card__desc { font-size: .92rem; color: var(--ink-2); line-height: 1.45; }
.tool-card > .icon { width: 18px; height: 18px; flex: none; align-self: center; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.tool-card:hover > .icon { color: var(--accent-ink); transform: translateX(3px); }
[dir="rtl"] .tool-card > .icon { transform: scaleX(-1); }
[dir="rtl"] .tool-card:hover > .icon { transform: scaleX(-1) translateX(3px); }
.tool-card--compact { padding: 12px 14px; gap: 12px; }
.tool-card--compact .tool-card__icon { width: 36px; height: 36px; border-radius: 10px; }
.tool-card--compact .tool-card__icon .icon { width: 18px; height: 18px; }
.tool-card--compact .tool-card__title { font-size: .98rem; }
.tool-card--compact .tool-card__desc { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tools-hub { padding-bottom: clamp(60px, 8vw, 120px); }
.tools-hub__group { margin-bottom: clamp(36px, 5vw, 60px); }
.tools-hub__title { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 18px; }
.tools-hub__title .icon { width: 26px; height: 26px; color: var(--copper); }
.tools-hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tools-hub__about { margin: clamp(30px, 5vw, 60px) auto 0; }
.tools-hub__faqs { margin-inline: auto; }
.tools-hub__empty { color: var(--muted); }

.tools-box { margin: 40px 0 0; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.tools-box__title { font-size: 1.2rem; margin: 0 0 14px; }
.tools-box__grid { display: grid; gap: 10px; }
.tools-box__all { margin-top: 14px; display: inline-flex; }

/* Tool page */
.tool-page { padding-bottom: clamp(60px, 8vw, 120px); }
.tool { max-width: 980px; margin-inline: auto; }
.tool__loading { color: var(--muted); margin: 0; }
.tool__privacy { max-width: 980px; margin: 12px auto 0; display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.tool__privacy .icon { width: 18px; height: 18px; flex: none; }
.tool__checked { font-size: .9rem; color: var(--muted); margin-top: 28px; }
.tool-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 70px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.tool-page__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.tool-page__side-title { font-size: 1.1rem; margin: 0; }
.tool-page__list { display: grid; gap: 10px; }
.tool-page__guides { margin-top: clamp(50px, 7vw, 90px); }
.tool-page__guides .h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 22px; }

/* Tool UI */
.t-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 18px; align-items: end; }
.t-form .field { margin: 0; min-width: 0; }
.t-form .field--wide { grid-column: 1 / -1; }
.t-form .field small { display: block; color: var(--muted); font-size: .82rem; margin-top: 5px; line-height: 1.4; }
.t-form .field input[type=date] { min-height: 50px; }
.t-input { position: relative; display: flex; align-items: stretch; }
.t-input input { flex: 1; min-width: 0; }
.t-input__unit { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-inline-start: 0; border-radius: 0 14px 14px 0; background: var(--bg-alt); color: var(--muted); font-size: .88rem; font-weight: 700; white-space: nowrap; }
[dir="rtl"] .t-input__unit { border-radius: 14px 0 0 14px; }
.t-input:has(.t-input__unit) input { border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; }
.t-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); }
.t-seg label { flex: 1 1 auto; margin: 0 !important; }
.t-seg input { position: absolute; opacity: 0; pointer-events: none; }
.t-seg span { display: block; text-align: center; padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink-2); transition: background .2s, color .2s; }
.t-seg input:checked + span { background: var(--ink); color: var(--bg); }
.t-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.t-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.t-checks label { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 600 !important; font-size: .92rem; margin: 0 !important; }
.t-checks input { accent-color: var(--accent-ink); width: 18px; height: 18px; }
.t-checks label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.t-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-btn-ghost { background: none; border: 1px solid var(--line-2); color: var(--ink); }
.t-btn-ghost:hover { border-color: var(--ink); }
.t-btn-sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }

.t-out { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.t-out[hidden] { display: none; }
.t-out__label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 6px; }
[dir="rtl"] .t-out__label { letter-spacing: 0; }
.t-big { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
[dir="rtl"] .t-big { letter-spacing: 0; }
.t-sub { color: var(--ink-2); margin: 0 0 16px; }
.t-rows { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 6px 0 14px; }
.t-rows th, .t-rows td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.t-rows td { text-align: end; font-weight: 700; padding-inline-start: 16px; white-space: nowrap; }
.t-rows tr.is-total th, .t-rows tr.is-total td { font-weight: 900; border-bottom: 2px solid var(--ink); }
.t-rows th small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.t-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .92rem; color: var(--ink-2); margin: 10px 0; }
.t-note .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--copper); }
.t-note--warn { background: color-mix(in srgb, #b54708 10%, var(--surface)); }
.t-note--ok { background: color-mix(in srgb, #1a7f37 10%, var(--surface)); }
.t-out__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 12px 0; }
.t-stat { padding: 14px; border-radius: 14px; background: var(--bg-alt); }
.t-stat b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.t-stat span { font-size: .85rem; color: var(--muted); }
.t-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 180px; margin: 18px 0 8px; }
.t-bar { position: relative; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--copper)); min-height: 4px; cursor: pointer; border: 0; padding: 0; }
.t-bar.is-dim { background: color-mix(in srgb, var(--copper) 26%, var(--bg-alt)); }
.t-bar.is-on { outline: 3px solid var(--ink); outline-offset: 2px; }
.t-bar span { position: absolute; bottom: 100%; inset-inline: 0; text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-2); padding-bottom: 3px; }
.t-bars__labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font-size: .74rem; color: var(--muted); text-align: center; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-list li { display: flex; gap: 10px; align-items: flex-start; }
.t-list input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent-ink); flex: none; }
.t-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.t-group-title { font-size: 1.05rem; margin: 22px 0 8px; }
.t-day { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; background: var(--surface); }
.t-day h3 { margin: 0 0 8px; font-size: 1.05rem; }
.t-day ul { margin: 0; padding-inline-start: 1.2em; }
.t-day li { margin-bottom: 4px; }
.t-phrase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-phrase__ar { font-family: var(--font-ar); font-size: 1.35rem; line-height: 1.6; direction: rtl; text-align: start; }
[dir="ltr"] .t-phrase__ar { text-align: left; }
.t-phrase__tr { font-weight: 700; color: var(--accent-ink); }
.t-phrase__mean { color: var(--ink-2); grid-column: 1; }
.t-phrase__note { color: var(--muted); font-size: .88rem; grid-column: 1; }
.t-phrase button { grid-row: 1 / span 3; grid-column: 2; }
.t-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.t-icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.t-icon-btn .icon { width: 18px; height: 18px; }
.t-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; margin: 10px 0; }
.t-time { padding: 14px; border-radius: 14px; background: var(--bg-alt); text-align: center; }
.t-time.is-next { background: var(--ink); color: var(--bg); }
.t-time b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.t-time span { font-size: .85rem; opacity: .8; }
.t-scroll { overflow-x: auto; }
@media (max-width: 980px) {
	.tool-page__grid { grid-template-columns: 1fr; }
	.tool-page__side { position: static; }
}
@media (max-width: 560px) {
	.t-bars { gap: 3px; height: 150px; }
	.t-bar span { font-size: .6rem; }
	.t-bars__labels { gap: 3px; font-size: .62rem; }
}
@media print {
	.site-header, .site-footer, .tool-page__side, .tool-page__guides, .t-form, .t-out__actions, .tool__privacy, .crumbs, .filters { display: none !important; }
	.tool { box-shadow: none; border: 0; }
}
.mega--tools .mega__inner { grid-template-columns: 1fr 1.6fr 1.4fr; }
.mega--tools .mega__cats { grid-template-columns: 1fr 1fr; column-gap: 8px; }
.mega--tools .mega__cats .icon { width: 20px; height: 20px; color: var(--copper); flex: none; }
@media (max-width: 1180px) { .mega-nav__item--about { display: none; } .mega--tools .mega__inner { grid-template-columns: 1fr 1.5fr 1.3fr; } }
.guides-hub { padding-bottom: clamp(60px, 8vw, 120px); }
.guides-hub__intro { margin: 0 auto clamp(30px, 5vw, 56px); }
.guides-hub__group { margin-bottom: clamp(40px, 6vw, 70px); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--bg-alt); font-weight: 800; }
.prose table { overflow-wrap: normal; word-break: normal; }
.prose th:first-child, .prose td:first-child { min-width: 7.5em; }
