/* =========================================================
   hasans.net — main stylesheet
   Colors are CSS variables, switched by the Colors panel
   through data attributes on <html>: data-brand, data-bg, data-mode
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* brand (slate blue, the default) */
  --brand: #1C3953;
  --brand-dark: #142B40;
  --on-brand: #FFFFFF;
  --on-brand-muted: #C3CFDB;
  --line-strong: rgba(255, 255, 255, .3);
  --line-soft: rgba(255, 255, 255, .12);
  --brand-ink: #1C3953;          /* headings that use the brand color */

  /* orange accent */
  --accent: #F86010;
  --on-accent: #0F2133;          /* text on orange buttons */
  --accent-ink: #A63F0A;         /* orange text on light backgrounds */
  --accent-lite: #FF9A5C;        /* orange text on the blue */

  /* surfaces (light gray background, the default) */
  --bg: #E4E4E4;
  --surface: #FFFFFF;
  --band: #F2F2F2;
  --border: #D4D4D4;
  --border-2: #BDBDBD;
  --chip: #E3EAF1;
  --chip-ink: #1C3953;
  --text: #0A1F44;
  --muted: #4A5568;
  --body: #2D3748;
  --hl: #FFF1E8;

  /* type and shape */
  --font-display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 16px 40px rgba(10, 31, 68, .12);
  --max: 1240px;
  --gutter: 24px;
}

