/* Product catalog pages. The lab's header and footer frame every page; everything between them
   wears the product's own theme. All colours come from the --c-* tokens below, set per theme. */
.catalog-page{
 --gutter:max(5vw,calc((100vw - 1280px)/2));
 --c-bg:#f8f7f1;--c-bg-image:none;--c-surface:#fffef9;--c-surface-2:#ffffff;--c-ink:#18362e;--c-muted:#566e64;--c-line:#cddcd3;
 --c-accent:color-mix(in srgb,var(--project) 82%,#18362e);--c-soft:var(--project-soft);
 --c-btn:#c64c00;--c-btn-hover:#a63e00;--c-btn-ink:#fff;--c-link:#075b43;
 --c-hero:radial-gradient(70% 90% at 15% 30%,var(--project-soft),transparent 70%),#f0f5ee;
 --c-band:#075b43;--c-band-ink:#fff;--c-band-muted:#cfe3d8;--c-band-line:#ffffff26;--c-band-number:#fff;
 --c-frame:#f3f1ea;--c-frame-dot:#d5d2c6;--c-shadow:0 22px 60px #0e413117;--c-shot-shadow:0 24px 50px #0e413124;
 --c-em:var(--c-accent);--c-em-image:none;
 background:var(--c-bg);background-image:var(--c-bg-image)
}
.catalog-page main{color:var(--c-ink)}
.catalog-page main p{color:var(--c-muted)}
.catalog-page main h2{color:var(--c-ink)}
.catalog-page main .eyebrow{color:var(--c-accent)}.catalog-page main .eyebrow i{color:var(--c-accent)}

/* lab header (stays the lab's) */
.catalog-header{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;height:84px;padding:0 var(--gutter);background:#f8f7f1f2;border-bottom:1px solid #cddcd3;backdrop-filter:blur(14px)}
.catalog-header .brand{width:auto;height:auto;justify-self:start}.catalog-header .brand img{width:90px;height:66px;object-fit:contain}
.catalog-back,.catalog-visit{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px;border-radius:12px;font-size:13px;font-weight:700;color:#075b43}
.catalog-back:hover{background:#dcefe5}
.catalog-visit{border:1px solid #075b43}.catalog-visit:hover{background:#dcefe5}

/* hero */
.cat-hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);gap:56px;align-items:center;padding:64px var(--gutter) 80px;background:var(--c-hero)}
.cat-id{display:flex;align-items:center;gap:14px}.cat-id strong{display:block;font-size:20px;font-weight:900;color:var(--c-ink);line-height:1.4}
.cat-logo{width:64px;height:64px;border-radius:18px;background:#fff;display:grid;place-items:center;box-shadow:0 10px 26px #0000001f;flex-shrink:0;overflow:hidden}.cat-logo img{width:52px;height:52px;object-fit:contain}
.cat-kicker{font-size:12px;font-weight:700;color:var(--c-muted)}
.cat-hero h1{font-size:clamp(40px,4.8vw,68px);font-weight:900;line-height:1.45;margin:26px 0 16px;color:var(--c-ink)}
.cat-hero h1 em{font-style:normal;color:var(--c-em);background-image:var(--c-em-image);-webkit-background-clip:text;background-clip:text}
.cat-lead{font-size:16px;max-width:60ch;margin:0}
.cat-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:22px 0 0}.cat-chips li{font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;background:var(--c-surface);border:1px solid var(--c-line);color:var(--c-ink)}
.cat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:30px}
.cat-primary{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:10px 22px;border-radius:12px;background:var(--c-btn);color:var(--c-btn-ink);font-size:14px;font-weight:700}.cat-primary:hover{background:var(--c-btn-hover)}
.cat-status{display:inline-flex;align-items:center;gap:9px;padding:6px 14px;border-radius:999px;background:var(--c-surface);border:1px solid var(--c-line);font-size:13px;font-weight:700;color:var(--c-ink);line-height:1.7}
.cat-status__dot{width:9px;height:9px;border-radius:50%;background:#5a6f8f;flex-shrink:0}
.cat-status--live .cat-status__dot{background:#16a05d;box-shadow:0 0 0 4px #16a05d2e}.cat-status--building .cat-status__dot{background:#d07a00;box-shadow:0 0 0 4px #d07a002e}

.cat-stage{position:relative;padding-bottom:28px}
.cat-browser{border-radius:16px;overflow:hidden;background:var(--c-surface-2);border:1px solid var(--c-line);box-shadow:var(--c-shadow),0 40px 80px #0000001a}
.cat-browser__bar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:var(--c-frame);border-bottom:1px solid var(--c-line)}.cat-browser__bar i{width:9px;height:9px;border-radius:50%;background:var(--c-frame-dot)}.cat-browser__bar span{margin-inline-start:auto;font-size:11px;color:var(--c-muted);background:var(--c-surface-2);border-radius:6px;padding:1px 10px}
.cat-browser img{width:100%;height:auto;aspect-ratio:1400/900;object-fit:cover;object-position:top}
.cat-phone{position:absolute;left:-22px;bottom:0;width:27%;border-radius:26px;border:6px solid #1d2229;background:#000;overflow:hidden;box-shadow:0 30px 60px #00000040}.cat-phone img{width:100%;height:auto;aspect-ratio:390/700;object-fit:cover;object-position:top}

/* facts band */
.cat-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--c-band);color:var(--c-band-ink);padding:0 var(--gutter);border-block:1px solid var(--c-band-line)}
.cat-facts div{padding:28px 24px;border-inline-start:1px solid var(--c-band-line)}.cat-facts div:first-child{border-inline-start:0}
.cat-facts b{display:block;font-size:40px;font-weight:900;line-height:1.2;color:var(--c-band-number)}.cat-facts span{font-size:13px;color:var(--c-band-muted)}

/* sections */
.cat-section{padding:88px var(--gutter)}
.cat-head{margin-bottom:36px}
.cat-why{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:28px 56px}
.cat-why__cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cat-why__cols article{background:var(--c-surface);border:1px solid var(--c-line);border-radius:18px;padding:24px}.cat-why__cols p{margin:8px 0 0;font-size:14px}
.cat-label{display:inline-block;font-size:12px;font-weight:900;color:var(--c-accent);background:var(--c-soft);border-radius:999px;padding:2px 12px}
.cat-journey{grid-column:1/-1;list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));counter-reset:step}
.cat-journey li{position:relative;padding:26px 14px 0 10px;border-top:2px solid var(--c-line);counter-increment:step}
.cat-journey li::before{content:counter(step,persian);position:absolute;top:-15px;right:14px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--c-bg);border:2px solid var(--c-accent);color:var(--c-accent);font-size:13px;font-weight:900}
.cat-journey li:last-child{border-top-color:var(--c-accent)}
.cat-journey strong{display:block;font-size:16px;font-weight:900;color:var(--c-ink)}.cat-journey span{display:block;font-size:13px;color:var(--c-muted);line-height:1.8}

