/* === REACT-MANAGED START === */
/* React-managed source: src/styles/oeg-react.css */
/* =====================================================
   OEG React Components - CSS Styles
   All classes prefixed with 'react-' to avoid conflicts
   with existing oeg-custom-pages styles
   ===================================================== */

/* =====================================================
   OEG Sans Font Face Declarations
   ===================================================== */
@font-face {
  font-family: 'OEG-Sans';
  src: url('https://www.oracleerpguide.com/wp-content/uploads/2021/02/OEG-Sans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OEG-Sans';
  src: url('https://www.oracleerpguide.com/wp-content/uploads/2021/02/OEG-Sans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* OEG Brand Colors */
:root {
  --react-oeg-primary: #204F70;
  --react-oeg-secondary: #E2EEFF;
  --react-oeg-accent: #FA4457;
  --react-oeg-black: #1C1C1E;
  --react-oeg-white: #FFFFFF;
  --react-oeg-gray-100: #F7F7F7;
  --react-oeg-gray-200: #E5E5E5;
  --react-oeg-gray-300: #D4D4D4;
  --react-oeg-gray-500: #737373;
  --react-oeg-gray-700: #404040;
  --react-oeg-gray-900: #171717;
  
  /* Spacing */
  --react-spacing-xs: 0.25rem;
  --react-spacing-sm: 0.5rem;
  --react-spacing-md: 1rem;
  --react-spacing-lg: 1.5rem;
  --react-spacing-xl: 2rem;
  --react-spacing-2xl: 3rem;
  --react-spacing-3xl: 4rem;
  
  /* Typography */
  --react-font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Borders & Shadows */
  --react-border-radius-sm: 0.25rem;
  --react-border-radius-md: 0.5rem;
  --react-border-radius-lg: 0.75rem;
  --react-border-radius-xl: 1rem;
  --react-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --react-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --react-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =====================================================
   Base Page Wrappers
   ===================================================== */
.react-oeg-homepage,
.react-oeg-course-page,
.react-oeg-cert-path-page,
.react-oeg-book-page,
.react-oeg-instance-page,
.react-oeg-service-page,
.react-oeg-landing-page,
.react-oeg-blog-page {
  font-family: var(--react-font-family);
  color: var(--react-oeg-black);
  line-height: 1.6;
}

/* =====================================================
   Hero Section
   ===================================================== */
.react-hero-section {
  background: linear-gradient(135deg, var(--react-oeg-primary) 0%, #1a3d5c 100%);
  color: var(--react-oeg-white);
  padding: var(--react-spacing-3xl) var(--react-spacing-lg);
  text-align: center;
}

.react-hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.react-hero-header-centered {
  max-width: 800px;
  margin: 0 auto;
}

.react-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--react-spacing-md);
  line-height: 1.2;
}

.react-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: var(--react-spacing-xl);
}

.react-hero-cta {
  margin-top: var(--react-spacing-xl);
}

/* Hero Variants */
.react-hero-course {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.react-hero-book {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.react-hero-instance {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.react-hero-service {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.react-hero-landing {
  background: linear-gradient(135deg, var(--react-oeg-primary) 0%, #0f2942 100%);
  padding: var(--react-spacing-3xl) var(--react-spacing-lg);
}

/* =====================================================
   Buttons
   ===================================================== */
.react-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--react-spacing-sm);
  padding: var(--react-spacing-sm) var(--react-spacing-lg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--react-border-radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.react-oeg-course-page .react-btn {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none;
  font-family: var(--react-font-family);
}

.react-oeg-course-page .react-btn:focus-visible {
  outline: 2px solid rgba(32, 79, 112, 0.5);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(32, 79, 112, 0.15);
}

.react-btn-primary {
  background-color: var(--react-oeg-primary);
  color: var(--react-oeg-white);
}

.react-oeg-course-page .react-btn-primary,
.react-oeg-course-page .react-btn-primary:visited {
  color: var(--react-oeg-white) !important;
  background-color: var(--react-oeg-primary) !important;
}

.react-btn-primary:hover {
  background-color: #163a59;
  transform: translateY(-1px);
  box-shadow: var(--react-shadow-md);
  color: var(--react-oeg-white);
}

.react-oeg-course-page .react-btn-primary:hover,
.react-oeg-course-page .react-btn-primary:focus-visible {
  background-color: #163a59 !important;
  color: var(--react-oeg-white) !important;
  box-shadow: var(--react-shadow-md) !important;
}

.react-btn-accent {
  background-color: var(--react-oeg-accent);
  color: var(--react-oeg-white);
}

.react-oeg-course-page .react-btn-accent,
.react-oeg-course-page .react-btn-accent:visited {
  color: var(--react-oeg-white) !important;
  background-color: var(--react-oeg-accent) !important;
}

.react-btn-accent:hover {
  background-color: #e03344;
  transform: translateY(-1px);
  box-shadow: var(--react-shadow-md);
  color: var(--react-oeg-white);
}

.react-oeg-course-page .react-btn-accent:hover,
.react-oeg-course-page .react-btn-accent:focus-visible {
  background-color: #e03344 !important;
  color: var(--react-oeg-white) !important;
  box-shadow: var(--react-shadow-md) !important;
}

.react-btn-whatsapp {
  background-color: #25d366;
  color: var(--react-oeg-white);
}

.react-oeg-course-page .react-btn-whatsapp,
.react-oeg-course-page .react-btn-whatsapp:visited {
  background-color: #25d366 !important;
  color: var(--react-oeg-white) !important;
}

.react-btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: var(--react-shadow-md);
}

.react-oeg-course-page .react-btn-whatsapp:hover,
.react-oeg-course-page .react-btn-whatsapp:focus-visible {
  background-color: #1ebe5d !important;
  color: var(--react-oeg-white) !important;
  box-shadow: var(--react-shadow-md) !important;
}

.react-btn-secondary {
  background-color: var(--react-oeg-white);
  color: var(--react-oeg-primary);
  border: none;
  box-shadow: inset 0 0 0 2px var(--react-oeg-primary);
}

.react-oeg-course-page .react-btn-secondary,
.react-oeg-course-page .react-btn-secondary:visited {
  background-color: var(--react-oeg-white) !important;
  color: var(--react-oeg-primary) !important;
  box-shadow: inset 0 0 0 2px var(--react-oeg-primary) !important;
}

.react-btn-secondary:hover {
  background-color: var(--react-oeg-secondary);
}

.react-oeg-course-page .react-btn-secondary:hover,
.react-oeg-course-page .react-btn-secondary:focus-visible {
  background-color: var(--react-oeg-secondary) !important;
  color: var(--react-oeg-primary) !important;
}

.react-btn-full {
  width: 100%;
}

.react-btn-icon {
  flex-shrink: 0;
}

.react-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =====================================================
   Trust Bar
   ===================================================== */
.react-trust-bar {
  background-color: var(--react-oeg-gray-100);
  padding: var(--react-spacing-lg) var(--react-spacing-md);
  border-bottom: 1px solid var(--react-oeg-gray-200);
}

.react-trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--react-spacing-xl);
}

.react-trust-item {
  display: flex;
  align-items: center;
  gap: var(--react-spacing-sm);
  color: var(--react-oeg-gray-700);
}

.react-trust-icon {
  color: var(--react-oeg-primary);
}

.react-trust-text {
  font-size: 0.875rem;
  font-weight: 500;
}

/* =====================================================
   Forms
   ===================================================== */
.react-contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--react-spacing-xl);
  background: var(--react-oeg-white);
  border-radius: var(--react-border-radius-lg);
  box-shadow: var(--react-shadow-lg);
}

.react-form-group {
  margin-bottom: var(--react-spacing-lg);
}

.react-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--react-oeg-gray-700);
  margin-bottom: var(--react-spacing-xs);
}

