/* style.css v24 — "Heritage" (navy, ivory, gold) */
:root {
  --navy: #13233a;
  --navy-deep: #0f1c2f;
  --navy-card: #1b2e49;
  --navy-soft: #24364f;
  --ivory: #f3ecda;
  --cream: #e9dfc4;
  --gold: #d4b06a;
  --gold-dark: #8a6a2b;
  --ink-muted: #4a5568;
  --line: rgba(243, 236, 218, 0.14);
  --error: #b42318;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --max-width: 1240px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--ivory);
  line-height: 1.6;
  word-break: keep-all;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.serif {
  font-family: var(--font-serif);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
}

.section {
  padding: 96px 0;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-title.center {
  text-align: center;
}

.on-cream {
  background: var(--cream);
  color: var(--navy);
}

.on-deep {
  background: var(--navy-deep);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cream {
  background: var(--cream);
  color: var(--navy);
}

.btn-cream:hover {
  background: #f4ecd6;
}

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}

.btn-navy:hover {
  background: var(--navy-card);
}

.btn-outline {
  border-color: rgba(243, 236, 218, 0.6);
  color: var(--ivory);
}

.btn-outline:hover {
  border-color: var(--ivory);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Announcement bar */

.announce {
  display: block;
  background: var(--cream);
  color: var(--navy);
  text-align: center;
  padding: 11px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.announce:hover {
  text-decoration: underline;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

@media (max-width: 560px) {
  .brand img {
    height: 26px;
  }
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.main-nav a {
  text-decoration: none;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--gold);
}

.main-nav a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.mobile-menu-nav a[aria-current="page"] {
  color: var(--gold);
}


/* Mobile menu (below 1181px the header nav moves into a slide-in panel) */

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--ivory);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header .main-nav,
  .site-header .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 440px);
  background: #121e31;
  padding: 24px 32px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    transition: none;
  }
}

.mobile-menu-close {
  align-self: flex-end;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: none;
  background: transparent;
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  margin: 72px 0 32px;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-menu-nav a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.8px solid currentColor;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.8;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus-visible {
  color: var(--gold);
}

.mobile-menu-cta {
  width: 100%;
  min-height: 56px;
  font-size: 0.95rem;
}


/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-soft) center / cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 800px;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  opacity: 0.92;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

/* Home: university logo band under the hero */

.uni-band {
  background: #f7f3ea;
  color: var(--navy);
  padding: 56px 0;
}

.uni-logos {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 40px;
  align-items: center;
  justify-items: center;
}

.uni-logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
}

@media (max-width: 760px) {
  .uni-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .uni-logos img {
    max-height: 44px;
  }
}

/* Page header (top band of every page except home) */

.page-hero {
  background: var(--navy-soft);
  padding: 88px 0 72px;
  text-align: center;
}

.page-hero .eyebrow {
  color: var(--gold);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 860px;
  margin: 0 auto;
}

.page-lead {
  margin: 18px auto 0;
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Home: cards linking to each page, and the closing call to action */

.link-card {
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  background: #213654;
}

.link-card .more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band .section-title {
  flex: 1 1 520px;
}

/* Intro */

.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.intro-copy {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.intro-copy .section-title {
  color: var(--gold);
}

.lead {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.65;
}

/* Application Guide (light section: white cards, navy type, gold accents) */

.guide {
  background: #f7f3ea;
  color: var(--navy);
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 16px;
  margin: 88px 0 28px;
  border-bottom: 1px solid #d9d2c3;
}

.guide-head:first-child {
  margin-top: 0;
}

.guide-title {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.2;
}

.guide-aside {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.guide-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.round-grid,
.platform-grid,
.ivy-grid {
  display: grid;
  gap: 18px;
}

.round-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.platform-grid,
.ivy-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.round,
.platform,
.ivy {
  background: #ffffff;
  border: 1px solid #e6dfcf;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.round-top,
.ivy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.round-code {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}

.tag {
  padding: 3px 8px;
  border: 1px solid #b9c1ce;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tag-binding {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--gold);
}

.round h3,
.platform h3,
.ivy h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.round p,
.platform p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3d4a5f;
}

.round-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ece6d8;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
}

.round-foot span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.platform {
  border-top: 3px solid var(--gold);
  padding-top: 26px;
}

.platform-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--navy);
}

.ivy-sum {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prompts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prompts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #ece6d8;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2c3a50;
}

.prompts .len {
  flex-shrink: 0;
  max-width: 45%;
  text-align: right;
  color: var(--gold-dark);
  font-weight: 600;
}

.ivy-note {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.guide-filters button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #d9d2c3;
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.guide-filters button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e6dfcf;
  border-radius: 14px;
  background: #ffffff;
}

