/* EasyBuild Theme — public + portal */

/* REMOVED: Google Fonts @import.
   It sent every visitor's IP to Google on every public page load (GDPR exposure, no consent
   basis) and is an automatic WordPress.org rejection. By the comment below it was never even
   painted — var(--eb-font) already resolves to the system stack. Self-host woff2 under
   assets/fonts/ with a local @font-face if a specific face is ever genuinely required. */

/* body.eb-theme: page background aligned to the canvas token --eb-surface
   (matching the plugin's .eb-theme, design-tokens.css:132), not --eb-surface-2 (elevated/white). The
   rendered font is already Roboto because var(--eb-font) resolves (the "Inter" is a dead fallback, never
   painted while the token is defined). */
body.eb-theme,
body.eb-portal {
  margin: 0;
  font-family: var(--eb-font, Inter, system-ui, sans-serif);
  /* The var() fallbacks are REQUIRED (an earlier pass dropped them undisclosed — plugin-off would render no
     background + black text). Fallbacks are the CURRENT token values, not the old stale #F8FAFC/#202939. */
  background: var(--eb-surface, #FBFCFF);
  color: var(--eb-text, #595F65);
}

/* The site bar. Every front-end template carries it; the portal draws its own. */
.eb-skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--eb-surface-2, #fff); color: var(--eb-text-heading, #3d4349); }
.eb-skip-link:focus { left: 8px; top: 8px; }
.eb-site-header { background: var(--eb-surface-2, #fff); border-bottom: 1px solid var(--eb-border, #e4e8ee); }
.eb-site-header.is-sticky { position: sticky; top: 0; z-index: 40; }
.eb-header-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.eb-site-brand { display: flex; align-items: center; margin-right: auto; }
.eb-site-brand img, .eb-site-brand .custom-logo { height: 40px; width: auto; display: block; }
.eb-site-name { font-weight: 700; font-size: 1.1rem; color: var(--eb-text-heading, #3d4349); text-decoration: none; letter-spacing: -0.02em; }
.eb-site-nav .eb-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.eb-site-nav .eb-nav a { color: var(--eb-text, #595F65); text-decoration: none; font-size: 0.95rem; padding: 4px 0; border-bottom: 2px solid transparent; display: inline-block; }
.eb-site-nav .eb-nav a:hover { color: var(--eb-primary-hover, #1f66ab); }
/* The open page, marked. current-menu-item is core's class; core also writes aria-current. */
.eb-site-nav .eb-nav .current-menu-item > a,
.eb-site-nav .eb-nav .current_page_item > a,
.eb-site-nav .eb-nav a[aria-current="page"] {
  color: var(--eb-primary-hover, #1f66ab);
  font-weight: 600;
  border-bottom-color: var(--eb-primary, #2E88DC);
}
.eb-site-nav .eb-nav .sub-menu { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.eb-site-cta { white-space: nowrap; }
.eb-nav-toggle { display: none; order: 2; border: 1px solid var(--eb-border, #e4e8ee); border-radius: var(--eb-radius-sm, 6px); background: transparent; padding: 8px 10px; cursor: pointer; }
.eb-nav-toggle-bars, .eb-nav-toggle-bars::before, .eb-nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--eb-text, #595F65); position: relative; }
.eb-nav-toggle-bars::before, .eb-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.eb-nav-toggle-bars::before { top: -6px; }
.eb-nav-toggle-bars::after { top: 6px; }
@media (max-width: 767px) {
  .eb-nav-toggle { display: block; }
  .eb-site-nav { display: none; order: 4; flex-basis: 100%; }
  .eb-site-nav.is-open { display: block; }
  .eb-site-nav .eb-nav { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 6px; }
  .eb-site-cta { order: 3; }
}

/* The site footer. Same fallback rule as the header: no menu, no empty list. */
.eb-site-footer { border-top: 1px solid var(--eb-border, #e4e8ee); margin-top: 56px; }
.eb-footer-inner { max-width: 1100px; margin-inline: auto; padding: 32px 24px 40px; text-align: center; }
.eb-site-footer .eb-footer-nav { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.eb-site-footer .eb-footer-nav a { color: var(--eb-text-muted, #5f6b7a); text-decoration: none; font-size: 0.9rem; }
.eb-site-footer .eb-footer-nav a:hover { color: var(--eb-primary-hover, #1f66ab); text-decoration: underline; }
.eb-site-footer-meta { margin: 0; color: var(--eb-text-muted, #5f6b7a); font-size: 13px; }
.eb-site-footer-name { font-weight: 600; }

/* Marketing front */
.eb-home {
  min-height: 100vh;
}
.eb-hero {
  background: linear-gradient(145deg, #041A2A 0%, #0a2f4a 55%, #227BCE 140%);
  color: #fff;
  padding: 96px 24px 80px;
  text-align: center;
}
.eb-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  max-width: 780px;
  margin-inline: auto;
}
.eb-hero p {
  opacity: 0.88;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 28px;
}
.eb-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.eb-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.eb-feature-card {
  background: var(--eb-surface, #fff);
  border: 1px solid var(--eb-border, #E3E8EF);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--eb-shadow-sm);
}
.eb-feature-card h3 { margin: 0 0 8px; color: var(--eb-navy, #041A2A); }
[data-theme="dark"] .eb-feature-card h3 { color: var(--eb-text); }

/* Portal shell */
.eb-portal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.eb-portal-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  height: 60px;
  background: var(--eb-navy, #041A2A);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.eb-portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.eb-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #227BCE, #08CF65);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.eb-portal-nav {
  display: flex;
  gap: 6px;
  flex: 1;
}
.eb-portal-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.eb-portal-nav a:hover,
.eb-portal-nav a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.eb-portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.eb-theme-toggle,
.eb-ai-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.eb-portal-main {
  flex: 1;
  padding: 28px 24px 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Library cards with progress rings */
.eb-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.eb-course-card {
  background: var(--eb-surface, #fff);
  border: 1px solid var(--eb-border, #E3E8EF);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--eb-shadow-sm);
  display: flex;
  flex-direction: column;
}
.eb-course-card .thumb {
  height: 140px;
  background: linear-gradient(135deg, #041A2A, #227BCE);
}
.eb-course-card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.eb-course-card h3 { margin: 0; font-size: 17px; }
.eb-course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.eb-ring {
  --p: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(#08CF65 calc(var(--p) * 1%), var(--eb-surface-3, #E3E8EF) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.eb-ring::before {
  content: attr(data-label);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--eb-surface, #fff);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Lesson player — outline | player | content */
.eb-lesson-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 60px);
  max-width: none;
  margin: -28px -24px -48px;
  background: var(--eb-surface, #fff);
}
.eb-lesson-outline {
  border-right: 1px solid var(--eb-border, #E3E8EF);
  background: var(--eb-surface-2, #F8FAFC);
  overflow: auto;
  padding: 16px 12px;
}
.eb-lesson-outline h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--eb-text-muted, #4b5565);
  padding: 0 10px;
  margin: 0 0 12px;
}
.eb-mod-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eb-text-muted);
  padding: 12px 10px 6px;
}
.eb-outline-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--eb-text);
  font-size: 13.5px;
  margin-bottom: 2px;
}
.eb-outline-item:hover { background: var(--eb-surface-3, #E3E8EF); }
.eb-outline-item.active {
  background: rgba(34, 123, 206, 0.12);
  color: var(--eb-primary, #227BCE);
  font-weight: 600;
}
.eb-outline-item.done::before {
  content: "✓ ";
  color: #08CF65;
}
.eb-lesson-stage {
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.eb-video-frame {
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 48vh;
  position: relative;
}
.eb-video-frame iframe,
.eb-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}
.eb-video-cta {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: #08CF65;
  color: #041A2A;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  display: none;
}
.eb-video-cta.show { display: inline-flex; }
.eb-lesson-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--eb-border);
  padding: 0 20px;
}
.eb-lesson-tabs button {
  padding: 12px 16px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--eb-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.eb-lesson-tabs button.active {
  color: var(--eb-primary);
  border-bottom-color: var(--eb-primary);
}
.eb-lesson-body {
  padding: 24px;
  max-width: 760px;
}
.eb-notes textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 12px;
  border: 1px solid var(--eb-border);
  padding: 12px;
  font: inherit;
  background: var(--eb-surface-2);
  color: var(--eb-text);
}

/* Community */
.eb-comm-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}
.eb-comm-channels a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--eb-text);
  font-size: 14px;
  margin-bottom: 4px;
}
.eb-comm-channels a.active,
.eb-comm-channels a:hover {
  /* --eb-primary text on the light-blue tint was 3.11:1; --eb-primary-hover clears AA. */
  background: rgba(34,123,206,0.12);
  color: var(--eb-primary-hover);
}
.eb-comm-post {
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.eb-comm-post.announcement {
  border-left: 4px solid #6938EF;
}
.eb-reactions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.eb-reactions button {
  border: 1px solid var(--eb-border);
  background: var(--eb-surface-2);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
}
.eb-view-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.eb-view-toggle button {
  border-radius: 999px;
  border: 1px solid var(--eb-border);
  background: var(--eb-surface);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
/* --eb-primary-hover inverts across palettes (white-on-it 2.70:1 dark). Now
   --eb-navy (constant) text on --eb-primary (blue in both): 4.78:1 light, ~5.3:1 dark. */
.eb-view-toggle button.active {
  background: var(--eb-primary);
  color: var(--eb-navy);
  border-color: var(--eb-primary);
}
.eb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.eb-gallery-grid .eb-comm-post {
  min-height: 120px;
}

/* Certificate */
.eb-cert {
  max-width: 800px;
  margin: 40px auto;
  border: 12px solid #041A2A;
  padding: 48px;
  background: #fff;
  text-align: center;
  color: #202939;
}
.eb-cert h1 {
  font-size: 2rem;
  color: #041A2A;
  letter-spacing: -0.03em;
}
.eb-cert .seal {
  width: 80px;
  height: 80px;
  margin: 24px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #227BCE, #08CF65);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

/* Page builder render */
.eb-pb-section { width: 100%; }
.eb-pb-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.eb-pb-col { box-sizing: border-box; }
/* The theme's hardcoded .eb-pb-btn duplicate is REMOVED. It loaded after the plugin's
   public-pagebuilder.css and won on every served /eb-page/, so the plugin's token-driven rule was dead
   (overriding --eb-cta/--eb-navy did nothing — the earlier token fix "worked by accident" because this
   hardcoded #08CF65/#041A2A happened to agree). The single implementation now lives in
   easybuild-core/assets/css/public-pagebuilder.css, tokenized, keeping this pill/700/inline-flex look. */

/* Student AI */
.eb-student-ai {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 340px;
  max-height: 420px;
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  border-radius: 16px;
  box-shadow: var(--eb-shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.eb-student-ai[hidden] { display: none !important; }
.eb-student-ai header {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  background: #041A2A;
  color: #fff;
  font-weight: 600;
  border-radius: 16px 16px 0 0;
}
.eb-student-ai header button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.eb-student-ai-msgs {
  flex: 1;
  overflow: auto;
  padding: 12px;
  font-size: 13px;
}
.eb-student-ai-msgs .msg {
  background: var(--eb-surface-2);
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  white-space: pre-wrap;
}
#eb-student-ai-form {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--eb-border);
}
#eb-student-ai-form input {
  flex: 1;
  border: 1px solid var(--eb-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--eb-surface);
  color: var(--eb-text);
}
#eb-student-ai-form button {
  border: none;
  border-radius: 999px;
  /* Stale #227BCE + white was 4.38:1. --eb-navy on --eb-primary = 4.78:1, tokenised. */
  background: var(--eb-primary);
  color: var(--eb-navy);
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .eb-lesson-layout,
  .eb-comm-layout { grid-template-columns: 1fr; }
  .eb-lesson-outline { max-height: 220px; }
  .eb-portal-nav { display: none; }
}

/* Buttons shared */
/* .eb-btn: the theme's `.eb-btn` duplicate is REMOVED so the plugin's token
   rule (design-tokens.css:141) governs on every public page. That rule carries the `:focus-visible`
   FOCUS RING (the disagreement with a cost beyond looks — keyboard a11y), plus the transition, flex gap
   and font-family the theme copy silently dropped, and tokenized radius/size. One implementation. */
/* The theme's .eb-btn-primary / .eb-btn-secondary / .eb-btn-ghost duplicates are REMOVED.
   They were a second implementation at equal specificity, decided by print order — on public pages the
   theme won (navy, accessible), but on ADMIN pages, where theme.css never loads, design-tokens' white-on-
   blue won at 3.70:1. One implementation now lives in design-tokens.css (which loads on all three surfaces),
   carrying the accessible navy pairs AND the hover fix. The uniqueness is asserted by the matrix test.
   (.eb-view-toggle below is theme-only — not a duplicate — so it stays.) */

.eb-page-title {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.eb-muted { color: var(--eb-text-muted, #4b5565); }

/* ---------------------------------------------------------------------------
   The site's own screens — a page, a post, an archive, a search, a 404, the blog
   index. One content column at a comfortable measure, in the tokens
   design-tokens.css already defines. No second design system.
   --------------------------------------------------------------------------- */
.eb-main {
  max-width: 68ch;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 64px;
  box-sizing: border-box;
}
/* A builder page brings its own layout: no measure, no gutter, no title above it. The header
   and the footer are unchanged — only the content column is. */
.eb-main--builder {
  max-width: none;
  padding: 0;
}
.eb-article-title,
.eb-archive-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--eb-text-heading, #3d4349);
  margin: 0 0 12px;
}
.eb-archive-head { margin-bottom: 28px; }
.eb-archive-desc { color: var(--eb-text-muted, #5f6b7a); }

/* Prose — the words a page or a post actually carries. */
.eb-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  /* A long URL or file path with nothing to break on is the one thing left that can push
     this column wider than a 390px phone. It wraps instead. */
  overflow-wrap: anywhere;
}
.eb-prose h1, .eb-prose h2, .eb-prose h3,
.eb-prose h4, .eb-prose h5, .eb-prose h6 {
  color: var(--eb-text-heading, #3d4349);
  line-height: 1.25;
  margin: 1.8em 0 0.5em;
}
.eb-prose h1 { font-size: 1.8rem; }
.eb-prose h2 { font-size: 1.45rem; }
.eb-prose h3 { font-size: 1.2rem; }
.eb-prose h4, .eb-prose h5, .eb-prose h6 { font-size: 1rem; }
.eb-prose p { margin: 0 0 1.15em; }
.eb-prose a { color: var(--eb-primary-hover, #1f66ab); }
.eb-prose ul, .eb-prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.eb-prose li { margin-bottom: 0.4em; }
.eb-prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--eb-border, #e4e8ee);
  color: var(--eb-text-muted, #5f6b7a);
}
.eb-prose blockquote p:last-child { margin-bottom: 0; }
.eb-prose img, .eb-prose video, .eb-prose iframe { max-width: 100%; height: auto; }
.eb-prose table { display: block; max-width: 100%; overflow-x: auto; }
.eb-prose pre {
  overflow-x: auto;
  background: var(--eb-surface-3, #F0F3F7);
  border-radius: var(--eb-radius, 10px);
  padding: 14px 16px;
  font-family: var(--eb-font-mono, ui-monospace, monospace);
  font-size: 0.9rem;
}
.eb-prose code { font-family: var(--eb-font-mono, ui-monospace, monospace); font-size: 0.92em; }
.eb-prose pre code { font-size: inherit; }
.eb-page-links { margin: 1.5em 0 0; color: var(--eb-text-muted, #5f6b7a); }

/* The entry list. Blog index, archive and search all render one template part. */
.eb-entries { display: flex; flex-direction: column; gap: 28px; }
.eb-entry { padding-bottom: 24px; border-bottom: 1px solid var(--eb-border, #e4e8ee); }
.eb-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.eb-entry-title { font-size: 1.3rem; line-height: 1.3; margin: 0 0 6px; }
.eb-entry-title a { color: var(--eb-text-heading, #3d4349); text-decoration: none; }
.eb-entry-title a:hover { color: var(--eb-primary-hover, #1f66ab); text-decoration: underline; }
.eb-entry-meta { color: var(--eb-text-muted, #5f6b7a); font-size: 0.875rem; margin: 0 0 10px; }
.eb-entry-excerpt { line-height: 1.65; }
.eb-entry-excerpt p { margin: 0 0 0.8em; }
.eb-entry-more { color: var(--eb-primary-hover, #1f66ab); font-weight: 600; text-decoration: none; }
.eb-entry-more:hover { text-decoration: underline; }

/* Search, and the address that is not here. */
.eb-searchform { margin: 0 0 28px; }
.eb-searchform form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.eb-searchform label { flex: 1 1 200px; }
.eb-searchform input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--eb-border, #e4e8ee);
  border-radius: var(--eb-radius, 10px);
  background: var(--eb-surface-2, #fff);
  color: var(--eb-text, #595F65);
  font: inherit;
}
/* get_search_form() prints an <input type="submit">, not a <button>; both are covered so
   the theme keeps its own button when a plugin swaps the form. */
.eb-searchform button[type="submit"],
.eb-searchform input[type="submit"] {
  border: 0;
  border-radius: var(--eb-radius, 10px);
  padding: 10px 18px;
  background: var(--eb-primary, #2E88DC);
  color: var(--eb-navy, #041A2A);
  font-weight: 600;
  cursor: pointer;
}
.eb-empty { font-size: 1.05rem; margin: 0 0 8px; }
.eb-404 p { margin: 0 0 20px; line-height: 1.7; }

/* The posts either side, and the comments under one. */
.eb-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--eb-border, #e4e8ee);
  font-size: 0.95rem;
}
.eb-post-nav a { color: var(--eb-primary-hover, #1f66ab); text-decoration: none; }
.eb-post-nav a:hover { text-decoration: underline; }
.eb-comments { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--eb-border, #e4e8ee); }
.eb-comments-title { font-size: 1.15rem; margin: 0 0 16px; }
.eb-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.eb-comment-list ol { list-style: none; padding-left: 20px; }
.eb-comment-list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--eb-border, #e4e8ee); }
.eb-comments input[type="text"],
.eb-comments input[type="email"],
.eb-comments input[type="url"],
.eb-comments textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--eb-border, #e4e8ee);
  border-radius: var(--eb-radius, 10px);
  background: var(--eb-surface-2, #fff);
  color: var(--eb-text, #595F65);
  font: inherit;
}

/* Pagination — WordPress's own markup, in this theme's colours. */
.eb-pagination { margin-top: 36px; }
.eb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--eb-radius-sm, 6px);
  border: 1px solid var(--eb-border, #e4e8ee);
  color: var(--eb-text, #595F65);
  text-decoration: none;
}
.eb-pagination .page-numbers.current {
  background: var(--eb-primary, #2E88DC);
  color: var(--eb-navy, #041A2A);
  border-color: transparent;
  font-weight: 600;
}

/* Core prints <h2 class="screen-reader-text"> inside its navigation markup and its search
   form label. Without this rule those headings are simply visible on the page. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Checkout page — Kartra's anatomy for the parts that exist: the price, Contact details, the
   bump, the coupon, Payment details (Stripe's Element) and one Pay button carrying the amount.
   The six layout templates, the stepper and the design tab are a later piece of work. */
.eb-checkout-page { max-width: 560px; margin: 48px auto; padding: 0 20px; }
.eb-co-price { font-size: 2rem; font-weight: 800; color: var(--eb-primary); }
.eb-checkout-h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin: 24px 0 10px; }
.eb-co-label { display: block; margin-bottom: 12px; }
.eb-co-input { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--eb-border); margin-top: 6px; }
.eb-co-wide { width: 100%; margin-top: 12px; }
.eb-co-note { font-size: 12px; margin-top: 8px; }
.eb-co-locked { font-size: 13px; padding: 12px; border: 1px dashed var(--eb-border); border-radius: 12px; }
/* Kartra's demo banner: loud on purpose. A rehearsal that reads like a sale is a support ticket. */
.eb-co-demo-banner { padding: 12px; border-radius: 10px; background: #fff4d6; color: #6b4a00; border: 1px solid #e5c76b; }
.eb-pay-el { margin-bottom: 8px; }
/* The checkout editor's Design tab: the header logo, the three custom messages and the Trusted by
   line. The accent it stores arrives as --eb-accent / --eb-primary on .eb-checkout-page itself. */
.eb-co-logo { text-align: center; margin: 0 0 20px; }
.eb-co-logo-img { max-height: 64px; max-width: 260px; }
.eb-co-message { font-size: 13px; padding: 10px 12px; margin: 0 0 12px; border-left: 3px solid var(--eb-accent, var(--eb-primary)); background: rgba(0, 0, 0, .03); border-radius: 0 8px 8px 0; }
.eb-co-trusted { font-size: 12px; text-align: center; margin-top: 10px; opacity: .8; }
