/* Pickleball Explained: clear, plain, fast */
:root {
  --bg: #f5f8f4;
  --surface: #ffffff;
  --ink: #172026;
  --muted: #4f5d66;
  --line: #dbe3e6;
  --brand: #17558a;
  --brand-dark: #0e3557;
  --brand-soft: #e5eff8;
  --accent: #22773a;
  --accent-hover: #185c2c;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(14, 53, 87, 0.08), 0 8px 24px rgba(14, 53, 87, 0.06);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 720px;
  --wide: 980px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, var(--wide)); margin-inline: auto; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 0.85rem 0; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; }
.logo { font-weight: 750; font-size: 1.15rem; color: var(--brand-dark); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); font-weight: 650; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; }
.nav a:hover { color: var(--brand); }

/* Hero */
.hero { padding: 2.25rem 0 1.25rem; }
.hero-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand-dark); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem; }
h1 { margin: 0 0 0.85rem; font-size: clamp(1.7rem, 4.6vw, 2.35rem); line-height: 1.2; letter-spacing: -0.025em; color: var(--brand-dark); }
.lead { margin: 0 0 1.25rem; color: var(--muted); font-size: 1.07rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.cover { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem; }
.cover svg { display: block; width: 100%; }

/* Opt-in card */
.optin { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem 1.35rem; scroll-margin-top: 84px; }
.optin h2 { margin: 0 0 0.35rem; font-size: 1.3rem; color: var(--brand-dark); letter-spacing: -0.02em; }
.optin p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; }
.form-grid { display: grid; gap: 0.7rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1.3fr; align-items: end; } .form-grid .btn { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 650; font-size: 0.9rem; }
.text-input { width: 100%; padding: 0.85rem 0.95rem; font-size: 1.02rem; font-family: var(--font); border: 2px solid var(--line); border-radius: var(--radius); background: #fcfefd; color: var(--ink); outline: none; }
.text-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 119, 58, 0.2); background: #fff; }
.form-hint { margin: 0.75rem 0 0 !important; font-size: 0.84rem !important; color: var(--muted); }
.setup-note { margin: 0.6rem 0 0 !important; font-size: 0.84rem !important; background: #fff8e6; border: 1px solid #f0d78c; border-radius: 8px; padding: 0.5rem 0.7rem; color: var(--ink) !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.9rem 1.4rem; font-size: 1rem; font-weight: 700; font-family: inherit; border: none; border-radius: var(--radius); cursor: pointer; text-decoration: none; transition: background 0.15s; }
.btn-primary { background: var(--accent); color: #fff; white-space: nowrap; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--brand-soft); color: var(--brand-dark); }
.btn-secondary:hover { background: #d3e3f2; color: var(--brand-dark); }

/* Sections */
.section { padding: 1.6rem 0; scroll-margin-top: 84px; }
.section h2 { margin: 0 0 0.85rem; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--brand-dark); }
.section h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--ink); }
.section p { margin: 0 0 1rem; }
.section-intro { color: var(--muted); margin-top: -0.35rem !important; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.card-grid { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.num { display: inline-flex; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand); align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; margin-bottom: 0.5rem; }
.meta { font-size: 0.85rem !important; color: var(--muted); margin-top: 0.35rem !important; }
.cta-band { background: var(--brand-dark); color: #e5eff8; padding: 2rem 0; margin: 1.5rem 0 0; }
.cta-band h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.35rem; }
.cta-band p { margin: 0 0 1.15rem; color: #c5d6e4; }

/* Pages */
.page-main { padding: 2rem 0 3rem; }
.page-main h1 { font-size: 1.85rem; margin-bottom: 0.35rem; }
.page-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.4rem; }
.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 0.55rem; color: var(--brand-dark); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.03rem; margin: 1.25rem 0 0.4rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.tip { background: #fdf3ea; border: 1px solid #f0d3bb; border-radius: var(--radius); padding: 0.9rem 1rem; margin: 1rem 0; font-size: 0.97rem; }
.cta-box { background: var(--brand-soft); border: 1px solid #c6daee; border-radius: var(--radius); padding: 1.3rem 1.2rem; margin: 1.85rem 0; }
.prose .cta-box h2, .cta-box h2 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--brand-dark); }
.related { border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 0.25rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--muted); }
.post-list { display: grid; gap: 1rem; margin-bottom: 1rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.15rem; }
.post-card h2, .post-card h3 { margin: 0 0 0.45rem; font-size: 1.12rem; line-height: 1.35; }
.post-card h2 a, .post-card h3 a { color: var(--brand-dark); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.96rem; }
.read-more { font-weight: 650; font-size: 0.92rem; }
.download { text-align: center; padding: 1.5rem 1rem; }
.download .btn { font-size: 1.05rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.6rem 0 0; }

