/*
Theme Name: Tennis Challenge Ladder
Description: WordPress staging port of the Tennis Challenge Ladder site.
Version: 0.2.5
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: tcl-staging
*/

:root {
  --tcl-court: #1b352b;
  --tcl-deep: #132c24;
  --tcl-chalk: #f5f3e9;
  --tcl-paper: #fcfaf3;
  --tcl-ball: #dbf259;
  --tcl-clay: #9e4831;
  --tcl-ink: #203a31;
  --tcl-soft: #506358;
  --tcl-line: #d9ddd2;
  --tcl-header-height: 108px;
}

.tcl-conversion, .tcl-conversion * { box-sizing: border-box; }
.tcl-conversion {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tcl-ink);
  background: var(--tcl-chalk);
}
.tcl-conversion a { color: inherit; }
.tcl-conversion a:focus-visible, .tcl-conversion summary:focus-visible {
  outline: 3px solid #b45835;
  outline-offset: 4px;
}
.tcl-conversion img { display: block; max-width: 100%; }
.tcl-conversion h1, .tcl-conversion h2, .tcl-conversion h3 { margin: 0; line-height: 1; letter-spacing: -.055em; }
.tcl-conversion h2 { font-size: clamp(2.3rem, 5.2vw, 4.85rem); font-weight: 850; }
.tcl-conversion h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.tcl-conversion p { margin: 0; }
.tcl-conversion h2 + p, .tcl-conversion h3 + p { margin-top: 1rem; }
.tcl-conversion section[id] { scroll-margin-top: calc(var(--tcl-header-height) + 16px); }
.tcl-wrap { width: min(100% - 48px, 1216px); margin-inline: auto; }
.tcl-stage-note { padding: 7px 16px; text-align: center; font-size: .83rem; background: var(--tcl-deep); color: var(--tcl-chalk); }
.tcl-skip { position: fixed; z-index: 50; top: 1rem; left: 1rem; translate: 0 -220%; padding: .7rem 1rem; background: var(--tcl-ball); border-radius: 10px; }
.tcl-skip:focus { translate: 0 0; }
.tcl-header { position: sticky; top: 0; z-index: 10; background: var(--tcl-court); color: var(--tcl-chalk); }
.tcl-conversion.admin-bar .tcl-header { top: var(--wp-admin--admin-bar--height, 32px); }
.tcl-header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; min-height: 90px; }
.tcl-logo img { width: clamp(92px, 10vw, 138px); height: 62px; object-fit: contain; }
.tcl-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px; }
.tcl-nav a { border: 1px solid transparent; border-radius: 999px; padding: .4rem .58rem; font-size: .85rem; font-weight: 630; text-decoration: none; white-space: nowrap; }
.tcl-nav a:hover, .tcl-nav [aria-current="location"] { background: #ffffff12; border-color: #ffffff1d; color: var(--tcl-ball); }
.tcl-actions { display: flex; align-items: center; gap: .45rem; }
.tcl-conversion .tcl-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 43px;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: var(--tcl-ball);
  color: var(--tcl-deep);
  font-size: .83rem;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}
