:root {
  --mantle: #1f3764;
  --mantle-soft: #2a4a7a;
  --paper: #ffffff;
  --cream: #ffffff;
  --ink: #3a3a3a;
  --stone: #6b6458;
  --line: #ddd4c6;
  --olivine: #5c7c5a;
  --copper: #c4843c;
  --magma: #a24c32;
  --wave: #3d7d82;
  --white: #fffdf8;
  --max: 1980px;
  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Roboto Slab", Georgia, serif;
  --tile-news: #ffe080;
  --tile-events: #a2b9e2;
  --tile-people: #7e98e9;
  --tile-projects: #ff9980;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: var(--wave); }
a:hover { color: var(--magma); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; z-index: 20; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  background: var(--mantle);
  color: var(--paper);
  position: relative;
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.1rem clamp(0.75rem, 1.5vw, 1.75rem) 0.55rem;
}

.observatory {
  margin: 0;
  font-size: 1.31rem;
  font-weight: 500;
  color: #f4efe6;
}

.site-title {
  margin: 0.2rem 0 0;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.28rem, 2.47vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
}
.site-title a { color: var(--paper); text-decoration: none; }

.discipline-kicker {
  margin: 0;
  font-size: 0.82rem;
  color: #9eb8b8;
  letter-spacing: 0.04em;
}

.brand-logo {
  display: block;
  margin: 0 0 1rem;
}
.brand-logo img {
  width: min(100%, 280px);
  display: block;
}

.side-rail {
  background: transparent;
  border: 0;
  padding: 0;
  height: fit-content;
  position: static;
}
.side-rail .brand-logo {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.4rem;
}

.nav-toggle {
  display: none;
  margin: 0.55rem 1.2rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 239, 230, 0.35);
  padding: 0.4rem 0.85rem;
  font: inherit;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.35rem 1.2rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.4rem;
  background: var(--mantle);
  border-bottom: 1px solid var(--mantle-soft);
}
.primary-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--copper);
}

.settings-menu {
  position: relative;
  z-index: 40;
}
.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.2rem 0;
  cursor: pointer;
}
.settings-toggle::-webkit-details-marker {
  display: none;
}
.settings-toggle::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.settings-toggle:hover,
.settings-menu[open] .settings-toggle {
  color: #fff;
  border-bottom-color: var(--copper);
}
.settings-menu[open] .settings-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}
.settings-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(18, 35, 46, 0.18);
  z-index: 40;
  padding: 0.35rem 0;
}
.settings-panel a,
.settings-panel button {
  display: block;
  width: 100%;
  color: var(--mantle);
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 500;
  border: 0;
  border-bottom: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.settings-panel form { margin: 0; }
.settings-panel a:hover,
.settings-panel button:hover,
.primary-nav .settings-panel a:hover,
.primary-nav .settings-panel a.is-active {
  color: var(--magma);
  background: #f4efe6;
  border-bottom: 0;
}

.earth-layers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 5px;
}
.layer-seismic { background: var(--wave); }
.layer-mineral { background: var(--olivine); }
.layer-flow { background: var(--magma); }

.seis-trace {
  display: block;
  width: 100%;
  height: 18px;
  color: rgba(196, 132, 60, 0.55);
  background: var(--mantle);
}

.page-shell {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(300px, 24vw, 460px) minmax(0, 1fr);
  gap: 1.6rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.4rem 3rem;
  width: 100%;
}

/* Match the live home/about page: use the full desktop viewport. */
body.home .page-shell {
  max-width: none;
  padding-inline: clamp(0.75rem, 1.5vw, 1.75rem);
}
body.home .side-rail {
  /* Align the tile group with Overview, below the Columbia lockup. */
  padding-top: clamp(5rem, 8vw, 7rem);
}

