/* ============================================
   SUSS Accessibility Guidebook — Production Styles
   Version 1.0.0
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary: #1a2a6c;
  --primary-light: #2a3d8f;
  --primary-dark: #0f1a45;
  --accent: #c1272d;
  --accent-light: #e63946;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --sidebar-width: 300px;
  --header-height: 65px;
  --nav-height: 60px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(26,42,108,0.08);
  --shadow-lg: 0 8px 32px rgba(26,42,108,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#loginScreen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  display: flex; justify-content: center; align-items: center;
  flex-direction: column;
}
.login-box {
  background: white; border-radius: 16px; padding: 50px; text-align: center;
  box-shadow: var(--shadow-lg); max-width: 420px; width: 90%;
  animation: slideUp 0.5s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-box img { height: 60px; margin-bottom: 20px; }
.login-box h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 8px; }
.login-box p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 25px; }
.login-box input {
  width: 100%; padding: 14px 18px; border: 2px solid #e0e0e0; border-radius: 10px;
  font-size: 1rem; font-family: var(--font); outline: none; transition: border-color 0.3s;
}
.login-box input:focus { border-color: var(--primary); }
.login-box button {
  width: 100%; padding: 14px; background: var(--primary); color: white; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer;
  margin-top: 15px; transition: all 0.3s; font-family: var(--font);
}
.login-box button:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(26,42,108,0.3); }
.login-error { color: var(--accent); font-size: 0.85rem; margin-top: 10px; min-height: 20px; }

/* ============================================
   BOOK LAYOUT
   ============================================ */
#bookApp { display: none; height: 100vh; height: 100dvh; flex-direction: column; }
#bookApp.active { display: flex; }

/* Top Progress Bar */
.top-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px;
  background: rgba(0,0,0,0.1); z-index: 200;
}
.top-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent-light), #ff6b6b);
  width: 0%; transition: width 0.5s ease; border-radius: 0 2px 2px 0;
}

/* Header */
.book-header {
  height: var(--header-height); background: var(--primary); color: white;
  display: flex; align-items: center; padding: 0 25px; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 100;
  flex-shrink: 0;
}
.book-header img { height: 36px; }
.book-header h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.3px; flex: 1; }
.menu-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,0.4);
  color: white; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-size: 1.2rem; font-family: var(--font);
}
.menu-toggle:hover { border-color: white; }

/* Search Bar */
.search-container { position: relative; display: flex; align-items: center; }
.search-toggle {
  background: none; border: none; color: white; font-size: 1.2rem;
  cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: background 0.2s;
}
.search-toggle:hover { background: rgba(255,255,255,0.15); }
.search-box {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: white; border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; width: 340px; display: none;
  animation: slideUp 0.2s ease;
}
.search-box.open { display: block; }
.search-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 8px; padding: 8px 12px;
  border: 2px solid #e0e0e0; transition: border-color 0.3s;
}
.search-input-wrap:focus-within { border-color: var(--primary); }
.search-input-wrap input {
  border: none; background: none; outline: none; width: 100%;
  font-family: var(--font); font-size: 0.95rem; color: var(--text);
}
.search-results { max-height: 280px; overflow-y: auto; margin-top: 10px; }
.search-result-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-size: 0.88rem; color: var(--text); transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item .result-section {
  font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-bottom: 3px;
}
.search-result-item mark {
  background: #fff3cd; padding: 1px 3px; border-radius: 2px; font-weight: 600;
}
.search-no-results { padding: 15px; text-align: center; color: var(--text-light); font-size: 0.9rem; }
.search-count { font-size: 0.75rem; color: var(--text-light); padding: 5px 0; }

/* Main Area */
.book-main { display: flex; flex: 1; overflow: hidden; }

/* ============================================
   SIDEBAR
   ============================================ */
