/* =====================================================================
   MEDUCATIONLINE365 — MAIN STYLESHEET  (2026 redesign)
   ---------------------------------------------------------------------
   This ONE file controls the LOOK of every page: colours, fonts, sizes,
   spacing and layout. Text lives in the .html files, not here.
   You normally never need to edit this file.

   QUICK, SAFE EDITS (all in section 1, ":root"):
   • Change a colour        → change the #code next to it.
   • Bigger / smaller text  → change "--fs-body".
   • Wider / narrower pages → change "--w-page".
   Every page updates automatically.

   DESIGN IN ONE SENTENCE
   Deep ink-navy + paper-white, ONE indigo accent colour, a serif for
   headings (journal style), Inter for reading, and a small monospace
   font for labels/dates (data-science feel).

   CONTENTS
     1.  Theme: colours, fonts & sizes     (safe to edit)
     2.  Basic page setup
     3.  Layout helpers (containers, sections)
     4.  Small parts: labels, buttons, badges, lists
     5.  Site header & menu
     6.  Site footer
     7.  Page banners ("hero" at the top of each page)
     8.  Home page: course feature + tool cards
     9.  Slideshow
     10. Video embeds
     11. Pages with a side menu (RNA-seq course, CV)
     12. Panels (white boxes on the RNA-seq page)
     13. Course timeline
     14. Participant feedback
     15. Curriculum Vitae
     16. Tool pages (example table, tool frame, "More tools")
     17. Print settings ("Download CV as PDF")
   ===================================================================== */


/* =====================================================================
   1. THEME: COLOURS, FONTS & SIZES  (safe to edit)
   ===================================================================== */
:root {
  /* --- Ink navy (dark backgrounds: banners, footer) --- */
  --ink-950: #060d1c;      /* footer                                   */
  --ink-900: #0b1530;      /* page banners, dark boxes                 */
  --ink-800: #142142;      /* slightly lighter dark                    */
  --ink-700: #22305a;

  /* --- The ONE accent colour (links, buttons, highlights) --- */
  --accent:        #4338ca; /* indigo (7.5 : 1 contrast on white)      */
  --accent-hover:  #3730a3;
  --accent-soft:   #eef0fd; /* very light tint for backgrounds         */
  --accent-line:   #c9cef4; /* light borders                           */
  --accent-on-dark:#b4befe; /* accent used ON dark navy backgrounds    */

  /* --- Text colours (all high-contrast) --- */
  --text:    #0f172a;      /* main text — near black                   */
  --text-2:  #334155;      /* secondary text                           */
  --text-3:  #475569;      /* small notes / captions                   */
  --on-dark:   #ffffff;    /* text on navy                             */
  --on-dark-2: #cbd3e6;    /* softer text on navy                      */
  --on-dark-3: #9aa6c2;    /* small meta text on navy                  */

  /* --- Backgrounds & lines --- */
  --surface: #ffffff;      /* cards / panels                           */
  --canvas:  #f6f7fa;      /* light grey page background               */
  --canvas-2:#eef1f6;
  --line:    #e3e7ef;      /* thin dividers                            */
  --line-2:  #cbd2de;      /* stronger dividers                        */

  /* --- Course-timeline colours (muted, not distracting) --- */
  --teal:       #0f766e;   /* Moodle modules                           */
  --teal-soft:  #eaf5f3;
  --amber:      #a8520a;   /* Moodle practicals                        */
  --amber-soft: #fbf4e8;

  /* --- Top menu bar (soft, light tint) --- */
  --menu-bg-1:  #eceffc;   /* left side of the menu bar               */
  --menu-bg-2:  #f3eefb;   /* right side (a touch of lavender)        */
  --menu-line:  #d8dcf1;   /* line under the menu bar                 */

  /* --- Testimonials (very light golden quote area) --- */
  --gold-soft:  #fcf7ea;   /* quote background                        */
  --gold-line:  #ecdfbd;   /* borders around testimonials             */
  --gold-mark:  #c9a24c;   /* the big “ ” quote marks                 */

  /* --- Fonts --- */
  --font-body:    "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;

  /* --- Text sizes (the same on every page) --- */
  --fs-body: 1.0625rem;                                     /* 17px  */
  --fs-small: .9375rem;                                     /* 15px  */
  --fs-label: .75rem;                                       /* 12px  */
  --fs-h1: clamp(2.05rem, 1.35rem + 2.6vw, 3.35rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.15vw, 2.2rem);
  --fs-h3: clamp(1.2rem, 1.12rem + .35vw, 1.38rem);

  /* --- Widths & spacing --- */
  --w-page:  1200px;       /* maximum width of every page               */
  --gutter:  clamp(16px, 4vw, 32px);   /* space at the left/right edge */
  --section: clamp(56px, 8vw, 104px);  /* space above/below sections  */
  --header-h: 72px;        /* height of the top menu bar                */

  /* --- Corners & shadows --- */
  --r-lg: 18px;
  --r:    12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, .05), 0 1px 1px rgba(11, 21, 48, .03);
  --shadow:    0 1px 2px rgba(11, 21, 48, .05), 0 10px 30px -12px rgba(11, 21, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 13, 28, .45);
}
@media (max-width: 1080px) { :root { --header-h: 64px; } }
@media (max-width: 600px)  { :root { --fs-body: 1rem; } }


