/* C4 interaction and surface refinements. Shared by the public site and Passport. */
:root {
  --muted: #586e7c;
  --line: #dce5e9;
  --care: #bf4c55;
  --research: #3477b6;
  --radius: 18px;
  --radius-control: 14px;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23586e7c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --radius-panel: 24px;
  --shadow-rest: 0 2px 5px #082e4704, 0 8px 28px #082e4705;
  --shadow-hover: 0 4px 12px #082e4707, 0 16px 36px #082e4710;
  --card-shadow-quiet: 0 1px 2px #082e4708, 0 8px 22px -10px #082e471a, inset 0 1px 0 #ffffffcc;
  --card-shadow-rest: 0 2px 4px #082e4709, 0 10px 22px -8px #082e4720, 0 24px 46px -22px #082e472b, inset 0 1px 0 #ffffffeb;
  --card-shadow-raised: 0 4px 8px -2px #082e4712, 0 18px 34px -12px #082e472b, 0 34px 58px -24px #082e4738, inset 0 1px 0 #ffffff;
  --card-edge-raised: color-mix(in srgb, var(--brand) 28%, var(--line));
  --shadow-button: 0 4px 12px #dc240c16, inset 0 1px 0 #ffffff20;
  --shadow-button-hover: 0 7px 18px #dc240c24, inset 0 1px 0 #ffffff36;
  --control-halo: #dc240c16;
  --ease: cubic-bezier(0.22, 0.68, 0.2, 1);
}
:root[data-theme="dark"] {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23a8bbc7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --muted: #a8bbc7;
  --line: #2b414f;
  --care: #f49b9f;
  --research: #8dbdfa;
  --shadow-rest: 0 2px 5px #0000000d, 0 8px 28px #0000000d;
  --shadow-hover: 0 4px 12px #0000001a, 0 16px 36px #00000024;
  --card-shadow-quiet: 0 2px 4px #00000026, 0 10px 24px -12px #00000066, inset 0 1px 0 #ffffff09;
  --card-shadow-rest: 0 2px 5px #00000033, 0 12px 26px -8px #00000070, 0 26px 48px -22px #00000080, inset 0 1px 0 #ffffff0c;
  --card-shadow-raised: 0 4px 10px -2px #00000040, 0 20px 38px -12px #00000099, 0 36px 60px -24px #000000a6, inset 0 1px 0 #ffffff12;
  --card-edge-raised: color-mix(in srgb, var(--brand) 24%, var(--line));
  --shadow-button: 0 4px 12px #00000020, inset 0 1px 0 #ffffff24;
  --shadow-button-hover: 0 7px 20px #00000030, inset 0 1px 0 #ffffff45;
  --control-halo: #f5624f24;
}
body {
  text-rendering: optimizeLegibility;
}
button,
a,
summary,
label:has(input) {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
#main:focus,
#dialog-title:focus {
  outline: none;
}
.brand,
.skip-link {
  border-radius: 10px;
}
.skip-link {
  min-height: 44px;
}

