/* Nut Check (public page): only what site/css doesn't already have. One page, no menu. Phone first: most of the
   clan checks this from the game on their phone (the user, Nov 16: less squished, no bars or %, goals above). */
.pub { padding-bottom: 110px; }  /* room for the coconut at the bottom */
.wkrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pboard { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pboard .find .field { min-height: 44px; }

/* The week's goals: one card per rule, big number first (2 across on phones, one row on wide screens) */
.goals h2 { margin: 0 0 8px; font-size: 18px; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 861px) { .gcards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; } }
.gcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border-radius: 12px;
  border-left: 4px solid #1F6B42; box-shadow: var(--shadow-soft); }
.g-what { font-size: 12px; font-weight: 700; color: var(--mut); }
.g-big { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.g-big small { font-size: 14px; font-weight: 600; color: var(--mut); }
.g-when { font-size: 13px; color: var(--mut); }

/* The list: one grid row per nut. Widths live here so the header and every row line up. */
.nc { --c-name: minmax(0, 1fr); --c-pts: 52px; --c-ev: 48px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); }
/* Wide screens: every number column the same width and centred, so the gaps between them match (the user, Nov 16) */
@media (min-width: 861px) {
  .nc { --c-name: minmax(220px, 2fr); --c-pts: minmax(96px, 1fr); --c-ev: minmax(96px, 1fr); }
  .nc-head > .nc-h.pt, .nc-row > .pt { text-align: center; }
}
.nc-row { display: grid; align-items: center; column-gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.nc-head { position: sticky; top: 0; z-index: 2; background: #F4F8F2; border-top: 0; border-radius: 16px 16px 0 0;
  padding-top: 10px; padding-bottom: 10px; }
.nc-head > .nc-h { font-size: 12px; font-weight: 700; color: var(--mut); white-space: nowrap; }
.nc-h.nm { padding-left: 28px; }
.nc-h.pt { text-align: right; }
.nc-h.rq { text-align: center; line-height: 1.2; }
.nc-h.rq > span { display: block; }
.nc-h.rq > .dt { font-weight: 500; }

.nm { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nm .rk { flex: none; width: 20px; text-align: right; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.who .name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: break-word; }
.who .st { font-size: 12px; font-weight: 700; }
.who .st { color: var(--ink); font-weight: 600; }

.pt { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt.p-met { color: #1F6B42; }
.pt.p-behind, .pt.p-miss { color: #B4232A; }

.nc-row:not(.nc-head) > .rq { text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-met { color: #1F6B42; font-weight: 700; font-size: 18px !important; }
.r-miss { color: #B4232A; font-weight: 700; }
.r-wait { color: var(--mut); }
.r-soon, .r-none { color: #B9C4BC; }
.nc-row:not(.nc-head) > .r-soon { font-size: 12px; }
.r-new { color: var(--mut); font-size: 13px !important; }
/* Phones: fixed roomy columns; the list scrolls sideways when a week has more events than fit, name pinned */
@media (max-width: 860px) {
  .nc { --c-name: 150px; --c-pts: 68px; --c-ev: 64px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    /* a soft shadow on the right edge says "more this way" until you've scrolled to the end */
    background: linear-gradient(to left, #fff 40%, rgba(255, 255, 255, 0)) 100% 0 / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 100% 50%, rgba(20, 40, 29, .38), rgba(20, 40, 29, 0)) 100% 0 / 16px 100% no-repeat scroll, #fff; }
  .nc-row { width: max-content; min-width: 100%; box-sizing: border-box; padding: 14px 12px 14px 0; column-gap: 4px; }
  .nc-head { position: static; }
  .nc-row > .nm { position: sticky; left: 0; z-index: 1; background: #fff; align-self: stretch; align-items: center; }
  .nc-head > .nm { background: #F4F8F2; }
  .nm { gap: 6px; }
  .pt { font-size: 15px; }
  .who .name, button.name { font-size: 15px; }
}

/* A name you can tap: opens their chest list */
button.name { all: unset; cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: break-word;
  text-decoration: underline; text-decoration-color: #C9D8CC; text-underline-offset: 3px; }
button.name:focus-visible { outline: 3px solid var(--taco); outline-offset: 2px; border-radius: 4px; }

/* Chest list: a bottom sheet on phones, a side panel on wide screens */
body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sh-scrim { position: absolute; inset: 0; background: rgba(20, 40, 29, .45); }
.sh-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 0; }
@media (min-width: 861px) { .sh-box { left: auto; top: 0; width: 520px; max-height: none; border-radius: 0; padding: 24px 24px 0; } }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sh-head h2 { margin: 0; font-size: 22px; }
.sh-head p { margin: 4px 0 0; font-size: 14px; color: var(--mut); }
.sh-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D3DDD5; background: #fff; font-size: 16px; cursor: pointer; color: var(--ink); }
.sh-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.sh-day { position: sticky; top: 0; display: flex; justify-content: space-between; background: #F4F8F2; margin: 0 -16px;
  padding: 8px 16px; font-size: 12px; font-weight: 700; color: var(--ink); }
.sh-dsum { color: var(--mut); font-weight: 500; }
.sh-rows { list-style: none; margin: 0; padding: 0; }
.sh-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sh-rows li:first-child { border-top: 0; }
.sh-l, .sh-r { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sh-r { align-items: flex-end; flex: none; }
.sh-chest { font-size: 15px; font-weight: 600; }
.sh-src, .sh-time { font-size: 12px; color: var(--mut); }
.sh-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-pts { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-rows li.zero .sh-pts { color: var(--mut); font-weight: 500; }