/* =====================================================================
   2. BASIC PAGE SETUP
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 72px); /* headings never hide under the menu */
  -webkit-text-size-adjust: 100%;
}
/* Smooth scrolling for links on the SAME page is done in site-layout.js;
   arriving from another page (e.g. /rnaseq/#enroll) jumps straight there. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.05em; }
li { margin-bottom: .4em; }
li::marker { color: var(--accent); }

strong, b { font-weight: 650; }
::selection { background: #dfe3ff; color: var(--text); }

/* Keyboard focus ring (accessibility) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* "Skip to content" link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 2000;
  background: var(--ink-900); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { left: 8px; color: #fff; }


/* =====================================================================
   3. LAYOUT HELPERS
   ===================================================================== */
/* .container = the centred column used by EVERY page, so all pages
   line up at exactly the same width.                                  */
.container {
  width: 100%;
  max-width: calc(var(--w-page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section        { padding: var(--section) 0; }
.section--tint  { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-body      { background: var(--canvas); padding: clamp(28px, 4vw, 56px) 0 var(--section); }

/* Section title block: label + heading (centred) */
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 0; }


/* =====================================================================
   4. SMALL PARTS: LABELS, BUTTONS, BADGES, LISTS
   ===================================================================== */
/* Small uppercase label above headings (monospace, with a short line) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1.4;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: 0 0 auto; }
.on-dark .eyebrow, .hero .eyebrow { color: var(--accent-on-dark); }

/* Buttons
   .btn--primary  indigo, for light backgrounds
   .btn--light    white, for dark (navy) backgrounds
   .btn--ghost    outlined, for dark (navy) backgrounds
   .btn--outline  outlined, for light backgrounds
   .btn--lg       bigger                                               */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(67, 56, 202, .55); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink-900); }
.btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline { border-color: var(--line-2); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 15px 26px; font-size: 1.04rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) {
  .btn-row .btn, .course-feature .btn, .closing-cta .btn, .panel--dark .btn { width: 100%; }
}

/* Small pill badge, e.g. "No Coding Required" */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Tick list (tool cards) */
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--text-2); font-size: var(--fs-small); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234338ca' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.note { color: var(--text-3); font-size: var(--fs-small); }


/* =====================================================================
   5. SITE HEADER & MENU   (menu items are written in assets/js/site-layout.js)
   ===================================================================== */
/* Menu bar colour: a soft indigo-to-lavender mist (change --menu-bg-1/2 in section 1) */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(90deg, var(--menu-bg-1), var(--menu-bg-2));
  border-bottom: 1px solid var(--menu-line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11, 21, 48, .35); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 1.12rem;
  letter-spacing: -.015em; white-space: nowrap;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: cover; border: 1px solid var(--line); }
