/* stylelint-disable selector-class-pattern */
:root {
  --cycling-bg: linear-gradient(165deg, #061525 0%, #0a314a 55%, #0f4b4c 100%);
  --cycling-panel: rgba(11, 28, 44, 0.78);
  --cycling-panel-border: rgba(255, 255, 255, 0.12);
  --cycling-text: rgba(232, 244, 255, 0.94);
  --cycling-muted: rgba(216, 235, 255, 0.72);
}

body.page--cycling-coach {
  min-height: 100vh;
  background: var(--cycling-bg);
  color: var(--cycling-text);
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 10px 16px;
  background: rgba(9, 19, 36, 0.86);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.25s ease;
  z-index: 9999;
}

.skip-link:focus {
  top: 12px;
}

main {
  flex: 1;
  padding: clamp(48px, 8vw, 92px) 20px clamp(84px, 12vw, 140px);
}

.stage-wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 6vw, 64px);
}

.stage-hero {
  display: grid;
  gap: 16px;
  text-align: left;
}

.stage-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.stage-hero p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--cycling-muted);
  max-width: 65ch;
}

.page-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cycling-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-meta .byline {
  font-weight: 600;
  color: #ffffff;
}

.page-meta time {
  color: var(--cycling-muted);
}

.page-meta .meta-sep {
  color: var(--cycling-muted);
}

.panel {
  background: var(--cycling-panel);
  border: 1px solid var(--cycling-panel-border);
  border-radius: 22px;
  padding: clamp(20px, 5vw, 36px);
  box-shadow: 0 24px 60px rgba(4, 14, 24, 0.35);
}

.panel h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: #ffffff;
}

.panel p,
.panel li,
.panel dt,
.panel dd {
  color: var(--cycling-muted);
  line-height: 1.7;
}

.metric-why {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--cycling-muted);
  line-height: 1.5;
}

.inputs-grid {
  display: grid;
  gap: clamp(14px, 2.8vw, 18px);
}

.input-group {
  display: grid;
  gap: 8px;
}

.cc-results-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cc-results-head .card__title {
  margin: 0;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-row label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
}

.input-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.cc-advanced {
  display: grid;
  gap: 0.75rem;
}

.cc-advanced .field {
  display: grid;
  gap: 0.35rem;
}

.cc-advanced input[type="text"],
.cc-advanced input[type="number"] {
  width: 100%;
}

.cc-advanced .temp-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

label span {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 20, 34, 0.7);
  color: #e9f9ff;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-grid + .form-actions {
  margin-top: 12px;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.challenge-grid .field {
  margin-bottom: 12px;
}

.cc-faqs {
  display: grid;
  gap: 0.75rem;
}

.cc-faqs .card__header {
  margin-bottom: 0;
}

.cc-faqs .card__body {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.cc-accordion {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.5rem 0.75rem;
}

.cc-accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  outline: none;
  color: #ffffff;
  margin: 0;
}

.cc-accordion summary::-webkit-details-marker {
  display: none;
}

.cc-accordion summary:focus-visible {
  outline: 2px solid rgba(140, 196, 255, 0.85);
  outline-offset: 2px;
  border-radius: 6px;
}

.cc-accordion[open] {
  background: rgba(15, 23, 42, 0.7);
}

.cc-accordion-body {
  padding: 0.5rem 0.25rem 0.25rem;
  display: grid;
  gap: 0.5rem;
}

.cc-accordion-body p {
  margin: 0;
  color: var(--cycling-muted);
}

#challenge-check {
  margin-top: 12px;
}

.form-actions .btn,
.form-actions .btn.btn--secondary {
  padding: 10px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
}

.results-grid {
  display: grid;
  gap: 20px;
}

.result-card {
  background: rgba(6, 20, 34, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(98, 225, 255, 0.24);
  padding: 18px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #8befff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(38, 210, 174, 0.18);
  color: #26d2ae;
  font-weight: 600;
  font-size: 0.9rem;
}

.challenge-steps {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-left: 20px;
}

details.advanced {
  background: rgba(5, 20, 36, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px;
}

details.advanced summary {
  cursor: pointer;
  font-weight: 700;
  color: #e1f7ff;
  outline: none;
}

details.advanced p {
  margin-top: 12px;
}

.how-to-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.how-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.how-links a {
  color: #76efff;
  font-weight: 700;
  text-decoration: none;
}

.how-links a:hover,
.how-links a:focus-visible {
  text-decoration: underline;
}

#cycling-faq .qa {
  display: grid;
  gap: 6px;
}

#cycling-faq h3 {
  margin: 16px 0 4px;
  font-size: 1.1rem;
  color: #8befff;
}

