body.clubhouse-student.account-dashboard,
body.clubhouse-coach:has(.coach-practice-home) {
  --club-bg: #e2ece5;
  --club-card: #fcfffd;
  --club-text: #19382c;
  --club-muted: #435c50;
  --club-green: #214e3b;
  --club-gold: #ad8742;
  --club-soft: #dce9df;
}

.clubhouse-student.account-dashboard .student-account-content :is(h1, h2) {
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.clubhouse-student.account-dashboard .student-site-header {
  border-bottom: 2px solid var(--club-gold);
}

.account-dashboard .student-account-tabs {
  background: var(--club-card);
}

.clubhouse-student.account-dashboard .student-account-tabs button:not([aria-pressed="true"]):not(.student-booking-tab):not(.consent-required) {
  background: transparent;
  border-color: transparent;
}

.clubhouse-student.account-dashboard .student-account-tabs button:not([aria-pressed="true"]):hover {
  background: var(--club-soft);
}

.student-account-content:has(#account-home:not([hidden])) > .account-welcome {
  display: none;
}

.clubhouse-student #account-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.clubhouse-student #account-home[hidden] {
  display: none;
}

.student-practice-heading h1 {
  margin: 0;
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.12;
}

.student-clubhouse-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
  gap: 8px;
}

.student-welcome-card, .student-pro-card {
  display: grid;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--club-green);
  color: #fffdf7;
}

.student-welcome-card:has(img) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
}

.student-welcome-card > div, .student-pro-card > h2 {
  padding: 14px 18px;
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-hero h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(21px, 2.4vw, 32px);
  overflow-wrap: anywhere;
}