.cat-features{background:var(--c-surface);border-block:1px solid var(--c-line)}
.cat-feature{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:52px;align-items:center;padding:40px 0;border-bottom:1px solid var(--c-line)}
.cat-feature:last-child{border-bottom:0}
.cat-feature:nth-of-type(even){grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr)}.cat-feature:nth-of-type(even) .cat-feature__copy{order:2}
.cat-feature__eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--c-accent)}.cat-feature__eyebrow i{font-size:20px}
.cat-feature h3{font-size:26px;font-weight:900;color:var(--c-ink);margin:6px 0 10px}
.cat-feature p{margin:0;font-size:15px}
.cat-feature ul{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:8px}
.cat-feature li{position:relative;padding-right:26px;font-size:14px;color:var(--c-ink)}
.cat-feature li::before,.cat-feature-card li::before{content:"";position:absolute;right:3px;top:.6em;width:11px;height:6px;border-left:2px solid var(--c-accent);border-bottom:2px solid var(--c-accent);transform:rotate(-45deg)}
.cat-shot{border-radius:14px;overflow:hidden;border:1px solid var(--c-line);box-shadow:var(--c-shot-shadow);background:var(--c-surface-2)}
.cat-shot img{width:100%;height:auto;aspect-ratio:1400/900;object-fit:cover;object-position:top}