.react-required {
  color: var(--react-oeg-accent);
}

.react-form-input,
.react-form-textarea {
  width: 100%;
  padding: var(--react-spacing-sm) var(--react-spacing-md);
  font-size: 1rem;
  border: 1px solid var(--react-oeg-gray-300);
  border-radius: var(--react-border-radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.react-form-input:focus,
.react-form-textarea:focus {
  outline: none;
  border-color: var(--react-oeg-primary);
  box-shadow: 0 0 0 3px rgba(32, 79, 112, 0.1);
}

.react-form-textarea {
  resize: vertical;
  min-height: 100px;
}

.react-form-success {
  margin-top: var(--react-spacing-md);
  padding: var(--react-spacing-md);
  background-color: #d1fae5;
  color: #065f46;
  border-radius: var(--react-border-radius-md);
  text-align: center;
}

.react-form-error {
  margin-top: var(--react-spacing-md);
  padding: var(--react-spacing-md);
  background-color: #fee2e2;
  color: #991b1b;
  border-radius: var(--react-border-radius-md);
  text-align: center;
}

/* =====================================================
   Page Sections
   ===================================================== */
.react-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--react-oeg-black);
  margin-bottom: var(--react-spacing-lg);
}

.react-course-details,
.react-book-details,
.react-instance-details,
.react-service-details,
.react-landing-form-section {
  padding: var(--react-spacing-3xl) var(--react-spacing-lg);
  background: var(--react-oeg-white);
}