:is(.clubhouse-student, .coach-practice-home) .student-pro-card .student-pro-switch {
  display: inline-block;
  margin-inline-start: 0.5em;
  color: inherit;
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.clubhouse-student .student-pro-card .student-pro-switch {
  font-size: 1rem;
}

.student-welcome-card p {
  margin: 5px 0 0;
  font-size: 15px;
}

.student-clubhouse-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .student-clubhouse-hero,
  .student-welcome-card:has(img) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.student-clubhouse-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button {
  display: grid;
  place-content: center;
  min-width: 0;
  min-height: 56px;
  padding: 12px;
  border: 1px solid #a8baad;
  border-radius: 8px;
  background: var(--club-card);
  color: var(--club-green);
  box-shadow: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button.primary {
  border-color: var(--club-green);
  background: var(--club-green);
  color: #fffdf7;
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button:hover {
  background: var(--club-soft);
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button.primary:hover {
  background: #15382b;
}

:is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button:focus-visible {
  outline: 2px solid var(--club-green);
  outline-offset: 3px;
}

.student-clubhouse-upcoming,
.student-clubhouse-tips,
.student-clubhouse-family {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--club-line);
  border-radius: 12px;
  background: var(--club-card);
}

.student-clubhouse-columns {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.student-clubhouse-stack {
  display: grid;
  gap: 16px;
}

.student-clubhouse-upcoming h2,
.student-clubhouse-tips > h2 {
  margin: 0 0 12px;
  font-size: 24px;
  text-align: left;
}

.student-clubhouse-family h3 {
  margin: 0;
}

.student-upcoming-tab {
  margin-top: 12px;
}

.student-clubhouse-upcoming .student-home-next button {
  background: var(--club-soft);
}

.student-clubhouse-tips {
  display: grid;
  gap: 10px;
}

.student-clubhouse-tips > h2 {
  margin-bottom: 2px;
  font-size: 24px;
}

.student-tips-scroll {
  display: grid;
  gap: 14px;
  max-height: min(690px, max(470px, 68vh));
  overflow-y: auto;
  padding: 2px 8px 8px 2px;
  scrollbar-gutter: stable;
}

.student-tip-preview iframe {
  display: block;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 9px 0;
  border: 0;
  border-radius: 8px;
}

.student-tip-preview .student-blog-opening {
  max-width: 65ch;
  line-height: 1.55;
}

.student-clubhouse-tips > button {
  justify-self: start;
}

.student-tip-preview {
  min-width: 0;
  padding: 14px 0;
  border-top: 1px solid var(--club-line);
  overflow-wrap: anywhere;
}

.student-tip-preview h3 {
  margin: 0 0 4px;
}

.student-tip-preview p {
  margin: 4px 0;
  color: var(--club-muted);
}

.student-tip-preview a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.student-tip-golflive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(108px, 25%, 208px));
  align-items: center;
  gap: 16px;
}

.student-tip-golflive img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

@media (max-width: 800px) {
  .student-clubhouse-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-tips-scroll {
    max-height: none;
    overflow: visible;
    padding: 0;
  }
}


/* Welcome photos sit together beside the compact greeting. */
.student-recent-tip + .student-recent-tip {border-top:1px solid #d9e3dd;padding-top:14px;margin-top:14px}
.student-recent-tip p {margin:6px 0}

.student-practice-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 1.2fr);
  align-items: center;
  gap: 10px 20px;
}

.student-practice-sponsors {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.student-practice-sponsors a {
  display: inline-flex;
  padding: 5px;
}

.student-practice-sponsors img {
  display: block;
  width: auto;
  height: clamp(29px, 3vw, 42px);
  border-radius: 4px;
}

.student-mobile-menu {
  display: none;
}

@media (max-width: 760px) {
  .clubhouse-student.account-dashboard .student-account-layout {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
  }

  .clubhouse-student.account-dashboard .student-mobile-menu {
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: 44px;
    min-height: 44px;
    padding: 0;
    background: var(--club-card);
  }

  .clubhouse-student.account-dashboard .student-account-tabs {
    display: none;
  }

  .clubhouse-student.account-dashboard .student-mobile-menu[aria-expanded="true"] + .student-account-tabs {
    position: absolute;
    z-index: 2;
    top: 50px;
    right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(290px, 100%);
    max-height: 65vh;
    overflow-y: auto;
    box-shadow: 0 12px 30px #19382c2e;
  }

  .student-clubhouse-shortcuts {
    gap: 6px;
  }

  :is(.clubhouse-student, .coach-practice-home) .student-clubhouse-shortcuts button {
    min-height: 52px;
    padding: 8px 4px;
    font-size: clamp(12px, 3.3vw, 15px);
  }

  .clubhouse-student.account-dashboard .student-account-content:has(#account-home:not([hidden])) {
    padding-top: 12px;
  }

  .clubhouse-student #account-home {
    gap: 8px;
  }

  #account-home .student-practice-heading {
    gap: 4px;
  }

  #account-home .student-practice-heading h1 {
    font-size: clamp(24px, 6.5vw, 29px);
  }

  #account-home .student-practice-heading > div:first-child {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  #account-home .student-practice-sponsors img {
    height: 26px;
  }

  :is(#account-home, .coach-practice-home) .student-clubhouse-hero {
    gap: 6px;
  }

  :is(#account-home, .coach-practice-home) .student-welcome-card > div,
  :is(#account-home, .coach-practice-home) .student-pro-card > h2 {
    padding: 7px 12px;
  }

  :is(.clubhouse-student #account-home, .coach-practice-home) .student-clubhouse-hero h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  :is(#account-home, .coach-practice-home) .student-welcome-card p {
    margin-top: 3px;
    font-size: 13px;
  }

  :is(#account-home, .coach-practice-home) .student-clubhouse-hero img {
    height: clamp(72px, 13svh, 112px);
    object-fit: cover;
  }

  :is(#account-home, .coach-practice-home) .student-pro-card img {
    height: clamp(92px, 16svh, 136px);
    object-position: center 32%;
  }

  #account-home > .notice {
    margin: 0;
  }

  .student-home-blog-preview,
  .student-clubhouse-tips > button[data-account-section="tips"] {
    display: none;
  }

  .student-practice-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-practice-heading > div:first-child,
  .student-account-content > .account-welcome {
    padding-right: 52px;
  }
}

@media (min-width: 761px) {
  .student-clubhouse-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .student-clubhouse-hero .student-welcome-card,
  .student-clubhouse-hero .student-pro-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    border-radius: 0;
  }

  .student-clubhouse-hero img {
    aspect-ratio: 4 / 3;
    max-height: none;
    object-fit: cover;
  }
}


/* Coach home uses the Practice Tee styling with coach navigation. */
.clubhouse-coach .header > .coach-site-brand {
  display: inline-flex;
  gap: 5px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--club-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 801px) {
  .clubhouse-coach .header:has(.coach-site-brand) {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }

  .clubhouse-coach .header > .admin-header-actions {
    grid-column: 3;
    justify-self: end;
  }
}

@media (max-width: 800px) {
  .clubhouse-coach .header > .coach-site-brand {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .clubhouse-coach .header > .admin-header-actions {
    justify-self: end;
  }

  .clubhouse-coach .header > .admin-header-actions .identity {
    margin-right: 0;
  }
}

.coach-brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--club-line);
  border-radius: 50%;
}

.coach-brand-mark svg {
  height: 16px;
  width: 16px;
}

.clubhouse-coach:has(.coach-practice-home) .header {
  border-bottom: 2px solid var(--club-gold);
}

.clubhouse-coach:has(.coach-practice-home) .header .header-sponsors {
  display: none;
}