.tcl-conversion .tcl-button:hover { background: #edfda2; }
.tcl-hero { position: relative; isolation: isolate; background: var(--tcl-court); color: var(--tcl-chalk); overflow: hidden; }
.tcl-hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.tcl-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #173326f7 0%, #1b352bea 31%, #1b352b80 75%, #172a235c), linear-gradient(0deg, #14271ead, transparent 50%);
}
.tcl-hero-inner { padding-block: clamp(72px, 12vw, 172px) clamp(80px, 10vw, 148px); }
.tcl-conversion .tcl-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: clamp(26px, 5vw, 50px);
  padding: .36rem .75rem;
  background: #ffffff26;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 670;
}
.tcl-tag::before { content: ""; width: .65rem; height: .65rem; background: var(--tcl-ball); border-radius: 50%; }
.tcl-hero h1 { max-width: 850px; font-size: clamp(3.1rem, 9.1vw, 7.4rem); line-height: .94; font-weight: 900; }
.tcl-hero h1 span { color: var(--tcl-ball); }
.tcl-hero h1 + p { max-width: 600px; margin-top: 1.65rem; font-size: clamp(1rem, 2.25vw, 1.24rem); color: #f5f3e9ed; }
.tcl-ribbon { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem clamp(.7rem, 4vw, 2.4rem); padding: .75rem 1rem; background: var(--tcl-ball); font-size: clamp(.81rem, 2vw, 1.18rem); font-weight: 840; text-transform: uppercase; text-align: center; }
.tcl-ribbon span { display: flex; align-items: center; gap: .58rem; }
.tcl-ribbon span::before { content: ""; flex: 0 0 .42rem; width: .42rem; height: .42rem; border-radius: 50%; background: var(--tcl-clay); }
.tcl-section { padding-block: clamp(58px, 9vw, 126px); }
.tcl-section-compact { padding-block: 0; }
.tcl-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 102px); }
.tcl-center { align-items: center; }
.tcl-section h2 + p, .tcl-section h3 + p, .tcl-section details p { color: var(--tcl-soft); }
.tcl-dark { background: var(--tcl-court); color: var(--tcl-chalk); }
.tcl-dark h2 + p, .tcl-dark h3 + p { color: #e4ecd9; }
.tcl-muted { background: #eaece0; }
.tcl-conversion .tcl-kicker { margin-bottom: .85rem; color: var(--tcl-clay); font-size: .83rem; font-weight: 850; text-transform: uppercase; letter-spacing: .145em; }
.tcl-dark .tcl-kicker { color: var(--tcl-ball); }
.tcl-steps { counter-reset: rung; list-style: none; display: grid; gap: .8rem; margin: 0; padding: 0; }
.tcl-steps li { counter-increment: rung; display: flex; align-items: flex-start; gap: 1rem; padding: clamp(1rem, 3vw, 1.8rem); background: var(--tcl-paper); border: 1px solid var(--tcl-line); border-radius: 1.3rem; }
.tcl-steps li::before { content: counter(rung, decimal-leading-zero); display: grid; place-items: center; background: var(--tcl-court); color: var(--tcl-ball); width: 2.6rem; height: 2.6rem; flex: 0 0 2.6rem; border-radius: .8rem; font-weight: 800; }
.tcl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.3rem; }
.tcl-cards article { min-height: 13rem; border: 1px solid #ffffff28; border-radius: 1.3rem; padding: 1.45rem; background: #ffffff09; }
.tcl-cards article:first-child { background: var(--tcl-ball); color: var(--tcl-ink); }
.tcl-cards article:first-child p { color: var(--tcl-ink); }
.tcl-photo { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: clamp(1.1rem, 3vw, 2rem); }
.tcl-feature { overflow: hidden; border-radius: clamp(1.2rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1.1fr 1fr; }
.tcl-feature > div { padding: clamp(1.6rem, 6vw, 4.4rem); }
.tcl-feature > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.tcl-figure { margin: 0; }
.tcl-figure figcaption { margin: .35rem 0 0 .4rem; color: var(--tcl-soft); font-size: .76rem; }
.tcl-conversion .tcl-note { margin-top: 1.3rem; border-left: 3px solid var(--tcl-clay); padding-left: .8rem; font-size: .91rem; color: var(--tcl-soft); }
.tcl-faq details { padding: 1.2rem .15rem; border-block-start: 1px solid var(--tcl-line); }
.tcl-faq details:last-child { border-bottom: 1px solid var(--tcl-line); }
.tcl-faq summary { cursor: pointer; font-weight: 770; }
.tcl-faq details p { margin-top: .7rem; }
.tcl-join { text-align: center; }
.tcl-join .tcl-button { margin-top: 1.5rem; }
.tcl-section-action { margin-top: 1.35rem; }
.tcl-footer { border-top: 1px solid #ffffff24; padding: 2rem 0; }
.tcl-footer .tcl-wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.tcl-footer-stage { font-size: .8rem; }
.tcl-entry { max-width: 800px; }
.tcl-entry h1, .tcl-office-entry h1 { margin-block: 1.5rem; font-size: clamp(2.2rem, 6vw, 5rem); }
.tcl-office-entry { max-width: 1040px; }

.tcl-home-city { border-top: 1px solid var(--tcl-line); background: #eeeee5; }
.tcl-city-entry > a { display: inline-block; margin-bottom: 1.65rem; font-size: .88rem; font-weight: 750; }
.tcl-home-explainer .tcl-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.tcl-home-explainer .tcl-steps { gap: 1rem; }
.tcl-home-explainer .tcl-steps li { border-radius: 1.5rem; }
.tcl-home-explainer .tcl-steps li::before { width: 3.15rem; height: 3.15rem; flex-basis: 3.15rem; }
.tcl-rung-label { color: var(--tcl-clay); font-size: .85rem; font-weight: 800; margin-bottom: .3rem !important; }
.tcl-explainer-note { margin-top: 1.45rem !important; max-width: 29rem; padding: .85rem; background: var(--tcl-paper); border: 1px solid var(--tcl-line); border-radius: 1rem; color: var(--tcl-soft); font-size: .88rem; }
.tcl-rung-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; padding: clamp(1rem, 3vw, 1.8rem); border-radius: 1.5rem; background: #1f2b3b; color: var(--tcl-chalk); font-size: 1.2rem; font-weight: 800; }
.tcl-home-play .tcl-play-header { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 2rem; align-items: end; }
.tcl-play-header h2 { max-width: 42rem; }
.tcl-play-header h2 span { color: #ef9e83; }
.tcl-play-header > div { justify-self: end; max-width: 23rem; }
.tcl-play-header > div p { color: #e4ecd9; }
.tcl-play-header .tcl-button svg { width: 1.05rem; height: 1.05rem; }
.tcl-home-play .tcl-cards { grid-template-columns: 1.3fr 1fr 1fr; }
.tcl-home-play .tcl-cards article { position: relative; overflow: hidden; border-radius: 1.5rem; padding: clamp(1rem, 3vw, 2rem); }
.tcl-home-play .tcl-cards article:first-child { background: #a15039; color: #fffaf0; }
.tcl-home-play .tcl-cards article:first-child p { color: #fffaf0; }
.tcl-home-play .tcl-cards article svg { display: block; width: 2rem; height: 2rem; margin-bottom: 2rem; color: var(--tcl-ball); }
.tcl-home-play .tcl-cards article:first-child svg { color: inherit; }
.tcl-home-play .tcl-cards article::after { content: ""; pointer-events: none; position: absolute; bottom: -2.75rem; right: -2.75rem; width: 7rem; height: 7rem; border: .65rem solid currentColor; opacity: .12; border-radius: 50%; }
@media (max-width: 760px) {
  .tcl-home-explainer .tcl-split, .tcl-home-play .tcl-play-header, .tcl-home-play .tcl-cards { grid-template-columns: 1fr; }
  .tcl-play-header > div { justify-self: start; }
}

@media (max-width: 950px) {
  .tcl-header-inner { grid-template-columns: 1fr auto; min-height: 0; column-gap: .5rem; row-gap: .1rem; padding-block: .4rem .55rem; }
  .tcl-nav { grid-column: 1/-1; grid-row: 2; min-width: 0; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .tcl-logo img { height: 50px; }
}
@media (max-width: 650px) {
  .tcl-wrap { width: calc(100% - 30px); }
  .tcl-header .tcl-button { padding-inline: .65rem; }
  .tcl-split, .tcl-feature, .tcl-cards { grid-template-columns: 1fr; }
  .tcl-cards article { min-height: 0; }
  .tcl-feature > img { max-height: 290px; }
  .tcl-footer .tcl-wrap { align-items: flex-start; flex-direction: column; }
}
