:root {
  --bg: #fbfaf7; --surface: #ffffff; --soft: #f3f1ec; --line: #e7e3da; --ink: #17181c; --muted: #646872;
  --accent: #e2361f; --accent-2: #ff8a3d; --accent-ink: #b8240f; --accent-soft: #fff0ea; --money: #0f7a4a; --money-soft: #e7f6ee;
  --shadow: 0 1px 2px rgba(23, 24, 28, .05), 0 4px 16px rgba(23, 24, 28, .05);
  --radius: 14px; --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1013; --surface: #17191e; --soft: #1e2026; --line: #2a2d35; --ink: #eceef2; --muted: #9a9fab;
    --accent: #ff5a3c; --accent-2: #ff9a4d; --accent-ink: #ff8a6e; --accent-soft: #2a1a16; --money: #4fd394; --money-soft: #15281f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1013; --surface: #17191e; --soft: #1e2026; --line: #2a2d35; --ink: #eceef2; --muted: #9a9fab;
  --accent: #ff5a3c; --accent-2: #ff9a4d; --accent-ink: #ff8a6e; --accent-soft: #2a1a16; --money: #4fd394; --money-soft: #15281f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo b { color: var(--accent); }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--muted); }
.top nav a:hover { background: var(--soft); color: var(--ink); }

/* hero */
.hero { padding: 64px 0 56px; background:
  radial-gradient(900px 380px at 85% -10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
  radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 620px; margin: 18px 0 28px; }
.popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.popular a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.popular a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* search */
.search { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin: 18px 0 24px; }
.search.big { max-width: 860px; margin: 0; padding: 10px; }
.search label { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; background: var(--soft); min-width: 0; }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; font: 600 16px var(--font); color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.search label:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search button, .btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); color: #fff; font: 700 16px var(--font); white-space: nowrap; }
.search button:hover, .btn:hover { filter: brightness(1.06); }
@media (max-width: 720px) {
  .search, .search.big { grid-template-columns: 1fr; }
  .top nav a { padding: 8px 8px; font-size: 14px; }
}

/* blocks */
.block { padding: 44px 16px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.block-head h2, .block > h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.block-head h2 { margin: 0; }
.block-head a { color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--accent); }
.cat b { font-weight: 700; }
.cat span { font-size: 14px; color: var(--muted); }
.places { display: flex; flex-wrap: wrap; gap: 8px; }
.places a { padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.places a span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.places a:hover { border-color: var(--accent); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.cos { list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cos a, .side a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.cos a span, .side a span { color: var(--muted); font-weight: 500; font-size: 14px; }
.cos a:hover, .side a:hover { background: var(--soft); }

/* job cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card-link { display: block; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; font-weight: 700; }
.card-link:hover h3 { color: var(--accent-ink); }
.co { margin: 4px 0 0; color: var(--muted); font-weight: 600; font-size: 15px; }
.co span { margin: 0 7px; opacity: .6; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.chip { padding: 3px 10px; border-radius: 8px; background: var(--soft); font-size: 13px; font-weight: 700; }
.chip.money { background: var(--money-soft); color: var(--money); }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.when { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }

/* listing */
.listing { padding-top: 28px; }
.listing h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.count { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.intro { max-width: 760px; color: var(--muted); margin: 10px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.side { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.side h2 { font-size: 16px; font-weight: 800; margin: 0 0 8px 12px; }
.side a { padding: 7px 12px; font-size: 15px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.pager span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a:hover { border-color: var(--accent); }
.empty { padding: 32px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.co-grid { list-style: none; padding: 0; margin: 20px 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.co-grid a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.co-grid a span { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.co-grid a:hover { border-color: var(--accent); }

/* job page */
.job { padding-top: 28px; }
.job-head { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; position: relative; overflow: hidden; }
.job-head::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.job-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.job-head .co { font-size: 17px; margin-top: 8px; }
.job-head .co a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.head-apply { margin-top: 20px; }
.btn.apply { height: 52px; padding: 0 26px; font-size: 17px; }
.job-body { margin-top: 24px; }
.desc { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow-wrap: anywhere; }
.desc h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.desc h3 { font-size: 17px; font-weight: 800; margin: 22px 0 6px; }
.desc p { margin: 0 0 14px; }
.desc ul { margin: 0 0 14px; padding-left: 22px; }
.desc li { margin: 4px 0; }
.desc .more { padding: 14px 16px; background: var(--accent-soft); border-radius: 12px; font-weight: 600; }
.desc .more a { color: var(--accent-ink); text-decoration: underline; }
.facts dl { margin: 0 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent-ink); }
.facts .btn { width: 100%; }
.facts .src { margin: 12px 12px 0; font-size: 13px; color: var(--muted); }
.facts .src a { display: inline; padding: 0; text-decoration: underline; }
.closed-banner { margin-bottom: 16px; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.closed-note { margin: 0; color: var(--muted); font-weight: 700; }
@media (min-width: 901px) { .job-body aside { position: sticky; top: 80px; } }
@media (max-width: 600px) { .job-head, .desc { padding: 20px; border-radius: 16px; } .card-link { padding: 16px; } }

/* static pages */
.prose { max-width: 760px; padding-top: 40px; padding-bottom: 20px; }
.prose h1 { font-size: 38px; font-weight: 800; margin-bottom: 16px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 28px 0 8px; }
.prose a { color: var(--accent-ink); text-decoration: underline; }
.empty-page { padding: 60px 16px; text-align: center; }
.empty-page h1 { font-size: 36px; font-weight: 800; }
.empty-page .search { margin: 24px auto; text-align: left; }

/* footer */
.foot { margin-top: 64px; padding: 44px 0 28px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.foot-grid p { font-size: 14px; max-width: 300px; }
.foot h4 { margin: 4px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid > div > a:not(.logo) { display: block; padding: 3px 0; font-size: 15px; font-weight: 600; }
.foot-grid > div > a:not(.logo):hover { color: var(--accent-ink); }
.fine { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.fine a { text-decoration: underline; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.facts dd a { display: inline; padding: 0; }

/* universities page */
.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 22px 0 26px; }
.tl-card { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-card b { display: block; font-weight: 800; }
.tl-card span { font-size: 14px; color: var(--muted); }
.tl-card.hot { border-color: var(--accent); background: var(--accent-soft); }
.tl-card.hot b { color: var(--accent-ink); }
.tl-card.past { opacity: .6; }
.uni-filters { display: grid; gap: 10px; margin-bottom: 8px; }
.uni-q input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 16px var(--font); outline: none; }
.uni-q input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.uni-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.uni-chips button { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px var(--font); cursor: pointer; }
.uni-chips button span { color: var(--muted); font-weight: 600; }
.uni-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.uni-chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.unilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.uni { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.uni[hidden] { display: none; }
.uni h3 { font-size: 17px; font-weight: 700; }
.uni .co { margin-top: 2px; font-size: 14px; }
.uni .chips { margin-top: 8px; }
.chip.rg { background: #efe9ff; color: #5b3cc4; }
.chip.warn { background: var(--accent-soft); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.rg { background: #241d3d; color: #b9a6ff; } }
:root[data-theme="dark"] .chip.rg { background: #241d3d; color: #b9a6ff; }
.uni-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.prose-side p { margin: 0 12px 12px; font-size: 14.5px; line-height: 1.55; }
.prose-side a { display: inline; padding: 0; color: var(--accent-ink); text-decoration: underline; }
.small { font-size: 13px !important; }
@media (max-width: 600px) { .uni { flex-direction: column; align-items: stretch; } .uni-btns .btn { white-space: normal; text-align: center; } }
.uni-note { font-size: 13px; color: var(--muted); font-weight: 600; max-width: 180px; }

/* header nav: scrolls sideways on small screens instead of wrapping */
.top-in { min-width: 0; }
.mainnav { overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 18px; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { white-space: nowrap; }
@media (min-width: 1000px) { .mainnav { -webkit-mask-image: none; mask-image: none; padding-right: 0; } }
@media (max-width: 720px) { .logo { flex: none; } }
/* news */
.news-topics a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.news-topics a span { color: var(--muted); font-weight: 600; }
.news-topics a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.news-topics a[aria-current="page"] span { color: inherit; opacity: .7; }
.news-topics { margin: 18px 0; }
.newslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news a { display: block; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news a:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.news a:hover h3 { color: var(--accent-ink); }
.news h3 { font-size: 18px; font-weight: 700; margin-top: 6px; }
.news .ext { color: var(--muted); font-size: 14px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.news-meta b { color: var(--ink); }
.news-meta .chip { margin-left: 4px; }
.news-sum { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.uni h3 a:hover { color: var(--accent-ink); }
.uni-head-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.desc .sec { margin-top: 30px; }
.desc .cards { margin-bottom: 8px; }
.more-link { color: var(--accent-ink); font-weight: 700; }
.facts .btn.sm { width: 100%; margin-top: 6px; }
.desc ul.cards { padding-left: 0; }

/* home: LIVE news panel beside the hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: stretch; }
.hero-main { min-width: 0; }
.live { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; max-height: 470px; }
.live-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.live-head b { font-weight: 800; }
.live-head a { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.live-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: #d81f1f; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.live-window { position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); }
.live-track { list-style: none; margin: 0; padding: 0 16px; animation: liveup 80s linear infinite; }
.live-window:hover .live-track, .live-window:focus-within .live-track { animation-play-state: paused; }
@keyframes liveup { to { transform: translateY(-100%); } }
.live-track li { border-left: 2px solid var(--line); padding: 0 0 0 14px; position: relative; }
.live-track li::before { content: ''; position: absolute; left: -5px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-track a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.live-track time { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.live-src { font-size: 12px; color: var(--muted); font-weight: 600; }
.live-src b { color: #d81f1f; }
.live-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.live-track a:hover .live-title { color: var(--accent-ink); text-decoration: underline; }
.live-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .live-track { animation: none; } .live-track[aria-hidden] { display: none; } .live-window { overflow-y: auto; } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .live { max-height: 360px; }
}

/* university page sections */
.usec { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.usec:last-of-type { border-bottom: 0; }
.usec h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.usec a:not(.olink) { color: var(--accent-ink); text-decoration: underline; }
.olinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.olink { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); min-width: 0; }
.olink b { font-weight: 800; color: var(--accent-ink); }
.olink span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olink:hover { border-color: var(--accent); }

/* post a job */
.top nav a.nav-cta { background: var(--accent); color: #fff; margin-left: 6px; }
.top nav a.nav-cta:hover { background: var(--accent); color: #fff; filter: brightness(1.08); }
.post { padding-top: 28px; }
.post h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.pform { display: grid; gap: 14px; margin-top: 18px; }
.pform fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; margin: 0; display: grid; gap: 14px; }
.pform legend { font-weight: 800; padding: 0 6px; }
.f { display: grid; gap: 5px; font-weight: 700; font-size: 15px; }
.f i { color: var(--accent); font-style: normal; }
.f small { font-weight: 500; color: var(--muted); font-size: 13px; }
.f input:not([type=checkbox]), .f select, .f textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 500 15px var(--font); }
.f textarea { resize: vertical; line-height: 1.5; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.f em, .ferr { color: var(--accent-ink); font-style: normal; font-size: 13px; font-weight: 700; }
.f.bad input, .f.bad select, .f.bad textarea, .row3.bad input { border-color: var(--accent); }
.chk { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; flex-wrap: wrap; }
.chk input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 14px; }
@media (max-width: 600px) { .row2, .row3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* admin */
.subs { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.sub { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sub.pending { border-color: var(--accent); }
.sub h3 { font-size: 18px; margin: 6px 0 2px; }
.sub-head { display: flex; gap: 10px; align-items: center; }
.sub pre { white-space: pre-wrap; font: 14px/1.5 var(--font); background: var(--soft); padding: 12px; border-radius: 10px; }
.sub-actions { display: flex; gap: 8px; margin-top: 10px; }
.chip.direct { background: var(--money-soft); color: var(--money); }

/* "post for free" banners */
.promo-bar { display: block; text-align: center; padding: 8px 16px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; }
.promo-bar b { color: var(--accent-2); font-weight: 800; }
.promo-bar u { text-decoration-color: var(--accent-2); text-underline-offset: 3px; font-weight: 800; }
.promo-bar span { display: inline-block; transition: transform .15s; }
.promo-bar:hover span { transform: translateX(3px); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 36px; border-radius: 22px; color: #fff;
  background: radial-gradient(600px 260px at 100% 0%, rgba(255,154,61,.55), transparent 70%), linear-gradient(135deg, #b8240f, #e2361f 55%, #ff7a3d); box-shadow: 0 10px 30px rgba(226,54,31,.25); }
.promo h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 2px 0 8px; }
.promo h2 em { font-style: normal; background: #fff; color: #c9301b; padding: 0 10px; border-radius: 10px; }
.promo p { margin: 0; max-width: 620px; opacity: .95; }
.promo-tag { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; opacity: .85 !important; }
.promo ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: 15px; }
.promo-btn { flex: none; height: 56px; padding: 0 26px; font-size: 17px; background: #fff !important; color: #c9301b !important; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
@media (max-width: 760px) { .promo { flex-direction: column; align-items: stretch; padding: 24px 20px; } .promo-btn { width: 100%; } }

.promo-talent { margin-top: 14px; background: radial-gradient(600px 260px at 100% 0%, rgba(255,154,61,.25), transparent 70%), linear-gradient(135deg, #17181c, #2a2d35); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.promo-talent h2 em { background: var(--accent); color: #fff; }
.promo-talent .promo-btn { color: #17181c !important; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.admin-filter select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 14px var(--font); }
.chk > span { flex: 1; min-width: 0; }
.chk a { color: var(--accent-ink); text-decoration: underline; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 22px; }
.quick a { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.quick a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* header toggle: jobseekers | employers */
.nav-toggle { display: inline-flex; flex: none; margin-left: 8px; padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.top nav .nav-toggle a { padding: 7px 12px; border-radius: 9px; font-weight: 700; white-space: nowrap; }
.top nav .nav-toggle .nt-talent { background: var(--ink); color: var(--bg); }
.top nav .nav-toggle .nt-talent:hover { background: var(--ink); color: var(--bg); filter: brightness(1.25); }
.top nav .nav-toggle .nt-post { color: var(--accent-ink); }
.top nav .nav-toggle .nt-post:hover { background: var(--accent); color: #fff; }

.chip.visa { background: #e6f0ff; color: #1d4fb8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.visa { background: #16233d; color: #8fb3ff; } }
:root[data-theme="dark"] .chip.visa { background: #16233d; color: #8fb3ff; }
.sponsor-note { margin: 14px 12px 0; padding: 12px; border-radius: 10px; background: #e6f0ff; color: #1b2f57; font-size: 13.5px; line-height: 1.5; }
.sponsor-note a { display: inline !important; padding: 0 !important; color: #1d4fb8 !important; text-decoration: underline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sponsor-note { background: #16233d; color: #c9d8f5; } :root:not([data-theme="light"]) .sponsor-note a { color: #8fb3ff !important; } }

.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 16px; }
.share textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 500 13px/1.5 ui-monospace, Menlo, Consolas, monospace; resize: vertical; margin: 6px 0 10px; }
.share h2 { margin-left: 0 !important; }

.hero h1 em { white-space: nowrap; }
.nations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-weight: 700; font-size: 17px; }
.nations a { color: var(--ink); border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.nations a:hover { color: var(--accent-ink); border-color: var(--accent); }
.nations span { color: var(--muted); font-weight: 600; font-size: 14px; }
.nations i { color: var(--muted); font-style: normal; }
@media (max-width: 520px) { .hero h1 em { white-space: normal; } }

.uni-hubs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 20px; font-size: 14px; }
.uni-hubs a { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.uni-hubs a:hover { border-color: var(--accent); color: var(--accent-ink); }

/* course list */
.courses { margin-bottom: 14px; }
.crs-head { margin: 0 0 10px; }
.crs-q { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 600 15px var(--font); margin-bottom: 10px; }
.crs-q:focus { outline: none; border-color: var(--accent); }
.crs-list { list-style: none; margin: 0 0 10px !important; padding: 0 !important; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.crs { padding: 10px 14px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.crs:last-child { border-bottom: 0; }
.crs[hidden] { display: none; }
.crs-t { font-weight: 700; }
.crs-t a { color: var(--ink) !important; text-decoration: none !important; }
.crs-t a:hover { color: var(--accent-ink) !important; text-decoration: underline !important; }
.crs-m { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.crs-m b { color: var(--ink); }

/* course pages */
.crs-s { font-size: 13px; color: var(--money); font-weight: 700; margin-top: 2px; }
.kfigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 8px; }
.kfig { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.kfig span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kfig b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kfig small { font-size: 12.5px; color: var(--muted); }
.bars { list-style: none; padding: 0 !important; margin: 0 0 8px !important; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 48px; gap: 10px; align-items: center; font-size: 14.5px; margin: 0 !important; }
.bars i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--w), var(--soft) var(--w)); }
.bars b { text-align: right; }
.ctab-wrap { overflow-x: auto; }
.ctab { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0; }
.ctab th { text-align: left; font-size: 13px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.ctab td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.ctab td:first-child { white-space: normal; min-width: 220px; }
.ctab td a { font-weight: 700; color: var(--ink); text-decoration: none; }
.ctab td a:hover { color: var(--accent-ink); text-decoration: underline; }
.ctab td small { display: block; color: var(--muted); font-size: 13px; }
.chip.tef { background: #fff4d6; color: #8a5a00; }
.chip.tef-gold { background: #fff1c2; color: #7a5200; }
.chip.tef-silver { background: #eef0f3; color: #4a5160; }
.chip.tef-bronze { background: #f7e6d8; color: #8a4b1c; }
@media (max-width: 600px) { .bars li { grid-template-columns: 1fr 70px 40px; font-size: 13.5px; } }

/* stacked cards (subject list): name on top, details below */
.co-grid.stack { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.co-grid.stack a { flex-direction: column; justify-content: flex-start; gap: 4px; }
.co-grid.stack a span { white-space: normal; }

/* universities page header: text left, "Compare degrees" card right */
.uni-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; }
.deg-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 18px; color: #fff;
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,154,61,.5), transparent 70%), linear-gradient(135deg, #b8240f, #e2361f 60%, #ff7a3d);
  box-shadow: 0 10px 28px rgba(226,54,31,.22); transition: transform .15s; }
.deg-card:hover { transform: translateY(-2px); }
.deg-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.deg-card b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.deg-sub { font-size: 14px; opacity: .95; }
.deg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.deg-chips i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.18); }
.deg-btn { align-self: flex-start; margin-top: 4px; padding: 8px 14px; border-radius: 10px; background: #fff; color: #c9301b; font-weight: 800; font-size: 14px; }
@media (max-width: 900px) { .uni-top { grid-template-columns: 1fr; gap: 18px; } }

/* quick answers */
.faq { margin: 8px 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq h2 { font-size: 18px !important; font-weight: 800; margin: 0 0 8px !important; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 6px 0 0 !important; color: var(--ink); }