.side-label {
  margin: 0 0.4rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.side-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.side-nav a:hover,
.side-nav a.is-active {
  border-left-color: var(--copper);
  background: rgba(196, 132, 60, 0.08);
  color: var(--mantle);
}

.home-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
a.home-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 120px;
  padding: 0.5rem;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.2vw, 2.8rem);
  overflow-wrap: anywhere;
  color: #44546a;
  line-height: 1.2;
  background: #eee;
}
a.home-tile:nth-child(1) { background: #ffe080; }
a.home-tile:nth-child(2) { background: #a2b9e2; }
a.home-tile:nth-child(3) { background: #7e98e9; }
a.home-tile:nth-child(4) { background: #ff9980; }
a.home-tile:hover,
a.home-tile.is-active {
  color: #1f3764;
  filter: brightness(0.97);
  text-decoration: none;
}
.side-careers {
  display: block;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 600;
  color: #1f3764;
  text-decoration: none;
  margin-top: 0.35rem;
}
.side-careers:hover,
.side-careers.is-active {
  color: #0d2144;
}

.page-main {
  min-width: 0;
  font-size: 0.9rem;
}
.page-main h1,
.home-hero h1,
.home-overview h2 {
  font-family: var(--serif);
  color: var(--mantle);
  font-weight: 640;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}
.page-main h1 {
  font-size: clamp(1.55rem, 1.98vw, 2.05rem);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.lede { color: var(--stone); margin-top: 0; font-size: 1.02rem; }

.rich-body { font-size: 1.06rem; }
.rich-body p { margin: 0 0 0.95rem; }
.rich-body a { font-weight: 500; }
.rich-body h2, .rich-body h3, .rich-body h4, .rich-body h5 {
  font-family: var(--serif);
  color: var(--mantle);
  margin: 1.2rem 0 0.5rem;
}
.rich-body .job-apply a {
  display: inline-block;
  margin: 0.35rem 0 0.6rem;
  padding: 0.45rem 0.95rem;
  background: var(--copper);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}
.rich-body img {
  margin: 0.6rem 0;
  max-width: min(100%, 560px);
  height: auto;
  display: block;
}

.hpc-resources h2 {
  font-size: clamp(1.05rem, 1.65vw, 1.58rem);
  line-height: 1.3;
}
.hpc-resource-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
}
.rich-body .hpc-resource-logos img {
  width: auto;
  max-width: min(100%, 360px);
  max-height: 150px;
  margin: 0;
  object-fit: contain;
}
.hpc-resource-logos a {
  display: block;
}
.rich-body ul, .rich-body ol { padding-left: 1.2rem; }

.collection-page {
  width: min(85%, 1000px);
}

.acc-item {
  border: 1px solid var(--line);
  margin: 0.45rem 0;
  background: var(--cream);
}
.acc-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 1rem;
  font-weight: 500;
  background: #ebe4d6;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.96rem;
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item > summary::after { content: "+"; font-weight: 600; color: var(--stone); }
.acc-item[open] > summary {
  background: var(--mantle);
  color: var(--paper);
}
.acc-item[open] > summary::after { content: "–"; color: var(--copper); }
.acc-collection[open] > summary { border-left: 4px solid var(--wave); }
.acc-depth-0[open] > summary { border-left: 4px solid var(--olivine); }
.acc-depth-1[open] > summary { border-left: 4px solid var(--copper); }
.acc-depth-2[open] > summary { border-left: 4px solid var(--magma); }
.acc-body {
  padding: 1rem 1.05rem 1.1rem;
  background: var(--white);
}
.rich-body .event-banner {
  position: relative;
  margin: -1rem -1.05rem 1.15rem;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}
.rich-body .event-banner img {
  display: block;
  width: 100%;
  max-width: none;
  height: 220px;
  margin: 0;
  object-fit: cover;
}
.event-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1.5rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
}
.event-banner-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.event-banner-solid {
  min-height: 220px;
  background: #1f3764;
}
.event-banner-solid .event-banner-copy {
  background: transparent;
  text-shadow: none;
}
.rich-body .event-banner h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
}
.rich-body h2.event-date,
.rich-body h2.event-section {
  color: #1f3764;
  font-family: var(--font);
  font-weight: 700;
  margin: 0.85rem 0 0.45rem;
}
.rich-body ol a {
  color: #1f3764;
}
.featured { display: block; margin: 0 auto 1rem; max-width: 720px; }
.attachments { padding-left: 1.1rem; }
.back-top { text-align: right; }

.portal-hero {
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  background: var(--white);
}
.portal-hero header {
  background: var(--mantle);
  color: var(--paper);
  text-align: center;
  padding: 1.15rem 1rem 1rem;
  border-bottom: 4px solid var(--copper);
}
.portal-hero .kicker {
  margin: 0;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--copper);
}
.portal-hero h2 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
}
.portal-hero-body { padding: 1rem 1.2rem 1.3rem; }
.signed-in { font-size: 0.95rem; color: var(--mantle); }
.signed-in a { color: var(--mantle); }

