:root {
  color-scheme: light;
  font-family: "SST Arabic", Tahoma, Arial, sans-serif;
  font-size: 100%;
  --background: #f4f7f5;
  --surface: #fff;
  --ink: #172d27;
  --muted: #536962;
  --green: #075d46;
  --line: #dce7e1;
  --soft: #eaf4ef;
  --shadow: 0 3px 10px #193f2d08;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.2rem; }
body { margin: 0; background: var(--background); color: var(--ink); line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #278a6f; outline-offset: 3px; }
.icon { display: block; width: 1.25rem; height: 1.25rem; flex: none; }
.shell { width: min(100% - 4rem, 76rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; top: -8rem; z-index: 5; background: white; padding: 0.65rem 1rem; border-radius: 0.5rem; }
.skip:focus { top: 0.5rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { flex: none; display: grid; place-items: center; }
.brand img { display: block; width: 13.2rem; height: auto; }
.section-nav { align-self: stretch; display: flex; align-items: stretch; gap: 1.55rem; white-space: nowrap; }
.section-nav a { position: relative; display: grid; align-items: center; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.section-nav a[aria-current], .section-nav a:hover { color: var(--green); }
.section-nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #218267; }
.header-tools { display: flex; flex: none; align-items: center; gap: 0.65rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 16.1rem; margin-top: 1.7rem; border-radius: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.15rem clamp(1.5rem, 4.3vw, 3.4rem); color: white; background: linear-gradient(114deg, #176a54 0%, #0b493d 45%, #103d33 100%); }
.hero::before { position: absolute; content: ""; z-index: -1; inset-block: 0; inset-inline-end: 0; width: min(52%, 35rem); background: repeating-radial-gradient(ellipse at 18% 59%, transparent 0 27px, #99e5bc36 28px, transparent 29px 42px); mask-image: linear-gradient(to right, black 25%, transparent 100%); }
.hero::after { position: absolute; content: ""; z-index: -1; inset-block: 0; inset-inline-end: 0; width: 42%; background: radial-gradient(ellipse at 5% 85%, #8bd2a923, transparent 75%); }
.branch { color: #c9eedc; font-size: 0.93rem; font-weight: 700; }
.branch span { margin-inline: 0.25rem; color: #a9d6c2; }
h1 { font-size: clamp(2rem, 4.2vw, 3.28rem); line-height: 1.3; letter-spacing: -0.027em; margin-block: 0.5rem 0.55rem; }
.hero-copy { color: #e0f2ea; font-size: clamp(0.96rem, 1.5vw, 1.09rem); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.58rem 1.05rem; background: #def7e7; border-radius: 0.625rem; margin-top: 1.3rem; color: #104a38; font-size: 0.93rem; font-weight: 700; }
.primary-button:hover { background: #fff; }
.primary-button .icon { width: 1rem; height: 1rem; }
.snapshot { flex: none; width: 14.75rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem; background: #134a3deb; border: 1px solid #69a78d; border-radius: 0.85rem; }
.snapshot-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; flex: none; border-radius: 0.65rem; color: #d4f4df; background: #2b6656; }
.snapshot p { color: #d2e9df; font-size: 0.83rem; }
.snapshot strong { font-size: 1.14rem; }

.overview { margin-block: 1.65rem 1.8rem; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem; }
h2 { font-size: 1.42rem; font-weight: 800; line-height: 1.45; }
.section-title p { color: var(--muted); font-size: 0.88rem; margin-top: 0.1rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.2rem), 1fr)); gap: 0.8rem; }
.metric { padding: 0.92rem 0.97rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.84rem; box-shadow: var(--shadow); min-width: 0; }
.metric-top { display: flex; align-items: center; gap: 0.57rem; font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.tile-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; flex: none; border-radius: 0.62rem; color: #19634f; background: #e6f3ed; }
.tile-icon.blue { color: #245974; background: #eaf2f8; }
.tile-icon.amber { color: #865a23; background: #faf0de; }
.tile-icon.violet { color: #665484; background: #f1edf9; }
.metric .tile-icon { width: 1.85rem; height: 1.85rem; }
.metric .icon { width: 1.04rem; height: 1.04rem; }
.metric-value { font-size: 1.8rem; line-height: 1.25; font-weight: 800; margin-top: 0.35rem; color: var(--ink); }
.metric-note { font-size: 0.81rem; color: var(--muted); margin-top: 0.22rem; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 19.15rem); gap: 1rem; align-items: start; }
#modules, #alerts { scroll-margin-top: 0.4rem; }
.search { position: relative; display: flex; align-items: center; width: min(100%, 14.2rem); }
.search > span { position: absolute; inset-inline-start: 0.67rem; pointer-events: none; color: var(--green); }
.search .icon { width: 1rem; height: 1rem; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 0.65rem; background: white; color: var(--ink); padding: 0.45rem 2.05rem 0.45rem 0.6rem; min-height: 2.65rem; font-size: 0.92rem; }
.search input::placeholder { color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.76rem; }
.module { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 0.82rem; padding: 0.9rem 0.9rem 0.55rem; box-shadow: var(--shadow); }
.module:hover { border-color: #aecdbc; }
.module h3 { margin-block: 0.58rem 0.25rem; font-size: 1rem; line-height: 1.5; font-weight: 800; }
.module p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; margin-bottom: 0.8rem; }
.program-action .icon { width: 0.92rem; height: 0.92rem; }

.alert-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0.84rem; box-shadow: var(--shadow); overflow: hidden; }
.alert-heading { display: flex; align-items: center; gap: 0.68rem; padding: 0.86rem 0.8rem; border-bottom: 1px solid #e7edea; }
.alert-heading-icon { display: grid; place-items: center; color: #87612b; background: #faf0de; border-radius: 0.62rem; width: 2.42rem; height: 2.42rem; flex: none; }
.alert-heading h2 { font-size: 1.12rem; }
.alert-heading p { color: var(--muted); font-size: 0.76rem; line-height: 1.5; }
.empty { grid-column: 1 / -1; padding: 1.6rem 0.9rem; color: var(--muted); text-align: center; background: var(--surface); border-radius: 0.7rem; }
.module-grid .empty { border: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.9rem; border-top: 1px solid var(--line); color: var(--muted); margin-top: 1.65rem; padding: 1.1rem 0 1.4rem; font-size: 0.81rem; }


@media (max-width: 67.5rem) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 55rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 0.8rem; min-height: 0; padding-top: 0.65rem; }
  .section-nav { width: 100%; order: 3; justify-content: center; gap: 2.1rem; }
  .section-nav a { min-height: 2.8rem; }
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(14rem, 16rem); }
}
@media (max-width: 42rem) {
  .hero { min-height: 0; margin-top: 1rem; padding: 1.3rem; border-radius: 0.95rem; }
  .hero::before { width: 65%; opacity: 0.7; }
  .snapshot { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .shell { width: calc(100% - 1.3rem); }
  .brand img { width: clamp(6.85rem, 35vw, 9rem); }
  .header-tools { gap: 0.32rem; }
  .hero h1 { font-size: clamp(1.62rem, 7vw, 2.05rem); }
  .hero-copy { font-size: 0.88rem; }
  .metric { padding: 0.7rem; }
  .metric-top { gap: 0.35rem; }
  .metric-top span:last-child { font-size: 0.76rem; line-height: 1.5; }
  .metric-value { font-size: 1.5rem; }
  h2 { font-size: 1.23rem; }
  .module-heading { flex-wrap: wrap; }
  .search { width: 100%; }
  .module-grid { gap: 0.55rem; }
  .module { padding: 0.7rem 0.65rem 0.24rem; }
  .module h3 { font-size: 0.92rem; }
  .module p { font-size: 0.81rem; }
  .footer { display: grid; }
}
@media (max-width: 21rem) {
  .header-inner { column-gap: 0.35rem; }
  .brand img { width: 6.2rem; }
  .module-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }
input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header .header-director { min-height: 2.75rem; padding: 0.4rem 0.72rem; border: 1px solid var(--line); border-radius: 0.65rem; }
.site-header .header-director:hover { background: var(--soft); }
.module .program-action { justify-content: start; border-top: 1px solid var(--line); margin-top: auto; }
.module:hover .program-action { text-decoration: underline; text-underline-offset: 0.2rem; }
.follow-list { padding: 0.3rem 0.8rem 0.8rem; }
.follow-link { display: block; padding: 0.73rem 0.1rem; border-bottom: 1px solid var(--line); }
.follow-link:hover { color: var(--green); }
.follow-link strong { display: flex; align-items: center; gap: 0.45rem; font-size: 0.93rem; }
.follow-link .icon { width: 0.96rem; height: 0.96rem; }
.follow-link span:not(.sr-only) { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.84rem; }
.follow-list p { color: var(--muted); margin-top: 0.72rem; font-size: 0.84rem; }
@media (max-width: 30rem) {
  .site-header .header-director { font-size: 0.78rem; }
}


.module-cell { position: relative; min-width: 0; display: flex; }
.module-cell .module { width: 100%; }
.favorite { position: absolute; inset-inline-end: 0.68rem; top: 0.64rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #dce7e1; border-radius: 0.65rem; color: #587066; background: white; cursor: pointer; }
.favorite:hover { background: #edf6f0; }
.favorite[aria-pressed="true"] { color: #79511e; border-color: #e4c68b; background: #fff2d7; }
.favorite[aria-pressed="true"] svg { fill: #efc76d; }
.program-action { display: flex; align-items: center; gap: 0.42rem; }
.program-action .icon { width: 0.9rem; height: 0.9rem; flex: none; }
.favorite-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-block-end: 0.7rem; }
.favorite-controls span { color: var(--muted); font-size: 0.86rem; }
.portal-side { min-width: 0; display: grid; gap: 0.72rem; }
.portal-panel { border: 1px solid var(--line); background: #fff; border-radius: 0.78rem; padding: 0.85rem; }
.portal-panel h2 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.portal-panel p { color: var(--muted); font-size: 0.84rem; margin: 0.3rem 0 0.55rem; }
.portal-button { font: inherit; font-size: 0.87rem; font-weight: 700; padding: 0.35rem 0.6rem; min-height: 2.75rem; color: #10513e; background: #f0f7f2; border: 1px solid #bcd4c5; border-radius: 0.55rem; cursor: pointer; }
.portal-button:hover { background: #e3f1e9; }
.portal-button[aria-pressed="true"] { background: #d6eee0; border-color: #7caf96; }
.portal-button:disabled { opacity: 0.65; cursor: wait; }
.portal-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-inline-start: 0.25rem; color: var(--green); text-decoration: underline; text-underline-offset: 0.2rem; font-size: 0.85rem; font-weight: 700; }
.portal-list { list-style: none; padding: 0; margin: 0 0 0.65rem; }
.portal-list li + li { border-top: 1px solid var(--line); }
.portal-list li, .portal-list a { display: flex; justify-content: space-between; align-items: center; gap: 0.45rem; font-size: 0.86rem; }
.portal-list li { min-height: 2.75rem; padding-block: 0.28rem; }
.portal-list a { flex: 1; min-height: 2rem; font-weight: 700; }
.portal-list a:hover { text-decoration: underline; color: var(--green); }
.portal-list strong { font-size: 0.78rem; text-align: end; color: #245d48; }
.portal-list .health-problem { color: #9a3827; }
.portal-list .health-unknown { color: var(--muted); }

@media (max-width: 42rem) {
  main.shell { display: flex; flex-direction: column; }
  .hero { order: 0; }
  .workspace { order: 1; margin-top: 1rem; }
  .overview { order: 2; }
  .footer { order: 3; }
  .hero-copy { display: none; }
  .primary-button { margin-top: 0.54rem; }
}
@media (max-width: 30rem) {
  .favorite { top: 0.43rem; inset-inline-end: 0.44rem; }
  .module-cell .module h3 { overflow-wrap: anywhere; }
}
