/* "This week" + "Following" — the profile page's split rail (the user approved this layout, 2026-11-18, over three
   other concepts). Loaded last so it can win cleanly over the older profile experiments (pf4/pf5/pf6, standard-b)
   without a specificity/!important war. */

/* the old profile was explicitly height-locked to exactly one viewport (all.css ~790: "the profile takes exactly
   the screen below the top bar"), with a 30-day chart pinned to the bottom via justify-content:space-between. A
   two-column rail with a variable-length people list doesn't fit that budget, so pages using it opt out and flow
   like the rest of the site (scrolling if the content is taller than the window). */
html body #app main.pfp .pfa:has(.pfwk){height:auto!important;min-height:0!important;justify-content:flex-start!important;gap:clamp(28px,4vh,56px)!important;padding-bottom:48px!important}
html body #app main.pfp:has(.pfa .pfwk){padding-bottom:48px!important}

.pfwk{display:flex;align-items:flex-start;gap:64px}
.pfwk-col{min-width:0}
.pfwk-following{flex:0 0 clamp(280px,32vw,440px)}
.pfwk-week{flex:1 1 auto}
.pfwk-divider{align-self:stretch;flex:0 0 1px;background:var(--line)}
.pfwk h2{margin:0 0 32px}

/* ---------- Following: a plain hairline-divided list, read-only ---------- */
.pfwk-flist{list-style:none;margin:0;padding:0;width:100%}
.pfwk-flist li{display:flex;align-items:flex-start;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);width:100%}
.pfwk-flist li:last-child{border-bottom:0;padding-bottom:0}
.pfwk-flist .av{width:44px!important;height:44px!important;font-size:17px!important;flex:none}
.pfwk-who{display:flex;flex-direction:column;gap:4px;padding-top:2px;flex:1 1 auto;min-width:0}
.pfwk-who b{font:600 17px/1.3 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink)}
.pfwk-who span{font:400 14.5px/1.4 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink2);overflow-wrap:break-word}
.pfwk-pct{font-variant-numeric:lining-nums tabular-nums;color:var(--ink2)}

/* ---------- This week: numerals + a 7-day bar chart ---------- */
.pfwk-nums{display:flex;align-items:flex-end;gap:clamp(28px,4vw,56px);margin-bottom:40px;flex-wrap:wrap}
.pfwk-stat{display:flex;flex-direction:column}
.pfwk-stat b{font-family:var(--display);font-weight:400;color:var(--ink);line-height:1;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.pfwk-stat:not(.hero) b{font-size:clamp(30px,3vw,42px)}
.pfwk-stat.hero b{font-size:clamp(60px,7vw,92px);color:var(--red)}
.pfwk-stat span{margin-top:10px;font:400 14px "EB Garamond Pkg","EB Garamond",serif;font-variant-caps:all-small-caps;letter-spacing:.05em;color:var(--ink3)}

.pfwk-chart{margin-bottom:28px}
.pfwk-bars{display:flex;align-items:flex-end;gap:clamp(8px,1.4vw,22px);height:clamp(110px,16vh,180px);border-bottom:1px solid var(--line)}
.pfwk-barcol{position:relative;flex:1 1 0;display:flex;justify-content:center;height:100%;align-items:flex-end}
.pfwk-barcol i{display:block;width:100%;max-width:34px;height:var(--h);background:var(--red);border-radius:4px 4px 0 0;cursor:default;transition:background .15s}
.pfwk-barcol i.off{height:2px!important;background:var(--line);border-radius:0}
.pfwk-barcol i.today,.pfwk-barcol i:hover{background:color-mix(in srgb,var(--red) 72%,var(--ink))}
.pfwk-barcol i:hover::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);white-space:nowrap;background:var(--ink);color:var(--paper);font:400 13px/1 "EB Garamond",serif;padding:6px 9px;border-radius:7px;z-index:5;pointer-events:none}
.pfwk-axis{display:flex;gap:clamp(8px,1.4vw,22px);margin-top:12px}
.pfwk-axis span{flex:1 1 0;text-align:center;font:400 13px "EB Garamond Pkg","EB Garamond",serif;font-variant-caps:all-small-caps;letter-spacing:.05em;color:var(--ink3)}

.pfwk-finished,.pfwk-empty{margin:0;font:400 16px/1.5 "EB Garamond Pkg","EB Garamond",serif;color:var(--ink2)}
.pfwk-finished span{font-variant-caps:all-small-caps;letter-spacing:.05em;color:var(--ink3);margin-right:8px}

@media (max-width:900px){
  .pfwk{flex-direction:column;align-items:stretch;gap:40px}
  .pfwk-following{flex-basis:auto}
  .pfwk-divider{display:none}
  .pfwk h2{margin-bottom:20px}
  .pfwk-nums{flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:28px}
  .pfwk-stat.hero b{font-size:52px}
  .pfwk-stat:not(.hero) b{font-size:28px}
}

/* dark/alternate grounds: the standing contrast rule — the hero numeral and bars follow the same --red-dk swap
   every other .pf- component on this page already uses (darkaccent.css) */
html:is(.night,.bk-tint:not(.bk-tint-light)) .pfwk-stat.hero b{color:var(--red-dk)!important}
html:is(.night,.bk-tint:not(.bk-tint-light)) .pfwk-barcol i:not(.off){background:var(--red-dk)!important}
html:is(.night,.bk-tint:not(.bk-tint-light)) .pfwk-barcol i.today,
html:is(.night,.bk-tint:not(.bk-tint-light)) .pfwk-barcol i:hover{background:color-mix(in srgb,var(--red-dk) 80%,white)!important}