.brand-name { font-weight: 700; }
.brand span { color: var(--accent); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a, .main-nav .nav-dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 500;
  padding: 9px 13px;
  border-radius: 8px;
  background: none; border: 0; cursor: pointer;
  line-height: 1.2; white-space: nowrap;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav .nav-dropdown-toggle:hover { background: rgba(67, 56, 202, .08); color: var(--text); text-decoration: none; }
/* the page you are on */
.main-nav a[aria-current="page"], .main-nav .is-current > .nav-dropdown-toggle { color: var(--accent); font-weight: 600; }

/* PRN button (outlined) */
.main-nav .nav-outline { border: 1px solid var(--line-2); background: #fff; margin-left: 6px; color: var(--text); font-weight: 600; }
.main-nav .nav-outline:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.main-nav .nav-outline[aria-current="page"] { border-color: var(--accent); }
/* "Enroll" button (filled) */
.main-nav .nav-cta { background: var(--ink-900); color: #fff; margin-left: 6px; font-weight: 600; }
.main-nav .nav-cta:hover { background: var(--accent); color: #fff; }

.chev { width: 10px; height: 10px; transition: transform .2s; opacity: .7; }
.nav-dropdown.open .chev { transform: rotate(180deg); }

/* Tools dropdown (desktop) */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px !important;
  display: none !important;
  flex-direction: column; align-items: stretch !important; gap: 2px !important;
}
.nav-dropdown.open .dropdown-menu { display: flex !important; }
.dropdown-menu a { color: var(--text) !important; padding: 10px 12px !important; border-radius: 9px; display: block !important; white-space: normal !important; font-weight: 600 !important; }
.dropdown-menu a:hover { background: var(--canvas) !important; color: var(--accent) !important; }
.dropdown-menu a small { display: block; color: var(--text-3); font-weight: 400; font-size: .84rem; margin-top: 3px; }
.dropdown-menu a[aria-current="page"] { background: var(--accent-soft) !important; color: var(--accent) !important; }
@media (hover: hover) and (min-width: 1081px) {
  .nav-dropdown:hover .dropdown-menu { display: flex !important; }
  .nav-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}

/* Hamburger button (phones & tablets) */
.menu-toggle {
  display: none;
  background: #fff; border: 1px solid var(--menu-line); border-radius: 10px;
  width: 44px; height: 44px; padding: 0; cursor: pointer; color: var(--text);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: #fff;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px;
    display: none;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li:has(.nav-cta), .main-nav > ul > li:has(.nav-outline) { border-bottom: 0; }
  .main-nav a, .main-nav .nav-dropdown-toggle { font-size: 1.08rem; padding: 16px 4px; width: 100%; justify-content: space-between; border-radius: 0; }
  .main-nav a:hover, .main-nav .nav-dropdown-toggle:hover { background: none; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; background: var(--canvas); margin: 0 0 12px; min-width: 0; }
  .main-nav .nav-outline, .main-nav .nav-cta { margin: 14px 0 0; justify-content: center; border-radius: 10px; padding: 15px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 380px) { .brand { font-size: 1rem; } .brand img { width: 34px; height: 34px; } }


/* =====================================================================
   6. SITE FOOTER
   ===================================================================== */
.site-footer {
  background: var(--ink-950);
  color: var(--on-dark-2);
  padding: clamp(52px, 7vw, 80px) 0 28px;
  font-size: var(--fs-small);
  position: relative;
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
.site-footer h4 {
  color: #fff; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.site-footer a { color: var(--on-dark-2); text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin-bottom: .6em; }
.site-footer .brand { color: #fff; margin-bottom: 16px; padding: 0; display: inline-flex; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer .brand img { border-color: transparent; }
.site-footer .brand span { color: var(--accent-on-dark); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); padding: 0;
}
.footer-social a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px; padding-top: 22px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--on-dark-3);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }


/* =====================================================================
   7. PAGE BANNERS ("hero" — dark navy box at the top of each page)
   A faint graph-paper grid gives a scientific feel.
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(99, 102, 241, .26), transparent 62%),
    radial-gradient(700px 400px at -5% 110%, rgba(56, 189, 248, .08), transparent 60%),
    var(--ink-900);
  color: var(--on-dark);
  padding: clamp(48px, 7vw, 96px) 0;
}
/* the graph-paper grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 30%, transparent 80%);
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p  { color: var(--on-dark-2); font-size: clamp(1.04rem, .98rem + .3vw, 1.17rem); max-width: 720px; }
.hero .btn-row { margin-top: 30px; }
.hero--compact { padding: clamp(40px, 5.5vw, 72px) 0; }

/* Two columns: text + picture */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-figure {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.04);
}
.hero-figure img { width: 100%; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

/* Home page banner (bigger heading) */
.hero--home h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.08; }

/* Breadcrumb (Home › Page) */
.breadcrumb {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  margin-bottom: 22px; color: var(--on-dark-3);
}
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; opacity: .6; }


/* =====================================================================
   8. HOME PAGE: COURSE FEATURE + TOOL CARDS
   ===================================================================== */
.course-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
/* "Taught by …" line */
.course-feature .meta { font-size: clamp(1.06rem, 1rem + .3vw, 1.18rem); font-weight: 600; color: var(--text); margin: -2px 0 18px; letter-spacing: -.005em; }
.course-feature h2 { margin-bottom: 16px; }
.course-feature .badge { margin-bottom: 20px; }
.course-feature p { color: var(--text-2); }
.course-feature .btn { margin-top: 8px; }
@media (max-width: 960px) { .course-feature { grid-template-columns: 1fr; } }

/* Tool cards: 2 per row on computers, 1 per row on phones.
   Cards side by side share row heights, so every part lines up.       */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

/* Picture area: plain white, the same as the rest of the card, so pictures
   of different sizes all look neat.                                     */
.tool-card__image { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.tool-card__image img {
  position: absolute; inset: 20px 22px 14px;
  width: calc(100% - 44px); height: calc(100% - 34px);
  object-fit: contain;
}
.tool-card__body {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0;
  padding: 26px 28px 30px; align-content: start;
}
.tool-card__body .eyebrow { margin-bottom: 10px; align-self: start; }
.tool-card__body h3 { align-self: start; }
.tool-card__body p { color: var(--text-2); align-self: start; }
.tool-card__body .check-list { align-self: start; }
.tool-card__body .btn { align-self: end; justify-self: start; }
@media (max-width: 600px) { .tool-card__body { padding: 22px 20px 24px; } .tool-card__body .btn { width: 100%; } }


/* =====================================================================
   9. SLIDESHOW (course slides)
   ===================================================================== */
.slideshow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow);
}
.slides-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #05080f; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slideshow .slide.active { opacity: 1; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: contain; }
.slide-progress { height: 3px; background: var(--canvas-2); border-radius: 2px; margin: 10px 4px 0; overflow: hidden; }
.slide-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.slide-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px 2px; }
.slide-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; color: var(--text);
  border: 1px solid var(--line-2);
  font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.slide-btn:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.slide-counter { font-family: var(--font-mono); font-weight: 500; color: var(--text-3); font-size: .85rem; letter-spacing: .06em; min-width: 64px; text-align: center; }