.cat-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cat-cards article{background:var(--c-surface);border:1px solid var(--c-line);border-top:4px solid var(--c-accent);border-radius:18px;padding:24px}
.cat-cards i{font-size:30px;color:var(--c-accent)}.cat-cards h3{font-size:19px;font-weight:900;margin:8px 0 4px;color:var(--c-ink)}.cat-cards p{margin:0;font-size:14px}

.cat-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:0}
.cat-team,.cat-state{background:var(--c-surface);border:1px solid var(--c-line);border-radius:22px;padding:30px}
.cat-team h2,.cat-state h2{font-size:clamp(24px,2.4vw,32px)}
.cat-team ul{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:12px}
.cat-team li{display:flex;align-items:center;gap:14px}
.cat-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--c-btn);color:var(--c-btn-ink);font-weight:900;font-size:18px;flex-shrink:0}
.cat-team strong{display:block;font-size:16px;color:var(--c-ink);line-height:1.5}.cat-team li span:not(.cat-avatar){font-size:13px;color:var(--c-muted)}
.cat-note{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--c-line);font-size:12px}
.cat-state h2 .cat-status{font-size:15px;margin-top:6px}
.cat-state dl{margin:22px 0 0;display:grid;gap:16px}.cat-state dt{font-size:12px;font-weight:900;color:var(--c-accent)}.cat-state dd{margin:2px 0 0;font-size:14px;color:var(--c-ink)}

.cat-close{padding:80px var(--gutter);text-align:center;background:var(--c-hero);border-top:1px solid var(--c-line)}
.cat-close__note{margin:10px 0 0;font-size:14px}.cat-close__note a{font-weight:700;color:var(--c-link)}
.cat-url{display:inline-block;margin-top:18px;font-size:20px;font-weight:900;color:var(--c-link);padding:8px 24px;border:1px solid currentColor;border-radius:999px}.cat-url:hover{background:var(--c-soft)}
.cat-others{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px 18px;margin-top:34px;font-size:13px}
.cat-others span{color:var(--c-muted)}.cat-others a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--c-link);min-height:44px}.cat-others a:hover{color:var(--c-ink)}

/* projects still being built: a concept panel instead of screenshots, and feature cards */
.cat-concept{position:relative;min-height:420px;border-radius:28px;overflow:hidden;display:grid;place-items:center;align-content:center;gap:26px;padding:56px 28px 36px;background:radial-gradient(circle at 50% 38%,var(--c-surface-2) 0 18%,transparent 19%),repeating-radial-gradient(circle at 50% 38%,transparent 0 46px,color-mix(in srgb,var(--c-accent) 16%,transparent) 46px 47px),var(--c-soft);border:1px solid var(--c-line);box-shadow:var(--c-shadow)}
.cat-concept__tag{position:absolute;top:18px;right:18px;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px;background:var(--c-surface);border:1px dashed var(--c-accent);color:var(--c-ink)}
.cat-concept__logo{width:150px;height:150px;border-radius:36px;background:#fff;display:grid;place-items:center;box-shadow:0 26px 60px #00000024}.cat-concept__logo img{width:116px;height:116px;object-fit:contain}
.cat-concept__icon{position:absolute;top:24%;left:18%;font-size:44px;color:var(--c-accent);opacity:.55}
.cat-concept__flow{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;counter-reset:f}
.cat-concept__flow li{counter-increment:f;font-size:12px;font-weight:700;color:var(--c-ink);background:var(--c-surface);border:1px solid var(--c-line);border-radius:999px;padding:4px 12px}
.cat-concept__flow li::before{content:counter(f,persian) ". ";color:var(--c-accent)}
.cat-stage-note{display:flex;gap:10px;align-items:flex-start;max-width:760px;margin:16px 0 0;padding:12px 16px;border-radius:14px;background:var(--c-soft);color:var(--c-ink)!important;font-size:14px}.cat-stage-note i{font-size:20px;color:var(--c-accent);margin-top:3px}
.cat-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cat-feature-card{background:var(--c-surface-2);border:1px solid var(--c-line);border-radius:20px;padding:26px}
.cat-feature-card>i{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--c-soft);color:var(--c-accent);font-size:28px;margin-bottom:14px}
.cat-feature-card h3{font-size:21px;font-weight:900;color:var(--c-ink);margin:4px 0 6px}.cat-feature-card p{margin:0;font-size:14px}
.cat-feature-card ul{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:6px}
.cat-feature-card li{position:relative;padding-right:24px;font-size:13px;color:var(--c-ink)}

