/* OCMT Graduate Outcomes - visual identity follows the college web site.
   Layout uses logical properties (inline-start/end) so an Arabic (RTL) version
   only needs dir="rtl" on <html>.
   Fonts: the college uses "Thmanyah", whose licence does not allow serving the
   font files from a web site.  We name it first (used if installed on the
   viewer's device) and ship Tajawal (SIL OFL 1.1, see static/fonts) as the web font. */

@font-face { font-family: "Tajawal"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-arabic-800-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/tajawal-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #002e6d;
  --deep: #001a40;
  --red: #ff4438;
  --red-d: #d93020;
  --ink: #14213d;
  --muted: #566175;
  --faint: #7d8696;
  --mist: #eef2f8;
  --paper: #fff;
  --line: rgba(0, 46, 109, .16);
  --track: #e3e9f2;
  --success: #17724f;
  --success-bg: #e4f3ec;
  --warn: #9a5f08;
  --warn-bg: #fbefd8;
  --attn: #b8321a;
  --attn-bg: #fce9e4;
  --review: #4d5f82;
  --review-bg: #e6ebf4;
  --radius: 16px;
  --font: "thmanyah sans", "Thmanyah", "Tajawal", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='.11'%3E%3Cpath d='M14 14H50V50H14Z'/%3E%3Cpath d='M32 6.5L57.5 32L32 57.5L6.5 32Z'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--mist); color: var(--ink);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4rem; font-weight: 800; color: var(--navy); }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.2rem; padding-bottom: .7rem; position: relative; }
h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--red); }
h3 { font-size: 1.05rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.serif { font-weight: 800; }
.inline { display: inline; margin: 0; }
details h2::after, .card h2::after { display: none; }
.card h2 { padding-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.hint { color: var(--faint); font-size: .86rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--muted); margin: 0 0 .3rem; }
.center { text-align: center; }
.code { font-size: 3.4rem; font-weight: 800; margin: 0; color: var(--red); line-height: 1; }

/* top bar */
.topbar {
  background: var(--deep) var(--star); color: #fff; border-bottom: 3px solid var(--red);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 28px; padding: 0 clamp(14px, 3vw, 32px); min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; padding: 10px 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, .3); }
.brand-sub { font-weight: 700; font-size: 1.05rem; color: rgba(255, 255, 255, .92); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 8px 18px; border-radius: 999px; font-size: .95rem; font-weight: 700; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { background: var(--red); color: #fff; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: .88rem; font-weight: 700; }
.user-role { font-size: .74rem; color: rgba(255, 255, 255, .65); }
.user-chip .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.user-chip .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* layout */
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 56px; flex: 1; }
.footer { background: var(--deep) var(--star); color: rgba(255, 255, 255, .75); text-align: center; font-size: .85rem; padding: 22px 20px; border-top: 3px solid var(--red); }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-bottom: 22px; padding: 28px clamp(18px, 3vw, 32px); border-radius: var(--radius);
  background: var(--navy) var(--star); color: #fff; position: relative; overflow: hidden;
}
.page-head::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red) 0 96px, transparent 96px); }
.page-head h1 { color: #fff; margin: 0 0 4px; }
.page-head .muted, .page-head .hint { color: rgba(255, 255, 255, .78); margin: 0; }
.crumb { margin: 0 0 10px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.narrow { max-width: 480px; margin: 40px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 8px; }
.tiles .card { margin: 0; padding: 18px; border-top: 4px solid var(--red); }
.tile-num { font-size: 2.2rem; margin: 0 0 6px; line-height: 1; color: var(--navy); }

.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .14); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 6px 16px; border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: .88rem; font-weight: 700; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { background: #fff; color: var(--navy); }

/* buttons & forms */
.btn { font: inherit; font-size: .93rem; font-weight: 700; cursor: pointer; padding: 10px 22px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; display: inline-block; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--navy); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); }
.btn-ghost { background: transparent; padding: 6px 14px; font-weight: 600; }
.btn-block { display: block; width: 100%; text-align: center; margin: 22px 0 10px; padding: 13px 22px; }
input[type=text], input[type=email], input[type=search], select, input[type=file] {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus { border-color: var(--navy); }
label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; text-align: start; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0; }
.toolbar label { min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.notice { padding: 13px 18px; border-radius: 12px; margin-bottom: 14px; font-size: .94rem; border-inline-start: 4px solid currentColor; }
.notice-ok { background: var(--success-bg); color: var(--success); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-error { background: var(--attn-bg); color: var(--attn); }
.issues { margin: 6px 0 0; padding-inline-start: 20px; font-size: .9rem; }
.result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: var(--mist); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table .wide { width: 26%; min-width: 120px; }

/* bands */
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--review-bg); color: var(--review); }
.pill.band-achieved { background: var(--success-bg); color: var(--success); }
.pill.band-partial { background: var(--warn-bg); color: var(--warn); }
.pill.band-low { background: var(--attn-bg); color: var(--attn); }
.pill.band-review { background: var(--review-bg); color: var(--review); }
.pill.band-pending { background: var(--track); color: var(--muted); }
.band-achieved { fill: var(--success); }
.band-partial { fill: #d98a14; }
.band-low { fill: var(--red); }
.band-review { fill: var(--review); }
.band-pending { fill: var(--faint); }
.code-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--navy); padding: 2px 9px; border-radius: 6px; }

