/* Shared style for the uManageClub content pages: free tools, guides, sport pages (the home page keeps its own). */
:root { --paper: #f7f5f0; --card: #ffffff; --ink: #0d1b2a; --muted: #536479; --line: #dce4ec; --brand: #135e96; --soft: #eef4f9; --navy: #0b1f33; --ok: #1d7a4a; --warn: #a15c00; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0a141f; --card: #111f2e; --ink: #e8eef5; --muted: #9aacbf; --line: #1f3246; --brand: #56b6ea; --soft: #0f2233; --ok: #5cc38a; --warn: #e0a64a; --bad: #ff8a80; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0a141f; --card: #111f2e; --ink: #e8eef5; --muted: #9aacbf; --line: #1f3246; --brand: #56b6ea; --soft: #0f2233; --ok: #5cc38a; --warn: #e0a64a; --bad: #ff8a80; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1040px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px/1 "Geist", sans-serif; letter-spacing: -.02em; }
.logo img { height: 32px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.logo b { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 16px/1 "Geist", sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-primary { background: var(--brand); color: #0a141f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--brand); color: #0a141f; } }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); background: var(--card); }
.btn-sm { padding: 9px 14px; font-size: 14.5px; }
.crumbs { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.eyebrow { margin: 18px 0 8px; font: 600 13px/1 "Geist", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
h1 { font: 600 clamp(32px, 6vw, 48px)/1.1 "Geist", sans-serif; letter-spacing: -.03em; margin: 0 0 14px; }
h2 { font: 600 24px/1.25 "Geist", sans-serif; letter-spacing: -.015em; margin: 38px 0 10px; }
h3 { font: 600 18px/1.3 "Geist", sans-serif; margin: 22px 0 6px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
p { margin: 0 0 14px; }
a { color: var(--brand); }
main ul, main ol { padding-left: 22px; margin: 0 0 16px; }
main li { margin: 4px 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid, .grid.three { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--brand); }
a.card .tag { display: inline-block; margin-bottom: 8px; font: 600 12px/1 "Geist", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.faq { margin: 34px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 8px 0 0; }
.cta { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); margin: 30px 0; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); margin: 0 0 16px; }
.more { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.note { font-size: 14.5px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; margin: 14px 0; }
.updated { font-size: 14px; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
table.t th, table.t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }
.scroll { overflow-x: auto; }
footer.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer.foot .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 760px) { footer.foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer.foot h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
footer.foot ul { list-style: none; margin: 0; padding: 0; }
footer.foot li { margin: 5px 0; }
footer.foot a { color: inherit; text-decoration: none; }
footer.foot a:hover { color: var(--brand); text-decoration: underline; }
footer.foot .small { max-width: 1040px; margin: 22px auto 0; padding: 0 16px; }

/* ----- the tools ----- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 3.5vw, 26px); margin: 8px 0 26px; }
.tool h2 { margin: 0 0 12px; font-size: 20px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.f small { font-weight: 400; color: var(--muted); font-size: 13px; }
.f input, .f select, .f textarea { font: 400 16px/1.3 "Geist", system-ui, sans-serif; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0; }
/* iPhone Safari draws date and time boxes at their own width (they ran past the card): make them plain boxes */
.f input[type="date"], .f input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-height: 46px; text-align: left; max-width: 100%; }
.f input::-webkit-date-and-time-value { text-align: left; }
.f textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 7px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.check.done span { color: var(--muted); text-decoration: line-through; }
.result { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 14px 0; }
.result .big { font: 600 clamp(26px, 6vw, 38px)/1.1 "Geist", sans-serif; letter-spacing: -.02em; margin: 0 0 4px; }
.result .sub { color: var(--muted); font-size: 15px; margin: 0; }
.result.warn { border-color: var(--warn); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 8px 0 0; font-size: 16px; }
.kv .tot { font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.kv .r { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.err { color: var(--bad); font-size: 15px; margin: 8px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.tbl td.n, .tbl th.n { text-align: right; }
.tbl input { font: inherit; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; width: 100%; min-width: 60px; }
/* Editable tables (meet events, practice blocks, cost lines): on phones each row becomes a small card with labelled boxes */
@media (max-width: 640px) {
  .f input, .f select, .f textarea, .tbl input, .tbl select { font-size: 16px; }   /* 16px stops iPhone zooming in on tap */
  .tbl.edit thead { display: none; }
  .tbl.edit, .tbl.edit tbody { display: block; }
  .tbl.edit tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
  .tbl.edit td { display: block; padding: 0; border: 0; text-align: left !important; min-width: 0; }
  .tbl.edit td:empty { display: none; }
  .tbl.edit td.wide { grid-column: 1 / -1; order: -1; }
  .tbl.edit.lines tr { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .tbl.edit.lines td.wide { grid-column: 1 / 4; }
  .tbl.edit.lines td.acts { grid-column: 4; order: -1; align-self: end; padding-bottom: 2px; }
  .tbl.edit td.type { order: 5; }
  .tbl.edit td.acts.half { order: 6; grid-column: span 2; align-self: end; }
  .tbl.edit td.full { grid-column: 1 / -1; }
  .tbl.edit td.lead { grid-column: 1 / -1; order: -2; font-weight: 600; font-size: 14px; color: var(--muted); }
  .tbl.edit td.acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
  .tbl.edit td.acts .mini { padding: 9px 14px; font-size: 15px; }
  .tbl.edit td.sum { align-self: end; padding-bottom: 10px; font-weight: 600; }
  .tbl.edit td[data-label]::before { content: attr(data-label); display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .tbl.edit input, .tbl.edit select { width: 100% !important; min-width: 0; text-align: left !important; padding: 10px 11px; border-radius: 10px; background-color: var(--card); }
  .tbl.edit select { padding-right: 30px; }
}
.tbl select, .f select { -webkit-appearance: none; appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536479' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; }
.tbl select { font: inherit; color: var(--ink); background-color: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 30px 5px 8px; }
.qlist { display: grid; gap: 8px; margin: 6px 0 14px; }
.qrow { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--paper); }
.qtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qname { font-weight: 700; }
.qbadge { flex: none; font-size: 13.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.q-yes { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.q-no { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.q-na { color: var(--muted); background: var(--soft); }
.qdet { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.qdet b { color: var(--ink); }
.pbt td { vertical-align: top; white-space: nowrap; }
.pbt td:first-child, .pbt th:first-child { position: sticky; left: 0; background: var(--card); white-space: normal; min-width: 130px; }
.pbdate { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.pbtag { margin-left: 5px; font-size: 11px; font-weight: 600; color: var(--brand); }
.vs { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 10px 0 18px; }
.vs th, .vs td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vs td.y { color: var(--ok); font-weight: 600; }
.vs td.n { color: var(--muted); }
@media (max-width: 640px) {
  .vs thead { display: none; }
  .vs, .vs tbody, .vs tr, .vs td { display: block; }
  .vs tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vs td { border: 0; padding: 2px 0; }
  .vs td:first-child { font-weight: 700; color: var(--ink); padding-bottom: 6px; }
  .vs td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}
.mini { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 6px 10px; font: 500 14px/1 "Geist", sans-serif; cursor: pointer; }
.mini:hover { border-color: var(--brand); color: var(--brand); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pill { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.privacy { font-size: 14px; color: var(--muted); }
.privacy::before { content: "\1F512  "; }
.sw { display: grid; gap: 10px; }
.sw .sk { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.sw .sk .nm { font-weight: 600; }
.sw .sk .tm { font: 600 26px/1 "Geist", sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.sw .sk .laps { grid-column: 1 / -1; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sw .lapbtn { padding: 14px 20px; font-size: 18px; }
@media print {
  footer.foot, .cta, .actions, .more, .faq, .related, .ctas, .noprint, .crumbs, .lead + .ctas { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .tool, .result { border: 0; padding: 0; background: #fff; }
  .printonly { display: block !important; }
}
.printonly { display: none; }
