/* McKinney Aquatic & Fitness Guide — one stylesheet, mobile-first */
:root {
  --white: #FFFFFF;
  --aqua: #E8F4F6;
  --navy: #0B2545;
  --blue: #1B7FA6;
  --blue-ink: #14698A;
  --line: #CFE3E8;
  --text: #0B2545;
  --muted: #3F5670;
  --alert: #FFF7E6;
  --alert-line: #E9C46A;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --radius: 6px;
  --measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.2; margin: 0 0 var(--s4); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.1rem); margin-top: var(--s6); }
h3 { font-size: 1.3rem; margin-top: var(--s5); }
p, ul, ol, dl { margin: 0 0 var(--s4); }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
strong { font-weight: 700; }
.small { font-size: .9rem; color: var(--muted); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: var(--s2); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--navy); }
.brand { min-width: 0; }
.brand .mark { flex: none; }
.brand-text { min-width: 0; }
@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .brand .mark { width: 38px; height: 38px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .nav-toggle { padding: .7rem .65rem; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; }
.brand-sub { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .75rem; font: 500 .9rem var(--sans); color: var(--navy); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.header-inner { flex-wrap: wrap; }
.site-nav { width: 100%; }
.js .header-inner { flex-wrap: nowrap; }
.js .site-nav { position: absolute; left: 0; right: 0; top: 100%; width: auto; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--s2) 16px var(--s4); }
.site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--blue-ink); }
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .header-inner, .js .header-inner { flex-wrap: nowrap; }
  .site-nav, .js .site-nav { display: block; position: static; width: auto; border: 0; background: transparent; }
  .site-nav ul { display: flex; gap: var(--s5); padding: 0; }
  .site-nav a { border: 0; padding: .4rem 0; border-bottom: 2px solid transparent; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
}

/* Lane-line divider: rails with a rope of floats, a navy marker float every eighth */
.lane {
  height: 22px;
  margin: var(--s7) 0;
  background:
    linear-gradient(var(--line), var(--line)) 0 2px / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 19px / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='22'%3E%3Cline x1='0' y1='11' x2='112' y2='11' stroke='%23CFE3E8' stroke-width='1.5'/%3E%3Cg fill='%231B7FA6'%3E%3Ccircle cx='7' cy='11' r='3'/%3E%3Ccircle cx='21' cy='11' r='3'/%3E%3Ccircle cx='35' cy='11' r='3'/%3E%3Ccircle cx='49' cy='11' r='3'/%3E%3Ccircle cx='77' cy='11' r='3'/%3E%3Ccircle cx='91' cy='11' r='3'/%3E%3Ccircle cx='105' cy='11' r='3'/%3E%3C/g%3E%3Ccircle cx='63' cy='11' r='4.6' fill='%230B2545'/%3E%3C/svg%3E") 0 0 / 112px 22px repeat-x;
}
.lane-footer { margin: var(--s8) 0 0; }

/* Hero */
.hero { background: var(--aqua); border-bottom: 1px solid var(--line); padding: var(--s7) 0; }
.hero-grid { display: grid; gap: var(--s6); }
.hero .lede { font-size: 1.15rem; max-width: 60ch; }
.byline { font-size: .9rem; color: var(--muted); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } .hero { padding: var(--s8) 0; } }

