/* Inexertus inner pages — extends inexertus.css */

/* ── Top utility bar ─────────────────────────────────── */
.topbar {
  background: var(--blue);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
}
.topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ── Dropdown nav ────────────────────────────────────── */
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-links .has-menu > a .caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-links .menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(13, 25, 45, 0.18);
  padding: 8px;
  display: none;
  z-index: 60;
}
.nav-links .has-menu:hover .menu,
.nav-links .has-menu:focus-within .menu { display: block; }
.nav-links .has-menu::after {
  /* hover bridge so the menu doesn't close crossing the gap */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 12px;
}
.nav-links .menu .menu-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 10px 4px;
}
.nav-links .menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links .menu a:hover { background: var(--fill); color: var(--blue); }

/* ── Course hero ─────────────────────────────────────── */
.course-hero { padding: 64px 0 72px; }
.course-hero .crumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.course-hero .crumb a { color: var(--text-3); text-decoration: none; }
.course-hero .crumb a:hover { color: var(--blue); }
.course-hero .crumb span { margin: 0 7px; color: var(--faint); }
.course-hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.course-hero h1 em { font-style: normal; color: var(--blue); }

.meta-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.meta-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.meta-pills .pill .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-media { position: relative; }
.hero-media > img { width: 100%; height: 360px; display: block; object-fit: cover; border-radius: 16px; }
.hero-media > img.hero-img-fit { height: auto; }
.hero-media > img.hero-img-sq { height: auto; aspect-ratio: 4 / 3; }
.hero-media .badge-float {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px -18px rgba(13, 25, 45, 0.25);
}
.hero-media .badge-float img { width: 56px; height: 56px; display: block; }
.hero-media .badge-float .t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.hero-media .badge-float .s { font-size: 12px; color: var(--text-3); }

/* ── Benefits ("With us, you get") ───────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.benefit .b-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 13px;
}
.benefit .b-title { font-weight: 650; font-size: 15.5px; margin-bottom: 5px; letter-spacing: -0.01em; }
.benefit .b-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* ── Details + pricing ───────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.detail-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; }
.detail-card > p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0 0 22px; }

.price-card {
  background: var(--blue);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  position: sticky;
  top: 96px;
}
.price-card .p-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}
.price-card .was { font-size: 17px; text-decoration: line-through; opacity: 0.6; }
.price-card .now { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-card .save {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
}
.price-card .p-note { font-size: 13.5px; line-height: 1.55; opacity: 0.85; margin-bottom: 22px; }
.price-card .btn-white {
  display: block;
  text-align: center;
  background: #FFFFFF;
  color: var(--blue);
  font-weight: 650;
  border-radius: 10px;
  padding: 13px 20px;
  text-decoration: none;
  font-size: 15px;
}
.price-card .btn-white:hover { background: #EAF0F7; }
.price-card .btn-ghost {
  display: block;
  text-align: center;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}
.price-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.price-card .guarantee {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.9;
}
.price-card .guarantee strong { color: #FFFFFF; }

/* ── Funding cards ───────────────────────────────────── */
.funding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.funding-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.funding-card .f-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.funding-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 8px; }
.funding-card p { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0 0 18px; flex: 1; }
.funding-card a { font-size: 14px; font-weight: 650; color: var(--blue); text-decoration: none; }
.funding-card a:hover { color: var(--blue-hover); }
.calendar-hub { grid-template-columns: repeat(4, 1fr); }
.calendar-hub .funding-card h3 { flex: 1; margin-bottom: 18px; }