.react-course-container,
.react-book-container,
.react-instance-container,
.react-service-container,
.react-landing-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Course specific */
.react-course-meta,
.react-course-pricing {
  margin-bottom: var(--react-spacing-md);
}

.react-course-duration,
.react-course-price {
  font-size: 1.125rem;
  color: var(--react-oeg-gray-700);
}

/* Book specific */
.react-book-cover img {
  max-width: 300px;
  border-radius: var(--react-border-radius-lg);
  box-shadow: var(--react-shadow-lg);
}

.react-book-author {
  font-size: 1rem;
  color: var(--react-oeg-gray-500);
}

/* Instance specific */
.react-status-badge {
  display: inline-block;
  padding: var(--react-spacing-xs) var(--react-spacing-sm);
  border-radius: var(--react-border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.react-status-active {
  background-color: #d1fae5;
  color: #065f46;
}

.react-status-maintenance {
  background-color: #fef3c7;
  color: #92400e;
}

.react-status-offline {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Service features */
.react-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.react-feature-item {
  padding: var(--react-spacing-sm) 0;
  padding-left: var(--react-spacing-lg);
  position: relative;
}

.react-feature-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--react-oeg-primary);
  font-weight: bold;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 768px) {
  .react-hero-title {
    font-size: 1.75rem;
  }

  .react-hero-subtitle {
    font-size: 1rem;
  }

  .react-trust-container {
    flex-direction: column;
    align-items: center;
  }

  .react-contact-form {
    padding: var(--react-spacing-lg);
  }
}

@media (min-width: 1024px) {
  .react-hero-title {
    font-size: 3rem;
  }

  .react-hero-subtitle {
    font-size: 1.5rem;
  }
}
/* End React source: src/styles/oeg-react.css */

/* React-managed source: src/styles/oeg-one-contents-page.css */
/* Override .oeg-homepage section { padding: 80px 20px } for this host only */
.oeg-homepage .react-oeg-one-host,
.react-oeg-one-host {
  padding: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
@media (max-width: 768px) {
  .oeg-homepage .react-oeg-one-host,
  .react-oeg-one-host {
    padding: 20px 10px !important;
  }
}

.react-oeg-one-contents-page {
  --oeg-one-brand-blue: #204f70;
  --oeg-one-brand-blue-dark: #183c56;
  --oeg-one-brand-blue-soft: #dbe9f6;
  min-height: auto;
  background: transparent;
  padding: 0;
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #223345;
  scroll-margin-top: 96px;
}

.oeg-one-contents-layout {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section heading — direct child so panel's inner h2 (module name) stays styled by its own rule */
.oeg-one-contents-layout > h2 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #183247;
}

.oeg-one-contents-subtitle {
  text-align: center;
  color: #5a6e82;
  font-size: 1.02rem;
  line-height: 1.5;
  margin: 0 auto 24px;
  max-width: 680px;
}

.oeg-one-search-wrap {
  position: relative;
  margin-bottom: 24px;
  z-index: 25;
}

.oeg-one-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d7dee8;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(25, 52, 76, 0.08);
}

.oeg-one-search-icon {
  color: #617489;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oeg-one-search-icon svg {
  width: 34px;
  height: 34px;
}

.oeg-one-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #27384a;
  font-size: 1.4rem;
  line-height: 1.2;
  min-width: 120px;
}