/* =====================================================================
   10. VIDEO EMBEDS (YouTube) — keeps the 16:9 shape on every screen
   ===================================================================== */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* =====================================================================
   11. PAGES WITH A SIDE MENU  (RNA-seq course page and CV page)
   ---------------------------------------------------------------------
   Computer: "On this page" menu on the LEFT, content on the right.
   Phone/tablet: the same menu becomes a sideways-scrolling bar that
   sticks under the top menu.
   ===================================================================== */
.with-toc { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }

.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc h4 {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 4px 0 14px;
}
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 7px 14px; margin-left: -1px;
  color: var(--text-2); text-decoration: none; font-size: .92rem; line-height: 1.4;
  border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--text); border-left-color: var(--line-2); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
/* highlighted "Enroll" link */
.toc a.toc-cta {
  margin: 10px 0 10px 14px; padding: 9px 14px; border: 0; border-radius: 9px;
  background: var(--ink-900); color: #fff; font-weight: 600; text-align: center;
}
.toc a.toc-cta:hover, .toc a.toc-cta.active { background: var(--accent); color: #fff; }

@media (max-width: 1024px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc {
    top: var(--header-h); z-index: 50;
    margin: 0 calc(-1 * var(--gutter));
    background: #fff;   /* solid (no blur) = smoother scrolling on phones */
    border-bottom: 1px solid var(--line);
  }
  .toc h4 { display: none; }
  .toc ul {
    display: flex; gap: 2px; border: 0; padding: 0 var(--gutter);
    overflow-x: auto; scrollbar-width: none;
  }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc li { flex: 0 0 auto; }
  .toc a { padding: 14px 10px; margin: 0; white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; font-size: .9rem; }
  .toc a:hover { border-bottom-color: var(--line-2); }
  .toc a.active { border-bottom-color: var(--accent); }
  .toc a.toc-cta { margin: 8px 6px; padding: 6px 14px; border-radius: 8px; border: 0; }
  .page-body:has(.toc) { padding-top: 0; }
}


/* =====================================================================
   12. PANELS (the white boxes on the RNA-seq course page)
   ===================================================================== */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3.6vw, 48px);
  margin-bottom: 28px;
}
.panel-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; }
.panel-head p { margin: 12px 0 0; color: var(--text-2); }
.panel h3 { font-size: 1.28rem; margin: 34px 0 14px; padding-top: 2px; }
.panel h3:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel p { color: var(--text-2); }
.panel p strong, .panel p a { color: var(--text); }
.panel p a { color: var(--accent); }

