:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #cbd5e1;
  --focus: #0f766e;
  --active: #facc15;
  --active-strong: #92400e;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
}

.site-footer {
  width: 100%;
  padding: 0 0.5rem 0.5rem;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.35;
}

.footer-disclosure {
  position: relative;
}

.footer-disclosure summary {
  list-style: none;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 118, 110, 0.28);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  user-select: none;
}

.footer-disclosure summary::-webkit-details-marker {
  display: none;
}

.footer-links {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 10;
  width: min(17rem, calc(100vw - 1rem));
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: #0f766e;
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #0f766e;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.board-shell {
  width: 100%;
  flex: 1;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.communication-board {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.8vw, 1rem);
}

.symbol-button {
  min-height: 8.75rem;
  padding: 0;
  border: 3px solid #111827;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.symbol-button img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.symbol-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.symbol-button:active,
.symbol-button.is-speaking {
  background: #fffbeb;
  border-color: var(--active-strong);
  box-shadow: 0 0 0 6px var(--active), var(--shadow);
  transform: translateY(1px);
}

.content-page {
  width: min(48rem, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.content-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 4vw, 2rem);
}

.content-card h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.content-card h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.content-card ul,
.content-card ol {
  padding-left: 1.4rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  background: #f8fafc;
  font-weight: 700;
}

.institution-link {
  display: block;
  width: min(22rem, 100%);
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.institution-link img {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

@media (min-width: 34rem) {
  .communication-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .symbol-button {
    min-height: 10.5rem;
  }
}

@media (min-width: 52rem) {
  .communication-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .symbol-button {
    min-height: 12.25rem;
  }
}

@media (min-width: 76rem) {
  .communication-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .symbol-button {
    min-height: 13.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .symbol-button {
    transition: none;
  }
}
