/* Club profile theme: use the site's black, charcoal, off-white and lime palette. */
.profile-body {
  --profile-black: #111211;
  --profile-panel: #202220;
  --profile-line: #454945;
  --profile-grey: #a5aaa2;
  --profile-paper: #faecd2;
  --profile-lime: #dffc3a;
  margin: 0;
  color: var(--profile-paper);
  background: var(--profile-black);
  font-family: Arial, Helvetica, sans-serif;
}

/* Main profile frame: counter the shared page margins and let the content set its height. */
.profile-main {
  box-sizing: border-box;
  width: 85vw;
  margin: 0 auto;
  padding: 112px clamp(18px, 5vw, 64px) 58px;
  color: var(--profile-paper);
  background: var(--profile-black);
}
.profile-main div { border-bottom: 0; }
.profile-status { margin: 0; padding: 24px 0; color: var(--profile-grey); }

/* Header row: keep club identity on the left and the club actions beside it. */
.profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--profile-line);
}
.profile-heading__identity { min-width: 0; }
.profile-eyebrow { margin: 0 0 10px; color: var(--profile-lime); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.profile-eyebrow a { color: inherit; text-decoration: none; }
.profile-eyebrow a:hover,
.profile-eyebrow a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.profile-heading h1 { margin: 0; color: var(--profile-paper); font-size: clamp(32px, 5vw, 58px); line-height: .98; letter-spacing: -.055em; text-shadow: 0 0 2px rgba(250, 236, 210, .9), 0 0 6px rgba(250, 236, 210, .32), 0 0 12px rgba(250, 236, 210, .14); }
.profile-information-date { margin: 10px 0 0; color: var(--profile-grey); font-size: 11px; line-height: 1.5; }
.profile-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content:flex-end; gap: 9px; }
.profile-action {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--profile-black);
  background: var(--profile-lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}
.profile-action:hover { color: var(--profile-black); background: var(--profile-paper); }
.profile-action--secondary { color: var(--profile-paper); background: transparent; box-shadow: inset 0 0 0 1px var(--profile-line); }
.profile-action--secondary:hover { color: var(--profile-lime); background: var(--profile-panel); }
.profile-action:focus-visible { outline:2px solid var(--profile-lime); outline-offset:3px; }
.profile-actions [hidden], .profile-share-feedback[hidden], .profile-share-feedback input[hidden] { display:none; }
.profile-share-feedback { margin:0 0 18px; color:var(--profile-grey); font-size:13px; }
.profile-share-feedback p { margin:0 0 6px; }
.profile-share-feedback input { box-sizing:border-box; width:min(100%, 580px); padding:10px; background:var(--profile-black); color:var(--profile-paper); border:1px solid var(--profile-line); }
.profile-calendar-action { display:flex; flex-direction:column; align-items:flex-end; gap:4px; max-width:100%; }
.profile-calendar-hint { color:var(--profile-grey); font-size:11px; line-height:1.4; }
.profile-calendar-hint[hidden] { display:none; }
.profile-calendar-download { min-height:34px; padding:6px 12px; font-size:11px; letter-spacing:.05em; white-space:nowrap; }
.profile-calendar-download,
.profile-calendar-download:hover,
.profile-calendar-download:focus-visible {
  color: #fff;
  background: var(--profile-black);
  box-shadow:inset 0 0 0 1px var(--profile-line);
}

/* Overview: pair a compact club photo with the editable facts and introduction. */
.profile-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 3vw, 34px);
  padding: 26px 0 30px;
  border-bottom: 1px solid var(--profile-line);
}
.profile-photo {
  display: block;
  width: 100%;
  height: min(360px, 50vh);
  height: min(360px, 50svh);
  min-height: 0;
  max-height: 50vh;
  box-sizing: border-box;
  object-fit: cover;
  filter: grayscale(1);
  background: var(--profile-panel);
}
.profile-photo--missing { display: grid; place-items: center; color: var(--profile-grey); font-size: 12px; }