/* Pill actions have a shared cadence, sheen and tactile response. */
.btn {
  min-height: 50px;
  padding: 13px 24px;
  gap: 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transform: translateY(0);
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 240ms var(--ease),
    transform 240ms var(--ease);
}
.btn::before {
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 20%,
    #ffffff00 37%,
    #ffffff23 49%,
    #ffffff00 61%,
    transparent 80%
  );
  transform: translateX(-135%) skewX(-12deg);
  transition: transform 650ms var(--ease);
}
.btn:hover::before {
  transform: translateX(135%) skewX(-12deg);
}
.btn-primary {
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  box-shadow: var(--shadow-button-hover);
}
.btn-dark {
  border-color: transparent;
  box-shadow:
    0 2px 6px #082e470d,
    inset 0 1px 0 #ffffff14;
}
.btn-dark:hover {
  box-shadow:
    var(--shadow-hover),
    inset 0 1px 0 #ffffff26;
}
.btn-outline {
  background: var(--surface-raised);
  border-color: var(--line);
  box-shadow: 0 1px 2px #082e4703;
}
.btn-outline:hover {
  box-shadow: 0 0 0 3px var(--control-halo);
}
.btn-glass {
  background: #ffffff0b;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #ffffff0d;
}
.btn-glass:hover {
  box-shadow:
    inset 0 1px 0 #ffffff24,
    0 5px 16px #00000012;
}
.btn-small,
.nav-actions > .btn {
  min-height: 44px;
  padding: 11px 18px;
  gap: 12px;
  font-size: 12px;
}
.app-content .btn {
  min-height: 44px !important;
}
.btn[data-curation-action] {
  min-height: 44px !important;
  padding: 11px 16px !important;
  font-size: 12px !important;
}
.btn:hover svg,
.text-link:hover svg {
  transform: none;
}
.btn svg,
.text-link svg {
  transition: transform 240ms var(--ease);
}
.btn:hover,
.btn-white:hover,
.btn-dark:hover,
.btn-primary:hover {
  transform: none;
}
.btn:focus-visible {
  border-radius: 999px;
}
.btn:not(:disabled):not([aria-disabled="true"]):active {
  transform: translateY(0) scale(0.975);
  box-shadow: inset 0 2px 5px #00000012;
  transition-duration: 100ms;
}
.btn:not(:disabled):not([aria-disabled="true"]):active svg {
  transform: none;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn:disabled::before,
.btn[aria-disabled="true"]::before {
  display: none;
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: var(--brand);
}
.btn-outline:disabled,
.btn-outline[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--surface-raised);
}
.btn:disabled svg,
.btn[aria-disabled="true"] svg {
  transform: none;
}

/* Small controls keep the same rounded language and generous hit areas. */
.icon-button,
.theme-toggle,
.save-button,
.dialog-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  transition:
    background-color 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}
.icon-button:hover {
  transform: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--control-halo);
}
.save-button {
  padding: 10px;
  flex-shrink: 0;
}
.icon-button:active,
.save-button:active {
  transform: scale(0.94);
}
.mobile-toggle {
  display: none;
}
.text-link {
  min-height: 44px;
  gap: 9px;
  border-radius: 999px;
  transition:
    color 180ms var(--ease),
    background-color 180ms var(--ease);
}
button.text-link {
  padding: 10px 12px;
  font-weight: 600;
}
button.text-link:hover,
button.text-link:focus-visible {
  background: var(--tint) !important;
}
.text-link:disabled {
  opacity: 0.55;
  color: var(--muted);
  cursor: not-allowed;
}
.text-link:disabled:hover {
  background: transparent !important;
}
.app-section-title .text-link,
.table-wrap .text-link {
  font-size: 12px !important;
}
.badge {
  border-radius: 999px;
  padding: 5px 10px;
}
.button-row > a.badge {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 12px;
  letter-spacing: 0;
  background: var(--surface-raised);
  transition:
    border-color 180ms,
    background-color 180ms,
    color 180ms,
    box-shadow 180ms;
}
.button-row > a.badge.accent {
  background: var(--tint);
  border-color: var(--brand);
  color: var(--brand);
}
.button-row > a.badge:hover {
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--control-halo);
}
.button-row {
  gap: 12px;
}
.card-bottom {
  gap: 12px;
}

/* Navigation and selection surfaces. */
.site-header {
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}
.nav-links > a,
.nav-drop > button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 10px;
  border-radius: 10px;
}
.nav-links > a::after {
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
}
.nav-drop > button .icon {
  transition: transform 200ms var(--ease);
}
.nav-drop > button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}
.dropdown {
  padding: 8px;
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
}
.dropdown a {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 11px;
  transition:
    background-color 180ms,
    color 180ms;
}
.theme-selector {
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}
.theme-selector button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition:
    background-color 180ms,
    color 180ms,
    box-shadow 180ms;
}
.theme-selector button svg {
  width: 16px;
  height: 16px;
}
.theme-selector button.active {
  background: var(--surface-raised);
  color: var(--brand);
  box-shadow: 0 1px 5px #082e4710;
}
.theme-selector button:hover:not(.active) {
  background: var(--tint);
  color: var(--brand);
}

