:root {
  --navy: #14233f;
  --blue: #2563eb;
  --ink: #1e293b;
  --muted: #64748b;
  --surface: #f5f7fb;
  --line: #e2e8f0;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 47px;
  margin-bottom: 24px;
}
h3 {
  font-size: 28px;
  letter-spacing: -0.65px;
}
p {
  color: var(--muted);
}
.container {
  width: min(1200px, 88%);
  margin: auto;
}
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #edf2f7;
}
.nav-wrap {
  height: 93px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
  letter-spacing: 1px;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.brand img {
  width: 53px;
  height: 59px;
  object-fit: contain;
}
.brand small {
  display: block;
  letter-spacing: 3.7px;
  font-size: 12px;
  margin-top: 7px;
  font-weight: 500;
}
nav {
  display: flex;
  gap: 29px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
nav > a:not(.button):hover,
nav > a.active {
  color: var(--blue);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
  line-height: 1.7;
}
.button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.button span {
  font-size: 23px;
  line-height: 1;
}
.nav-cta {
  margin-left: 8px;
  padding: 12px 18px;
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  background: var(--navy) url("assets/site-photos/tournament-room.jpg") center
    48% / cover;
  color: white;
  min-height: 650px;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 21, 43, 0.95) 0%,
      rgba(11, 21, 43, 0.79) 35%,
      rgba(11, 21, 43, 0.22) 70%,
      rgba(11, 21, 43, 0.08)
    ),
    linear-gradient(0deg, rgba(11, 21, 43, 0.35), transparent 40%);
}
.hero-content {
  position: relative;
  padding-top: 78px;
  padding-bottom: 65px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.light {
  color: #93c5fd;
}
.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--blue);
}
h1 {
  font-size: 69px;
  letter-spacing: -2.5px;
  line-height: 1.09;
  margin: 0 0 25px;
  font-weight: 700;
}
h1 em {
  font-style: normal;
  color: #93c5fd;
}
.hero p {
  color: #dbe4f0;
  font-size: 18px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 29px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}
