/* Hallmark - genre: modern-minimal - macrostructure: shared public shell - design-system: DESIGN.md - designed-as-app
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */
@import url("../tokens.css");

html,
body {
  overflow-x: clip !important;
}

body {
  color: var(--ae-text);
  background: var(--ae-page);
  font-family: var(--ae-font);
}

.ae-shell,
.ae-shell * {
  box-sizing: border-box;
}

.ae-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--ae-text);
  background: var(--ae-page);
  font-family: var(--ae-font);
}

.ae-shell__topbar {
  color: var(--ae-on-navy-muted);
  background: var(--ae-navy-deep);
  font-size: var(--ae-text-xs);
  letter-spacing: 0.02em;
}

.ae-shell__topbar-inner,
.ae-shell__nav,
.ae-shell__footer-inner {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}

.ae-shell__topbar-inner {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  gap: var(--ae-space-2);
  white-space: nowrap;
}

.ae-shell__topbar-label {
  color: var(--ae-on-navy-muted);
  opacity: 0.72;
}

.ae-shell__topbar a {
  color: var(--ae-on-navy-muted);
  text-decoration-thickness: 0.08rem;
  text-underline-offset: 0.2rem;
  transition: color var(--ae-dur-micro) var(--ae-ease-out);
}

.ae-shell__topbar a:hover {
  color: var(--ae-on-navy);
}

.ae-shell__topbar-current {
  color: var(--ae-teal);
  font-weight: 700;
}

.ae-shell__topbar-separator {
  opacity: 0.35;
}

.ae-shell__nav-wrap {
  position: relative;
  z-index: 1001;
  border-bottom: var(--ae-rule-width) solid var(--ae-border);
  background: color-mix(in srgb, var(--ae-page) 94%, transparent);
  backdrop-filter: blur(1rem);
}

.ae-shell__nav {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--ae-space-6);
}

.ae-shell__brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--ae-space-2);
  color: var(--ae-heading);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.ae-shell__brand img {
  width: 1.85rem;
  height: 1.85rem;
}

.ae-shell__brand-accent {
  color: var(--ae-accent-text);
}

.ae-shell__menu {
  display: flex;
  align-items: center;
  gap: clamp(var(--ae-space-4), 2vw, var(--ae-space-6));
  margin: 0;
  padding: 0;
  list-style: none;
}

.ae-shell__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border-bottom: 0.15rem solid transparent;
  color: var(--ae-text);
  font-size: var(--ae-text-sm);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ae-dur-micro) var(--ae-ease-out), border-color var(--ae-dur-micro) var(--ae-ease-out), transform var(--ae-dur-micro) var(--ae-ease-out);
}

.ae-shell__link:hover,
.ae-shell__link[aria-current="page"] {
  border-bottom-color: var(--ae-teal);
  color: var(--ae-heading);
}

.ae-shell__link:active {
  transform: translateY(0.06rem);
}

.ae-shell__theme,
.ae-shell__menu-toggle {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: var(--ae-rule-width) solid var(--ae-border);
  border-radius: var(--ae-radius-md);
  padding: var(--ae-space-2) var(--ae-space-3);
  color: var(--ae-heading);
  background: var(--ae-raised);
  font: inherit;
  font-size: var(--ae-text-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ae-dur-micro) var(--ae-ease-out), border-color var(--ae-dur-micro) var(--ae-ease-out), transform var(--ae-dur-micro) var(--ae-ease-out);
}

.ae-shell__theme:hover,
.ae-shell__menu-toggle:hover {
  border-color: var(--ae-teal-dark);
  background: var(--ae-accent-soft);
}

.ae-shell__theme:active,
.ae-shell__menu-toggle:active {
  transform: translateY(0.06rem);
}

.ae-shell__theme:disabled,
.ae-shell__menu-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ae-shell__menu-toggle {
  display: none;
}

.ae-shell__menu-bars,
.ae-shell__menu-bars::before,
.ae-shell__menu-bars::after {
  display: block;
  width: 1.25rem;
  height: 0.12rem;
  border-radius: var(--ae-radius-pill);
  background: currentColor;
  content: "";
}

.ae-shell__menu-bars {
  position: relative;
}

.ae-shell__menu-bars::before {
  position: absolute;
  top: -0.38rem;
}

.ae-shell__menu-bars::after {
  position: absolute;
  top: 0.38rem;
}

.ae-shell__footer {
  border-top: var(--ae-rule-width) solid var(--ae-border);
  color: var(--ae-on-navy-muted);
  background: var(--ae-navy-deep);
}

.ae-shell__footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--ae-space-6) var(--ae-space-10);
  align-items: center;
  padding-block: var(--ae-space-8);
}

.ae-shell__footer-marks {
  display: flex;
  align-items: center;
  gap: var(--ae-space-4);
}

.ae-shell__footer-marks img:first-child { width: auto; height: 2rem; }
.ae-shell__footer-marks img:last-child { width: auto; height: 2.75rem; }

.ae-shell__footer-copy {
  margin: 0;
  font-size: var(--ae-text-sm);
}

.ae-shell__footer-copy strong {
  color: var(--ae-on-navy);
}

.ae-shell__footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--ae-space-3) var(--ae-space-5);
}

.ae-shell__footer a {
  color: var(--ae-on-navy-muted);
  font-size: var(--ae-text-sm);
  font-weight: 600;
  text-decoration-color: var(--ae-teal);
  text-underline-offset: 0.25rem;
  white-space: nowrap;
}

