@font-face { font-family: "Gabarito"; font-weight: 400 900; font-display: swap; src: url("assets/fonts/gabarito-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-display: swap; src: url("assets/fonts/figtree-latin.woff2") format("woff2"); }

:root {
  --pine: #0f3b2e; --pine-2: #1b5242; --pine-text: #cfe3d8;
  --ground: #f6faf8; --sheet: #ffffff; --line: #cbd8d0; --line-strong: #82988c;
  --ink: #10231b; --ink-2: #46594f; --action: #0d5a43; --action-hover: #093f2f;
  --urgent: #ad1f16; --urgent-bg: #fde6e2; --clash-bg: #fff0c2;
  --r: 10px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { color-scheme: light; accent-color: var(--action); scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1rem/1.5 "Figtree", system-ui, sans-serif; caret-color: var(--action); }
::selection { background: #ffc629; color: var(--ink); }
h1, h2, h3, .brand { font-family: "Gabarito", "Figtree", sans-serif; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: 2.75rem; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.3rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--action); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1f7fd1; outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* shell */
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--pine); color: #fff; padding: 24px 14px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.rail :focus-visible { outline-color: #ffc629; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; font-weight: 750; color: #fff; text-decoration: none; padding: 0 10px; }
.brand svg { width: 26px; color: #ffc629; }
nav { display: grid; gap: 4px; }
nav a { display: flex; align-items: center; gap: 11px; color: var(--pine-text); text-decoration: none; padding: 10px; border-radius: 8px; font-weight: 550; transition: background .15s, color .15s; }
nav a:hover { background: var(--pine-2); color: #fff; }
nav a[aria-current] { background: #fff; color: var(--pine); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
main { padding: 44px 56px 72px; max-width: 1240px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.head p { margin-top: 6px; font-size: 1.08rem; color: var(--ink-2); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 15px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--sheet); font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink); transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #f1f6f3; border-color: var(--ink-2); }
.btn.main { background: var(--action); border-color: var(--action); color: #fff; }
.btn.main:hover { background: var(--action-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 9px 12px; min-height: 42px; }
::placeholder { color: #5b6d64; opacity: 1; }

/* quarter strip */
.strip { margin-bottom: 44px; }
.days { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 104px; }
.day { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 0 1px 4px; border: 0; background: none; cursor: pointer; min-width: 0; border-radius: 5px; }
.day:hover { background: #e1ebe6; }
.day.now { background: var(--pine); }
.blk { display: block; width: 100%; height: 30px; border-radius: 4px; background: var(--c); }
.blk.ghost { background: transparent; border: 1.5px dashed #9db0a6; }
.blk.past { opacity: .4; }
.slider { appearance: none; padding: 0; min-height: 28px; height: 28px; border: 0; background: none; margin: 0; cursor: grab; display: block; }
.slider:active { cursor: grabbing; }
.slider:focus-visible { outline: none; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #c3d4cb; }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: #c3d4cb; }
.slider::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--pine); border: 0; }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--pine); border: 0; }
.slider:focus-visible::-webkit-slider-thumb { outline: 3px solid #1f7fd1; outline-offset: 2px; }
.slider:focus-visible::-moz-range-thumb { outline: 3px solid #1f7fd1; outline-offset: 2px; }
.months { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.months span { white-space: nowrap; }
.months span:last-child { justify-self: end; }
.under { display: flex; justify-content: space-between; gap: 6px 24px; margin-top: 18px; color: var(--ink-2); }
.key { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; white-space: nowrap; }
.key .blk { width: 14px; height: 18px; }
.fresh b { color: var(--ink); margin-right: 4px; }

/* week */
.group + .group { margin-top: 40px; }
.group > h2 { margin-bottom: 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.item { display: grid; grid-template-columns: 104px 48px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 0; }
.when { line-height: 1.35; font-size: .95rem; color: var(--ink-2); }
.when b { display: block; color: var(--ink); font-size: 1rem; }
.mark { width: 48px; height: 48px; border-radius: 10px; background: var(--c); color: var(--ink); display: grid; place-items: center; font: 750 1.05rem "Gabarito", sans-serif; flex: none; }
.item h3 { font-size: 1.15rem; }
.item h3 a { color: inherit; text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.meta { font-size: .95rem; color: var(--ink-2); }
.notice { color: var(--urgent); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.clash { background: var(--clash-bg); border-radius: var(--r); padding: 12px 16px; margin-bottom: 12px; }
.clash b { margin-right: 6px; }
.clash + .group { margin-top: 28px; }
.empty { padding: 14px 0; color: var(--ink-2); }
.empty b { display: block; color: var(--ink); }

/* clubs */
.dir { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.pick { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r); text-decoration: none; color: inherit; font-weight: 550; line-height: 1.25; transition: background .15s; }
.pick .mark { width: 40px; height: 40px; border-radius: 8px; font-size: .95rem; }
.pick:hover { background: #e7f0eb; }
.pick[aria-current] { background: #d5eade; }
.club { display: grid; gap: 26px; }
.club-top { background: var(--c); padding: 48px 32px 28px; border-radius: 14px; }
.club-top h2 { font-size: 2.5rem; font-weight: 750; }
.club-top p { font-size: 1.15rem; margin-top: 6px; }
dl { margin: 0; display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 12px 20px; }
dt { color: var(--ink-2); }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
details { border-top: 1px solid var(--line); padding-top: 16px; margin-top: -6px; }
summary { font: 650 1.15rem "Gabarito", sans-serif; cursor: pointer; }
details p { margin-top: 10px; max-width: 65ch; }
.lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.lines li { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 20px; }
.lines .num { color: var(--ink-2); }


@media (max-width: 1100px) {
  .dir { grid-template-columns: 240px minmax(0,1fr); gap: 32px; }
  main { padding: 36px 32px 56px; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .rail { position: static; height: auto; padding: 14px 12px 8px; gap: 10px; }
  .under { flex-direction: column; }
  nav { display: flex; overflow-x: auto; }
  nav a { white-space: nowrap; padding: 9px 12px; }
  nav .ico { display: none; }
  main { padding: 22px 16px 48px; }
  h1 { font-size: 2rem; }
  .dir { grid-template-columns: minmax(0,1fr); }
  .item { grid-template-columns: 48px minmax(0,1fr) auto; gap: 6px 14px; }
  .item .when { grid-column: 1 / -1; }
  .item .when b { display: inline; margin-right: 6px; }
  .item .gcal { grid-column: 3; grid-row: 2; width: 44px; min-height: 44px; padding: 0; }
  .gcal span { display: none; }
  .item .notice { grid-column: 2 / -1; }
  .day { padding: 0 0 2px; }
  .club-top { padding: 32px 20px 22px; }
  dl, .lines li { grid-template-columns: minmax(0,1fr); gap: 2px; }
  dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
