/* p5-11 OFFICE HOME (R-1009-60). JD 2026-10-09 11:37 PM, live, acting as
   Office: "We need to make the office page look better. I don't like the way
   it looks. Acting as office. Out of service board. Upload a job in circuit
   maps. Needs a better look."

   The office tools screen as the owner's Home: the SAME door (storm-look.css
   section 9 - panel ground, steel control edge, 6 px colour edge on the left,
   chevron drawn with borders, no character), at 56 px / 17 px bold, grouped
   under small-caps headings. Every rule is keyed off #office-home or
   #office-codes, so the sign-in, refused and code screens are untouched.
   Colours are the storm-look / tokens.css tokens - no value is declared here.
   Device first; the desk grid (>= 900 px) is the one media query at the end
   (the p5-7 pattern, its own rules - desk.css is not linked or edited). */

/* ---- the Home groups -------------------------------------------------- */
#office-home { margin: 8px 0 16px; }
#office-home [hidden] { display: none !important; }
#office-home .oh-group { --oh-c: var(--c-blue-2, var(--c-border)); margin: 0 0 8px; }
#office-home .oh-storm   { --oh-c: var(--c-amber, var(--c-border)); }
#office-home .oh-people  { --oh-c: var(--c-blue-2, var(--c-border)); }
#office-home .oh-jobs    { --oh-c: var(--c-green, var(--c-border)); }
#office-home .oh-fleet   { --oh-c: var(--c-cyan, var(--c-border)); }
#office-home .oh-records { --oh-c: var(--c-violet-text, var(--c-border)); }
#office-home .oh-more    { --oh-c: var(--c-border); }

/* small-caps heading: beats storm-look's display-font h2 by the id */
#office-home h2.oh-head {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-text-3, var(--c-text-2));
  margin: 20px 2px 8px;
  padding: 0;
  border: 0;
  text-shadow: none;
}
#office-home .oh-group > p { margin: 0 0 8px; }

/* THE DOOR - the owner Home row, at the office size */
#office-home .oh-group > p > a,
#office-home .oh-group > p > button {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 8px 44px 8px 14px;
  background: var(--c-panel, var(--c-bg));
  color: var(--c-text);
  border: 2px solid var(--c-border);
  border-left: 6px solid var(--oh-c);
  border-radius: var(--radius-card, var(--radius));
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  box-shadow: none;
  overflow-wrap: anywhere;
}
/* chevron drawn with borders - no character, no text */
#office-home .oh-group > p > a::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px;
  border-top: 3px solid var(--c-text-3, var(--c-text-2));
  border-right: 3px solid var(--c-text-3, var(--c-text-2));
  transform: rotate(45deg);
}
#office-home .oh-group > p > a:focus-visible,
#office-home .oh-group > p > button:focus-visible {
  outline: 3px solid var(--c-text); outline-offset: 2px;
}
/* the button in MORE (Reload bridge list) is an action, not a door: the
   steel edge all round, no colour bar, no chevron */
#office-home .oh-group > p > button { border-left: 2px solid var(--c-border); padding-left: 18px; }

/* E-50's count line, under the Out-of-service door: small, not a door */
#office-home .oh-group > p.oh-note { margin: -4px 0 10px; }
#office-home .oh-group > p.oh-note > a {
  display: inline; min-height: 0; width: auto;
  padding: 0 0 0 14px; background: none; border: 0;
  font-size: 15px; font-weight: 600;
  color: var(--c-text-2);
  text-decoration: underline;
}
#office-home .oh-group > p.oh-note > a::after { content: none; }
#office-home .oh-group > p.oh-note > a:empty { display: none; }
#office-home #office-nbi-status { font-size: 15px; }

/* ---- SIGN-IN CODES: shown only when the PEOPLE row targets it --------- */
#office-codes { display: none; scroll-margin-top: 170px; }  /* clears the sticky header strip */
#office-codes:target { display: block; }
#screen-office-tools:has(#office-codes:target) #office-home { display: none; }
#office-codes a.oh-back {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 14px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-weight: 700; text-decoration: none;
}

/* ---- device guard: no sideways scroll at 390 px ---------------------- */
#screen-office-tools { max-width: 100%; overflow-wrap: anywhere; }

/* ---- DESK (>= 900 px): the five groups and MORE as a 3-column grid of
   cards. Under 900 px nothing below applies. --------------------------- */
@media (min-width: 900px) {
  /* P5-92 (JD 2026-10-13 6:05 PM): the dock stays at desk like every page;
     the p5-7 rule that hid it here is removed */
  /* P5-86: the page foot is storm-look.css's one rule (the hidden bar
     publishes 0 px); the fixed 24 px that was here is removed */
  body:has(#screen-office-tools:not([hidden])) { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
  #office-home {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  #office-home .oh-group {
    margin: 0;
    padding: 4px 16px 10px;
    background: var(--c-panel-2, var(--c-bg));
    border: 1px solid var(--c-line, var(--c-border));
    border-top: 4px solid var(--oh-c);
    border-radius: var(--radius-card, var(--radius));
  }
  #office-home h2.oh-head { margin: 12px 2px 10px; }
  #office-codes:target { max-width: 44rem; }
}
