/* ================================================================
   Knowledge Quay collegiate editorial redesign · September 2026
   ================================================================ */

:root {
  --burgundy: #7a1730;
  --burgundy-deep: #5e1025;
  --cream: #f7f2e9;
  --off-white: #fcfaf6;
  --ink: #111820;
  --blush: #ead9d6;
  --blue: var(--burgundy);
  --blue-ink: var(--burgundy-deep);
  --yellow: var(--blush);
  --mustard: var(--cream);
  --yellow-card: #f2e7e2;
  --bg: var(--cream);
  --card: var(--off-white);
  --text: var(--ink);
  --muted: #5e5758;
  --border: rgba(94, 16, 37, 0.2);
  --shadow: 0 18px 48px rgba(52, 20, 29, 0.08);
  --radius: 3px;
  --font: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
}

html {
  background: var(--cream);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

h1,
h2,
h3,
.nav-logo,
.price,
.signature-line,
.testimonial p {
  font-family: var(--serif);
  font-weight: 500;
}

h1,
h2,
h3,
.section-heading h2,
.card h3,
.stage-card h3,
.pricing-card h3,
.faq-item h3 {
  color: var(--burgundy-deep);
  letter-spacing: -0.025em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(122, 23, 48, 0.35);
  outline-offset: 3px;
}

main {
  padding-bottom: 5rem;
}

.container {
  max-width: 1180px;
}

section {
  padding: clamp(3.8rem, 7vw, 7rem) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 2.8rem;
  text-align: left;
}

.section-heading::before {
  content: "Knowledge Quay";
  display: block;
  width: fit-content;
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.section-heading p,
.card p,
.card li,
.stage-card p,
.pricing-card p,
.hero p,
.faq-item p {
  color: var(--muted);
}

/* Masthead */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(94, 16, 37, 0.18);
  background: rgba(252, 250, 246, 0.97);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1360px;
  min-height: 84px;
  padding: 0.75rem clamp(1.25rem, 4vw, 4.5rem);
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: grid;
  gap: 0;
  color: var(--burgundy-deep);
  font-size: clamp(1.45rem, 2.1vw, 2.15rem);
  line-height: 1;
  white-space: nowrap;
}

.nav-logo::after {
  content: "Royal Wharf · E16";
  margin-top: 0.45rem;
  color: var(--burgundy);
  font-family: var(--font);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.logo-mark,
.footer-logo {
  display: none;
}

.nav-links {
  flex-wrap: nowrap;
  gap: 0.15rem;
}

.nav-link {
  min-height: 42px;
  padding: 0.65rem 0.68rem;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link-intensive:hover {
  background: transparent;
  color: var(--burgundy);
}

.nav-link.active {
  border-bottom: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy-deep);
}

.nav-link-intensive {
  background: transparent;
}

.nav-links > li:last-child .nav-link {
  margin-left: 0.5rem;
  padding-inline: 1.15rem;
  background: var(--burgundy);
  color: var(--off-white);
}

.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--off-white);
  box-shadow: var(--shadow);
}

.dropdown-link,
.dropdown-link:hover,
.dropdown-link.active {
  color: var(--ink);
  background: var(--off-white);
}

.dropdown-link:hover,
.dropdown-link.active {
  color: var(--burgundy);
}

.announcement-rotator {
  background: var(--burgundy-deep);
  color: var(--cream);
  box-shadow: none;
}

.announcement-rotator__kicker,
.announcement-rotator__cta {
  border-radius: 0;
}