/* Override theme input[type="search"] defaults on WordPress theme. */
.react-oeg-one-contents-page input.oeg-one-search-input {
  border: 0;
  background: transparent;
  color: #27384a;
  padding: 0;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.oeg-one-search-input:focus {
  outline: none;
}

.react-oeg-one-contents-page input.oeg-one-search-input:focus {
  border: 0;
  background: transparent;
  color: #27384a;
  box-shadow: none;
  outline: none;
}

.oeg-one-search-input::placeholder {
  color: #728499;
}

.oeg-one-clear-btn {
  border: 0;
  border-radius: 10px;
  background: #2e3136;
  color: #f0f4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.react-oeg-one-contents-page button.oeg-one-clear-btn {
  border: 0;
  background: #2e3136;
  color: #f0f4f8;
  box-shadow: none;
}

.oeg-one-clear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oeg-one-clear-icon svg {
  width: 16px;
  height: 16px;
}

.oeg-one-clear-btn:hover {
  background: #1f2124;
  transform: translateY(-1px);
}

.react-oeg-one-contents-page button.oeg-one-clear-btn:hover {
  background: #1f2124;
  color: #f0f4f8;
}

.oeg-one-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fbfdff;
  border: 1px solid #c5d3e2;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(26, 46, 66, 0.17);
  max-height: 350px;
  overflow-y: auto;
}

.oeg-one-search-empty {
  padding: 12px 16px;
  color: #5e6f80;
  font-size: 0.95rem;
}