/* Dark panel (enrollment) */
.panel--dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 100% 0%, rgba(99,102,241,.32), transparent 62%), var(--ink-900);
  border: 0; color: var(--on-dark); text-align: center;
}
.panel--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 20%, transparent 75%);
}
.panel--dark .panel-head { border-bottom-color: rgba(255,255,255,.14); }
.panel--dark h2 { color: #fff; }
.panel--dark p { color: var(--on-dark-2); }
.panel--dark .lead-line { color: #fff; font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.panel--dark .btn { margin-top: 12px; }

/* Learning outcomes (numbered boxes) */
.outcomes { list-style: none; padding: 0; counter-reset: o; display: grid; gap: 10px; }
.outcomes li {
  counter-increment: o; position: relative; margin: 0;
  padding: 16px 18px 16px 66px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text);
}
.outcomes li::before {
  content: counter(o, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: var(--accent);
  letter-spacing: .04em;
}

/* Course format boxes */
.format-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.format-list li {
  margin: 0; padding: 20px 22px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text-2); font-size: var(--fs-small); position: relative;
}
.format-list li::before { content: ""; position: absolute; left: 22px; top: 0; width: 28px; height: 2px; background: var(--accent); }
.format-list li strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 1rem; }
@media (max-width: 760px) { .format-list { grid-template-columns: 1fr; } }

/* Tables — "journal" style: no vertical lines, ruled top/bottom */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; vertical-align: top; }
.data-table thead th {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); border-bottom: 1px solid var(--text);
}
.data-table tbody td { border-bottom: 1px solid var(--line); color: var(--text-2); }
.data-table tbody td:first-child { color: var(--text); font-weight: 500; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.commitment { margin-top: 22px; padding: 16px 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r); color: var(--text) !important; }

@media (max-width: 600px) {
  .panel { padding: 22px 18px; margin-bottom: 18px; border-radius: 14px; }
  .data-table th, .data-table td { padding: 11px 10px; }
}


