/* Fonts sourced from the West Wichita Rotary design system (brand foundations
   adopted during the static-prototype-preview feature; see constitution principle VII) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --rotary-gold: #f7a81b;
  --royal-blue: #17458f;
  --azure: #0067c8;
  --sky-blue: #00a2e0;
  --cranberry: #d41367;
  --turquoise: #00adbb;
  --grass: #009739;
  --charcoal: #54565a;
  --pewter: #898a8d;
  --smoke: #b1b1b1;
  --silver: #d0cfcd;
  --mist: #f4f6f9;
  --white: #ffffff;
  --border: #e2e6ec;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --shadow-card: 0 1px 3px rgba(23, 69, 143, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: var(--body);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-home {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.brand-mark {
  display: grid;
  gap: 2px;
}

.brand-title,
.eyebrow,
.section-title,
.stat-number,
.card-title,
.timeline-year,
.form-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-title {
  color: var(--royal-blue);
  font-weight: 800;
  line-height: 1;
}

.brand-subtitle {
  color: var(--pewter);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-button,
.lang-button,
.button,
.filter-button,
.child-nav-button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--charcoal);
  font-weight: 800;
}

.nav-button {
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-button.active {
  background: var(--azure);
  color: var(--white);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-button {
  min-width: 42px;
  padding: 6px 10px;
  font-size: 12px;
}

.lang-button.active {
  color: var(--white);
  background: var(--azure);
}

.button {
  padding: 11px 16px;
  color: var(--white);
  background: var(--azure);
}

.button.gold {
  background: var(--rotary-gold);
  color: #2f2f2f;
}

.button.outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.button.ghost {
  color: var(--azure);
  background: var(--mist);
}

.button:focus-visible,
.nav-button:focus-visible,
.filter-button:focus-visible,
.child-nav-button:focus-visible,
.lang-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(247, 168, 27, 0.8);
  outline-offset: 2px;
}

.hero {
  background: var(--azure);
  color: var(--white);
}

.hero-inner,
.section,
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}

.hero-inner {
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rotary-gold);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 620px;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  margin: 0 0 28px;
  color: #e6f0fa;
  font-size: 18px;
  line-height: 1.62;
}

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

.hero-panel {
  padding: 24px;
  color: var(--charcoal);
  background: var(--white);
  border-radius: 8px;
  border-top: 6px solid var(--rotary-gold);
  box-shadow: var(--shadow-card);
}

.hero-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.mock-banner {
  background: #fff8e8;
  border-bottom: 1px solid #f3d99c;
}

.mock-banner .section {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #755000;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--rotary-gold);
  flex: none;
}

.section-title {
  margin: 0 0 10px;
  color: var(--royal-blue);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.section-lede {
  max-width: 760px;
  margin: 0 0 28px;
  line-height: 1.65;
}

.stats-grid,
.card-grid,
.resource-grid {
  display: grid;
  gap: 20px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.stat-card,
.card,
.profile-card,
.timeline-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.stat-card {
  padding: 20px;
  border-top: 6px solid var(--rotary-gold);
}

.dashboard-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.stat-number {
  color: var(--azure);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--pewter);
}

.stat-asof {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--smoke);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.profile-card {
  padding: 22px;
  border-top: 6px solid var(--rotary-gold);
}

.card.azure,
.profile-card.azure {
  border-top-color: var(--azure);
}

.card.royal,
.profile-card.royal {
  border-top-color: var(--royal-blue);
}

.card.turquoise,
.profile-card.turquoise {
  border-top-color: var(--turquoise);
}

.card.cranberry,
.profile-card.cranberry {
  border-top-color: var(--cranberry);
}

.card-title {
  margin: 0 0 10px;
  color: var(--royal-blue);
  font-size: 20px;
  font-weight: 800;
}

.card p,
.profile-card p,
.timeline-card p {
  margin: 0;
  line-height: 1.58;
}

.meta,
.privacy-note {
  color: var(--pewter);
  font-size: 13px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.directory-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 30px;
}

.directory-filter-panel .filters {
  margin-bottom: 0;
}

.filter-label {
  margin: 0 0 8px;
  color: var(--royal-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
}

.filter-button.active {
  color: var(--white);
  background: var(--azure);
  border-color: var(--azure);
}

.child-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 6px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--mist);
}

.child-nav-button {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.child-nav-button.active {
  color: var(--white);
  background: var(--azure);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-left: 6px solid var(--azure);
}

.timeline-year {
  color: var(--azure);
  font-size: 26px;
  font-weight: 800;
}

.directory-card {
  display: grid;
  gap: 14px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--azure);
  font-family: var(--display);
  font-weight: 800;
}

.avatar.large {
  width: 76px;
  height: 76px;
  font-size: 24px;
}

.profile-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-card-actions {
  margin-top: 18px;
}

.profile-link {
  display: inline-flex;
  text-decoration: none;
}

.directory-group {
  margin-top: 34px;
}

.directory-group-heading {
  margin-bottom: 18px;
}

.directory-group-heading h2 {
  margin: 0 0 6px;
  color: var(--royal-blue);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.directory-group-heading p {
  max-width: 720px;
  margin: 0;
  line-height: 1.55;
}

.function-badges,
.year-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.function-badges {
  margin: 14px 0;
}

.function-badge,
.year-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.function-badge {
  color: var(--white);
  background: var(--azure);
}

.function-badge.leader {
  background: var(--royal-blue);
}

.function-badge.host {
  color: #2f2f2f;
  background: var(--rotary-gold);
}

.function-badge.teacher {
  background: var(--turquoise);
}

.year-block {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.year-pill {
  color: var(--royal-blue);
  background: var(--mist);
  border: 1px solid var(--border);
}

.year-note {
  margin: 0;
  color: var(--pewter);
  font-size: 13px;
  font-weight: 700;
}

.profile-page {
  display: grid;
  gap: 22px;
}

.profile-page-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--rotary-gold);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.profile-page-header.azure {
  border-top-color: var(--azure);
}

.profile-page-header.royal {
  border-top-color: var(--royal-blue);
}

.profile-page-header.turquoise {
  border-top-color: var(--turquoise);
}

.profile-page-header.cranberry {
  border-top-color: var(--cranberry);
}

.profile-page-header .section-title,
.profile-page-header .section-lede {
  margin-bottom: 8px;
}

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

.profile-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.profile-panel h2 {
  margin: 0;
  color: var(--royal-blue);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-panel p {
  margin: 0;
  line-height: 1.56;
}

.profile-content-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: var(--mist);
}

.profile-content-item h3 {
  margin: 0;
  color: var(--royal-blue);
  font-size: 16px;
}

.empty-note {
  color: var(--pewter);
  font-weight: 700;
}

.picture-placeholder {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.picture-frame {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--royal-blue);
  background: var(--white);
  border: 1px dashed var(--silver);
  font-family: var(--display);
  font-weight: 800;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--mist);
}

.school-metrics {
  display: flex;
  gap: 18px;
  margin: 18px 0;
}

.school-metric strong {
  display: block;
  color: var(--azure);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.form-card {
  max-width: 780px;
  padding: 28px;
  border-top: 6px solid var(--rotary-gold);
}

.form-title {
  margin: 0 0 18px;
  color: var(--royal-blue);
  font-size: 18px;
  font-weight: 800;
}

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

.field {
  display: grid;
  gap: 7px;
  color: var(--royal-blue);
  font-size: 13px;
  font-weight: 800;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--charcoal);
  background: var(--white);
  font-weight: 500;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.status-panel {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #bfe3ca;
  background: #f0fbf3;
  color: #175d2a;
  font-weight: 700;
}

.status-panel.warning {
  border-color: #f3d99c;
  background: #fff8e8;
  color: #755000;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.audience-cards {
  margin-top: 8px;
}

.audience-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.audience-card.current {
  border-top-width: 8px;
}

.audience-cta {
  margin-top: 34px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
}

.faq-item {
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 6px solid var(--turquoise);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.faq-item .card-title {
  margin-bottom: 6px;
  font-size: 17px;
}

.section h2.card-title {
  margin-top: 40px;
}

.section h2.card-title:first-of-type {
  margin-top: 0;
}

.feedback-strip {
  background: var(--mist);
  border-top: 1px solid var(--border);
}

.feedback-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.feedback-inner h2 {
  margin: 0 0 6px;
  color: var(--royal-blue);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feedback-inner p {
  max-width: 700px;
  margin: 0;
  line-height: 1.55;
}

.feedback-link {
  flex: 0 0 auto;
  text-decoration: none;
}

.footer {
  color: var(--white);
  background: var(--royal-blue);
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer p {
  margin: 0;
  color: #dfe9f7;
}

.mock-banner.warning {
  background: #fff8e8;
  border-bottom: 1px solid #f3d99c;
}

.login-notice {
  margin-top: 14px;
  line-height: 1.5;
}

.account-page {
  display: grid;
  gap: 22px;
}

.pending-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--cranberry);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.claim-row {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist);
}

.claim-match {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist);
}

.claim-match-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-transform: none;
}

.memory-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

.memory-photo-thumb {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--mist);
}

.memory-photo-draft {
  position: relative;
  display: inline-block;
}

.memory-photo-draft .button {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1;
}

.account-danger {
  padding-top: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    overflow-x: visible;
  }

  .nav-button {
    flex: 1 1 0;
    min-height: 44px;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .child-nav-button {
    min-height: 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .directory-filter-panel {
    grid-template-columns: 1fr;
  }

  .profile-page-grid {
    grid-template-columns: 1fr;
  }

  .feedback-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    height: 36px;
  }

  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .child-nav {
    width: 100%;
    border-radius: 8px;
  }

  .child-nav-button {
    flex: 1 1 150px;
  }

  .profile-page-header {
    flex-direction: column;
    padding: 20px;
  }

  .picture-placeholder {
    grid-template-columns: 1fr;
  }

  .section,
  .hero-inner,
  .footer-inner,
  .feedback-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feedback-link {
    width: 100%;
    text-align: center;
  }
}
