/* Scoped under .su-programs for the Laravel main site.
   Generated from the standalone soran-programs stylesheet - do not
   hand-edit; re-run tools/scope_css.py after changing the source. */
/* Soran University – Academic Programmes
   Palette follows the university colours: blue, white and gold. */

:root {
  --navy:      #0b2a4a;
  --blue:      #134a80;
  --blue-soft: #2a6db3;
  --blue-tint: #e6eef8;
  --gold:      #f3b21b;
  --gold-deep: #c9900a;
  --ink:       #17202b;
  --ink-soft:  #4a5768;
  --line:      #d6deea;
  --mist:      #f4f6fa;
  --paper:     #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --font-rtl: "Vazirmatn", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1180px;
  --radius: 6px;
}

.su-programs *, .su-programs *::before, .su-programs *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .su-programs * { transition: none !important; } }

.su-programs {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
.su-programs [lang="ku"], .su-programs [lang="ar"], .su-programs [dir="rtl"] { font-family: var(--font-rtl); }

.su-programs h1, .su-programs h2, .su-programs h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.su-programs a { color: var(--blue); }
.su-programs a:hover { color: var(--navy); }
.su-programs :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.su-programs code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.su-programs .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.su-programs .muted { color: var(--ink-soft); }
.su-programs .skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 12px; z-index: 100; }
.su-programs .skip:focus { left: 8px; }

