/* The Off guides (offhelp, offshortcuts, wol): the Off page's look, in the app's own colours:
   black, charcoal cards and the icon's green. Own class names (g-*) keep clear of the shared
   dark-mode rules for the old page classes. */
:root {
  color-scheme: dark;
  --g-bg: #060806;
  --g-raised: #0E130C;
  --g-card: rgba(241, 246, 236, 0.04);
  --g-card-hover: rgba(241, 246, 236, 0.07);
  --g-line: rgba(235, 245, 228, 0.11);
  --g-text: #F1F6EC;
  --g-muted: rgba(241, 246, 236, 0.72);
  --g-green: #5CCB2A;
  --g-green-bright: #7ED247;
  --g-green-soft: rgba(110, 205, 60, 0.11);
  --g-green-line: rgba(126, 210, 71, 0.28);
  --g-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --g-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.g-body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-font);
  -webkit-font-smoothing: antialiased;
}

/* Navbar and footer: black in both colour schemes, with the light logo, as on the Off page. */
body.g-body .topnav { background-color: #030403; border-color: var(--g-line); }
body.g-body .topnav a,
body.g-body .dropdown .dropbtn { color: #DDE6D6; }
body.g-body .dropdown-content { background-color: #141813; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); }
body.g-body .dropdown-content a { color: #DDE6D6; }
body.g-body .topnav a:hover,
body.g-body .dropdown:hover .dropbtn,
body.g-body .dropdown-content a:hover { background-color: #1F271C; color: #FFFFFF; }
body.g-body .topnav a.active {
  background-color: #030403;
  background-image: url("BridgeTech Logo Light.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-origin: content-box;
  background-clip: content-box;
  display: flex;
  align-items: center;
}
body.g-body .topnav a.active img { visibility: hidden; }
body.g-body .navBar { background: #030403; margin: 0; padding: 4px 0 10px; color: #DDE6D6; }

/* Title, and the tabs between the three guides */
.g-hero {
  padding: 64px 20px 44px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110, 205, 60, 0.20), transparent 62%),
    var(--g-bg);
}
.g-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-green-bright);
}
.g-h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--g-text);
}
.g-sub {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.45;
  color: var(--g-muted);
}
.g-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 30px;
  padding: 4px;
  border-radius: 999px;
  background: var(--g-card);
  border: 1px solid var(--g-line);
}
.g-tabs a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--g-muted);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.g-tabs a:hover { color: var(--g-text); background: var(--g-card-hover); }
.g-tabs a[aria-current] { color: #071005; background: var(--g-green-bright); }
@media (max-width: 520px) {
  .g-tabs { border-radius: 22px; }
  .g-tabs a { padding: 8px 12px; font-size: 14px; }
}

/* The reading column */
.g-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 88px;
}
.g-main a { color: var(--g-green-bright); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.g-main a:hover { color: #A4E57A; }
.g-h2 {
  margin: 64px 0 16px;
  font-size: clamp(25px, 3.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--g-text);
  scroll-margin-top: 24px;
}
.g-main > .g-h2:first-child,
.g-main > div:first-child > .g-h2:first-child { margin-top: 24px; }
.g-h3 {
  margin: 40px 0 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--g-text);
  scroll-margin-top: 24px;
}
.g-p,
.g-list {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--g-muted);
}
.g-p b, .g-p strong, .g-list b, .g-list strong { color: var(--g-text); font-weight: 600; }
.g-list { padding-left: 1.3em; }
.g-list li { margin: 0 0 10px; padding-left: 4px; }
.g-list li::marker { color: var(--g-green-bright); }
ol.g-list li::marker { font-weight: 700; font-family: var(--g-rounded); }

/* Screenshots */
.g-shot {
  display: block;
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  margin: 20px auto 28px;
  border-radius: 14px;
  border: 1px solid var(--g-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* Notes */
.g-note {
  position: relative;
  margin: 24px 0;
  padding: 16px 20px 16px 52px;
  border-radius: 16px;
  background: var(--g-green-soft);
  border: 1px solid var(--g-green-line);
}
.g-note::before {
  content: "i";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--g-green-bright);
  color: #071005;
  font: 800 14px/22px var(--g-rounded);
  text-align: center;
}
.g-note p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: var(--g-text); }
.g-note p:last-of-type { margin-bottom: 0; }
.g-note .g-shot { margin: 16px auto 4px; max-height: 420px; }
.g-note .g-list,
.g-steps .g-note .g-list { margin: 8px 0 0; padding-left: 1.2em; font-size: 16px; color: var(--g-text); }
.g-note .g-list li { margin-bottom: 4px; }

/* Numbered steps (the Wake-on-LAN walkthrough) */
.g-steps { counter-reset: g-step; }
.g-step-text {
  counter-increment: g-step;
  position: relative;
  margin: 36px 0 0;
  padding-left: 46px;
  font-size: 17.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--g-text);
}
.g-step-text::before {
  content: counter(g-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--g-green-bright);
  color: #071005;
  font: 800 15px/30px var(--g-rounded);
  text-align: center;
}
.g-steps .g-list,
.g-steps .g-note { margin-left: 46px; }
.g-steps .g-shot { margin: 18px 0 8px 46px; max-width: calc(100% - 46px); }
@media (max-width: 560px) {
  .g-steps .g-list,
  .g-steps .g-note { margin-left: 0; }
  .g-steps .g-shot { margin-left: 0; max-width: 100%; }
}

/* Step cards (the Shortcuts walkthrough): the words beside the phone screenshot */
.g-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 8px 28px;
  align-items: center;
  margin: 16px 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--g-card);
  border: 1px solid var(--g-line);
}
.g-card .g-shot { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-height: 410px; justify-self: center; border-radius: 12px; }
.g-card .g-p { margin: 0; color: var(--g-text); font-size: 18px; }
.g-step-label {
  align-self: end;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-green-bright);
}
.g-card .g-p { align-self: start; }
@media (max-width: 620px) {
  .g-card { grid-template-columns: 1fr; padding: 20px; }
  .g-card .g-shot { grid-column: 1; grid-row: auto; margin-top: 12px; max-height: 460px; }
}

/* Questions (the Help guide): a jump list of topics, then a card per question */
.g-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 8px;
  padding: 0;
  list-style: none;
}
.g-jump a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--g-line);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--g-muted) !important;
  text-decoration: none;
}
.g-jump a:hover { color: var(--g-text) !important; border-color: var(--g-green-line); background: var(--g-green-soft); }
.g-faq {
  margin: 10px 0;
  border-radius: 18px;
  background: var(--g-card);
  border: 1px solid var(--g-line);
  transition: background .2s ease, border-color .2s ease;
}
.g-faq:hover { background: var(--g-card-hover); }
.g-faq[open] { border-color: var(--g-green-line); }
.g-faq summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--g-text);
  border-radius: 18px;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background:
    linear-gradient(var(--g-green-bright), var(--g-green-bright)) center / 10px 2px no-repeat,
    linear-gradient(var(--g-green-bright), var(--g-green-bright)) center / 2px 10px no-repeat,
    var(--g-green-soft);
  transition: transform .25s ease;
}
.g-faq[open] summary::after { transform: rotate(45deg); }
.g-faq summary:focus-visible { outline: 2px solid var(--g-green-bright); outline-offset: 2px; }
.g-answer { padding: 0 22px 8px; }
.g-answer .g-p, .g-answer .g-list { font-size: 16.5px; }
.g-answer .g-shot { max-height: 520px; margin: 16px 0 24px; }
