/* The weekly requirements board (Nut Check, and the Nuts page "This week" view). Every rule is scoped under .pboard so
   it can share a page with other lists. Hand-written; public/ gets a copy. */
.pboard .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; }
.pboard .goals h2 { margin: 0 0 8px; font-size: 18px; }
.pboard .gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 861px) {
  .pboard .gcards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
}
.pboard .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); }
.pboard .g-what { font-size: 12px; font-weight: 700; color: var(--mut); }
.pboard .g-big { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.pboard .g-big small { font-size: 14px; font-weight: 600; color: var(--mut); }
.pboard .g-when { font-size: 13px; color: var(--mut); }
.pboard .nc { background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.pboard .nc-row { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pboard .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pboard .nm .rk { flex: none; width: 20px; text-align: right; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.pboard .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pboard .who .name { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.pboard .who .lv { font-size: 12px; font-weight: 600; color: var(--mut); }
.pboard .who .lv .need { color: #B4232A; font-weight: 700; }
.pboard .cap { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: var(--mut); }
.pboard .cp, .pboard .evs { min-width: 0; }
.pboard .cp, .pboard .evs { padding-left: 28px; }
.pboard .cp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pboard .cp-n small { font-size: 12px; color: var(--mut); font-weight: 500; }
.pboard .cp .st { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.pboard .cp .st.sm { display: block; margin-top: 6px; font-weight: 500; color: var(--mut); }
.pboard .pt { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pboard .pt.p-met { color: #1F6B42; }
.pboard .pt.p-behind, .pboard .pt.p-miss { color: #B4232A; }
.pboard .bar { position: relative; height: 10px; border-radius: 999px; background: #E4EBE5; }
.pboard .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #C9A227; }
.pboard .bar.b-met i { background: #1F6B42; }
.pboard .bar.b-behind i, .pboard .bar.b-miss i { background: #B4232A; }
.pboard .bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .75; border-radius: 1px; }
/* event tiles, tinted like the Daily heat map: green done, red missed, grey everything else */
.pboard .evt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pboard .evt:has(.et:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pboard .evt:has(.et:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pboard .evt:has(.et:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pboard .et { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 4px; border-radius: 10px; background: #F0F4F0; text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pboard .et small { font-size: 11px; color: var(--mut); }
.pboard .et .mk { font-size: 15px; color: var(--mut); }
.pboard .et.e-met { background: #DDEEE2; }
.pboard .et.e-met .mk { color: #1F6B42; font-weight: 700; font-size: 18px; }
.pboard .et.e-miss { background: #F7E2E1; }
.pboard .et.e-miss .mk { color: #B4232A; font-weight: 700; font-size: 18px; }
.pboard .et.e-soon .mk { font-size: 12px; opacity: .7; }
.pboard .et.e-new .mk { font-size: 12px; }
.pboard .nc-head { display: none; }
@media (min-width: 861px) {
  .pboard .nc-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; background: #F4F8F2; border-top: 0; padding: 0; position: sticky; top: 0; z-index: 2; }
  .pboard .nc-head > div { padding: 12px 18px 10px; font-size: 13px; font-weight: 700; }
  .pboard .nc-head .he { padding-bottom: 8px; }
  .pboard .evl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pboard .evl:has(.evk:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pboard .evk { text-align: center; font-size: 12px; font-weight: 600; line-height: 1.2; }
  .pboard .evk span { display: block; }
  .pboard .evk .dd { font-weight: 500; color: var(--mut); }
  .pboard .nc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 0; padding: 0; }
  .pboard .nc-row > div { padding: 18px; }
  .pboard .cp, .pboard .evs { padding-left: 18px; }
  .pboard .cap { display: none; }
  .pboard .et small { display: none; }
  .pboard .et { min-height: 44px; }
}
.pboard 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; }
.pboard button.name:focus-visible { outline: 3px solid var(--taco); outline-offset: 2px; border-radius: 4px; }
body.sheet-open { overflow: hidden; }
.pboard .sheet { position: fixed; inset: 0; z-index: 50; }
.pboard .sheet[hidden] { display: none; }
.pboard .sh-scrim { position: absolute; inset: 0; background: rgba(20, 40, 29, .45); }
.pboard .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) {
  .pboard .sh-box { left: auto; top: 0; width: 520px; max-height: none; border-radius: 0; padding: 24px 24px 0; }
}
.pboard .sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pboard .sh-head h2 { margin: 0; font-size: 22px; }
.pboard .sh-head p { margin: 4px 0 0; font-size: 14px; color: var(--mut); }
.pboard .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); }
.pboard .sh-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.pboard .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); }
.pboard .sh-dsum { color: var(--mut); font-weight: 500; }
.pboard .sh-rows { list-style: none; margin: 0; padding: 0; }
.pboard .sh-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pboard .sh-rows li:first-child { border-top: 0; }
.pboard .sh-l, .pboard .sh-r { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pboard .sh-r { align-items: flex-end; flex: none; }
.pboard .sh-chest { font-size: 15px; font-weight: 600; }
.pboard .sh-src, .pboard .sh-time { font-size: 12px; color: var(--mut); }
.pboard .sh-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pboard .sh-pts { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pboard .sh-rows li.zero .sh-pts { color: var(--mut); font-weight: 500; }
.pboard button.pt { all: unset; box-sizing: border-box; cursor: pointer; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: #C9D8CC; text-underline-offset: 3px; padding: 6px 0; margin: -6px 0; }
.pboard button.pt.p-met { color: #1F6B42; }
.pboard button.pt.p-behind, .pboard button.pt.p-miss { color: #B4232A; }
.pboard button.pt:focus-visible { outline: 3px solid var(--taco); outline-offset: 2px; border-radius: 4px; }
.pboard .sh-days { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.pboard .sh-days:empty { display: none; }
.pboard .sh-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D3DDD5; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pboard .sh-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pboard .who a.name { display: inline-block; padding: 6px 0; margin: -6px 0; color: inherit; }

/* Chest points cell: the number with its status under it; the star and the You card (Nut Check only); the leadership summary (Weekly goals page only) */
.pboard .nm .star { all: unset; flex: none; margin-left: auto; width: 32px; height: 44px; margin-top: -12px; margin-bottom: -12px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer; color: #B9C4BC; }
.pboard .nm .star.on { color: #C9A227; }
 @media (min-width: 861px) { .pboard .nm .star { margin-left: 0; } }
.pboard .nm .star:focus-visible { outline: 3px solid var(--taco); outline-offset: 2px; border-radius: 4px; }
.pboard .you { background: #fff; border-radius: 16px; border-left: 4px solid #C9A227; box-shadow: var(--shadow-soft); padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pboard .you[hidden] { display: none; }
.pboard .you-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mut); }
.pboard .you .star { all: unset; width: 44px; height: 44px; margin: -12px -12px -12px 0; display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; color: #C9A227; }
.pboard .you-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pboard .you-name { font-family: Outfit, sans-serif; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.pboard .you-rank { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pboard .you-pts { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; }
.pboard .you-pts strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.pboard .you-pts strong.p-met { color: #1F6B42; }
.pboard .you-pts strong.p-behind, .pboard .you-pts strong.p-miss { color: #B4232A; }
.pboard .you-ev { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.pboard .you-ev li { display: flex; gap: 6px; }
.pboard .you-ev .mk { font-weight: 700; }
.pboard .you-ev .e-met .mk { color: #1F6B42; }
.pboard .you-ev .e-miss .mk { color: #B4232A; }
.pboard .you-ev .e-soon, .pboard .you-ev .e-wait, .pboard .you-ev .e-none, .pboard .you-ev .e-new { color: var(--mut); }
.pboard .wk-sum { display: grid; gap: 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); padding: 18px; }
.pboard .seg { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; }
.pboard .seg i { display: block; min-width: 6px; }
.pboard .seg .g { background: #1F6B42; } .pboard .seg .y { background: #C9A227; } .pboard .seg .r { background: #B4232A; }
.pboard .cnts { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pboard .cn { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; font-size: 14px; color: var(--mut); }
.pboard .cn b { font-family: Outfit, sans-serif; font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pboard .cn.on { text-decoration: underline; text-underline-offset: 4px; }
.pboard .dotc { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.pboard .d-g { background: #1F6B42; } .pboard .d-y { background: #C9A227; } .pboard .d-r { background: #B4232A; }
.pboard .wk-evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.pboard .wk-ev { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #F0F4F0; }
.pboard .wk-ev.soon { cursor: default; opacity: .7; }
.pboard .wk-ev.on { outline: 2px solid var(--ink); }
.pboard .wk-ev:focus-visible, .pboard .cn:focus-visible { outline: 3px solid var(--taco); outline-offset: 2px; }
.pboard .wk-ev .wk-l { font-size: 12px; font-weight: 700; color: var(--mut); }
.pboard .wk-ev .wk-n { font-family: Outfit, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.pboard .wk-ev.soon .wk-n { font-size: 15px; color: var(--mut); }
.pboard .wk-ev .wk-s { font-size: 12px; color: var(--mut); }