.oeg-one-search-result {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e5ecf3;
  background: transparent;
  text-align: left;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.react-oeg-one-contents-page button.oeg-one-search-result {
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid #e5ecf3;
  border-radius: 0;
  box-shadow: none;
}

.oeg-one-search-result:last-child {
  border-bottom: 0;
}

.oeg-one-search-result:hover {
  background: color-mix(in srgb, var(--oeg-one-brand-blue) 10%, #ffffff);
}

.oeg-one-search-result-path {
  color: #62778f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.oeg-one-search-result-text {
  color: #1d334a;
  font-size: 0.99rem;
  font-weight: 600;
}

.oeg-one-search-result-context {
  color: #4f6278;
  font-size: 0.82rem;
}

/* ── Toolbar: module chips + search on one row (desktop) ───────────────────
   The search bar always takes the space left over. While it's in use
   (.is-searching) the chips squeeze to icons, so the bar grows and pushes
   them left. The selected chip keeps its label; squeezed icons get a tooltip. */
.oeg-one-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.oeg-one-mod-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  flex: 0 0 auto;
  transition: gap 0.35s ease;
}
.oeg-one-toolbar.is-searching .oeg-one-mod-chips {
  gap: 8px;
}

/* Same look as the Training Library tabs further up the page */
.oeg-one-mod-chip,
.react-oeg-one-contents-page button.oeg-one-mod-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: #E2EEFF;
  border: 2px solid transparent;
  border-radius: 8px !important;
  color: #1C1C1E;
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: padding 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.oeg-one-mod-chip:hover,
.react-oeg-one-contents-page button.oeg-one-mod-chip:hover {
  background: #E2EEFF;
  border-color: transparent;
  color: #1C1C1E;
}
.oeg-one-mod-chip.is-active,
.react-oeg-one-contents-page button.oeg-one-mod-chip.is-active,
.react-oeg-one-contents-page button.oeg-one-mod-chip.is-active:hover {
  background: #204F70;
  border-color: #204F70;
  color: #FFFFFF;
}
.oeg-one-mod-chip-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.oeg-one-mod-chip-label {
  display: inline-block;
  max-width: 120px;
  margin-left: 8px;
  overflow: hidden;
  opacity: 1;
  transition: max-width 0.35s ease, margin-left 0.35s ease, opacity 0.25s ease;
}

/* Squeezed while searching: every chip is an icon; the selected one stays navy */
.oeg-one-toolbar.is-searching .oeg-one-mod-chip,
.react-oeg-one-contents-page .oeg-one-toolbar.is-searching button.oeg-one-mod-chip {
  padding: 14px;
}
.oeg-one-toolbar.is-searching .oeg-one-mod-chip .oeg-one-mod-chip-label {
  max-width: 0;
  margin-left: 0;
  opacity: 0;
}

/* Tooltip (module short name, e.g. FIN), only on squeezed icons.
   ::after is the label, ::before the small pointer under it. */
.oeg-one-mod-chip::after,
.oeg-one-mod-chip::before {
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 40;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.oeg-one-mod-chip::after {
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 7px 12px;
  border-radius: 8px;
  background: #204F70;
  color: #FFFFFF;
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(32, 79, 112, 0.25);
}
.oeg-one-mod-chip::before {
  content: '';
  bottom: calc(100% + 4px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #204F70;
  transform: translate(-50%, 4px);
}
.oeg-one-toolbar.is-searching .oeg-one-mod-chip:hover::after,
.oeg-one-toolbar.is-searching .oeg-one-mod-chip:hover::before,
.oeg-one-toolbar.is-searching .oeg-one-mod-chip:focus-visible::after,
.oeg-one-toolbar.is-searching .oeg-one-mod-chip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}

/* Search bar: fills whatever space the chips leave */
.oeg-one-toolbar .oeg-one-search-wrap {
  flex: 1 1 auto;
  min-width: 160px;
  margin-bottom: 0;
}
.oeg-one-toolbar .oeg-one-search-input-wrap {
  height: 52px;
  padding: 0 14px;
  border: 2px solid #E2EEFF;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.3s ease;
}
.oeg-one-toolbar.is-searching .oeg-one-search-input-wrap {
  border-color: #204F70;
}
/* Smaller magnifier and text in the toolbar search bar */
.oeg-one-toolbar .oeg-one-search-input-wrap {
  gap: 10px;
}
.oeg-one-toolbar .oeg-one-search-icon svg {
  width: 18px;
  height: 18px;
}
.oeg-one-toolbar .oeg-one-search-input,
.react-oeg-one-contents-page .oeg-one-toolbar input.oeg-one-search-input {
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
}

/* Narrower desktops: not enough room for labels and a usable search bar,
   so chips stay as icons (with tooltips) except the selected one. */
@media (min-width: 769px) and (max-width: 1100px) {
  .oeg-one-toolbar .oeg-one-mod-chip:not(.is-active),
  .react-oeg-one-contents-page .oeg-one-toolbar button.oeg-one-mod-chip:not(.is-active) {
    padding: 14px;
  }
  .oeg-one-toolbar .oeg-one-mod-chip:not(.is-active) .oeg-one-mod-chip-label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
  }
  .oeg-one-toolbar .oeg-one-mod-chip:not(.is-active):hover::after,
  .oeg-one-toolbar .oeg-one-mod-chip:not(.is-active):hover::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .oeg-one-mod-chips { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .oeg-one-mod-chips,
  .oeg-one-mod-chip,
  .oeg-one-mod-chip-label,
  .oeg-one-mod-chip::after,
  .oeg-one-mod-chip::before { transition: none !important; }
}
/* ── Course switcher in the pane header (replaces the course strip row) ──
   "FIN > [course v]  76 topics ............ 1 of 19  <  >"
   The course name opens a menu of the module's courses. */
.oeg-one-course-picker-btn,
.react-oeg-one-contents-page button.oeg-one-course-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: -6px 0;
  padding: 6px 10px;
  background: #E2EEFF;
  border: 1px solid transparent;
  border-radius: 8px !important;
  color: #204F70;
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.oeg-one-course-picker-btn:hover,
.react-oeg-one-contents-page button.oeg-one-course-picker-btn:hover,
.oeg-one-course-picker-btn.is-open,
.react-oeg-one-contents-page button.oeg-one-course-picker-btn.is-open {
  background: #E2EEFF;
  border-color: #204F70;
  color: #204F70;
}
.oeg-one-course-picker-btn .oeg-one-pane-crumb-course {
  white-space: nowrap;
  font-size: 0.9rem;
}
.oeg-one-course-picker-chev {
  flex: 0 0 auto;
  color: #204F70;
  transition: transform 0.2s ease;
}
.oeg-one-course-picker-btn.is-open .oeg-one-course-picker-chev {
  transform: rotate(180deg);
}

.oeg-one-pane-crumb-count {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a6e82;
  white-space: nowrap;
}

.oeg-one-course-stepper {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
}
.oeg-one-course-pos {
  margin-right: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6e82;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.oeg-one-course-step,
.react-oeg-one-contents-page button.oeg-one-course-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #c8d4df;
  border-radius: 8px !important;
  color: #204F70;
  cursor: pointer;
  box-shadow: none;
}
.oeg-one-course-step:hover,
.react-oeg-one-contents-page button.oeg-one-course-step:hover {
  background: #f0f5fa;
  border-color: #204F70;
  color: #204F70;
}
.oeg-one-course-step:disabled,
.react-oeg-one-contents-page button.oeg-one-course-step:disabled {
  opacity: 0.35;
  cursor: default;
  background: #ffffff;
  border-color: #c8d4df;
}
.oeg-one-course-step-icon.is-left {
  transform: rotate(180deg);
}

/* Course menu: drops down from the header, over the topics */
.oeg-one-course-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #c8d4df;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(26, 46, 66, 0.17);
  animation: oeg-course-menu-open 0.15s ease-out;
}
@keyframes oeg-course-menu-open {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.oeg-one-course-menu-item,
.react-oeg-one-contents-page button.oeg-one-course-menu-item {
  display: flex;
  /* Centre the number and name vertically when a neighbouring tile's two-line
     name makes this row taller (no empty space below short names). */
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  /* Outlined tile: each course is its own small bordered box */
  background: #f7f9fb;
  border: 1px solid #c8d4df;
  border-radius: 8px !important;
  color: #27384a;
  font-family: 'OEG-Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
.oeg-one-course-menu-item:hover,
.react-oeg-one-contents-page button.oeg-one-course-menu-item:hover {
  background: #f0f5fa;
  border-color: #204F70;
  color: #204F70;
}
.oeg-one-course-menu-item.is-active,
.react-oeg-one-contents-page button.oeg-one-course-menu-item.is-active,
.react-oeg-one-contents-page button.oeg-one-course-menu-item.is-active:hover {
  background: #204F70;
  border-color: #204F70;
  color: #ffffff;
}
.oeg-one-course-menu-num {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--oeg-one-brand-blue);
}
.oeg-one-course-menu-item.is-active .oeg-one-course-menu-num {
  color: rgba(255, 255, 255, 0.65);
}
@media (prefers-reduced-motion: reduce) {
  .oeg-one-course-menu { animation: none; }
  .oeg-one-course-picker-chev { transition: none; }
}
/* Breadcrumb — sticky flush with top of card.
   top: -14px offsets the card's own 14px padding so it sticks at the border edge.
   White box-shadow below it masks scrolling content passing underneath. */
.oeg-one-pane-breadcrumb {
  position: sticky;
  top: -14px;
  z-index: 2;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6e82;
  padding: 14px 0 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid #dbe9f6;
  box-shadow: 0 8px 12px 4px #ffffff;
}

.oeg-one-pane-crumb-mod {
  color: #5a6e82;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.oeg-one-pane-crumb-sep {
  width: 12px;
  height: 12px;
  color: #a7b3c0;
  flex: 0 0 auto;
}

.oeg-one-pane-crumb-course {
  color: #204f70;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
}

/* ── Topic reading pane — matches sidebar height so the two cards align */
.oeg-one-topic-area {
  border: 1px solid #c9d6e2;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  height: 640px;
  min-height: 640px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 79, 112, 0.22) transparent;
}
.oeg-one-topic-area::-webkit-scrollbar { width: 6px; }
.oeg-one-topic-area::-webkit-scrollbar-track { background: transparent; }
.oeg-one-topic-area::-webkit-scrollbar-thumb {
  background: rgba(32, 79, 112, 0.22);
  border-radius: 999px;
}

.oeg-one-topic-flow {
  column-count: 2;
  column-gap: 12px;
}

.oeg-one-topic-block {
  break-inside: avoid;
  margin-bottom: 12px;
  background: #ffffff;
  border: 2px solid #e2eeff;
  border-radius: 8px;
  padding: 14px 18px;
}

.oeg-one-topic-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 1rem;
  color: #184a78;
  font-weight: 700;
  line-height: 1.4;
}