.announcement-rotator__kicker {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.announcement-rotator__cta {
  background: var(--cream);
  color: var(--burgundy-deep);
  box-shadow: none;
}

.home-page .announcement-rotator {
  display: none;
}

/* Buttons and form controls */
.btn {
  min-height: 50px;
  padding: 0.85rem 1.35rem;
  border-width: 1px;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary,
.newsletter-form .btn {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--off-white);
  box-shadow: none;
}

.btn-primary:hover,
.newsletter-form .btn:hover {
  border-color: var(--burgundy-deep);
  background: var(--burgundy-deep);
}

.btn-secondary,
.btn-light {
  border-color: rgba(122, 23, 48, 0.5);
  background: transparent;
  color: var(--burgundy-deep);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-light:hover {
  border-color: var(--burgundy);
  background: var(--blush);
}

.text-link,
.read-more,
.entity-text-link {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration-color: rgba(122, 23, 48, 0.35);
  text-underline-offset: 4px;
}

input,
textarea,
select,
.newsletter-form input,
.newsletter-form select,
.resources-controls select,
.resources-controls input[type="search"] {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font);
}

label,
.newsletter-form label {
  color: inherit;
}

/* Homepage editorial cover */
.home-main {
  margin: 0;
  padding: 0 0 5rem;
}

.editorial-hero {
  position: relative;
  min-height: 600px;
  padding: 42px clamp(1.4rem, 4.8vw, 5rem) 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--burgundy-deep);
}

.editorial-hero__image {
  position: absolute;
  inset: 0;
}

.editorial-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 32, 0.07);
  pointer-events: none;
}