/* Footer */
.site-footer { background: #0b2236; color: #b9c9d6; padding: 2rem 0 1.5rem; margin-top: 2rem; font-size: 0.88rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.footer-links a { color: #dbe7f1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-disclosure { border-top: 1px solid #21425e; padding-top: 1rem; font-size: 0.8rem; line-height: 1.55; color: #a2b6c5; }
.footer-disclosure a { color: #dbe7f1; }
.footer-copy { margin: 0; font-size: 0.8rem; color: #8299ab; }

/* Site additions */
.placeholder-box { border: 2px dashed #b4531b; background: #fff8f1; border-radius: var(--radius); padding: 0.7rem 0.85rem; margin: 0 0 0.9rem; font-size: 0.86rem; color: var(--ink); }
.placeholder-box strong { color: #93420f; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1rem; }
.steps-list li { counter-increment: s; position: relative; padding-left: 2.4rem; margin-bottom: 0.75rem; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.note { font-size: 0.88rem; color: var(--muted); }
.day-label { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }

/* Free tools (calculators), added 2026-10-08 */
.tool-card { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: 14px; box-shadow: var(--shadow); padding: 1.25rem 1.1rem; margin: 0 0 1.75rem; }
.tool-card h2 { margin: 0 0 0.6rem; font-size: 1.2rem; color: var(--brand-dark); }
.tool-grid { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .tool-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.tool-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 650; color: var(--ink); }
.tool-field.full { grid-column: 1 / -1; }
.tool-input { width: 100%; padding: 0.6rem 0.65rem; font-family: var(--font); font-size: 1rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.tool-input:focus { outline: none; border-color: var(--accent); }
.bf-row { display: grid; gap: 0.5rem; grid-template-columns: repeat(3, 1fr); align-items: end; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 680px) { .bf-row { grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr 0.9fr auto; } }
.bf-row .row-out { font-weight: 800; color: var(--brand-dark); font-size: 1.02rem; padding-bottom: 0.55rem; }
.btn-remove { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 0.55rem 0.7rem; cursor: pointer; font: inherit; font-size: 0.85rem; }
.btn-remove:hover { border-color: var(--accent); color: var(--ink); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.btn-small { padding: 0.6rem 1rem; font-size: 0.93rem; }
.tool-results { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 1rem 0 0.25rem; }
.result-tile { background: var(--brand-soft); border-radius: var(--radius); padding: 0.75rem 0.9rem; }
.result-tile .lbl { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.result-tile .val { display: block; font-size: 1.45rem; font-weight: 800; color: var(--brand-dark); line-height: 1.25; }
.result-big { background: var(--brand-soft); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0 0.25rem; }
.result-big .val { font-size: 1.9rem; font-weight: 800; color: var(--brand-dark); line-height: 1.2; }
.tool-note { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }
.schedule { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.75rem; }
.schedule td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule td:first-child { font-weight: 750; white-space: nowrap; color: var(--brand-dark); width: 6.5rem; }
.tool-list { display: grid; gap: 0.9rem; }
@media (min-width: 640px) { .tool-list { grid-template-columns: 1fr 1fr; } }
.tool-list .card h2, .tool-list .card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
[hidden] { display: none !important; }
@media print { .site-header, .site-footer, .no-print, .cta-box, .breadcrumb { display: none !important; } .tool-card { box-shadow: none; border: 1px solid #999; } body { background: #fff; } }

/* Amazon "What you'll need" box (secondary to the free PDF box; added 2026-10-10) */
.amz-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 0.6rem; margin: 1.5rem 0; }
.prose .amz-box h2, .amz-box h2 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--brand-dark); }
.amz-disclosure { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.6rem; line-height: 1.45; }
.amz-disclosure a { color: var(--muted); }
.amz-lead { font-size: 0.92rem; margin: 0 0 0.6rem; }
.prose .amz-list, .amz-list { list-style: none; padding: 0; margin: 0; }
.prose .amz-list li, .amz-list li { display: grid; gap: 0.15rem; padding: 0.65rem 0; border-top: 1px solid var(--line); margin: 0; }
.amz-name { font-weight: 700; font-size: 0.95rem; }
.amz-note { font-size: 0.9rem; color: var(--muted); }
.amz-link { font-size: 0.88rem; font-weight: 600; justify-self: start; }
@media (min-width: 640px) { .prose .amz-list li, .amz-list li { grid-template-columns: 1fr auto; column-gap: 1rem; } .amz-name, .amz-note { grid-column: 1; } .amz-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; } }
@media print { .amz-box { display: none !important; } }

/* Gift guide pages (2026-10-10) */
.amz-top { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.8rem; }
.gift-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 0.4rem; margin: 0 0 1rem; background: var(--surface); }
.prose .gift-card h3, .gift-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.gift-card p { margin: 0 0 0.6rem; font-size: 0.97rem; }
.gift-skip { color: var(--muted); }
.gift-table td:last-child { white-space: nowrap; }
.badge-new { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--accent); color: #fff; border-radius: 999px; padding: 0.1rem 0.5rem; margin-right: 0.4rem; vertical-align: middle; }

/* Pickleball Explained additions (2026-10-10) */
.logo .ball { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #d7f23a; border: 2px solid var(--brand-dark); margin-right: 0.35rem; vertical-align: -0.05rem; }
.course-box { background: #f3f9e3; border: 1px solid #cfe39a; border-radius: var(--radius); padding: 1.3rem 1.2rem; margin: 1.85rem 0; }
.prose .course-box h2, .course-box h2 { margin: 0 0 0.5rem; font-size: 1.15rem; color: var(--brand-dark); }
.course-box .meta { margin-top: 0.6rem !important; }
.rule-card { border-left: 5px solid #d7f23a; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.75rem 1rem; margin: 1rem 0; box-shadow: var(--shadow); }
.rule-card p { margin: 0; }
.court { display: block; width: 100%; max-width: 560px; margin: 1rem auto; }
.quiz-card { background: var(--surface); border: 2px solid var(--brand-soft); border-radius: 14px; box-shadow: var(--shadow); padding: 1.4rem 1.2rem; margin: 0 0 1.5rem; }
.qbar { height: 10px; background: var(--brand-soft); border-radius: 20px; overflow: hidden; margin: 0 0 0.5rem; }
.qbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
.qmeta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.quiz-card h2 { margin: 0 0 1rem; font-size: 1.25rem; color: var(--brand-dark); }
.opts { display: grid; gap: 0.6rem; }
.opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 1rem; color: var(--ink); background: #f7fafc; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.95rem; cursor: pointer; }
.opt:hover, .opt:focus { border-color: var(--brand); outline: none; }
.linkbtn { background: none; border: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0.4rem 0; }
.result-level { display: inline-block; font-size: 2.6rem; font-weight: 800; line-height: 1; background: #d7f23a; color: var(--brand-dark); padding: 0.4rem 1rem; border-radius: 12px; margin: 0.3rem 0 0.8rem; }
.drill { border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0 0 0.75rem; background: var(--surface); }
.drill .sk { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.drill h3 { margin: 0.1rem 0 0.25rem !important; }
.drill p { margin: 0; color: var(--muted); }
.gear-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 0.4rem; margin: 0 0 1rem; background: var(--surface); }
.prose .gear-card h3, .gear-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.gear-card p { margin: 0 0 0.6rem; font-size: 0.97rem; }