/* Balanced corner radii and theme-aware depth. */
.hero,
.mission-panel,
.intro-image,
.form-panel,
.profile-summary {
  border-radius: var(--radius-panel);
}
.pillar-card,
.opportunity-card,
.content-card,
.course-card,
.app-list,
.mentor-card,
.impact-card,
.table-wrap,
.app-stat,
.app-tile,
.credential {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-quiet);
}
.pillar-card,
.opportunity-card,
.course-card,
.mentor-card,
.app-tile,
a.app-stat,
a.content-card {
  box-shadow: var(--card-shadow-rest);
}
.profile-summary {
  box-shadow: var(--card-shadow-quiet);
}
.hero-note,
.floating-proof,
.app-welcome,
.info-strip {
  border-radius: 16px;
}
.proof-three {
  box-shadow: none;
}
.hero-note:hover {
  transform: none;
}
.pillar-card,
.opportunity-card,
.course-card,
.app-tile,
.mentor-card,
a.app-stat,
a.content-card {
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 280ms var(--ease),
    transform 280ms var(--ease);
}
.pillar-card:hover,
.opportunity-card:hover,
.course-card:hover,
.app-tile:hover,
.mentor-card:hover,
a.content-card:hover {
  transform: none;
  box-shadow: var(--card-shadow-rest);
}
/* Keyboard focus gets the same depth without moving the focused target. */
.pillar-card:focus-visible,
.opportunity-card:focus-within,
.course-card:focus-within,
.mentor-card:focus-within,
.app-tile:focus-visible,
a.app-stat:focus-visible,
a.content-card:focus-visible {
  border-color: var(--card-edge-raised);
  box-shadow: var(--card-shadow-raised);
}
/* Reveal staggering must not delay the response to a pointer or keyboard. */
.pillar-card.in-view {
  transition-delay: 0ms !important;
}
.pillar-card:hover .pillar-img img {
  transform: scale(1.035);
}
.opportunity-preview > .opportunity-card:last-child {
  display: block;
}
.app-sidebar nav {
  gap: 6px;
}
.app-sidebar nav a {
  min-height: 46px;
  padding: 12px 13px;
  gap: 11px;
  border-radius: 13px;
  font-size: 12px;
  transition:
    background-color 180ms,
    color 180ms,
    box-shadow 180ms;
}
.app-sidebar nav a.active,
.app-sidebar nav a.active:hover {
  background: var(--tint);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--control-halo);
}
.app-sidebar nav a:hover:not(.active) {
  background: var(--surface);
}
.app-content {
  padding: 42px;
}
.app-top {
  margin-bottom: 32px;
  gap: 24px;
}
.app-top h1 {
  font-size: clamp(28px, 2.5vw, 34px);
  letter-spacing: -0.045em;
}
.app-top p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 660px;
}
.app-section-title {
  margin-block: 34px 20px;
  gap: 16px;
}
.app-section-title h2 {
  line-height: 1.35;
}
.app-list-item {
  gap: 16px;
  padding: 22px;
}
.app-list-item > div:not(.session-date) {
  min-width: 0;
  flex: 1;
}
.app-list-item strong {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.app-list-item small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
}
.app-list-item > .text-link {
  flex-shrink: 0;
}
.app-list-item > .icon:last-child {
  margin-left: auto;
}
a.app-list-item,
button.app-list-item {
  transition:
    background-color 180ms,
    color 180ms;
}
a.app-list-item:hover,
button.app-list-item:hover {
  background: var(--tint) !important;
}
.app-tile h3 {
  font-size: 13px;
}
.app-stat span {
  font-size: 11px;
}
.session-date {
  border-radius: 12px;
  flex-shrink: 0;
}
.info-strip {
  padding: 19px 22px;
  line-height: 1.8;
}
.progress-track {
  height: 6px;
}
.progress-track span {
  border-radius: inherit;
}
.route-enter {
  animation-duration: 220ms;
}
@keyframes route-in {
  from {
    opacity: 1;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Forms and dialogs share one comfortable control geometry. */
.input,
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 50px;
  border-radius: var(--radius-control);
  padding: 13px 15px;
  font-size: 14px;
  box-shadow: 0 1px 2px #082e4703;
  transition:
    background-color 180ms,
    border-color 180ms,
    box-shadow 180ms;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--control-halo);
}
textarea {
  resize: vertical;
  line-height: 1.75;
}
/* Give every native select a consistent inset indicator without changing its menu. */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 16px center;
  padding-inline-start: 16px;
  padding-inline-end: 48px;
}
:root[dir="rtl"] select {
  background-position: left 16px center;
}
select[multiple],
select[size]:not([size="1"]) {
  -webkit-appearance: auto;
  appearance: auto;
  background-image: none;
  padding-inline: 16px;
}
@media (forced-colors: active) {
  select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
.search-field > .icon {
  left: 16px;
  top: 16px;
}
.field {
  gap: 9px;
  margin-bottom: 22px;
}
.field > label,
.field > span {
  font-size: 13px;
}
.role-switch {
  max-width: 190px !important;
  min-height: 44px !important;
  border-radius: 999px;
  padding: 10px 15px !important;
  padding-inline: 16px 48px !important;
  font-size: 12px !important;
}
.configuration-row input,
.configuration-row select {
  min-height: 46px !important;
  font-size: 13px !important;
}
.role-option,
.privacy-choice,
.checkin {
  border-radius: var(--radius-control);
  transition:
    background-color 180ms,
    border-color 180ms,
    box-shadow 180ms;
}
.role-option,
.interest-option {
  min-height: 48px;
}
.role-option:hover,
.privacy-choice:hover,
.checkin:hover,
.interest-option:hover {
  border-color: var(--brand);
  background: var(--tint);
}
.role-option:focus-within,
.privacy-choice:focus-within,
.checkin:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--control-halo);
}
.interest-option {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 10px 17px;
}
.privacy-choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--tint);
}
.form-panel {
  box-shadow: var(--card-shadow-quiet);
}
.form-actions {
  gap: 18px;
  flex-wrap: wrap;
}
dialog {
  border-radius: 26px;
  padding: 42px;
  box-shadow:
    0 10px 30px #00000012,
    0 30px 100px #00000026;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
dialog h2 {
  padding-right: 30px;
  line-height: 1.25;
}
.dialog-close {
  right: 12px;
  top: 12px;
  background: var(--surface);
  border-color: transparent;
}
.toast {
  border-radius: 18px;
  padding: 16px 24px;
  line-height: 1.6;
}
.preview-banner button {
  min-height: 44px;
  border-radius: 999px;
  padding: 6px 10px;
  text-underline-offset: 3px;
}
.faq-list summary {
  min-height: 44px;
  border-radius: 10px;
  transition: color 180ms;
}
.faq-list summary:hover {
  color: var(--brand);
}
.faq-list summary::after {
  margin-inline-end: 14px;
}
.faq-list details {
  padding-block: 17px;
}
.footer-grid .footer-column:last-child {
  display: block;
}
.footer-column a,
.footer-column button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  margin-bottom: 0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms;
}
.footer-column h3 {
  margin-bottom: 14px;
}
.footer-bottom {
  align-items: center;
  margin-top: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
  }
  .btn:not(:disabled):not([aria-disabled="true"]):hover svg[data-icon="arrow"],
  .text-link:not(:disabled):hover svg[data-icon="arrow"] {
    transform: translateX(3px);
  }
  .btn:not(:disabled):not([aria-disabled="true"]):active {
    transform: translateY(0) scale(0.975);
  }
  .btn:active svg[data-icon="arrow"] {
    transform: none;
  }
  .pillar-card:hover,
  .opportunity-card:hover,
  .course-card:hover,
  .app-tile:hover,
  .mentor-card:hover,
  a.content-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-edge-raised);
    box-shadow: var(--card-shadow-raised);
  }
  .pillar-card:hover {
    border-color: color-mix(in srgb, var(--pillar) 35%, var(--line));
  }
  a.app-stat:hover {
    transform: translateY(-3px);
    border-color: var(--card-edge-raised);
    box-shadow: var(--card-shadow-raised);
  }
  a.pillar-card:active,
  a.app-tile:active,
  a.app-stat:active,
  a.content-card:active {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-rest);
  }
  .hero-note:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 1200px) {
  .app-content {
    padding: 32px;
  }
  .nav-links {
    gap: 22px;
  }
}
@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-grid;
  }
  .app-content {
    padding: 28px;
  }
  .app-sidebar nav a {
    min-height: 44px;
    padding: 11px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .nav-links > a,
  .nav-drop > button {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border-radius: 12px;
    justify-content: space-between;
  }
  .nav-links > a::after {
    display: none;
  }
  .nav-links > a:hover,
  .nav-links > a.active,
  .nav-drop > button:hover,
  .nav-drop > button[aria-expanded="true"] {
    background: var(--tint);
  }
  .nav-drop.open .dropdown {
    margin-block: 6px 12px;
    border-color: transparent;
    background: var(--surface);
  }
  .site-header.menu-open .nav-links {
    gap: 4px;
  }
}
@media (max-width: 700px) {
  .hero,
  .mission-panel,
  .intro-image {
    border-radius: 18px;
  }
  .hero .btn,
  .mission-panel .btn,
  .closing .btn,
  .form-actions .btn {
    min-height: 48px;
    font-size: 12px;
  }
  .nav-actions {
    gap: 6px;
  }
  .app-sidebar {
    padding: 10px 16px;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .app-sidebar nav {
    gap: 6px;
  }
  .app-sidebar nav a {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 999px;
    font-size: 11px;
    gap: 7px;
  }
  .app-content {
    padding: 30px 20px 48px;
  }
  .app-top {
    gap: 20px;
    margin-bottom: 28px;
  }
  .app-top p {
    font-size: 12px;
  }
  .app-top .btn-small {
    font-size: 12px;
  }
  .app-welcome {
    padding: 26px 24px;
  }
  .app-stat-grid {
    gap: 10px;
  }
  .app-stat {
    padding: 16px 12px;
    border-radius: 15px;
  }
  .app-stat span {
    font-size: 10px;
    line-height: 1.5;
  }
  .app-tile {
    padding: 23px 20px;
  }
  .app-list-item {
    gap: 12px;
    padding: 20px 16px;
  }
  .app-list-item strong {
    font-size: 12px;
  }
  .app-list-item small {
    font-size: 10px;
  }
  .app-list-item > .text-link {
    font-size: 11px;
    gap: 5px;
    padding-inline: 7px;
  }
  .app-list-item .text-link svg {
    width: 16px;
    height: 16px;
  }
  .app-section-title {
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 30px 18px;
  }
  .app-section-title h2 {
    font-size: 19px;
  }
  .mentor-card .btn {
    font-size: 12px;
  }
  .info-strip {
    padding: 17px;
    font-size: 12px;
  }
  .role-options {
    gap: 10px;
  }
  .role-option {
    padding: 13px 11px;
    line-height: 1.5;
  }
  .form-panel {
    padding: 27px 22px;
    border-radius: 20px;
  }
  .form-actions {
    gap: 14px;
  }
  .field {
    margin-bottom: 22px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
  .role-switch {
    max-width: 230px !important;
    font-size: 16px !important;
  }
  .configuration-row input,
  .configuration-row select {
    font-size: 16px !important;
  }
  dialog {
    border-radius: 24px;
    padding: 38px 24px 28px;
    max-height: calc(100dvh - 32px);
  }
  dialog h2 {
    font-size: 26px;
    padding-right: 32px;
  }
  .dialog-close {
    top: 8px;
    right: 8px;
  }
  .preview-banner button {
    min-height: 44px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
  .footer-grid .footer-column:last-child {
    grid-column: 1/-1;
  }
  .footer-column:last-child button {
    display: inline-flex;
    margin-right: 22px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer-bottom > span:first-child {
    flex: 1;
    min-width: 140px;
    font-size: 9px;
    line-height: 1.7;
  }
  .theme-selector {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn::before {
    display: none;
  }
  .btn:hover,
  .btn:active,
  .icon-button:active,
  .save-button:active,
  .pillar-card:hover,
  .opportunity-card:hover,
  .course-card:hover,
  .app-tile:hover,
  .mentor-card:hover,
  a.app-stat:hover,
  a.content-card:hover,
  a.pillar-card:active,
  a.app-tile:active,
  a.app-stat:active,
  a.content-card:active,
  .pillar-card:hover .pillar-img img,
  .course-card:hover .course-art .icon,
  .hero-note:hover,
  .btn:hover svg,
  .text-link:hover svg {
    transform: none !important;
  }
}

/* Keep generous touch targets without crowding the smallest phone header. */
@media (max-width: 370px) {
  .site-header .brand-copy {
    max-width: 112px;
    font-size: 8px;
    letter-spacing: 0;
    line-height: 1.4;
  }
  .site-header .brand-copy small {
    display: none;
  }
  .passport-orbit:after {
    inset: -22px;
  }
}
@media (max-width: 700px) {
  .form-actions {
    flex-wrap: wrap;
  }
}

.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 4px 20px;
  min-height: 48px;
}
.preview-banner button {
  margin-left: 0;
  min-height: 40px;
}
@media (max-width: 700px) {
  .preview-banner {
    gap: 10px;
    padding: 2px 14px;
  }
  .preview-banner button {
    min-height: 44px;
  }
}
@media (max-width: 370px) {
  .preview-banner > span {
    display: none;
  }
}

/* Supplied pillar photographs. Preserve all existing card geometry. */
.pillar-card.care .pillar-img img { object-position: 50% 0%; }
.pillar-card.outreach .pillar-img img { object-position: 50% 15%; }
.pillar-card.research .pillar-img img { object-position: 50% 0%; }
.pillar-card.education .pillar-img img { object-position: 50% 10%; }
@media (max-width: 700px) {
  .pillar-card.care .pillar-img img { object-position: 60% 0%; }
  .pillar-card.research .pillar-img img { object-position: 58% 0%; }
}

/* Keep the hero Passport arrow visible before pointer interaction. */
:root .hero-note .circle-arrow {
  flex-shrink: 0;
  background: var(--m1);
  border-color: color-mix(in srgb, var(--tx) 50%, var(--ln));
  color: var(--tx);
}
:root .hero-note .circle-arrow svg[data-icon="arrow"] {
  opacity: 1;
  transform: none;
}

/* Keep the summit wordmark and central stage together in the crop. */
.intro-image[src*="ghc-summit-auditorium"] { object-position: 55% 50%; }

/* Introduce the name before the ecosystem, with room for every language. */
.foundation-definition{display:flex;align-items:center;gap:14px;max-width:430px;color:var(--text);font-size:13px;line-height:1.6}
.foundation-definition strong{font-size:22px;letter-spacing:-.04em;color:var(--brand);flex-shrink:0}
.foundation-strip{gap:24px}
@media(max-width:1100px){.foundation-definition{max-width:350px}.foundation-strip .foundation-items{gap:18px}}
@media(max-width:700px){.foundation-strip{flex-direction:column;gap:18px}.foundation-definition{max-width:none;font-size:13px}.foundation-strip .foundation-items{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.foundation-items span{align-items:flex-start}.foundation-items .divider{display:none}}

/* Supplied GO-U hero photograph. Preserve its frame and natural proportions. */
.education-hero-photo{display:block;min-width:0}
.education-hero-photo .intro-image{display:block;object-position:50% 10%}
@media(max-width:1100px){.education-hero-photo .intro-image{height:auto;aspect-ratio:1619/971}}

/* Keep full photo proportions when the detail columns become narrow. */
@media(max-width:1100px){.intro-grid>.intro-image,.split>.intro-image{height:auto}}

/* Keep pillar names clear at every card width, including two-column phones. */
.pillar-card .pillar-label {
  min-width: 0;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.035em;
  white-space: normal;
  overflow-wrap: normal;
}
.pillar-card .pillar-label > .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* The four pillar cards: an opened "Read more" grows its own card alone (founder, 26 October). */
.pillar-grid { align-items: start; }

/* The doors from a pillar page to its product. */
.doors-section { padding-top: 0; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.door-card { display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-raised); color: var(--text); text-decoration: none; min-width: 0; box-shadow: 0 7px 24px #082e4706; transition: transform 240ms cubic-bezier(.2,.8,.2,1), box-shadow 240ms cubic-bezier(.2,.8,.2,1), border-color 180ms; }
.door-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 40px #082e471a; }
.door-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.door-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: Manrope, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }
.door-label .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--brand); }
.door-copy { font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 600px) { .door-card { padding: 18px 18px; } .door-label { font-size: 16px; } }

/* The demo workspace's figures wear the live workspace's colours (theme.css .portal-metrics): a
   tone per card, the tinted top, the corner disc. A visitor sees what a member sees (26 October). */
html .app-stat, html a.app-stat { --tone: #dc240c; position: relative; overflow: hidden; border-top: 4px solid var(--tone); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 11%, var(--surface-raised)), var(--surface-raised) 62%); }
html .app-stat:nth-child(4n+2), html a.app-stat:nth-child(4n+2) { --tone: #3d88f4; }
html .app-stat:nth-child(4n+3), html a.app-stat:nth-child(4n+3) { --tone: #9a59ef; }
html .app-stat:nth-child(4n+4), html a.app-stat:nth-child(4n+4) { --tone: #d69424; }
/* The demo's cards are card-morph, and morph.css gives every card-morph overflow:visible with the stronger
   selector (:root .card-morph): without this line the corner discs spill out of the cards (founder, 26 Oct). */
:root .app-stat, :root a.app-stat, :root .app-stat.card-morph { overflow: hidden; }   /* .card-morph: the DIV cards of the mentor and administrator demos tie with morph.css otherwise */
.app-stat::after { content: ""; position: absolute; inset-inline-end: -26px; inset-block-start: -26px; width: 92px; height: 92px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 16%, transparent); pointer-events: none; }
.app-stat > svg, .app-stat .icon { color: var(--tone); position: relative; z-index: 1; }
.app-stat strong { color: var(--tone); }
@media (max-width: 600px) { .app-stat::after { width: 70px; height: 70px; } }

/* The premium hover (founder, 26 October): a soft brand glow behind every card and a lit border, mouse devices only. */
:root{--c4-glow-ring:color-mix(in srgb,var(--brand,#dc240c) 38%,transparent);--c4-glow-near:color-mix(in srgb,var(--brand,#dc240c) 34%,transparent);--c4-glow-far:color-mix(in srgb,var(--brand,#dc240c) 24%,transparent);--c4-glow-border:color-mix(in srgb,var(--brand,#dc240c) 48%,var(--line,#d8e4e9))}
:root[data-theme="dark"]{--c4-glow-ring:color-mix(in srgb,var(--brand,#f5624f) 55%,transparent);--c4-glow-near:color-mix(in srgb,var(--brand,#f5624f) 45%,transparent);--c4-glow-far:color-mix(in srgb,var(--brand,#f5624f) 32%,transparent);--c4-glow-border:color-mix(in srgb,var(--brand,#f5624f) 60%,var(--line,#36505e))}
@media(hover:hover) and (pointer:fine){
  :root .card-morph:hover,:root .pillar-card:hover,:root .app-tile:hover,:root a.app-stat:hover,:root .app-stat:hover,:root .door-card:hover,:root .faq-list details:hover,:root .app-list-item:hover{border-color:var(--c4-glow-border)!important;box-shadow:0 0 0 1px var(--c4-glow-ring),0 16px 40px -14px var(--c4-glow-near),0 0 64px -10px var(--c4-glow-far)!important}
  :root .btn-morph:hover,:root .btn:hover{box-shadow:0 0 0 1px var(--c4-glow-ring),0 10px 24px -10px var(--c4-glow-near),0 0 32px -8px var(--c4-glow-far)!important}
}

/* The premium hover, end to end (founder, 26 October): the website's controls, fields, rows and links. */
@media(hover:hover) and (pointer:fine){
  :root .icon-button:hover,:root .language-trigger:hover,:root .c4ai-launcher:hover,:root .c4voice-btn:hover{border-color:var(--c4-glow-border)!important;box-shadow:0 0 0 1px var(--c4-glow-ring),0 8px 20px -8px var(--c4-glow-near),0 0 28px -6px var(--c4-glow-far)!important;transform:translateY(-1px)}
  :root .nav-links a:hover,:root .site-nav a:hover,:root .footer-column a:hover,:root .text-link:hover,:root .c4-book-page-link:hover{color:var(--brand,#dc240c);text-shadow:0 0 14px var(--c4-glow-far)}
  :root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,:root textarea:hover,:root select:hover{border-color:var(--c4-glow-border);box-shadow:0 0 0 1px var(--c4-glow-ring),0 0 24px -6px var(--c4-glow-far)}
  :root .app-shell tbody tr:hover,:root .table-wrap tbody tr:hover{background:color-mix(in srgb,var(--brand,#dc240c) 7%,var(--surface-raised,#fff));box-shadow:inset 3px 0 0 var(--brand,#dc240c)}
  :root .app-sidebar a:hover:not([aria-current]),:root .preview-banner a:hover{color:var(--brand,#dc240c);text-shadow:0 0 12px var(--c4-glow-far)}
  :root .faq-list summary:hover,:root .app-sidebar details>summary:hover{box-shadow:0 0 0 1px var(--c4-glow-ring) inset}
}

/* The ecosystem menu's button carries the same line as its neighbours: on hover and while the menu is open. */
.nav-drop > button{position:relative}
.nav-drop > button::after{content:"";position:absolute;left:0;right:0;bottom:3px;height:2px;border-radius:2px;background:var(--brand);transform:scaleX(0);transform-origin:left;transition:transform .25s var(--ease,ease)}
.nav-drop > button:hover::after,.nav-drop > button[aria-expanded="true"]::after{transform:scaleX(1)}
@media(max-width:980px){.nav-drop > button::after{display:none}}
@media(prefers-reduced-motion:reduce){.nav-drop > button::after{transition:none}}

/* ------------------------------------------------------------------------------------------
   Colour by meaning on the website (founder, 26 October, "yes rollout"): a pillar card glows in its
   own tone and carries a thin tone edge under its photo, its icon sits on a tinted disc, the
   availability badge is green when available, amber when a link is pending, education purple for
   GO-U; the menu's pillar icons sit on tinted discs. No new hue: the four pillar tones + two states.
   ------------------------------------------------------------------------------------------ */
:root .pillar-card{--c4-glow-ring:color-mix(in srgb,var(--pillar) 40%,transparent);--c4-glow-near:color-mix(in srgb,var(--pillar) 34%,transparent);--c4-glow-far:color-mix(in srgb,var(--pillar) 24%,transparent);--c4-glow-border:color-mix(in srgb,var(--pillar) 55%,var(--line))}
:root .pillar-card .pillar-card-content{border-top:3px solid var(--pillar)}
:root .pillar-card .pillar-label>svg.icon{box-sizing:border-box;flex:0 0 30px;width:30px;height:30px;padding:6px;stroke-width:1.75;border-radius:50%;background:color-mix(in srgb,var(--pillar) 14%,transparent)}
:root .pillar-availability{color:#fff;font-weight:700;letter-spacing:.1em;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 1px 2px rgb(0 0 0 / .25)}
:root .pillar-availability.is-available{background:#1f7a4d}
:root .pillar-availability.is-pending{background:#9a6a12}
:root .pillar-availability.is-explore{background:var(--education)}
:root .dropdown a>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,currentColor 14%,transparent)}
:root .dropdown a>span svg{width:15px;height:15px}

/* The FAQ (founder, 26 October: "that double box is not good"): the glow belongs to the question's pill, the
   summary, not to the details box around it, which only owns the hairline underneath. */
@media(hover:hover) and (pointer:fine){
  :root .faq-list details:hover{border-color:var(--line)!important;box-shadow:none!important;transform:none!important}
  :root .faq-list details:hover>summary,:root .faq-list summary:hover{border-color:var(--c4-glow-border)!important;box-shadow:0 0 0 1px var(--c4-glow-ring),0 10px 24px -10px var(--c4-glow-near),0 0 34px -8px var(--c4-glow-far)!important}
}

/* Closes and sign-outs are filled red (founder, 28 October 2026): dark red, white ink, the brand's vermilion stays for the leading act. */
:root .btn-danger,:root .btn.btn-danger{background:#931808;border-color:#931808;color:#fff}
:root .btn-danger:hover,:root .btn.btn-danger:hover{background:#b81c08;border-color:#b81c08;color:#fff}
:root[data-theme="dark"] .btn-danger,:root[data-theme="dark"] .btn.btn-danger{background:#b81c08;border-color:#b81c08;color:#fff}
