/* ============================================================
   Universal UI Styles - Startup Workbook Theme
   Inspired by the uploaded Start Up: Business Bootcamp workbook.
   Palette Option 1: closest to original booklet.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Zilla+Slab:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap');

/* Futura PT is intentionally referenced in the font stack but not imported here because it is a licensed typeface. Load it through Adobe Fonts or your licensed webfont kit. */

:root {
  /* ==========================================
     EXACT WORKBOOK COLOR PALETTE
     Values matched to the provided workbook brand swatches.
     ========================================== */
  --primary-dark: #092737;       /* deep workbook navy */
  --secondary-color: #335973;    /* muted slate blue */
  --slate-blue: #778B99;         /* medium blue-gray */
  --blue-wash: #B4C3D4;          /* pale blue-gray */
  --line: #CCD4D5;               /* light cool gray */
  --primary-color: #199ED9;      /* bright workbook blue */
  --accent-color: #EE7524;       /* workbook orange */
  --accent-dark: #D65C2C;        /* burnt orange */
  --page: #FFFFFF;               /* white */

  /* Supporting aliases for compatibility with existing pages */
  --primary-light: #4FB3E6;
  --secondary-dark: #335973;
  --accent-soft: rgba(238, 117, 36, 0.12);
  --blue-soft: rgba(25, 158, 217, 0.12);
  --blue-gray-soft: rgba(180, 195, 212, 0.28);

  /* Semantic colors */
  --success-color: #27865E;
  --danger-color: #C84235;
  --warning-color: #D65C2C;
  --info-color: var(--primary-color);

  /* Neutrals */
  --ink: #092737;                /* use navy heavily for headings/nav */
  --charcoal: #231F20;           /* optional dark body fallback */
  --slate: #778B99;
  --muted: #778B99;
  --line-soft: rgba(204, 212, 213, 0.55);
  --paper: #FFFFFF;
  --paper-blue: #F4F8FA;

  /* Text colors */
  --text-primary: var(--ink);
  --text-secondary: var(--secondary-color);
  --text-muted: var(--slate-blue);
  --text-inverse: #FFFFFF;

  /* Layout */
  --topbar-height: 64px;
  --content-max-width: 1180px;
  --content-padding: clamp(18px, 4vw, 54px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Surfaces */
  --surface-bg: linear-gradient(180deg, #FFFFFF 0%, #F8FBFC 55%, #EEF4F6 100%);
  --light-bg: #F8FBFC;
  --card-bg: rgba(255, 255, 255, 0.97);
  --card-bg-solid: #FFFFFF;
  --card-border: 1px solid rgba(51, 89, 115, 0.16);
  --card-border-strong: 2px solid var(--primary-color);
  --card-shadow: 0 12px 34px rgba(9, 39, 55, 0.08), 0 2px 8px rgba(9, 39, 55, 0.04);
  --card-shadow-hover: 0 18px 44px rgba(9, 39, 55, 0.14), 0 4px 14px rgba(9, 39, 55, 0.06);

  /* Navigation */
  --sidebar-bg: var(--primary-dark);
  --sidebar-text: #FFFFFF;
  --border-color: var(--line-soft);

  /* Typography
     Futura PT is licensed and must be loaded separately through Adobe Fonts,
     a licensed @font-face kit, or a service such as Canva/export tooling.
     This file does not include or distribute font files.
  */
  --font-heading: 'Futura PT', 'FuturaPT', 'Futura PT Book', 'FuturaPTBook', 'Outfit', 'Montserrat', Arial, sans-serif;
  --font-heading-light: 'Futura PT Light', 'FuturaPT-Light', 'Futura PT', 'Outfit', Arial, sans-serif;
  --font-heading-book: 'Futura PT Book', 'FuturaPTBook', 'Futura PT', 'Outfit', Arial, sans-serif;
  --font-heading-demi: 'Futura PT Demi', 'FuturaPT-Demi', 'Futura PT', 'Outfit', Arial, sans-serif;
  --font-heading-heavy: 'Futura PT Heavy', 'FuturaPT-Heavy', 'Futura PT', 'Outfit', Arial, sans-serif;
  --font-body: 'Zilla Slab', Georgia, serif;
  --font-ui: 'Outfit', 'Montserrat', Arial, sans-serif;

  /* Feature washes */
  --feature-blue: linear-gradient(135deg, rgba(25, 158, 217, 0.16), rgba(51, 89, 115, 0.10));
  --feature-orange: linear-gradient(135deg, rgba(238, 117, 36, 0.16), rgba(214, 92, 44, 0.10));
  --feature-slate: linear-gradient(135deg, rgba(180, 195, 212, 0.35), rgba(119, 139, 153, 0.12));
}

/* ============================================================
   BASE RESET / TYPOGRAPHY
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-bg);
  font-size: 16px;
  line-height: 1.45;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(21, 158, 217, 0.07) 49%, rgba(21, 158, 217, 0.07) 50%, transparent 51%),
    linear-gradient(150deg, transparent 48%, rgba(239, 117, 35, 0.06) 49%, rgba(239, 117, 35, 0.06) 50%, transparent 51%);
  background-size: 360px 260px, 420px 280px;
  opacity: 0.65;
}

h1, h2, h3, h4, h5, h6,
.heading, .section-title, .page-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-top: 0;
  line-height: 1.05;
}

h1, .page-title {
  font-family: var(--font-heading-heavy);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h2, .section-title {
  font-family: var(--font-heading-demi);
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h3, .card-title {
  font-family: var(--font-heading-demi);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p { margin-top: 0; }

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

.small-caps,
.eyebrow,
.workbook-label {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--primary-color);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 68ch;
}

.text-blue { color: var(--primary-color) !important; }
.text-orange { color: var(--accent-color) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ============================================================
   TOP BAR / NAVIGATION
   ============================================================ */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--topbar-height);
  background: linear-gradient(135deg, #092737 0%, #335973 100%);
  color: var(--text-inverse);
  box-shadow: 0 8px 28px rgba(8, 39, 55, 0.28);
  z-index: 1002;
  overflow: visible;
}

.topbar-inner {
  width: 100%;
  max-width: var(--content-max-width);
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-link.is-logo-loading {
  visibility: hidden;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}

.brand-text-stack { display: flex; flex-direction: column; line-height: 1; gap: 0.15rem; }
.brand-text-primary { font-size: 0.82rem; }
.brand-text-secondary { font-size: 0.64rem; opacity: 0.82; letter-spacing: 0.16em; }

.topbar-collapse {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-nav,
.nav-modules-section,
.nav-tools-section {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.55rem);
}

.topbar-nav {
  flex: 1 1 auto;
  justify-content: center;
  margin-left: 0;
}

.nav-modules-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.nav-link,
.nav-module-link,
.nav-tool-link,
.nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-family: var(--font-ui);
  font-size: clamp(0.76rem, 0.2vw + 0.72rem, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.nav-module-link:hover,
.nav-tool-link:hover,
.nav-dropdown-toggle:hover,
.nav-link.active,
.nav-module-link.active,
.nav-tool-link.active,
.nav-link[aria-current='page'],
.nav-module-link[aria-current='page'],
.nav-tool-link[aria-current='page'] {
  color: #FFFFFF;
  border-bottom-color: var(--accent-color);
}

.nav-tool-link:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.75rem;
  top: 50%;
  width: 1px;
  height: 1rem;
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%);
}

.topbar-toggler {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: #FFFFFF;
}

/* Dropdowns */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-menu,
.profile-menu,
.search-dropdown {
  position: absolute;
  top: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(50,89,115,0.16);
  box-shadow: 0 18px 42px rgba(8,39,55,0.18);
  z-index: 2000;
}

.nav-dropdown-menu {
  left: 0;
  min-width: 230px;
  margin-top: 12px;
  padding: 8px 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: none;
}

.nav-dropdown-menu.show { display: block; }

.nav-dropdown-item,
.profile-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active,
.profile-menu-item:hover {
  background: var(--paper-blue);
  border-left-color: var(--accent-color);
  color: var(--primary-dark);
}

/* Search */
.topbar-actions { display: flex; align-items: center; gap: 0.65rem; margin-left: auto; }
.search-section { position: relative; flex: 0 1 320px; }
.top-search-container { position: relative; width: 100%; max-width: 400px; }
.top-search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.94rem;
}
.top-search-input::placeholder { color: rgba(255,255,255,0.68); }
.top-search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(21,158,217,0.22); }
.top-search-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.78); }
.search-dropdown { left: 0; right: 0; margin-top: 8px; border-radius: var(--radius-md); display: none; overflow: hidden; }
.search-dropdown.show { display: block; }
.search-result-item { padding: 12px 18px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.search-result-item:hover,
.search-result-item.highlighted { background: var(--paper-blue); border-left: 4px solid var(--accent-color); }
.search-result-name { font-family: var(--font-ui); font-weight: 700; color: var(--primary-dark); }
.search-result-details { color: var(--text-muted); font-size: 0.9rem; }

.profile-section { position: relative; }
.profile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-icon:hover { border-color: var(--accent-color); background: rgba(255,255,255,0.26); color: #FFFFFF; }
.profile-menu { right: 0; min-width: 200px; margin-top: 10px; border-radius: var(--radius-md); display: none; overflow: hidden; }
.profile-menu.show { display: block; }

/* ============================================================
   MAIN CONTENT / WORKBOOK LAYOUT
   ============================================================ */

.main-content {
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  padding: 2rem var(--content-padding) 3rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.main-content > * {
  width: min(100%, var(--content-max-width));
  margin-left: auto;
  margin-right: auto;
}

.workbook-page,
.page-shell,
.card,
.grid-card,
.content-card,
.worksheet-card {
  position: relative;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.workbook-page,
.page-shell {
  padding: clamp(1.4rem, 4vw, 3.2rem);
  min-height: 560px;
}

.workbook-page::before,
.page-shell::before,
.card::before,
.grid-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 56%, rgba(21,158,217,0.08) 56.2%, transparent 57%),
    linear-gradient(60deg, transparent 0 63%, rgba(239,117,35,0.06) 63.2%, transparent 64%);
  opacity: 0.7;
}

.content-card,
.card,
.grid-card,
.worksheet-card {
  border-radius: 0;
  padding: clamp(1.1rem, 2vw, 1.75rem);
}

.card:hover,
.grid-card:hover { box-shadow: var(--card-shadow-hover); }

.section-hero,
.workbook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.hero-media,
.workbook-photo,
.duotone-photo {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.hero-media img,
.workbook-photo img,
.duotone-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
  opacity: 0.72;
}

.duotone-blue { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.duotone-orange { background: linear-gradient(135deg, var(--accent-color), var(--primary-color)); }

.section-number,
.watermark-number,
.watermark-letter {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-ui);
  font-weight: 800;
  line-height: 0.8;
  color: rgba(179,195,212,0.32);
  z-index: 0;
}
.section-number { right: 5%; bottom: 8%; font-size: clamp(7rem, 20vw, 18rem); }
.watermark-number { left: 4%; top: 12%; font-size: clamp(5rem, 16vw, 13rem); }
.watermark-letter { right: 6%; bottom: 4%; font-size: clamp(6rem, 18vw, 15rem); }

.vertical-label {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ============================================================
   WORKSHEET ELEMENTS
   ============================================================ */

.prompt,
.question-label,
.form-label {
  display: block;
  margin: 1.25rem 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-color);
}

.prompt.orange,
.question-label.orange,
.form-label.orange { color: var(--accent-color); }

input, textarea, select,
.form-control,
.workbook-input,
.workbook-textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(50, 89, 115, 0.22);
  border-radius: 0;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

textarea,
.workbook-textarea { min-height: 140px; resize: vertical; }

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(21,158,217,0.14);
}

.fill-line {
  min-height: 2.4rem;
  border-bottom: 2px solid rgba(21,158,217,0.45);
}

.rating-row,
.skill-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(10, minmax(24px, 34px));
  align-items: center;
  gap: 0;
  min-height: 34px;
  font-family: var(--font-ui);
  font-size: 0.84rem;
}
.rating-row:nth-child(even),
.skill-row:nth-child(even) { background: rgba(21,158,217,0.18); }
.rating-cell { text-align: center; }

