:root {
  color-scheme: light;
  --lm-ink: #161616;
  --lm-muted: #5e625f;
  --lm-bg: #f7f8f5;
  --lm-panel: #ffffff;
  --lm-line: #d9ded8;
  --lm-soft: #eef1fb;
  --lm-teal: #000e54;
  --lm-teal-dark: #000a3d;
  --lm-blue: #1f4fa3;
  --lm-amber: #c84c00;
  --lm-red: #8f2f0a;
  --lm-shadow: 0 18px 48px rgba(0, 14, 84, 0.10);
  --lm-page-title-size: 4.8rem;
  --lm-page-title-line: 1;
  --lm-section-title-size: 3.4rem;
  --lm-content-heading-size: 2.15rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.lm-page {
  min-height: 100vh;
  color: var(--lm-ink);
  background: var(--lm-bg);
  line-height: 1.58;
}

.lm-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.lm-shell-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(217, 222, 216, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.lm-shell-header.email-only {
  justify-content: space-between;
  min-height: 58px;
}

.lm-home-link {
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.lm-home-link:hover {
  color: var(--lm-amber);
}

.lm-email-link {
  color: var(--lm-teal-dark);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.lm-email-link:hover {
  color: var(--lm-amber);
}

.lm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--lm-ink);
  text-decoration: none;
}

.lm-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--lm-teal) 0 48%, var(--lm-amber) 48% 66%, var(--lm-blue) 66% 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.lm-brand strong,
.lm-brand small {
  display: block;
}

.lm-brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.lm-brand small {
  margin-top: 2px;
  color: var(--lm-muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.lm-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.lm-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 7px;
  color: var(--lm-muted);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.lm-nav a:hover,
.lm-nav a[aria-current="page"] {
  color: var(--lm-teal-dark);
  background: var(--lm-soft);
}

.lm-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lm-line);
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.lm-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--lm-teal-dark);
}

.lm-eyebrow {
  margin: 0 0 12px;
  color: var(--lm-amber);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lm-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--lm-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--lm-teal-dark);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 28, 26, 0.04);
}

.lm-button.primary {
  border-color: var(--lm-teal);
  background: var(--lm-teal);
  color: #ffffff;
}

.home-hero {
  min-height: 46vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--lm-line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6f1 100%);
}

.hero-grid {
  display: block;
  align-items: center;
  padding: 82px 0 88px;
}

.hero-copy {
  max-width: 760px;
}

.home-page .hero-copy {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-page-title-size);
  font-weight: 700;
  line-height: var(--lm-page-title-line);
  letter-spacing: 0;
}

.hero-lede {
  max-width: 980px;
  margin: 24px auto 0;
  color: var(--lm-muted);
  font-size: 1.18rem;
}

@media (min-width: 760px) {
  .hero-lede {
    white-space: nowrap;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.subject-band,
.pr-main {
  padding: 38px 0 84px;
}

.pr-copy h1 {
  margin: 0;
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-section-title-size);
  line-height: 1.04;
  letter-spacing: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.subject-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subject-block {
  min-width: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--lm-line);
  border-top: 4px solid var(--lm-amber);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 28, 26, 0.04);
}

.subject-block h3 {
  margin: 0;
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-content-heading-size);
  line-height: 1.08;
  letter-spacing: 0;
}

.subject-block p {
  margin: 14px 0 0;
  color: var(--lm-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.subject-block-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.subject-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--lm-line);
  border-radius: 7px;
  background: var(--lm-soft);
  color: var(--lm-teal-dark);
  font-size: 0.93rem;
  font-weight: 950;
  text-decoration: none;
}

.subject-link::after {
  content: ">";
  color: var(--lm-amber);
  font-weight: 950;
}

.subject-link.accent {
  border-color: var(--lm-teal);
  background: var(--lm-teal);
  color: #ffffff;
}

.subject-link.accent::after {
  color: #ffffff;
}

.subject-card {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--lm-muted);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(20, 28, 26, 0.04);
}

.subject-card:hover {
  border-color: rgba(21, 77, 80, 0.38);
  transform: translateY(-1px);
}