/* ── themes: each product's own palette ── */
/* DotLeague: its light theme — paper background, gold as the trophy colour (site-server/static/css/app.css) */
.theme-dotleague{
 --c-bg:#f6f6f3;--c-surface:#ffffff;--c-surface-2:#ffffff;--c-ink:#16181c;--c-muted:#5c6169;--c-line:#e4e4de;
 --c-accent:#7d5a00;--c-soft:#fbf1d3;--c-btn:#e0ad1f;--c-btn-hover:#c99a14;--c-btn-ink:#1c1504;--c-link:#7d5a00;
 --c-hero:radial-gradient(60% 80% at 20% 25%,#fbf1d3,transparent 70%),#f1f1ed;
 --c-band:#e0ad1f;--c-band-ink:#1c1504;--c-band-muted:#4a3a0c;--c-band-line:#1c150426;--c-band-number:#1c1504;
 --c-frame:#f1f1ed;--c-frame-dot:#d2d2cb;--c-shadow:0 6px 24px rgba(20,22,26,.08);--c-shot-shadow:0 24px 50px rgba(20,22,26,.14);
 --c-em:#b8870a}
/* Rahbalad: light lavender page with a dotted grid, violet primary and teal accent (counseling/css/style.css) */
.theme-rahbalad{
 --c-bg:#fdfdff;--c-bg-image:radial-gradient(rgba(100,100,120,.14) 1px,transparent 1px);--c-surface:#ffffff;--c-surface-2:#ffffff;--c-ink:#172335;--c-muted:#5f6a7d;--c-line:#e5e4ec;
 --c-accent:#5b3fe0;--c-soft:#f0edff;--c-btn:#6548e8;--c-btn-hover:#4930c7;--c-btn-ink:#fff;--c-link:#4930c7;
 --c-hero:radial-gradient(circle at 90% 8%,rgba(101,72,232,.12),transparent 32%),radial-gradient(circle at 8% 60%,rgba(18,169,160,.12),transparent 34%);
 --c-band:linear-gradient(110deg,#4930c7,#6548e8 55%,#12a9a0);--c-band-ink:#fff;--c-band-muted:#e6e1ff;--c-band-line:#ffffff33;--c-band-number:#fff;
 --c-frame:#f5f4fb;--c-frame-dot:#d9d6ea;--c-shadow:0 20px 55px rgba(46,38,87,.12);--c-shot-shadow:0 30px 80px rgba(67,48,160,.14);
 --c-em:transparent;--c-em-image:linear-gradient(90deg,#12a9a0,#6548e8 70%);background-size:22px 22px}
/* Gowd: terracotta and sand from its mark */
.theme-gowd{
 --c-bg:#fbf6f1;--c-surface:#fffaf5;--c-surface-2:#ffffff;--c-ink:#2a1a12;--c-muted:#6f5848;--c-line:#ead9c9;
 --c-accent:#9b411b;--c-soft:#f3e2d3;--c-btn:#9b411b;--c-btn-hover:#7c3214;--c-btn-ink:#fff;--c-link:#8a3917;
 --c-hero:radial-gradient(60% 80% at 20% 30%,#ecd3bd,transparent 70%),#f7ede4;
 --c-band:#3a2117;--c-band-ink:#fff;--c-band-muted:#e6cdb8;--c-band-line:#ffffff1f;--c-band-number:#f0a477}
/* Fanaptech: industrial orange on graphite */
.theme-fanaptech-quality-control{
 --c-bg:#f7f7f6;--c-surface:#ffffff;--c-surface-2:#ffffff;--c-ink:#1f2328;--c-muted:#5b6169;--c-line:#e4e4e2;
 --c-accent:#c25a05;--c-soft:#fff1e3;--c-btn:#d15f04;--c-btn-hover:#b05003;--c-btn-ink:#fff;--c-link:#b05003;
 --c-hero:radial-gradient(60% 80% at 20% 30%,#ffe2c4,transparent 70%),#f3f2f0;
 --c-band:#23272e;--c-band-ink:#fff;--c-band-muted:#c3c7cd;--c-band-line:#ffffff1f;--c-band-number:#ff8a2a}
/* Khatam student bank: the CE association's navy */
.theme-khatam-student-directory{
 --c-bg:#f6f8fd;--c-surface:#ffffff;--c-surface-2:#ffffff;--c-ink:#13204a;--c-muted:#56617e;--c-line:#dde3f2;
 --c-accent:#284195;--c-soft:#e8efff;--c-btn:#284195;--c-btn-hover:#1d3175;--c-btn-ink:#fff;--c-link:#284195;
 --c-hero:radial-gradient(60% 80% at 20% 30%,#dfe8ff,transparent 70%),#eef2fb;
 --c-band:#284195;--c-band-ink:#fff;--c-band-muted:#cfdaf7;--c-band-line:#ffffff2e;--c-band-number:#fff}

@media(max-width:760px){.cat-feature-grid{grid-template-columns:1fr}.cat-concept{min-height:340px}.cat-concept__logo{width:120px;height:120px}.cat-concept__logo img{width:92px;height:92px}}
@media(max-width:960px){
 .cat-hero,.cat-why,.cat-feature,.cat-feature:nth-of-type(even),.cat-bottom{grid-template-columns:1fr}
 .cat-feature:nth-of-type(even) .cat-feature__copy{order:0}
 .cat-hero{gap:36px;padding-top:44px}.cat-feature{gap:24px}
 .cat-journey{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:30px}
 .cat-cards{grid-template-columns:1fr}
 .cat-phone{left:-6px;width:26%}
}
@media(max-width:760px){
 .catalog-header{height:72px;padding:0 16px;gap:8px;grid-template-columns:auto 1fr auto}
 .catalog-header .brand img{width:70px;height:52px}
 .catalog-back{justify-self:start;padding:8px 6px}.catalog-visit{padding:8px 12px;font-size:12px}
 .catalog-back span{font-size:12px}
 .cat-hero,.cat-section,.cat-close{padding-left:16px;padding-right:16px}
 .cat-facts{grid-template-columns:1fr;padding:0 16px}.cat-facts div{border-inline-start:0;border-top:1px solid var(--c-band-line);padding:18px 4px}.cat-facts div:first-child{border-top:0}
 .cat-why__cols{grid-template-columns:1fr}
 .cat-journey{grid-template-columns:1fr}
 .cat-section{padding-top:60px;padding-bottom:60px}.cat-bottom{padding-top:0}
 .cat-feature h3{font-size:22px}
 .cat-team,.cat-state{padding:22px}
}
@media(max-width:420px){.catalog-visit span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.catalog-visit{width:44px;justify-content:center;padding:0}}