.callout,
.note-card {
  border-left: 6px solid var(--accent-color);
  background: linear-gradient(90deg, var(--accent-soft), rgba(255,255,255,0.82));
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.info-callout { border-left-color: var(--primary-color); background: linear-gradient(90deg, var(--blue-soft), rgba(255,255,255,0.82)); }

/* ============================================================
   BUTTONS / BADGES / TABLES
   ============================================================ */

.btn,
.button,
.primary-btn,
.secondary-btn,
.accent-btn,
.chatbot-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.7rem 1.05rem;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.accent-btn:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.primary-btn,
.btn-primary { background: var(--primary-color); color: #FFFFFF; }
.secondary-btn,
.btn-secondary { background: var(--primary-dark); color: #FFFFFF; }
.accent-btn,
.btn-accent { background: var(--accent-color); color: #FFFFFF; }
.outline-btn { background: transparent; border-color: var(--primary-color); color: var(--primary-dark); }

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  background: var(--blue-soft);
  color: var(--primary-dark);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge.orange,
.pill.orange { background: var(--accent-soft); color: var(--accent-dark); }

table,
.workbook-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  background: #FFFFFF;
}
th, td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
th { color: var(--primary-dark); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
tr:nth-child(even) td { background: rgba(21,158,217,0.08); }

/* ============================================================
   LOADING / FROSTED / CHATBOT
   ============================================================ */

.frosted {
  --frost-blur: 10px;
  background-color: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(var(--frost-blur));
  backdrop-filter: blur(var(--frost-blur));
  border: 1px solid rgba(255,255,255,0.35);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(21,158,217,0.15);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--primary-dark); font-family: var(--font-ui); font-weight: 700; }
.loading-subtitle { color: var(--text-muted); }
.loading-skeleton {
  background: linear-gradient(90deg, #eef4f7 25%, #ddebf1 50%, #eef4f7 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
}
@keyframes loading-skeleton { to { background-position: -200% 0; } }

.chatbot-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(8,39,55,0.25);
  z-index: 3000;
  cursor: pointer;
}
.chatbot-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 400px;
  height: 520px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  border: var(--card-border);
  box-shadow: var(--card-shadow-hover);
  z-index: 2999;
}
.chatbot-panel.hidden { display: none; }
.chatbot-header { padding: 13px 15px; background: linear-gradient(90deg, var(--primary-dark), var(--secondary-color)); color: #FFFFFF; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); }
.chatbot-title { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; }
.chatbot-close { background: transparent; border: none; color: #FFFFFF; font-size: 1.1rem; cursor: pointer; }
.chatbot-body { flex: 1 1 auto; overflow-y: auto; padding: 12px; background: var(--paper-blue); }
.chatbot-messages { display: flex; flex-direction: column; gap: 8px; }
.chatbot-message { max-width: 78%; padding: 10px 12px; font-size: 0.95rem; line-height: 1.3; }
.chatbot-message.user { align-self: flex-end; background: var(--blue-soft); color: var(--primary-dark); }
.chatbot-message.bot { align-self: flex-start; background: var(--primary-dark); color: #FFFFFF; }
.chatbot-input-area { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-soft); }
.chatbot-input { flex: 1 1 auto; }


/* ============================================================
   FONT ROLE UTILITIES
   ============================================================ */

.font-futura-light { font-family: var(--font-heading-light); font-weight: 300; }
.font-futura-book { font-family: var(--font-heading-book); font-weight: 400; }
.font-futura-demi { font-family: var(--font-heading-demi); font-weight: 600; }
.font-futura-heavy { font-family: var(--font-heading-heavy); font-weight: 800; }
.font-outfit { font-family: var(--font-ui); }
.font-zilla { font-family: var(--font-body); }

.workbook-heading-heavy {
  font-family: var(--font-heading-heavy);
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.workbook-heading-demi {
  font-family: var(--font-heading-demi);
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.workbook-question-text {
  font-family: var(--font-ui);
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.workbook-body-copy {
  font-family: var(--font-body);
  color: var(--secondary-color);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 1101px) {
  .topbar-inner {
    max-width: calc(
      var(--content-max-width) +
      var(--content-padding) +
      var(--content-padding)
    );
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 1rem;
  }

  .topbar-mobile-header,
  .topbar-collapse {
    display: contents;
  }

  .brand-link {
    grid-column: 1;
    justify-self: start;
    align-self: center;
  }

  .topbar-nav {
    grid-column: 2;
    justify-self: center;
    align-self: center;
  }

  .topbar-actions {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .topbar-inner { flex-wrap: wrap; padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .topbar-mobile-header { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .topbar-toggler { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-collapse { display: none; width: 100%; padding: 0.75rem; border: 1px solid rgba(255,255,255,0.14); background: rgba(8,39,55,0.92); }
  .topbar-collapse.show { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .topbar-nav, .nav-modules-section, .nav-tools-section { flex-direction: column; align-items: stretch; width: 100%; gap: 0.35rem; margin-left: 0; }
  .nav-link, .nav-module-link, .nav-tool-link, .nav-dropdown-toggle { width: 100%; padding: 0.62rem 0.75rem; border-bottom: 0; }
  .nav-link:hover, .nav-module-link:hover, .nav-tool-link:hover { background: rgba(255,255,255,0.10); }
  .nav-tool-link:not(:last-child)::after { display: none; }
  .topbar-actions { width: 100%; justify-content: stretch; }
  .search-section { flex: 1 1 auto; width: 100%; }
  .top-search-container { max-width: none; }
  .main-content { margin-top: var(--topbar-height); }
  .section-hero, .workbook-hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --topbar-height: 58px; }
  .main-content { padding: 1.25rem 1rem 2rem; }
  .workbook-page, .page-shell { padding: 1.25rem; min-height: auto; }
  h1, .page-title { letter-spacing: 0.12em; }
  h2, .section-title { letter-spacing: 0.12em; }
  .vertical-label { position: static; width: 100%; height: 42px; writing-mode: initial; transform: none; margin-top: 1rem; }
  .rating-row, .skill-row { grid-template-columns: 1fr repeat(5, minmax(24px, 1fr)); overflow-x: auto; }
  .chatbot-panel { right: 12px; left: 12px; bottom: 82px; width: auto; }
  .chatbot-fab { right: 16px; bottom: 16px; }
}

@media (pointer: coarse) {
  button, .btn, .button, .nav-link, .nav-module-link, .nav-tool-link, .profile-icon { min-height: 44px; min-width: 44px; }
  input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .top-bar, .chatbot-fab, .chatbot-panel { display: none !important; }
  .main-content { margin-top: 0; padding: 0; }
  body { background: #FFFFFF; }
  body::before { display: none; }
}
