/* «شكر وتقدير» — the public page (2026-10-23, approved /preview/thanks.html). Served by the small public server AND drawn as the
   live preview in the dashboard (thanks.html), so it is self-contained (no ui.css) and scoped to .thx. Fonts: /lib/fonts (the
   small server keeps the same path). Colours: the palette's light/dark pairs set by thanks/render.js. */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/lib/fonts/plex-arabic-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/lib/fonts/plex-arabic-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url(/lib/fonts/plex-arabic-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(/lib/fonts/plex-arabic-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(/lib/fonts/plex-arabic-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-21FF; }
@font-face { font-family: "Readex Pro"; font-weight: 600; font-display: swap; src: url(/lib/fonts/readex-600.woff2) format("woff2"); }

.thx {
  --paper: #f5f3ee; --surface: #fff; --ink: #15201b; --ink-2: #4c5852; --ink-3: #8a938e; --line: #e4dfd4;
  --b: var(--b-l); --b2: var(--b2-l); --bs: var(--bs-l); --ac: var(--ac-l);
  --disp: "Readex Pro", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --lift: 0 14px 34px color-mix(in srgb, var(--b) 9%, transparent);
  font-family: "Plex Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; font-size: 15px; line-height: 1.75;
  color: var(--ink); direction: rtl; text-align: right; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 480px at 50% -160px, color-mix(in srgb, var(--b) 14%, var(--paper)), transparent 72%) no-repeat, var(--paper);
  min-height: 100%; color-scheme: light; container: thx / inline-size;
}
.thx[data-mode="dark"] {
  --paper: #111613; --surface: #181e1a; --ink: #eef1ec; --ink-2: #b4bdb7; --ink-3: #7d877f; --line: #29312c;
  --b: var(--b-d); --b2: var(--b2-d); --bs: var(--bs-d); --ac: var(--ac-d); --lift: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) { .thx[data-mode="auto"] {
  --paper: #111613; --surface: #181e1a; --ink: #eef1ec; --ink-2: #b4bdb7; --ink-3: #7d877f; --line: #29312c;
  --b: var(--b-d); --b2: var(--b2-d); --bs: var(--bs-d); --ac: var(--ac-d); --lift: none; color-scheme: dark;
} }
.thx *, .thx *::before, .thx *::after { box-sizing: border-box; }
.thx-ic { display: inline-grid; place-items: center; flex: none; }
.thx-ic svg { width: 100%; height: 100%; }

/* top strip */
.thx-top { max-width: 1120px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; gap: 10px; }
.thx-mark { width: 38px; height: 38px; border-radius: 28%; background: var(--b-l); color: #fff; display: inline-grid; place-items: center;
  font-weight: 700; font-size: 19px; line-height: 1; flex: none; }
.thx-mark.sm { width: 20px; height: 20px; font-size: 11.5px; vertical-align: -5px; }
.thx-sys b { display: block; font-family: var(--disp); font-weight: 600; font-size: 15px; line-height: 1.2; }
.thx-sys span { font-size: 12.5px; color: var(--ink-3); }

/* hero */
.thx-hero { position: relative; overflow: hidden; max-width: 1120px; margin: 16px auto 0; border-radius: 30px; color: #fff;
  background: linear-gradient(135deg, var(--b2-l), var(--b-l) 55%, color-mix(in srgb, var(--b-l) 70%, var(--ac-l)));
  box-shadow: var(--lift); margin-inline: 20px; }
@container thx (min-width: 1160px) { .thx-hero { margin-inline: auto; } }
.thx.pat .thx-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M28 4l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Ccircle cx='28' cy='28' r='6'/%3E%3C/g%3E%3C/svg%3E"); }
.thx-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.thx-ring.r1 { width: 420px; height: 420px; inset-inline-start: -140px; top: -180px; }
.thx-ring.r2 { width: 300px; height: 300px; inset-inline-end: -90px; bottom: -150px; border-width: 26px; border-color: rgba(255, 255, 255, .06); }
.thx-hero-in { position: relative; padding: 46px 44px 40px; max-width: 760px; }
.thx-eb { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); }
.thx-eb .thx-ic { width: 15px; height: 15px; color: #ffd98a; }
.thx-hero h1 { font-family: var(--disp); font-weight: 600; font-size: clamp(32px, 5.2cqi, 52px); line-height: 1.25; margin: 16px 0 6px; }
.thx-quote { font-family: var(--disp); font-weight: 600; font-size: clamp(17px, 2.2cqi, 21px); color: #ffe2a6; margin: 0 0 8px; }
.thx-intro { margin: 0; font-size: 16px; color: rgba(255, 255, 255, .88); max-width: 620px; }
.thx-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.thx-stats > div { min-width: 132px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.thx-stats b { display: block; font-family: var(--disp); font-weight: 600; font-size: 22px; line-height: 1.3; }
.thx-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .8); }

/* sections */
.thx-main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 10px; }
.thx-sec { margin-top: 38px; }
.thx-sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.thx-ic.sec { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--bs); color: var(--b); }
.thx-sec.lead .thx-ic.sec { background: color-mix(in srgb, var(--ac) 18%, var(--surface)); color: var(--ac); }
.thx-sec-hd h2 { margin: 0; font-family: var(--disp); font-weight: 600; font-size: 21px; }
.thx-count { font-size: 12px; font-weight: 600; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--bs); color: var(--b); }