.ae-shell__footer a:hover {
  color: var(--ae-on-navy);
}

.ae-shell__family {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
  padding-block: var(--ae-space-6) var(--ae-space-8);
  border-top: var(--ae-rule-width) solid rgba(255, 255, 255, 0.14);
}

.ae-shell__family-title {
  margin: 0 0 var(--ae-space-4);
  color: var(--ae-teal);
  font-size: var(--ae-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-shell__family-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ae-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ae-shell__family-list li {
  display: flex;
  flex-direction: column;
  gap: var(--ae-space-2);
  padding: var(--ae-space-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ae-radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.ae-shell__family-list a { white-space: normal; color: var(--ae-on-navy); }
.ae-shell__family-list a:hover { color: var(--ae-teal); }
.ae-shell__family-list span { font-size: var(--ae-text-sm); line-height: 1.5; }

@media (max-width: 67.5rem) {
  .ae-shell__family-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .ae-shell__family-list { grid-template-columns: 1fr; }
}

.ae-shell :focus-visible {
  outline: 0.2rem solid var(--ae-focus);
  outline-offset: 0.2rem;
}

.ae-skip-link {
  position: fixed;
  top: var(--ae-space-3);
  left: var(--ae-space-3);
  z-index: 2000;
  transform: translateY(-180%);
  border-radius: var(--ae-radius-md);
  padding: var(--ae-space-3) var(--ae-space-4);
  color: var(--ae-accent-ink);
  background: var(--ae-navy);
  font-weight: 700;
}

.skip-link { z-index: 2000 !important; }

.ae-skip-link:focus { transform: translateY(0); }

.ae-tools-showcase {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  color: var(--ae-text);
  background: var(--ae-surface);
}

.ae-tools-showcase__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--ae-space-8);
  align-items: end;
  margin-bottom: var(--ae-space-8);
}

.ae-tools-showcase__eyebrow,
.ae-tools-showcase__status {
  color: var(--ae-accent-text);
  font-size: var(--ae-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-tools-showcase h2,
.ae-tools-showcase h3 { color: var(--ae-heading); }

.ae-tools-showcase__intro p:last-child { max-width: 42rem; margin: 0; }

.ae-tools-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ae-space-4);
}

.ae-tools-showcase__group + .ae-tools-showcase__group { margin-top: var(--ae-space-8); }

.ae-tools-showcase__group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--ae-space-6);
  margin-bottom: var(--ae-space-4);
  padding-bottom: var(--ae-space-3);
  border-bottom: var(--ae-rule-width) solid var(--ae-border);
}

.ae-tools-showcase__group-heading h3 { margin: 0.2rem 0 0; font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.ae-tools-showcase__group-heading p { max-width: 28rem; margin: 0; }

.ae-tools-showcase__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: var(--ae-rule-width) solid var(--ae-border);
  border-radius: var(--ae-radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--ae-raised);
}

.ae-tools-showcase__card--live {
  border-top: 0.3rem solid var(--ae-teal);
  box-shadow: var(--ae-shadow-sm);
}

.ae-tools-showcase__group--upcoming {
  padding-top: var(--ae-space-2);
}

.ae-tools-showcase__card--upcoming {
  padding-block: var(--ae-space-5);
  background: color-mix(in srgb, var(--ae-raised) 70%, var(--ae-surface));
  color: var(--ae-subtle);
}

.ae-tools-showcase__card--upcoming h3 { color: var(--ae-text); }

.ae-tools-showcase__card p { margin-top: 0; }
.ae-tools-showcase__card h3 { margin: 0.35rem 0 0.75rem; }
.ae-tools-showcase__card a { margin-top: auto; color: var(--ae-accent-text); font-weight: 700; }
.ae-tools-showcase__actions { display: flex; flex-wrap: wrap; gap: var(--ae-space-3); margin-top: var(--ae-space-8); }

@media (max-width: 48rem) {
  .ae-tools-showcase__intro,
  .ae-tools-showcase__grid { grid-template-columns: minmax(0, 1fr); }
  .ae-tools-showcase__group-heading { display: block; }
  .ae-tools-showcase__group-heading p { margin-top: var(--ae-space-2); }
}

@media (max-width: 67.5rem) {
  .ae-shell__menu-toggle {
    display: inline-flex;
  }

  .ae-shell__menu {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    display: none;
    align-items: stretch;
    gap: 0;
    border: var(--ae-rule-width) solid var(--ae-border);
    padding: var(--ae-space-3);
    background: var(--ae-raised);
    box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--ae-navy) 18%, transparent);
  }

  .ae-shell__menu.is-open {
    display: grid;
  }

  .ae-shell__link {
    padding-inline: var(--ae-space-3);
  }

  .ae-shell__theme {
    width: 100%;
    justify-content: flex-start;
    margin-top: var(--ae-space-2);
  }
}

@media (max-width: 40rem) {
  .ae-shell__topbar {
    display: none;
  }

  .ae-shell__topbar-inner,
  .ae-shell__nav,
  .ae-shell__footer-inner {
    width: min(100% - 2rem, 75rem);
  }

  .ae-shell__nav {
    min-height: 4.25rem;
  }

  .ae-shell__menu {
    right: 1rem;
    left: 1rem;
  }

  .ae-shell__footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .ae-shell__footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-shell *,
  .ae-shell *::before,
  .ae-shell *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