.top20 {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.top20 thead th {
  background: var(--navy);
  color: var(--ivory);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top20 td,
.top20 tbody th {
  padding: 15px 18px;
  border-top: 1px solid #ece6d8;
  text-align: left;
  vertical-align: top;
  color: #2c3a50;
}

.top20 tbody th {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.top20 .rank {
  color: var(--ink-muted);
  white-space: nowrap;
}

.top20 .app {
  font-weight: 600;
  white-space: nowrap;
}

.top20 tr.is-ivy td,
.top20 tr.is-ivy th {
  background: #fbf6e9;
}

.guide-fine {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid #d9d2c3;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.guide-fine p {
  margin: 0 0 6px;
}

.guide-fine strong {
  color: var(--navy);
}

@media (max-width: 560px) {
  .guide-head {
    margin-top: 64px;
  }

  .platform-grid,
  .ivy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards (pillars, services) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.card {
  background: var(--navy-card);
  border-radius: 18px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.centered {
  text-align: center;
  align-items: center;
}

.card h3 {
  font-size: 1.6rem;
  color: var(--gold);
}

.card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
  opacity: 0.92;
}

.card .num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}

/* Our Services (light section: navy icon discs, gold line icons) */

.services {
  background: #f7f3ea;
  color: var(--navy);
}

.eyebrow {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
}

.section-lead {
  margin: 16px auto 0;
  max-width: 640px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c3a50;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px 48px;
  margin-top: 64px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.service-icon {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(212, 176, 106, 0.22);
  margin-bottom: 6px;
}

.service h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--navy);
  max-width: 300px;
}

.service p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #3d4a5f;
  max-width: 380px;
}

/* Behind the Essay: the approach text and the personal statement case
   study, laid out like annotated session notes in the site's navy and gold */

.paper {
  --ink: #1d2a3d;
  --ink-soft: #4a5568;
  --edit: #8a6a2b;
  --edit-ink: #6b4f1c;
  --edit-bg: #f2e6c6;
  --rule: #d9d2c3;
  background: #f7f3ea;
  color: var(--ink);
}

.paper-alt {
  background: #fbf8f1;
}

.hand {
  font-family: "Caveat", cursive;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--edit);
  margin: 20px 0 0;
}

.approach {
  max-width: 720px;
  margin: 0 auto;
}

.rule-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 36px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--edit);
}

.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.approach-text {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink);
}

.approach-quote {
  margin: 4px 0 26px;
  padding-left: 20px;
  border-left: 2px solid var(--edit);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  color: var(--edit-ink);
}

.doc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 40px;
}

.doc-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--edit);
}

.doc-title {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.1;
}

.doc-meta {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2;
  color: #7a8394;
}

.start-q {
  margin: 0 0 56px;
}

.start-q blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.4;
}

.start-q figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #7a8394;
}

.brain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 36px;
}

.col-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a8394;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 8px;
}

.col-label b {
  color: var(--ink);
  margin-right: 8px;
}

.memories,
.arc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.memories li {
  padding: 16px 0 16px 18px;
  text-indent: -18px;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

.memories li::before {
  content: "— ";
  color: #7a8394;
}

.memories .tag {
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8394;
}

.memories .cut del {
  color: #9aa1ad;
  text-decoration-color: var(--edit);
  text-decoration-thickness: 2px;
}

.thread-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.thread-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  padding: 24px 26px;
}

.thread-card .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--edit);
}

.thread-card h4 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
}

.thread-card p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.arc li {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dotted var(--rule);
}

.arc-n {
  font-size: 0.8rem;
  color: #7a8394;
  padding-top: 5px;
  min-width: 22px;
}

.arc-t {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.arc-sub {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: #7a8394;
}

.insight {
  margin-top: 64px;
  border: 1.5px solid var(--ink);
  background: #ffffff;
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 36px;
}

.insight-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a8394;
  line-height: 1.5;
}

.insight-text {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.insight-text del {
  color: #7a8394;
  text-decoration-color: var(--edit);
}

.insight-text .underline {
  font-style: normal;
  border-bottom: 2.5px solid var(--gold);
}

.insight-note {
  margin: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #ffffff;
  border: 1px solid var(--rule);
  margin-bottom: 56px;
}

.stat-row div {
  padding: 24px 26px;
  border-right: 1px solid var(--rule);
}

.stat-row div:last-child {
  border-right: none;
}

.stat-row strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.9rem;
}

.stat-row span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a8394;
}

.sub-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  margin: 56px 0 24px;
}

.sub-head h3 {
  font-size: 1.75rem;
}

.sub-head > span {
  font-size: 0.92rem;
  color: #7a8394;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.legend del,
.legend ins {
  padding: 0 4px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 20px;
}

.timeline li {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid var(--ink);
  margin-top: 8px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline li.is-final::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 176, 106, 0.3);
}