.editorial-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.editorial-hero__panel {
  position: relative;
  z-index: 2;
  width: min(680px, 54vw);
  padding: clamp(2rem, 3.4vw, 3rem);
  border: 1px solid rgba(94, 16, 37, 0.14);
  background: rgba(252, 250, 246, 0.97);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: var(--burgundy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 96px;
  height: 1px;
  background: var(--burgundy);
}

.editorial-hero h1 {
  max-width: 600px;
  margin: 0;
  color: var(--burgundy-deep);
  font-size: clamp(3.2rem, 5vw, 5.15rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.editorial-hero h1 em {
  font-weight: 400;
}

.editorial-hero__lede {
  max-width: 590px;
  margin: 1.55rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.42;
}

.editorial-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.signature-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-style: italic;
}

.signature-line::before {
  content: "";
  width: 84px;
  height: 1px;
  background: var(--burgundy);
}

.editorial-hero__note {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 4rem);
  top: 2.5rem;
  width: 166px;
  padding: 1.2rem 1.1rem;
  border-left: 1px solid rgba(247, 242, 233, 0.65);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.05;
}

.editorial-hero__note span,
.editorial-hero__note strong {
  display: block;
}

.editorial-hero__note strong {
  margin-top: 0.55rem;
  font-weight: 400;
  font-style: italic;
}

.process-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(1.4rem, 4.8vw, 5rem);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.process-index > div {
  min-height: 92px;
  padding: 1.25rem clamp(0.75rem, 2vw, 1.8rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--border);
}

.process-index > div:last-child {
  border-right: 0;
}

.process-index strong {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.process-index span,
.process-index b {
  display: block;
}

.process-index span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.25;
}

.process-index b {
  margin-bottom: 0.2rem;
  color: var(--burgundy);
  font-family: var(--font);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editorial-intro {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.editorial-intro__copy h2 {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.92;
}

.editorial-intro__copy > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.06rem;
}

.editorial-intro__image {
  position: relative;
  margin: 0;
}

.editorial-intro__image img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
}

.editorial-intro__image figcaption {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--blush);
  color: var(--burgundy-deep);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.home-main > section:not(.editorial-hero):not(.process-index):not(.editorial-intro) {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Editorial treatment for the rest of the site */
.hero {
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  color: var(--burgundy-deep);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
}

.hero-media,
.lesson-media {
  border-radius: 0;
  box-shadow: none;
}

.highlight-card,
.hero-card {
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--off-white);
  box-shadow: none;
}

/* Mock-exam pricing feature: keep the page inside the burgundy identity. */
.mock-price-card {
  border: 1px solid rgba(94, 16, 37, 0.55);
  border-radius: var(--radius);
  background: var(--burgundy-deep);
  color: var(--cream);
  box-shadow: none;
}

.mock-price-card .eyebrow {
  background: rgba(247, 242, 233, 0.12);
  color: var(--cream);
}

.mock-price-card h2,
.mock-price-card p {
  color: var(--cream);
}

.mock-location-card {
  border-radius: var(--radius);
  box-shadow: none;
}

.pill,
.mini-pill,
.badge,
.tag,
.blog-keywords span {
  border-radius: 1px;
  background: var(--blush);
  color: var(--burgundy-deep);
}

.card-grid,
.grid-two,
.pricing-grid,
.stages-grid {
  gap: 0;
  border-top: 1px solid var(--border);
}

.card,
.stage-card,
.pricing-card,
.faq-item,
.resource-card,
.blog-card,
.mcq-card,
.question-card,
.two-col-list li,
.testimonial,
.step {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.card:hover,
.stage-card:hover,
.pricing-card:hover {
  transform: none;
  border-color: var(--border);
  background: var(--off-white);
  box-shadow: none;
}

main > section .card-grid > .card:nth-child(odd),
main > section .card-grid > .card:nth-child(even),
main > section .pricing-grid > .pricing-card:nth-child(odd),
main > section .pricing-grid > .pricing-card:nth-child(even),
main > section .steps > .step:nth-child(odd),
main > section .steps > .step:nth-child(even),
main > section .testimonial-track > .testimonial:nth-child(odd),
main > section .testimonial-track > .testimonial:nth-child(even),
.stages-grid .stage-card:nth-child(1),
.stages-grid .stage-card:nth-child(3),
.stages-grid .stage-card:nth-child(5) {
  border-color: var(--border);
  background: transparent;
}

.card h3,
.stage-card h3,
.pricing-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.pricing-card .price {
  color: var(--burgundy);
  font-size: 1.25rem;
}

.steps {
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  color: var(--burgundy-deep);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-align: left;
}

.testimonial-track {
  gap: 0;
}

.testimonial {
  min-height: 230px;
  background: var(--off-white) !important;
}

.testimonial p {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.35;
}

.stars {
  color: var(--burgundy);
  font-family: var(--font);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
}

.carousel-btn {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--off-white);
  color: var(--burgundy-deep);
  box-shadow: none;
}

.tinted,
.cta-panel,
.map-placeholder,
.resource-preview,
.hero-section,
.blog-longform,
.blog-longform:nth-child(odd),
.entity-proof,
.entity-identity-note {
  border-color: var(--border);
  border-radius: 0;
  background: var(--off-white);
  box-shadow: none;
}

.online-hero {
  background: var(--burgundy-deep) url("online-hero.jpg") center / cover no-repeat;
}

.blog-callout {
  border-radius: 0;
  background: var(--burgundy-deep);
}

.blog-callout a {
  color: var(--cream);
}

/* Newsletter and footer */
.newsletter-panel {
  padding: clamp(1.6rem, 4vw, 3.5rem);
  border: 0;
  border-radius: 0;
  background: var(--burgundy-deep);
  color: var(--cream);
  box-shadow: none;
}

.newsletter-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.newsletter-copy p,
.newsletter-note {
  color: rgba(247, 242, 233, 0.8);
}

.newsletter-points li::before {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0;
  background: var(--blush);
}

.newsletter-form {
  border-radius: 0;
  background: rgba(252, 250, 246, 0.06);
}

.newsletter-form--modal {
  background: var(--burgundy-deep);
  box-shadow: none;
}

.newsletter-modal__backdrop {
  background: rgba(17, 24, 32, 0.64);
}

.newsletter-modal__panel {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.newsletter-modal__close {
  border-radius: 0;
  color: var(--burgundy-deep);
}

.site-footer {
  margin-top: 0;
  padding-top: 4.5rem;
  border-top: 0;
  background: var(--burgundy-deep);
  color: var(--cream);
  box-shadow: none;
}

.footer-brand h3 {
  margin: 0 0 0.8rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.footer-brand p,
.footer-links a,
.footer-bottom,
.kq-policy-link,
.kq-policy-link a {
  color: rgba(247, 242, 233, 0.76);
}

.footer-links h4,
.footer-social h4 {
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-icon {
  border: 1px solid rgba(247, 242, 233, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
}

.footer-bottom {
  border-color: rgba(247, 242, 233, 0.22);
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding-inline: 0.45rem;
    font-size: 0.72rem;
  }

  .editorial-hero__panel {
    width: min(690px, 67vw);
  }

  .editorial-hero__note {
    display: none;
  }
}

@media (max-width: 900px) {
  .process-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-index > div:nth-child(2) {
    border-right: 0;
  }

  .process-index > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .editorial-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding-block: 3.6rem;
  }

  .nav-inner {
    min-height: 72px;
    padding-inline: 1.1rem;
  }

  .nav-logo {
    font-size: 1.55rem;
  }

  .nav-toggle {
    display: block;
    width: auto;
    height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--burgundy);
    border-radius: 0;
    background: transparent;
    color: var(--burgundy-deep);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .nav-toggle span {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-links {
    border-bottom: 1px solid var(--border);
    background: var(--off-white);
  }

  .nav-links .dropdown-menu {
    display: none;
    width: 100%;
    margin: 0.2rem 0 0.65rem;
    padding: 0 0 0 0.9rem;
    border: 0;
    border-left: 1px solid var(--border);
    opacity: 1;
    transform: none;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: grid;
  }

  .nav-link,
  .nav-links > li:last-child .nav-link {
    margin-left: 0;
    padding: 0.75rem 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.92rem;
  }

  .editorial-hero {
    min-height: 0;
    padding: 0;
    display: grid;
    background: var(--cream);
  }

  .editorial-hero__image {
    position: relative;
    height: 58vw;
    min-height: 330px;
    grid-row: 1;
  }

  .editorial-hero__panel {
    width: auto;
    margin: -3rem 1rem 0;
    padding: 1.7rem;
    grid-row: 2;
  }

  .editorial-hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .editorial-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editorial-hero__actions .btn {
    width: 100%;
  }

  .signature-line::before {
    width: 42px;
  }

  .process-index {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .process-index > div,
  .process-index > div:nth-child(2) {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .editorial-intro,
  .home-main > section:not(.editorial-hero):not(.process-index):not(.editorial-intro) {
    width: min(100% - 2rem, 1180px);
  }

  .editorial-intro__copy h2,
  .section-heading h2 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .editorial-intro__image figcaption {
    position: static;
    border: 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }

  .newsletter-panel {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Knowledge Quay 2026 11+ cohort result. Keep the cohort definition visible. */
.kq-results-announcement {
  padding: 1.15rem 5vw;
  background: var(--burgundy-deep);
  color: var(--cream);
  text-align: center;
}
.kq-results-announcement a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: inherit;
  text-decoration: none;
}
.kq-results-announcement strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.2;
}
.kq-results-announcement span { max-width: 72ch; font-size: 0.9rem; }
.kq-results-announcement .kq-results-announcement__cta {
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kq-results-announcement a:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 5px;
}
.kq-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-top: 4px solid var(--burgundy);
  background: var(--off-white);
}
.kq-results__copy { max-width: 44rem; }
.kq-results .kq-results__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kq-results h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.kq-results p { margin: 0; color: var(--ink); }
.kq-results > .btn { flex-shrink: 0; }
.hero .kq-result-note {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--burgundy);
  color: var(--burgundy-deep);
  font-size: 1rem;
}
.kq-result-note strong { display: block; margin-bottom: 0.3rem; }
@media (max-width: 700px) {
  .kq-results { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .kq-results.container { width: calc(100% - 2rem); }
  .kq-results > .btn { white-space: normal; }
}
