/* The question after signing in: a big button for each section, in a row of four,
   two by two where that does not fit, and one above another on a phone. */
.section-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:6px}
@media(max-width:1100px){.section-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
button.section-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:16px;min-height:200px;margin:0;padding:34px 26px 26px;overflow:hidden;text-align:left;white-space:normal;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:14px;cursor:pointer}
button.section-choice:hover,button.section-choice:focus-visible{background:var(--card);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.section-choice strong{font-size:22px;line-height:1.25;font-weight:600}
.section-drawing{display:block;color:var(--muted)}.section-drawing svg{display:block;width:36px;height:36px}
.section-choice:hover .section-drawing,.section-choice:focus-visible .section-drawing{color:var(--accent)}
.section-choice .pill{position:absolute;top:22px;right:18px}
/* In the Estimates list's department colours, a stripe and nothing more. */
.section-stripe{position:absolute;inset:0 0 auto 0;display:flex;height:6px}
.section-stripe i{flex:1;background:var(--department)}

/* The question is the way in, with no menu above it until a section is chosen, on a
   computer or a phone. Sign out, which a phone keeps in that menu, stays at the top. */
body.section-question #workspace-nav,body.section-question #workspace-menu,body.section-question #workspace-phone-nav{display:none}
body.section-question #signout{display:inline-flex}

/* Home's title is the section, its mark in the section's colours where the orange one was. */
#app>.workspace-heading.section-title h1::before{display:none}
.section-mark{display:inline-flex;flex-direction:column;width:5px;height:23px;margin-right:11px;vertical-align:-2px;overflow:hidden;border-radius:2px}
.section-mark i,.section-switch-mark i{flex:1;background:var(--department)}

/* At the start of the menu, left of Home, on every screen: the section, a list to switch from. */
#workspace-nav>.section-switch{position:relative;display:flex;align-items:center;flex-shrink:0;margin:0 10px 0 0;padding:0 12px 0 0;border-right:1px solid #ffffff26}
.section-switch-mark{position:absolute;left:8px;top:50%;display:flex;flex-direction:column;width:5px;height:20px;overflow:hidden;border-radius:2px;transform:translateY(-50%);pointer-events:none}
.section-switch select{appearance:none;-webkit-appearance:none;min-height:42px;margin:0;padding:9px 34px 9px 21px;border:1px solid #ffffff4d;border-radius:8px;background:#ffffff14 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/></svg>") no-repeat right 12px center/11px;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;field-sizing:content}
.section-switch select:hover{background-color:#ffffff24}
.section-switch select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.section-switch option{color:#14202e;background:#fff;font-weight:500}
/* On a wide screen the menu has a row of its own whenever the section leads it. */
@media(min-width:1101px){.workspace-on #bar:has(#workspace-nav>.section-switch){flex-wrap:wrap}.workspace-on #bar:has(#workspace-nav>.section-switch) #workspace-nav{order:5;flex-basis:100%;border-top:1px solid #ffffff20;padding-top:8px}.workspace-on #bar:has(#workspace-nav>.section-switch) #who{margin-left:auto;max-width:50%}}
/* Room for it in the row: the menu's buttons closer together while it leads them, and
   their words alone, without drawings, where the screen is narrower still. */
@media(min-width:1101px) and (max-width:1600px){.workspace-on #bar:has(#workspace-nav>.section-switch) #workspace-nav>button{padding:10px 8px;font-size:12px;gap:6px}}
@media(min-width:1101px) and (max-width:1400px){.workspace-on #bar:has(#workspace-nav>.section-switch) #workspace-nav>button svg{display:none}.workspace-on #workspace-nav>.section-switch select{font-size:13px}}
/* In the menu a tablet or phone opens: across the top of it. */
#workspace-nav.is-open>.section-switch{grid-column:1/-1;margin:0 0 6px;padding:0;border:0}
#workspace-nav.is-open>.section-switch select{width:100%;min-height:48px;field-sizing:fixed}

@media(max-width:760px){
  .section-choices{grid-template-columns:1fr;gap:12px}
  button.section-choice{flex-direction:row;align-items:center;justify-content:flex-start;min-height:92px;padding:24px 18px 18px}
  .section-choice strong{font-size:18px}
  .section-drawing svg{width:28px;height:28px}
  .section-choice .pill{position:static;margin-left:auto;flex:none}
  .section-mark{height:20px;margin-right:9px}
}