.resource-list { list-style: none; padding: 0; }
.resource-list li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.resource-list a { font-weight: 500; text-decoration: none; color: var(--mantle); }
.resource-list a:hover { color: var(--magma); }
.resource-list span { color: var(--stone); margin-left: 0.4rem; }

.contact-block { margin-bottom: 1.6rem; }
.contact-block h2 {
  font-family: var(--serif);
  color: var(--mantle);
  font-size: 1.25rem;
}

.people-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  align-items: center;
}
.people-search input,
.people-search select,
.auth-card input,
.auth-card select {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  min-width: 0;
}
.people-search input { flex: 1; min-width: 180px; }
.people-search button,
.auth-card button {
  background: var(--mantle);
  color: var(--paper);
  border: 0;
  padding: 0.5rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.people-search button:hover,
.auth-card button:hover { background: var(--magma); }

.person-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) 170px minmax(0, 2fr);
  gap: 1.8rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.person-meta h3 { margin: 0; font-size: 1.07rem; font-family: var(--serif); font-weight: 640; }
.person-meta a { text-decoration: none; color: var(--mantle); }
.role { margin: 0.2rem 0 0; color: var(--stone); font-size: 0.86rem; }
.person-bio {
  margin: 0;
  color: #3a3f3c;
  font-size: 0.99rem;
  line-height: 1.55;
}
.person-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--olivine);
  outline: 1px solid var(--copper);
  outline-offset: 3px;
  justify-self: center;
  background: #e7e1d4;
  display: grid;
  place-items: center;
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.initials {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--mantle);
  font-weight: 640;
}
.people-group > h2 {
  font-family: var(--serif);
  color: var(--mantle);
  margin: 2rem 0 0.4rem;
}
.person-detail {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.person-photo.large { width: 180px; height: 180px; }
.person-links { padding-left: 1.1rem; }
.read-more {
  font-weight: 600;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

.person-profile-page {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.6rem 3.5rem;
  width: 100%;
}
.person-profile h1 {
  font-family: var(--serif);
  color: #1e6aa7;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 640;
  margin: 0;
  letter-spacing: -0.02em;
}
.person-profile .role {
  margin: 0.5rem 0 0;
  color: #8b8680;
  font-size: 1.02rem;
}
.person-profile-photo {
  width: 220px;
  margin: 1.35rem 0 2rem;
}
.person-profile-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.person-profile-photo .initials {
  display: grid;
  place-items: center;
  width: 220px;
  height: 240px;
  background: #e7e1d4;
  font-size: 2rem;
}
.person-profile-body {
  max-width: 46rem;
  color: #3c403d;
  line-height: 1.75;
  font-size: 1.02rem;
}
.person-profile-body p { margin: 0 0 1rem; }
.person-contact { margin-top: 1.35rem; }

.badge {
  display: inline-block;
  background: #ebe4d6;
  padding: 0.1rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-layout {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.4rem 3rem;
  width: 100%;
}

.home-intro {
  overflow: hidden;
  margin-bottom: 1.4rem;
}
body.home .home-intro .rich-body {
  font-size: clamp(1.25rem, 1.55vw, 2.2rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.home .home-intro .rich-body p {
  margin-bottom: 0;
}
body.home .home-intro .rich-body p + p {
  margin-top: 4rem;
}
.home-lockup {
  display: block;
  width: min(450px, 42%);
  height: auto;
  margin: 0 0 1.5rem auto;
}
.home-overview-title {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.4rem, 3.5vw, 3.1rem);
  font-weight: 700;
  color: #1f3764;
  margin: 0 0 0.85rem;
  border: 0;
  padding: 0;
}
body.home .page-main h1 {
  border: 0;
  padding: 0;
}

.home-hero {
  margin-bottom: 1.6rem;
}
.home-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}
.home-hero-top .brand-logo {
  margin: 0;
}
.home-hero-top .brand-logo img {
  width: 148px;
}
.home-hero-aside {
  flex: 0 0 auto;
  margin-right: 3.5rem;
}
.home-hero-aside img {
  display: block;
  width: 280px;
  height: auto;
}
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magma);
}
.home-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  border: 0;
  padding: 0;
}

