/* ============================================================
   APPNL Office AV Guide
   Design intent: room-plaque wayfinding. Someone is standing in
   a meeting room with a phone, and people are waiting. Big
   targets, loud network labels, no decoration that isn't load-bearing.
   ============================================================ */

:root{
  --ink:      #14181F;
  --ink-2:    #262E39;
  --paper:    #F4F5F7;
  --card:     #FFFFFF;
  --brass:    #B8912F;
  --signal:   #0F6E7D;
  --alert:    #A9490C;
  --alert-bg: #FDF3EA;
  --line:     #E2E6EA;
  --muted:    #5C6773;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 10px;
  --pad: 20px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.wrap{ width:100%; max-width:760px; margin:0 auto; padding:0 var(--pad); }

.skip{
  position:absolute; left:-9999px;
  background:var(--ink); color:#fff; padding:12px 18px; z-index:100;
}
.skip:focus{ left:12px; top:12px; }

:focus-visible{ outline:3px solid var(--brass); outline-offset:2px; }

img{ max-width:100%; display:block; }


/* ---------- masthead ---------- */

.masthead{
  background:var(--ink);
  color:#fff;
  padding:16px 0;
  position:sticky; top:0; z-index:20;
}
.masthead-in{ display:flex; align-items:center; }

.brand{
  display:flex; align-items:center; gap:12px;
  color:inherit; text-decoration:none;
  min-height:44px;
}
.brand-logo{
  display:block;
  height:34px;
  width:auto;
  background:#fff;
  padding:6px 9px;
  border-radius:5px;
  flex-shrink:0;
}
.brand-divider{
  width:1px;
  align-self:stretch;
  margin:2px 0;
  background:rgba(255,255,255,.18);
  flex-shrink:0;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{
  font-family:var(--display);
  font-weight:600;
  font-size:23px;
  letter-spacing:.01em;
}
.brand-text em{
  font-style:normal;
  font-size:11.5px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#94A0AE;
  margin-top:2px;
}


/* ---------- breadcrumb ---------- */

.crumb{
  background:var(--ink-2);
  position:sticky; top:69px; z-index:19;
}
.crumb-back{
  display:inline-flex; align-items:center; gap:9px;
  color:#C3CCD6; text-decoration:none;
  font-size:14px; font-weight:500;
  padding:13px 0;
  min-height:48px;
}
.crumb-back svg{ width:14px; height:14px; flex-shrink:0; }
.crumb-back:hover{ color:#fff; }


/* ---------- search ---------- */

.search{ margin:26px 0 8px; position:relative; }
.search input{
  width:100%;
  font-family:var(--body);
  font-size:17px;
  padding:15px 16px 15px 46px;
  border:1.5px solid var(--line);
  border-radius:var(--r);
  background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235C6773' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='M13.5 13.5 18 18' stroke-linecap='round'/%3E%3C/svg%3E") 15px center / 19px no-repeat;
  color:var(--ink);
}
.search input:focus{ border-color:var(--ink); outline:none; }
.search input::placeholder{ color:var(--muted); }


/* ---------- section heads ---------- */

.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
  margin:34px 0 12px;
}

.lede{
  font-size:18px;
  color:var(--muted);
  margin:20px 0 0;
  max-width:52ch;
}


/* ---------- room cards ---------- */

.rooms{ display:grid; gap:12px; margin:0 0 8px; }

.room{
  display:block;
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--r);
  padding:20px;
  text-decoration:none;
  color:inherit;
  transition:border-color .15s, transform .15s;
}
.room:hover{ border-color:var(--ink); }
.room:active{ transform:scale(.994); }

.room-top{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; }

.room-name{
  font-family:var(--display);
  font-size:31px;
  font-weight:600;
  line-height:1.05;
  letter-spacing:.005em;
  margin:0;
}
.room-plaque{
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:500;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  flex-shrink:0;
}
.room-blurb{ margin:7px 0 0; font-size:15px; color:var(--muted); }
.room-foot{ display:flex; align-items:center; gap:12px; margin-top:14px; flex-wrap:wrap; }
.room-count{ font-size:13.5px; color:var(--muted); }


/* ---------- SIGNATURE: the network plaque ----------
   The wrong Wi-Fi network causes most failures in these rooms,
   so the SSID is set like a physical door plaque and repeated
   everywhere the room appears. */

.plaque{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--mono);
  font-size:13px;
  font-weight:600;
  letter-spacing:.11em;
  color:#fff;
  background:var(--signal);
  padding:7px 12px 6px;
  border-radius:4px;
}
.plaque::before{
  content:"WI-FI";
  font-size:9px;
  letter-spacing:.14em;
  opacity:.72;
  border-right:1px solid rgba(255,255,255,.4);
  padding-right:9px;
}
.plaque-lg{ font-size:17px; padding:11px 16px 10px; }
.plaque-lg::before{ font-size:10px; }


