/*!
 * Midar (مدار) - School Management Platform
 * Copyright (c) 2026 Midar. All rights reserved.
 * Proprietary and confidential. Unauthorized copying or distribution is prohibited.
 */
.lg { max-width: 820px; margin: 0 auto; padding: 40px 18px 60px; line-height: 2; font-size: 16px; color: #26324B; }
.lg h1 { font-size: 32px; margin: 0 0 4px; color: var(--ink); }
.lg-meta { color: #6B7489; font-size: 14px; margin: 0 0 26px; }
.lg h2 { font-size: 20px; margin: 30px 0 8px; color: var(--ink); }
.lg p { margin: 0 0 12px; }
.lg ul { margin: 0 0 12px; padding-inline-start: 22px; }
.lg li { margin-bottom: 6px; }
.lg a { color: var(--acc); }
.lg .ltr { direction: ltr; unicode-bidi: isolate; }
.st-nav .brand img { height: 34px; }
.st-foot a { color: inherit; text-decoration: none; }
.st-foot a:hover { text-decoration: underline; }
@media (max-width: 640px) { .lg h1 { font-size: 26px; } .lg { padding-top: 26px; font-size: 15px; } }

.seo .crumbs { font-size: 14px; color: #6B7489; margin-bottom: 10px; }
.seo .crumbs a { color: inherit; text-decoration: none; } .seo .crumbs span { margin: 0 4px; }
.seo h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.4; margin-bottom: 12px; }
.seo .lead { font-size: 18px; color: #3B4658; }
.seo .cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
.seo .st-btn { text-decoration: none; }
.seo .st-btn.gold { color: #1E1503; } .seo .st-btn.out { color: var(--ink); }
.seo .faq { display: grid; gap: 10px; }
.seo-end { margin: 36px 0 10px; padding: 26px; border-radius: 18px; background: var(--soft, #F4F7FA); text-align: center; }
.seo-end h2 { margin-top: 0; }
.seo .more a { font-weight: 700; }
.st-foot { line-height: 2.2; }
@media (max-width: 640px) { .seo .lead { font-size: 16px; } .seo .cta .st-btn { flex: 1 1 100%; } }

/* Service status page */
.status-box { padding: 16px 18px; border-radius: 12px; margin: 18px 0; background: #f3f5f9; border: 1px solid #dde3ee; font-weight: 600; }
.status-box.ok { background: #ecf8f1; border-color: #b8e2c8; color: #17663a; }
.status-box.down { background: #fdf0ef; border-color: #f2c4bf; color: #9b2c22; }

/* Trust center */
.tc-note { padding: 14px 16px; border-radius: 12px; background: #fff8eb; border: 1px solid #f1d7a3; color: #5b4310; margin: 0 0 18px; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 8px 0 18px; }
.tc-badge { position: relative; padding: 18px 16px 14px; border-radius: 14px; border: 1px solid #dde3ee; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.tc-badge h3 { margin: 0; font-size: 17px; color: var(--ink); padding-inline-end: 44px; }
.tc-badge p { margin: 0; font-size: 14px; }
.tc-seal { position: absolute; inset-inline-end: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.tc-badge.on { border-color: #9fcfcb; box-shadow: 0 1px 0 #9fcfcb; }
.tc-badge.on .tc-seal { background: #0B7A75; color: #fff; }
.tc-badge.off { background: #fafbfc; }
.tc-badge.off .tc-seal { background: #e8ecf2; color: #6B7489; }
.tc-state { color: #6B7489; }
.tc-badge.on .tc-state { color: #0B7A75; font-weight: 600; }
.tc-badge .st-btn { align-self: flex-start; margin-top: 6px; text-decoration: none; font-size: 14px; }
.tc-internal { color: #8a93a6; font-size: 12px; margin-top: auto; padding-top: 6px; }
.tc-verify { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.tc-verify input { flex: 1 1 200px; padding: 10px 12px; border: 1px solid #cfd6e2; border-radius: 10px; font: inherit; }

/* Internal certificate (screen and print) */
.cert-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cert-doc { border: 2px solid #16244A; border-radius: 18px; padding: 34px 32px; background: #fff; position: relative; margin: 10px 0 20px; }
.cert-doc::before { content: ""; position: absolute; inset: 8px; border: 1px solid #9FCFCB; border-radius: 12px; pointer-events: none; }
.cert-doc.revoked, .cert-doc.expired { opacity: .75; }
.cert-doc header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #e3e8f0; padding-bottom: 14px; }
.cert-logo { height: 54px; }
.cert-eyebrow { margin: 0; color: #0B7A75; font-weight: 700; font-size: 14px; }
.cert-issuer { margin: 0; font-weight: 800; letter-spacing: 2px; color: #16244A; direction: ltr; text-align: end; }
.cert-doc h1 { text-align: center; margin: 24px 0 10px; font-size: 28px; }
.cert-scope { text-align: center; color: #3B4658; max-width: 640px; margin: 0 auto 20px !important; }
.cert-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 22px; }
.cert-facts dt { color: #6B7489; } .cert-facts dd { margin: 0; font-weight: 600; }
.cert-doc footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid #e3e8f0; padding-top: 14px; font-size: 13px; }
.cert-doc footer p { margin: 0 0 4px; }
.cert-url { font-weight: 700; word-break: break-all; }
.cert-note { color: #6B7489; max-width: 520px; }
.cert-qr { width: 104px; height: 104px; flex: none; }
@media (max-width: 640px) { .cert-doc { padding: 24px 18px; } .cert-facts { grid-template-columns: 1fr; gap: 2px; } .cert-facts dd { margin-bottom: 8px; } .cert-qr { width: 84px; height: 84px; } }
@media print {
  .st-nav, .st-foot, .no-print { display: none !important; }
  body, .st { background: #fff !important; }
  .lg { padding: 0 !important; max-width: none !important; }
  .cert-doc { margin: 0; break-inside: avoid; opacity: 1; }
  @page { size: A4; margin: 14mm; }
}

/* About page identity card */
.ab-id { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 20px; border: 1px solid #dde3ee; border-radius: 16px; background: #fff; margin: 6px 0 10px; }
.ab-logo { height: 64px; }
.ab-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; flex: 1 1 260px; min-width: 0; }
.ab-facts dt { color: #6B7489; } .ab-facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .ab-facts { grid-template-columns: minmax(0, 1fr); gap: 0; } .ab-facts dd { margin-bottom: 10px; } }
.faq-group { margin-top: 22px; }
.faq-group details { border: 1px solid #dde3ee; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.faq-group summary { font-weight: 700; cursor: pointer; }
.faq-group details p { margin: 8px 0 0; }
.inq-box { padding: 0; margin-bottom: 8px; }
.st-foot-mail a { color: inherit; }

/* ---------- Service center: status, what's new, help center, certificates ---------- */
.sc-overall { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: 14px; margin: 16px 0 8px; font-weight: 700; font-size: 18px; border: 1px solid #dde3ee; background: #f3f5f9; }
.sc-overall .dot, .sc-row .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #9aa4b5; }
.sc-s-operational .dot, .sc-s-not_configured .dot { background: #1f9d55; } .sc-s-degraded .dot { background: #E8A33D; }
.sc-s-maintenance .dot { background: #3b6fd8; } .sc-s-outage .dot { background: #d64535; } .sc-s-unknown .dot { background: #9aa4b5; }
.sc-overall.sc-s-operational { background: #ecf8f1; border-color: #b8e2c8; color: #17663a; }
.sc-overall.sc-s-degraded { background: #fff8eb; border-color: #f1d7a3; color: #6b4a0c; }
.sc-overall.sc-s-maintenance { background: #eef3fd; border-color: #c4d4f5; color: #234a9b; }
.sc-overall.sc-s-outage { background: #fdf0ef; border-color: #f2c4bf; color: #9b2c22; }
.sc-list { display: block; border: 1px solid #dde3ee; border-radius: 14px; overflow: hidden; margin: 12px 0 20px; }
.sc-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-top: 1px solid #edf0f5; align-items: center; }
.sc-row:first-child { border-top: 0; }
.sc-row b { font-size: 16px; } .sc-row .sv { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.sc-row small { grid-column: 1 / -1; color: #6B7489; font-size: 13px; line-height: 1.7; }
.sc-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef1f6; color: #4b556a; margin-inline-start: 6px; font-weight: 600; }
.sc-inc { border: 1px solid #dde3ee; border-radius: 14px; padding: 14px 16px; margin: 10px 0; background: #fff; }
.sc-inc h3 { margin: 0 0 4px; font-size: 16px; } .sc-inc .meta { color: #6B7489; font-size: 13px; margin: 0 0 8px; }
.sc-inc ol { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid #e4e9f0; }
.sc-inc li { padding: 4px 12px 8px; font-size: 14px; line-height: 1.8; } .sc-inc li b { color: #16244A; }
.sc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; align-items: center; }
.sc-filters input, .sc-filters select { font: inherit; padding: 9px 12px; border: 1px solid #CBD3DF; border-radius: 10px; background: #fff; min-width: 0; }
.sc-filters input[type=search] { flex: 1 1 220px; }
.sc-chip { font: inherit; border: 1px solid #CBD3DF; background: #fff; color: #16244A; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; text-decoration: none; }
.sc-chip.on { background: #16244A; color: #fff; border-color: #16244A; }
.sc-upd { border: 1px solid #dde3ee; border-radius: 16px; padding: 18px; margin: 0 0 14px; background: #fff; }
.sc-upd.pin { border-color: #E8A33D; box-shadow: 0 0 0 1px #E8A33D inset; }
.sc-upd h2 { margin: 6px 0 6px; font-size: 19px; } .sc-upd .meta { color: #6B7489; font-size: 13px; }
.sc-upd img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 10px 0; background: #f3f5f9; }
.sc-upd .body { white-space: pre-wrap; line-height: 1.9; }
.sc-cat { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E6F4F3; color: #0B7A75; }
.sc-cat.fix { background: #fff3e0; color: #8a5a00; } .sc-cat.security { background: #fdecea; color: #9b2c22; } .sc-cat.improvement { background: #eef3fd; color: #234a9b; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 6px 0 24px; }
.sc-vid { border: 1px solid #dde3ee; border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-align: start;
  font: inherit; color: inherit; padding: 0; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.sc-vid:hover { box-shadow: 0 10px 26px rgba(22,36,74,.12); transform: translateY(-2px); }
.sc-vid .th { position: relative; aspect-ratio: 16 / 9; background: #e8ecf2; }
.sc-vid .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-vid .th .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 38px; border-radius: 10px; background: rgba(214,40,40,.92); color: #fff; display: grid; place-items: center; font-size: 18px; }
.sc-vid .th .pl { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.sc-vid .tx { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.sc-vid h3 { margin: 0; font-size: 16px; line-height: 1.6; } .sc-vid p { margin: 0; color: #5A6478; font-size: 14px; line-height: 1.7; }
.sc-vid small { color: #6B7489; font-size: 12px; }
dialog.sc-player { border: 0; border-radius: 16px; padding: 0; width: min(960px, 96vw); background: #000; }
dialog.sc-player::backdrop { background: rgba(10,16,32,.75); }
dialog.sc-player .frame { aspect-ratio: 16 / 9; width: 100%; } dialog.sc-player iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog.sc-player .bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; background: #101828; color: #fff; }
dialog.sc-player .bar a, dialog.sc-player .bar button { color: #fff; background: none; border: 1px solid #475467; border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; text-decoration: none; font-size: 14px; }
.sc-empty { padding: 26px 18px; text-align: center; color: #6B7489; border: 1px dashed #CBD3DF; border-radius: 14px; background: #fafbfc; }
@media (max-width: 640px) { .sc-row { grid-template-columns: 1fr; } .sc-overall { font-size: 16px; } .sc-grid { grid-template-columns: 1fr; } }
/* Buttons inside page text keep their own colours, not the link colour. */
.lg a.st-btn { text-decoration: none; }
.lg a.st-btn.pri, .lg a.st-btn.pri:hover { color: #fff; }
.lg a.st-btn.out { color: var(--ink, #16244A); }