/* ── Reviews (native) ────────────────────────────────── */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -28px 0 40px;
}
.reviews-head .score { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.reviews-head .stars { display: flex; gap: 2px; }
.reviews-head .count { font-size: 14px; color: var(--text-3); padding-top: 4px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px -18px rgba(13, 25, 45, 0.12);
}
.review-card .stars { display: flex; gap: 2px; margin-bottom: 14px; }
.review-card blockquote {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  flex: 1;
  text-wrap: pretty;
}
.review-card .who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-card .who .avatar {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-card .who .name { font-size: 14px; font-weight: 650; }
.review-card .who .course { font-size: 12px; color: var(--text-3); }

@media (max-width: 1024px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ── Simple page hero (about, consulting, etc.) ──────── */
.page-hero { padding: 72px 0 56px; }
.page-hero h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero .lede { max-width: 640px; }

/* ── Contact form ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-panel label {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  margin: 16px 0 6px;
  color: var(--text);
}
.form-panel input, .form-panel select, .form-panel textarea {
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}
.form-panel button { width: 100%; margin-top: 22px; cursor: pointer; border: none; }
.contact-info .info-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.contact-info .info-row:last-child { border-bottom: none; }
.contact-info .info-row .k { width: 90px; flex-shrink: 0; font-weight: 650; color: var(--text-3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.contact-info .info-row a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ── Steps (grant page) ──────────────────────────────── */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.step .n {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 99px;
  background: var(--blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.step .t { font-weight: 650; font-size: 15.5px; margin-bottom: 3px; }
.step .b { font-size: 14px; color: var(--text-2); line-height: 1.55; }

@media (max-width: 1024px) {
  .benefit-grid, .funding-grid { grid-template-columns: 1fr; }
  .calendar-hub { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .nav-links .menu { position: static; box-shadow: none; }
}

/* Event Calendar App overrides are injected by eca-brand.js after the embed loads */
@media (max-width: 640px) {
  .calendar-hub { grid-template-columns: 1fr; }
}

/* ── Small screens: menu, tap targets, text size ─────── */
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  /* Menu button + dropdown panel (nav.js adds the button) */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 160ms ease, opacity 160ms ease; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.open { background: #FFFFFF; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 4px 24px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(13, 25, 45, 0.25);
  }
  .nav.open .nav-links > a,
  .nav.open .nav-links .has-menu > a { display: flex; padding: 14px 8px; font-size: 16px; font-weight: 600; color: var(--text); }
  .nav.open .nav-links > a,
  .nav.open .nav-links .has-menu + .has-menu { border-top: 1px solid var(--border); }
  .nav.open .nav-links .has-menu > a .caret,
  .nav.open .nav-links .has-menu::after { display: none; }
  .nav.open .nav-links .menu { display: block; position: static; min-width: 0; padding: 0 0 10px 8px; border: 0; background: none; box-shadow: none; }
  .nav.open .nav-links .menu a { display: block; padding: 11px 8px; font-size: 15px; }
  .nav.open .nav-links .menu .menu-label { padding-left: 8px; }

  /* Tap targets */
  .nav .btn-compact { height: 44px; padding-left: 14px; padding-right: 14px; }
  .footer-col li a { display: inline-block; padding: 11px 0; }
  .footer-col ul { gap: 0; }
  .footer-col li { margin: 0; }
  .funding-card > a,
  .course-card .meta a,
  .course-card .eco-link,
  .belt-cta,
  .svc-link,
  .stat-card p a,
  .info-row a,
  .cause .text a,
  .benefit .b-title a { display: inline-block; padding-top: 12px; padding-bottom: 12px; margin-top: -12px; margin-bottom: -12px; }
  .atp-brand-card .verify { padding: 12px 18px !important; }

  /* Small labels: 11px → 12px */
  .card-label, .badge-box, .float-badges-label, .course-card .mode, .pill .k, .price-card .p-label, .funding-card .f-tag { font-size: 12px !important; }
}

@media (max-width: 640px) {
  .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-actions { gap: 8px; }
  /* Give the calendar embed the full card width on phones */
  .detail-card:has(> .eca-app-container) { padding: 12px 8px; }
}

/* ── Blog ────────────────────────────────────────────── */
.blog-hero { padding-bottom: 28px; }
.blog-list-section { padding: 8px 0 96px; }
.post-list { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.post-item { padding: 30px 0; border-top: 1px solid var(--border); }
.post-item:first-child { border-top: 0; }
.post-item time, .post-meta { font-size: 14px; color: var(--text-3); }
.post-item h2 { font-size: 24px; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; margin: 8px 0 10px; text-wrap: balance; }
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--blue); }
.post-item p { font-size: 16px; line-height: 1.6; color: var(--text-2); margin: 0; }

.post { max-width: 784px; margin: 0 auto; padding: 56px 32px 96px; }
.post .crumb { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.post .crumb a { color: var(--text-3); text-decoration: none; }
.post .crumb a:hover { color: var(--blue); }
.post .crumb span { margin: 0 7px; color: var(--faint); }
.post-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
.post-meta { margin: 0 0 32px; }
.post-meta span { margin: 0 6px; color: var(--faint); }
.post-body { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.post-body p { margin: 0 0 20px; }
.post-body h2 { font-size: 27px; line-height: 1.22; letter-spacing: -0.02em; font-weight: 700; color: var(--text); margin: 44px 0 16px; text-wrap: balance; }
.post-body h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.post-body > :first-child { margin-top: 0; }
.post-body strong { color: var(--text); font-weight: 650; }
.post-body a:not(.btn) { color: var(--blue); text-underline-offset: 3px; }
.post-body a:not(.btn):hover { color: var(--blue-hover); }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body figure { margin: 0 0 32px; }
.post-body figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); }
.post-body figcaption { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 10px; }
.post-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); font-size: 19px; color: var(--text); }
.post-body blockquote p { margin: 0; }
.post-cta { margin-top: 28px; }
.post-back { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; }
.post-back a { color: var(--blue); font-weight: 600; text-decoration: none; }
.post-back a:hover { color: var(--blue-hover); }

@media (max-width: 640px) {
  .post { padding: 36px 20px 72px; }
  .post-body { font-size: 16px; }
  .post-body h2 { font-size: 23px; }
  .post-item h2 { font-size: 21px; }
}