.book-sidebar {
  width: var(--sidebar-width); background: var(--primary-dark); color: white;
  overflow-y: auto; flex-shrink: 0; transition: transform 0.3s ease;
  display: flex; flex-direction: column;
}
.sidebar-label {
  padding: 18px 22px 8px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,0.5); font-weight: 600;
}
.toc-section { border-bottom: 1px solid rgba(255,255,255,0.08); }
.toc-section-btn {
  width: 100%; background: none; border: none; color: rgba(255,255,255,0.85);
  padding: 14px 22px; text-align: left; cursor: pointer; font-size: 0.92rem;
  font-family: var(--font); display: flex; align-items: flex-start; gap: 10px;
  transition: all 0.2s; line-height: 1.4;
}
.toc-section-btn:hover { background: rgba(255,255,255,0.08); color: white; }
.toc-section-btn.active {
  background: rgba(255,255,255,0.12); color: white;
  border-left: 4px solid var(--accent-light);
  padding-left: 18px;
}
.toc-arrow {
  transition: transform 0.3s; flex-shrink: 0; margin-top: 2px; font-size: 0.7rem;
}
.toc-arrow.open { transform: rotate(90deg); }
.toc-subsections { display: none; padding: 0 0 8px 0; }
.toc-subsections.open { display: block; }
.toc-sub-btn {
  width: 100%; background: none; border: none; color: rgba(255,255,255,0.6);
  padding: 8px 22px 8px 48px; text-align: left; cursor: pointer; font-size: 0.85rem;
  font-family: var(--font); transition: all 0.2s; line-height: 1.4;
  position: relative; display: flex; align-items: center;
}
.toc-sub-btn::before {
  content: ''; position: absolute; left: 36px; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,0.15);
}
.toc-sub-btn::after {
  content: ''; position: absolute; left: 36px; top: 50%;
  width: 8px; height: 1px; background: rgba(255,255,255,0.2);
}
.toc-sub-btn:hover { color: white; background: rgba(255,255,255,0.05); }
.toc-sub-btn.active { color: var(--accent-light); font-weight: 600; }

/* Visited checkmark */
.toc-sub-btn .visited-check {
  display: none; margin-left: auto; font-size: 0.75rem;
  color: #2ecc71; flex-shrink: 0;
}
.toc-sub-btn.visited .visited-check { display: inline; }
.toc-sub-btn.visited { color: rgba(255,255,255,0.9); }

/* Sidebar Progress */
.sidebar-progress {
  margin-top: auto; padding: 18px 22px; border-top: 1px solid rgba(255,255,255,0.08);
}
.progress-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.progress-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-bottom: 8px; font-weight: 600; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-light), #ff6b6b); border-radius: 3px; transition: width 0.5s ease; width: 0%; }

/* ============================================
   CONTENT AREA
   ============================================ */
.book-content-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.book-content { flex: 1; overflow-y: auto; padding: 0; scroll-behavior: smooth; }

/* Pages */
.page { display: none; animation: pageFadeIn 0.4s ease; }
.page.active-page { display: block; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   COVER PAGE
   ============================================ */
.cover-page {
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: white; padding: 40px;
}
.cover-page img {
  max-width: 500px; width: 80%; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); margin-bottom: 30px;
}
.cover-page h2 { font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.cover-page p { font-size: 1.1rem; opacity: 0.8; max-width: 500px; }
.cover-start-btn {
  margin-top: 30px; padding: 15px 40px; background: var(--accent); color: white;
  border: none; border-radius: 30px; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; font-family: var(--font); transition: all 0.3s;
}
.cover-start-btn:hover { background: var(--accent-light); transform: scale(1.05); box-shadow: 0 6px 20px rgba(230,57,70,0.4); }

/* Back Cover */
.backcover-page {
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: white; padding: 40px;
}
.backcover-page img {
  max-width: 600px; width: 85%; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4); margin-bottom: 30px;
}
.backcover-page p { font-size: 0.95rem; opacity: 0.7; max-width: 500px; margin-top: 15px; }

/* ============================================
   CONTENT PAGES
   ============================================ */
