/* First Coast APA Matchmaker.
   The look follows poolplayers.com, the APA National Office site. The colors, fonts and spacing below were
   OBSERVED from that website (November 2026); they are not official APA brand standards. If an APA brand
   guide is provided, it wins wherever it differs. Text is larger here (18px vs. the site's 15px) for phones. */
:root {
  --navy: #031f3f;      /* observed: buttons ("Find the APA Near You!"), footer */
  --blue: #0063a8;      /* observed: links and the main menu */
  --cyan: #03a1e1;      /* observed: accent bands, the bar under section titles */
  --red: #ea3d48;       /* observed: "Login" and "Read More" buttons */
  --ink: #0f161d;       /* observed: headings */
  --text: #484848;      /* observed: body text */
  --bar: #ececec;       /* observed: the light top bar behind the logo */
  --bg: #ffffff; --surface: #ffffff; --sunk: #f3f6f9; --line: #dfe4ea;
  --blue-soft: #e6f1fa; --cyan-soft: #e3f5fc; --red-soft: #fdecee; --green: #1d7a45; --green-soft: #e5f4ea;
  --amber: #7a5600; --amber-soft: #fff4d6; --purple: #5b3a96; --purple-soft: #efe9f8;
  --head: "Raleway", Helvetica, Arial, sans-serif;   /* observed: headings */
  --sans: "Lato", Helvetica, Arial, sans-serif;      /* observed: body text and menu */
  --radius: 4px;  /* the site's corners are square; a hint of rounding reads better on phones */
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
img { max-width: 100%; }
h1, h2, h3, h4, .page, .step-head { font-family: var(--head); color: var(--ink); }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* header: logo on the light bar, red sign-in button; a white menu row in blue capitals */
.topbar { background: var(--navy); }  /* the league's logos are made for a dark background */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: block; line-height: 0; }
.logo img { height: 76px; width: auto; }  /* the approved file, scaled only by height: proportions kept */
.mainnav { background: #fff; border-bottom: 1px solid var(--line); }
.mainnav .wrap { display: flex; gap: 4px 22px; flex-wrap: wrap; align-items: center; justify-content: center; padding-top: 12px; padding-bottom: 12px; }
.mainnav a, .mainnav .navlink { color: var(--blue); text-decoration: none; text-transform: uppercase; font: 700 .92rem var(--sans); letter-spacing: .04em;
  background: none; border: 0; padding: 4px 0; cursor: pointer; }
.mainnav a:hover, .mainnav .navlink:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* home: a short welcome, then the three choices front and center */
.welcome { background: linear-gradient(115deg, var(--navy) 0%, #072f63 60%, var(--blue) 100%); color: #fff; text-align: center; padding: 30px 0 64px; }
.welcome h1 { font: italic 700 clamp(1.7rem, 6vw, 2.6rem)/1.15 var(--head); margin: 0 auto; max-width: 20ch; color: #fff; }
.welcome p { margin: 10px auto 0; font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 44ch; }
.choices-main { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 560px; margin: -44px auto 0; position: relative; }
@media (min-width: 900px) { .choices-main { grid-template-columns: repeat(3, 1fr); max-width: 1060px; } }
.choice-card { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 18px 18px 18px 20px; background: #fff; color: var(--ink);
  text-decoration: none; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(3, 31, 63, .14); }
.choice-card:hover, .choice-card:focus-visible { border-top-color: var(--cyan); box-shadow: 0 8px 26px rgba(3, 31, 63, .22); outline: none; }
.choice-card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choice-icon { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }
.choice-icon .icon { width: 28px; height: 28px; }
.choice-text { flex: 1; }
.choice-text b { display: block; font: 700 1.25rem/1.25 var(--head); color: var(--navy); }
.choice-text small { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.4; color: var(--text); }
.choice-go { color: var(--blue); width: 22px; height: 22px; }
@media (min-width: 900px) { .choice-card { flex-direction: column; align-items: flex-start; min-height: 230px; } .choice-go { margin-top: auto; } }
.choices-note { text-align: center; font-size: .95rem; color: #5f6b77; margin: 14px auto 0; max-width: 560px; }
.choices-note .icon { color: var(--blue); }
/* "How it works": small, below the choices */
.how { max-width: 640px; margin: 26px auto 0; padding: 20px 22px; background: var(--sunk); border-radius: var(--radius); }
.how h2 { font-size: 1.25rem; margin: 0 0 10px; }
.how-steps { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: how; }
.how-steps li { counter-increment: how; position: relative; padding: 0 0 10px 40px; font-size: .98rem; line-height: 1.45; }
.how-steps li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .85rem var(--sans); }
.how-steps b { color: var(--ink); }
.how-steps span { display: block; color: var(--text); }
.how .small { margin: 0; }

main { padding-bottom: 50px; }
section { padding: 30px 0 4px; }
h1.page { font-weight: 700; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.1; margin: 28px 0 8px; }
h2 { font-size: 1.7rem; font-weight: 600; line-height: 1.2; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h2 .icon { color: var(--cyan); width: 26px; height: 26px; }
h2.section-title { display: block; text-align: center; font-weight: 500; font-size: 2.1rem; margin: 18px 0 24px; }
h2.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--cyan); margin: 14px auto 0; }  /* observed */
h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.lede { color: var(--text); font-size: 1.08rem; margin: 0 0 18px; max-width: 62ch; }
.muted { color: #5f6b77; }
.small { font-size: .92rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.row { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 1rem; line-height: 1.45; margin: 4px 0; }
.row .icon { margin-top: 3px; color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius); background: var(--sunk); font-size: .88rem; font-weight: 700; color: var(--ink); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.purple { background: var(--purple-soft); color: var(--purple); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: #b3202b; }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.note { padding: 14px 16px; border-radius: var(--radius); background: var(--cyan-soft); border-left: 4px solid var(--cyan); font-size: .98rem; }
.note .icon { color: var(--blue); }
.note.green { background: var(--green-soft); border-color: var(--green); }
.note.amber { background: var(--amber-soft); border-color: #d9a400; color: var(--amber); }

/* flash messages */
.flash { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius); font-weight: 700; border-left: 4px solid; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.error { background: var(--red-soft); color: #b3202b; }

/* buttons: solid and square-cornered, like the national site's */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--navy); color: #fff; font: 700 1rem var(--sans); letter-spacing: .03em; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.15); }
.btn.cta { background: var(--red); text-transform: uppercase; }
.btn.ghost { background: var(--sunk); color: var(--navy); }
.btn.danger { background: transparent; color: #b3202b; border: 1.5px solid #b3202b; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn.big { width: 100%; min-height: 56px; font-size: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
form.inline { display: inline; }

/* forms */
.form label.field { display: block; font-weight: 700; color: var(--ink); margin: 0 0 20px; font-size: 1.05rem; }
.form .hint { display: block; font-weight: 400; color: #5f6b77; font-size: .95rem; margin-top: 2px; line-height: 1.4; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=password], .form input[type=number],
.form input[type=file], .form select, .form textarea {
  display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 12px 14px; border: 1.5px solid #c9d2db; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 1.05rem var(--sans); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--cyan-soft); border-color: var(--blue); }
.form .code { font-size: 1.6rem; letter-spacing: .3em; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 4px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
/* big tappable choices */
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: var(--radius); border: 1.5px solid #c9d2db;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 1rem; cursor: pointer; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); }
.choices.stack { flex-direction: column; align-items: stretch; }
.choices.stack .choice span { width: 100%; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--blue); }

/* the card form: progress, steps, and a Back/Next bar that stays in reach on phones */
.progress { margin: 18px 0 16px; }
.progress-label { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.progress-label b { color: var(--blue); }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.progress-steps li { border-top: 6px solid var(--line); padding-top: 6px; font-size: .78rem; font-weight: 700; color: #7a8692; text-transform: uppercase; letter-spacing: .03em; }
.progress-steps li.on { border-top-color: var(--cyan); color: var(--blue); }
.progress-steps li.now { border-top-color: var(--blue); color: var(--navy); }
.step-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-weight: 700; font-size: 1.4rem; line-height: 1.2; }
.step-head .num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 1rem var(--sans); flex: none; }
.js .step { display: none; }
.js .step.current { display: block; }
.step.card { padding: 22px 20px 6px; }
.step fieldset, .step > label.field { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.step fieldset:last-of-type, .step > label.field:last-child { border-bottom: 0; }
.step legend { font-size: 1.08rem; }
.step-nav { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: space-between; margin: 8px -20px 0;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(6px); }
.step-nav .btn { flex: 1; min-height: 52px; }
.step-nav [data-next] { flex: 2; }

/* cards and matches */
.mycard { border-top: 4px solid var(--cyan); }
.mycard.archived { border-top-color: var(--line); opacity: .85; }
.mycard h2.small-h { font-size: 1.4rem; margin: 26px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.match { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.match:first-child { border-top: 0; }
.avatar { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; background: var(--sunk); display: grid; place-items: center; color: var(--blue); }
.avatar .icon { width: 30px; height: 30px; }
.reasons { margin: 6px 0 0; padding: 0; list-style: none; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; font-size: .98rem; }
.reasons li .icon { margin-top: 4px; color: var(--green); }
.reasons li.caution .icon { color: #c28a00; }
.contact { padding: 14px; border-radius: var(--radius); background: var(--green-soft); border-left: 4px solid var(--green); margin-top: 10px; }
.roster { max-width: 520px; border: 1px solid var(--line); margin-top: 8px; }
.thumb { width: 160px; border: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.log { font-size: .9rem; color: #5f6b77; margin: 8px 0 0; padding-left: 18px; }

/* location guide */
.host { padding: 0; overflow: hidden; }
.host .pic { display: block; width: 100%; height: 170px; object-fit: cover; background: var(--sunk); }
.host .body { padding: 18px 20px 20px; }
.host .miles { float: right; font-weight: 700; color: var(--blue); }
table.plain { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.plain td, table.plain th { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }

/* office */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font: 700 2rem/1 var(--head); }
.stat span { color: #5f6b77; font-size: .92rem; }
.qr { width: 220px; height: 220px; background: #fff; padding: 6px; }

/* footer: navy, cyan column headings */
.sitefoot { background: var(--navy); color: rgba(255,255,255,.85); padding: 34px 0 26px; font-size: .95rem; }
.sitefoot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 28px; }
.sitefoot h4 { color: var(--cyan); font: 500 1.15rem var(--head); margin: 0 0 8px; }
.sitefoot a { display: block; color: #fff; text-decoration: none; margin: 4px 0; }
.sitefoot a:hover { text-decoration: underline; }
.foot-logo img { height: 84px; width: auto; }
.square { margin: 0 auto 10px; max-width: 520px; aspect-ratio: 1 / 1; background: var(--navy); overflow: hidden; }
.square img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sitefoot .fine { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); font-size: .85rem; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar .wrap { min-height: 66px; }
  .logo img { height: 64px; }
  .mainnav .wrap { gap: 2px 16px; }
  .mainnav a, .mainnav .navlink { font-size: .85rem; }
  .match { grid-template-columns: 56px 1fr; }
  .avatar { width: 56px; height: 56px; }
}
