/* home screen: phone first (boards Main, Home-FirstWeek, Home-Paused, Home-Confirmed), computer from 900px (Home-Desk). */

/* ---- phone: the cobalt hero ---- */
.home-hero { background: var(--cobalt); color: var(--white); padding: 16px 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.home-hero p { font-size: 13px; line-height: 1.4; }
.home-hero .hh-tier { font-size: 15px; }
.hh-top { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.hh-hi { font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.3; }
.hh-me { display: inline-flex; border-radius: 50%; text-decoration: none; }
.hh-mark { display: block; color: inherit; text-decoration: none; border-radius: 50%; }
.home-hero .score-mark span { font-size: 66px !important; }
.home-hero :focus-visible, .home-panel :focus-visible { outline-color: var(--white); }
/* Not judged yet: every stroke faint, none drawn. */
.provisional .score-mark svg path:nth-of-type(n + 2) { display: none; }

/* ---- phone: flat sections in the board's order ---- */
.home-page { padding: 20px 24px 40px; gap: 24px; }
.home-top, .home-cards { display: contents; }
.hblk { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hb-slot { order: 1; gap: 10px; }
.hb-moved { order: 2; }
.hb-counts { order: 3; }
.hb-thanks { order: 4; }
.hb-week { order: 5; }
.hb-ninety { order: 6; gap: 10px; }
.hb-mgr { order: 7; gap: 12px; }
.hblk .rule { margin: 8px 0; }

.hs-title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.hs-body { font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.bh { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.bh-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mv-all { font-size: 14px; }

/* the intro */
.in-head { display: flex; align-items: center; gap: 18px; }
.in-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.in-acts { display: flex; align-items: center; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.in-acts .link { font-size: 14px; }
.in-why .link { font-size: inherit; font-weight: 400; }
.in-answer .btn { flex: 1; min-height: 48px; font-weight: 500; }
.stack-phone { flex-direction: column; align-items: stretch; }
.stack-phone .btn { min-height: 48px; font-weight: 500; }
.in-foot { font-size: 13px; line-height: 1.4; color: var(--soft); }

/* lines */
.bl-lines { display: flex; flex-direction: column; gap: 6px; }
.bl-lines li, .bl-p, .th-list p { font-size: 14px; line-height: 1.45; color: var(--soft); }
.bl-p .label { font-size: 14px; }
.hblk > p.soft:not(.small) { font-size: 14px; }
.th-list { display: flex; flex-direction: column; gap: 6px; }
.th-list li { display: flex; align-items: flex-start; gap: 12px; }
.th-list strong { font-weight: inherit; color: inherit; }

/* your week */
.wk-goal { display: flex; flex-direction: column; gap: 4px; }
.wk-goal-t { font-size: 18px; line-height: 1.35; font-weight: 400; }
.wk-steps li { min-height: 44px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.wk-steps li:last-child { border-bottom: 0; }
.wk-steps svg { flex: none; }
.wk-line { flex: 1; font-size: 15px; }
.wk-pts { font-size: 14px; font-weight: 500; color: var(--cobalt); }
.wk-steps li.done .wk-line, .wk-steps li.done .wk-pts { color: var(--soft); font-weight: 400; }
.wk-discord { margin-top: 10px; padding: 16px; background: var(--white); border-radius: 6px; display: flex; align-items: center; gap: 14px; }
.wk-discord > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wk-discord h3 { font-size: 15px; }
.wk-discord .btn { flex: none; font-weight: 500; }
.wk-more { font-size: 14px; align-self: flex-start; margin-top: 4px; }

/* your 90 days */
.nd-count { display: flex; align-items: baseline; gap: 10px; }
.nd-n { font-size: 48px; line-height: 1; }
.nd-count p { font-size: 15px; }
.hb-ninety > p:not(.soft) { font-size: 14px; line-height: 1.45; }
.nd-grow { display: flex; flex-direction: column; gap: 4px; }
.nd-grow p { font-size: 14px; line-height: 1.5; }

/* the manager */
.mg-head { display: flex; align-items: center; gap: 14px; }
.mg-head .bh { margin: 0; }
.mg-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--cobalt); display: flex; align-items: center; justify-content: center; flex: none; }
.hb-mgr .btn { font-weight: 500; }

.mg-msg { background: var(--porcelain); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.mg-msg p { font-size: 14px; line-height: 1.5; }
.mg-msg .mg-at { font-size: 12px; line-height: 1.2; color: var(--soft); text-align: right; }

/* thank someone */
.th-btn { align-self: flex-start; margin-top: 6px; font-weight: 500; }
.th-people { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
.th-people legend { padding: 0; margin-bottom: 6px; }
.th-person { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; }
.th-person:last-child { border-bottom: 0; }
.th-person input { width: 20px; height: 20px; margin: 0; accent-color: var(--cobalt); flex: none; }
.th-name { font-weight: 500; }
.th-reason { min-height: 88px; }

/* the sheet */
.home-sheet-sec { gap: 4px; }
.home-code { font-size: 44px; letter-spacing: .08em; color: var(--cobalt); }

/* ---- computer: Home-Desk ---- */
@media (min-width: 900px) {
  .home-page { padding: 40px 24px 72px; gap: 28px; }
  .home-head { display: flex; flex-direction: column; gap: 10px; }
  .home-head p { font-size: 16px; line-height: 1.45; }
  .home-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

  .hblk { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; gap: 14px; order: 0 !important; }
  .hb-slot { padding: 28px; gap: 18px; }
  .hb-ninety, .hb-mgr { gap: 14px; }
  .hblk .rule { margin: 0; }

  .hs-title { font-size: 30px; line-height: 1.15; }
  .hs-body { font-size: 16px; line-height: 1.5; color: var(--ink); }
  .bh { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0; }
  .bh-row { align-items: center; }
  .mv-wc { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--cobalt); white-space: nowrap; }

  .in-meta { font-size: 14px; line-height: 1.4; color: var(--soft); }
  .in-gn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .in-gn > div { display: flex; flex-direction: column; gap: 4px; }
  .in-gn .small { font-size: 14px; line-height: 1.45; }
  .in-ask { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
  .in-ask p:last-child { font-size: 16px; line-height: 1.45; }
  .in-acts { margin-top: 0; }
  .in-answer .btn, .stack-phone .btn { flex: none; min-height: 44px; padding: 0 14px; }
  .in-acts .link { margin-left: 6px; }
  .stack-phone { flex-direction: row; align-items: center; }

  .bl-lines { gap: 8px; }
  .bl-lines li { font-size: 15px; color: var(--ink); }
  .hblk > p.soft:not(.small) { font-size: 15px; }
  .wc-list { display: flex; flex-direction: column; gap: 4px; }
  .wc-list li { font-size: 14px; line-height: 1.45; color: var(--soft); }
  .hb-counts > p.label + * { margin-top: 0; }
  .hb-counts .wc-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
  .wc-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .th-list { gap: 14px; }
  .th-list strong { font-weight: 600; color: var(--ink); }

  .wk-steps { border-top: 1px solid var(--line); }
  .wk-discord { margin-top: 0; background: var(--porcelain); }
  .wk-more { margin-top: 0; }
  .hb-first .wk-discord { background: var(--porcelain); }

  .mg-also { text-align: center; }
  .th-btn { margin-top: 0; }

  /* the cobalt score panel */
  .home-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px; }
  .hp-mark { display: block; color: inherit; border-radius: 50%; }
  .home-panel .score-mark span { font-size: 56px !important; }
  .hp-tier { font-size: 17px; line-height: 1.4; font-weight: 500; text-align: center; }
  .hp-sub { font-size: 13px; line-height: 1.4; opacity: .85; text-align: center; }
  .hp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); }
  .hp-split > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hp-k { font-size: 13px; line-height: 1.4; opacity: .8; }
  .hp-n { font-size: 26px; line-height: 1.1; }
  .hp-s { font-size: 12px; line-height: 1.4; opacity: .8; }
  .hp-link { font-size: 14px; font-weight: 500; }
}

/* the sprint (Part 7) */
.hb-sprint { order: 1; gap: 10px; }
.sp-line { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.15; text-wrap: balance; }
.sp-behind { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 4px; background: var(--shell); color: var(--ink); }
@media (min-width: 900px) { .sp-line { font-size: 28px; } }