.subject-card strong {
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-content-heading-size);
  line-height: 1;
}

.subject-kicker {
  color: var(--lm-amber);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.subject-card img {
  width: 100%;
  height: 172px;
  margin-top: 8px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--lm-line);
  border-radius: 6px;
  background: var(--lm-soft);
}

.subject-monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 172px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid var(--lm-line);
  background:
    linear-gradient(135deg, rgba(39, 60, 117, 0.13), rgba(21, 77, 80, 0.12)),
    #f8faf8;
  color: var(--lm-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.4rem;
  font-weight: 700;
}

.pr-main {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.pr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 44px;
  align-items: center;
}

.pr-copy p {
  max-width: 680px;
  color: var(--lm-muted);
  font-size: 1.08rem;
}

.pr-panel {
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--lm-shadow);
}

.pr-panel div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 18px;
  border-bottom: 1px solid var(--lm-line);
}

.pr-panel div:last-child {
  border-bottom: 0;
}

.pr-panel span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--lm-soft);
  color: var(--lm-teal-dark);
  font-weight: 950;
}

.pr-panel strong {
  display: block;
  color: var(--lm-teal-dark);
}

.pr-panel small {
  display: block;
  color: var(--lm-muted);
  font-size: 0.86rem;
}

.lm-footer {
  border-top: 1px solid var(--lm-line);
  background: #ffffff;
}

.lm-footer .lm-container {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--lm-muted);
}

.lm-footer span {
  color: var(--lm-teal-dark);
  font-weight: 950;
}

.flow-hero {
  border-bottom: 1px solid var(--lm-line);
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6f1 100%);
}

.flow-hero .lm-container {
  padding: 64px 0 52px;
}

.flow-hero h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-page-title-size);
  font-weight: 700;
  line-height: var(--lm-page-title-line);
  letter-spacing: 0;
}

.flow-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--lm-muted);
  font-size: 1.13rem;
}

.flow-layout {
  padding: 46px 0 104px;
}

.flow-chart {
  position: relative;
  display: grid;
  gap: 34px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-left: 78px;
}

.flow-chart::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 27px;
  width: 3px;
  background: linear-gradient(180deg, var(--lm-teal), var(--lm-amber), var(--lm-blue));
  opacity: 0.46;
}

.flow-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0 auto 24px;
}

.flow-key span {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--lm-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.flow-key strong {
  display: block;
  color: var(--lm-teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flow-stage {
  position: relative;
}

.flow-stage-body {
  display: grid;
  gap: 18px;
}

.flow-marker {
  position: absolute;
  top: 0;
  left: -78px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 14, 84, 0.28);
  border-radius: 50%;
  background: #ffffff;
  color: var(--lm-teal-dark);
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(20, 28, 26, 0.08);
}

.flow-card {
  padding: 24px;
  border: 1px solid var(--lm-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 28, 26, 0.04);
}

.flow-card-main {
  border-left: 6px solid var(--lm-teal);
  box-shadow: var(--lm-shadow);
}

.flow-card-main.is-decision {
  border-left-color: var(--lm-amber);
}

.flow-card-main.is-terminal {
  border-left-color: var(--lm-blue);
}

.flow-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--lm-soft);
  color: var(--lm-teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.flow-card h2 {
  margin: 0;
  color: var(--lm-teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--lm-content-heading-size);
  line-height: 1.08;
  letter-spacing: 0;
}

.flow-card p {
  margin: 12px 0 0;
  color: var(--lm-muted);
}

.flow-card ul {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--lm-ink);
}

.flow-card li + li {
  margin-top: 7px;
}

.flow-paths {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 30px;
}

.flow-paths::before,
.flow-paths::after,
.flow-path::before {
  content: "";
  position: absolute;
  border-color: rgba(0, 14, 84, 0.28);
}

.flow-paths::before {
  top: 14px;
  left: 12%;
  right: 12%;
  border-top: 2px solid rgba(0, 14, 84, 0.28);
}

.flow-paths::after {
  top: 0;
  left: 50%;
  height: 14px;
  border-left: 2px solid rgba(0, 14, 84, 0.28);
}

.flow-paths.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-paths.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-paths.one {
  grid-template-columns: minmax(0, 1fr);
}

.flow-paths.one::before {
  display: none;
}

.flow-path {
  position: relative;
  min-height: 100%;
  border-color: rgba(0, 14, 84, 0.16);
}

.flow-path::before {
  top: -16px;
  left: 50%;
  height: 16px;
  border-left: 2px solid rgba(0, 14, 84, 0.28);
}

.flow-path-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin: 0 0 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f5e7dc;
  color: var(--lm-amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.flow-path h3 {
  margin: 0;
  color: var(--lm-teal-dark);
  font-size: 1.02rem;
  line-height: 1.2;
}

.flow-path p {
  margin: 8px 0 0;
  color: var(--lm-muted);
  font-size: 0.94rem;
}

.flow-path ul {
  margin: 10px 0 0;
  padding-left: 1rem;
  color: var(--lm-ink);
  font-size: 0.92rem;
}

.flow-path.is-stop {
  border-color: rgba(200, 76, 0, 0.32);
  background: #fff8f2;
}

.flow-next {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 14, 84, 0.12);
  border-radius: 8px;
  background: var(--lm-soft);
  color: var(--lm-muted);
  font-size: 0.94rem;
}

.flow-next strong {
  color: var(--lm-teal-dark);
}

.flow-rule {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--lm-amber);
  color: var(--lm-teal-dark);
  font-weight: 850;
}

