/* Home module styles (T4a; cards R1, DEV-330 round 3; one-row strip FX1). Scoped under .gch-m-home, except the
   Next 14 days strip, which GCH.ui.dayStrip also draws on My work. */

.gch-m-home{padding-bottom:var(--s8)}
.gch-m-home .hm-me{color:var(--o-txt);font-weight:700}
.gch-m-home .hm-late{color:var(--danger);font-weight:600}
.gch-m-home .hm-soon{color:var(--ink);font-weight:600}
.gch-m-home .hm-dash,.gch-m-home .hm-zero{color:var(--mid)}
.gch-m-home .hm-none{padding:var(--s3) 0;color:var(--mid);font-size:13.5px}
.gch-m-home .hm-none a{color:var(--ink2);text-decoration:underline;text-underline-offset:3px}

/* First job: today's welcome state */
.gch-m-home .hm-welcome{max-width:720px;padding:var(--s12) var(--gut) var(--s8)}
.gch-m-home .hm-welcome h1{font-family:var(--disp);font-size:26px;font-weight:700;letter-spacing:-.01em;line-height:1.2;margin-bottom:var(--s4)}
.gch-m-home .hm-welcome p{font-size:14.5px;line-height:1.55;color:var(--ink2);margin-bottom:var(--s3)}
.gch-m-home .hm-welcome a:not(.btn){color:var(--o-txt);text-decoration:underline;text-underline-offset:3px}
.gch-m-home .hm-welcome ol{margin:var(--s4) 0 var(--s6);padding:0;list-style:none;counter-reset:st;border-top:1px solid var(--line)}
.gch-m-home .hm-welcome li{counter-increment:st;position:relative;padding:var(--s4) 0 var(--s4) 44px;border-bottom:1px solid var(--line)}
.gch-m-home .hm-welcome li::before{content:counter(st);position:absolute;left:0;top:var(--s4);width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--line2);font-weight:700;font-variant-numeric:tabular-nums}
.gch-m-home .hm-welcome h2{font-size:16px;font-weight:600;margin-bottom:6px}
.gch-m-home .hm-welcome details{margin-top:var(--s4);font-size:14px;color:var(--ink2)}
.gch-m-home .hm-welcome summary{cursor:pointer;font-weight:600;color:var(--ink)}
.gch-m-home .hm-welcome details p{margin-top:var(--s2)}

/* ------------------------------------------------------------------ Next 14 days strip (Home and My work)
   GCH.ui.dayStrip (js/ui.js) draws it on Home and My work, so these rules are not scoped to .gch-m-home.
   One row of thin columns (Overdue, fourteen days, Later) that share the width and never scroll sideways on a
   desktop; a day with nothing on it is a narrow column and an empty Overdue or Later is left out (--ds-cols, set by
   dayStrip). A day is --ds-h tall (the
   drag handle underneath sets it; remembered per person and page). A chip wraps instead of clipping: verb and number
   on the first line when they fit, then the title, shortened only between words. A crowded day says "N more" and
   opens in place, as tall as it needs. On a phone the columns are --ds-col wide and the row scrolls sideways. */
.gch-strip{flex:none;padding:var(--s4) var(--gut) 0;container-type:inline-size;container-name:gchstrip;--ds-h:300px;--ds-col:128px}
.ds-h{display:flex;align-items:baseline;gap:var(--s4);padding-bottom:var(--s3);min-width:0}
.ds-h h2{flex:none;font-size:14px;font-weight:600}
.ds-h h2 a{color:var(--ink);text-decoration:none;padding:4px 0}
.ds-h h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.ds-key{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--mid);white-space:nowrap}
.ds-key .k{display:inline-block;width:10px;height:10px;margin-left:var(--s3)}
.ds-key .k.is-mine{background:var(--o)}
.ds-key .k.is-waiting{background:var(--line2)}
.ds-key .k.is-task{width:9px;height:9px;border:1px solid var(--ink2)}
.ds-key .k.is-event{width:7px;height:7px;margin-right:2px;transform:rotate(45deg);background:var(--ink2)}
.ds-key .k.is-meet{width:2px;height:11px;background:var(--ink2)}
.ds-days{display:grid;grid-template-columns:var(--ds-cols,repeat(16,minmax(64px,1fr)));align-items:stretch;overflow-x:auto;overscroll-behavior-x:contain;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ds-days:focus-visible{outline-offset:-1px}
.ds-day{--colbg:var(--bg);position:relative;min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--line);background:var(--colbg)}
.ds-day:first-child{border-left:0}
.ds-day.is-end{--colbg:var(--bg2)}
.ds-day.is-wkend{--colbg:color-mix(in srgb,var(--bg) 55%,var(--bg2))}
.ds-day.is-today{--colbg:var(--bg2);box-shadow:inset 0 2px 0 var(--o)}
.ds-day.is-sel{--colbg:var(--bg3);box-shadow:inset 0 0 0 1px var(--edge)}
.ds-day.is-today.is-sel{box-shadow:inset 0 2px 0 var(--o),inset 0 0 0 1px var(--edge)}
/* A day's heading is two lines: the weekday, then the date (its chips say what it holds). Overdue and Later: the
   word, then the count. */