.oeg-one-topic-list {
  margin: 0;
  padding-left: 26px;
  list-style: disc;
  list-style-position: outside;
}

.oeg-one-topic-list li {
  margin: 0 0 7px;
  padding: 1px 4px;
  border-radius: 6px;
  color: #27445f;
  font-size: 1rem;
  line-height: 1.4;
}

.oeg-one-topic-list .oeg-one-topic-list {
  margin-top: 6px;
  padding-left: 24px;
  list-style-type: circle;
}

.oeg-one-topic-list .oeg-one-topic-list .oeg-one-topic-list {
  list-style-type: square;
}

.oeg-one-highlight {
  background: #fff175;
  padding: 0 2px;
  border-radius: 3px;
}

.oeg-one-selected-hit {
  background: linear-gradient(90deg, rgba(255, 237, 99, 0.65) 0%, rgba(255, 243, 161, 0.45) 100%);
  box-shadow: inset 0 0 0 1px rgba(204, 157, 0, 0.34);
  animation: oegHitPulse 0.85s ease;
}

.oeg-one-empty-state {
  margin: 0;
  color: #5d6d7f;
  font-size: 0.95rem;
}

@keyframes oegHitPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}

/* Narrower viewports: sidebar stays but topic pane shortens */
@media (max-width: 1024px) {
  .oeg-one-topic-area { height: 560px; min-height: 560px; }
  .oeg-one-topic-flow { column-count: 1; }
}

