/**
 * HelloOlivia Ivy — premium academic UI + accessibility layer
 * Loads last. Remaps brand tokens toward Oxford prep; fixes readability sitewide.
 */

/* -------------------------------------------------------------------------- */
/* Design tokens — deep navy · stone paper · heritage crimson · brass accent */
/* -------------------------------------------------------------------------- */
:root,
.mmp-story-page,
body.mmp-private-tutor-test-prep,
body.helloolivia-brand,
body {
  --ho-navy: #0b1f33;
  --ho-navy-mid: #16324f;
  --ho-ink: #15202b;
  --ho-muted: #3d4a57;
  --ho-muted-soft: #5a6775;
  --ho-paper: #f6f5f1;
  --ho-cream: #f6f5f1;
  --ho-white: #ffffff;
  --ho-border: #c9c4b8;
  --ho-border-soft: #ddd8ce;

  /* Heritage crimson (maps legacy --ho-red*) — deep, not toy-bright */
  --ho-red: #6e1e2a;
  --ho-red-deep: #4f1520;
  --ho-red-bright: #8a2a38;

  /* Paper accents (legacy --ho-yellow*) — no brass/gold */
  --ho-yellow: #efe4d6;
  --ho-yellow-soft: #f7f0e6;
  --ho-yellow-deep: #6a5348;

  --ho-shadow: rgba(11, 31, 51, 0.08);
  --ho-radius: 0.25rem;
  --ho-radius-lg: 0.4rem;
  --ho-focus: #0b1f33;
  --ho-focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--ho-red);

  --ho-font-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --ho-font-body: "Source Sans 3", "Noto Sans SC", "Segoe UI", sans-serif;

  /* Bridge parent / Bootstrap */
  --mmp-navy: var(--ho-navy);
  --mmp-navy-deep: #071523;
  --mmp-blue: var(--ho-red);
  --mmp-blue-bright: var(--ho-red-bright);
  --mmp-gray-cool: var(--ho-muted);
  --mmp-charcoal: var(--ho-ink);
  --mmp-white: var(--ho-white);
  --mmp-surface: var(--ho-paper);
  --mmp-border: var(--ho-border);

  --bs-primary: var(--ho-red);
  --bs-primary-rgb: 110, 30, 42;
  --bs-link-color: var(--ho-red);
  --bs-link-hover-color: var(--ho-red-deep);
  --bs-body-color: var(--ho-ink);
  --bs-body-bg: var(--ho-paper);
  --bs-border-color: var(--ho-border);
  --bs-border-radius: var(--ho-radius);
  --bs-border-radius-lg: var(--ho-radius-lg);
}

/* -------------------------------------------------------------------------- */
/* Base readability */
/* -------------------------------------------------------------------------- */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  background:
    linear-gradient(180deg, #eef1f4 0%, var(--ho-paper) 28%, var(--ho-white) 72%, var(--ho-paper) 100%);
  color: var(--ho-ink);
}