.quick-answer { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: var(--s5); }
.qa-list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.qa-list dt { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); padding-top: var(--s3); }
.qa-list dd { margin: 0; padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.qa-list dd:last-of-type { border-bottom: 0; }
@media (min-width: 560px) {
  .qa-list { grid-template-columns: 7.5rem 1fr; }
  .qa-list dt, .qa-list dd { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .qa-list dt:last-of-type, .qa-list dd:last-of-type { border-bottom: 0; }
}
.qa-today, .today-line { margin: var(--s3) 0 0; padding: var(--s3) var(--s4); background: var(--aqua); border-left: 3px solid var(--blue); font-size: .95rem; }

/* Layout with sticky TOC */
.notice-wrap { margin-top: var(--s6); }
.layout-toc { display: grid; gap: var(--s6); margin-top: var(--s6); }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); background: var(--white); }
.toc-title { font-family: var(--serif); font-size: 1.2rem; margin-bottom: var(--s2); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .2rem 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (min-width: 1100px) {
  .layout-toc { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .toc { position: sticky; top: var(--s5); }
}

/* Prose */
.prose { min-width: 0; }
.prose > section, .article-head, .prose > .callout { max-width: var(--measure); }
.prose section > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.article { max-width: 860px; margin: 0 auto; padding-bottom: var(--s4); }
.article-head { padding: var(--s5) 0 var(--s4); border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.article .lede, .lede { font-size: 1.15rem; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: var(--s4) 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin-right: .5rem; color: var(--blue); }
.article .crumbs { max-width: 860px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s4) 0 var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table-wrap:focus-visible { outline-offset: 0; }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.spec caption { text-align: left; padding: var(--s3) var(--s4); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); background: var(--aqua); border-bottom: 1px solid var(--line); }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: .7rem var(--s4); border-bottom: 1px solid var(--line); }
table.spec thead th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--white); border-bottom: 2px solid var(--navy); white-space: nowrap; }
table.spec tbody th { font-weight: 700; color: var(--navy); }
table.spec tbody tr:last-child th, table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:nth-child(even) { background: #F6FBFC; }
table.fees td { font-variant-numeric: tabular-nums; }

/* Callouts and cards */
.callout { background: var(--aqua); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-alert { background: var(--alert); border-left-color: var(--alert-line); }
.icon-grid { display: grid; gap: var(--s4); margin: var(--s5) 0; }
@media (min-width: 640px) { .icon-grid { grid-template-columns: 1fr 1fr; } }
.icon-item { border-top: 2px solid var(--line); padding-top: var(--s4); }
.icon-item h3 { margin: var(--s2) 0 var(--s2); font-size: 1.2rem; }
.icon-item p { margin: 0; font-size: .97rem; }
.two-col { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); background: var(--white); }
.card h3 { margin-top: 0; }
.compact li { margin-bottom: .2rem; }
.example { border: 1px dashed var(--blue); border-radius: var(--radius); padding: var(--s4) var(--s5); margin: var(--s4) 0; background: var(--white); }
.example-title { font-weight: 700; margin-bottom: var(--s2); }
.example p:last-child { margin-bottom: 0; }
.spec-list dt { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.spec-list dd { margin: var(--s2) 0 0; }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--blue); background: radial-gradient(circle, var(--blue) 0 3px, transparent 3.5px); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: var(--s3); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }

/* Contact card and map */
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--aqua); padding: var(--s5); margin: var(--s5) 0; max-width: var(--measure); }
.contact-card h3 { margin-top: 0; }
.contact-card dl { display: grid; grid-template-columns: 1fr; margin: 0 0 var(--s3); }
.contact-card dt { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: var(--s2); }
.contact-card dd { margin: 0; }
@media (min-width: 560px) { .contact-card dl { grid-template-columns: 9rem 1fr; gap: var(--s2) var(--s4); } .contact-card dt { margin: 0; } }
.map { margin: var(--s5) 0; max-width: var(--measure); }
.map iframe { display: block; width: 100%; height: 340px; border: 1px solid var(--line); border-radius: var(--radius); }
.map figcaption { font-size: .85rem; color: var(--muted); margin-top: var(--s2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s3) 0 var(--s2); }

/* Related + sources */
.related, .sources { max-width: var(--measure); margin-top: var(--s7); }
.related-list { list-style: none; padding: 0 !important; display: grid; gap: var(--s3); }
@media (min-width: 640px) { .related-list { grid-template-columns: 1fr 1fr; } }
.related-list a { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); text-decoration: none; background: var(--white); }
.related-list a:hover { border-color: var(--blue); background: var(--aqua); }
.rl-title { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.rl-desc { display: block; font-size: .92rem; color: var(--muted); margin-top: .2rem; }
.sources { border-top: 2px solid var(--navy); padding-top: var(--s4); }
.sources h2 { font-size: 1.4rem; margin-top: 0; }
.sources ul { font-size: .93rem; }

/* Calculator */
.calc { background: var(--aqua); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); margin: var(--s5) 0; }
.calc h3 { margin-top: 0; }
.calc-row { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
@media (min-width: 560px) { .calc-row { grid-template-columns: 10rem 1fr; align-items: center; } }
.calc label { font-weight: 700; }
.calc select, .calc input { font: inherit; color: var(--navy); background: var(--white); border: 1px solid #9EC3CD; border-radius: var(--radius); padding: .5rem .65rem; width: 100%; max-width: 22rem; }
.calc-out { display: block; background: var(--white); border-left: 3px solid var(--blue); padding: var(--s3) var(--s4); }
.calc-out ul { margin: var(--s2) 0 0; padding-left: 1.2rem; }

.email-link { font-size: 1.15rem; font-weight: 700; word-break: break-all; }
.legal h2 { font-size: 1.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: #E3EEF2; padding: var(--s7) 0 var(--s5); }
.site-footer a { color: #BFE3EF; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.35rem; color: var(--white); }
.footer-head { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #9FC9D7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.site-footer .small { color: #B9CCD6; }
.footer-base { border-top: 1px solid #23406A; margin-top: var(--s6); padding-top: var(--s4); }

/* long domains in emails and URLs must wrap on phones */
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; } /* long domains */
