.header-inner {
  height: 76px;
}

.site-header .brand img {
  width: 62px;
  height: 62px;
}

.nav a.login-link {
  margin-left: 8px;
  background: var(--red);
  color: #fff;
}

.nav a.login-link:hover,
.nav a.login-link.active {
  background: var(--red-dark);
  color: #fff;
}

.sponsor-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.sponsor-hero-copy {
  min-width: 0;
}

.sponsor-hero-inner .button {
  flex: 0 0 auto;
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 900px) {
  .nav {
    top: 70px;
  }

  .nav a.login-link {
    margin-left: 0;
    text-align: center;
  }

  .sponsor-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 68px;
  }

  .site-header .brand img {
    width: 54px;
    height: 54px;
  }

  .nav {
    top: 64px;
  }
}

.personal-calendar-section {
  padding: 62px 0;
  background: #fff;
}

.calendar-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .55fr);
  gap: 50px;
  align-items: end;
}

.calendar-heading h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.calendar-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.calendar-picker label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

.calendar-picker select {
  width: 100%;
  padding: 13px 42px 13px 15px;
  border: 1px solid #cfd0d4;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
}

.calendar-picker select:focus {
  outline: 3px solid rgba(210, 15, 40, .2);
  border-color: var(--red);
}

.calendar-status {
  min-height: 28px;
  margin: 26px 0 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

.calendar-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #ddd;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: calendar-spin .8s linear infinite;
}

@keyframes calendar-spin {
  to { transform: rotate(360deg); }
}

.calendar-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
}

.calendar-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  background: #fff;
}

.calendar-table th {
  padding: 14px 16px;
  background: #111;
  color: #fff;
  text-align: left;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.calendar-table th:first-child {
  background: var(--red);
}

.calendar-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}

.calendar-table tr:last-child td {
  border-bottom: 0;
}

.calendar-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.calendar-table td:nth-child(4) {
  font-weight: 850;
  color: var(--red);
}

.matchday-section {
  padding: 62px 0;
  background: var(--paper);
}

.matchday-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.matchday-card {
  padding: 25px;
  border-radius: 22px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .1);
}

.matchday-card.matchday-away {
  background: var(--red-dark);
}

.matchday-card.matchday-away .matchday-player {
  background: #fff;
  color: var(--red-dark);
}

.matchday-card.matchday-rescheduled {
  background: #f2ad19;
  color: #111;
  box-shadow: 0 16px 38px rgba(185, 113, 0, .24);
}

.matchday-card.matchday-rescheduled .matchday-card-header {
  border-color: rgba(0, 0, 0, .2);
}

.matchday-card.matchday-rescheduled .matchday-card-header > div > span,
.matchday-card.matchday-rescheduled .matchday-opponent,
.matchday-card.matchday-rescheduled .matchday-card-date {
  color: #4c3300;
}

.matchday-card.matchday-rescheduled .matchday-card-date strong {
  color: #111;
}

.matchday-card.matchday-rescheduled .matchday-player {
  background: #111;
  color: #fff;
}

.matchday-card.matchday-rescheduled .matchday-ranking {
  background: var(--red);
}

.matchday-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.matchday-card-header span {
  color: #ff6a7e;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.matchday-card h3 {
  margin: 7px 0 0;
  font-size: 1.04rem;
}

.matchday-opponent {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
}

.matchday-card-date {
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 800;
  color: #d7d7da;
  text-align: right;
}

.matchday-card-date strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: .88rem;
  white-space: nowrap;
}

.matchday-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 16px;
}

.matchday-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red);
  font-weight: 850;
  font-size: .9rem;
}

.matchday-player-name {
  min-width: 0;
}

.matchday-ranking {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 30px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1.2;
}

.matchday-away .matchday-ranking {
  background: var(--red-dark);
}

/* Compactere typografie voor de sportieve overzichten. */
.private-page .internal-toolbar h2,
.teams-section .section-head h2,
.members-section .section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.private-page .internal-card h3 {
  font-size: 1.3rem;
}

.private-page .internal-card.duty-card h3 {
  font-size: 1.45rem;
}

.private-page .internal-card p,
.private-page .internal-card b,
.teams-section .lead,
.teams-section .team-card p,
.teams-section .team-card a,
.members-section .members-source {
  font-size: .9rem;
}

.teams-section .team-card h3 {
  font-size: 1.35rem;
}

.members-section .members-table td {
  font-size: .87rem;
}

.copyright .footer-facebook {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9c8ef;
  white-space: nowrap;
}

.copyright .footer-facebook span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.copyright .footer-facebook:hover {
  color: #fff;
}

.matchday-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed #c8c9cd;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .calendar-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

@media (max-width: 560px) {
  .personal-calendar-section {
    padding: 46px 0;
  }

  .matchday-section {
    padding: 46px 0;
  }

  .matchday-grid {
    grid-template-columns: 1fr;
  }

  .calendar-table th,
  .calendar-table td {
    padding: 11px 13px;
  }
}

/* Zwart klassement voor geregistreerde recreanten. */
.members-table tbody tr.recreant-row td:first-child b {
  background: #111;
  color: #fff;
}

/* Compact statistics and overview actions */
.stats .stat { padding:22.5px 30px; color:#fff; text-decoration:none; transition:background .2s; }
.stats a.stat:hover { background:rgba(0,0,0,.12); }
.stats a.stat:focus-visible { outline:3px solid #fff; outline-offset:-5px; }
#leden, #ploegen { scroll-margin-top:90px; }
.overview-export { margin-top:12px; padding:10px 15px; font-size:.85rem; width:100%; }
.matchday-player-name[href] { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.board-grid a[href^="tel:"] { display:inline-block; margin-top:6px; font-weight:700; }