.content-page {
  max-width: 900px; margin: 0 auto; padding: 50px 40px;
}
.section-badge {
  display: inline-block; background: var(--primary); color: white;
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 15px; letter-spacing: 0.5px;
}
.content-page h2 {
  font-size: 1.8rem; color: var(--primary); margin-bottom: 25px;
  padding-bottom: 12px; border-bottom: 3px solid var(--primary);
}
.content-page h3 {
  font-size: 1.2rem; color: var(--primary); margin: 30px 0 12px;
}
.content-page p {
  margin-bottom: 18px; color: var(--text); font-size: 1.02rem;
}
.content-page ul, .content-page ol {
  padding-left: 24px; margin-bottom: 18px; color: var(--text);
}
.content-page li { margin-bottom: 8px; line-height: 1.6; }
.content-page img {
  max-width: 100%; border-radius: var(--radius); margin: 20px 0;
  box-shadow: var(--shadow);
}

/* ============================================
   MEDIA: VIDEO
   ============================================ */
.video-wrapper {
  position: relative; width: 100%; max-width: 760px; margin: 25px auto;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrapper video { width: 100%; display: block; border-radius: var(--radius); }

/* YouTube Embed */
.youtube-wrapper {
  position: relative; width: 100%; max-width: 760px; margin: 25px auto;
  padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.youtube-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none; border-radius: var(--radius);
}

/* ============================================
   MEDIA: AUDIO & TTS BUTTONS
   ============================================ */
.audio-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.audio-btn, .tts-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; border: none; padding: 10px 20px; border-radius: 25px;
  cursor: pointer; font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
}
.audio-btn { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.audio-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,42,108,0.3); }
.audio-btn.playing { background: var(--accent); }
.tts-btn { background: linear-gradient(135deg, #2d8f5e, #27ae60); }
.tts-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(39,174,96,0.3); }
.tts-btn.speaking { background: var(--accent); }

/* ============================================
   ACCORDION (Transcript, etc.)
   ============================================ */
.accordion { margin: 20px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #e0e0e0; }
.accordion-header {
  background: var(--bg); padding: 14px 20px; cursor: pointer;
  font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px;
  transition: background 0.2s; font-family: var(--font); border: none; width: 100%;
  text-align: left; font-size: 0.95rem;
}
.accordion-header:hover { background: #e8ecf5; }
.accordion-arrow { transition: transform 0.3s; font-size: 0.7rem; }
.accordion-header.open .accordion-arrow { transform: rotate(90deg); }
.accordion-body {
  display: none; padding: 20px; background: white; border-top: 1px solid #e0e0e0;
  font-size: 0.95rem; line-height: 1.7; color: var(--text);
}
.accordion-body.open { display: block; }

/* ============================================
   LAYOUT: FLOAT-RIGHT IMAGE
   ============================================ */
.float-right-layout { overflow: hidden; }
.float-right-layout .float-img {
  float: right; width: 45%; max-width: 380px; margin: 0 0 20px 30px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.float-right-layout p { text-align: left; }

/* ============================================
   LAYOUT: FULL-WIDTH IMAGE (below text)
   ============================================ */
.full-width-img {
  width: 100%; max-width: 700px; margin: 30px auto 10px; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ============================================
   LAYOUT: POUR ICON + TEXT
   ============================================ */
.pour-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.pour-icon { width: 60px; height: 60px; border-radius: 50%; object-fit: contain; box-shadow: none; margin: 0; }

/* ============================================
   CONTENT CARDS & CONTAINERS
   ============================================ */
.content-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); margin: 20px 0; border-left: 5px solid var(--primary);
}
.content-card h3 { margin-top: 0; }
.content-card ul { padding-left: 20px; }

/* ============================================
   FOREWORD / PROVOST'S ADDRESS
   ============================================ */
.foreword-page {
  max-width: 720px; margin: 0 auto;
}
.foreword-page p {
  text-align: justify; line-height: 1.85; margin-bottom: 20px;
  font-size: 1.02rem; color: var(--text);
}
.foreword-signature {
  margin-top: 40px; padding-top: 20px;
  border-left: 4px solid var(--primary); padding-left: 20px;
}
.foreword-signature p { margin-bottom: 2px; text-align: left; }
.signature-name {
  font-weight: 700; font-size: 1.05rem; color: var(--primary);
  margin-bottom: 4px !important;
}
.signature-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.signature-org { color: var(--text-light); font-size: 0.92rem; }
.signature-date {
  margin-top: 12px !important; font-style: italic;
  color: var(--text-light); font-size: 0.9rem;
}

/* ============================================
   ACKNOWLEDGEMENTS
   ============================================ */
.acknowledgements-page {
  max-width: 720px; margin: 0 auto;
}
.acknowledgements-page > p {
  line-height: 1.85; margin-bottom: 20px; font-size: 1.02rem;
  color: var(--text);
}
.contributor-card {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 22px 28px; margin: 18px 0;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
}
.contributor-card p { margin-bottom: 3px; }
.contributor-role {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); font-weight: 700; margin-bottom: 8px !important;
}
.contributor-name {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
}
.contributor-dept {
  font-size: 0.92rem; color: var(--text); font-weight: 500;
}
.contributor-org {
  font-size: 0.88rem; color: var(--text-light); font-style: italic;
}
.start-reading-section {
  text-align: center; margin-top: 40px; padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}
.start-reading-section .full-width-img {
  max-width: 420px; margin: 0 auto 25px;
}
.start-reading-section .cover-start-btn {
  margin-top: 10px;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(26,42,108,0.05), rgba(193,39,45,0.05));
  border: 1px solid rgba(26,42,108,0.15); border-radius: var(--radius);
  padding: 25px; margin: 20px 0; text-align: center;
}
.highlight-box strong { color: var(--primary); font-size: 1.05rem; }

/* Values list (pills) */
.values-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 15px 0; }
.values-list span {
  background: var(--primary); color: white; padding: 8px 18px; border-radius: 25px;
  font-size: 0.9rem; font-weight: 600; text-align: center;
  flex: 1 1 0; min-width: 200px; max-width: 280px;
}