body.helloolivia-brand,
body.mmp-private-tutor-test-prep {
  font-family: var(--ho-font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.lang-zh-cn {
  font-family: "Noto Sans SC", "Source Sans 3", sans-serif;
  letter-spacing: 0;
  line-height: 1.75;
}

::selection {
  background: rgba(110, 30, 42, 0.18);
  color: var(--ho-ink);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------- */
/* Focus & skip — disability-friendly */
/* -------------------------------------------------------------------------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--ho-focus);
  outline-offset: 3px;
  box-shadow: var(--ho-focus-ring);
}

a.skip-link,
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100000;
  padding: 0.75rem 1.1rem;
  background: var(--ho-navy);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--ho-radius);
}

a.skip-link:not(:focus):not(:focus-within) {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

a.skip-link:focus,
a.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  overflow: visible;
  box-shadow: var(--ho-focus-ring);
}

/* -------------------------------------------------------------------------- */
/* Typography hierarchy */
/* -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.mmp-story-hero__title,
.mmp-story h1,
.mmp-story h2,
.mmp-story h3,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.ho-section-head h2,
.ho-pricing__intro h2,
.ho-price-card__name,
.ho-college-profile__header h1,
.ho-colleges__header h1 {
  font-family: var(--ho-font-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ho-navy);
  line-height: 1.2;
  text-wrap: balance;
}

/* Hero banner titles stay white on the dark overlay */
.hero-carousel .hero-slide-title,
.hero-slide-overlay .hero-slide-title,
.hero-carousel h1.hero-slide-title,
.hero-carousel .hero-slide h1 {
  color: #ffffff !important;
  font-family: var(--ho-font-display);
}

body.lang-zh-cn h1,
body.lang-zh-cn h2,
body.lang-zh-cn h3,
body.lang-zh-cn .ho-section-head h2,
body.lang-zh-cn .entry-content h1,
body.lang-zh-cn .entry-content h2,
body.lang-zh-cn .entry-content h3 {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
.mmp-story h1,
.entry-content h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
}

h2,
.mmp-story h2,
.entry-content h2,
.ho-section-head h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
}

h3,
.mmp-story h3,
.entry-content h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.1em;
}

.mmp-story-hero__sub,
.mmp-story .lead,
.ho-section-head p,
.ho-pricing__lead {
  color: var(--ho-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 40rem;
}

/* Long-form page content — exam-prep catalog readability */
.ho-page-article {
  max-width: 52rem;
}

.ho-page-header {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem 1rem;
  border: 1px solid var(--ho-border-soft);
  border-bottom: 0;
  border-radius: var(--ho-radius-lg) var(--ho-radius-lg) 0 0;
  background: var(--ho-white);
}

.ho-page-header .entry-title {
  margin-bottom: 0;
  max-width: none;
}

.entry-content,
.ho-prose {
  color: var(--ho-ink);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: none;
  padding: 1.75rem 1.75rem 2.25rem;
  background: var(--ho-white);
  border: 1px solid var(--ho-border-soft);
  border-radius: 0 0 var(--ho-radius-lg) var(--ho-radius-lg);
  box-sizing: border-box;
}

/* When title header is absent, keep the prose box fully rounded */
.ho-page-article > .entry-content:first-child,
.entry-content.ho-prose:first-child {
  border-radius: var(--ho-radius-lg);
}

.ho-page-article > .ho-page-header + .entry-content {
  border-top: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.65em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--ho-border-soft);
  color: var(--ho-navy);
}

.entry-content h3 {
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  color: var(--ho-navy-mid);
}

.entry-content p,
.entry-content li {
  color: var(--ho-ink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25em;
}

.entry-content li {
  margin-bottom: 0.45em;
  line-height: 1.65;
}

.entry-content a {
  color: var(--ho-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(154, 123, 60, 0.7);
}

.entry-content a:hover,
.entry-content a:focus-visible {
  color: var(--ho-red-deep);
  text-decoration-thickness: 2px;
}

.entry-content strong {
  font-weight: 600;
  color: var(--ho-navy);
}

.entry-header .entry-title,
.page .entry-header .entry-title {
  font-family: var(--ho-font-display);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  color: var(--ho-navy);
  margin-bottom: 1.25rem;
  max-width: 22ch;
}

/* -------------------------------------------------------------------------- */
/* Header / nav — restrained academic bar */
/* -------------------------------------------------------------------------- */
#wrapper-navbar {
  background: rgba(246, 245, 241, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ho-border);
}

.ho-navbar,
#wrapper-navbar .navbar,
.navbar.ho-navbar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar-light .navbar-nav .nav-link {
  color: var(--ho-navy);
  font-weight: 500;
  font-family: var(--ho-font-body);
}

.navbar .nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.75rem;
  border-radius: var(--ho-radius);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .current-menu-item > .nav-link,
.navbar .current_page_item > .nav-link {
  color: var(--ho-red);
  background: transparent;
}

.navbar .dropdown-menu {
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius-lg);
  box-shadow: 0 8px 24px var(--ho-shadow);
  padding: 0.35rem;
  background: var(--ho-white);
}

.navbar .dropdown-item {
  border-radius: var(--ho-radius);
  color: var(--ho-navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.85rem;
  min-height: 2.5rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--ho-paper);
  color: var(--ho-red);
}

.helloolivia-lang-switch {
  border: 1px solid var(--ho-border);
  border-radius: var(--ho-radius);
  background: var(--ho-white);
  gap: 0;
  padding: 0.1rem;
}

.helloolivia-lang-link {
  border-radius: calc(var(--ho-radius) - 1px);
  min-width: 2.5rem;
  min-height: 2.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ho-muted);
  letter-spacing: 0.04em;
}

.helloolivia-lang-link.is-active {
  background: var(--ho-navy);
  color: #ffffff;
}

.ho-nav-cta {
  border-radius: var(--ho-radius) !important;
  background: var(--ho-navy) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.05rem !important;
  min-height: 2.5rem;
  box-shadow: none !important;
}

.ho-nav-cta:hover,
.ho-nav-cta:focus-visible {
  background: var(--ho-red) !important;
  color: #ffffff !important;
}

