/* Zaadcademy — tokens */
@font-face { font-family: "Reem Kufi"; font-weight: 500; font-display: swap; src: url(fonts/reem-kufi-arabic-500.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-arabic-700.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Reem Kufi"; font-weight: 500; font-display: swap; src: url(fonts/reem-kufi-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Reem Kufi"; font-weight: 700; font-display: swap; src: url(fonts/reem-kufi-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-arabic-400.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-arabic-600.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url(fonts/plex-arabic-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url(fonts/plex-arabic-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/plex-mono-latin-400.woff2) format("woff2"); }

/* Zaadcademy theme: colours from the Zaad Academy logo and the school logo.
   Layout patterns follow learning portals such as Microsoft Learn's Educator Center:
   white header with logo, light page banner, cards, clear progress. */
:root {
  --page: #f4f7f7;        /* page background */
  --paper: #ffffff;       /* cards, header */
  --ink: #12313a;         /* text: dark teal */
  --ink-soft: #536b71;    /* secondary text */
  --line: #d5e0e1;        /* borders */
  --teal: #0b6b74;        /* primary: Zaad logo teal */
  --teal-deep: #08525a;
  --teal-light: #12a09a;  /* school logo light teal */
  --teal-tint: #e6f3f2;
  --gold: #e6a91c;        /* book pages, sun */
  --gold-tint: #fcf4dd;
  --orange: #ee7d16;      /* the diamond on zaad */
  --rust: #b3402f;        /* errors, stop */
  --radius: 8px;
  --shadow: 0 1px 2px rgba(18, 49, 58, .06), 0 2px 8px rgba(18, 49, 58, .05);
  --display: "Reem Kufi", "Plex Arabic", sans-serif;
  --body: "Plex Arabic", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--page); }
h1, h2, h3 { font-weight: 600; line-height: 1.3; margin: 0 0 .4em; color: var(--ink); }
h1 { font-family: var(--display); font-weight: 700; word-spacing: .12em; font-size: 2rem; color: var(--teal-deep); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: .9em; unicode-bidi: isolate; direction: ltr; }

/* header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; background: var(--paper); box-shadow: var(--shadow); position: relative; }
.bar::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: -3px; height: 3px; background: linear-gradient(to left, var(--teal) 0 60%, var(--gold) 60% 90%, var(--orange) 90%); }
.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; }
.bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

main { max-width: 1080px; margin: 0 auto; padding: 36px 24px 72px; }
.privacy { max-width: 780px; }

/* page banner: title area of signed-in pages */
.hero { background: var(--teal-tint); border: 1px solid #cfe6e4; border-radius: var(--radius); padding: 28px 32px; margin-block-end: 24px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-inline-end: 28px; inset-block-start: 24px; width: 16px; height: 16px; background: var(--orange); transform: rotate(45deg); border-radius: 2px; }
.hero h1 { margin: 0; }
.hero p { margin: 6px 0 0; color: var(--ink-soft); }

/* controls */
button, .button { font: inherit; font-weight: 600; border-radius: 6px; border: 1px solid var(--teal); background: var(--teal); color: #fff; padding: .55em 1.2em; cursor: pointer; transition: background-color .15s, border-color .15s; }
button:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
button.quiet { background: var(--paper); color: var(--teal-deep); border-color: var(--line); }
button.quiet:hover { border-color: var(--teal-light); background: var(--teal-tint); }
button.danger { background: var(--paper); color: var(--rust); border-color: #ecc9c3; }
button.danger:hover { background: #fbefec; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
input[type=text], input[type=email], input[type=password] { font: inherit; width: 100%; padding: .55em .8em; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
input:focus { border-color: var(--teal-light); }
label { display: block; font-weight: 600; margin-block-end: .3em; }
.field { margin-block-end: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > .field { flex: 1 1 220px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-block-end: 12px; }
.check input { margin-block-start: .4em; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-block-end: 20px; box-shadow: var(--shadow); }
.message { padding: 10px 14px; border-radius: 6px; margin-block-end: 16px; border-inline-start: 4px solid var(--teal); background: var(--teal-tint); }
.message.error { border-color: var(--rust); background: #fbefec; }

/* onboarding route: sign in, agree, choose school, approval. Waypoints are the Zaad diamond. */
.onboard { display: grid; grid-template-columns: 230px 1fr; gap: 44px; max-width: 920px; margin: 0 auto; }
.route { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 9px; border-inline-start: 2px dashed var(--gold); }
.route li { position: relative; padding-inline-start: 40px; margin-block-end: 34px; color: var(--ink-soft); font-size: .95rem; }
.route li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: 6px; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 2px; background: var(--page); border: 2px solid var(--gold); }
.route li.done::before { background: var(--gold); }
.route li.done { color: var(--ink); }
.route li.here { color: var(--ink); font-weight: 600; }
.route li.here::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px #fde3cc; }
.route .stage { display: block; font-size: .78rem; color: var(--teal); font-weight: 600; }
.onboard-body .panel { border-block-start: 4px solid var(--teal); }
.onboard-body h1 { font-size: 2.1rem; }
.onboard-body > button { margin-block-end: 24px; }
.notice dl { margin: 0 0 18px; }
.notice dt { font-weight: 600; margin-block-start: 12px; color: var(--teal-deep); }
.notice dd { margin: 2px 0 0; color: var(--ink-soft); }

.schools { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schools li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.schools li.invited { border-color: var(--gold); background: var(--gold-tint); }
.tag { font-size: .78rem; font-weight: 600; color: #7a5310; background: var(--gold-tint); border: 1px solid #f1dca4; padding: 1px 9px; border-radius: 999px; margin-inline-start: 8px; }
.tag.warn { color: var(--rust); background: #fbefec; border-color: #ecc9c3; }

/* work screens */
.tabs { display: flex; gap: 4px; border-block-end: 1px solid var(--line); margin-block-end: 18px; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--ink-soft); border: 0; border-block-end: 3px solid transparent; border-radius: 0; padding: .6em 1em; }
.tabs button[aria-selected=true] { color: var(--teal-deep); border-block-end-color: var(--teal); }
.tabs button:hover { background: transparent; color: var(--ink); }
.count { font-family: var(--mono); font-size: .78em; margin-inline-start: 6px; background: var(--teal-tint); color: var(--teal-deep); padding: 0 7px; border-radius: 999px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 11px 8px; border-block-end: 1px solid var(--line); vertical-align: middle; }
th { font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #f8fbfb; }
tbody tr:hover { background: #f8fbfb; }
td.actions { white-space: nowrap; text-align: end; }
td.actions button { margin-inline-start: 6px; padding: .35em .85em; font-size: .9rem; }
.empty { color: var(--ink-soft); padding: 18px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.school-card { border-block-start: 4px solid var(--teal); }
.school-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }

/* teacher home: course area (courses arrive in phase 2) */
.course-empty { display: flex; gap: 18px; align-items: center; border: 1px dashed #c5d9da; background: var(--paper); border-radius: var(--radius); padding: 22px 24px; margin-block-end: 20px; }
.course-empty::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--gold) 0 50%, var(--teal) 50%); }
.course-empty p { margin: 0; }


/* ---- bold, dark sections in the spirit of TryHackMe, in the logo's colours ---- */
:root {
  --night: #0c2830;       /* deep night teal, from the logo teal */
  --night-2: #123842;
  --night-line: #24525c;
  --on-night: #eef6f6;
  --on-night-soft: #a9c6ca;
}

/* call-to-action button: gold, like the book pages */
button.cta { background: var(--gold); border-color: var(--gold); color: #1d1500; }
button.cta:hover { background: #f2bb36; border-color: #f2bb36; }
button.cta.big { font-size: 1.08rem; padding: .75em 1.6em; border-radius: 8px; }

/* Google button, following Google's sign-in branding (white, outlined, the G mark) */
button.google { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 8px; padding: .72em 1.2em; font-weight: 600; }
button.google:hover { background: #f4f7f7; border-color: #5f6368; }
button.google img { width: 20px; height: 20px; }

/* signed-out page: full width */
body[data-view=landing] main { max-width: none; padding: 0; }
.landing-hero { background: radial-gradient(1100px 520px at 80% 10%, #145060 0, transparent 60%), var(--night); color: var(--on-night);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 72px max(24px, calc((100vw - 1140px) / 2)) 96px; overflow: hidden; }
.landing-copy h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.18; margin-block: 12px 16px; }
.rotate { color: var(--gold); display: block; min-height: 1.18em; white-space: nowrap; }
.rotate.in { animation: word-in .5s ease-out; }
@keyframes word-in { from { opacity: 0; transform: translateY(.3em); } }
.landing-copy .lead { color: var(--on-night-soft); font-size: 1.12rem; max-width: 36em; margin-block-end: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--gold); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); border-radius: 1px; }
.eyebrow.dark { color: var(--orange); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { color: var(--on-night-soft); font-size: .9rem; margin-block-start: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .feature:hover .feature-mark::after { animation: spin 1s ease-in-out; }
}
@keyframes spin { to { transform: rotate(225deg); } }

/* the laptop, in real 3D: an aluminium deck with keys and a trackpad, a lid that opens on its hinge to a small dashboard,
   a slow sway; a flash bursts from the screen and glass chips fly out at different depths, float, then fly back in.
   Sizes in cqi follow the stage width (100cqi = 480px at full size). Still picture for reduced motion. */
.laptop-stage { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1.1; justify-self: center; container-type: inline-size; perspective: 1400px;
  --w: 58cqi; --d: 38cqi; --h: 37cqi; --t: 2.4cqi; }
.glow-floor { position: absolute; left: 50%; top: 66%; width: 92cqi; height: 30cqi; margin: -15cqi 0 0 -46cqi; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 163, 156, .45), transparent); filter: blur(6px); }
.rig { position: absolute; left: 50%; top: 61%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(-18deg); }
.rig > * { position: absolute; }
.floor { width: calc(var(--w) * 1.3); height: calc(var(--d) * 1.5); left: calc(var(--w) * -.65); top: calc(var(--d) * -.75);
  transform: translateY(var(--t)) rotateX(90deg); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.deck { width: var(--w); height: var(--d); left: calc(var(--w) / -2); top: calc(var(--d) / -2); transform: rotateX(90deg); border-radius: 1.6cqi;
  background: linear-gradient(to bottom, #f1f5f6, #c3ced1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.keys { position: absolute; inset: 9% 7% 40%; border-radius: .8cqi; background-color: #1d2c31;
  background-image: repeating-linear-gradient(90deg, transparent 0 3.1cqi, #c9d4d7 3.1cqi 3.6cqi), repeating-linear-gradient(0deg, transparent 0 2.9cqi, #c9d4d7 2.9cqi 3.4cqi);
  box-shadow: inset 0 0 0 .4cqi #c9d4d7; }
.pad { position: absolute; left: 34%; right: 34%; top: 66%; bottom: 8%; border-radius: 1cqi; background: linear-gradient(#d7e0e2, #c4cfd2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.deck-front { width: var(--w); height: var(--t); left: calc(var(--w) / -2); top: 0; transform: translateZ(calc(var(--d) / 2));
  border-radius: 0 0 1.4cqi 1.4cqi; background: linear-gradient(#aebbbe, #7d8e92); }
.deck-side { width: var(--d); height: var(--t); left: calc(var(--d) / -2); top: 0; background: linear-gradient(#a3b1b4, #758689); }
.deck-side.s1 { transform: translateX(calc(var(--w) / -2)) rotateY(-90deg); }
.deck-side.s2 { transform: translateX(calc(var(--w) / 2)) rotateY(90deg); }
.lid { width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: calc(var(--h) * -1); transform-origin: 50% 100%;
  transform: translateZ(calc(var(--d) / -2)) rotateX(10deg); padding: 1.8cqi 1.8cqi 2.6cqi; border-radius: 1.8cqi 1.8cqi .6cqi .6cqi;
  background: linear-gradient(#17262b, #0b171b); box-shadow: inset 0 0 0 .3cqi #3a5056, 0 0 9cqi rgba(26, 163, 156, .35); }
.lid::after { content: ""; position: absolute; left: 50%; top: .7cqi; width: .7cqi; height: .7cqi; margin-left: -.35cqi; border-radius: 50%; background: #2d4248; }
.screen { position: relative; height: 100%; border-radius: .8cqi; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(circle at 70% 0, #145a62, #0b2a31 60%, #081d22); }
.glare { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 38%); pointer-events: none; }
.ui-top { display: flex; align-items: center; gap: 1.2cqi; padding: 1.3cqi 1.6cqi; background: rgba(255, 255, 255, .06); }
.ui-top img { width: 3.6cqi; height: 3.6cqi; border-radius: .8cqi; box-shadow: 0 0 2cqi rgba(230, 169, 28, .7); }
.ui-top i { height: .9cqi; width: 9cqi; border-radius: 1cqi; background: rgba(255, 255, 255, .22); }
.ui-top i:last-child { margin-inline-start: auto; width: 3.6cqi; height: 3.6cqi; border-radius: 50%; background: var(--teal); }
.ui-body { flex: 1; display: flex; gap: 1.6cqi; padding: 1.6cqi; min-height: 0; }
.ui-side { width: 9cqi; display: grid; align-content: start; gap: 1.3cqi; }
.ui-side i { height: 1.1cqi; border-radius: 1cqi; background: rgba(255, 255, 255, .16); }
.ui-side i:first-child { background: var(--gold); }
.ui-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqi; align-content: start; }
.ui-card { display: grid; gap: 1cqi; padding: 1.4cqi; border-radius: 1cqi; background: rgba(255, 255, 255, .09); }
.ui-card:first-child { grid-column: 1 / -1; }
.ui-card b { height: 3.6cqi; border-radius: .7cqi; background: linear-gradient(135deg, #1fb5ad, #0b6b74); }
.ui-card:nth-child(2) b { background: linear-gradient(135deg, #ffb45c, #ee7d16); }
.ui-card:nth-child(3) b { background: linear-gradient(135deg, #ffe08a, #d99a12); }
.ui-card:first-child b { height: 1.1cqi; width: 55%; background: rgba(255, 255, 255, .5); }
.ui-meter { height: 1cqi; border-radius: 1cqi; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ui-meter i { display: block; height: 100%; width: 100%; border-radius: 1cqi; background: linear-gradient(to right, var(--gold), var(--orange)); }
.ui-card:nth-child(2) .ui-meter i { width: 70%; } .ui-card:nth-child(3) .ui-meter i { width: 45%; }
.flash, .rays, .chip { position: absolute; left: 50%; top: 37%; }
.flash { width: 18cqi; height: 18cqi; margin: -9cqi 0 0 -9cqi; border-radius: 50%; opacity: 0; z-index: 2;
  background: radial-gradient(#fff 0, rgba(255, 236, 170, .9) 30%, rgba(230, 169, 28, 0) 70%); }
.rays { width: 92cqi; height: 92cqi; margin: -46cqi 0 0 -46cqi; opacity: 0; z-index: 1; border-radius: 50%;
  background: repeating-conic-gradient(rgba(230, 169, 28, .45) 0 3deg, transparent 3deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 65%); mask-image: radial-gradient(circle, #000 15%, transparent 65%); }
.chip { z-index: 3; transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)); }
.chip-in { display: flex; align-items: center; gap: 9px; white-space: nowrap; padding: 6px 14px 6px 6px; border-radius: 999px; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 1px rgba(230, 169, 28, .35), 0 0 24px rgba(230, 169, 28, .35), 0 14px 28px rgba(0, 0, 0, .35); }
.chip-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%); transform: translateX(-130%); }
.chip-tile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--teal)); }
.chip .icon { width: 18px; height: 18px; color: #fff; stroke-width: 2.2; }
.chip b { font-size: .9rem; color: var(--ink); }
.t-ai { --c: var(--teal); } .t-design { --c: var(--orange); } .t-assess { --c: #c98a0e; } .t-classroom { --c: #2b6cb0; } .t-certs { --c: var(--gold); }
.c1 { --x: -33cqi; --y: -24cqi; --z: 6cqi; } .c2 { --x: 0cqi; --y: -35cqi; --z: -8cqi; } .c3 { --x: 33cqi; --y: -24cqi; --z: 10cqi; }
.c4 { --x: -35cqi; --y: 10cqi; --z: 16cqi; } .c5 { --x: 35cqi; --y: 10cqi; --z: 4cqi; }

@media (prefers-reduced-motion: no-preference) {
  .rig { animation: sway 12s ease-in-out infinite; }
  .lid { animation: lid-open 1.6s cubic-bezier(.3, 1.3, .5, 1) .2s backwards; }
  .screen { animation: screen-flash 8s ease-out 1.6s infinite; }
  .ui-meter i { animation: load 8s ease-in-out 1.6s infinite backwards; }
  .flash { animation: flash 8s ease-out 1.6s infinite; }
  .rays { animation: rays 8s ease-out 1.6s infinite; }
  .chip { animation: fly 8s cubic-bezier(.2, .9, .3, 1.1) infinite backwards; }
  .c1 { animation-delay: 1.65s; } .c2 { animation-delay: 1.7s; } .c3 { animation-delay: 1.75s; } .c4 { animation-delay: 1.8s; } .c5 { animation-delay: 1.85s; }
  .chip-in { animation: float 2.6s ease-in-out infinite alternate; }
  .c2 .chip-in { animation-delay: .5s; } .c3 .chip-in { animation-delay: 1s; } .c4 .chip-in { animation-delay: 1.5s; } .c5 .chip-in { animation-delay: 2s; }
  .chip-in::after { animation: shine 3.2s ease-in-out infinite; }
}
@keyframes sway { 0%, 100% { transform: rotateX(-20deg) rotateY(-24deg); } 50% { transform: rotateX(-16deg) rotateY(-8deg); } }
@keyframes lid-open { from { transform: translateZ(calc(var(--d) / -2)) rotateX(-88deg); } }
@keyframes screen-flash { 0%, 2% { filter: brightness(1); } 5% { filter: brightness(2.2); } 16%, 100% { filter: brightness(1); } }
@keyframes load { 0%, 18% { width: 0; } }
@keyframes flash { 0%, 2% { opacity: 0; transform: scale(0); } 5% { opacity: 1; transform: scale(1); } 15%, 100% { opacity: 0; transform: scale(4.5); } }
@keyframes rays { 0%, 3% { opacity: 0; transform: rotate(0) scale(.4); } 9% { opacity: 1; } 32%, 100% { opacity: 0; transform: rotate(60deg) scale(1.1); } }
@keyframes fly {
  0%, 4% { opacity: 0; transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(.1) rotate(-30deg); }
  7% { opacity: 1; }
  16% { transform: translate(-50%, -50%) translate3d(calc(var(--x) * 1.08), calc(var(--y) * 1.08), var(--z)) scale(1.12) rotate(0); }
  21%, 80% { opacity: 1; transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) scale(1) rotate(0); }
  92%, 100% { opacity: 0; transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(.1) rotate(30deg); }
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-7px); } }

/* why learn here */
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: -48px auto 0; padding: 0 24px; position: relative; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 49, 58, .12); }
.feature h3 { font-size: 1.12rem; color: var(--teal-deep); margin-block: 14px 6px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature-mark { display: block; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); position: relative; }
.feature-mark::after { content: ""; position: absolute; inset: 14px; background: var(--orange); transform: rotate(45deg); border-radius: 2px; }
.feature:nth-child(2) .feature-mark { background: var(--gold-tint); }
.feature:nth-child(2) .feature-mark::after { background: var(--teal); }
.feature:nth-child(3) .feature-mark::after { background: var(--gold); }

/* first learning path, like a TryHackMe path card */
.path-section { max-width: 1140px; margin: 0 auto; padding: 72px 24px 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.path-intro h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--teal-deep); margin-block: 10px; }
.path-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.path li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; border-inline-start: 4px solid var(--teal); }
.path li.task { border-inline-start-color: var(--gold); }
.path-kind { font-size: .75rem; font-weight: 700; color: var(--teal-deep); background: var(--teal-tint); padding: 2px 9px; border-radius: 999px; }
.path li.task .path-kind { color: #7a5310; background: var(--gold-tint); }
.path-name { font-weight: 600; }
.path-min { font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); }
.path.compact li { padding: 9px 12px; }
.path-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* how it works */
.landing-steps { max-width: 1140px; margin: 0 auto; padding: 56px 24px 24px; }
.landing-steps h2 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: var(--teal-deep); }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; align-items: flex-start; gap: 14px; }
.steps li p { margin: 4px 0 0; color: var(--ink-soft); }
.step-n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--night); color: var(--gold); font-family: var(--mono); font-size: 1.1rem; }

/* final call to action */
.final-cta { margin: 56px auto 0; padding: 56px 24px; text-align: center; background: radial-gradient(700px 260px at 50% 0, #145060 0, transparent 70%), var(--night); color: var(--on-night); }
.final-cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; }
.final-cta p { color: var(--on-night-soft); font-size: 1.05rem; margin-block-end: 24px; }
.dev-signin { max-width: 520px; margin: 32px auto; }

/* admin: pilot switch */
.panel.pilot.on { border-color: var(--gold); background: var(--gold-tint); }
.panel.pilot h2 .tag { vertical-align: middle; }
.tag.off { color: var(--ink-soft); background: #eef2f2; border-color: var(--line); }

/* signed-in page banners: dark, like a dashboard header */
.hero { background: radial-gradient(700px 240px at 90% 0, #145060 0, transparent 70%), var(--night); border-color: var(--night-line); color: var(--on-night); }
.hero h1 { color: #fff; }
.hero p { color: var(--on-night-soft); }
.hero button.quiet { background: transparent; color: var(--on-night); border-color: var(--night-line); margin-block-end: 10px; }
.hero button.quiet:hover { background: var(--night-2); }

/* footer: intellectual property */
.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; padding: 22px 16px; border-block-start: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; background: var(--paper); }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding-block: 44px 80px; }
  .laptop-stage { max-width: 400px; }
  .landing-features, .steps { grid-template-columns: 1fr; }
  .path-section { grid-template-columns: 1fr; padding-block-start: 48px; }
}
@media (max-width: 480px) {
  .hero-ctas > button { width: 100%; }
  .chip-in { padding: 4px 10px 4px 4px; gap: 6px; }
  .chip-tile { width: 24px; height: 24px; }
  .c1 { --x: -27cqi; } .c3 { --x: 27cqi; } .c4 { --x: -24cqi; --y: 20cqi; } .c5 { --x: 24cqi; --y: 20cqi; }
  .chip b { font-size: .8rem; }
  .chip .icon { width: 14px; height: 14px; }
  .bar-actions button { padding: .45em .8em; font-size: .9rem; }
}

@media (max-width: 760px) {
  .onboard { grid-template-columns: 1fr; gap: 16px; }
  .route { display: flex; gap: 6px; overflow-x: auto; }
  .route::before { display: none; }
  .route li { padding: 28px 0 0; margin: 0; flex: 1; font-size: .78rem; min-width: 70px; }
  .route li::before { inset-inline-start: 2px; inset-block-start: 2px; }
  .grid2 { grid-template-columns: 1fr; }
  th:nth-child(4), td:nth-child(4) { display: none; }
  main { padding: 20px 16px 48px; }
  .bar { padding: 6px 16px; }
  .brand img { height: 40px; }
  .hero { padding: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .onboard-body, .hero { animation: arrive .35s ease-out; }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
}

/* ---- signed-in pages: dark header with icon menu (TryHackMe style); the logo keeps its colours on a white tile ---- */
.bar-menu { display: none; }
body[data-view=app] .bar { background: var(--night); box-shadow: none; }
body[data-view=app] .brand { background: #fff; border-radius: 10px; padding: 3px 10px; }
body[data-view=app] .brand img { height: 46px; }
body[data-view=app] .bar-actions button.quiet { background: transparent; color: var(--on-night); border-color: var(--night-line); }
body[data-view=app] .bar-actions button.quiet:hover { background: var(--night-2); }
body[data-view=app] .bar-menu { display: flex; gap: 2px; flex: 1; justify-content: center; }
.bar-menu button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: transparent; border: 0; border-radius: 8px; color: var(--on-night-soft); padding: 6px 14px; white-space: nowrap; }
.bar-menu button:hover { background: var(--night-2); color: #fff; border: 0; }
.bar-menu button[aria-current=page] { color: var(--gold); }
.icon, .art-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bar-menu .icon { width: 26px; height: 26px; }
body[data-view=app] main { max-width: 1200px; }

/* Learn: hero with the laptop, level pills, groups beside the course cards */
.learn-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px 44px;
  margin-block-end: 28px; border-radius: 18px; overflow: hidden; color: var(--on-night);
  background: radial-gradient(700px 300px at 85% 10%, #145060 0, transparent 70%), var(--night); }
.learn-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.25; margin-block: 10px 12px; }
.learn-hero .lead { color: var(--on-night-soft); font-size: 1.08rem; margin: 0; }
.learn-hero .laptop-stage { margin-block-end: -13%; }  /* less empty floor under the laptop */
.levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-end: 26px; }
.levels button { background: #e4ecec; color: var(--ink); border: 0; border-radius: 999px; padding: .55em 1.3em; }
.levels button:hover { background: #d6e3e3; border: 0; }
.levels button[aria-pressed=true] { background: var(--teal); color: #fff; }
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; background: #e8efef; border-radius: 18px; padding: 22px; }
.groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 16px; }
.groups button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: start;
  background: transparent; color: var(--ink); border: 0; font-weight: 400; padding: .6em .9em; border-radius: 8px; }
.groups button:hover { background: rgba(255, 255, 255, .65); border: 0; }
.groups button[aria-pressed=true] { background: var(--paper); font-weight: 600; box-shadow: var(--shadow); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; align-content: start;
  background: var(--paper); border-radius: 14px; padding: 16px; }
.course { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(18, 49, 58, .12); }
.course h3 { flex: 1; margin: 0; font-size: 1.02rem; }
.course > button, .course > .tag { align-self: flex-start; margin: 0; }

/* card art: gradient per group, a glowing tool line icon, a light sheen on hover */
.course-art { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center; overflow: hidden; color: #fff; }
.course-art::after { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, .32), transparent 68%); }
.course-art::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%); transform: translateX(-130%); }
.art-icon { position: relative; z-index: 1; width: 36%; height: auto; stroke-width: 1.4; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.art-tool { position: absolute; z-index: 1; inset-block-end: 8px; inset-inline-start: 10px; font-size: .76rem; font-weight: 600; background: rgba(0, 0, 0, .28); padding: 1px 9px; border-radius: 999px; }
.ribbon { position: absolute; z-index: 3; inset-block-start: 10px; inset-inline-start: 10px; background: var(--gold); color: #1d1500; font-size: .76rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.g-ai { background: radial-gradient(circle at 70% 25%, #1fb5ad, transparent 60%), linear-gradient(135deg, #0b6b74, #07343c); }
.g-design { background: radial-gradient(circle at 70% 25%, #ffb45c, transparent 60%), linear-gradient(135deg, #ee7d16, #a3372a); }
.g-assess { background: radial-gradient(circle at 70% 25%, #ffe08a, transparent 60%), linear-gradient(135deg, #d99a12, #8f5c06); }
.g-classroom { background: radial-gradient(circle at 70% 25%, #6aa7e8, transparent 60%), linear-gradient(135deg, #2b6cb0, #183a6b); }
.g-office { background: radial-gradient(circle at 70% 25%, #6fd39d, transparent 60%), linear-gradient(135deg, #2f855a, #174531); }
.g-safety { background: radial-gradient(circle at 70% 25%, #b49cf0, transparent 60%), linear-gradient(135deg, #6b46c1, #33205f); }
.level { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; border-radius: 1px; background: currentColor; opacity: .28; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 12px; }
.l-scratch { color: #2f855a; } .l-scratch i:nth-child(1) { opacity: 1; }
.l-basics { color: #c25f0a; } .l-basics i:nth-child(-n+2) { opacity: 1; }
.l-expert { color: var(--rust); } .l-expert i { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .course:hover .course-art::before { animation: sheen .9s ease-out; }
}
@keyframes shine { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes sheen { to { transform: translateX(130%); } }

@media (max-width: 1000px) {
  body[data-view=app] .bar { flex-wrap: wrap; }
  body[data-view=app] .bar-menu { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 860px) {
  .learn-hero { grid-template-columns: 1fr; padding: 26px 22px; }
  .catalog { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .groups ul { display: flex; overflow-x: auto; position: static; }
  .groups button { white-space: nowrap; }
}
@media (max-width: 480px) {
  .bar-menu button { padding: 4px 10px; font-size: .85rem; }
  body[data-view=app] .brand img { height: 36px; }
}

/* ---- course page ---- */
.panel.start { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-color: var(--gold); background: var(--gold-tint); }
.panel.start p { margin: 0; max-width: 40em; }
.progress-line { display: flex; align-items: center; gap: 14px; margin-block-end: 24px; font-weight: 600; color: var(--teal-deep); }
.progress-line .meter { flex: 1; max-width: 360px; height: 10px; border-radius: 5px; background: var(--teal-tint); overflow: hidden; }
.progress-line .meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(to left, var(--teal), var(--teal-light)); }
.meter .w0 { width: 0; } .meter .w1 { width: 25%; } .meter .w2 { width: 50%; } .meter .w3 { width: 75%; } .meter .w4 { width: 100%; }
.path + h2 { margin-block-start: 28px; }
.path li.done { border-inline-start-color: var(--teal-light); background: #f6fbfb; }
button.link { background: none; border: 0; padding: 0; color: var(--teal-deep); font-weight: 600; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { background: none; color: var(--teal); }
.tag.done { color: #fff; background: var(--teal); border-color: var(--teal); }

/* ---- lesson page ---- */
.lesson .tabs button { display: inline-flex; align-items: center; gap: 2px; }
.lesson .tabs .count { margin-inline: 0 6px; }
.prose { max-width: 820px; font-size: 1.04rem; }
.prose h2 { color: var(--teal-deep); margin-block-start: 1.2em; }
.prose h2:first-child { margin-block-start: 0; }
.prose ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-block-end: .35em; }
.tip { border-inline-start: 4px solid var(--orange); background: #fff4e8; padding: 12px 16px; border-radius: 6px; }
.lesson-next { display: flex; justify-content: flex-end; }

/* simulation: screenshot with an SVG layer on top in the screenshot's own pixels */
.sim { max-width: 980px; }
.sim-stage { position: relative; margin: 0 0 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; line-height: 0; }
.sim-stage img { width: 100%; height: auto; display: block; }
.sim-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sim-layer.try { cursor: pointer; }
.hot { fill: transparent; stroke: transparent; stroke-width: 5; outline: none; }
.watch .hot { stroke: var(--orange); fill: rgba(238, 125, 22, .1); }
.hot.hint { stroke: var(--orange); fill: rgba(238, 125, 22, .14); }
.hot.right { stroke: var(--teal-light); fill: rgba(18, 160, 154, .18); }
.hot:focus-visible { stroke: var(--gold); stroke-width: 6; }
.cursor path { fill: #1f1f1f; stroke: #fff; stroke-width: 2.5; }
.sim-bar { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.sim-count { font-size: .88rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.sim-caption { margin: 0; font-weight: 600; font-size: 1.05rem; }
.sim-feedback { min-height: 1.6em; margin: 8px 0; color: var(--teal-deep); font-weight: 600; }
.sim-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-note { margin-block-start: 14px; font-size: .85rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) {
  .cursor { transition: transform 1.1s cubic-bezier(.5, 0, .3, 1); }
  .watch .hot, .hot.hint { animation: hot-pulse 1.4s ease-in-out infinite; }
}
@keyframes hot-pulse { 50% { stroke-opacity: .35; } }

/* quiz */
.quiz { max-width: 820px; }
.question { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 6px; margin: 0 0 16px; }
.question legend { font-weight: 600; padding: 0 6px; display: flex; gap: 8px; align-items: baseline; }
.q-n { flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--teal-tint); color: var(--teal-deep); font-family: var(--mono); font-size: .85rem; }
.question .check { margin-block: 8px; }
.order { list-style: decimal; padding-inline-start: 1.6em; margin: 6px 0 10px; }
.order li { padding: 4px 0; }
.order li > span:first-child { display: inline-block; min-width: 14em; }
.order-moves { display: inline-flex; gap: 4px; margin-inline-start: 10px; }
.order-moves button { padding: .15em .6em; }
.marks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.marks li { padding: 8px 12px; border-radius: 6px; border-inline-start: 4px solid var(--teal-light); background: #f3fafa; }
.marks li.no { border-inline-start-color: var(--rust); background: #fbefec; }

/* task */
.task-page .panel { max-width: 860px; }
.scenario p { font-size: 1.04rem; }
.scenario h3 { margin-block: 18px 8px; color: var(--teal-deep); }
.task-steps { padding-inline-start: 1.4em; margin: 0; }
.task-steps li { margin-block-end: .45em; }
.task-form h3 { margin-block: 22px 6px; }
.field { margin-block-end: 16px; }
.field textarea { font: inherit; width: 100%; min-height: 8em; padding: .6em .8em; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); resize: vertical; }
.field textarea:focus { border-color: var(--teal-light); }
.save-status { min-height: 1.5em; margin: 0; font-size: .9rem; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.thumb { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; gap: 8px; align-content: start; background: #f8fbfb; }
.thumb img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 4px; }
.thumb.pending, .thumb.rejected { min-height: 120px; }
.thumb.rejected { border-color: #ecc9c3; background: #fbefec; }
.thumb-note { font-size: .88rem; }
.thumb button { justify-self: start; padding: .3em .9em; }
.privacy-box { margin-block: 22px 16px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid #f1dca4; background: var(--gold-tint); }
.privacy-box h3 { margin-block: 0 8px; }
.privacy-box ul { margin: 0 0 12px; padding-inline-start: 1.3em; }
.answer { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8fbfb; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
/* screenshots inside lesson text */
.prose figure.shot { margin: 18px 0 22px; }
.prose figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figure.shot figcaption { margin-block-start: 8px; font-size: .92rem; color: var(--ink-soft); }/* task review: queue, rubric lines, grade history; the teacher's result */
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.review-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.review-list li > div { flex: 1 1 260px; min-width: 0; }
.review-list p { margin: 2px 0 0; overflow-wrap: anywhere; }
.review .levels { justify-content: flex-start; margin-block: 12px; }
.criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; border-block-end: 1px solid var(--line); padding-block: 12px; }
.criterion > .tip, .criterion > textarea { grid-column: 1 / -1; margin: 0; }
.criterion select { min-width: 5em; font-size: 1rem; padding: 4px 8px; }
.grade-form .total { font-weight: 700; color: var(--teal-deep); margin-block: 14px; }
.grade-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.grade-history li { border-inline-start: 3px solid var(--line); padding-inline-start: 12px; }
.grade-history p { margin: 4px 0 0; }
.scores { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.scores li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-block-end: 1px dashed var(--line); padding-block: 4px; }
.scores li p { flex-basis: 100%; margin: 0; }
.result.retry .message { border-color: var(--rust); background: #fbefec; }
.result { margin-block-end: 18px; }
.criterion textarea, .grade-form textarea { font: inherit; width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
/* training hours */
.progress-line { flex-wrap: wrap; }
.progress-line .hours { flex-basis: 100%; font-weight: 600; color: var(--ink-soft); }
.hours-total { font-size: 1.15rem; font-weight: 700; color: var(--teal-deep); }
.hours-card .meter { display: block; max-width: 420px; height: 10px; border-radius: 5px; background: var(--teal-tint); overflow: hidden; margin-block: 8px; }
.hours-card .hours { font-weight: 600; margin: 4px 0 0; }
.hours-card .meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(to left, var(--teal), var(--teal-light)); }
/* certificates */
.cert-status { margin-block-start: 12px; display: grid; gap: 8px; }
.cert-status .row { display: flex; gap: 10px; flex-wrap: wrap; }
.certs .cert-name { display: grid; gap: 2px; font-size: .85rem; }
.certs .cert-name input, .certs .cert-name select { min-width: 14em; font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; }
.certs details.revoke { flex-basis: 100%; }
.certs details.revoke textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; margin-block: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.cert-actions { display: flex; gap: 10px; justify-content: space-between; margin-block-end: 16px; }
/* the certificate: a teal band (logo, hours, number, QR) on the left in both languages, Arabic above English on white */
.certificate { position: relative; direction: ltr; background: #fff; border: 1px solid var(--line); aspect-ratio: 297 / 210; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 23% 1fr; box-sizing: border-box; overflow: hidden; }
.cert-band { background: linear-gradient(170deg, var(--teal), var(--teal-deep)); color: #fff; padding: 30px 20px 22px; display: flex; flex-direction: column;
  align-items: center; gap: 18px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-tile { background: #fff; border-radius: 14px; padding: 10px 16px; }
.cert-tile img { height: 58px; width: auto; display: block; }
.cert-hours { margin: 26px 0 0; display: flex; flex-direction: column; line-height: 1.5; font-size: .95rem; }
.cert-hours b { font-family: var(--display); font-size: 3.6rem; line-height: 1.05; color: var(--gold); }
.cert-num { margin: auto 0 0; font-size: .75rem; opacity: .92; }
.cert-num .mono { font-size: .9rem; opacity: 1; }
.cert-qr { background: #fff; padding: 7px; border-radius: 10px; display: block; }
.cert-qr .qr { width: 86px; height: 86px; display: block; }
.cert-qr-label { margin: -10px 0 0; font-size: .68rem; opacity: .85; }
.cert-main { padding: 34px 48px 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.cert-side { text-align: start; }
.cert-side.ar { margin-top: auto; }  /* with the English side's auto margin below, the text sits in the middle of the page */
.cert-side.en { margin-bottom: auto; }
.cert-side h2 { font-family: var(--display); color: var(--teal-deep); font-size: 1.85rem; line-height: 1.3; margin: 0; text-align: center; }
.cert-side.en h2 { font-size: 1.5rem; }
.cert-bar { display: block; width: 70px; height: 4px; background: var(--gold); border-radius: 2px; margin: 8px auto 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-body { font-size: 1.12rem; line-height: 1.95; margin: 0 0 6px; }
.cert-side.en .cert-body { font-size: 1rem; line-height: 1.8; }
.cert-name-in { color: var(--teal-deep); font-weight: 600; }
.cert-note { font-size: .72rem; color: var(--ink-soft); margin: 0; }
.cert-main hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
.certificate.revoked .cert-main, .certificate.revoked .cert-band { opacity: .35; }
.cert-stamp { position: absolute; inset: 40% 0 auto; z-index: 2; text-align: center; font-size: 3rem; font-weight: 700; color: var(--rust); transform: rotate(-12deg); margin: 0; }
@media (max-width: 760px) {
  .certificate { aspect-ratio: auto; grid-template-columns: 1fr; }
  .cert-band { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 16px; gap: 12px 18px; }
  .cert-hours { margin: 0; } .cert-num { margin: 0; } .cert-qr-label { margin: 0; flex-basis: 100%; }
  .cert-main { padding: 20px 18px; }
}
@page { size: A4 landscape; margin: 10mm; }
@media print {
  body > header, body > footer, .no-print, .bar, .foot { display: none !important; }
  body, main { background: #fff !important; margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .certificate { width: 100%; max-width: none; height: 189mm; aspect-ratio: auto; box-shadow: none; break-inside: avoid; border: 0;
    grid-template-columns: 23% 1fr !important; }
  .cert-band { flex-direction: column !important; padding: 30px 20px 22px !important; }
  .cert-hours { margin-top: 26px !important; } .cert-num { margin-top: auto !important; } .cert-qr-label { margin-top: -10px !important; flex-basis: auto !important; }
  .cert-main { padding: 34px 48px 20px !important; }
}
/* hours report: the page renders the stored snapshot; printed A4 landscape like the certificate */
.reports .row > .field { flex: 1 1 160px; }
.reports select, .reports input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; }
.report { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 28px; }
.rep-head { display: flex; gap: 18px; align-items: flex-start; border-block-end: 3px solid var(--teal-deep); padding-block-end: 14px; margin-block-end: 16px; }
.rep-head > div { flex: 1; }
.rep-head h1 { font-family: var(--display); color: var(--teal-deep); font-size: 1.5rem; margin: 0 0 4px; }
.rep-head p { margin: 0 0 2px; }
.rep-school { font-weight: 600; font-size: 1.1rem; }
.rep-logo { height: 56px; width: auto; }
.rep-meta { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; font-size: .9rem; }
.rep-meta dt { color: var(--ink-soft); }
.rep-meta dd { margin: 0; font-weight: 600; }
.rep-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-block-end: 18px; }
.rep-tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rep-tile b { font-size: 1.5rem; color: var(--teal-deep); }
.rep-tile span { font-size: .8rem; color: var(--ink-soft); }
.report h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.rep-table th, .rep-table td { padding: 6px 6px; font-size: .82rem; }
.rep-table.narrow { max-width: 640px; }
.rep-defs { font-size: .8rem; color: var(--ink-soft); padding-inline-start: 18px; margin: 0; }
.rep-foot { margin-block-start: 18px; font-size: .82rem; }
.rep-signs { display: flex; gap: 40px; flex-wrap: wrap; margin-block-end: 6px; }
.rep-signs p { flex: 1 1 240px; margin: 0; display: flex; gap: 8px; align-items: flex-end; }
.rep-signs .line { flex: 1; border-block-end: 1px solid var(--ink); height: 28px; }
@media (max-width: 760px) { .rep-tiles { grid-template-columns: repeat(2, 1fr); } .rep-head { flex-wrap: wrap; } }
@media print {
  html { background: #fff !important; }  /* the page tint would print below a report that doesn't fill its last page */
  .report { border: 0; padding: 0; }
  .rep-tiles { grid-template-columns: repeat(5, 1fr) !important; }
  .rep-table tr, .rep-tile, .rep-foot { break-inside: avoid; }
  .rep-table thead { display: table-header-group; }
  .report .table-wrap { overflow: visible; }
}
/* public certificate check */
.verify-page { max-width: 720px; margin: 32px auto; padding: 0 16px; }
.verify-card h1 { font-size: 1.4rem; margin-block-start: 0; }
.verify-status { font-size: 1.2rem; font-weight: 700; padding: 10px 14px; border-radius: 8px; }
.verify-status.valid { color: #fff; background: var(--teal); }
.verify-status.revoked { color: #fff; background: var(--rust); }
.verify-status.replaced { color: var(--ink); background: var(--gold-tint); border: 1px solid var(--gold); }  /* a correction, not a withdrawal */
.verify-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-block-end: 1px solid var(--line); padding-block: 8px; margin: 0; }
.verify-label { color: var(--ink-soft); }
.verify-value { font-weight: 600; }
.cert-sides { align-content: center; align-items: center; }
.cert-body { font-size: 1.15rem; }
/* path description */
.about summary { cursor: pointer; list-style: none; }
.about summary::-webkit-details-marker { display: none; }
.about summary h2 { display: inline; }
.about summary::after { content: " ▾"; color: var(--ink-soft); }
.about[open] summary::after { content: " ▴"; }
.about ul.skills li::marker { content: "✓  "; color: var(--teal); }
.about ul.gets { padding-inline-start: 20px; }
.about ul li { margin-block: 4px; }
.card-time { margin: 0; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
/* learner feedback */
.stars { color: #e0a100; letter-spacing: 1px; }
.stars-off { color: #d5dcdc; }
.stats-line { margin: 0; font-size: .85rem; }
.course { position: relative; }
.course-pop { visibility: hidden; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s; position: absolute; z-index: 30; inset-inline-start: -8px; top: 40%; width: max(calc(100% + 16px), 320px); max-width: 90vw;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(18, 49, 58, .22); padding: 14px 16px; font-size: .9rem; }
.course-pop p { margin: 0 0 8px; }
.course-pop ul { margin: 0 0 8px; padding-inline-start: 18px; }
.course-pop ul.skills li::marker { content: "✓  "; color: var(--teal); }
@media (hover: hover) { .course:hover .course-pop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; } }
.course:focus-within .course-pop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .course-pop { transition: none; transform: none; } }
/* the description is typed out in a clear digital face (Plex Mono; Arabic letters fall back to Plex Arabic) */
.pop-type { display: grid; font-family: "Plex Mono", "Plex Arabic", monospace; font-size: .86rem; line-height: 1.65; color: var(--ink); }
.pop-type > span { grid-area: 1 / 1; }
.pop-type .ghost { visibility: hidden; }
.pop-type .typed.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px;
  vertical-align: text-bottom; background: var(--teal); animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (hover: none) { .course-pop { display: none !important; } }
ul.comments { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
ul.comments li p { margin: 2px 0 0; }
.my-review { border-block-start: 1px solid var(--line); margin-block-start: 14px; padding-block-start: 10px; }
.star-pick { display: flex; gap: 4px; margin-block: 6px 10px; flex-direction: row; }
.star-pick label { cursor: pointer; font-size: 1.8rem; line-height: 1; color: #d5dcdc; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label:has(input:checked), .star-pick label:has(~ label input:checked) { color: #e0a100; }
.star-pick label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.course-pop { top: calc(100% - 6px); inset-inline-start: 0; width: 100%; max-width: none; box-sizing: border-box; }
/* the tool's real logo on a white tile inside the card art */
.art-logo { position: relative; z-index: 1; display: grid; place-items: center; width: 62%; height: 46%; background: #fff; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28); padding: 10px 14px; box-sizing: border-box; }
.art-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
