/* Course names are the links. Keep the index close enough to scan on every screen. */
.tee-home, .tee-directory {
  --tee-accent: var(--h-ink, #052e22);
  --tee-tint: #eaece3;
  color: var(--h-ink, #052e22);
}
:is(.tee-home, .tee-directory) [data-group="premier"] {
  --tee-accent: #275542;
  --tee-tint: #e9efe3;
}
:is(.tee-home, .tee-directory) [data-group="other"] {
  --tee-accent: #345d69;
  --tee-tint: #e6eef0;
}
:is(.tee-home, .tee-directory) [data-group="oki"] {
  --tee-accent: #765527;
  --tee-tint: #f6edd9;
}

.tee-home.social-section, .tee-directory {
  max-width: var(--h-width, 1440px);
  margin-inline: auto;
  padding-inline: var(--h-gutter, 5%);
}
.tee-home.social-section { padding-block: clamp(30px, 4vw, 60px); }
.tee-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 18px;
  margin-bottom: clamp(10px, 1.9vw, 25px);
}
.tee-intro h2, .tee-heading h1 {
  font-family: var(--h-serif, Caslon, Georgia, serif);
  color: inherit;
  margin: 0;
  line-height: 1.03;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.tee-intro h2 { font-size: clamp(32px, 3.6vw, 54px); }
.tee-heading h1 { font-size: clamp(44px, 6vw, 84px); }

.tee-explore, .tee-pill, .tee-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 14px;
}
.tee-explore, .tee-pill { font-weight: 600; }
.tee-explore span, .tee-more span { font-size: 1.15em; }

.tee-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 40px);
}
.tee-category {
  min-width: 0;
  border-top: 2px solid var(--tee-accent);
}
.tee-category h3 {
  color: var(--tee-accent);
  font-size: clamp(24px, 2.15vw, 34px);
  letter-spacing: -.035em;
  line-height: 1;
  margin: 0 0 4px;
  border-bottom: 1px solid var(--h-rule, #cccbbd);
}
.tee-category h3 a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-block: 8px;
}
.tee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(16px, 2.5vw, 40px);
}
.tee-category .tee-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
.tee-course, .tee-more {
  min-width: 0;
  min-height: 44px;
  padding: 9px 3px;
  border-bottom: 1px solid var(--h-rule, #cccbbd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms var(--h-ease, ease), color 150ms var(--h-ease, ease);
}
.tee-category .tee-course { padding-block: 2px; }
.tee-course {
  color: var(--h-ink, #052e22);
  font-size: 15px;
  font-weight: 600;
}
.tee-course::after {
  content: "";
  display: block;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  background: var(--tee-accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M2.25 9.75l7-7m-6.5 0h6.5v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tee-more {
  color: var(--tee-accent);
  font-size: 14px;
  font-weight: 600;
}

.tee-directory {
  padding-block: clamp(12px, 1.8vw, 28px) max(64px, env(safe-area-inset-bottom));
}
.tee-back { color: var(--h-muted, #546159); }
.tee-heading {
  position: static;
  height: auto;
  margin: clamp(12px, 2vw, 26px) 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tee-filters {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 4px 8px;
  position: static;
  height: auto;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--h-rule, #cccbbd);
  margin-bottom: 5px;
  background: transparent;
}
.tee-filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--tee-accent);
  font-size: 14px;
  font-weight: 600;
}
.tee-filters a:not([data-group="all"])::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
}
.tee-filters a[aria-current] {
  color: var(--h-paper, #f7f5ef);
  background: var(--tee-accent);
}
.tee-home a:focus-visible, .tee-directory a:focus-visible {
  outline: 2px solid var(--tee-accent);
  outline-offset: 2px;
}
.tee-course:active, .tee-more:active { background: var(--tee-tint); }
@media (hover: hover) {
  .tee-course:hover, .tee-more:hover, .tee-filters a:not([aria-current]):hover { background: var(--tee-tint); }
  .tee-explore:hover, .tee-category h3 a:hover, .tee-back:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
@media (min-width: 641px) and (max-width: 960px) {
  .tee-category .tee-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .tee-categories { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .tee-filters { column-gap: 2px; }
  .tee-filters a { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tee-course, .tee-more { transition: none; }
}