.bar, .dist { width: 100%; height: 10px; display: block; }
.bar-track { fill: var(--track); }
.bar-tick { stroke: var(--deep); stroke-width: .6; stroke-dasharray: 1.5 1.5; opacity: .55; vector-effect: non-scaling-stroke; }

/* student page */
.hero { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.wheel-wrap { position: relative; width: 360px; height: 360px; flex-shrink: 0; margin: 0 auto; }
.wheel-wrap svg { width: 100%; height: 100%; overflow: visible; }
.wheel-track { fill: var(--track); }
.wheel-label { font-family: var(--font); font-size: 13px; font-weight: 800; fill: var(--navy); }
.ring { fill: none; stroke: var(--deep); stroke-width: 1; stroke-dasharray: 4 4; opacity: .35; }
.wheel-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.wheel-num { font-size: 2.2rem; line-height: 1; color: var(--navy); }
.wheel-sub { font-size: .72rem; color: var(--muted); margin-top: 6px; }
.hero-side { flex: 1; min-width: 260px; }
.facts { margin: 14px 0; display: grid; gap: 8px; }
.facts div { display: flex; gap: 12px; }
.facts dt { width: 150px; color: var(--muted); font-size: .88rem; flex-shrink: 0; }
.facts dd { margin: 0; font-weight: 700; font-size: .93rem; }
.note { background: var(--mist); border-inline-start: 4px solid var(--red); border-radius: 10px; padding: 12px 16px; font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.ga header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; align-items: flex-start; }
.ga h3 { font-size: 1.02rem; }
.score { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin: 4px 0 8px; line-height: 1; }
details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "Show"; font-size: .82rem; color: var(--red-d); font-weight: 700; }
details[open] summary::after { content: "Hide"; }
details[open] summary { margin-bottom: 12px; }

@media (max-width: 640px) {
  .topbar { padding: 8px 14px; }
  .brand img { height: 38px; }
  .brand-divider, .brand-sub { display: none; }
  .page { padding: 18px 14px 40px; }
  h1 { font-size: 1.55rem; }
  .wheel-wrap { width: 300px; height: 300px; }
  .facts div { flex-direction: column; gap: 0; }
  .user-meta { display: none; }
  .nav { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .topbar, .footer, .btn { display: none; }
  body { background: #fff; }
  .page-head { background: none; color: #000; padding: 0; }
  .page-head h1 { color: #000; }
}
.login-logo { display: block; margin: 4px auto 18px; max-width: 70%; height: auto; }

/* ---- CLO Builder (clo.ocmt.edu.om shares this stylesheet) ---- */
textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; resize: vertical; line-height: 1.5; }
textarea:focus { border-color: var(--navy); }
.crumb-link { color: rgba(255, 255, 255, .85); font-size: .88rem; font-weight: 700; text-decoration: none; }
.crumb-link:hover { color: #fff; text-decoration: underline; }
.btn-small { padding: 5px 12px; font-size: .84rem; border-radius: 10px; }
.btn-danger { color: var(--attn); border-color: rgba(184, 50, 26, .35); }
.btn-danger:hover { background: var(--attn-bg); border-color: var(--attn); }
.steps { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.dim-tag { display: inline-block; font-size: .74rem; font-weight: 800; color: #fff; padding: 3px 11px; border-radius: 999px; background: var(--navy); white-space: nowrap; }
.dim-knowledge { background: #002e6d; }
.dim-skills { background: #0b6b6f; }
.dim-communication { background: #6a3d9a; }
.dim-autonomy { background: #a14a08; }
.dim-employability { background: #1f6f3d; }
.dim-learning { background: #8a2b4a; }
.clo-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.clo-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.clo-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.clo-text { margin: 4px 0 10px; font-size: 1.02rem; }
.clo-actions form { margin: 0; }
.sugg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: 12px; }
.sugg { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--mist); }
.sugg .eyebrow { margin: 0; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.check-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: #fff; }
.check-ok .check-mark { background: var(--success); }
.check-warn .check-mark { background: var(--attn); }
.check-info .check-mark { background: var(--review); }
.dist { width: 100%; height: 12px; display: block; }
.dist-track { fill: var(--track); }
.dist-fill { fill: var(--review); }
.dist-on { fill: var(--success); }
.dist-high, .dist-low { fill: #d98a14; }
.dist-tick { stroke: var(--deep); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
details > summary h2 { margin: 0; }
.table-wrap + h3 { margin-top: 24px; }
.progress { display: flex; gap: 7px; margin: 8px 0 16px; }
.progress i { display: block; height: 7px; border-radius: 5px; background: var(--track); flex: 1; }
.progress i.on { background: var(--red); }
.hint.caution { color: var(--warn); }
.sugg-grid + h3 { margin-top: 26px; }