@media (max-width: 820px) {
  :root {
    --lm-page-title-size: 3.8rem;
    --lm-section-title-size: 3rem;
    --lm-content-heading-size: 1.95rem;
  }

  .lm-shell-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .lm-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .lm-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
  }

  .lm-shell-header.nav-open .lm-nav {
    display: flex;
  }

  .lm-nav a {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-grid,
  .pr-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 54px 0 62px;
  }

  .subject-grid,
  .subject-hub-grid {
    grid-template-columns: 1fr;
  }

  .subject-block-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-key {
    grid-template-columns: 1fr;
  }

  .flow-paths.three,
  .flow-paths.four {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  :root {
    --lm-page-title-size: 2.85rem;
    --lm-page-title-line: 1.04;
    --lm-section-title-size: 2.35rem;
    --lm-content-heading-size: 1.7rem;
  }

  .lm-container {
    width: min(100% - 28px, 1160px);
  }

  .hero-actions,
  .lm-button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .lm-footer .lm-container {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .flow-chart {
    gap: 26px;
    padding-left: 0;
  }

  .flow-chart::before {
    display: none;
  }

  .flow-stage {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .flow-marker {
    position: sticky;
    grid-column: 1;
    left: auto;
    width: 42px;
    height: 42px;
    top: 64px;
    font-size: 0.85rem;
  }

  .flow-stage-body {
    grid-column: 2;
  }

  .flow-paths,
  .flow-paths.three,
  .flow-paths.four {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .flow-paths::before,
  .flow-paths::after,
  .flow-path::before {
    display: none;
  }

  .flow-card {
    padding: 18px;
  }
}

@media print {
  .lm-shell-header,
  .lm-footer {
    display: none !important;
  }

  .flow-hero {
    border-bottom: 0;
    background: #ffffff;
  }

  .flow-hero .lm-container {
    padding: 0 0 18px;
  }

  .flow-layout {
    padding: 0;
  }

  .flow-key {
    display: none;
  }

  .flow-chart {
    gap: 16px;
    width: 100%;
    padding-left: 0;
  }

  .flow-chart::before,
  .flow-paths::before,
  .flow-paths::after,
  .flow-path::before {
    display: none;
  }

  .flow-stage {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    break-inside: avoid;
  }

  .flow-marker {
    position: static;
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    box-shadow: none;
  }

  .flow-stage-body {
    gap: 10px;
  }

  .flow-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .flow-paths,
  .flow-paths.three,
  .flow-paths.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 0;
  }
}
