/* Server additions to the design's stylesheet (app.css is the design's file, copied as is: never edit it
   here; ask the designer and copy it again). Only what the running app needs that the static design did
   not: who is signed in and Sign out on the sending line, forms that sit inline in a sentence, the phase
   word on a case row, the error pages, the sign-in forms and the gallery's labels.
   Same rules as app.css: tokens only, no raw colours or px font sizes, no card, tint or frame. */

/* A form that sits inside a sentence or a row of links (Undo, Follow up now, Sign out). */
.inline-form{display:inline;margin:0}
.inline-form .link{padding:0}

/* The sending line's right end: who is signed in, then Sign out. */
.sendline .whoami{color:var(--muted)}
.sendline .signout form{display:inline;margin:0}
.sendline .signout .link{font-size:var(--fs-meta)}

/* Sign out under More on a phone. */
.navmore>span form{margin:0;border-top:1px solid var(--hair)}
.navmore>span form .link{display:block;width:100%;padding:10px 14px;font:500 var(--fs-body)/1.3 var(--font-head);
  color:var(--ink);text-decoration:none}
.navmore>span form .link:hover{color:var(--blue)}

/* The phase a case is in, before "where it is": a word in small caps, like a mark. */
.phase{font:600 var(--fs-meta)/1 var(--font-head);letter-spacing:.05em;font-variant-caps:all-small-caps;color:var(--muted);
  margin-right:var(--s1);white-space:nowrap}

.mono{font-family:var(--font-mono)}

/* Error pages, staff shell. */
.error-text{max-width:68ch;margin-top:0}
.error-acts{margin-top:var(--s5)}

/* Sign-in on the paper layout. */
.client .signin-way{margin-top:var(--s4)}
.client .signin-way.form{margin-top:var(--s6);padding-top:var(--s4);border-top:1px solid var(--rule)}
.client .signin-way h2.eyebrow{margin:0 0 var(--s1)}
.client .signin-way label.lab{margin-top:var(--s4)}
.client .signin-way select.f{appearance:auto}
.client .signin-way p:last-of-type{margin-top:var(--s4)}

/* Directory: a kind of recipient with many entries folds under the search; its summary reads as the kind's
   heading with "Show all" as the link that opens it. */
.dir-group>summary{cursor:pointer;list-style:none}
.dir-group>summary::-webkit-details-marker{display:none}
.dir-group>summary .aside{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.dir-group>summary:hover .aside{color:var(--blue-dk)}
.dir-group[open]>summary .aside{display:none}
.dir-list td.end{white-space:nowrap;text-align:right}
.dir-list td.end .link{margin-left:var(--s2)}

/* The gallery (/ui/gallery): each specimen under a quiet label. */
.gallery .specimen{padding:var(--s4) 0;border-bottom:1px solid var(--hair)}
.gallery .specimen>.meta:first-child{margin-bottom:var(--s2)}
.gallery .row-of{display:flex;flex-wrap:wrap;gap:var(--s4);align-items:baseline}

@media (max-width:1100px){
  .sendline .whoami{display:none}
}
@media (max-width:700px){
  .sendline .signout{display:none}
}

/* Today: the choice notes sit behind "What each does" (each button also carries its note as a title), so all
   five For you items fit on Jason's screen (UI_SPEC section 4, must-fit). */
.item details.choice-notes>summary{font-size:var(--fs-meta)}
.item details.choice-notes ul{list-style:none;margin-top:4px}
.item details.choice-notes li+li{margin-top:2px}

/* Rules: a default's other anchors (#d-<area>-<id> from the decisions record) are empty spans at the start of
   its sentence, so a link to any of them lands on the line with its Change. */
.lines .anchor{scroll-margin-top:16px}

/* Phone: every control is at least 44px to touch (UI_SPEC sections 7 and 8): buttons, small buttons, chips,
   disclosure summaries that read like links ("Record a call", "Change") and link-style buttons ("Looks right"). */
@media (max-width:700px){
  .btn,.btn-sm,.chip{min-height:44px}
  .btn{white-space:normal;max-width:100%;text-align:center}
  details.more>summary,details.navmore>summary,button.link,a.link{display:inline-flex;align-items:center;min-height:44px}
  .inline-form .link{padding:0 2px}
}

/* Today on a desk screen: the title and its sentence share a row and the items sit a little closer, so all
   five For you items fit above the fold at 1440x900 and 1960x720 (UI_SPEC section 4, must-fit; checked by
   app.ui.shoot). On the wide screen the sentence column takes the room the buttons don't need. */
@media (min-width:1280px){
  .today-head{display:flex;align-items:baseline;column-gap:var(--s6);flex-wrap:wrap}
  .today-head .lede{flex:1 1 48ch;margin-top:0;max-width:none;text-wrap:pretty}
  .foryou .items .item{padding:9px 0}
}
@media (min-width:1700px){
  .foryou .item .body{grid-template-columns:minmax(0,118ch) auto}
}
@media (min-width:1700px) and (max-height:820px){
  .today-head{padding:var(--s3) 0 var(--s2)}
  .foryou{margin-top:0}
  .foryou .items .item{padding:8px 0}
}

/* The slip check on To do: without a photo, the reading takes the whole row. */
.slip-row:not(:has(figure)){grid-template-columns:minmax(0,1fr)}