/* ---------- guide list ---------- */

.guides{ display:grid; gap:10px; }

.guide{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:var(--r);
  padding:18px 20px;
  text-decoration:none; color:inherit;
  transition:border-color .15s;
}
.guide:hover{ border-color:var(--ink); }
.guide-title{ font-weight:600; font-size:17px; line-height:1.35; }
.guide-meta{ font-size:13.5px; color:var(--muted); margin-top:3px; }
.guide-arrow{ color:var(--muted); flex-shrink:0; }
.guide-arrow svg{ width:17px; height:17px; display:block; }


/* ---------- room header on a room page ---------- */

.roomhead{ padding:30px 0 4px; }
.roomhead h1{
  font-family:var(--display);
  font-size:44px; font-weight:700; line-height:1;
  margin:0 0 14px;
  letter-spacing:.005em;
}
.roomhead p{ margin:14px 0 0; color:var(--muted); max-width:52ch; }


/* ---------- guide page ---------- */

.guidehead{ padding:28px 0 0; }
.guidehead h1{
  font-family:var(--display);
  font-size:38px; font-weight:700; line-height:1.05;
  margin:0 0 12px;
}
.tags{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:4px; }
.tag{
  font-family:var(--mono);
  font-size:11px; font-weight:500; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  background:var(--card);
  padding:6px 10px 5px;
  border-radius:4px;
}

/* steps — numbered because these genuinely are ordered procedures */
.steps{ list-style:none; counter-reset:s; padding:0; margin:26px 0 0; }

.step{
  counter-increment:s;
  position:relative;
  padding:0 0 26px 52px;
  border-left:1.5px solid var(--line);
  margin-left:15px;
}
.step:last-child{ border-left-color:transparent; padding-bottom:8px; }

.step::before{
  content:counter(s,decimal-leading-zero);
  position:absolute; left:-16px; top:-2px;
  width:31px; height:31px;
  display:grid; place-items:center;
  font-family:var(--mono); font-size:12px; font-weight:600;
  color:#fff; background:var(--ink);
  border-radius:50%;
  border:3px solid var(--paper);
}

.step-text{ margin:2px 0 0; }
.step-text b{ font-weight:600; }

.step code, .inline-code{
  font-family:var(--mono);
  font-size:.88em;
  font-weight:600;
  background:#EDF0F2;
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:4px;
  word-break:break-word;
}
.step a{ color:var(--signal); text-decoration-thickness:1px; text-underline-offset:2px; word-break:break-word; }

.note{
  display:flex; gap:10px;
  margin-top:12px;
  background:var(--alert-bg);
  border-left:3px solid var(--alert);
  border-radius:0 6px 6px 0;
  padding:11px 14px;
  font-size:15px;
  color:#6E3208;
}
.note b{
  font-family:var(--mono);
  font-size:10.5px; letter-spacing:.13em; text-transform:uppercase;
  color:var(--alert); flex-shrink:0; padding-top:3px;
}

.shot{ margin:14px 0 0; }
.shot button{
  display:block; padding:0; border:1.5px solid var(--line);
  background:var(--card); border-radius:8px; overflow:hidden; cursor:zoom-in;
  width:100%; max-width:360px;
}
.shot img{ width:100%; height:auto; }
.shot figcaption{ font-size:13.5px; color:var(--muted); margin-top:7px; max-width:44ch; }