html[data-brand="royal"] { --brand: #052E74; --brand-dark: #04215A; --brand-ink: #052E74; }
html[data-brand="navy"]  { --brand: #0A1F44; --brand-dark: #071631; --brand-ink: #0A1F44; }
html[data-brand="gray"]  {
  --brand: #E4E4E4; --brand-dark: #CCCCCC;
  --on-brand: #0A1F44; --on-brand-muted: #3D4A5C;
  --line-strong: rgba(10, 31, 68, .3); --line-soft: rgba(10, 31, 68, .12);
  --brand-ink: #0A1F44; --accent-lite: #A63F0A;
}
html[data-bg="white"] { --bg: #FFFFFF; --band: #E4E4E4; }
html[data-mode="dark"][data-bg] {
  --bg: #0F2133; --surface: #1C3953; --band: #152C42;
  --border: #2B4C69; --border-2: #3D5F7D; --chip: #24455F; --chip-ink: #EEF2F8;
  --text: #EEF2F8; --muted: #A9B7D0; --body: #CBD5E6; --hl: #24455F;
  --accent-ink: #FF9A5C; --brand-ink: #EEF2F8;
  --shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
html[data-mode="dark"][data-brand="slate"] { --brand: #142B40; --brand-dark: #0B1C2C; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--accent-ink); }
.on-brand .kicker, .kicker-lite { color: var(--accent-lite); }

/* Image placeholder: replace with real <img> tags later */
.ph {
  background-color: rgba(120, 130, 145, .14);
  background-image: repeating-linear-gradient(135deg, rgba(120, 130, 145, .18) 0 2px, transparent 2px 14px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  background: transparent;
}
.btn-lg { min-height: 52px; padding: 0 24px; border-radius: var(--radius); font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-outline { border-color: var(--border-2); color: var(--text); background: var(--surface); }
.btn-outline-brand { border-color: var(--brand-ink); color: var(--brand-ink); background: transparent; }
.btn-ghost-on-brand { border-color: var(--line-strong); color: var(--on-brand); }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.site-header .icon-btn { border: 0; background: var(--line-soft); color: var(--on-brand); }
.site-header .icon-btn-accent { background: var(--accent); color: var(--on-accent); }

/* ---------- Tags ---------- */
.tag { display: inline-block; padding: 3px 8px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; font-weight: 600; line-height: 1.4; }
.tag-ai       { background: #E3EAF1; color: #1C3953; }
.tag-security { background: #FDE8E8; color: #9B1C1C; }
.tag-cloud    { background: #E0F2FE; color: #075985; }
.tag-hardware { background: #EDE9FE; color: #5B21B6; }
.tag-dev      { background: #DCFCE7; color: #166534; }
.tag-industry { background: #FFF1E8; color: #9A3412; }
.tag-featured { background: var(--accent); color: var(--on-accent); }
.tag-outline  { border: 1px solid var(--border-2); color: var(--muted); }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--brand); color: var(--on-brand); border-bottom: 1px solid var(--line-soft); }
.header-row { display: flex; align-items: center; gap: 16px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 44px; width: auto; }
.logo-on-light { display: none !important; }
html[data-brand="gray"] .site-header .logo-on-dark,
html[data-brand="gray"] .site-footer .logo-on-dark { display: none !important; }
html[data-brand="gray"] .site-header .logo-on-light,
html[data-brand="gray"] .site-footer .logo-on-light { display: block !important; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 auto; font-size: 15px; font-weight: 500; }
.main-nav a { padding: 10px 0; }
.main-nav a[aria-current="page"] { color: var(--accent-lite); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search {
  display: flex; align-items: center; gap: 8px; width: 230px; height: 44px; padding: 0 12px;
  border-radius: 10px; background: var(--line-soft); border: 1px solid var(--line-soft); color: var(--on-brand-muted);
}
.header-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--on-brand); font-size: 14px; }
.header-search input::placeholder { color: var(--on-brand-muted); }
.show-sm { display: none !important; }

/* Colors panel */
.colors { position: relative; }
.colors-panel {
  position: absolute; inset-inline-end: 0; top: 52px; z-index: 40; width: 270px; padding: 18px;
  border-radius: 14px; background: #FFFFFF; color: #0A1F44; box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: 10px;
}
.colors-panel[hidden] { display: none; }
.panel-label { font-family: var(--font-mono); font-size: 12px; color: #4A5568; margin-top: 4px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #D4D4D4; }
.swatch[aria-pressed="true"] { border-color: #F86010; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; height: 40px; border-radius: 8px; border: 1px solid #D4D4D4; background: #FFFFFF; color: #0A1F44; font-size: 13px; }
.seg button[aria-pressed="true"] { background: #0A1F44; border-color: #0A1F44; color: #FFFFFF; font-weight: 600; }

/* Phone menu */
.mobile-menu { padding: 4px var(--gutter) 20px; border-top: 1px solid var(--line-soft); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-menu nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 17px; font-weight: 600; }
.mobile-menu nav a[aria-current="page"] { color: var(--accent-lite); }

/* ---------- Breaking bar ---------- */
.breaking { background: var(--brand-dark); color: var(--on-brand); border-top: 1px solid var(--line-soft); }
.breaking .container { min-width: 0; display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
.breaking-label { flex: 0 0 auto; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.breaking-list { display: flex; gap: 32px; white-space: nowrap; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.breaking-list a { display: flex; align-items: center; gap: 10px; }
.breaking-list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lite); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-band { background: var(--band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head > * { min-width: 0; max-width: 100%; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 6px; letter-spacing: -.01em; }
.see-all { font-weight: 600; color: var(--accent-ink); padding: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
}
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--bg); font-weight: 600; }
html[data-mode="dark"] .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); }
.chip[aria-current="true"] .count { background: var(--accent); color: var(--on-accent); }

/* ---------- Home: hero ---------- */
.hero { background: var(--brand); color: var(--on-brand); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 20px 0; }
.hero p { font-size: 19px; color: var(--on-brand-muted); max-width: 520px; margin-bottom: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.featured { background: var(--surface); color: var(--text); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
.featured .ph { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 16px; }
.featured .ph span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.featured-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.featured-body h2 { font-size: 26px; }
.hero .featured p { color: var(--muted); font-size: 15px; margin: 0; max-width: none; }

/* Category cards */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; padding-top: 48px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cat-icon { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.cat-card strong { font-family: var(--font-display); font-size: 20px; }
.cat-card span { color: var(--muted); font-size: 15px; }
.cat-card .go { color: var(--accent-ink); font-weight: 600; font-size: 14px; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-card .ph { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--border); }
.news-card h3 { font-size: 21px; line-height: 1.25; }
.news-card p { color: var(--muted); font-size: 15px; }
.center { display: flex; justify-content: center; margin-top: 32px; }

/* Tool cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tool-top { display: flex; align-items: center; gap: 12px; }
.tool-top > div { flex: 1; min-width: 0; }
.tool-top h3 { font-size: 18px; }
.tool-top small { display: block; font-size: 13px; color: var(--muted); }
.avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: var(--radius); background: var(--chip); color: var(--chip-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.avatar-lg { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; font-size: 22px; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rating span { font-weight: 400; color: var(--muted); }
.star { fill: var(--accent); }
.best { font-size: 15px; color: var(--muted); }
.best b { color: var(--text); font-weight: 600; }
.pros { padding: 12px; border-radius: 10px; background: var(--band); font-size: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pros .plus { color: #15803D; font-weight: 700; margin-inline-end: 8px; }
.pros .minus { color: #B91C1C; font-weight: 700; margin-inline-end: 8px; }
html[data-mode="dark"] .pros .plus { color: #4ADE80; }
html[data-mode="dark"] .pros .minus { color: #F87171; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; font-size: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* Lectures (home) */
.lecture-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.play { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
.duration { position: absolute; inset-inline-end: 14px; bottom: 14px; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font-family: var(--font-mono); font-size: 12px; }
.lecture-feature { display: flex; flex-direction: column; gap: 14px; }
.lecture-feature h3 { font-size: 26px; }
.row-list { display: flex; flex-direction: column; gap: 12px; }
.row-item { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.row-item .ph { width: 148px; flex: 0 0 148px; aspect-ratio: 16 / 9; border-radius: 10px; }
.row-item strong { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; }

/* Programs table (home) */
.table-wrap { position: relative; border: 1px solid var(--border); border-radius: 16px; overflow-x: auto; background: var(--surface); }
.table { width: 100%; min-width: 760px; border-collapse: collapse; }
.table th { text-align: start; padding: 14px 20px; background: var(--band); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.table td { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.prog-name { display: flex; align-items: center; gap: 12px; }
.prog-name .avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 16px; }
.prog-name b { display: block; font-size: 15px; }
.safe-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.safe-note svg { color: #15803D; flex: 0 0 auto; }

/* Newsletter */
.newsletter { border-radius: 24px; background: var(--brand); color: var(--on-brand); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.newsletter > div { flex: 1 1 360px; }
.newsletter h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.newsletter p { color: var(--on-brand-muted); font-size: 17px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 360px; }
.inline-form input { flex: 1 1 220px; height: 52px; padding: 0 16px; border-radius: var(--radius); border: 1px solid #FFFFFF; background: #FFFFFF; color: #0A1F44; }
.form-done { padding: 14px 18px; border-radius: var(--radius); background: var(--line-soft); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: var(--on-brand); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; font-size: 15px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.logo) { color: var(--on-brand); padding: 2px 0; }
.footer-brand p { color: var(--on-brand-muted); }
.footer-brand .logo img { height: 40px; }
.footer-label { font-family: var(--font-mono); font-size: 12px; color: var(--on-brand-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--on-brand-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--brand); color: var(--on-brand); }
.page-hero .container { padding-top: 40px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(34px, 4.5vw, 54px); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 10px; }
.page-hero p { font-size: 18px; color: var(--on-brand-muted); max-width: 640px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.page-hero .crumbs { color: var(--on-brand-muted); }
.big-search { display: flex; align-items: center; gap: 10px; max-width: 760px; min-height: 58px; margin-top: 24px; padding: 6px 6px 6px 18px; border-radius: 14px; background: #FFFFFF; color: #4A5568; border: 2px solid transparent; }
.big-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #0A1F44; font-size: 17px; }
.big-search-outline { border-color: var(--brand-ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 16px; }
.select { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

.with-sidebar { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.with-sidebar > .content { flex: 999 1 600px; min-width: 0; }
.with-sidebar > .sidebar { flex: 1 1 260px; display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.box-brand { background: var(--brand); color: var(--on-brand); border: 0; }
.box h2 { font-size: 18px; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { min-height: 42px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; }
.side-nav a[aria-current="true"] { background: var(--brand-ink); color: var(--bg); font-weight: 600; }
html[data-mode="dark"] .side-nav a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.pager a[aria-current="page"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--bg); font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 15px; }
.notice svg { color: #15803D; flex: 0 0 auto; }
.dashed { border: 1px dashed var(--border-2); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.dashed h2 { font-size: 28px; margin-bottom: 6px; }

/* Programs page */
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pick { background: var(--brand); color: var(--on-brand); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.pick .avatar { background: var(--line-soft); color: var(--on-brand); }
.pick small { color: var(--on-brand-muted); font-size: 13px; display: block; }
.prog-row { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.prog-row .info { flex: 1 1 240px; min-width: 0; }
.prog-row h3 { font-size: 18px; display: inline; margin-right: 8px; }
.prog-row .specs { font-size: 13px; color: var(--muted); min-width: 150px; }
.cat-pill { padding: 2px 8px; border-radius: var(--radius-sm); background: var(--chip); color: var(--chip-ink); font-family: var(--font-mono); font-size: 11px; font-weight: 600; vertical-align: middle; }

/* Lecture page */
.lecture-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.person { display: flex; align-items: center; gap: 12px; }
.person .ph { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs button { min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.outcomes span::before { content: "✓"; color: var(--accent-ink); margin-inline-end: 10px; font-weight: 700; }
.chapter-list { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.chapter-list header { padding: 20px; border-bottom: 1px solid var(--border); }
.progress { height: 6px; border-radius: 3px; background: var(--border); margin-top: 12px; }
.progress span { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
.chapter-list a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); }
.chapter-list a:first-of-type { border-top: 0; }
.chapter-list a[aria-current="true"] { background: var(--hl); box-shadow: inset 3px 0 0 var(--accent); }
.chapter-list .n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); width: 24px; }
.chapter-list .t { flex: 1; font-size: 15px; }
.file-link { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.file-link span:last-child { color: var(--accent-ink); font-weight: 600; }

/* Article page */
.read-progress { position: sticky; top: 0; z-index: 25; height: 4px; background: var(--border); }
.read-progress span { display: block; height: 4px; width: 0; background: var(--accent); transition: width .1s linear; }
.article { flex: 999 1 560px; min-width: 0; max-width: 780px; }
.article h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.02em; color: var(--brand-ink); margin: 16px 0; }
.standfirst { font-size: 20px; line-height: 1.5; color: var(--muted); margin-bottom: 28px; }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.byline .actions { display: flex; gap: 8px; }
figure { margin: 0 0 32px; }
figure .ph { aspect-ratio: 16 / 9; border-radius: 16px; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.takeaways { padding: 20px 24px; border-radius: 14px; background: var(--band); margin-bottom: 32px; border: 1px solid var(--border); }
.takeaways strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--brand-ink); margin-bottom: 10px; }
.takeaways li { color: var(--body); margin: 4px 0; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li::before { content: "→"; color: var(--accent-ink); font-weight: 700; margin-inline-end: 10px; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 26px; line-height: 1.3; color: var(--text); margin-top: 12px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }
.prose blockquote { margin: 8px 0; padding-block: 4px; padding-inline: 24px 0; border-inline-start: 4px solid var(--accent); font-family: var(--font-display); font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--brand-ink); }
.prose blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 14px; font-weight: 500; font-style: normal; color: var(--muted); }
.prose pre { margin: 0; padding: 20px; border-radius: var(--radius); background: #142B40; color: #E3EAF1; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.hashtags a { min-height: 36px; padding: 0 14px; display: flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; }
.author-box { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.author-box .ph { width: 72px; height: 72px; border-radius: 50%; flex: 0 0 72px; }
.author-box > div { flex: 1 1 260px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
textarea, .input { width: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); }
.input { height: 50px; padding: 0 14px; }
.comment { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.comment .ph { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; }
.trending a { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); font-weight: 600; font-size: 15px; line-height: 1.4; }
.trending .num { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--accent-ink); width: 24px; flex: 0 0 24px; }
.action-bar { display: none; }

/* Search page */
.result { display: flex; gap: 18px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.result .ph { width: 168px; flex: 0 0 168px; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.result h2 { font-size: 19px; line-height: 1.3; margin: 6px 0; }
.result p { font-size: 14px; color: var(--muted); }
mark { background: #FFE3CF; color: #0A1F44; padding: 0 2px; border-radius: 3px; }
.type-news { background: #FDE8E8; color: #9B1C1C; }
.type-tool { background: #E3EAF1; color: #1C3953; }
.type-lecture { background: #DCFCE7; color: #166534; }
.type-program { background: #FFF1E8; color: #9A3412; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Login page */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-side { min-width: 0; flex: 1 1 480px; background: var(--brand); color: var(--on-brand); padding: 48px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-side p { font-size: 18px; color: var(--on-brand-muted); max-width: 440px; margin-bottom: 28px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side li::before { content: "✓"; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.auth-side .logo img { height: 52px; }
.auth-main { min-width: 0; flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.auth-card h2 { font-size: 26px; margin-bottom: 4px; }
.switcher { display: flex; padding: 4px; border-radius: var(--radius); background: var(--bg); margin-bottom: 24px; }
.switcher a { flex: 1; min-height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.switcher a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label-row { font-size: 14px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { color: var(--accent-ink); }
.pw { display: flex; align-items: center; height: 50px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); padding: 0 4px 0 14px; }
.pw input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; }
.pw button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--hl); border: 1px solid var(--accent); font-size: 14px; margin-bottom: 16px; }
.link-btn { border: 0; background: transparent; padding: 8px 4px; color: var(--accent-ink); font-weight: 700; }

/* 404 + coming soon */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.center-page main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.center-box { width: 100%; min-width: 0; max-width: 680px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.big-404 { font-family: var(--font-display); font-weight: 800; font-size: clamp(96px, 14vw, 160px); line-height: 1; letter-spacing: -.04em; color: var(--brand-ink); }
.big-404 span { color: var(--accent); }
.terminal { font-family: var(--font-mono); font-size: 14px; padding: 6px 12px; border-radius: 8px; background: #142B40; color: #E3EAF1; }
.soon { background: var(--brand); color: var(--on-brand); }
.soon-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.soon-top .logo img { height: 48px; }
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 12px 0; }
.countdown div { width: 104px; padding: 18px 0; border-radius: 16px; background: var(--brand-dark); border: 1px solid var(--line-soft); }
.countdown b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; }
.countdown small { display: block; font-size: 13px; color: var(--on-brand-muted); margin-top: 6px; }
.countdown div:last-child b { color: var(--accent-lite); }
.soon .muted { color: var(--on-brand-muted); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-search, .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .header-row { justify-content: space-between; }
  .colors-toggle span { display: none; }
  .colors-toggle { padding: 0; width: 44px; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .logo img { height: 36px; }
  .section { padding: 48px 0; }
  .hero-grid { padding-top: 36px; padding-bottom: 48px; gap: 28px; }
  .hero p { font-size: 17px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 28px; }
  .cat-card { padding: 16px; gap: 8px; }
  .cat-card span:not(.cat-icon), .cat-card .go { display: none; }
  .cat-card strong { font-size: 16px; }
  /* news becomes a compact list on phones */
  .news-grid { gap: 0; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
  .news-card { flex-direction: row; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
  .news-card:last-child { border-bottom: 0; }
  .news-card .ph { width: 96px; height: 72px; flex: 0 0 96px; aspect-ratio: auto; border-radius: 10px; }
  .news-card h3 { font-size: 15px; line-height: 1.3; }
  .news-card p { display: none; }
  .news-card > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chips-scroll .chip { flex: 0 0 auto; }
  .row-item .ph { width: 96px; flex-basis: 96px; }
  .result { flex-direction: column; }
  .result .ph { width: 100%; flex-basis: auto; }
  .prose { font-size: 17px; }
  .standfirst { font-size: 17px; }
  .action-bar { display: flex; position: sticky; bottom: 0; z-index: 20; gap: 10px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
  .action-bar .btn { flex: 1; }
  .auth-side { padding: 28px 20px; gap: 24px; }
  .auth-side ul, .auth-side .copy { display: none; }
  .auth-card { padding: 24px 20px; }
  .countdown div { width: 76px; }
  .countdown b { font-size: 30px; }
  .newsletter { border-radius: 18px; }
}

/* ---------- Database content ---------- */
img.ph { width: 100%; height: auto; object-fit: cover; background-image: none; display: block; }
.featured img.ph, .featured .ph.featured-img { aspect-ratio: 16 / 9; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar { overflow: hidden; }
.video-embed { border-radius: 18px; overflow: hidden; background: #000; border: 0; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; }
.prose ul { margin: 0; padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
a.play { color: var(--on-accent); }
.flash { background: #DCFCE7; color: #14532D; border-bottom: 1px solid #86EFAC; font-weight: 600; font-size: 15px; }
.flash .container { padding-top: 12px; padding-bottom: 12px; }
.flash-error { background: #FDE8E8; color: #7F1D1D; border-color: #FCA5A5; }
.site-header form { margin: 0; }

/* ---------- Kurdish (right-to-left) ---------- */
html[dir="rtl"] {
  --font-display: "Noto Kufi Arabic", "Noto Sans Arabic", "Plus Jakarta Sans", Tahoma, sans-serif;
  --font-body: "Noto Sans Arabic", Inter, Tahoma, "Segoe UI", sans-serif;
}
html[dir="rtl"] body { line-height: 1.75; }
/* Arabic script must not be spaced out letter by letter, and needs taller lines. */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0 !important; line-height: 1.45; }
html[dir="rtl"] .hero h1 { line-height: 1.35; }
html[dir="rtl"] .kicker, html[dir="rtl"] .meta, html[dir="rtl"] .tag, html[dir="rtl"] .panel-label,
html[dir="rtl"] .footer-label, html[dir="rtl"] .breaking-label, html[dir="rtl"] .cat-pill,
html[dir="rtl"] .table th, html[dir="rtl"] .chapter-list .n {
  font-family: var(--font-body); letter-spacing: 0;
}
html[dir="rtl"] .kicker { font-size: 14px; font-weight: 600; }
html[dir="rtl"] .tag { font-size: 12px; line-height: 1.6; }
html[dir="rtl"] .takeaways li::before { content: "←"; }
html[dir="rtl"] .chapter-list a[aria-current="true"] { box-shadow: inset -3px 0 0 var(--accent); }
html[dir="rtl"] .prose pre, html[dir="rtl"] .terminal { direction: ltr; text-align: left; }
html[dir="rtl"] .standfirst, html[dir="rtl"] .prose { line-height: 1.95; }
html[dir="rtl"] .icon-flip, html[dir="rtl"] .btn svg.flip { transform: scaleX(-1); }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"] { text-align: left; }
html[dir="rtl"] .big-404 { font-family: "Noto Kufi Arabic", var(--font-display); }
.lang-switch span { font-family: "Noto Sans Arabic", Inter, sans-serif; }
html[dir="rtl"] .lang-switch span { font-family: Inter, sans-serif; }
@media (max-width: 1080px) { .lang-switch span { display: none; } .lang-switch { padding: 0; width: 44px; } }
html[dir="rtl"] .hero h1 { font-size: clamp(30px, 3.6vw, 48px); }
html[dir="rtl"] .page-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.4; }
.main-nav { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1320px) { html[dir="rtl"] .header-search { display: none; } }
html[dir="rtl"] .mono:not(pre):not(code) { font-family: var(--font-body); letter-spacing: 0; }

/* ---------- About / Contact / Submit a tool ---------- */
.form-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 4vw, 32px); }
.form-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form-card .field label { font-size: 14px; font-weight: 600; }
.form-card select.input { padding: 0 12px; }
.form-step { font-size: 18px; padding-top: 8px; border-top: 1px solid var(--border); }
.form-step:first-of-type { border-top: 0; padding-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.mini-stat b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; color: var(--brand-ink); }
.mini-stat span { font-size: 14px; color: var(--muted); }
.social-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.social-inline a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.box:not(.box-brand) .social-inline a { border-color: var(--border-2); }
.social-list { display: flex; flex-direction: column; gap: 4px; }
.social-list a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border-radius: 10px; }
.social-list a:hover { background: var(--band); opacity: 1; }
.contact-list { display: flex; flex-direction: column; gap: 6px; }
.contact-list > a, .contact-list > span { display: flex; align-items: center; gap: 12px; min-height: 40px; color: var(--text); overflow-wrap: anywhere; }
.contact-list svg { color: var(--accent-ink); flex: 0 0 auto; }
.steps { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--body); }

/* ---------- Lecture feedback page (opened from a QR code) ---------- */
.feedback-page { background: var(--brand); }
.fb-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.fb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; max-width: 560px; width: 100%; margin: 0 auto; box-sizing: border-box; color: var(--on-brand); }
.fb-top .logo img { height: 36px; }
.fb-main { flex: 1; padding: 8px 16px 24px; max-width: 560px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.fb-card { background: var(--surface); color: var(--text); border-radius: 20px; padding: 24px 20px; box-shadow: 0 20px 48px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 10px; }
.fb-card h1 { font-size: 24px; line-height: 1.3; }
.fb-form { display: flex; flex-direction: column; gap: 16px; }
.fb-form .field label { font-size: 15px; font-weight: 700; }
.fb-form textarea { font-size: 16px; }
.fb-form .input { font-size: 16px; }
.fb-done { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: #166534; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; }
.fb-foot { text-align: center; color: var(--on-brand-muted); font-size: 13px; margin-top: 16px; }
html[data-brand="gray"] .fb-top .logo-on-dark { display: none !important; }
html[data-brand="gray"] .fb-top .logo-on-light { display: block !important; }

/* Feedback question (student page) */
.fb-lecture { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; color: var(--muted); font-weight: 600; font-size: 15px; }
.fb-question { white-space: normal; }
.fb-question p { margin: 0 0 .4em; font: inherit; }

/* Quiz (student page) */
.qz-main { display: flex; flex-direction: column; gap: 14px; }
.qz-form { display: flex; flex-direction: column; gap: 14px; }
fieldset.fb-card { border: 0; margin: 0; min-width: 0; }
.qz-q { scroll-margin-top: 20px; }
.qz-q.qz-missing { box-shadow: 0 0 0 3px var(--accent), 0 20px 48px rgba(0, 0, 0, .25); }
.qz-q-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.qz-num { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-bg, #1C3953); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.qz-text { font-weight: 600; font-size: 18px; line-height: 1.5; margin: 2px 0 4px; }
.qz-opts { display: flex; flex-direction: column; gap: 8px; }
.qz-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; font-size: 16px; -webkit-tap-highlight-color: transparent; }
.qz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt b { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--band); display: grid; place-items: center; font-size: 14px; }
.qz-opt span { flex: 1; min-width: 0; }
.qz-opt:has(input:checked) { border-color: var(--accent); background: var(--hl, #FFF1E8); }
.qz-opt:has(input:checked) b { background: var(--accent); color: #fff; }
.qz-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.qz-left { text-align: center; margin: 0; min-height: 1.4em; color: #fff; opacity: .85; }
.qz-result { align-items: center; text-align: center; }
.qz-score { --c: #34A853; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 8px 0 2px;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--band) 0); }
.qz-score.low { --c: var(--accent); }
.qz-score > div { width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qz-score b { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.qz-score span { color: var(--muted); font-weight: 600; }
.qz-msg { font-weight: 700; font-size: 18px; margin: 0; }
.qz-review-title { color: #fff; font-size: 20px; margin: 10px 4px 0; }
.qz-mark { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.qz-mark.ok { background: #DCFCE7; color: #166534; } .qz-mark.no { background: #FDECEA; color: #B42318; }
.qz-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qz-review li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; }
.qz-review li b { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--band); display: grid; place-items: center; font-size: 13px; }
.qz-review li span { flex: 1; min-width: 0; }
.qz-review li em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.qz-review li.right { border-color: #34A853; background: #EAF7EE; } .qz-review li.right b { background: #34A853; color: #fff; } .qz-review li.right em { color: #166534; }
.qz-review li.wrong { border-color: #D93025; background: #FDECEA; } .qz-review li.wrong em { color: #B42318; }
.qz-written { background: var(--band); border-radius: 12px; padding: 10px 12px; }
html[data-mode="dark"] .qz-review li.right, html[data-mode="dark"] .qz-review li.wrong { color: #0A1F44; }

/* quiz.hasans.net start page */
.qz-start { text-align: center; align-items: stretch; }
.code-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; text-align: start; }
.code-form label { font-weight: 600; }
.code-input { text-align: center; font-size: 28px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; min-height: 64px; }