#wrapper-navbar .navbar-toggler {
  border: 1px solid var(--ho-navy) !important;
  border-radius: var(--ho-radius);
  padding: 0.45rem 0.55rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
}

#wrapper-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230b1f33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* -------------------------------------------------------------------------- */
/* Buttons — quiet luxury */
/* -------------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.mmp-story .btn {
  border-radius: var(--ho-radius) !important;
  font-family: var(--ho-font-body);
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.wp-block-button__link,
.mmp-story .btn-primary,
.navbar .btn-primary {
  background-color: var(--ho-navy) !important;
  border: 1px solid var(--ho-navy) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.wp-block-button__link:hover,
.mmp-story .btn-primary:hover,
.navbar .btn-primary:hover {
  background-color: var(--ho-red) !important;
  border-color: var(--ho-red) !important;
  color: #ffffff !important;
  transform: none;
}

.btn-outline-primary,
.mmp-story .btn-outline-primary {
  color: var(--ho-navy) !important;
  border: 1px solid var(--ho-navy) !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.mmp-story .btn-outline-primary:hover {
  background: var(--ho-navy) !important;
  border-color: var(--ho-navy) !important;
  color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Story sections — calm banding, no carnival chrome */
/* -------------------------------------------------------------------------- */
.mmp-story-eyebrow,
.mmp-story-proof-badge .badge,
.badge.bg-primary,
.ho-faq__eyebrow,
.ho-price-card__badge {
  background: transparent !important;
  color: var(--ho-yellow-deep) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ho-yellow) !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0 0.35rem !important;
}

.mmp-story-section,
.mmp-story-value-stack,
.mmp-story-problem,
.mmp-story-guide,
.mmp-story-services,
.mmp-story-plan,
.mmp-story-explainer,
.mmp-story-proof,
.mmp-story-lead-generator,
.mmp-story-faq,
.mmp-story-section.mmp-story-faq {
  background: var(--ho-white);
  border-top: 1px solid var(--ho-border-soft);
}

.mmp-story-section:nth-of-type(even),
.ho-proof {
  background: var(--ho-paper);
  border-bottom: 1px solid var(--ho-border-soft);
}

.mmp-story-value-stack .card,
.mmp-story-services .card,
.mmp-story-plan .card,
.mmp-story-faq .accordion-item,
.ho-pathway__card,
.ho-teachers-teaser__grid article,
.ho-method__steps li,
.ho-price-card,
.ho-faq__item,
.ho-ceo-trust__card,
.ho-fact-block,
.ho-english,
.ho-media-box,
.ho-page-media__figure {
  background: var(--ho-white);
  border: 1px solid var(--ho-border) !important;
  border-radius: var(--ho-radius-lg) !important;
  box-shadow: none !important;
}

.mmp-story-value-stack .card,
.mmp-story-services .card,
.mmp-story-plan .card,
.ho-price-card,
.ho-fact-block,
.ho-english,
.ho-media-box {
  padding: 1.5rem 1.6rem 1.7rem;
}

.ho-pathway__card .ho-card-body,
.ho-ceo-trust__card .ho-card-body {
  padding: 1.35rem 1.5rem 1.6rem !important;
}

.ho-ceo-trust__card .ho-card-body h3 {
  margin: 0 0 0.5rem;
  padding: 0;
}

.ho-ceo-trust__card .ho-card-body p {
  margin: 0;
  padding: 0;
}

.ho-teachers-teaser__grid article > h3,
.ho-method__steps li > h3 {
  padding: 1.25rem 1.5rem 0.4rem;
}

.ho-teachers-teaser__grid article > p,
.ho-method__steps li > p {
  padding: 0 1.5rem 1.5rem;
}

.ho-section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.ho-section-head h2 {
  color: var(--ho-navy);
  font-weight: 600;
}

.ho-section-head--light h2,
.ho-section-head--light p {
  color: #f3efe6;
}

.ho-proof__value,
.ho-price-card__amount,
.ho-price-card__per {
  font-family: var(--ho-font-display);
  font-weight: 600;
  color: var(--ho-navy);
}

.ho-proof__label {
  font-weight: 500;
  color: var(--ho-muted);
}

.ho-pathway__card h3,
.ho-teachers-teaser__grid h3,
.ho-method__steps h3,
.ho-price-card__name {
  color: var(--ho-navy);
  font-weight: 600;
}

.ho-method__n,
.ho-faq__num {
  background: var(--ho-navy) !important;
  color: #f3efe6 !important;
  border-radius: var(--ho-radius) !important;
  font-weight: 600 !important;
  font-family: var(--ho-font-body);
  letter-spacing: 0.04em;
}