/* Mobile drill-down shell is hidden on desktop */
.oeg-one-mobile-shell {
  display: none;
}

/* ── Mobile: iOS-style progressive drill-down ──────────────────────────── */
@media (max-width: 768px) {
  /* Swap shells */
  .oeg-one-desktop-shell { display: none; }
  .oeg-one-mobile-shell { display: block; }

  .oeg-one-contents-layout > h2 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  /* Hide subtitle on mobile to keep the drill-down shell tight */
  .oeg-one-contents-subtitle { display: none; }

  /* ── Drill-down levels ── */
  .oeg-one-mobile-level {
    animation: oeg-one-mobile-slide 0.22s ease-out;
  }

  .oeg-one-mobile-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #5a6e82;
    overflow: hidden;
  }

  .oeg-one-mobile-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 4px 6px 4px 0;
    color: var(--oeg-one-brand-blue);
    font-weight: 650;
    font-size: 0.92rem;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .react-oeg-one-contents-page button.oeg-one-mobile-back {
    background: transparent;
    color: var(--oeg-one-brand-blue);
    border: 0;
    box-shadow: none;
    padding: 4px 6px 4px 0;
  }
  .oeg-one-mobile-back svg {
    width: 18px;
    height: 18px;
  }

  .oeg-one-mobile-crumb-current {
    color: #223345;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .oeg-one-mobile-crumb-current::before {
    content: '/';
    margin: 0 6px 0 2px;
    color: #a7b3c0;
    font-weight: 400;
  }

  .oeg-one-mobile-heading {
    margin: 2px 0 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #183349;
    line-height: 1.25;
  }

  .oeg-one-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* L2 (course list) can be long — bound it so the page doesn't scroll forever.
     Matches the L3 topic-content scroll pattern. L1 (module list) is always 7
     rows so no bound needed there. */
  .oeg-one-mobile-shell[data-level="2"] .oeg-one-mobile-list {
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
  }
  /* Drop the bottom fade once the user has actually scrolled to the end —
     the fade is a "more content below" hint, so it should disappear at real end. */
  .oeg-one-mobile-shell[data-level="2"] .oeg-one-mobile-list[data-at-end="true"] {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .oeg-one-mobile-shell[data-level="2"] .oeg-one-mobile-list::-webkit-scrollbar { width: 4px; }
  .oeg-one-mobile-shell[data-level="2"] .oeg-one-mobile-list::-webkit-scrollbar-thumb {
    background: rgba(32, 79, 112, 0.3);
    border-radius: 999px;
  }

  .oeg-one-mobile-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    padding: 12px 12px;
    cursor: pointer;
    color: #1d334a;
    box-shadow: 0 2px 6px rgba(25, 52, 76, 0.05);
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
  }
  .react-oeg-one-contents-page button.oeg-one-mobile-row {
    background: #ffffff;
    color: #1d334a;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(25, 52, 76, 0.05);
  }
  .oeg-one-mobile-row:active {
    background: #f4f7fb;
    transform: scale(0.995);
  }

  .oeg-one-mobile-row-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--oeg-one-brand-blue);
  }
  .oeg-one-mobile-row-icon svg {
    width: 20px;
    height: 20px;
  }

  .oeg-one-mobile-row-num {
    flex: 0 0 auto;
    min-width: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--oeg-one-brand-blue);
  }

  .oeg-one-mobile-row-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .oeg-one-mobile-row-title {
    font-size: 0.98rem;
    font-weight: 650;
    color: #183349;
    line-height: 1.3;
  }
  .oeg-one-mobile-row-sub {
    font-size: 0.78rem;
    color: #627586;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .oeg-one-mobile-row-meta {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a6e82;
    background: #eef2f7;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .oeg-one-mobile-row-chev {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #94a3b8;
  }

  /* ── Level 3: topic content (scrollable within a fixed viewport) ── */
  .oeg-one-mobile-topic-content {
    background: color-mix(in srgb, var(--module-panel-color, #f1f4f8) 22%, #ffffff);
    border: 1px solid #c8d4df;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 65vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* overscroll-behavior intentionally NOT set — once the inner scroll hits
       bottom, continued scroll bubbles up to the page so users can keep going
       without lifting their finger to scroll the whole viewport. */
    /* Soft fade at bottom edge hints there's more content below */
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 24px), transparent 100%);
  }
  /* Drop the bottom fade once the user has scrolled to the real end — the
     fade is a "more below" hint, so a clean cut should mark actual termination.
     Toggled by data-at-end attribute set from the component's scroll handler. */
  .oeg-one-mobile-topic-content[data-at-end="true"] {
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Slim custom scrollbar */
  .oeg-one-mobile-topic-content::-webkit-scrollbar { width: 4px; }
  .oeg-one-mobile-topic-content::-webkit-scrollbar-thumb {
    background: rgba(32, 79, 112, 0.3);
    border-radius: 999px;
  }
  /* Breadcrumb + heading stick to the top while topics scroll below.
     Match the page background (#F7F7F7) so they blend in. */
  .oeg-one-mobile-crumbs,
  .oeg-one-mobile-heading {
    position: sticky;
    top: 0;
    background: #F7F7F7;
    z-index: 2;
  }
  .oeg-one-mobile-crumbs { padding-top: 4px; }
  .oeg-one-mobile-heading { padding-bottom: 10px; margin-bottom: 4px !important; }
  .oeg-one-mobile-topic-content .oeg-one-topic-block {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 0;
  }
  .oeg-one-mobile-topic-content .oeg-one-topic-block + .oeg-one-topic-block {
    margin-top: 0;
  }
  .oeg-one-mobile-topic-content .oeg-one-topic-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  .oeg-one-mobile-topic-content .oeg-one-topic-list li {
    font-size: 0.88rem;
    margin-bottom: 5px;
  }

}

/* Keyframes must be at the top level — Perfmatters' CSS minifier can mangle
   @keyframes nested inside @media, which breaks every rule after the keyframe. */
@keyframes oeg-one-mobile-slide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  /* ── Search ── */
  .oeg-one-search-input-wrap {
    padding: 9px 12px !important;
    border-radius: 12px !important;
  }
  .oeg-one-search-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  .oeg-one-search-input {
    font-size: 1rem !important;
  }
  .react-oeg-one-contents-page input.oeg-one-search-input {
    font-size: 1rem !important;
  }
  .oeg-one-clear-btn {
    font-size: 0.82rem !important;
    padding: 7px 10px !important;
  }
}

/* Mobile toolbar: no module chips (the drill-down list shows modules), plain search bar */
@media (max-width: 768px) {
  .oeg-one-toolbar { display: block; margin-bottom: 16px; }
  .oeg-one-toolbar .oeg-one-mod-chips { display: none; }
  .oeg-one-toolbar .oeg-one-search-input-wrap { height: auto; padding: 9px 12px; border-width: 1px; border-color: #d7dee8; }
}
/* End React source: src/styles/oeg-one-contents-page.css */
/* === REACT-MANAGED END === */