.thx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.thx-leads { display: grid; gap: 14px; }
.thx-card { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--b) 14%, var(--line)); box-shadow: var(--lift); transition: transform .2s, border-color .2s;
  animation: thx-in .5s both; animation-delay: calc(var(--i) * 60ms); }
.thx-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--b) 40%, var(--line)); }
.thx-card h3 { margin: 2px 0 4px; font-family: var(--disp); font-weight: 600; font-size: 17.5px; line-height: 1.4; }
.thx-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.thx-who { min-width: 0; }
.thx-role { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--bs); color: var(--b); }
.thx-card.lead { padding: 26px 26px 24px; gap: 22px; align-items: center;
  border: 1.5px solid color-mix(in srgb, var(--ac) 55%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 9%, var(--surface)), var(--surface) 60%); }
.thx-card.lead h3 { font-size: 23px; }
.thx-card.lead p { font-size: 15px; }
.thx-card.lead .thx-role { background: color-mix(in srgb, var(--ac) 16%, var(--surface)); color: color-mix(in srgb, var(--ac) 75%, var(--ink)); }
.thx-ribbon { position: absolute; top: 14px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  font-weight: 600; color: color-mix(in srgb, var(--ac) 80%, var(--ink)); }
.thx-ribbon .thx-ic { width: 16px; height: 16px; }

/* avatars: the initial on a tone of the palette (photos are optional) */
.thx-av { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font-family: var(--disp); font-weight: 600; font-size: 22px; color: #fff; background: var(--b-l);
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px color-mix(in srgb, var(--b) 30%, transparent); }
.thx-av[data-t="1"] { background: color-mix(in srgb, var(--b-l) 72%, var(--ac-l)); }
.thx-av[data-t="2"] { background: var(--b2-l); }
.thx-av[data-t="3"] { background: color-mix(in srgb, var(--b-l) 55%, #2d6aa8); }
.thx-av[data-t="4"] { background: color-mix(in srgb, var(--ac-l) 85%, #000); }
.thx-av.big { width: 96px; height: 96px; font-size: 38px; background: linear-gradient(135deg, var(--ac-l), color-mix(in srgb, var(--ac-l) 60%, var(--b-l)));
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px color-mix(in srgb, var(--ac) 55%, transparent); }
.thx-av img { width: 100%; height: 100%; object-fit: cover; }
.thx-av .thx-ic { width: 52%; height: 52%; }
.thx-av.big .thx-ic { width: 46%; height: 46%; }

/* the end */
.thx-end { max-width: 1120px; margin: 46px auto 0; padding: 30px 20px 40px; text-align: center; border-top: 1px solid var(--line); }
.thx-ic.heart { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--bs); color: var(--b); }
.thx-end h4 { font-family: var(--disp); font-weight: 600; font-size: 19px; margin: 12px 0 6px; }
.thx-end p { margin: 4px 0; font-size: 12.5px; color: var(--ink-3); }
.thx-upd { font-size: 12px; }

@keyframes thx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.thx.still .thx-card { animation: none; }
@media (prefers-reduced-motion: reduce) { .thx-card { animation: none; transition: none; } }

/* container query, not media: the dashboard's live preview draws the page at phone width inside a computer screen */
@container thx (max-width: 640px) {
  .thx-top { padding: 14px 16px 0; }
  .thx-hero { margin-inline: 12px; border-radius: 24px; }
  .thx-hero-in { padding: 30px 22px 26px; }
  .thx-stats > div { min-width: 0; flex: 1 1 30%; padding: 8px 10px; }
  .thx-stats b { font-size: 18px; }
  .thx-main { padding: 0 12px; }
  .thx-card.lead { flex-direction: column; align-items: flex-start; padding: 22px 18px 18px; }
  .thx-card.lead h3 { font-size: 20px; }
  .thx-ribbon { top: 18px; }
}
.thx-none { text-align: center; color: var(--ink-3); margin: 40px 0; }