.ho-price-card.is-featured {
  border: 1px solid var(--ho-navy) !important;
  background: var(--ho-white);
  transform: none;
  box-shadow: inset 0 0 0 1px var(--ho-navy) !important;
}

.ho-price-card__badge {
  margin-bottom: 1rem;
}

.ho-pricing__includes,
.ho-pricing__matrix-wrap {
  border-radius: var(--ho-radius-lg);
  background: var(--ho-paper);
  border: 1px solid var(--ho-border);
}

.ho-pricing__matrix thead th,
.entry-content table th {
  background: var(--ho-navy);
  color: #ffffff;
  font-weight: 600;
}

.ho-pricing__matrix th[scope="row"] {
  background: var(--ho-paper);
  color: var(--ho-ink);
}

.ho-pricing__guarantee {
  font-weight: 600;
  color: var(--ho-navy);
}

/* CTA / consult bands — navy academic, not red carnival */
.mmp-story-final-cta,
.ho-consult {
  background:
    linear-gradient(160deg, #071523 0%, var(--ho-navy) 48%, var(--ho-navy-mid) 100%) !important;
  color: #f3efe6 !important;
  border-top: 1px solid var(--ho-yellow) !important;
  border-bottom: 1px solid var(--ho-yellow) !important;
}

.mmp-story-final-cta h2,
.mmp-story-final-cta p,
.mmp-story-final-cta .lead,
.ho-consult .ho-section-head h2,
.ho-consult .ho-section-head p {
  color: #f3efe6 !important;
}

.mmp-story-final-cta .btn-primary,
.ho-consult .btn-primary {
  background: #f3efe6 !important;
  border-color: #f3efe6 !important;
  color: var(--ho-navy) !important;
}

.mmp-story-final-cta .btn-outline-primary,
.ho-consult .btn-outline-primary {
  border-color: #f3efe6 !important;
  color: #f3efe6 !important;
  background: transparent !important;
}

.mmp-story-final-cta .btn-outline-primary:hover,
.ho-consult .btn-outline-primary:hover {
  background: #f3efe6 !important;
  color: var(--ho-navy) !important;
}

.ho-consult .btn-link {
  color: #f3efe6 !important;
}

/* FAQ */
.ho-faq__item summary {
  font-weight: 600;
  color: var(--ho-navy);
  min-height: 3.25rem;
  padding: 1.2rem 1.4rem;
}

.ho-faq__a {
  color: var(--ho-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 0 1.4rem 1.4rem 1.4rem;
}

.ho-faq__icon {
  border-color: var(--ho-navy);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control {
  border: 1px solid var(--ho-border) !important;
  border-radius: var(--ho-radius) !important;
  min-height: 2.85rem;
  font-size: 1.05rem !important;
  color: var(--ho-ink) !important;
  background: var(--ho-white) !important;
  padding: 0.85rem 1rem;
}

textarea.form-control,
textarea {
  min-height: 9rem;
  line-height: 1.55;
  padding: 1rem 1.1rem;
}

/* Lead / contact / story form shells */
.mmp-story-lead-generator,
.mmp-story-lead-generator .card,
.ho-lead-form,
.wpcf7 form,
.gform_wrapper {
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--ho-paper);
  border: 1px solid var(--ho-border-soft);
  border-radius: var(--ho-radius-lg);
  box-sizing: border-box;
}

.entry-content .ho-lead-form {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.ho-lead-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ho-lead-form__field {
  margin: 0 0 1rem;
}

.ho-lead-form__field label {
  display: block;
  margin-bottom: 0.4rem;
}

.ho-lead-form__field input,
.ho-lead-form__field select,
.ho-lead-form__field textarea {
  width: 100%;
  box-sizing: border-box;
}

.ho-lead-form__actions {
  margin: 1.25rem 0 0.75rem;
}

.ho-lead-form__alt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ho-muted);
}

.ho-lead-form__notice {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--ho-radius);
  font-weight: 600;
}

.ho-lead-form__notice--ok {
  background: #e8f6ec;
  color: #14532d;
  border: 1px solid #86efac;
}

