/* =====================================================================
   PMA public site — hand-written CSS, RTL-first with logical properties
   ===================================================================== */

:root {
  --gold: #cea157; --gold-2: #9b7941; --gold-3: #b9a779; --gold-hover: #b88f45; --gold-soft: #f7efdd;
  --green: #002623; --green-2: #094239; --green-3: #0d5a4d;
  --ink: #260f14; --muted: #6b6352; --line: #dcd9c6; --line-soft: rgba(38,15,20,.08);
  --charcoal: #191919; --line-2: #c9c9c9; --surface-2: #efefef;
  --bg: #ffffff; --bg-warm: #fffdf8; --ivory: #eeeadf; --surface: #ffffff;
  --err: #d5040f; --ok: #428177; --warn: #988561; --info: #2b5c7a;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(38,15,20,.05), 0 8px 24px rgba(155,121,65,.12);
  --shadow-lg: 0 20px 50px rgba(38,15,20,.14);
  --font: "PMA Qomra", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  --font-latin: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --container: 1240px; --fs: 16px;
}
@font-face { font-family: "PMA Qomra"; src: url("../fonts/itfQomraArabic-Regular-BUIX_tzf.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PMA Qomra"; src: url("../fonts/itfQomraArabic-Bold-BiFvZraz.otf") format("opentype"); font-weight: 700; font-display: swap; }
html.ltr, body.ltr { --font: var(--font-latin); }
html[data-contrast="high"] { --gold: #8a6420; --gold-2: #6e4f16; --muted: #333; --line: #555; --ivory: #f2f2f2; --bg-warm: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg-warm); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
body.ltr { font-family: var(--font-latin); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("../img/pattern.svg") center/640px repeat; opacity: .18; }
html[data-contrast="high"] body::before { display: none; }
img { max-width: 100%; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); } h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: calc(100% - 16px); margin-inline: auto; }
.site-main { flex: 1; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--green); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 8px; }
.icon { flex: none; vertical-align: middle; }
.rtl .icon--dir { transform: scaleX(-1); }
bdi { unicode-bidi: isolate; font-family: var(--font-latin); font-variant-numeric: tabular-nums; }

