/* /log/ navigation: the dateline, the month strip, the pinned previous/next. Written into every page by
   ops/log_nav.py; this is the one stylesheet for it (the old per-page .strip CSS is gone). No JavaScript. */

/* The dateline: weekday first, then where it sits in the challenge. */
.dateline b { font-weight: 600; color: var(--fg); }

/* The month: five weeks (Evolutions), a day per cell, the weekday under it. Filled = logged. */
.month { margin-top: 3rem; }
.month-ends { display: flex; justify-content: space-between; }
.weeks { display: flex; gap: clamp(5px, 1.3vw, 16px); margin-top: 0.75rem; }
.wk { flex: var(--n) 1 0; min-width: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
      gap: clamp(2px, 0.5vw, 6px); list-style: none; margin: 0; padding: 0; }
.wk li { margin: 0; padding: 0; min-width: 0; }
.wk a, .wk span { display: block; color: inherit; text-decoration: none; }
.wk i { display: block; position: relative; height: clamp(44px, 8vw, 88px); border: 1px solid rgba(255,255,255,0.16); border-radius: 4px; }
.wk a i { background: #f3f1ec; border-color: #f3f1ec; }
.wk a:hover i, .wk a:focus-visible i { outline: 2px solid var(--fg); outline-offset: 2px; }
.wk a:focus-visible { outline: none; }
.wk [aria-current] i { outline: 2px solid var(--fg); outline-offset: 3px; }
.wk .bday i { border-color: #E76F51; }
/* Planning days (Look Back, Game Plan) and the named ones carry a dot: solid once logged, a ring before. */
.wk .k i::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 7px; height: 7px; margin-left: -3.5px;
                  border-radius: 50%; border: 1.5px solid #E76F51; }
.wk .k a i::after { background: #E76F51; }
.wk small { display: block; margin-top: 0.45rem; text-align: center; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--muted); }
.wk [aria-current] small { color: var(--fg); font-weight: 600; }

/* Previous / next, always in reach. A bar along the bottom until there's room beside the column. */
.pin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
       gap: 1rem; padding: 0.65rem clamp(1.75rem, 5vw, 4.5rem) calc(0.65rem + env(safe-area-inset-bottom));
       background: rgba(0,0,0,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
       border-top: 1px solid rgba(255,255,255,0.14); font-size: 0.95rem; }
.pin a { color: var(--fg); text-decoration: none; padding: 0.45rem 0; white-space: nowrap; }
.pin a span { font-size: 1.35em; line-height: 0; vertical-align: -0.06em; }
.pin a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.pin .here { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
body:has(.pin) { padding-bottom: calc(clamp(1.75rem, 5vw, 4.5rem) + 3.6rem); }

@media (max-width: 600px) {
  .wk small { font-size: 0.55rem; letter-spacing: 0; }
  .wk .k i::after { width: 5px; height: 5px; margin-left: -2.5px; bottom: 5px; border-width: 1px; }
}
/* Room beside the 72rem column: the arrows move to the screen edges, the bar goes. */
@media (min-width: 1400px) {
  .pin { top: 50%; bottom: auto; transform: translateY(-50%); padding: 0 1.6rem; background: none; border: 0;
         -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  .pin .here { display: none; }
  .pin a { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
           font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
  .pin a span { order: -1; font-size: 3.4rem; font-weight: 200; line-height: 0.8; color: var(--fg); vertical-align: 0; }
  .pin a:hover { color: var(--fg); }
  body:has(.pin) { padding-bottom: clamp(1.75rem, 5vw, 4.5rem); }
}