.ho-lead-form__notice--err {
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

/* Homepage cards: keep text+CTA padded */
.ho-pathway__card .ho-card-body .btn,
.ho-ceo-trust__card .ho-card-body .btn,
.ho-family .ho-card-body .btn {
  margin-top: 0.85rem;
}

.ho-family__actions {
  margin: 0.85rem 0 0;
  padding: 0;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.form-control:focus {
  border-color: var(--ho-navy) !important;
  box-shadow: var(--ho-focus-ring) !important;
}

label {
  font-weight: 600;
  color: var(--ho-navy);
  margin-bottom: 0.35rem;
}

/* Footer — navy academic */
.wrapper-footer,
#wrapper-footer,
footer.site-footer,
.site-footer,
.footer,
.ho-mega-footer,
.ho-footer {
  background: var(--ho-navy) !important;
  color: #e8e4dc !important;
  border-top: 1px solid var(--ho-yellow);
}

.ho-footer__heading {
  color: var(--ho-yellow-soft) !important;
  font-family: var(--ho-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-footer a,
#wrapper-footer a,
.footer a,
.ho-footer a {
  color: #f3efe6 !important;
  text-decoration: none;
}

.site-footer a:hover,
#wrapper-footer a:hover,
.ho-footer a:hover,
.site-footer a:focus-visible,
.ho-footer a:focus-visible {
  color: var(--ho-yellow-soft) !important;
  text-decoration: underline;
}

.ho-footer__blurb,
.ho-footer__copy,
.helloolivia-disclaimer {
  color: #fff4e8 !important;
}

.ho-footer__logo-img {
  background: var(--ho-white);
  border-radius: var(--ho-radius);
  border: 1px solid var(--ho-border);
}

/* Colleges / misc */
.ho-state-grid a {
  border-radius: var(--ho-radius);
  color: var(--ho-navy);
  font-weight: 600;
  background: var(--ho-white);
  border-color: var(--ho-border);
  min-height: 2.75rem;
}

.ho-state-grid a:hover,
.ho-state-grid a:focus-visible {
  border-color: var(--ho-navy);
  background: var(--ho-paper);
  color: var(--ho-red);
}

.ho-college-index li {
  border-bottom-color: var(--ho-border-soft);
}

.ho-media-box {
  background: var(--ho-paper);
}

.ho-card-media {
  background: var(--ho-navy);
}

/* Page media — content first; one modest wrapped figure (no image strips) */
.ho-page-media {
  margin: 0;
}

.ho-page-media--wrap {
  float: right;
  width: min(42%, 17.5rem);
  max-width: 17.5rem;
  margin: 0.15rem 0 1.25rem 1.5rem;
  clear: right;
}

.ho-page-media--end {
  float: none;
  width: min(100%, 28rem);
  max-width: 28rem;
  margin: 2rem auto 0;
}

.ho-page-media--inline {
  float: none;
  width: min(100%, 22rem);
  max-width: 22rem;
  margin: 1.5rem 0;
}

.ho-page-media__figure {
  margin: 0;
  border-radius: var(--ho-radius-lg);
  overflow: hidden;
  background: var(--ho-paper);
  border: 1px solid var(--ho-border);
  box-shadow: none;
}

.ho-page-media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.ho-page-media__caption {
  margin: 0.45rem 0 0;
  color: var(--ho-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.ho-page-media-strip {
  display: none !important;
}

.ho-prose::after,
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 700px) {
  .ho-page-media--wrap {
    float: none;
    width: min(100%, 22rem);
    max-width: 22rem;
    margin: 1.25rem auto 1.5rem;
  }
}

/* Kill leftover playful weights */
.ho-proof__value,
.ho-price-card__amount,
.ho-faq__eyebrow,
.ho-price-card__badge,
.ho-faq__num,
.ho-method__n {
  font-weight: 600 !important;
}

/* Content area breathing room */
#content.wrapper,
.wrapper#content {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-template-default .site-main,
.page .site-main {
  padding-bottom: 2rem;
}

/* High contrast preference */
@media (prefers-contrast: more) {
  :root,
  body {
    --ho-muted: #243040;
    --ho-border: #6b6570;
  }

  .entry-content a {
    text-decoration-thickness: 2px;
  }

  .btn-primary,
  .ho-nav-cta {
    border-width: 2px !important;
  }
}

/* Large text / zoom-friendly containers */
@media (max-width: 767.98px) {
  body.helloolivia-brand {
    font-size: 1.0625rem;
  }

  .ho-page-header {
    padding: 1.1rem 1.15rem 0.9rem;
  }

  .entry-content,
  .ho-prose {
    font-size: 1.1rem;
    max-width: none;
    padding: 1.25rem 1.15rem 1.75rem;
  }

  .mmp-story-lead-generator,
  .mmp-story-lead-generator .card,
  .ho-lead-form,
  form.ho-form,
  .entry-content form {
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .navbar .nav-link {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }

  .ho-faq__a {
    padding: 0 1.15rem 1.25rem;
  }
}