.ds-hd{position:relative;min-width:0}
.ds-dh{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:3px;min-width:0;padding:5px 5px 4px 6px;line-height:1.25;color:var(--ink2);white-space:nowrap;text-decoration:none}
a.ds-dh:hover b,a.ds-dh:hover .dw{text-decoration:underline;text-underline-offset:2px}
.ds-dh .dw{grid-column:1;grid-row:1;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:500}
.ds-dh b{grid-column:1 / -1;grid-row:2;font-size:15px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.ds-dh .n{grid-column:2;grid-row:1;font-size:12px;font-weight:700;color:var(--ink2);font-variant-numeric:tabular-nums}
.is-end .ds-dh .dw{grid-column:1 / -1;text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600;color:var(--ink)}
.is-end .ds-dh b.n{grid-column:1 / -1;grid-row:2;font-size:15px;color:var(--ink)}
.is-end .ds-dh b.n.is-late{color:var(--danger)}
.is-end .ds-dh b.n.is-none{font-weight:500;color:var(--mid)}
.is-wkend .ds-dh,.is-wkend .ds-dh b{color:var(--mid)}
.is-today .ds-dh .dw,.is-today .ds-dh b{color:var(--o-txt);font-weight:700}
.is-thin .ds-dh{padding-left:5px;padding-right:2px}
/* "+" New task: shows on hover and keyboard focus (always, faintly, on touch screens) */
.ds-plus{position:absolute;right:2px;bottom:3px;width:20px;height:20px;display:grid;place-items:center;padding:0;background:var(--colbg);border:1px solid var(--line2);color:var(--ink2);cursor:pointer;opacity:0;transition:opacity var(--t-hover) var(--ease)}
.ds-plus .i{width:13px;height:13px}
.ds-day:hover .ds-plus,.ds-plus:focus-visible{opacity:1}
.ds-plus:hover{border-color:var(--o);color:var(--o-txt)}
/* Touch screens have no hover: the "+" moves to a "+ New task" row at the end of each day */
.ds-addrow{display:none;flex:none;padding:6px;background:none;border:1px dashed var(--line2);font:inherit;font-size:11.5px;color:var(--ink2);text-align:left;cursor:pointer}
@media (hover:none){
  .ds-plus{display:none}
  .ds-addrow{display:block}
  .ds-day.can-add:hover .ds-items::after{content:none}
}
.ds-body{position:relative}
.ds-items{height:min(var(--ds-h),46vh);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;display:flex;flex-direction:column;gap:2px;padding:1px 1px var(--s2) 2px}
.ds-items::-webkit-scrollbar{display:none}
.ds-day.can-add .ds-items{cursor:pointer}
.ds-day.can-add:hover .ds-items::after{content:"+ New task";flex:none;padding:4px 4px 2px;font-size:11.5px;line-height:1.25;color:var(--mid)}
.ds-day.can-add.is-thin:hover .ds-items::after{content:"+"}
.ds-day.can-add .ds-items:hover::after{color:var(--ink2)}
.ds-day.is-scrolled .ds-hd{box-shadow:0 1px 0 var(--line)}
/* An opened day: as tall as its chips, and the row grows with it. */
.ds-day.is-open .ds-items{height:auto;min-height:min(var(--ds-h),46vh);overflow:visible;padding-bottom:30px}
/* DEV-356 WS6-B: on a phone a swipe that starts in a day hands on to the page at the day's end; Home and My work leave
   the strip out (Needs you and the My work list already say it); a thin empty day keeps only its "+". */
@media (max-width:759px){
  .ds-items{overscroll-behavior-y:auto}
  .gch-m-home .hm-strip,.gch-m-mywork .mw-strip{display:none}
  .ds-day.is-thin .ds-addrow{font-size:0;text-align:center}
  .ds-day.is-thin .ds-addrow::before{content:"+";font-size:15px}
}
/* The job a group of chips belongs to (company and division scope): once per job in a day. */
.ds-jb{flex:none;display:block;padding:4px 0 0 6px;font-size:10.5px;line-height:13px;font-weight:600;color:var(--mid);font-variant-numeric:tabular-nums;white-space:nowrap;text-decoration:none}
.ds-jb:first-child{padding-top:1px}
a.ds-jb:hover{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
/* A chip: mark, verb or time, number; then the title. Nothing is clipped: the first line wraps between the verb and
   the number when the column is thin, and dayStrip fits the title to whole words. Proportional digits so a
   spec-style number ("09 51 13-01") stays short. */
.ds-chip{flex:none;display:block;position:relative;min-width:0;padding:3px 2px 4px 6px;font-size:11px;line-height:14px;text-decoration:none;color:var(--ink);background:var(--bg3);box-shadow:inset 2px 0 0 var(--line2);cursor:pointer}
.ds-chip .h{display:block}
.ds-chip .v{font-weight:700;white-space:nowrap}
/* The number moves to its own line whole before it breaks inside (before its "-01"). */
.ds-chip .nb{display:inline-block;max-width:100%;vertical-align:top;font-weight:600;letter-spacing:-.01em}
.ds-chip .nw{white-space:nowrap}
.ds-chip .t{display:block;color:var(--ink2)}
.ds-chip.is-solo .t{padding-left:12px;color:var(--ink)}
.ds-chip .dia{display:inline-block;width:6px;height:6px;margin:0 5px 1px 1px;transform:rotate(45deg);background:var(--ink2)}
.ds-chip .box{display:inline-block;width:8px;height:8px;margin-right:4px;border:1px solid var(--ink2)}
.ds-chip .bar{display:inline-block;width:2px;height:10px;margin:0 5px -1px 1px;background:var(--ink2)}
.ds-chip.is-solo > i{position:absolute;left:6px;top:7px;margin:0}
.ds-chip.is-solo > .bar{top:5px}
.ds-chip.is-mine{box-shadow:inset 2px 0 0 var(--o)}
.ds-chip.is-waiting .v{font-weight:500;color:var(--mid)}
.ds-chip.is-waiting .nb{color:var(--ink2)}
.ds-chip.is-event{background:transparent;box-shadow:inset 1px 0 0 var(--edge)}
.ds-chip.is-event .v,.ds-chip.is-task .v{font-weight:600;font-variant-numeric:tabular-nums}
.ds-chip.is-task:not(.is-mine):not(.is-waiting){background:transparent;box-shadow:inset 0 0 0 1px var(--line2)}
.ds-chip:hover{background:var(--tag-bg)}
.ds-chip:focus-visible{outline-offset:-1px}
.ds-below{position:absolute;left:1px;right:0;bottom:0;height:28px;padding:10px 6px 0;border:0;text-align:left;font:inherit;font-size:11.5px;font-weight:600;color:var(--ink2);background:linear-gradient(to bottom,transparent,var(--colbg) 45%);cursor:pointer;white-space:nowrap}
.ds-below::after{content:" ↓";color:var(--mid)}
.ds-below[aria-expanded="true"]::after{content:" ↑"}
.ds-below:hover{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.ds-below:focus-visible{outline-offset:-2px}
.ds-none{padding:var(--s2) 0 0;font-size:13px;color:var(--mid)}
/* Drag handle: resize the strip; remembered per person */
.ds-grip{height:14px;display:grid;place-items:center;cursor:row-resize;touch-action:none;margin-bottom:var(--s2)}
.ds-grip i{display:block;width:44px;height:4px;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2)}
.ds-grip:hover i,.ds-grip:focus-visible i,.gch-strip.is-resizing .ds-grip i{border-color:var(--o)}
.ds-grip:focus-visible{outline-offset:-2px}
.gch-strip.is-resizing{user-select:none;cursor:row-resize}
.gch-strip.is-resizing .ds-items{scroll-behavior:auto}
/* A laptop: the columns are about 75px, so a spec-style number is set a touch smaller to stay whole on its line. */
@container gchstrip (max-width:1180px){
  .ds-chip .nb{font-size:10.5px;letter-spacing:-.02em}
}
@container gchstrip (max-width:640px){
  .ds-key{display:none}
  /* Phone: the same row, Overdue first and Later last, at a readable column width, scrolling sideways. */
  .ds-days{grid-template-columns:var(--ds-cols-phone,repeat(16,var(--ds-col)))}
}

/* ------------------------------------------------------------------ cards
   Twelve columns; home.js gives each card its span so a row always fills the page. Grouping is space and one
   hairline under a card's heading, never a box. */
.gch-m-home .hm-head{padding-bottom:var(--s2)}
.gch-m-home .hm-head .btn[aria-pressed="true"]{border-color:var(--o);color:var(--ink)}
.gch-m-home .hm-cards{flex:none;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--s8);align-items:start;padding:var(--s2) var(--gut) 0}
.gch-m-home .hm-card{min-width:0}
.gch-m-home .hm-cards > .gch-strip{padding:0}
.gch-m-home .hm-cards > .gch-strip .ds-grip{margin-bottom:-10px}
.gch-m-home .hm-sh{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px var(--s3);padding-bottom:var(--s3);border-bottom:1px solid var(--line)}
.gch-m-home .hm-sh h2{font-family:var(--disp);font-size:18px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.gch-m-home .hm-sh .meta{min-width:0;font-size:13px;color:var(--mid);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gch-m-home .hm-link{margin-left:auto;font-size:13px;color:var(--ink2);text-decoration:none;white-space:nowrap;padding:4px 0}
.gch-m-home .hm-link:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.gch-m-home .hm-sub{padding:var(--s3) 0 6px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid)}
.gch-m-home .hm-nocards{grid-column:1 / -1}

/* ------------------------------------------------------------------ Needs you: one row per item */
.gch-m-home .hm-needs{container-type:inline-size;container-name:hmneeds}
.gch-m-home .hm-n{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,232px) 88px;align-items:center;column-gap:var(--s4);min-height:54px;padding:6px var(--s3);background:var(--bg2);border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.gch-m-home .hm-n:hover{background:var(--bg3)}
.gch-m-home .hm-n-main,.gch-m-home .hm-n-blk{min-width:0;display:flex;flex-direction:column;gap:2px}
/* Nothing in a row is cut: the title wraps under itself, and so does the line of job, who is waiting and due. */
.gch-m-home .hm-n .l1{display:flex;align-items:flex-start;gap:var(--s2);min-width:0;font-size:14px;line-height:1.3}
.gch-m-home .hm-n .l1 .i{flex:none;width:16px;height:16px;margin-top:1px;color:var(--mid)}
.gch-m-home .hm-n .num{flex:none;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.gch-m-home .hm-n .tt{min-width:0}
.gch-m-home .hm-n .l2{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:10px;min-width:0;padding-left:24px;font-size:12.5px;line-height:1.35;color:var(--mid)}
.gch-m-home .hm-n .l2 > .sep{display:none}
.gch-m-home .hm-n .l2 .jobref{flex:none}
.gch-m-home .hm-n .l2 .jobref .nm{color:var(--ink2)}
.gch-m-home .hm-n .l2b{display:flex;align-items:baseline;flex-wrap:wrap;min-width:0}
.gch-m-home .hm-n .l2 .w{min-width:0;color:var(--ink2)}
.gch-m-home .hm-n .l2 .d{flex:none;white-space:nowrap}
.gch-m-home .hm-n .sep{flex:none;margin:0 6px;color:var(--mid)}
.gch-m-home .hm-n .is-late{color:var(--danger);font-weight:600}
.gch-m-home .hm-n .is-today{color:var(--ink);font-weight:600}
.gch-m-home .hm-n .b1{font-size:13.5px;line-height:1.3}
.gch-m-home .hm-n .b1 .k{margin-right:2px;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--mid)}
.gch-m-home .hm-n .b2{font-size:12.5px;color:var(--mid)}
.gch-m-home .hm-n .b2.is-late{color:var(--danger);font-weight:600}
.gch-m-home .hm-n-verb{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 var(--s2);border:1px solid var(--edge);font-size:12.5px;font-weight:600;color:var(--ink);white-space:nowrap}
.gch-m-home .hm-n:hover .hm-n-verb{border-color:var(--o);color:var(--o-txt)}
.gch-m-home .hm-n-h{padding:var(--s4) var(--s3) 6px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);border-bottom:1px solid var(--line)}
.gch-m-home .hm-nrows > .hm-n-h:first-child{padding-top:var(--s3)}
.gch-m-home .hm-n.is-fold .tt{color:var(--ink2)}
.gch-m-home .hm-n.is-fold .l2 .sep{margin:0 6px}
.gch-m-home .hm-rowmore{display:block;padding:10px var(--s3) 0;font-size:13px;color:var(--ink2);text-decoration:none}
.gch-m-home .hm-rowmore:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@container hmneeds (max-width:640px){
  .gch-m-home .hm-n{grid-template-columns:minmax(0,1fr) auto;row-gap:6px;padding:10px var(--s3)}
  .gch-m-home .hm-n-main{grid-column:1 / -1}
  .gch-m-home .hm-n .l2{flex-direction:column;align-items:flex-start;gap:2px}
  .gch-m-home .hm-n .l2b{max-width:100%}
  .gch-m-home .hm-n-blk{padding-left:24px}
  .gch-m-home .hm-n-verb{min-width:84px;height:32px}
}

/* ------------------------------------------------------------------ Pinned and recent */
.gch-m-home .hm-jobs{display:flex;flex-direction:column;gap:2px}
.gch-m-home .hm-job{display:flex;align-items:center;gap:var(--s2);background:var(--bg2)}
.gch-m-home .hm-job:hover{background:var(--bg3)}
.gch-m-home .hm-job-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;padding:8px var(--s3);text-decoration:none;color:inherit}
.gch-m-home .hm-job-main .l1{font-size:14px;line-height:1.3}
.gch-m-home .hm-job-main .l1 .jobref{white-space:normal}
.gch-m-home .hm-job-main .l1 .nm{font-weight:600}
.gch-m-home .hm-job-main:hover .l1 .nm{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-job-main .l2{display:flex;align-items:center;flex-wrap:wrap;gap:0 14px;overflow:hidden;font-size:12.5px;color:var(--mid)}
.gch-m-home .hm-job-main .l2 .ph{color:var(--ink2)}
.gch-m-home .hm-job-main .l2 .own{min-width:0}
/* The dot sits in the gap before its part. A part that wraps to a new line starts at the row's left edge, where its
   dot falls outside the row and is not drawn: no line begins or ends with a separator. */
.gch-m-home .hm-job-main .l2 .ph + .own,.gch-m-home .hm-job-main .l2 .op{position:relative}
.gch-m-home .hm-job-main .l2 .ph + .own::before,.gch-m-home .hm-job-main .l2 .op::before{content:"·";position:absolute;left:-9px;color:var(--mid)}
.gch-m-home .hm-job-main .l2 .op{flex:none}
.gch-m-home .hm-pin{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 var(--s2);margin-right:6px;background:none;border:1px solid transparent;color:var(--mid);font-size:12.5px;cursor:pointer;position:relative}
.gch-m-home .hm-pin::after{content:"";position:absolute;left:0;right:0;top:50%;height:var(--tap);transform:translateY(-50%)}
.gch-m-home .hm-pin .i{width:15px;height:15px}
.gch-m-home .hm-pin[aria-pressed="true"]{color:var(--ink2)}
.gch-m-home .hm-pin[aria-pressed="true"] .i{color:var(--o-txt)}
.gch-m-home .hm-pin:hover{border-color:var(--edge);color:var(--ink)}
.gch-m-home .hm-jobsc{container-type:inline-size;container-name:hmjobs}
@container hmjobs (max-width:360px){.gch-m-home .hm-pin span{display:none}}

/* ------------------------------------------------------------------ Portfolio (the division Overview's table, with
   the three court columns; built in home.js) */
.gch-m-home .hm-pfw{min-width:0}
.gch-m-home .hm-t{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:var(--bg2)}
/* Column widths sit on a first row of empty header cells (.hm-t-w): the header proper has two rows when the three
   counts are shown (what they count, "Your items" or "Every open item on the job", over the three labels). */
.gch-m-home .hm-t thead tr.hm-t-w th{height:0;padding:0;border:0}
.gch-m-home .hm-t th.c-job{width:24%}
.gch-m-home .hm-t th.c-phase{width:114px}
.gch-m-home .hm-t th.c-n{width:138px}
.gch-m-home .hm-t th.c-n.is-wide{width:170px}
.gch-m-home .hm-t th.c-n.is-short{width:100px}
.gch-m-home .hm-t.is-job th.c-n.is-wide{width:216px}
.gch-m-home .hm-t th.c-fin{width:226px}
.gch-m-home .hm-t thead th{height:36px;padding:0 var(--s3);text-align:left;vertical-align:middle;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mid);background:var(--bg);border-bottom:1px solid var(--line2);white-space:nowrap}
.gch-m-home .hm-t thead th[rowspan]{vertical-align:bottom;padding-bottom:9px}
.gch-m-home .hm-t thead th.c-grp{height:24px;padding-top:4px;text-align:center;font-size:11.5px;color:var(--ink2);border-bottom:1px solid var(--line)}
.gch-m-home .hm-t thead tr.hm-t-sub th{height:30px;white-space:normal;line-height:1.25}
.gch-m-home .hm-t td{height:46px;padding:4px var(--s3);vertical-align:middle;border-bottom:1px solid var(--line);font-size:14px;white-space:nowrap}
.gch-m-home .hm-t :is(th,td).num{text-align:right;font-variant-numeric:tabular-nums}
.gch-m-home .hm-t td.num b{font-weight:600}
.gch-m-home .hm-t td.num a{display:inline-block;min-width:28px;padding:6px 0;color:inherit;text-decoration:none}
.gch-m-home .hm-t td.num a:hover b{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-t tbody tr[data-href]{cursor:pointer}
.gch-m-home .hm-t tbody tr[data-href]:hover > td{background:var(--bg3)}
/* A long job name or milestone wraps under itself; nothing in the table is cut. */
.gch-m-home .hm-t td.c-job,.gch-m-home .hm-t td.c-next{white-space:normal;line-height:1.3}
.gch-m-home .hm-t td.c-job .jobref{white-space:normal}
.gch-m-home .hm-t td.c-job a{display:block;text-decoration:none;padding:6px 0}
.gch-m-home .hm-t td.c-job a:hover .nm{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-t td.c-job .nm{font-weight:500}
.gch-m-home .hm-t tr.ph-completed td.c-job .nm,.gch-m-home .hm-t tr.ph-completed td.c-next{color:var(--ink2)}
.gch-m-home .hm-t tr.hm-t-g th{height:38px;padding:var(--s2) var(--s3) 0;text-align:left;vertical-align:middle;font-size:14px;font-weight:600;color:var(--ink);background:var(--bg);border-bottom:1px solid var(--line)}
.gch-m-home .hm-t tr.hm-t-g th a{color:var(--ink);text-decoration:none;padding:4px 0}
.gch-m-home .hm-t tr.hm-t-g th a::after{content:" ›";color:var(--mid)}
.gch-m-home .hm-t tr.hm-t-g th a:hover{text-decoration:underline;text-underline-offset:3px}
.gch-m-home .hm-t tr.hm-t-g .meta{margin-left:var(--s3);font-size:13px;font-weight:400;color:var(--mid)}
.gch-m-home .hm-ms{display:inline-flex;align-items:baseline;gap:var(--s2);min-width:0;max-width:100%}
.gch-m-home .hm-ms .nm{min-width:0}
.gch-m-home .hm-ms .d{flex:none;color:var(--mid);font-size:12.5px;font-variant-numeric:tabular-nums}
.gch-m-home .hm-fin{display:inline-flex;align-items:baseline;gap:var(--s2);white-space:nowrap;font-variant-numeric:tabular-nums}
.gch-m-home .hm-var{font-size:12.5px;font-weight:600;white-space:nowrap}
.gch-m-home .hm-var.is-late{color:var(--danger)}
.gch-m-home .hm-var.is-ok{color:var(--ok)}
.gch-m-home .hm-var.is-done,.gch-m-home .hm-var.is-plain{color:var(--mid);font-weight:500}
/* A column that yields at laptop width closes to nothing instead of leaving the table: the division rows span every
   column, so a removed cell would leave an empty column behind. */
@container gchmain (max-width:1180px){
  .gch-m-home .hm-t :is(th,td).c-phase{width:0;padding:0;overflow:hidden;font-size:0}
  .gch-m-home .hm-t td.c-phase > *{display:none}
}
@container gchmain (max-width:900px){
  .gch-m-home .hm-t :is(th,td).c-next{width:0;padding:0;overflow:hidden;font-size:0}
  .gch-m-home .hm-t td.c-next > *{display:none}
  .gch-m-home .hm-t th.c-job{width:auto}
}

/* ------------------------------------------------------------------ Bids due */
.gch-m-home .hm-bidl{display:flex;flex-direction:column;gap:2px;margin-top:var(--s3)}
.gch-m-home .hm-bid{display:flex;flex-direction:column;gap:4px;padding:10px var(--s3);background:var(--bg2);text-decoration:none;color:inherit}
.gch-m-home .hm-bid:hover{background:var(--bg3)}
.gch-m-home .hm-bid .l1{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px var(--s3);font-size:14px}
.gch-m-home .hm-bid .jr{min-width:0}
.gch-m-home .hm-bid .jr .jobref{white-space:normal}
.gch-m-home .hm-bid .jr .nm{font-weight:600}
.gch-m-home .hm-bid:hover .jr .nm{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-bid .when{margin-left:auto;font-size:13.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.gch-m-home .hm-bid .when b{font-weight:600}
.gch-m-home .hm-bid .l2{display:flex;flex-wrap:wrap;font-size:12.5px;line-height:1.5;color:var(--mid)}
.gch-m-home .hm-bid .l2 b{color:var(--ink);font-weight:600}
.gch-m-home .hm-bid .l2 .f{white-space:nowrap}
.gch-m-home .hm-bid .sep{margin:0 6px}

/* ------------------------------------------------------------------ Quick links and contacts */
.gch-m-home .hm-lj{padding:var(--s3) 0;border-bottom:1px solid var(--line)}
.gch-m-home .hm-lj:last-child{border-bottom:0}
.gch-m-home .hm-lj-h{display:block;font-size:14px;line-height:1.3;text-decoration:none;color:inherit}
.gch-m-home .hm-lj-h .jobref{white-space:normal}
.gch-m-home .hm-lj-h .nm,.gch-m-home .hm-lj.is-co .hm-lj-h{font-weight:600}
.gch-m-home a.hm-lj-h:hover .nm{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-qls{display:flex;flex-wrap:wrap;gap:4px var(--s4);padding-top:6px}
.gch-m-home .hm-ql{display:inline-flex;align-items:center;gap:4px;padding:3px 0;font-size:13.5px;color:var(--ink);text-decoration:underline;text-decoration-color:var(--edge);text-underline-offset:3px}
.gch-m-home .hm-ql:hover{text-decoration-color:var(--o)}
.gch-m-home .hm-ql .i{width:13px;height:13px;color:var(--mid)}
.gch-m-home .hm-ct{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 var(--s2);padding-top:6px;font-size:13px}
.gch-m-home .hm-ct .k{flex:none;width:104px;font-size:12.5px;color:var(--mid)}
.gch-m-home .hm-ct .who{flex:1 1 150px;min-width:0}
.gch-m-home .hm-ct .who b{font-weight:500}
.gch-m-home .hm-ct .co{margin-left:6px;color:var(--mid)}
.gch-m-home .hm-ct .acts{display:inline-flex;gap:var(--s3);font-variant-numeric:tabular-nums}
.gch-m-home .hm-ct .acts a{padding:3px 0;color:var(--ink2);text-decoration:underline;text-decoration-color:var(--edge);text-underline-offset:3px;white-space:nowrap}
.gch-m-home .hm-ct .acts a:hover{color:var(--ink);text-decoration-color:var(--o)}

/* ------------------------------------------------------------------ Open items by who holds them
   A thin stacked bar per job with 2px surface gaps; the fills are the product's own (the accent for our court, two
   neutral steps and a hatch), and every count is written in its column, so the bar is never the only way to read it. */
.gch-m-home .hm-chw{min-width:0;overflow-x:auto}
.gch-m-home .hm-ch{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.gch-m-home .hm-ch th,.gch-m-home .hm-ch td{height:38px;padding:4px var(--s2);border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.gch-m-home .hm-ch thead th{height:34px;font-size:12px;font-weight:600;color:var(--mid);text-align:left;border-bottom-color:var(--line2)}
.gch-m-home .hm-ch .num{text-align:right;font-variant-numeric:tabular-nums}
.gch-m-home .hm-ch tbody th{text-align:left;font-weight:400;white-space:normal;line-height:1.3}
.gch-m-home .hm-ch tbody th .jobref{white-space:normal}
.gch-m-home .hm-ch tbody th a{text-decoration:none;color:inherit}
.gch-m-home .hm-ch tbody th a:hover .nm{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-ch .c-h,.gch-m-home .hm-ch .c-tot{width:1%}
.gch-m-home .hm-ch .c-tot b{font-weight:600}
/* A job is two rows: its numbers, then its bar across the card (so the chart fits half a page on a laptop). */
.gch-m-home .hm-ch tbody tr[data-job] > *{height:34px;padding-bottom:2px;border-bottom:0}
.gch-m-home .hm-ch tbody tr.hm-ch-bar td{height:auto;padding:0 var(--s2) 9px}
.gch-m-home .hm-stack{display:flex;gap:2px;height:10px;min-width:10px}
.gch-m-home .hm-stack .seg{flex-basis:0;min-width:3px}
.gch-m-home .hm-ch .sw{display:inline-block;width:10px;height:10px;margin-right:6px}
.gch-m-home .hm-chart .is-us{background:var(--o)}
.gch-m-home .hm-chart .is-design{background:var(--edge)}
.gch-m-home .hm-chart .is-owner{background:repeating-linear-gradient(135deg,var(--edge) 0 3px,transparent 3px 6px);box-shadow:inset 0 0 0 1px var(--edge)}
.gch-m-home .hm-chart .is-subs{background:var(--ink2)}

/* ------------------------------------------------------------------ Customize */
.gch-m-home .hm-czh{flex:none;padding:0 var(--gut)}
.gch-m-home .hm-cz{max-width:560px;margin:var(--s2) 0 var(--s6);background:var(--bg2);border:1px solid var(--edge)}
.gch-m-home .hm-cz-h{padding:var(--s3) var(--s4) var(--s2)}
.gch-m-home .hm-cz-h h2{font-size:14px;font-weight:600}
.gch-m-home .hm-cz-l{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.gch-m-home .hm-cz-l li{display:flex;align-items:center;gap:var(--s2);min-height:44px;padding:0 var(--s2) 0 var(--s4);border-bottom:1px solid var(--line)}
.gch-m-home .hm-cz-c{flex:1;min-width:0;display:flex;align-items:center;gap:var(--s3);min-height:44px;font-size:14px;cursor:pointer}
.gch-m-home .hm-cz-c input{width:16px;height:16px;accent-color:var(--o);cursor:pointer}
.gch-m-home .hm-cz-c input:not(:checked) + span{color:var(--mid)}
.gch-m-home .hm-cz-mv{flex:none;display:inline-flex;gap:2px}
.gch-m-home .hm-cz-mv .btn{width:36px;padding:0;justify-content:center}
.gch-m-home .hm-cz-f{display:flex;align-items:center;flex-wrap:wrap;gap:var(--s2) var(--s3);padding:var(--s3) var(--s4)}
.gch-m-home .hm-cz-f .btn-q{padding-left:0}
.gch-m-home .hm-cz-st{margin-left:auto;font-size:12.5px;color:var(--mid)}

/* ------------------------------------------------------------------ narrow: the cards stack; on a phone Needs you leads */
@container gchmain (max-width:1100px){
  .gch-m-home .hm-cards{grid-template-columns:minmax(0,1fr);gap:var(--s6)}
  .gch-m-home .hm-card{grid-column:1 / -1 !important}
}
@container gchmain (max-width:700px){
  .gch-m-home .hm-card.hm-needs{order:-1}
  .gch-m-home .hm-sh{flex-wrap:wrap;row-gap:2px}
  .gch-m-home .hm-cz{max-width:none}
  .gch-m-home .hm-cz-f .btn-q{flex:1 1 100%;justify-content:flex-start;min-height:var(--tap);white-space:normal;text-align:left}
  /* Portfolio: each job becomes a card — job on top, finish, then the three counts with their labels. */
  .gch-m-home .hm-t,.gch-m-home .hm-t tbody{display:block}
  .gch-m-home .hm-t thead{display:none}
  .gch-m-home .hm-t tbody tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px var(--s4);padding:10px var(--s3);border-bottom:1px solid var(--line)}
  .gch-m-home .hm-t tbody td{display:block;height:auto;padding:0;border:0;background:none !important}
  .gch-m-home .hm-t td.c-job{order:1;flex:1 0 100%;min-width:0}
  .gch-m-home .hm-t td.c-job a{padding:0}
  .gch-m-home .hm-t td.c-fin{order:2;flex:1 0 100%}
  .gch-m-home .hm-t td.c-n{order:3;font-size:13.5px}
  .gch-m-home .hm-t td.c-n::before{content:attr(data-l) " ";color:var(--mid);font-size:12.5px}
  .gch-m-home .hm-t td.c-phase,.gch-m-home .hm-t td.c-next{display:none}
  .gch-m-home .hm-t tr.hm-t-g{display:block;padding:0;border:0}
  .gch-m-home .hm-t tr.hm-t-g th{display:block;height:auto;padding:var(--s3) var(--s3) var(--s2)}
  .gch-m-home .hm-bid .when{margin-left:0}
  /* The chart's five number columns fit a phone: the swatch sits over its label. */
  .gch-m-home .hm-ch th,.gch-m-home .hm-ch td{padding-left:4px;padding-right:4px}
  .gch-m-home .hm-ch thead th.c-h{white-space:normal;line-height:1.2;vertical-align:bottom;padding-bottom:6px}
  .gch-m-home .hm-ch .sw{display:block;margin:0 0 4px auto}
}

/* Money card (DEV-341): three figures from Finance, each a link */
.gch-m-home .hm-mny{display:flex;flex-direction:column}
.gch-m-home .hm-mny-r{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:var(--s3);padding:var(--s2) 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.gch-m-home a.hm-mny-r:hover .k{text-decoration:underline;text-underline-offset:2px}
.gch-m-home .hm-mny-r .k{font-size:13.5px;color:var(--ink2)}
.gch-m-home .hm-mny-r .v{grid-row:span 2;align-self:center;font-size:20px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink)}
.gch-m-home .hm-mny-r .v.is-act{color:var(--o-txt)}
.gch-m-home .hm-mny-r .s{font-size:12.5px;color:var(--mid)}