/* Tip box */
.tip-box {
  background: #e8f8f0; border-left: 4px solid #27ae60; padding: 15px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
  font-size: 0.95rem;
}
.tip-box strong { color: #27ae60; }

/* Warning / Note box */
.note-box {
  background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0;
  font-size: 0.95rem;
}

/* ============================================
   UDL CARDS (Engage, Represent, Action)
   ============================================ */
.udl-card {
  background: white; border-radius: var(--radius); padding: 25px;
  box-shadow: var(--shadow); margin: 20px 0;
  border-top: 4px solid var(--primary);
}
.udl-card h3 { color: var(--primary); margin-top: 0; margin-bottom: 8px; font-size: 1.15rem; }
.udl-card .udl-purpose { font-weight: 600; color: var(--text); margin-bottom: 10px; }
.udl-card ul { padding-left: 22px; }

/* ============================================
   ACCESS PILLARS LIST
   ============================================ */
.pillar-list { list-style: none; padding: 0; margin: 20px 0; }
.pillar-list li {
  margin-bottom: 10px; padding: 10px 15px; padding-left: 15px;
  border-left: 4px solid var(--accent); background: rgba(193,39,45,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pillar-list li strong { color: var(--primary); }

/* ============================================
   DOWNLOAD BUTTONS
   ============================================ */
.download-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0;
}
.download-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; background: white; border: 2px solid #e0e0e0;
  border-radius: var(--radius); cursor: pointer; transition: all 0.3s;
  text-decoration: none; color: var(--text); font-family: var(--font);
}
.download-btn:hover {
  border-color: var(--primary); background: rgba(26,42,108,0.03);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.download-btn .dl-icon { font-size: 1.5rem; }
.download-btn .dl-text { font-size: 0.9rem; font-weight: 600; color: var(--primary); }

/* ============================================
   QUICK LINKS TABLE
   ============================================ */
.quick-links-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 0.95rem;
}
.quick-links-table th {
  background: var(--primary); color: white; padding: 12px 16px;
  text-align: left; font-weight: 600;
}
.quick-links-table td {
  padding: 12px 16px; border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}
.quick-links-table tr:nth-child(even) { background: #f8f9fa; }
.quick-links-table a {
  color: var(--primary); text-decoration: underline;
  transition: color 0.2s;
}
.quick-links-table a:hover { color: var(--accent); }

/* ============================================
   IMAGE WITH LABEL
   ============================================ */
.image-label {
  font-size: 0.85rem; color: var(--text-light); font-style: italic;
  text-align: center; margin-top: -10px; margin-bottom: 20px;
}

/* ============================================
   CLICKABLE / LIGHTBOX IMAGE
   ============================================ */
.lightbox-trigger {
  cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s;
}
.lightbox-trigger:hover {
  transform: scale(1.02); box-shadow: var(--shadow-lg);
}
.click-hint {
  font-size: 0.8rem; color: var(--primary); font-style: italic;
  text-align: center; margin-top: -10px; margin-bottom: 5px;
}

/* Lightbox overlay */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85); justify-content: center; align-items: center;
  animation: fadeIn 0.3s ease;
}
.lightbox-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh;
}
.lightbox-content img {
  max-width: 90vw; max-height: 85vh; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain;
}
.lightbox-close {
  position: absolute; top: -15px; right: -15px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  font-size: 1.5rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lightbox-close:hover { background: var(--accent-light); transform: scale(1.1); }
.lightbox-caption {
  color: white; text-align: center; margin-top: 12px;
  font-size: 0.9rem; opacity: 0.8;
}

/* ============================================
   REFERENCES PAGE
   ============================================ */
.references-list { list-style: none; padding: 0; }
.references-list li {
  padding: 12px 0; border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem; line-height: 1.6;
}
.references-list li:last-child { border-bottom: none; }
.references-list a { color: var(--primary); word-break: break-all; }

/* ============================================
   NAV BAR
   ============================================ */
.book-nav {
  height: var(--nav-height); background: white; border-top: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; flex-shrink: 0;
}
.nav-btn {
  background: var(--primary); color: white; border: none; padding: 10px 24px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-family: var(--font);
  font-size: 0.9rem; transition: all 0.3s;
}
.nav-btn:hover { background: var(--primary-light); transform: translateY(-1px); }
.nav-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.page-indicator { font-weight: 600; color: var(--text-light); font-size: 0.9rem; }

/* ============================================
   ACCESSIBILITY: FOCUS & SKIP LINK
   ============================================ */
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--accent);
  color: white; padding: 8px 20px; z-index: 200; font-weight: 600;
  transition: top 0.3s; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ============================================
   IP PROTECTION: SELECTION & PRINT
   ============================================ */
.content-page, .cover-page, .backcover-page {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
@media print { body { display: none !important; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .book-sidebar {
    position: fixed; left: 0; top: var(--header-height); bottom: 0;
    z-index: 50; transform: translateX(-100%);
  }
  .book-sidebar.mobile-open { transform: translateX(0); }
  .menu-toggle { display: block; }
  .content-page { padding: 30px 20px; }
  .cover-page h2 { font-size: 1.5rem; }
  .float-right-layout .float-img {
    float: none; width: 100%; max-width: 100%; margin: 20px 0;
  }
  .download-grid { grid-template-columns: 1fr; }
  .search-box { width: 280px; right: -30px; }
  .udl-card { padding: 20px; }
  .pour-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .book-header h1 { font-size: 0.95rem; }
  .content-page h2 { font-size: 1.4rem; }
  .book-nav { padding: 0 15px; }
  .nav-btn { padding: 8px 16px; font-size: 0.85rem; }
}