/* Keep the photo treatment and brand colours when the browser builds a PDF. */
@media print {
  .profile-body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  img.profile-photo {
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.profile-main .profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  box-sizing: border-box;
  padding: clamp(16px, 2.5vw, 28px);
  border: 1px solid var(--profile-line);
  background: var(--profile-panel);
}
.profile-week h2 { margin: 0 0 12px; color: var(--profile-paper); font-size: 25px; letter-spacing: -.04em; scroll-margin-top: calc(var(--site-nav-height, 100px) + 20px); }
.profile-details-list { margin: 0; border-top: 1px solid var(--profile-line); }
.profile-detail-row {
  display: grid;
  grid-template-columns: minmax(105px, .42fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--profile-line);
}
.profile-main .profile-detail-row { border-bottom: 1px solid var(--profile-line); }
.profile-detail-row dt { color: var(--profile-lime); font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.profile-detail-row dd { margin: 0; color: var(--profile-paper); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

/* Detail links: retain the text colour while making league and booking destinations recognisable. */
.profile-league-link, .profile-booking-link { color:inherit; text-decoration:underline; text-underline-offset:3px; }

.profile-league-link:hover, .profile-booking-link:hover { color:var(--profile-lime); }
.profile-league-link:focus-visible, .profile-booking-link:focus-visible { outline:2px solid var(--profile-lime); outline-offset:3px; }

/* Club introduction: span the full profile width between the overview and weekly calendar. */
.profile-about { width: 100%; padding: 26px 0 30px; border-bottom: 1px solid var(--profile-line); }
.profile-about h2 { margin: 0 0 12px; color: var(--profile-lime); font-size: 25px; letter-spacing: -.04em; text-transform: uppercase; }
.profile-about p { width: 100%; margin: 0; color: var(--profile-paper); font-size: 14px; line-height: 1.7; }
/* Separate About paragraphs so the club prompts are easy to read. */
.profile-about p + p { margin-top: 14px; }
/* Empty About action: a visible email link with space for touch and keyboard interaction. */
.profile-about-update { display:inline-flex; align-items:center; min-height:44px; color:var(--profile-lime); font-size:12px; text-decoration:none; }
.profile-about-update:hover { color:var(--profile-lime); }
.profile-about-update:focus-visible { outline:2px solid var(--profile-lime); outline-offset:3px; }

/* Weekly calendar: only scheduled training days occupy columns at every viewport. */
.profile-week { padding-top: 16px; }
.profile-week__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.profile-week__heading h2 { margin-bottom: 0; line-height:1.15; }
.profile-week__heading p { margin: 0; color: var(--profile-grey); font-size: 13px; }
.profile-week__grid { display: grid; grid-template-columns: repeat(var(--profile-training-days, 1), minmax(0, 1fr)); border-top: 1px solid var(--profile-line); border-left: 1px solid var(--profile-line); }
.profile-week__empty-summary { grid-column:1 / -1; margin:0; padding:14px; border-right:1px solid var(--profile-line); border-bottom:1px solid var(--profile-line); color:var(--profile-grey); font-size:14px; }
.profile-day { min-width: 0; min-height: 102px; padding: 10px 8px; border-right: 1px solid var(--profile-line); border-bottom: 1px solid var(--profile-line); }
.profile-main .profile-day { border-bottom: 1px solid var(--profile-line); }
.profile-day__name { margin: 0 0 10px; color: var(--profile-grey); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.profile-session { margin: 0 0 8px; padding: 7px 6px; border-left: 2px solid var(--profile-lime); background: var(--profile-panel); }
.profile-session .session-title { display: block; margin-bottom: 5px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
/* Session address tools: keep copy actions compact, readable and reachable by keyboard. */
.profile-copy-address { display:inline-flex; align-items:center; min-height:44px; max-width:100%; margin-top:8px; padding:6px 10px; border:1px solid var(--profile-line); background:var(--profile-black); color:var(--profile-paper); font:700 12px/1.3 Arial, Helvetica, sans-serif; cursor:pointer; }
.profile-copy-address:hover { color:var(--profile-lime); border-color:var(--profile-lime); }
.profile-copy-address:disabled { opacity:.6; cursor:wait; }
.profile-copy-address:focus-visible, .profile-address-manual:focus-visible { outline:2px solid var(--profile-lime); outline-offset:2px; }
.profile-copy-address.is-copied { border-color:var(--profile-lime); color:var(--profile-lime); }
.profile-session .profile-copy-address-status--success { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; padding:0; }
.profile-address-manual { display:block; box-sizing:border-box; width:100%; min-width:0; margin-top:8px; padding:8px; border:1px solid var(--profile-line); background:var(--profile-black); color:var(--profile-paper); font:12px/1.4 Arial, Helvetica, sans-serif; resize:vertical; }
.profile-session time { display: block; color: var(--profile-lime); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.profile-session span { display: block; margin-top: 4px; color: var(--profile-grey); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
/* Keep the venue charge inline and highlight only the amount. */
.profile-session .session-fee { color: var(--profile-lime); font-weight: inherit; }
.profile-empty { color: #747971; font-size: 10px; }
.profile-week__notice { margin: 13px 0 0; color: var(--profile-grey); font-size: 13px; line-height: 1.5; }

/* Let larger timetable text reflow into fewer columns on tablets and phones. */
.profile-mobile-actions { display: none; }
@media (max-width: 1040px) {
  /* Mobile profiles: place the club photo above the full-width details table. */
  .profile-overview { grid-template-columns: 1fr; gap: 18px; }
  /* Mobile timetables: omit empty days and let the recorded sessions fill the available width. */
  .profile-week__grid { grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  /* Each profile supplies its own measured minimum; all text stays visible without scrolling. */
  .profile-week .profile-session { box-sizing:border-box; min-height:var(--profile-session-height, 0px); }
  .profile-week__grid--measuring .profile-session { min-height:0; }
  /* Reserve space beneath the footer and keep links clear of phone safe areas. */
  .profile-has-mobile-actions { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .profile-mobile-actions:not([hidden]) {
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    display: flex;
    gap: 10px;
    box-sizing: border-box;
    padding: 12px max(18px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--profile-line);
    background: var(--profile-black);
  }
  .profile-mobile-actions .profile-action { flex: 1; min-width: 0; min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
  .profile-mobile-actions a:focus-visible { outline: 2px solid var(--profile-paper); outline-offset: 3px; }
  /* Leave menus and privacy/accessibility controls unobstructed while they are open. */
  .site-nav-open .profile-mobile-actions,
  body:has(.cookie-banner:not([hidden])) .profile-mobile-actions,
  body:has(dialog[open]) .profile-mobile-actions { display: none; }
}

@media (max-width: 760px) {
  .profile-main { width: 92vw; }
  .profile-detail-row { grid-template-columns: minmax(82px, .4fr) minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  .profile-main { width: 100%; padding: 84px 18px 40px; }
  .profile-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .profile-actions { width: 100%; }
  .profile-action { flex: 1; }
  .profile-overview { grid-template-columns: 1fr; gap: 18px; }
  .profile-week__heading { align-items: flex-start; flex-direction: column; gap:8px; }
  .profile-week__grid { grid-template-columns:minmax(0, 1fr); }
}

/* Compact payment table stays on the left, with quiet rules and no outer box. */
.profile-cost__table { width:100%; max-width:580px; border-collapse:collapse; table-layout:fixed; text-align:left; }
.profile-cost__caption { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.profile-cost__table th, .profile-cost__table td { padding:16px 14px 16px 0; vertical-align:top; overflow-wrap:anywhere; }
.profile-cost__table thead th { color:var(--profile-grey); font-size:13px; font-weight:400; }
.profile-cost__table th:first-child { width:40%; }
.profile-cost__table tbody th { color:var(--profile-paper); font-size:15px; font-weight:600; }
.profile-cost__table tbody tr { border-top:1px solid var(--profile-line); }
.profile-cost__amount { color:var(--profile-paper); font-size:17px; line-height:1.5; white-space:pre-line; }
.profile-cost__table .profile-cost__details { display:block; margin-top:5px; color:var(--profile-grey); font-size:14px; line-height:1.5; }
.profile-cost .profile-cost__notes { max-width:580px; margin-top:18px; }
.profile-cost__contact .profile-action { margin-top:12px; }
@media(max-width:480px) {
  .profile-cost__table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .profile-cost__table tbody th, .profile-cost__table tbody td { display:block; width:auto; padding:12px 0 0; }
  .profile-cost__table tbody td { padding:5px 0 12px; }
}

.profile-cost__booking { margin-top:18px; padding-top:18px; border-top:1px solid var(--profile-line); }
.profile-cost__booking h3 { margin:0 0 8px; color:var(--profile-paper); font-size:22px; line-height:1.3; }