.clubhouse-coach:has(.coach-practice-home) .main {
  background: var(--club-bg);
}

.coach-practice-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.coach-practice-home .student-home-next {
  display: grid;
  gap: 8px;
}

.coach-practice-home .student-home-next button {
  display: grid;
  gap: 2px;
  text-align: left;
}

.coach-home-menu {
  display: none;
}

@media (max-width: 760px) {
  .clubhouse-coach .shell:has(.coach-practice-home) {
    display: flex;
    flex-direction: column-reverse;
  }

  .clubhouse-coach .shell:has(.coach-practice-home):not(:has(.coach-home-menu[aria-expanded="true"])) > aside {
    display: none;
  }

  .coach-practice-home .coach-home-menu {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 20px;
  }

  .clubhouse-coach .shell:has(.coach-home-menu[aria-expanded="true"]) > aside {
    position: fixed;
    z-index: 10;
    top: 112px;
    right: 14px;
    width: min(300px, calc(100% - 28px));
    max-height: 65vh;
    overflow: auto;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    box-shadow: 0 12px 30px #19382c2e;
  }
}

.current-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  align-items: start;
}
.current-package-card {
  border: 1px solid #cbd7c5;
  border-radius: 10px;
  background: #fffdfa;
  overflow-wrap: anywhere;
}
.current-package-card summary {
  padding: 14px 16px;
  cursor: pointer;
}
.current-package-card summary:focus-visible {
  outline: 2px solid #214e3b;
  outline-offset: -3px;
  border-radius: 10px;
}
.current-package-card summary span {
  display: block;
  margin: 4px 0 0 1em;
  color: #435c50;
}
.current-package-details {
  padding: 0 16px 14px;
}

.coach-practice-home :is(.student-welcome-card > div, .student-pro-card > h2) {
  position: relative;
}
.coach-practice-home .practice-photo-edit {
  display: block;
  margin: 4px 0 0 auto;
  padding: 3px 8px;
  min-height: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1.4;
}

.practice-current-pro {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
  color: var(--club-green, #214c3b);
  font-size: 15px;
}
.practice-current-pro[hidden] { display: none; }
.practice-current-pro a { color: inherit; font-size: 13px; }

.booking-audience-note { font-size: .78em; font-weight: 500; white-space: nowrap; }

@media (max-width: 720px) {
  .clubhouse-coach .nav-shared button[data-page="memberships"] { grid-column: 1 / -1; }
  .clubhouse-coach .nav-shared button[data-page="memberships"],
  .clubhouse-student.account-dashboard .student-account-tabs button[data-account-section="packages"] {
    white-space: nowrap;
    font-size: clamp(11px, 3.35vw, 14px);
  }
  :is(button[data-page="memberships"], button[data-account-section="packages"]) .booking-audience-note {
    display: inline-block;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  :is(#account-home, .coach-practice-home) .student-practice-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
  }
  #account-home .student-practice-heading {
    min-height: 44px;
    padding-right: 50px;
  }
  .clubhouse-student.account-dashboard .student-account-layout:has(#account-home:not([hidden])) .student-mobile-menu {
    top: 12px;
  }
  .clubhouse-student.account-dashboard .student-account-layout:has(#account-home:not([hidden])) .student-mobile-menu[aria-expanded="true"] + .student-account-tabs {
    top: 60px;
  }
  #account-home .student-practice-heading h1 {
    font-size: clamp(16px, 5.15vw, 27px);
    white-space: nowrap;
    letter-spacing: -.03em;
  }
  :is(#account-home, .coach-practice-home) .student-practice-heading > div:first-child {
    min-height: 0;
    padding-right: 0;
  }
  :is(#account-home, .coach-practice-home) .student-practice-heading h1 {
    font-size: clamp(20px, 6vw, 29px);
  }
  :is(#account-home, .coach-practice-home) .student-practice-sponsors {
    justify-self: end;
    flex-wrap: nowrap;
    gap: 3px;
  }
  :is(#account-home, .coach-practice-home) .student-practice-sponsors a { padding: 3px 2px; }
  :is(#account-home, .coach-practice-home) .student-practice-sponsors img {
    height: clamp(21px, 6vw, 26px);
    max-width: clamp(32px, 9vw, 44px);
    object-fit: contain;
  }
}

@media (min-width: 761px) {
  .clubhouse-student.account-dashboard .student-account-layout {
    grid-template-columns: minmax(16.5rem, max-content) minmax(0, 1fr);
  }

  .clubhouse-student.account-dashboard .student-account-tabs :is(button, a) {
    white-space: nowrap;
  }

  .student-account-tabs .booking-audience-note {
    display: inline;
  }
}