.play {
  border: 1px solid #ffffff70;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 42px;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
}
.hero-foot strong {
  font-weight: 400;
  color: #fff;
}
.mini-pieces {
  font-size: 29px;
  letter-spacing: -3px;
  border-right: 1px solid #ffffff40;
  padding-right: 20px;
  color: #bfdbfe;
}
.hero-caption {
  position: absolute;
  right: 6%;
  bottom: 31px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #fff9;
}
.hero-caption span {
  padding: 0 10px;
}
.values {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 0;
}
.values-grid > div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #dce3ee;
}
.values-grid > div:first-child {
  justify-content: flex-start;
}
.values-grid > div:last-child {
  border: 0;
}
.values p {
  margin: 0;
}
.values strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}
.values small {
  font-size: 13px;
}
.value-icon {
  font-size: 43px;
  color: #2563eb;
  line-height: 1;
}
.section {
  padding-top: 95px;
  padding-bottom: 95px;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-visual {
  position: relative;
  padding: 0 20px 25px 0;
}
.about-visual > img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 3px;
}
.image-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 23px 30px;
  border: 7px solid #fff;
}
.image-label > span {
  font-size: 60px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
}
.image-label p {
  color: #fff;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.about-copy p {
  font-size: 17px;
}
.about-copy blockquote {
  margin: 25px 0;
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 20px;
  font-size: 24px;
  font-weight: 600;
}
.about-copy blockquote small {
  display: block;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
  color: var(--muted);
}
.programs {
  background: var(--surface);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 25px;
}
.section-heading :is(h1, h2) {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-heading p {
  font-size: 16px;
  margin: 0;
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.program-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s;
}

.card-image {
  position: relative;
}
.card-image img {
  height: 225px;
  width: 100%;
  object-fit: cover;
}
.card-image > span {
  position: absolute;
  bottom: 0;
  left: 23px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  letter-spacing: 1.4px;
  padding: 8px 12px;
}
.card-copy {
  padding: 25px;
}
.card-copy > small {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.card-copy h3 {
  margin: 10px 0 15px;
}
.card-copy p {
  font-size: 16px;
  min-height: 66px;
}
.program-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.program-detail span {
  color: var(--blue);
  font-size: 24px;
}
.belief {
  background: var(--navy);
  color: #fff;
  padding: 52px 0;
}
.belief-inner {
  display: flex;
  gap: 30px;
  align-items: center;
}
.big-knight {
  font-size: 110px;
  color: #93c5fd;
  line-height: 1;
}
.belief h2 {
  font-size: 36px;
  letter-spacing: -0.8px;
  margin-bottom: 15px;
}
.belief .eyebrow {
  margin-bottom: 12px;
}
.belief p {
  color: #b8c6dc;
  font-size: 14px;
  margin: 0;
}
.belief .button {
  margin-left: auto;
  flex-shrink: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.team-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 25%;
}
.team-card > div {
  padding: 23px;
}
.team-card small {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #2563eb;
}
.team-card h3 {
  margin: 8px 0;
}
.team-card p {
  font-size: 14px;
  margin: 0;
}
.team-invite {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-invite > span {
  color: var(--blue);
  font-size: 56px;
}
.team-invite h3 {
  font-size: 35px;
  margin: 15px 0;
}
.team-invite p {
  font-size: 16px;
}
.team-invite .text-link {
  color: #1d4ed8;
}
.contact {
  background: #eef2f8;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.contact-grid > div > p {
  max-width: 360px;
  font-size: 17px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
  font-size: 17px;
}
.contact-line > span {
  width: 40px;
  height: 40px;
  background: white;
  display: grid;
  place-items: center;
  color: #1d4ed8;
}
.contact-line small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
form {
  background: #fff;
  padding: 34px;
  border-radius: 4px;
}
form h3 {
  margin-bottom: 25px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce3ee;
  border-radius: 2px;
  background: #f8fafc;
  padding: 12px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}
textarea {
  resize: vertical;
}
.form-note {
  font-size: 12px;
  margin: 12px 0 0;
}
footer {
  background: #0f1a30;
  color: #dbe4f0;
  padding: 40px 0 18px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 35px;
}
.footer-main .brand {
  font-size: 18px;
}
.footer-main .brand img {
  width: 42px;
  height: 48px;
}
.footer-main p,
.footer-main > a:last-child {
  font-size: 14px;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid #ffffff18;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: #a0aec4;
}
.footer-bottom a {
  text-decoration: underline;
}
dialog {
  border: 0;
  border-radius: 6px;
  max-width: 560px;
  width: 90%;
  padding: 45px;
  color: var(--ink);
  box-shadow: 0 20px 100px #0003;
}
dialog::backdrop {
  background: #0b152bb3;
}
dialog h2 {
  font-size: 36px;
}
dialog p {
  font-size: 17px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 34px;
  color: var(--ink);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 99;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 720px;
  }
  .hero-content {
    padding-top: 105px;
  }
}
@media (max-width: 1100px) {
  nav {
    gap: 17px;
  }
  .brand {
    font-size: 18px;
  }
  .nav-cta {
    gap: 12px;
    padding: 10px;
  }
  .about {
    gap: 45px;
  }
  .contact-grid {
    gap: 45px;
  }
  h1 {
    font-size: 63px;
  }
  .hero-caption {
    display: none;
  }
  .values-grid > div {
    gap: 12px;
  }
  .values small {
    font-size: 12px;
  }
  .belief-inner {
    gap: 20px;
  }
  .big-knight {
    font-size: 80px;
  }
}
@media (max-width: 850px) {
  .nav-wrap {
    height: 78px;
  }
  .menu-toggle {
    display: block;
    border: 1px solid var(--line);
    background: #fff;
    padding: 5px 12px;
    font-size: 28px;
    color: var(--ink);
  }
  nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 6%;
    box-shadow: 0 15px 20px #0001;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  nav a {
    padding: 12px;
  }
  .nav-cta {
    margin: 10px 0;
  }
  .hero {
    min-height: 620px;
    background-position: 60% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #0b152bed, #0b152b99 60%, #0b152b55);
  }
  .values-grid {
    gap: 20px;
  }
  .values-grid > div {
    flex-direction: column;
    align-items: flex-start;
    border: 0;
    gap: 10px;
  }
  .values strong {
    font-size: 16px;
  }
  .values small {
    font-size: 13px;
    line-height: 1.5;
    display: block;
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .about {
    gap: 30px;
  }
  h2 {
    font-size: 38px;
  }
  .about-visual > img {
    height: 460px;
  }
  .image-label {
    padding: 20px;
  }
  .program-grid {
    gap: 15px;
  }
  .card-copy {
    padding: 20px;
  }
  .card-copy h3 {
    font-size: 24px;
  }
  .card-image img {
    height: 175px;
  }
  .section-heading {
    align-items: start;
  }
  .belief-inner {
    flex-wrap: wrap;
  }
  .belief .button {
    margin-left: 0;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-invite {
    grid-column: 1/-1;
    padding: 30px;
  }
  .team-invite > span {
    display: none;
  }
  .team-invite h3 br {
    display: none;
  }
  .contact-grid {
    gap: 30px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  form {
    padding: 25px;
  }
  .footer-main p {
    display: none;
  }
}
@media (max-width: 600px) {
  .container {
    width: 88%;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    height: 47px;
    width: 43px;
  }
  .hero {
    min-height: 620px;
    background-position: 62% center;
  }
  .hero-content {
    padding-top: 66px;
    padding-bottom: 45px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -1.8px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
  }
  .hero p {
    font-size: 16px;
    max-width: 320px;
  }
  .desktop {
    display: none;
  }
  .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-actions .button {
    padding: 13px 17px;
    gap: 20px;
  }
  .text-link {
    font-size: 13px;
  }
  .hero-foot {
    margin-top: 35px;
    font-size: 12px;
  }
  .values-grid {
    padding: 25px 0;
    gap: 14px;
  }
  .values strong {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 6px;
  }
  .values small {
    font-size: 12px;
  }
  .value-icon {
    font-size: 35px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-visual > img {
    height: 350px;
  }
  .about-copy :is(h1, h2) {
    font-size: 40px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 18px;
  }
  .program-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .card-image img {
    height: 230px;
  }
  .card-copy {
    padding: 25px;
  }
  .card-copy h3 {
    font-size: 29px;
  }
  .card-copy p {
    min-height: 0;
  }
  .belief-inner {
    display: block;
  }
  .big-knight {
    display: none;
  }
  .belief h2 {
    font-size: 35px;
  }
  .belief .button {
    margin: 25px 0 0;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card img {
    height: 350px;
  }
  .team-invite {
    grid-column: auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-line {
    font-size: 14px;
  }
  .footer-main {
    align-items: start;
  }
  .footer-main > a:last-child {
    font-size: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .footer-main .brand {
    font-size: 14px;
  }
  .footer-main .brand small {
    font-size: 10px;
    letter-spacing: 2.4px;
  }
  dialog {
    padding: 35px 25px;
  }
  dialog h2 {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Local photography and a restrained motion treatment. */
.hero {
  background-position: center;
}
.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(11, 21, 43, 0.94),
    rgba(11, 21, 43, 0.72) 45%,
    rgba(11, 21, 43, 0.16)
  );
}
.team-card img {
  height: 340px;
  object-position: center 20%;
}
.team-card,
.merch-card {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.team-invite {
  grid-column: auto;
}
.merchandise {
  background: var(--surface);
}
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.merch-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.merch-image {
  overflow: hidden;
}
.merch-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.merch-card .card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card-image {
  overflow: hidden;
}
.card-image img,
.merch-image img {
  transition: transform 0.6s ease;
}
nav > a:not(.button) {
  position: relative;
}
nav > a:not(.button)::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
nav > a.active::after,
nav > a:hover::after {
  transform: scaleX(1);
}
input,
textarea,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2563eb18;
}
@media (min-width: 851px) {
  nav {
    gap: 18px;
    font-size: 14px;
  }
  .nav-cta {
    margin-left: 0;
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .nav-wrap {
    width: 94%;
  }
  nav {
    gap: 12px;
  }
  .nav-cta {
    padding: 10px;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .program-card:hover,
  .team-card:hover,
  .merch-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px #14233f12;
  }
  .program-card:hover img,
  .merch-card:hover img {
    transform: scale(1.045);
  }
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px #1d4ed826;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending {
    opacity: 0;
    transform: translateY(22px);
  }
  .reveal-visible {
    animation: section-arrive 0.65s ease both;
  }
  .hero-content > h1 {
    animation: section-arrive 0.8s ease both;
  }
  @keyframes section-arrive {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (max-width: 850px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .merch-grid {
    grid-template-columns: 1fr;
  }
  .merch-image img {
    height: 250px;
  }
  .team-card img {
    height: 380px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* Photographic crops keep the real chess equipment in view. */
.hero {
  background-position: center 58%;
}
.about-visual > img {
  object-position: center;
}
#chess-clock .merch-image {
  background: #f1f3f6;
}
#chess-clock .merch-image img {
  object-fit: contain;
}
.merchandise .section-heading > p {
  max-width: 365px;
}
@media (max-width: 600px) {
  .hero {
    background-position: 63% center;
  }
}

/* Hero photography and controls stay inside the approved navy/blue palette. */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
  transition:
    opacity 1.6s ease-in-out,
    transform 8s ease-out;
  transform: scale(1.025);
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero-shade {
  pointer-events: none;
}
.hero-content {
  z-index: 4;
  pointer-events: none;
}
.hero-content > * {
  pointer-events: auto;
}
.hero-photo-controls {
  position: absolute;
  z-index: 3;
  right: 6%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #ffffff40;
  border-radius: 40px;
  background: #14233fc9;
  backdrop-filter: blur(10px);
  color: #fff;
}
.hero-photo-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 19px;
  transition: background 0.2s ease;
}
.hero-photo-controls button:hover {
  background: #ffffff20;
}
.hero-photo-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}
.photo-dots {
  display: flex;
  gap: 4px;
}
.photo-dots button {
  width: 25px;
  height: 32px;
}
.photo-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff60;
  border-radius: 6px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}
.photo-dots button[aria-pressed="true"]::before {
  width: 17px;
  background: #fff;
}
.photo-pause {
  border-left: 1px solid #ffffff30 !important;
  border-radius: 0 !important;
}
[hidden] {
  display: none !important;
}

/* Split CTAs and disclosure menus: real links, keyboard controls, no hover dependency. */
.dropdown {
  position: relative;
}
.nav-dropdown {
  display: flex;
  align-items: center;
  gap: 3px;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 8px 0;
}
.dropdown-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 0.2s ease;
}
.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.nav-dropdown > a:hover,
.nav-dropdown > a.active,
.nav-dropdown > .dropdown-toggle:hover {
  color: var(--blue);
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 310px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px #14233f24;
  color: var(--ink);
  z-index: 30;
}
.dropdown-panel a,
.dropdown-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 13px 14px;
  border-radius: 5px;
  line-height: 1.5;
}
.dropdown-panel strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.dropdown-panel small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.dropdown-panel a:hover,
.dropdown-panel button:hover {
  background: var(--surface);
  color: var(--blue);
}
.split-cta {
  display: flex;
  border-radius: 5px;
  box-shadow: 0 8px 24px #2563eb35;
}
.split-cta > .button {
  border-radius: 5px 0 0 5px;
}
.split-cta > .dropdown-toggle {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-left: 1px solid #ffffff35;
  padding: 14px 12px;
  border-radius: 0 5px 5px 0;
}
.split-cta > .dropdown-toggle:hover {
  background: #1d4ed8;
}
.premium-cta,
.nav-cta {
  box-shadow: 0 5px 18px #2563eb25;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.premium-cta {
  gap: 18px;
}
.cta-arrow {
  transition: transform 0.25s ease;
}
.premium-cta:hover .cta-arrow {
  transform: translate(2px, -2px);
}
.hero-secondary {
  padding: 12px 0;
  border-bottom: 1px solid #ffffff50;
  transition: border-color 0.2s ease;
}
.hero-secondary:hover {
  border-color: #fff;
}
.hero-actions {
  flex-wrap: wrap;
}
@media (max-width: 850px) {
  .nav-dropdown {
    flex-wrap: wrap;
  }
  .nav-dropdown > a {
    flex: 1;
  }
  .nav-dropdown > .dropdown-toggle {
    width: 44px;
    min-height: 44px;
  }
  .nav-dropdown .dropdown-panel {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-bottom: 10px;
  }
}
@media (max-width: 600px) {
  .hero-slide {
    object-position: 63% center;
  }
  .hero-content {
    padding-bottom: 115px;
  }
  .hero-photo-controls {
    right: auto;
    left: 6%;
    bottom: 25px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .premium-cta {
    padding: 13px 15px;
    gap: 12px;
  }
  .hero-actions .split-cta > .dropdown-toggle {
    padding: 13px 10px;
  }
  .cta-dropdown .dropdown-panel {
    width: min(310px, 88vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
    transform: none;
  }
  .premium-cta:hover .cta-arrow {
    transform: none;
  }
}

/* Standalone pages reuse the existing section design and heading scale. */
.inner-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.inner-page main {
  flex: 1;
}
.inner-page h1 {
  font-size: 47px;
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin-bottom: 24px;
}
@media (max-width: 850px) {
  .inner-page h1 {
    font-size: 38px;
  }
}
@media (max-width: 600px) {
  .inner-page .about-copy h1 {
    font-size: 40px;
  }
}

@media (max-width: 850px) {
  nav {
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }
}

/* Quiet, line-free surfaces; form boundaries and focus outlines stay usable. */
header,
.values,
.values-grid > div,
.mini-pieces,
.about-copy blockquote,
.program-card,
.program-detail,
.team-card,
.merch-card,
.footer-bottom,
.hero-secondary,
.hero-photo-controls,
.dropdown-panel {
  border: 0;
}
nav > a::after {
  display: none;
}
.photo-pause,
.split-cta > .dropdown-toggle {
  border-left: 0 !important;
}
.program-card,
.team-card,
.merch-card {
  box-shadow: 0 4px 24px #14233f08;
}

/* The same complete footer appears on every page. */
footer {
  padding-top: 58px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}
.footer-grid .brand {
  font-size: 18px;
  white-space: nowrap;
}
.footer-grid .brand small {
  font-size: 10px;
}
.footer-grid .brand img {
  width: 44px;
  height: 50px;
}
.footer-grid h3 {
  font-size: 17px;
  letter-spacing: 0;
  margin: 0 0 20px;
  color: #fff;
}
.footer-grid p {
  color: #a0aec4;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.footer-about > p {
  margin-top: 20px;
  max-width: 310px;
}
.footer-location {
  margin-top: 0 !important;
}
.footer-contact-icons {
  display: flex;
  align-items: start;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-contact-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.footer-contact-icons svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.footer-contact-icons a:hover,
.footer-links a:hover,
.footer-social-links a:hover {
  color: #93c5fd;
}
.footer-links {
  position: static;
  width: auto;
  padding: 0;
  box-shadow: none;
  background: transparent;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
}
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.footer-social-links small {
  display: block;
  font-size: 13px;
  color: #a0aec4;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #ffffff0a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 23px;
}
.footer-bottom a {
  text-decoration: none;
}

/* Portraits fade as cards, not as a second full-width hero. */
.staff-carousel {
  max-width: 440px;
  margin: 0 auto 32px;
}
.staff-carousel-stage {
  display: grid;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 35px #14233f12;
}
.staff-slide {
  grid-area: 1 / 1;
  background: var(--navy);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1.4s ease-in-out,
    visibility 0s linear 1.4s;
}
.staff-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.staff-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
}
.staff-slide-caption {
  padding: 25px 28px;
}
.staff-slide-caption small {
  color: #93c5fd;
  font-size: 12px;
  letter-spacing: 1px;
}
.staff-slide-caption h3 {
  font-size: 28px;
  margin: 10px 0 17px;
}
.staff-slide-caption .text-link {
  font-size: 15px;
}
.staff-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}
.staff-carousel-controls button {
  border: 0;
  background: var(--surface);
  color: var(--navy);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  font-size: 20px;
}
.staff-carousel-controls button:hover {
  background: #e2e8f0;
}
.staff-carousel-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.staff-dots {
  display: flex;
  gap: 2px;
}
.staff-dots button {
  width: 23px;
  background: transparent;
}
.staff-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #64748b60;
  border-radius: 6px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}
.staff-dots button[aria-pressed="true"]::before {
  width: 17px;
  background: var(--blue);
}
#team > .button {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid .brand {
    font-size: 17px;
  }
  .footer-social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 25px;
  }
  .staff-slide img {
    height: 340px;
  }
  .staff-slide-caption {
    padding: 22px;
  }
  .staff-carousel-controls {
    gap: 5px;
  }
  .staff-dots {
    gap: 0;
  }
  .staff-dots button {
    width: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff-slide {
    transition: none;
  }
}
.footer-grid .brand img {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
.footer-links a {
  padding: 0;
  line-height: 1.6;
}

/* New community interfaces reuse the approved navy/blue design. */
[hidden] {
  display: none !important;
}
.community-section {
  background: var(--surface);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.quick-card {
  display: block;
  padding: 30px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 6px 24px #14233f08;
}
.quick-card:hover {
  background: #edf3ff;
}
.quick-card h3 {
  font-size: 25px;
  margin: 12px 0;
}
.quick-card p {
  font-size: 16px;
}
.quick-symbol {
  color: var(--blue);
  font-size: 32px;
}
.page-intro {
  max-width: 800px;
}
.notice {
  background: var(--surface);
  padding: 28px;
  margin: 30px 0;
  border-radius: 6px;
}
.notice h2 {
  font-size: 28px;
  letter-spacing: -0.6px;
}
.notice ol {
  padding-left: 24px;
}
.notice li {
  margin: 10px 0;
}
.form-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 35px 0 20px;
}
.form-tabs button {
  background: var(--surface);
  color: var(--navy);
  padding: 14px 22px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
}
.form-tabs button[aria-selected="true"] {
  background: var(--blue);
  color: white;
}
.registration-panel {
  padding: 30px;
  background: var(--surface);
  border-radius: 6px;
}
.registration-panel h2 {
  font-size: 32px;
}
.registration-panel iframe {
  width: 100%;
  height: 1050px;
  background: white;
  border: 0;
  margin: 24px 0;
}
.form-privacy,
.push-panel small {
  font-size: 15px;
  display: block;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.action-row p {
  margin: 0;
}
.secondary-button {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--line);
}
.secondary-button:hover {
  background: #e2e8f0;
  border-color: var(--line);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.help-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: start;
}
.help-layout h2 {
  font-size: 32px;
}
#feedback-form {
  background: var(--surface);
}
#feedback-form label,
.auth-grid label,
.game-info label {
  font-size: 16px;
}
#feedback-form input,
#feedback-form textarea,
#feedback-form select,
.auth-grid input,
.game-info select {
  font-size: 17px;
  background: white;
}
#feedback-form .form-note {
  font-size: 14px;
  margin-bottom: 20px;
}
.faq-item {
  padding: 18px 20px;
  background: var(--surface);
  margin: 12px 0;
  border-radius: 4px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.faq-item p {
  margin: 16px 0 0;
  font-size: 16px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.auth-grid form {
  background: var(--surface);
}
.auth-grid h2 {
  font-size: 32px;
}
.auth-status,
#feedback-status,
#push-status {
  overflow-wrap: anywhere;
}
.chess-layout {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 35px;
  align-items: start;
  margin: 25px 0;
}
.chess-board {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  border: 6px solid var(--navy);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.board-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  flex: 1;
  min-height: 0;
}
.chess-square {
  padding: 0;
  border: 0;
  position: relative;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: var(--navy);
  font-size: clamp(22px, 4vw, 45px);
  line-height: 1;
  min-width: 0;
}
.chess-square.dark-square {
  background: #7c93b3;
}
.chess-square.piece-white {
  color: white;
  text-shadow:
    1px 1px 2px #14233f,
    -1px -1px 1px #14233f;
}
.chess-square.piece-black {
  color: #102039;
  text-shadow: 0 0 1px white;
}
.chess-square .coordinate {
  position: absolute;
  left: 3px;
  bottom: 2px;
  font: 700 10px Arial;
  color: #14233f;
  text-shadow: none;
}
.chess-square.selected-square {
  background: #facc15;
}
.chess-square.legal-square::after {
  content: "";
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #14233f88;
  pointer-events: none;
}
.chess-square.legal-square:not(:empty)::after {
  outline: 2px solid var(--blue);
}
.chess-square:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  z-index: 1;
}
.game-info {
  padding: 25px;
  background: var(--surface);
  border-radius: 4px;
}
.game-info h2 {
  font-size: 30px;
}
.game-info h3 {
  font-size: 24px;
}
#move-history {
  overflow-wrap: anywhere;
  max-height: 240px;
  overflow: auto;
}
#player-panel .action-row p {
  font-weight: 700;
}
@media (max-width: 1100px) {
  .help-layout {
    gap: 25px;
  }
  .chess-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .help-layout,
  .auth-grid,
  .chess-layout {
    grid-template-columns: 1fr;
  }
  .notice,
  .registration-panel {
    padding: 20px;
  }
  .quick-card {
    padding: 22px;
  }
  .chess-board {
    margin: auto;
  }
  .chess-square {
    font-size: clamp(22px, 7vw, 44px);
  }
  .form-tabs button {
    flex: 1;
    padding: 12px;
  }
}
@media (max-width: 450px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .action-row .button {
    width: 100%;
  }
  .game-info {
    padding: 20px;
  }
}
/* Collapse the expanded community navigation before it collides with the brand. */
@media (max-width: 1100px) {
  header .nav-wrap {
    height: 78px;
  }
  header .menu-toggle {
    display: block;
    border: 0;
    background: white;
    padding: 5px 12px;
    font-size: 28px;
    color: var(--ink);
  }
  header nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 6%;
    box-shadow: 0 15px 20px #0001;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }
  header nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  header nav a {
    padding: 12px;
  }
  header .nav-cta {
    margin: 10px 0;
  }
  header .nav-dropdown {
    flex-wrap: wrap;
  }
  header .nav-dropdown > a {
    flex: 1;
  }
  header .nav-dropdown > .dropdown-toggle {
    width: 44px;
    min-height: 44px;
  }
  header .nav-dropdown .dropdown-panel {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-bottom: 10px;
  }
}
.community-section .quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .community-section .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .community-section .quick-grid {
    grid-template-columns: 1fr;
  }
}