/* ---------- buttons / chips / alerts ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; transition: .2s; white-space: nowrap; background: var(--ivory); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--ink); } .btn--gold:hover { background: var(--gold-hover); color: #fff; }
.btn--dark { background: var(--green); color: #fff; } .btn--dark:hover { background: var(--green-2); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--green-2); } .btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--outline-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; } .btn--outline-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--sm { padding: .45rem .95rem; font-size: .9rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--danger { background: #fbe9ea; color: var(--err); }
.btn:disabled { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 999px; background: var(--ivory); color: var(--muted); font-size: .78rem; font-weight: 600; }
.chip--gold { background: var(--gold-soft); color: var(--gold-2); }
.chip--green { background: #e3efec; color: var(--green-2); }
.chip--red { background: #fbe9ea; color: var(--err); }
.chip--xs { padding: 0 .4rem; font-size: .7rem; }
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid; }
.alert--success { background: #e6f3f0; color: var(--green-2); border-color: #b9dbd3; }
.alert--error { background: #fdecec; color: var(--err); border-color: #f4c2c5; }
.alert--info { background: #e9f1f6; color: var(--info); border-color: #c5d9e6; }
.eyebrow { display: inline-block; color: var(--gold-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em; margin-bottom: .3rem; }
.eyebrow--gold { color: var(--gold); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37b; display: inline-block; box-shadow: 0 0 0 0 rgba(47,179,123,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,123,.6);} 70% { box-shadow: 0 0 0 8px rgba(47,179,123,0);} 100% { box-shadow: 0 0 0 0 rgba(47,179,123,0);} }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--green); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; flex-wrap: wrap; }
.topbar__contact, .topbar__actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .35rem; color: #fff; opacity: .9; }
.topbar__item--muted { opacity: .7; }
.topbar__btn { background: transparent; border: 0; padding: .2rem .4rem; border-radius: 6px; }
.topbar__btn:hover, .topbar__lang:hover { background: rgba(255,255,255,.12); }
.topbar__lang { font-family: var(--font-latin); font-weight: 600; padding: .2rem .6rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }
.navbar { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 55%, var(--charcoal) 130%); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.navbar__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.brand__logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__text strong { font-size: 1.05rem; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.brand__text small { opacity: .92; font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.mainnav { flex: 1; display: flex; justify-content: center; }
.mainnav > ul { display: flex; gap: .2rem; align-items: center; }
.mainnav a { display: block; padding: .6rem .85rem; color: #fff; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.mainnav > ul > li > a:hover, .mainnav > ul > li > a.is-active { background: rgba(255,255,255,.14); }
.navbar__tools { margin-inline-start: auto; }
.has-menu { position: relative; }
.has-menu > a { display: flex; align-items: center; gap: .35rem; }
.has-menu > a::after { content: ''; width: 8px; height: 8px; margin-top: -3px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .85; transition: transform .15s ease; }
.has-menu:hover > a::after, .has-menu:focus-within > a::after { transform: rotate(225deg); margin-top: 3px; }
.submenu { position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; display: none; z-index: 60; }
.submenu a { color: var(--ink); padding: .55rem .8rem; border-radius: 8px; font-weight: 500; }
.submenu a:hover { background: var(--gold-soft); color: var(--gold-2); }
.has-menu:hover .submenu, .has-menu:focus-within .submenu { display: block; }
.navbar__tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); color: #fff; border: 0; position: relative; }
.icon-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.badge-dot { position: absolute; top: -2px; inset-inline-end: -2px; background: var(--err); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; font-family: var(--font-latin); }
.user-menu { position: relative; }
.user-menu__btn { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 0; color: #fff; padding: .25rem .8rem .25rem .3rem; border-radius: 999px; }
.rtl .user-menu__btn { padding: .25rem .3rem .25rem .8rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.user-menu__panel { display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: #fff; color: var(--ink); min-width: 220px; border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; z-index: 60; }
.user-menu.is-open .user-menu__panel { display: block; }
.user-menu__panel a, .user-menu__panel button { display: block; width: 100%; text-align: start; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); background: none; border: 0; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--gold-soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: rgba(255,255,255,.14); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: #fff; display: block; }

/* ---------- ticker ---------- */
.ticker { background: var(--ivory); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 1rem; min-height: 40px; overflow: hidden; }
.ticker__label { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; font-size: .85rem; color: var(--green-2); white-space: nowrap; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.ticker__move { display: inline-flex; gap: 3rem; white-space: nowrap; animation: ticker 40s linear infinite; padding-inline-start: 100%; }
.ticker__move:hover { animation-play-state: paused; }
.ticker__move > * { color: var(--ink); font-size: .92rem; }
@keyframes ticker { to { transform: translateX(var(--ticker-dir, -100%)); } }
.rtl .ticker__move { --ticker-dir: 100%; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; padding: 3.5rem 0 4rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/900px repeat; opacity: .05; pointer-events: none; }
/* Hero: centered single-column layout (was a two-column grid before the local bulletin
   was temporarily suppressed — centering keeps it balanced with the board narrower now). */
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; position: relative; z-index: 1; }
.hero__text { display: flex; flex-direction: column; align-items: center; max-width: 720px; }
.hero__ministry { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .8rem; }
.hero__ministry-emblem { height: 48px; width: auto; }
.hero__ministry-text { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.hero__ministry-country { color: var(--line-2); font-size: .6rem; font-weight: 500; letter-spacing: .01em; }
.hero__ministry-name { color: var(--gold); font-size: 1.1rem; font-weight: 600; }
.hero__eyebrow { color: var(--gold); font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 60ch; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; justify-content: center; }
.hero__badges { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.6rem; font-size: .88rem; color: rgba(255,255,255,.85); justify-content: center; }
.hero__badges li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__board { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.1rem; width: 100%; max-width: 480px; margin: 0 auto; }
.hero__board .prices-board { box-shadow: none; padding: 0; }
.hero__board-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line-soft); font-weight: 600; }
.hero__board-links a { display: inline-flex; align-items: center; gap: .3rem; }
.intl-strip { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; margin-top: .8rem; padding: .6rem .8rem; background: var(--gold-soft); border-radius: 10px; font-size: .88rem; text-decoration: none; color: inherit; transition: box-shadow .15s, background .15s; }
.intl-strip:hover, .intl-strip:focus-visible { background: var(--gold-soft-2, var(--gold-soft)); box-shadow: 0 0 0 2px var(--gold-2) inset; }
.intl-strip__label { font-weight: 700; color: var(--gold-2); }
.up { color: #1f8a5b; } .down { color: var(--err); }

/* ---------- prices ---------- */
.prices-board { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.prices-board__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.prices-board__title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--green-2); }
.prices-board__date { font-size: .82rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.prices-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.prices-table th, .prices-table td { padding: .65rem .8rem; text-align: center; border-bottom: 1px solid var(--line-soft); }
.prices-table thead th { background: var(--gold-2); color: #fff; font-weight: 700; }
.prices-table thead tr:first-child th:first-child { border-start-start-radius: 10px; }
.prices-table thead tr:first-child th:last-child { border-start-end-radius: 10px; }
.prices-table thead tr:nth-child(2) th { background: var(--gold); color: var(--ink); font-size: .8rem; }
.prices-table th small { opacity: .85; font-weight: 500; }
.prices-table tbody th { text-align: start; font-weight: 700; }
.prices-table tbody tr.is-main { background: var(--gold-soft); }
.prices-table tbody tr:hover { background: #faf6ec; }
.prices-table td bdi { font-weight: 600; }
.ptr { font-size: .7rem; margin-inline-start: .2rem; } .ptr--up { color: #1f8a5b; } .ptr--down { color: var(--err); } .ptr--flat { color: var(--muted); }
.prices-hero { background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; padding: 2.5rem 0; }
.prices-hero h1 { color: #fff; }
.intl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.intl-card { background: var(--surface); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.intl-card:hover, a.intl-card:focus-visible { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.intl-card strong { font-size: 1.6rem; font-family: var(--font-latin); }

/* ---------- sections & grids ---------- */
.section { padding: 3.5rem 0; }
.section--ivory { background: var(--ivory); }
.section--dark { background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; }
.section--dark h2 { color: #fff; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head--sm h2 { font-size: 1.35rem; }
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.link-more { font-weight: 700; color: var(--gold-2); }

.quick-access { margin-top: -2.2rem; position: relative; z-index: 2; }
.quick-access__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.quick-card { background: #fff; border-radius: 14px; padding: 1rem .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; color: var(--ink); border: 1px solid transparent; transition: .2s; }
.quick-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.quick-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .3rem; }
.quick-card small { color: var(--muted); font-size: .78rem; line-height: 1.4; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: .2s; border: 1px solid transparent; }
.card:hover { transform: translateY(-3px); border-color: var(--gold-soft); }
.card__media { display: block; aspect-ratio: 16/9; background: var(--ivory); position: relative; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold-2); background: linear-gradient(135deg, var(--ivory), var(--gold-soft)); }
.card__ribbon { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.card__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.card__meta time { display: inline-flex; align-items: center; gap: .3rem; }
.card__title { font-size: 1.05rem; margin: 0; } .card__title a { color: var(--ink); } .card__title a:hover { color: var(--gold-2); }
.card__text { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.card__more { font-weight: 700; color: var(--gold-2); display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
/* Hani: news cards should always be the same fixed size regardless of how long a given
   title or brief is — a long title or brief was pushing just that one card taller (or, in
   the "first" grid rows, stretching every card in the row to match it, per the whitespace
   fix above). Clamping both to exactly 2 lines, with a matching min-height so a SHORT
   title/brief doesn't leave the card shorter either, makes every card the same height by
   construction. A clamped line that doesn't fit gets the trailing "…" automatically. */
.news-card .card__title { line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-card .card__text { line-height: 1.5; min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.card--horizontal { flex-direction: row; } .card--horizontal .card__media { width: 40%; aspect-ratio: auto; flex: none; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.media-grid > :first-child { grid-column: span 2; grid-row: span 2; }
.media-grid > :first-child .card__title { font-size: 1.4rem; }
/* Hani: no beige letterboxing (and no cropping) around the photo in these homepage
   sections, for the big entry card and its two side cards alike, landscape or portrait —
   the picture's own box now sizes to the picture's natural proportions instead of a fixed
   16:9 frame, so the star ribbon sits right on the photo's corner and the brief block
   below always matches the picture's exact width. (The image-left/text-right split stays
   on the news detail page only; the homepage entry always shows picture-above, brief-under.) */
.media-grid .card__media { aspect-ratio: auto; max-height: none; }
.media-grid .card__media img { height: auto; }
/* Hani: EVERY hero card in these sections (the big entry card in both the "featured" grid
   and the media-center grid) now uses the same frame: a fixed HEIGHT cap, with the
   picture's own width following its ratio - so the whole photo always shows, nothing
   cropped, nothing stretched. The whole card (frame + brief text) then shrinks to that
   same width and sits centered, so there's no leftover beige/white band beside the
   picture either. 380px is the normal cap; an elongated/portrait cover (card--tall) gets
   a taller 540px cap instead, so less of a tall photo needs to shrink down. */
/* Hani: the big entry card's grid cell is 2 rows tall (to match the two smaller cards
   stacked beside it), but the card itself (photo + brief) is rarely that tall, so the
   grid was stretching the card's own box down to fill the cell — the "card__body" is a
   flex child with flex:1, so that extra height became a large blank strip under the
   "read more" link, in the card's own background color. align-self: start stops the grid
   from stretching the card at all: its box now ends right where the content does, and
   whatever's left of the 2-row cell below it is just empty grid space (the section's own
   background), not an oversized card. */
.media-grid > :first-child { width: fit-content; max-width: 100%; justify-self: center; align-self: start; align-items: center; }
.media-grid > :first-child .card__media { height: 380px; max-height: 380px; display: flex; align-items: center; justify-content: center; background: var(--surface); width: fit-content; }
.media-grid > :first-child .card__media img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.media-grid > :first-child .card__body { max-width: 380px; }
.media-grid > :first-child.card--tall .card__media { height: 540px; max-height: 540px; }
.list-cards li a { display: flex; gap: 1rem; padding: .9rem; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); margin-bottom: .7rem; color: var(--ink); transition: .2s; }
.list-cards li a:hover { transform: translateX(var(--nudge, -4px)); } .rtl .list-cards li a:hover { --nudge: 4px; }
.list-cards__date { flex: none; width: 58px; height: 58px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; font-family: var(--font-latin); }
.list-cards__date strong { font-size: 1.3rem; } .list-cards__date small { font-size: .7rem; }
.list-cards__body { display: flex; flex-direction: column; gap: .2rem; } .list-cards__body small { color: var(--muted); }
.doc-list li a { display: flex; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.doc-list li a:hover strong { color: var(--gold-2); }
.doc-list .icon { color: var(--gold-2); }
.doc-list span { display: flex; flex-direction: column; } .doc-list small { color: var(--muted); font-size: .8rem; }
.tabs { display: flex; gap: .4rem; border-bottom: 2px solid var(--line-soft); margin-bottom: 1rem; }
.tab { background: none; border: 0; padding: .6rem 1rem; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.is-active { color: var(--gold-2); border-color: var(--gold); }
.tab-panel { display: none; } .tab-panel.is-active { display: block; }

.service-card { display: flex; gap: 1rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; border: 1px solid transparent; transition: .2s; }
.service-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.service-card__icon { flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.service-card h3 { margin: 0; font-size: 1.05rem; } .service-card h3 a { color: var(--ink); }
.service-card p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.service-card__meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.service-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }

.stamp__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: center; }
.stamp p { color: rgba(255,255,255,.85); }
.stamp__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stamp-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1.2rem; }
.stamp-card__head { display: flex; gap: .5rem; align-items: center; margin-bottom: .8rem; }
.stamp-card--authentic .stamp-card__head { color: #7fd4a8; } .stamp-card--fake .stamp-card__head { color: #f2a7a7; }
.stamp-card .chip { background: rgba(255,255,255,.12); color: #fff; margin-inline-start: auto; }
.stamp-card li { font-size: .9rem; color: rgba(255,255,255,.85); padding: .35rem 0; border-bottom: 1px dashed rgba(255,255,255,.1); }
.stamp-card li strong { color: #fff; }

.voice { background: var(--gold-soft); }
.voice__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats li { background: #fff; border-radius: 14px; padding: 1.2rem 1rem; text-align: center; box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 1.6rem; color: var(--gold-2); font-family: var(--font-latin); }
.stats span { font-size: .85rem; color: var(--muted); }
.value-card { background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.value-card img, .value-card .icon { color: var(--gold-2); }
.value-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.faq-home { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; }
.accordion__item { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: .7rem; }
.accordion__item summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item[open] summary { color: var(--gold-2); } .accordion__item[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* ---------- page hero & content pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; padding: 2.4rem 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/700px repeat; opacity: .06; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { color: #fff; margin: .4rem 0 0; }
.page-hero__sub { color: rgba(255,255,255,.85); margin: .5rem 0 0; max-width: 70ch; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.8); display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: #fff; } .crumbs__sep { opacity: .5; }
.page { padding: 2.5rem 0 3.5rem; }
.page--narrow .container { max-width: 900px; }
.filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; background: var(--surface); padding: .9rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.filters .field { margin: 0; flex: 1; min-width: 180px; }
.filters .field input, .filters .field select { padding: .55rem .8rem; }
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination__btn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; font-family: var(--font-latin); }
.pagination__btn.is-current { background: var(--gold); }
.pagination__dots { align-self: center; color: var(--muted); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; }
.article__main { min-width: 0; }
.article__cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.5rem; background: var(--ivory); }
.article__cover img { width: 100%; max-height: 520px; object-fit: contain; }
/* A tall ("elongated") cover photo: shown at its own natural proportions in a column
   beside the date/chip/actions + summary, instead of full-width with cream padding on
   either side (see news/show.php's $coverPortrait check). */
/* row-reverse: Hani wants the picture specifically on the left and the summary on the right, not "whichever side comes first in RTL reading order" (plain flex row would put the image on the right here, since Arabic is RTL). */
.article__cover-row { display: flex; flex-direction: row-reverse; gap: 1.6rem; align-items: flex-start; margin-bottom: 1.5rem; }
.article__cover-row .article__cover { margin-bottom: 0; flex: none; background: none; box-shadow: none; }
.article__cover-row .article__cover--portrait img { width: auto; max-width: 100%; height: 420px; max-height: 60vh; object-fit: cover; }
.article__cover-row__info { flex: 1; min-width: 0; padding-top: .2rem; }
.article__cover-row__info .article__meta { margin-bottom: .8rem; }
@media (max-width: 760px) {
  .article__cover-row { flex-direction: column; }
  .article__cover-row .article__cover--portrait img { width: 100%; height: auto; max-height: 420px; }
}
.article__meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.article__meta time { display: inline-flex; align-items: center; gap: .3rem; }
.article__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-inline-start: auto; }
.prose { font-size: 1.05rem; line-height: 1.9; }
.prose img { border-radius: 12px; margin: 1rem 0; } .prose h2, .prose h3 { margin-top: 1.6em; }
.prose blockquote { border-inline-start: 4px solid var(--gold); padding: .5rem 1rem; margin: 1rem 0; background: var(--gold-soft); border-radius: 8px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.aside-box h3 { font-size: 1rem; color: var(--gold-2); margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line-soft); }
.aside-list li a { display: flex; gap: .7rem; padding: .55rem 0; color: var(--ink); border-bottom: 1px dashed var(--line-soft); }
.aside-list li a:hover { color: var(--gold-2); }
.aside-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.aside-list span { display: flex; flex-direction: column; font-size: .9rem; } .aside-list small { color: var(--muted); font-size: .78rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--ivory); display: block; box-shadow: var(--shadow); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item__cap { position: absolute; inset: auto 0 0; padding: .6rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; }
.gallery-item__play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--green); display: flex; align-items: center; justify-content: center; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 200; display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.is-open { display: flex; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox__close { position: absolute; top: 16px; inset-inline-end: 16px; background: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; }

/* ---------- legal / docs ---------- */
.doc-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: .9rem; border: 1px solid transparent; }
.doc-card:hover { border-color: var(--gold-soft); }
.doc-card__icon { width: 72px; height: 72px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; gap: .2rem; }
.doc-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; } .doc-card h3 a { color: var(--ink); }
.doc-card__meta { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.doc-card__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pdf-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.info-grid div { background: var(--gold-soft); border-radius: 10px; padding: .7rem .9rem; }
.info-grid small { display: block; color: var(--muted); font-size: .75rem; } .info-grid strong { font-size: .95rem; }
.steps { counter-reset: step; }
.steps li { position: relative; padding: .8rem 0 .8rem 3rem; border-inline-start: 2px solid var(--gold-soft); margin-inline-start: 1.2rem; }
.rtl .steps li { padding: .8rem 3rem .8rem 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: -19px; top: .9rem; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: var(--font-latin); }
.steps li strong { display: block; } .steps li p { color: var(--muted); margin: .2rem 0 0; font-size: .92rem; }
.req-list li { display: flex; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--line-soft); }
.req-list .icon, .req-list img { color: var(--gold-2); flex: none; width: 22px; height: 22px; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(206,161,87,.45); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.field .error, .field.has-error .hint { color: var(--err); font-size: .82rem; margin-top: .3rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.radio-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; }
.form-card h2 { font-size: 1.3rem; }
.form-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.choice-card { border: 2px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; display: flex; gap: .8rem; align-items: flex-start; background: #fff; }
.choice-card input { margin-top: .3rem; }
.choice-card strong { display: block; } .choice-card small { color: var(--muted); }
.choice-card:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 1.3rem; text-align: center; color: var(--muted); background: #fff; }
.dropzone input { display: none; }
.dropzone.is-drag { border-color: var(--gold); background: var(--gold-soft); }
.dropzone__files { text-align: start; margin-top: .6rem; font-size: .85rem; }

/* ---- multi-step wizard (complaints / suggestions) ------------------- */
.wizard__steps { display: flex; align-items: center; justify-content: center; margin-bottom: 1.6rem; flex-wrap: wrap; }
.wizard__step { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.wizard__step:not(:last-child)::after { content: ''; width: 34px; height: 2px; background: var(--line); margin: 0 .6rem; }
.wizard__num { width: 26px; height: 26px; border-radius: 50%; background: var(--ivory); color: var(--muted); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .8rem; flex: none; }
.wizard__step.is-active { color: var(--ink); }
.wizard__step.is-active .wizard__num { background: var(--gold); color: #fff; border-color: var(--gold); }
.wizard__step.is-done .wizard__num { background: var(--green); color: #fff; border-color: var(--green); }
.wizard__step.is-done:not(:last-child)::after { background: var(--green-3); }
.rules-box { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.2rem; }
.rules-box p { margin: .5rem 0; font-size: .92rem; }
/* "Call to file a complaint instead" box — phone/WhatsApp/Telegram, shown above the complaints
   wizard's terms step when at least one of those numbers is set in admin Settings. */
.contact-box { background: var(--gold-soft); border: 1px solid var(--gold-3); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.contact-box__title { margin: 0 0 .8rem; font-weight: 700; color: var(--green-2); }
.contact-box__list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.contact-box__item { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); }
.contact-box__item bdi { direction: ltr; }
.contact-box__row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.contact-box__icon-link { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; flex-shrink: 0; }
.contact-box__icon-link--whatsapp { background: #25d366; }
.contact-box__icon-link--telegram { background: #229ed9; }
.contact-box__or { margin: 0; color: var(--muted); font-weight: 600; }
.input-group { display: flex; gap: .5rem; }
.input-group__prefix { display: flex; align-items: center; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory); font-weight: 600; white-space: nowrap; }
.input-group input { flex: 1; }
@media (max-width: 560px) {
  .wizard__step span:last-child { display: none; }
  .wizard__step:not(:last-child)::after { width: 20px; }
}
.result-box { text-align: center; padding: 2rem; background: #e6f3f0; border-radius: var(--radius); border: 1px solid #b9dbd3; }
.result-box .number { font-size: 2rem; font-weight: 800; letter-spacing: .06em; color: var(--green-2); font-family: var(--font-latin); background: #fff; display: inline-block; padding: .3rem 1.2rem; border-radius: 10px; margin: .6rem 0; }
.status-badge { display: inline-flex; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-under_review, .status-pending { background: #fff3d6; color: #8a6420; }
.status-action_taken { background: #e3edf7; color: var(--info); }
.status-approved, .status-resolved { background: #e3efec; color: var(--green-2); }
.status-rejected { background: #fbe9ea; color: var(--err); }
.status-draft { background: var(--ivory); color: var(--muted); } .status-published { background: #e3efec; color: var(--green-2); } .status-expired { background: #fbe9ea; color: var(--err); }
.turnstile-wrap { margin: 1rem 0; }

/* ---------- auth layout ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") center/800px repeat; opacity: .07; }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { color: #fff; font-size: 1.9rem; } .auth-side p { color: rgba(255,255,255,.85); }
.auth-side ul li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; color: rgba(255,255,255,.9); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-warm); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { margin-bottom: .2rem; } .auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-top: 1rem; flex-wrap: wrap; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 1.6rem; font-family: var(--font-latin); }
.brand--dark { color: var(--ink); } .brand--dark strong, .brand--dark small { color: var(--ink); }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.profile__nav { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; align-self: start; position: sticky; top: 90px; }
.profile__user { display: flex; gap: .8rem; align-items: center; padding: .5rem .5rem 1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .6rem; }
.profile__user .avatar { width: 44px; height: 44px; font-size: 1.2rem; }
.profile__user strong { display: block; } .profile__user small { color: var(--muted); }
.profile__nav a { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: 10px; color: var(--ink); font-weight: 600; }
.profile__nav a:hover, .profile__nav a.is-active { background: var(--gold-soft); color: var(--gold-2); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.5rem; }
.stat-tile { background: var(--surface); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); border-inline-start: 4px solid var(--gold); }
.stat-tile strong { display: block; font-size: 1.6rem; font-family: var(--font-latin); }
.stat-tile span { color: var(--muted); font-size: .85rem; }
.stat-tile--ok { border-color: var(--ok); } .stat-tile--warn { border-color: var(--warn); } .stat-tile--err { border-color: var(--err); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: .8rem .9rem; text-align: start; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.data-table th { background: var(--ivory); font-weight: 700; }
.data-table tbody tr:nth-child(even) { background: var(--surface-2); }
.notif { display: flex; gap: .9rem; padding: 1rem; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: .7rem; border-inline-start: 4px solid transparent; }
.notif.is-unread { border-color: var(--gold); background: #fffaf0; }
.notif__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); display: flex; align-items: center; justify-content: center; flex: none; }
.notif__body { flex: 1; } .notif__body strong { display: block; } .notif__body p { margin: .2rem 0; color: var(--muted); font-size: .9rem; }
.notif__time { font-size: .78rem; color: var(--muted); }
.notif__actions { display: flex; gap: .3rem; flex-direction: column; }
.notif__actions button { background: none; border: 0; color: var(--muted); padding: .2rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.85); margin-top: 3rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer__col h3 { color: #fff; font-size: 1.1rem; } .footer__col h4 { color: var(--gold); margin-bottom: 1rem; }
.footer__col ul li { padding: .25rem 0; } .footer__col a { color: rgba(255,255,255,.85); } .footer__col a:hover { color: var(--gold); }
.footer__brand img { margin-bottom: .8rem; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; } .footer__contact .icon { color: var(--gold); margin-top: .2rem; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--gold); color: var(--ink); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1.2rem; flex-wrap: wrap; } .footer__links a { color: rgba(255,255,255,.75); }
.to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .2s; z-index: 80; font-size: 1.2rem; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.cookie-banner { position: fixed; bottom: 0; inset-inline: 0; background: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.12); z-index: 90; padding: 1rem 0; }
.cookie-banner__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.cookie-banner__btns { display: flex; gap: .6rem; }
.toast { position: fixed; bottom: 80px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--green); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 300; font-size: .9rem; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translate(-50%, 8px);} }

/* ---------- charts ---------- */
.chart-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.chart-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
.chart-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: var(--gold-soft); border-radius: 12px; padding: .8rem 1rem; }
.kpi small { display: block; color: var(--muted); font-size: .78rem; } .kpi strong { font-size: 1.3rem; font-family: var(--font-latin); }
.chart-svg { width: 100%; height: 360px; display: block; }
.chart-legend { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.chart-legend i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; margin-inline-end: .3rem; vertical-align: middle; }
.chart-download { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; }
.chart-download .btn svg { vertical-align: middle; margin-inline-end: .3rem; }
.presets { display: flex; gap: .4rem; flex-wrap: wrap; }
.presets button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; }
.presets button.is-active { background: var(--gold); border-color: var(--gold); font-weight: 700; }
.chart-tip { position: absolute; background: var(--ink); color: #fff; padding: .4rem .6rem; border-radius: 8px; font-size: .8rem; pointer-events: none; transform: translate(-50%, -110%); white-space: nowrap; display: none; }

/* ---------- misc ---------- */
.download-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; margin-bottom: 1rem; }
.download-card__links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.app-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: linear-gradient(180deg, var(--charcoal) 0%, var(--line-2) 100%); color: #fff; border-radius: 20px; padding: 2.5rem; }
.app-card h2 { color: #fff; } .app-card p { color: rgba(255,255,255,.85); }
.app-release { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.search-groups h2 { font-size: 1.1rem; color: var(--gold-2); margin: 1.5rem 0 .6rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.sitemap-grid h3 { color: var(--gold-2); font-size: 1rem; border-bottom: 2px solid var(--gold-soft); padding-bottom: .4rem; }
.sitemap-grid li { padding: .3rem 0; }
.dataset { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.dataset h3 { margin: 0 0 .2rem; } .dataset p { margin: 0; color: var(--muted); font-size: .9rem; }
.dataset__btns { display: flex; gap: .5rem; }
.sector-row { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.sector-row .bar { flex: 1; height: 8px; background: var(--ivory); border-radius: 4px; overflow: hidden; } .sector-row .bar i { display: block; height: 100%; background: var(--gold); }
.print-only { display: none; }
@media print { .site-header, .site-footer, .to-top, .cookie-banner, .article__actions, .aside, .page-hero .crumbs { display: none !important; } .article { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stamp__inner, .voice__inner, .faq-home { grid-template-columns: 1fr; }
  .quick-access__grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; } .profile__nav { position: static; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mainnav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--green-2); padding: .8rem; box-shadow: var(--shadow-lg); }
  .mainnav.is-open { display: block; }
  .mainnav > ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; display: block; box-shadow: none; background: rgba(255,255,255,.06); margin: .2rem 0 .5rem; }
  .submenu a { color: #fff; }
  .nav-toggle { display: flex; }
  .navbar__inner { min-height: 66px; }
  .brand__text strong { font-size: .88rem; } .brand__text small { display: none; }
  .user-menu__name { display: none; }
  .grid--3, .grid--2, .media-grid, .two-col, .stamp__cards, .choice-cards, .app-card { grid-template-columns: 1fr; }
  .media-grid > :first-child { grid-column: auto; grid-row: auto; }
  .card--horizontal { flex-direction: column; } .card--horizontal .card__media { width: 100%; aspect-ratio: 16/9; }
  .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; }
  .doc-card { grid-template-columns: 56px 1fr; } .doc-card__actions { grid-column: 1 / -1; }
  .topbar__contact .topbar__item--muted, .topbar__item span { display: none; } .topbar__lang { display: inline-flex; }
  .topbar__lang, .topbar__btn { font-size: .8rem; }
}
@media (max-width: 600px) {
  .quick-access__grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .stats, .stat-tiles { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .section { padding: 2.4rem 0; }
  .prices-table { font-size: .82rem; } .prices-table th, .prices-table td { padding: .5rem .4rem; }
  .form-card { padding: 1.2rem; }
}

/* ---------------------------------------------------------------------------
   Floating "AI help" chat widget (site + admin) — see app/Core/OpenAi,
   app/Core/HelpKnowledge, app/Views/site/partials/ai-help.php, assets/js/ai-help.js
--------------------------------------------------------------------------- */
.ai-help { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 500; }
.ai-help__bubble {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg, 0 6px 20px rgba(0,0,0,.2)); transition: transform .15s;
}
.ai-help__bubble:hover { transform: scale(1.06); }
.ai-help.is-open .ai-help__bubble { background: var(--charcoal, #2b2b2b); }
.ai-help__panel {
  position: absolute; inset-block-end: 72px; inset-inline-end: 0;
  width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 120px));
  background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.25));
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-help__header {
  display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); color: #fff;
}
.ai-help__close { background: none; border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.ai-help__messages { flex: 1; overflow-y: auto; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ai-help__msg { max-width: 88%; padding: .55rem .75rem; border-radius: 12px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; }
.ai-help__msg--bot { align-self: flex-start; background: var(--gold-soft); color: var(--ink); border-end-start-radius: 3px; }
.ai-help__msg--user { align-self: flex-end; background: var(--gold-2); color: #fff; border-end-end-radius: 3px; }
.ai-help__msg.is-thinking { opacity: .65; font-style: italic; }
.ai-help__msg.is-error { background: #fdeaea; color: #a12b2b; }
.ai-help__form { display: flex; align-items: center; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); }
.ai-help__input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: .5rem .9rem; font: inherit; min-width: 0; }
.ai-help__mic, .ai-help__send { border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-help__mic { width: 36px; height: 36px; background: var(--gold-soft); color: var(--gold-2); }
.ai-help__mic.is-listening { background: #a12b2b; color: #fff; animation: pulse 1.4s infinite; }
.ai-help__send { height: 36px; padding: 0 1rem; border-radius: 18px; background: var(--gold); color: var(--ink); font-weight: 700; }
.ai-help__send:hover { background: var(--gold-hover); color: #fff; }
.ai-help__send:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) {
  .ai-help { inset-block-end: 14px; inset-inline-end: 14px; }
  .ai-help__panel { inset-inline-end: -6px; inset-block-end: 68px; }
}

/* Compact "pick a date range, then download" widget embeddable in admin-authored
   service content via [[PRICE_HISTORY_DOWNLOAD]] — see price-history-download.php */
.ph-download { background: var(--ivory); border-radius: var(--radius); padding: 1.1rem; margin: 1.2rem 0; }
.ph-download__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.ph-download__row .field { margin-bottom: 0; flex: 1; min-width: 140px; }
.ph-download__row .ph-download-btn { flex-shrink: 0; white-space: nowrap; }
.ph-download__hint { display: block; margin-top: .6rem; }
