/* Theme */
:root {
  --bg: #0b1020;
  --card: #0e1528;
  --text: #eaf2ff;
  --muted: #9fb2d0;
  --accent: #4c9cff;
  --accent-2: #22d3ee;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at -10% -20%, rgba(76,156,255,.15), transparent 60%),
    radial-gradient(1200px 500px at 120% 0%, rgba(34,211,238,.12), transparent 60%),
    linear-gradient(180deg,#091026,#070d1e 60%,#060a17);
}
a { color: var(--text); text-decoration: none }
.wrap { width: 98%; max-width: none; margin: 0 auto; padding: 22px }

/* Header */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 10px }
.logo { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 24px rgba(76,156,255,.35), inset 0 0 18px rgba(255,255,255,.2) }
.brand h1 { margin: 0; font-size: 20px; letter-spacing: .2px }
.tagline { font-size: 13px }
nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 }
nav a { color: var(--muted); font-weight: 600 }
nav a:hover { color: #fff }

/* Hero */
.hero { margin: 20px 0 18px; background: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); padding: 26px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.35) }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: #001; background: #cfe6ff; padding: 3px 8px; border-radius: 999px }
.hero h2 { font-size: 34px; line-height: 1.15; margin: 14px 0 6px }
.hero p { color: var(--muted); margin: 0 0 12px }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px }
.btn { background: var(--accent); color: #fff; border: none; padding: 11px 14px; border-radius: 12px; cursor: pointer; font-weight: 800; letter-spacing: .2px }
.btn:hover { background: var(--accent-2) }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid rgba(255,255,255,.1) }

/* Grid & Cards */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr }
@media (max-width: 980px) { .grid { grid-template-columns: 1fr } }
.card { background: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.06); padding: 16px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.35) }
.card h3 { margin: 0 0 6px; font-size: 18px }
.muted { color: var(--muted) }
.small { font-size: 13px }
.pill { font-size: 11px; color: #001; background: #cfe6ff; padding: 2px 6px; border-radius: 999px }

/* Courses */
.courses .item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03) }
.courses .index { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,var(--accent),var(--accent-2)); display: flex; align-items: center; justify-content: center; font-weight: 800 }

/* Tools */
.tools .tools-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap }
.tools .cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)) }
.tools .cat { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03) }
.tools .cat h4 { margin: 0 }
.tools .links { display: flex; flex-wrap: wrap; gap: 6px }
.chip { font-size: 12px; color: #001; background: #cfe6ff; padding: 4px 8px; border-radius: 999px }

/* FAQ */
details.faq { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); border-radius: 12px; padding: 10px }
details.faq + details.faq { margin-top: 10px }
details.faq summary { cursor: pointer; font-weight: 700 }

/* Footer */
.footer {border-radius: 10px; width: 100%; text-align: center; margin-top: 20px; padding: 15px 0; font-size: 14px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.04)) }
.footer a:link {
  colour:var(--accent-2);
  text-decoration: underline;
}

/* Forms */
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.1);
  color: var(--text);
}
.spacer { height: 10px }


/* Professional header polish */
header.site { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(120%) blur(6px); background: linear-gradient(180deg, rgba(11,16,32,.75), rgba(11,16,32,.35) 60%, rgba(11,16,32,0)); border-bottom: 1px solid rgba(255,255,255,.06) }
nav a { position: relative }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
nav a:hover::after { transform: scaleX(1) }

/* Section headings */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px }
.section-head .sub { font-size: 13px; color: var(--muted) }

/* Publications */
.publications { display: grid; gap: 10px }
.pub { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03) }
.pub h4 { margin: 0 }
.pub .meta { font-size: 12px; color: var(--muted) }
.pub .ext::after { content: '↗'; margin-left: 6px }