/* =====================================================================
   13. COURSE TIMELINE
   ===================================================================== */
.timeline-info { color: var(--text-2); margin: 8px 0 0; font-size: var(--fs-small); }
.timeline-info a { word-break: break-all; }

.timeline-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 24px; font-size: .86rem; color: var(--text-2); font-family: var(--font-mono); letter-spacing: .02em; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 8px; }
.timeline-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.timeline-legend .lg-modules    { background: var(--teal); }
.timeline-legend .lg-practicals { background: var(--amber); }
.timeline-legend .lg-live       { background: var(--accent); }

/* Start / end steps */
.t-step { text-align: center; font-weight: 600; border-radius: var(--r); padding: 14px 18px; margin-bottom: 12px; font-size: var(--fs-small); }
.t-step--dark { background: var(--ink-900); color: #fff; }
.t-step--dark span { font-family: var(--font-mono); color: var(--accent-on-dark); }
.t-step--soft { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent-line); }

/* The vertical line with a dot for each day */
.timeline { position: relative; padding-left: 34px; margin: 26px 0 14px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--accent), var(--accent-line)); border-radius: 2px;
}
.t-day { position: relative; margin-bottom: 26px; }
.t-day::before {
  content: ""; position: absolute; left: -31px; top: 17px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}
.t-day__banner {
  background: var(--ink-900); color: var(--on-dark-2);
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 10px; font-size: var(--fs-small);
}
.t-day__banner .day { font-family: var(--font-mono); color: #fff; font-weight: 600; letter-spacing: .02em; }
.t-day__banner .live {
  display: inline-block; font-weight: 600; color: #fff;
  background: rgba(129, 140, 248, .22); border: 1px solid rgba(165, 180, 252, .45);
  padding: 1px 9px; border-radius: 999px; font-size: .85rem;
}
.t-day__banner .sub { display: block; color: #fff; margin-top: 6px; font-weight: 500; font-size: 1rem; line-height: 1.5; }

.t-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-col { border-radius: var(--r); padding: 16px 18px; font-size: var(--fs-small); color: var(--text-2); border: 1px solid var(--line); }
.t-col ul { margin: 0 0 10px; padding-left: 1.15em; }
.t-col ul:last-child { margin-bottom: 0; }
.t-col li { margin-bottom: .3em; }
.t-col strong { color: var(--text); }
.t-col--modules    { background: var(--teal-soft);  border-left: 3px solid var(--teal); }
.t-col--modules li::marker { color: var(--teal); }
.t-col--practicals { background: var(--amber-soft); border-left: 3px solid var(--amber); }
.t-col--practicals li::marker { color: var(--amber); }
.t-col--grace { background: repeating-linear-gradient(-45deg, var(--canvas), var(--canvas) 8px, #fff 8px, #fff 16px); text-align: center; font-weight: 600; color: var(--text-3); font-family: var(--font-mono); font-size: .85rem; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; }
.t-col .module-title { font-weight: 650; color: #0b4f49; margin: 0 0 6px; line-height: 1.45; }
.t-col .module-title + ul { margin-bottom: 14px; }
.t-recorded { background: #fff; border: 1px solid #f0dcc0; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
@media (max-width: 760px) {
  .t-cols { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .t-day::before { left: -23px; width: 14px; height: 14px; }
  .timeline::before { left: 4px; }
}


/* =====================================================================
   14. PARTICIPANT FEEDBACK
   Computer: name & details on the LEFT, quote on the RIGHT.
   Phone:    name on top, then quote, then ratings.
   ===================================================================== */
.feedback-intro { text-align: center; margin: clamp(40px, 5vw, 64px) 0 28px; }
.feedback-intro h2 { margin: 0; }

.feedback-card {
  display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}
.participant { padding: 30px 28px; background: #fff; border-right: 1px solid var(--gold-line); }
.participant .batch {
  display: inline-block;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: #fff; border: 1px solid var(--accent-line);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.participant h3 { font-size: 1.32rem; margin: 0 0 10px; }
.participant .affiliation { font-size: .9rem; color: var(--text-3); line-height: 1.6; margin: 0; }
.participant .affiliation b { color: var(--text-2); font-weight: 600; }

/* Ratings (sit under the name on computers) */
.ratings { display: grid; gap: 10px; margin-top: 22px; }
.rating { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating span { font-size: .82rem; color: var(--text-2); line-height: 1.4; }
.rating strong { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* The quote (very light golden background).
   The opening “ is the <div class="quote-mark"> in each card;
   the closing ” is added automatically at the end of every quote.     */
.feedback-body { padding: 30px clamp(22px, 3.4vw, 44px) 32px; min-width: 0; background: var(--gold-soft); }
.feedback-quote { margin: 0; position: relative; }
.feedback-quote .quote-mark,
.feedback-quote::after {
  display: block;
  font-family: var(--font-heading); font-size: 72px; line-height: .8; font-weight: 600;
  color: var(--gold-mark); height: 34px; user-select: none;
}
.feedback-quote::after { content: "\201D"; text-align: right; margin-top: 18px; }
.feedback-quote .quote-mark.closing { display: none; }
.feedback-quote p { font-size: 1.02rem; line-height: 1.78; margin: 0 0 1em; color: var(--text); }
.feedback-quote p:last-of-type { margin-bottom: 0; }

.presentation { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--gold-line); }
.presentation h5 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }

@media (max-width: 860px) {
  .feedback-card { grid-template-columns: 1fr; }
  .participant { border-right: 0; border-bottom: 1px solid var(--gold-line); padding: 24px 20px; }
  .ratings { grid-template-columns: 1fr 1fr; }
  .rating { flex-direction: column; align-items: flex-start; gap: 4px; }
  .feedback-body { padding: 22px 20px 26px; }
}
@media (max-width: 420px) { .ratings { grid-template-columns: 1fr; } }

.closing-cta { text-align: center; margin-top: 36px; }


/* =====================================================================
   15. CURRICULUM VITAE
   ===================================================================== */
.cv-sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 56px);
}
.cv-identity { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 2px solid var(--text); }
.cv-identity h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 16px; color: var(--text); }
.cv-contact { display: grid; gap: 6px; font-size: var(--fs-small); color: var(--text-2); }
.cv-contact-item { word-break: break-word; }

.cv section { margin-bottom: 52px; }
.cv section:last-child { margin-bottom: 0; }
.cv h2.cv-title {
  font-size: clamp(1.3rem, 1.18rem + .5vw, 1.6rem);
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 26px;
}
.cv h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; color: var(--text); margin: 0 0 4px; letter-spacing: -.005em; line-height: 1.4; }

.cv-timeline-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; margin-bottom: 28px; }
.cv-date { font-family: var(--font-mono); font-weight: 500; color: var(--accent); font-size: .82rem; line-height: 1.7; letter-spacing: .01em; padding-top: 2px; }
.cv-institution { color: var(--text-3); font-style: italic; margin-bottom: 8px; font-size: var(--fs-small); }
.cv-content p { margin-bottom: .6em; color: var(--text-2); }
.cv-content p a { word-break: break-all; }
.cv-subheading { font-weight: 650; color: var(--text); margin: 16px 0 6px; }
.cv-minor { margin-top: 10px; font-weight: 600; color: var(--text-2); }
.cv-list { margin-bottom: 8px; color: var(--text-2); }
.cv-list li { margin-bottom: 5px; }
.cv-box { background: var(--canvas); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 14px 18px; margin: 12px 0 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-small); }
.cv-box ul { margin: 0; }
.cv-box--muted { border-left-color: var(--line-2); color: var(--text-3); }
.cv-box--muted strong { color: var(--text-2); }
.cv-box-title { font-family: var(--font-mono); font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; margin-bottom: 8px; }

.skill-category { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-2); }
.skill-category:first-of-type { padding-top: 0; }
.skill-title { font-weight: 650; color: var(--text); }

.publication-item { display: flex; gap: 14px; margin-bottom: 18px; line-height: 1.65; color: var(--text-2); font-size: var(--fs-small); }
.publication-item strong, .publication-item u { color: var(--text); }
.publication-bullet { color: var(--accent); font-weight: 700; }
.publication-item a { word-break: break-all; }
.publication-item u { text-decoration-thickness: 1px; }

@media (max-width: 700px) {
  .cv-timeline-item, .skill-category { grid-template-columns: 1fr; gap: 4px; }
  .cv-sheet { padding: 22px 18px; border-radius: 14px; }
}


/* =====================================================================
   16. TOOL PAGES
   ===================================================================== */
.example-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 32px; }
.example-card__head { padding: 26px 28px; border-bottom: 1px solid var(--line); }
.example-card__head h2 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin-bottom: 10px; }
.example-card__head p { margin: 0; color: var(--text-2); font-size: var(--fs-small); }
.example-card__head p strong { color: var(--text); }
.example-table { width: 100%; border-collapse: collapse; font-size: .84rem; white-space: nowrap; font-family: var(--font-mono); }
.example-table th, .example-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.example-table thead th { background: var(--canvas); color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.example-table tbody td { color: var(--text-2); }
.example-table tbody tr:last-child td { border-bottom: 0; }
.example-table tbody tr:hover td { background: #fafbfd; }
.scroll-hint { display: none; font-family: var(--font-mono); font-size: .78rem; color: var(--text-3); padding: 10px 28px 0; margin: 0; }
@media (max-width: 760px) { .scroll-hint { display: block; } .example-card__head { padding: 22px 20px; } .scroll-hint { padding: 10px 20px 0; } }

/* The frame that holds the tool */
.tool-frame { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.tool-frame__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--ink-900); color: #fff; padding: 12px 18px; font-size: var(--fs-small);
}
.tool-frame__bar strong { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tool-frame__bar strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.tool-frame__bar a { color: var(--accent-on-dark); font-weight: 600; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; text-decoration: none; }
.tool-frame__bar a:hover { color: #fff; text-decoration: underline; }
.tool-frame iframe { display: block; width: 100%; border: 0; background: #fff; }
@media (max-width: 600px) { .tool-frame { border-radius: 12px; margin: 0 calc(-1 * var(--gutter) + 6px); } }

/* "More tools" links */
.more-tools { margin-top: clamp(48px, 6vw, 72px); }
.more-tools h2 { font-size: var(--fs-h3); margin-bottom: 18px; }
.tool-switcher { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-switcher a {
  display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); font-weight: 600; font-size: var(--fs-small); line-height: 1.35;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tool-switcher a:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--accent); }
.tool-switcher a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tool-switcher img { width: 58px; height: 42px; object-fit: contain; flex: 0 0 auto; background: #fff; border-radius: 6px; border: 1px solid var(--line); padding: 3px; }
@media (max-width: 960px) { .tool-switcher { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tool-switcher { grid-template-columns: 1fr; } }


/* =====================================================================
   17. PRINT SETTINGS — used by "Download CV as PDF"
   ===================================================================== */
@media print {
  @page { margin: 14mm; }
  body { font-size: 10.5pt; line-height: 1.45; color: #000; background: #fff; }
  .site-header, .site-footer, .toc, .no-print, .skip-link { display: none !important; }
  .hero { background: none !important; color: #000; padding: 0 0 10px; }
  .hero::before { display: none; }
  .hero h1 { color: #000; font-size: 20pt; }
  .page-body, .section { padding: 0 !important; background: #fff !important; }
  .with-toc { display: block; }
  .container { max-width: none; padding: 0; }
  .cv-sheet { border: 0; box-shadow: none; padding: 0; }
  .cv h2 { break-after: avoid; page-break-after: avoid; color: #000; }
  .cv-date { color: #000; }
  .cv-timeline-item, .publication-item, .skill-category { break-inside: avoid; page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
