/* Founder-reviewed homepage direction, 15 October 2026. Other routes keep their existing layout. */
.tcns-home-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #071c30;
  color: #fff;
  font-family: 'DM Sans', Arial, sans-serif;
}
.tcns-home-header__inner {
  width: min(100% - 64px, 1400px);
  min-height: 83px;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
}
.tcns-home-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.tcns-home-header__brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #4dbed1;
  object-fit: cover;
}
.tcns-home-header__brand strong,
.tcns-home-header__brand small { display: block; }
.tcns-home-header__brand strong {
  font: 800 12px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .105em;
}
.tcns-home-header__brand small {
  margin-top: 4px;
  color: #a9c4ce;
  font-size: 11px;
  line-height: 1.3;
}
.tcns-home-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.6vw, 26px);
}
.tcns-home-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-right: 2px;
  color: #79cbd7;
  font: 800 9px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .16em;
}
.tcns-home-nav__label::after {
  content: '';
  width: 1px;
  height: 24px;
  background: #4e7282;
}
.tcns-home-nav a {
  position: relative;
  padding: 13px 0;
  color: #d3e1e7;
  font: 700 12px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.tcns-home-nav a:first-of-type { color: #fff; }
.tcns-home-nav a:first-of-type::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  width: 17px;
  height: 2px;
  background: #73d7e1;
}
.tcns-home-nav a:hover,
.tcns-home-nav a:focus-visible { color: #fff; }
.tcns-home-nav a:hover::after,
.tcns-home-nav a:focus-visible::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: #73d7e1;
}
.tcns-home-nav a:focus-visible { outline: 2px solid #73d7e1; outline-offset: 5px; }
.tcns-home-header__menu { display: none; }

.tcns-home-hero {
  background: #f3f7f8;
  border-bottom: 1px solid #d5e2e7;
  color: #102e43;
  font-family: 'DM Sans', Arial, sans-serif;
}
.tcns-home-hero__inner {
  width: min(100% - 64px, 1400px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 76px;
  padding: 70px 0 78px;
}
.tcns-home-hero__eyebrow {
  margin: 0;
  color: #067e95;
  font: 800 11px/1.4 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .17em;
}
.tcns-home-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  margin-right: 13px;
  vertical-align: middle;
  background: #21adc4;
}
.tcns-home-hero h1 {
  max-width: 630px;
  margin: 25px 0 23px;
  color: #102e43;
  font: 800 clamp(54px, 4.55vw, 75px)/1.07 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: -.065em;
}
.tcns-home-hero h1 em { color: #0088a2; font-style: normal; }
.tcns-home-hero h1 br { display: initial; }
.tcns-home-hero__lead {
  max-width: 550px;
  margin: 0;
  color: #4c6678;
  font-size: 18px;
  line-height: 1.6;
}
.tcns-home-hero__actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 38px;
}
.tcns-home-hero__primary {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  padding: 16px 19px;
  border-radius: 3px;
  background: #071c30;
  color: #fff;
  font: 800 13px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.tcns-home-hero__primary:hover { background: #0e445c; }
.tcns-home-hero__primary span { color: #8ddbe3; font-size: 18px; line-height: 1; }
.tcns-home-hero__secondary {
  border-bottom: 1px solid #73bcca;
  padding-bottom: 5px;
  color: #126a81;
  font: 800 12px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.tcns-home-hero__secondary:hover { color: #063e54; }
.tcns-home-hero__visual { position: relative; min-width: 0; margin: 0; }
.tcns-home-hero__visual img {
  display: block;
  width: 100%;
  height: 455px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
}
.tcns-home-hero__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 25px;
  border-bottom: 4px solid #21adc4;
  background: linear-gradient(0deg, #061b2fef, #061b2fbd);
  color: #fff;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}
.tcns-home-hero__visual figcaption small,
.tcns-home-hero__visual figcaption strong { display: block; }
.tcns-home-hero__visual figcaption small {
  margin-bottom: 5px;
  color: #a8dae2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.tcns-home-hero__visual figcaption strong { font-size: 16px; letter-spacing: -.02em; }
.tcns-home-hero__visual figcaption > span:last-child { color: #8ddbe3; font-size: 22px; }

/* Restyle the existing case tabs and panels; their content and gate behavior stay intact. */
.home-v4 .library { max-width: none; }
.home-v4 .case-of-week {
  margin: 0 -5vw;
  padding: 69px max(5vw, calc((100vw - 1400px)/2)) 92px;
  border-bottom: 1px solid #d5e2e7;
  background: #fff;
  color: #102e43;
  font-family: 'DM Sans', Arial, sans-serif;
  scroll-margin-top: 83px;
}
.home-v4 .case-of-week__heading { margin-bottom: 22px; }
.home-v4 .case-of-week__heading .eyebrow,
.home-v4 .case-panel__copy .eyebrow {
  margin: 0 0 8px;
  color: #007f98;
  font: 800 10px/1.4 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .16em;
}
.home-v4 .case-of-week__heading h2 {
  margin: 0 0 5px;
  color: #102e43;
  font: 800 clamp(34px, 3.5vw, 49px)/1.15 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: -.055em;
}
.home-v4 .case-of-week__heading h2 span { color: inherit; }
.home-v4 .case-of-week__heading p:last-child {
  color: #5a7181;
  font-size: 15px;
  line-height: 1.5;
}
.home-v4 .case-of-week__current {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #637f8d;
  font: 800 11px/1.4 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: .08em;
}
.home-v4 .case-tabs {
  display: flex;
  gap: 27px;
  border-bottom: 1px solid #d5e2e7;
}
.home-v4 .case-tabs__tab {
  min-height: 0;
  gap: 5px;
  padding: 13px 16px 13px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #587284;
  font: 800 13px/1.3 'Plus Jakarta Sans', Arial, sans-serif;
  white-space: nowrap;
}
.home-v4 .case-tabs__tab span { color: inherit; font-size: inherit; }
.home-v4 .case-tabs__tab small { display: none; }
.home-v4 .case-tabs__tab:hover,
.home-v4 .case-tabs__tab[aria-selected='true'] {
  border: 0;
  border-bottom: 3px solid #21adc4;
  background: transparent;
  color: #07546d;
}
.home-v4 .case-tabs__tab:focus-visible { outline: 3px solid #0088a2; }
.home-v4 .case-panels {
  border: 0;
  border-bottom: 1px solid #d5e2e7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.home-v4 .case-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 43%);
  gap: 48px;
  min-height: 0;
  padding: 42px 0;
}
.home-v4 .case-panel__copy h3 {
  max-width: 700px;
  margin: 17px 0 15px;
  color: #102e43;
  font: 800 clamp(28px, 2.8vw, 40px)/1.17 'Plus Jakarta Sans', Arial, sans-serif;
  letter-spacing: -.052em;
}
.home-v4 .case-panel__copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 18px;
  color: #5a7181;
  font-size: 15px;
  line-height: 1.65;
}
.home-v4 .case-panel__copy .button {
  min-height: 0;
  gap: 10px;
  margin-top: 11px;
  padding: 0 0 5px;
  border-bottom: 1px solid #008ca7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #006d86;
  font-size: 13px;
}
.home-v4 .case-panel__copy .button:hover { color: #064354; }
.home-v4 .case-panel__copy .button span { font-size: 16px; }
.home-v4 .case-panel__image {
  width: 100%;
  max-width: none;
  height: 270px;
  border: 0;
  border-radius: 0;
  background: #08314a;
  box-shadow: none;
}
.home-v4 .case-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 1120px) {
  .tcns-home-header__inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .tcns-home-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 32px 22px;
    background: #071c30;
    box-shadow: 0 16px 25px #071c3033;
  }
  .tcns-home-header.menu-open .tcns-home-nav { display: flex; }
  .tcns-home-nav__label { margin: 5px 0 10px; }
  .tcns-home-nav__label::after { width: 40px; height: 1px; }
  .tcns-home-nav a { padding: 13px 0; border-bottom: 1px solid #335568; }
  .tcns-home-nav a:first-of-type::before { display: none; }
  .tcns-home-header__menu {
    display: block;
    grid-column: 3;
    grid-row: 1;
    padding: 8px 11px;
    border: 1px solid #537a8c;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }
  .tcns-home-hero__inner { gap: 35px; }
  .tcns-home-hero h1 { font-size: 51px; }
  .tcns-home-hero__actions { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 800px) {
  .tcns-home-hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 54px 0 63px; }
  .tcns-home-hero h1 { font-size: clamp(48px, 7vw, 62px); }
  .tcns-home-hero__visual img { height: 390px; }
  .home-v4 .case-panel { grid-template-columns: 1fr; }
  .home-v4 .case-panel__image { height: 300px; }
}
@media (max-width: 600px) {
  .tcns-home-header__inner,
  .tcns-home-hero__inner { width: min(100% - 36px, 1400px); }
  .tcns-home-header__inner { min-height: 70px; }
  .tcns-home-header__brand img { width: 44px; height: 44px; flex-basis: 44px; }
  .tcns-home-header__brand strong { font-size: 10px; }
  .tcns-home-header__brand small { font-size: 9px; }
  .tcns-home-hero__inner { padding: 45px 0 50px; }
  .tcns-home-hero__eyebrow { font-size: 9px; letter-spacing: .14em; }
  .tcns-home-hero h1 { font-size: clamp(41px, 10.2vw, 54px); }
  .tcns-home-hero__lead { font-size: 15px; }
  .tcns-home-hero__actions { margin-top: 28px; gap: 22px; }
  .tcns-home-hero__visual img { height: 285px; }
  .tcns-home-hero__visual figcaption { padding: 15px 17px; }
  .tcns-home-hero__visual figcaption strong { font-size: 13px; }
  .home-v4 .case-of-week { padding-top: 49px; padding-bottom: 65px; }
  .home-v4 .case-of-week__heading { display: block; }
  .home-v4 .case-of-week__current { display: block; margin-top: 17px; }
  .home-v4 .case-tabs { gap: 11px; overflow-x: auto; }
  .home-v4 .case-tabs__tab { font-size: 11px; }
  .home-v4 .case-panel { padding: 30px 0; }
  .home-v4 .case-panel__image { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcns-home-hero *, .tcns-home-header * { scroll-behavior: auto; }
}

/* One continuous cool canvas for the homepage. Keep navy as an accent and in the header. */
body.home-v4 {
  color-scheme: light;
  background: #f3f7f8;
  color: #102e43;
  font-family: 'DM Sans', Arial, sans-serif;
}
.home-v4 .tcns-home-hero { border-bottom-color: #d5e2e7; }
.home-v4 .library { background: #f3f7f8; }
.home-v4 .case-of-week { background: #f3f7f8; }
.home-v4 .case-panels { background: transparent; }
.home-v4 .eyebrow { color: #087f96; }
.home-v4 .library h2,
.home-v4 .library h3 {
  color: #102e43;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.home-v4 .companion-feature {
  border-color: #c8dce5;
  background: #e8f2f5;
  box-shadow: 0 18px 45px #102e4312;
}
.home-v4 .companion-feature__eyebrow { color: #087f96; }
.home-v4 .companion-feature h2 em { color: #0088a2; }
.home-v4 .companion-feature__lead,
.home-v4 .companion-feature__actions > span,
.home-v4 .companion-feature__scope { color: #4c6678; }
.home-v4 .companion-feature__button {
  border-color: #071c30;
  border-radius: 4px;
  background: #071c30;
  box-shadow: none;
  color: #fff;
}
.home-v4 .companion-feature__button:hover {
  background: #0e445c;
  box-shadow: none;
}
.home-v4 .companion-feature__button:focus-visible { outline-color: #0088a2; }
.home-v4 .companion-preview {
  box-shadow: 0 14px 34px #102e4326;
  transform: none;
}

.home-v4 .series-home {
  border-color: #d5e2e7;
}
.home-v4 .series-home-heading p:last-child,
.home-v4 .series-home-card p,
.home-v4 .series-note { color: #4c6678; }
.home-v4 .series-home-card,
.home-v4 .series-home-card--cb {
  border-color: #c8dce5;
  border-top-color: #21adc4;
  background: #fff;
  box-shadow: 0 12px 30px #102e430d;
}
.home-v4 .series-home-card--cb { border-top-color: #d14b73; }
.home-v4 .series-sample span { color: #4c6678; }
.home-v4 .series-home-card .button {
  background: #071c30;
  color: #fff;
}
.home-v4 .series-home-card .button:hover { background: #0e445c; }

.home-v4 .method {
  border-color: #d5e2e7;
}
.home-v4 .method-intro > p:last-child,
.home-v4 .method-steps p { color: #4c6678; }
.home-v4 .method-steps article {
  border-left-color: #21adc4;
  background: #fff;
  box-shadow: 0 8px 24px #102e430a;
}
.home-v4 .method-steps article:nth-child(2) { border-left-color: #d14b73; }
.home-v4 .method-steps article:nth-child(3) { border-left-color: #1876b8; }
.home-v4 .method-steps b { color: #087f96; }
.home-v4 .method-steps article:nth-child(2) b { color: #aa3458; }
.home-v4 .method-steps article:nth-child(3) b { color: #17699d; }

.home-v4 .newsletter {
  border-color: #c8dce5;
  background: #e8f2f5;
  box-shadow: none;
}
.home-v4 .newsletter-copy > p:not(.eyebrow),
.home-v4 .newsletter ul { color: #4c6678; }
.home-v4 .newsletter li::before { color: #087f96; }
.home-v4 .newsletter-form {
  border-color: #c8dce5;
  background: #fff;
}
.home-v4 .newsletter-privacy { color: #4c6678; }
.home-v4 .newsletter-privacy a { color: #087f96; }

.home-v4 .guide-value li {
  border-color: #d5e2e7;
  color: #3d5a6c;
}
.home-v4 .guide-value li::before { color: #087f96; }
.home-v4 .library-heading,
.home-v4 .standards { border-color: #d5e2e7; }
.home-v4 .library-heading h2 span { color: #0088a2; }
.home-v4 .library-heading p:last-child,
.home-v4 .library-note,
.home-v4 .standards p:last-child,
.home-v4 .results-bar p,
.home-v4 .empty p { color: #4c6678; }
.home-v4 .library-note { border-left-color: #21adc4; }
.home-v4 .filters {
  border-color: #c8dce5;
  background: #e8f2f5;
}
.home-v4 .filters input,
.home-v4 .filters select {
  border-color: #a9c8d5;
  background: #fff;
  color: #102e43;
}
.home-v4 .filters input::placeholder { color: #617b8c; }
.home-v4 .guide-card {
  border-color: #c8dce5;
  background: #fff;
  box-shadow: 0 10px 28px #102e430d;
}
.home-v4 .card-preview { background: #e8f2f5; }
.home-v4 .card-meta { color: #087f96; }
.home-v4 .card-meta span,
.home-v4 .card-summary,
.home-v4 .card-format { color: #4c6678; }
.home-v4 .card-actions { border-color: #d5e2e7; }
.home-v4 .card-actions a,
.home-v4 .results-bar button { color: #087f96; }
.home-v4 .pagination button {
  border-color: #a9c8d5;
  background: #fff;
  color: #102e43;
}
.home-v4 .empty { border-color: #a9c8d5; }

.home-v4 > footer {
  border-color: #d5e2e7;
  background: #f3f7f8;
  color: #4c6678;
}
.home-v4 > footer strong { color: #102e43; }
.home-v4 > footer a { color: #087f96; }

/* Clinical Companion homepage feature, Founder-authorized 18 October 2026. */
.tcns-home-hero__scope{max-width:550px;margin:16px 0 0;color:#126a81;font:600 13px/1.65 "DM Sans",Arial,sans-serif}.tcns-home-hero__visual>a{display:block}.tcns-home-hero__visual figcaption{pointer-events:none}