.proto-legal {
  margin-top: clamp(36px, 8vw, 68px);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(200, 224, 240, 0.72);
}

.proto-legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.proto-legal a:hover,
.proto-legal a:focus-visible {
  text-decoration: underline;
}

.ad-slot {
  display: block;
  width: 100%;
  min-height: 90px;
  margin-top: 10rem;
  margin-bottom: 10rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: transparent;
  padding: 18px;
}

:root[data-theme="light"] .ad-slot {
  border-color: rgba(0, 0, 0, 0.12);
}

.ad-slot .ad-placeholder {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.is-ads-disabled .ad-slot .ad-placeholder {
  display: inline-block;
}

.page--cycling-coach .info-btn {
  --info-btn-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--info-btn-size);
  height: var(--info-btn-size);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 28, 46, 0.68);
  color: rgba(225, 245, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(3, 10, 18, 0.45);
  transition: background 0.2s ease, transform 0.18s ease, color 0.2s ease;
}

.page--cycling-coach .info-btn:hover,
.page--cycling-coach .info-btn:focus-visible {
  background: rgba(18, 58, 86, 0.85);
  color: #ffffff;
  transform: translateY(-1px);
}

.page--cycling-coach .info-btn:focus-visible {
  outline: 2px solid rgba(132, 213, 255, 0.75);
  outline-offset: 2px;
}

.page--cycling-coach #coach-form .field {
  gap: 0.45rem;
}

.page--cycling-coach #coach-form .label-row {
  gap: 0.4rem;
  align-items: baseline;
}

.page--cycling-coach #coach-form label {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f4fbff;
}

.page--cycling-coach #coach-form .metric-why {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.page--cycling-coach .cc-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.page--cycling-coach .cc-actions .btn {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(4, 14, 24, 0.4);
}

.page--cycling-coach .cc-actions .btn.btn--secondary {
  background: rgba(10, 31, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.page--cycling-coach .challenge-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.page--cycling-coach .challenge-title .info-btn {
  flex-shrink: 0;
}

.page--cycling-coach .challenge-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page--cycling-coach .challenge-grid .field {
  margin: 0;
  gap: 0.45rem;
}

.page--cycling-coach #challenge-check {
  margin-top: 1rem;
}

.page--cycling-coach .cc-accordion summary {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #f1fbff;
  padding: 0.35rem 0.2rem;
}

.page--cycling-coach .cc-accordion-body {
  padding: 0.4rem 0.5rem 0.3rem;
  gap: 0.4rem;
}

#cycling-faq h3 {
  margin: 16px 0 6px;
  font-size: 1.15rem;
  color: #d4f6ff;
}

.page--cycling-coach .cc-education-cta {
  margin-top: clamp(16px, 3vw, 24px);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 24, 38, 0.62);
  display: grid;
  gap: 6px;
  color: var(--cycling-muted);
}

.page--cycling-coach .cc-education-cta h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 246, 255, 0.88);
}

.page--cycling-coach .cc-education-cta p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .stage-pill-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page-meta {
    font-size: 0.9rem;
  }
}


.page--cycling-coach .stage-wrap a,
.page--cycling-coach .card a,
.page--cycling-coach .panel a,
.how-links a,
.cc-accordion-body a,
.coach-page a,
.content-card a,
.faq a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.page--cycling-coach .stage-wrap a:hover,
.page--cycling-coach .card a:hover,
.page--cycling-coach .panel a:hover,
.how-links a:hover,
.cc-accordion-body a:hover,
.coach-page a:hover,
.content-card a:hover,
.faq a:hover {
  opacity: 0.85;
}

/* === AdSense Pending Approval Layout Fix ===
 * Prevents horizontal overflow when AdSense containers render as
 * empty placeholders with fixed dimensions during account approval.
 * Safe to keep after approval - won't affect live ads.
 */

/* Prevent page-level horizontal overflow */
.page--cycling-coach main {
  overflow-x: hidden;
}

.page--cycling-coach .stage-wrap {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Constrain ad slot containers */
.page--cycling-coach .ad-slot {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Constrain AdSense ins element */
.page--cycling-coach .ad-slot ins.adsbygoogle {
  max-width: 100%;
  width: 100% !important;
  overflow: hidden;
  display: block;
}

/* Prevent AdSense-generated iframes/divs from causing overflow */
.page--cycling-coach .ad-slot ins.adsbygoogle > *,
.page--cycling-coach .ad-slot ins.adsbygoogle iframe,
.page--cycling-coach .ad-slot ins.adsbygoogle ins {
  max-width: 100% !important;
  width: 100% !important;
}

/* === End AdSense Pending Approval Layout Fix === */

/* stylelint-enable selector-class-pattern */