.field-triad {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.field-card {
  background: var(--cream);
  padding: 1.05rem 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-top-width: 4px;
}
.field-card p { margin: 0; color: var(--stone); font-size: 0.95rem; }
.field-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--mantle) !important;
  margin-bottom: 0.4rem !important;
}
.field-mineral { border-top-color: var(--olivine); }
.field-flow { border-top-color: var(--magma); }
.field-seismic { border-top-color: var(--wave); }

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
  gap: 1.6rem;
  align-items: start;
}
.home-overview h2 {
  font-family: var(--serif);
  color: var(--mantle);
  font-weight: 640;
  margin: 0 0 0.8rem;
}
.discipline-figure {
  margin: 0.4rem auto 0;
  max-width: 560px;
}
.discipline-figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.discipline-figure figcaption {
  font-size: 0.78rem;
  color: var(--stone);
  margin-top: 0.55rem;
  line-height: 1.45;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0.4rem;
}
.home-links a {
  text-decoration: none;
  color: var(--paper);
  background: var(--mantle);
  border: 0;
  padding: 1.05rem 0.75rem;
  font-weight: 600;
  font-size: 1.12rem;
  text-align: center;
  letter-spacing: 0.02em;
}
.home-links a:hover {
  background: var(--magma);
  color: var(--paper);
  border-color: transparent;
}

.partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 2rem 7.2rem;
  justify-items: center;
  align-items: center;
  max-width: 1100px;
  width: min(100%, 1100px);
  margin: 3rem auto 0;
  padding-top: 0.4rem;
}
.partners a {
  display: grid;
  place-items: center;
  width: 100%;
}
.partners img {
  width: min(100%, 384px);
  height: 180px;
  object-fit: contain;
}
.partners a:nth-child(4) img {
  width: min(100%, 264px);
  height: 228px;
}

.site-footer {
  background: var(--mantle);
  color: var(--paper);
  margin-top: auto;
  padding: 1rem 1rem 1.1rem;
  text-align: center;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.3rem;
}
.site-footer a { color: var(--paper); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.site-footer p { margin: 0.5rem 0 0; font-size: 0.8rem; color: #c9b48a; }

.auth-card {
  max-width: 420px;
  margin: 2.4rem auto 3rem;
  background: var(--cream);
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(18, 35, 46, 0.14);
}
.auth-card .brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-card .brand-logo img {
  width: min(100%, 250px);
  max-height: 110px;
  object-fit: contain;
}
.auth-card h1 { margin-top: 0; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card input {
  width: 100%;
  box-sizing: border-box;
}
.auth-field {
  display: grid;
  gap: 0.4rem;
}
.auth-field label { font-weight: 700; }
.auth-help {
  color: var(--stone);
  font-size: 0.86rem;
  line-height: 1.4;
}
.auth-help ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}
.auth-card .errorlist {
  margin: 0;
  padding-left: 1.2rem;
  color: #9f2f22;
}
.auth-error-summary {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  color: #76251c;
  background: #fbe9e6;
  border: 1px solid #dc9a91;
  border-left: 4px solid #b84334;
  border-radius: 5px;
}
.auth-error-summary ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}
.auth-card .button-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--paper);
  background: var(--mantle);
  border-radius: 4px;
  text-decoration: none;
}

.empty-note { color: var(--stone); }
.messages { list-style: none; padding: 0; }
.messages li { padding: 0.5rem 0.7rem; background: #e7eee4; margin-bottom: 0.6rem; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }
  .collection-page { width: 100%; }
  .side-rail {
    position: static;
    width: min(360px, 100%);
    max-width: 360px;
    margin: 0 auto 1.4rem;
  }
  body.home .side-rail { padding-top: 0; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .home-lockup { width: min(380px, 48%); }
  .home-hero-top { flex-wrap: wrap; }
  .home-overview,
  .field-triad { grid-template-columns: 1fr; }
  .home-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .person-row {
    grid-template-columns: 96px 1fr;
    grid-template-areas: "photo meta" "bio bio";
  }
  .person-photo { width: 96px; height: 96px; grid-area: photo; }
  .person-meta { grid-area: meta; }
  .person-bio { grid-area: bio; }
  .person-detail { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; flex-direction: column; padding-top: 0; align-items: stretch; }
  .primary-nav.is-open { display: flex; }
  .settings-toggle { align-self: flex-start; }
  .settings-panel { left: 0; right: auto; }
  .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-lockup {
    float: none;
    width: min(360px, 100%);
    margin: 0 auto 1.25rem;
    display: block;
  }
  .partners { grid-template-columns: 1fr; }
}

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