.tl-week {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a8394;
}

.tl-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin: 4px 0;
}

.tl-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.paper del {
  color: #8f8a80;
  text-decoration-color: #8f8a80;
}

.paper ins {
  text-decoration: none;
  color: var(--edit-ink);
  background: var(--edit-bg);
  padding: 1px 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.markup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px 44px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .markup-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.markup {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.9;
}

.pnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: 2px;
}

.thread {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmt + .cmt {
  border-top: 1px solid #ebe6dc;
  padding-top: 12px;
}

.cmt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.cmt-head .wk {
  margin-left: auto;
  font-size: 0.8rem;
  color: #7a8394;
}

.badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
}

.badge.ed {
  background: var(--navy);
}

.badge.st {
  background: var(--edit);
}

.cmt p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.resolved {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8394;
}

.versions {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--rule);
}

.versions th,
.versions td {
  padding: 18px 26px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.versions th {
  width: 140px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7a8394;
}

.versions td {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #7a8394;
}

.versions .final {
  background: var(--navy);
}

.versions .final th {
  color: var(--gold);
}

.versions .final td {
  color: var(--ivory);
  font-style: italic;
}

@media (max-width: 560px) {
  .versions th,
  .versions td {
    display: block;
    width: auto;
    padding: 12px 18px;
  }
  .versions th {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.final-essay {
  max-width: 760px;
}

.final-essay p {
  margin: 0 0 22px;
  text-indent: 2.5em;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.8;
}

.final-essay p:first-child {
  text-indent: 0;
}

.final-essay p:first-child::first-letter {
  float: left;
  font-size: 3.8rem;
  line-height: 0.85;
  padding: 8px 10px 0 0;
}

.muted {
  color: #7a8394;
  font-weight: 400;
}

.final-essay.continued p:first-child {
  text-indent: 0;
}

.final-essay.continued p:first-child::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px 48px;
  align-items: start;
}

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

.feedback {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 26px 28px;
}

.feedback h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.feedback p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.feedback strong {
  color: var(--ink);
}

.feedback .doc-kicker {
  color: var(--edit);
  font-size: 0.75rem;
  line-height: 1.5;
}

.feedback-sign {
  display: block;
  padding-top: 12px;
  border-top: 1px solid #ebe6dc;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a8394;
}

/* Behind the Essay gallery */

.gallery-head {
  margin-top: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.gallery-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.bte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 32px;
  margin-top: 36px;
}

.bte-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

.bte-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(19, 35, 58, 0.08);
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bte-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.bte-card:hover .bte-thumb,
.bte-card:focus-visible .bte-thumb {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(19, 35, 58, 0.16);
}

.bte-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--edit);
}


/* Behind the Essay detail pages */

.bte-bar {
  background: var(--navy-soft);
  border-bottom: 1px solid var(--line);
}

.bte-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 0.92rem;
}

.bte-back {
  text-decoration: none;
  font-weight: 600;
  color: var(--gold);
}

.bte-where {
  flex: 1 1 auto;
}

.bte-where b {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.bte-count {
  font-size: 0.85rem;
  opacity: 0.8;
}

.bte-doc {
  padding-top: 64px;
}

.section-tight {
  padding: 40px 0 56px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.pager-link {
  flex: 0 1 380px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.pager-link span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--edit);
}

.pager-link.next {
  text-align: right;
  margin-left: auto;
}

.pager-link:hover {
  border-color: var(--gold);
}

/* Contact / consultation form */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
}

.contact-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-copy .lead {
  color: #2c3a50;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}

.contact-list strong {
  display: inline-block;
  min-width: 72px;
  font-weight: 700;
}

.consult-form {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 620px;
  background: #ffffff;
  color: var(--navy);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(19, 35, 58, 0.14);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.consult-form h3 {
  grid-column: 1 / -1;
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2c3a50;
}

.field.full {
  grid-column: 1 / -1;
}

.field .req {
  color: var(--gold-dark);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #c9ced8;
  border-radius: 10px;
  padding: 12px 14px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(19, 35, 58, 0.12);
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #2c3a50;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.consent a {
  font-weight: 700;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-error {
  margin: 0;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-success {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding: 24px 8px;
}

.form-success h3 {
  margin: 0;
}

.form-success p {
  margin: 0;
  color: #2c3a50;
}

@media (max-width: 560px) {
  .consult-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 20px;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .container {
  padding-top: 36px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  opacity: 0.8;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Privacy policy page */

.legal {
  max-width: 800px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 36px 0 8px;
  color: var(--gold);
}

.legal p,
.legal li {
  line-height: 1.8;
  opacity: 0.92;
}

.legal ul {
  padding-left: 22px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--navy-card);
}

.legal .note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.7;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 64px 0;
}