/* ---------- legend (speaker buttons) ---------- */

.legend{ margin:30px 0 0; border:1.5px solid var(--line); border-radius:var(--r); background:var(--card); overflow:hidden; }
.legend h2{
  font-family:var(--display); font-size:23px; font-weight:600;
  margin:0; padding:15px 20px 13px;
  border-bottom:1.5px solid var(--line);
}
.legend dl{ margin:0; padding:6px 20px 16px; }
.legend .row{ display:flex; gap:14px; padding:13px 0; border-bottom:1px solid var(--line); }
.legend .row:last-child{ border-bottom:0; }
.legend dt{
  font-family:var(--mono); font-weight:600; font-size:14px;
  width:30px; height:30px; flex-shrink:0;
  display:grid; place-items:center;
  border:1.5px solid var(--ink); border-radius:50%;
}
.legend dd{ margin:0; }
.legend dd b{ display:block; font-weight:600; }
.legend dd span{ font-size:15px; color:var(--muted); }


/* ---------- faults ---------- */

.faults{ margin:30px 0 0; border:1.5px solid var(--line); border-radius:var(--r); background:var(--card); overflow:hidden; }
.faults h2{
  font-family:var(--display); font-size:23px; font-weight:600;
  margin:0; padding:15px 20px 13px;
  border-bottom:1.5px solid var(--line);
}
.fault{ padding:15px 20px; border-bottom:1px solid var(--line); }
.fault:last-child{ border-bottom:0; }
.fault b{ display:block; font-weight:600; }
.fault span{ display:block; font-size:15.5px; color:var(--muted); margin-top:3px; }


/* ---------- escalation ---------- */

.escalate{
  margin:34px 0 0;
  background:var(--ink);
  color:#C9D2DB;
  border-radius:var(--r);
  padding:22px;
}
.escalate h2{
  font-family:var(--display); font-size:24px; font-weight:600;
  color:#fff; margin:0 0 7px;
}
.escalate p{ margin:0; font-size:15.5px; max-width:50ch; }


/* ---------- search results ---------- */

.results{ margin:16px 0 0; }
.empty{ color:var(--muted); padding:22px 0; }
.hit-room{
  font-family:var(--mono); font-size:11px; font-weight:500;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
  margin-bottom:3px;
}
mark{ background:#FBEBBE; color:inherit; padding:0 2px; border-radius:2px; }


/* ---------- lightbox ---------- */

.lightbox{
  position:fixed; inset:0; z-index:80;
  background:rgba(10,13,17,.94);
  display:grid; place-items:center; padding:26px;
}
.lightbox img{ max-width:100%; max-height:88vh; width:auto; border-radius:6px; }
.lightbox-close{
  position:absolute; top:14px; right:16px;
  width:46px; height:46px;
  background:none; border:0; color:#fff;
  font-size:34px; line-height:1; cursor:pointer;
}


/* ---------- footer ---------- */

.foot{
  margin-top:52px; padding:26px 0 40px;
  border-top:1.5px solid var(--line);
  font-size:14px; color:var(--muted);
}
.foot p{ margin:0; }
.foot-sub{ margin-top:4px; font-size:13.5px; }


/* ---------- responsive ---------- */

@media (min-width:640px){
  .rooms{ gap:14px; }
  .roomhead h1{ font-size:52px; }
  .guidehead h1{ font-size:44px; }
}

@media (max-width:400px){
  :root{ --pad:16px; }
  .room-name{ font-size:27px; }
  .roomhead h1{ font-size:36px; }
  .guidehead h1{ font-size:30px; }
  .step{ padding-left:44px; }
}

@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}

@media print{
  .masthead,.crumb,.search,.foot,.guide-arrow{ display:none; }
  body{ background:#fff; font-size:12pt; }
  .step{ break-inside:avoid; }
  .shot button{ border:1px solid #ccc; }
}


/* ---------- hidden attribute ----------
   .crumb and .lightbox set display in their own rules, which would
   otherwise override the [hidden] attribute and leave them on screen. */

[hidden]{ display:none !important; }