.su-programs /* ---------- header ---------- */
.utility { background: var(--navy); color: #fff; font-size: 13px; }
.su-programs .utility nav { display: flex; gap: 18px; padding: 6px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.su-programs .utility a { color: #dbe6f3; text-decoration: none; }
.su-programs .utility a:hover { color: var(--gold); }

.su-programs .site-head { background: var(--paper); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 40; }
.su-programs .site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.su-programs .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.su-programs .brand img { width: 56px; height: 56px; object-fit: contain; }
.su-programs .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.su-programs .brand-text strong { font-family: var(--font-display); font-size: 20px; }
.su-programs .brand-text small { font-family: var(--font-rtl); color: var(--ink-soft); font-size: 13px; }
.su-programs .mainnav { margin-left: auto; display: flex; gap: 4px; }
.su-programs .mainnav a { text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: var(--radius); font-weight: 500; }
.su-programs .mainnav a:hover { background: var(--blue-tint); color: var(--navy); }
.su-programs .mainnav a.current { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.su-programs .nav-toggle { display: none; margin-left: auto; background: var(--blue-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: inherit; }
@media (max-width: 860px) {
  .su-programs .nav-toggle { display: inline-block; }
  .su-programs .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .su-programs .mainnav.open { display: flex; }
}

.su-programs /* ---------- index hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 56px 0 48px; }
.su-programs .hero-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.su-programs .hero-marks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.su-programs .hero-marks img { width: 100%; height: auto; background: #fff; border-radius: 50%; padding: 12px; }
.su-programs .hero-kicker { margin: 0 0 6px; color: var(--gold); font-weight: 600; }
.su-programs .hero h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 700; }
.su-programs .lead { font-size: 18px; max-width: 62ch; color: #e3ecf7; margin: 16px 0 24px; }
.su-programs .hero-facts { display: flex; gap: 36px; flex-wrap: wrap; margin: 0; }
.su-programs .hero-facts div { border-left: 3px solid var(--gold); padding-left: 12px; }
.su-programs .hero-facts dt { font-size: 13px; color: #c7d5e6; }
.su-programs .hero-facts dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; }
@media (max-width: 760px) {
  .su-programs .prog-title { flex-direction: column-reverse; }
  .su-programs .prog-mark { width: 64px; height: 64px; }
  .su-programs .hero-grid { grid-template-columns: 1fr; }
  .su-programs .hero-marks { max-width: 220px; }
}

.su-programs /* ---------- finder ---------- */
.finder { background: var(--mist); border-bottom: 1px solid var(--line); padding: 28px 0; }
.su-programs .search label { display: block; font-weight: 600; margin-bottom: 8px; }
.su-programs .search-row { position: relative; }
.su-programs .search input { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.su-programs .search input:focus { border-color: var(--blue); outline: none; }
.su-programs .search-hint { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-soft); pointer-events: none; }
.su-programs .module-results { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: 380px; overflow: auto; }
.su-programs .module-results a { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.su-programs .module-results a:last-child { border-bottom: 0; }
.su-programs .module-results a:hover { background: var(--blue-tint); }
.su-programs .module-results .r-dept { font-size: 13px; color: var(--ink-soft); }
.su-programs .module-results .r-empty { padding: 14px; color: var(--ink-soft); }
.su-programs .faculty-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.su-programs .faculty-jump a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--navy); font-weight: 500; }
.su-programs .faculty-jump a span { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-size: 13px; }
.su-programs .faculty-jump a:hover { border-color: var(--blue); }

.su-programs /* ---------- faculty sections ---------- */
.faculty { padding: 48px 0 12px; }
.su-programs .faculty-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 24px; }
.su-programs .faculty-head h2 { font-size: 30px; color: var(--navy); }
.su-programs .faculty-site { font-size: 14px; }
.su-programs .dept-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.su-programs .dept-card a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); background: #fff; transition: border-color .15s; }
.su-programs .dept-card a:hover { border-color: var(--gold); border-top-color: var(--gold); }
.su-programs .dept-card h3 { font-size: 22px; color: var(--navy); }
.su-programs .dept-meta { margin: 6px 0 14px; color: var(--ink-soft); font-size: 14px; }
.su-programs .dept-meta em { margin-left: 6px; background: var(--mist); border: 1px solid var(--line); padding: 0 6px; border-radius: 3px; font-style: normal; font-size: 12px; }
.su-programs .dept-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 18px; }
.su-programs .dept-stats dt { font-size: 12px; color: var(--ink-soft); }
.su-programs .dept-stats dd { margin: 0; font-weight: 600; }
.su-programs .dept-cta { margin-top: auto; color: var(--blue); font-weight: 600; }
.su-programs .dept-card.is-archived a { opacity: .75; }
.su-programs .dept-card.hide { display: none; }

.su-programs /* ---------- legend ---------- */
.legend-band { background: var(--mist); margin-top: 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.su-programs .legend-band h2 { font-size: 26px; color: var(--navy); margin-bottom: 18px; }
.su-programs .legend-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.su-programs .legend-cols h3 { font-family: var(--font-body); font-size: 15px; margin-bottom: 8px; }
.su-programs ul.plain, .su-programs ul.type-list { margin: 0; padding-left: 18px; }
.su-programs ul.type-list { list-style: none; padding: 0; }
.su-programs ul.type-list li { display: flex; gap: 10px; align-items: baseline; margin: 6px 0; }
@media (max-width: 700px) { .su-programs .legend-cols { grid-template-columns: 1fr; } }

.su-programs /* type badges */
.type { display: inline-block; min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 12px; line-height: 1.3; color: #fff; background: var(--ink-soft); }
.su-programs .type-B { background: #5b6b7f; }
.su-programs .type-S { background: var(--blue-soft); }
.su-programs .type-C { background: var(--navy); }
.su-programs .type-E { background: var(--gold-deep); }
.su-programs .type-G { background: #6b8f4e; }

.su-programs /* ---------- programme page ---------- */
.prog-hero { background: var(--navy); color: #fff; padding: 22px 0 28px; }
.su-programs .crumbs { font-size: 13px; color: #c7d5e6; display: flex; gap: 8px; flex-wrap: wrap; }
.su-programs .crumbs a { color: #c7d5e6; }
.su-programs .crumbs a::after { content: "/"; margin-left: 8px; color: #7b93b0; }
.su-programs .prog-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 12px; }
.su-programs .prog-title h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; }
.su-programs .prog-degree { margin: 6px 0 0; color: #dbe6f3; }
.su-programs .archived-note { margin: 8px 0 0; color: var(--gold); }
.su-programs .prog-mark { flex: none; background: #fff; border-radius: 50%; padding: 8px; width: 88px; height: 88px; }
.su-programs .prog-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0 0; }
.su-programs .prog-facts div { border-left: 3px solid var(--gold); padding-left: 10px; }
.su-programs .prog-facts dt { font-size: 12px; color: #c7d5e6; }
.su-programs .prog-facts dd { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }

.su-programs .prog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.su-programs .prog-main { min-width: 0; }
.su-programs .prog-side { position: sticky; top: 92px; }
.su-programs .year-nav-group { margin-bottom: 14px; }
.su-programs .year-nav a { display: block; text-decoration: none; color: var(--ink); padding: 5px 10px; border-left: 3px solid var(--line); font-weight: 600; }
.su-programs .year-nav a.sub { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.su-programs .year-nav a:hover, .su-programs .year-nav a.active { border-left-color: var(--gold); color: var(--navy); }
.su-programs .side-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.su-programs .btn { font: inherit; font-weight: 600; text-align: center; text-decoration: none; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; }
.su-programs .btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.su-programs .btn-ghost { background: #fff; color: var(--blue); }
.su-programs .btn-ghost:hover { background: var(--blue-tint); color: var(--navy); }
@media (max-width: 900px) {
  .su-programs .prog-layout { grid-template-columns: 1fr; }
  .su-programs .prog-side { position: static; }
  .su-programs .year-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .su-programs .year-nav-group { display: contents; }
  .su-programs .year-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .su-programs .side-actions { flex-direction: row; }
}

.su-programs .toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 26px; }
.su-programs .toolbar-group { display: flex; align-items: center; gap: 8px; }
.su-programs .toolbar-group.grow { flex: 1 1 220px; }
.su-programs .toolbar-label { font-size: 13px; color: var(--ink-soft); }
.su-programs .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.su-programs .seg button { font: inherit; font-size: 14px; background: none; border: 0; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.su-programs .seg button.on { background: var(--navy); color: #fff; }
.su-programs .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.su-programs .chip { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.su-programs .chip.on { color: #fff; border-color: transparent; }
.su-programs .chip.on.type-B { background: #5b6b7f; } .su-programs .chip.on.type-S { background: var(--blue-soft); }
.su-programs .chip.on.type-C { background: var(--navy); } .su-programs .chip.on.type-E { background: var(--gold-deep); } .su-programs .chip.on.type-G { background: #6b8f4e; }
.su-programs .switch { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.su-programs #filter { width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }

.su-programs .year { margin-bottom: 40px; }
.su-programs .year-title { font-size: 26px; color: var(--navy); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.su-programs .year-title span { font-family: var(--font-body); font-size: 13px; font-weight: 700; background: var(--gold); color: var(--navy); padding: 2px 8px; border-radius: 4px; }
.su-programs .semester { margin-bottom: 28px; }
.su-programs .semester h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.su-programs .semester h3 small { font-weight: 400; color: var(--ink-soft); margin-left: 8px; }
.su-programs .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.su-programs table.curriculum { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 880px; }
.su-programs .curriculum th, .su-programs .curriculum td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.su-programs .curriculum thead th { background: var(--blue-tint); color: var(--navy); font-size: 12px; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.su-programs .curriculum tbody tr:hover { background: #fbf6e8; }
.su-programs .curriculum tbody tr.module { cursor: pointer; }
.su-programs .curriculum tbody tr.flash { background: #fff1c9; }
.su-programs .curriculum tfoot th, .su-programs .curriculum tfoot td { background: var(--mist); font-weight: 700; border-bottom: 0; }
.su-programs .c-no { width: 40px; color: var(--ink-soft); }
.su-programs .c-code { white-space: nowrap; }
.su-programs .c-hr, .su-programs .c-wl, .su-programs .c-ects { text-align: right !important; white-space: nowrap; }
.su-programs .c-ects { font-weight: 700; color: var(--navy); background: #fffbef; }
.su-programs .c-title .t { display: none; }
.su-programs .c-title .t-en { display: block; }
body.lang-ku .su-programs .c-title .t { display: none; } body.lang-ku .su-programs .c-title .t-ku { display: block; font-size: 15px; text-align: left; }
body.lang-ar .su-programs .c-title .t { display: none; } body.lang-ar .su-programs .c-title .t-ar { display: block; font-size: 15px; text-align: left; }
body.compact .su-programs .c-wl, body.compact .su-programs .c-hr { display: none; }
body.compact .su-programs table.curriculum { min-width: 640px; }
.su-programs .prereq { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; text-decoration: none; border-bottom: 1px dashed var(--blue); }
.su-programs tr.hide { display: none; }
.su-programs .semester.hide, .su-programs .year.hide { display: none; }
.su-programs .empty-note { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.su-programs /* drawer */
.drawer { position: fixed; inset: 0; background: rgba(11,42,74,.45); z-index: 60; display: flex; justify-content: flex-end; }
.su-programs .drawer[hidden] { display: none; }
.su-programs .drawer-panel { width: min(460px, 100%); background: #fff; height: 100%; overflow: auto; padding: 28px 28px 40px; box-shadow: -8px 0 30px rgba(0,0,0,.2); position: relative; }
.su-programs .drawer-close { position: absolute; right: 14px; top: 10px; font-size: 28px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink-soft); }
.su-programs .drawer-panel h2 { font-size: 24px; color: var(--navy); margin: 4px 0 2px; }
.su-programs .drawer-panel .d-code { color: var(--ink-soft); font-size: 14px; }
.su-programs .drawer-panel .d-alt { margin: 12px 0; padding: 12px; background: var(--mist); border-radius: var(--radius); }
.su-programs .drawer-panel .d-alt p { margin: 4px 0; font-size: 16px; }
.su-programs .drawer-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0 0; }
.su-programs .drawer-panel dt { font-size: 12px; color: var(--ink-soft); }
.su-programs .drawer-panel dd { margin: 0; font-weight: 600; }

.su-programs /* ---------- footer ---------- */
.site-foot { background: var(--navy); color: #dbe6f3; padding: 40px 0 0; margin-top: 40px; }
.su-programs .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.su-programs .marks { display: flex; gap: 12px; margin-bottom: 12px; }
.su-programs .marks img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 6px; }
.su-programs .site-foot h3 { font-family: var(--font-body); font-size: 15px; color: #fff; margin-bottom: 10px; }
.su-programs .site-foot ul { list-style: none; margin: 0; padding: 0; }
.su-programs .site-foot li { margin: 4px 0; }
.su-programs .site-foot a { color: #dbe6f3; }
.su-programs .site-foot a:hover { color: var(--gold); }
.su-programs .foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 14px; padding-bottom: 18px; font-size: 13px; }
@media (max-width: 760px) { .su-programs .foot-grid { grid-template-columns: 1fr; } }
.su-programs .notfound { padding: 60px 20px; }

/* ---------- print ---------- */
@media print {
  .su-programs .utility, .su-programs .site-head, .su-programs .prog-side, .su-programs .toolbar, .su-programs .site-foot, .su-programs .drawer, .su-programs .crumbs { display: none !important; }
  .su-programs .prog-hero { background: none; color: #000; padding: 0; }
  .su-programs .prog-facts dt, .su-programs .prog-degree { color: #333; }
  .su-programs .prog-layout { display: block; }
  .su-programs .table-scroll { overflow: visible; border: 0; }
  .su-programs table.curriculum { min-width: 0; font-size: 11px; }
  .su-programs .curriculum th, .su-programs .curriculum td { padding: 4px 6px; }
  .su-programs .year { page-break-inside: avoid; }
  .su-programs a { text-decoration: none; color: inherit; }
}

/* ---------------------------------------------------------------------------
   Laravel integration: hide the main-site chrome when printing a curriculum
   or the policy. The standalone stylesheet hid its own header/footer, which
   no longer exist on these pages.
   --------------------------------------------------------------------------- */
@media print {
  #preloader,
  .top-bar-bg,
  header.header-style1,
  .scroll-to-top,
  footer { display: none !important; }
  .main-wrapper { padding: 0 !important; margin: 0 !important; }
}