/* ==========================================================================
   guide.css — the in-app User Guide, plus the pieces it adds to every page
   (the "?" help button, the command palette, the shortcut dialog, the help
   drawer). Loaded after style.css and reusing its custom properties.
   ========================================================================== */

:root {
  --g-line-soft: #e8edf3;
  --g-tip: #0e7c66;
  --g-warn: #d97706;
  --g-imp: #1d4ed8;
  --g-shadow: 0 10px 30px rgba(15, 42, 74, 0.16);
}

/* ---------- The "?" button in the navigation bar ---------- */

.nav-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}

.nav-help:hover { background: #eaf5f2; border-color: var(--teal); color: var(--teal) !important; }
.main-nav a.nav-help { padding: 0; border-bottom: 1px solid var(--line); }
.main-nav a.nav-help:hover { border-bottom-color: var(--teal); }

/* ==========================================================================
   Guide page layout
   ========================================================================== */

.g-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.g-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.1s linear;
}

.g-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (min-width: 1280px) {
  .g-shell { grid-template-columns: 232px minmax(0, 1fr) 210px; }
}

/* The guide is wider than the rest of the app: it is a document, not a form. */
body.g-page .container { max-width: 1320px; }

/* ---------- Contents (a <details> so it collapses on phones without JS) ---- */

.g-side { align-self: start; }

.g-side > .g-side-sum {
  display: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  list-style: none;
  margin-bottom: 12px;
}

.g-side > .g-side-sum::-webkit-details-marker { display: none; }
.g-side > .g-side-sum::after { content: " \25BE"; color: var(--muted); }

/* On wide screens the contents are always shown, open or not. */
@media (min-width: 861px) {
  .g-side > .g-side-inner { display: block !important; }
  .g-side-inner {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 6px;
  }
}

.g-toc { display: flex; flex-direction: column; }

.g-toc-sec {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 16px 0 6px;
}

.g-toc-sec:first-child { margin-top: 0; }
.g-toc-ico { font-size: 0.95rem; }

.g-toc-link {
  display: block;
  padding: 5px 10px;
  margin-left: 2px;
  border-left: 2px solid var(--g-line-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.35;
}

.g-toc-link:hover { color: var(--teal); border-left-color: #b7d8cf; background: #f6fbf9; }

.g-toc-link.is-active {
  color: var(--teal);
  border-left-color: var(--teal);
  background: #eef7f4;
  font-weight: 600;
}

/* ---------- Toolbar ---------- */

.g-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.g-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  box-shadow: 0 1px 3px rgba(15, 42, 74, 0.06);
}

.g-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.14); }
.g-search-ico { color: var(--muted); font-size: 0.95rem; line-height: 1; }

.g-search input[type="search"] {
  flex: 1 1 auto;
  border: 0;
  padding: 8px 0;
  font-size: 0.95rem;
  background: transparent;
}

.g-search input[type="search"]:focus { outline: none; box-shadow: none; border: 0; }

.g-search-key {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  background: #f7f9fc;
}

.g-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.g-viewswitch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.g-vs {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.g-vs:last-child { border-right: 0; }
.g-vs:hover { background: #f4faf8; color: var(--teal); }
.g-vs.is-on { background: var(--teal); color: #fff; }

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

.g-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 62vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--g-shadow);
  z-index: 40;
  padding: 6px;
}

.g-res {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

.g-res:hover, .g-res.is-sel { background: #eef7f4; }
.g-res-t { display: block; font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.g-res-sec { float: right; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.g-res-s { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.g-res mark { background: #fdf1de; color: inherit; padding: 0 1px; border-radius: 2px; }
.g-res-empty { padding: 14px; color: var(--muted); font-size: 0.88rem; }

/* ---------- Hero ---------- */

.g-hero {
  background: linear-gradient(135deg, #0f2a4a 0%, #143a66 55%, #16497e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  margin-bottom: 20px;
}

.g-hero-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.75;
  margin: 0 0 6px;
}

.g-hero h1 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.g-hero-sub { color: #cbdcee; font-size: 0.94rem; max-width: 62ch; margin: 0; }

.g-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.g-quick-card {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 13px 15px;
  text-decoration: none;
  color: #fff;
  transition: background 0.14s ease, transform 0.14s ease;
}

.g-quick-card:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: translateY(-1px); }

.g-quick-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.g-quick-t { display: block; font-weight: 700; font-size: 0.95rem; }
.g-quick-s { display: block; font-size: 0.8rem; color: #c6d8ea; margin-top: 3px; line-height: 1.4; }

/* ---------- Hub cards ---------- */

.g-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.g-hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.g-hub-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.g-hub-ico { font-size: 1.15rem; }
.g-hub-head h3 { margin: 0; font-size: 1rem; }
.g-hub-blurb { color: var(--muted); font-size: 0.84rem; margin: 0 0 10px; }

.g-hub-list { list-style: none; margin: 0; padding: 0; }
.g-hub-list li { margin: 0; }

.g-hub-list a {
  display: block;
  padding: 5px 0 5px 14px;
  font-size: 0.87rem;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--g-line-soft);
  position: relative;
}

.g-hub-list li:first-child a { border-top: 0; }
.g-hub-list a::before { content: "\203A"; position: absolute; left: 2px; color: var(--muted); }
.g-hub-list a:hover { color: var(--teal); }
.g-hub-list a:hover::before { color: var(--teal); }

/* ---------- Search results page (no-JS) ---------- */

.g-serp-list { margin: 12px 0 0; padding-left: 20px; }
.g-serp-list li { margin-bottom: 14px; }
.g-serp-title { font-weight: 700; font-size: 0.98rem; }
.g-serp-sec { font-size: 0.72rem; color: var(--muted); margin-left: 8px; font-weight: 600; }
.g-serp-snip { color: var(--muted); font-size: 0.86rem; margin: 3px 0 0; }
.g-serp-snip mark { background: #fdf1de; color: inherit; }

.g-locked { border-left: 4px solid var(--amber); }

/* ---------- The document ---------- */

.g-section { margin-bottom: 34px; }

.g-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.24rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g-line-soft);
  margin-bottom: 4px;
  scroll-margin-top: 90px;
}

.g-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  scroll-margin-top: 88px;
}

.g-art-title {
  font-size: 1.06rem;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.g-anchor {
  opacity: 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  transition: opacity 0.12s ease;
}

.g-article:hover .g-anchor, .g-anchor:focus { opacity: 1; }
.g-anchor:hover { color: var(--teal); }

.g-art-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }

.g-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  color: var(--muted);
  white-space: nowrap;
}

.g-chip-chair { background: #fdf1de; border-color: #f2dcb3; color: #9a5b06; }
.g-chip-admin { background: #e3edfb; border-color: #c6dbf6; color: #1d4ed8; }
.g-chip-solid { background: var(--teal); border-color: var(--teal); color: #fff; }
.g-time { font-size: 0.74rem; color: var(--muted); }

.g-art-sum {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--g-line-soft);
}

.g-body { font-size: 0.94rem; }
.g-body > *:first-child { margin-top: 0; }
.g-body > *:last-child { margin-bottom: 0; }
.g-body h3 { font-size: 0.98rem; margin: 22px 0 8px; color: var(--navy); }
.g-body p { margin: 0 0 12px; }
.g-body ul, .g-body ol { margin: 0 0 12px; padding-left: 22px; }
.g-body li { margin-bottom: 6px; }

.g-body code {
  background: #f2f5f9;
  border: 1px solid var(--g-line-soft);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-word;
}

.g-code {
  background: #0f2a4a;
  color: #dce8f5;
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0 0 14px;
}

.g-code code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

/* Numbered steps with a connecting line */

.g-body ol.g-steps {
  list-style: none;
  counter-reset: gstep;
  padding-left: 0;
  margin: 0 0 16px;
}

.g-body ol.g-steps > li {
  position: relative;
  counter-increment: gstep;
  padding: 0 0 14px 38px;
  margin: 0;
}

.g-body ol.g-steps > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf5f2;
  border: 1px solid #bfdfd6;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-body ol.g-steps > li::after {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 26px;
  bottom: 2px;
  width: 1px;
  background: var(--g-line-soft);
}

.g-body ol.g-steps > li:last-child { padding-bottom: 0; }
.g-body ol.g-steps > li:last-child::after { display: none; }

/* Callouts */

.g-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 9px;
  padding: 12px 15px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  background: #f8fafc;
}

.g-callout > *:last-child { margin-bottom: 0; }
.g-tip { border-left-color: var(--g-tip); background: #f1f9f6; }
.g-warn { border-left-color: var(--g-warn); background: #fffbf3; }
.g-important { border-left-color: var(--g-imp); background: #f3f7fe; }

/* Tables inside articles */

.g-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.88rem; }
.g-table th, .g-table td { padding: 9px 11px; border-bottom: 1px solid var(--g-line-soft); vertical-align: top; }
.g-table thead th { background: #f4f7fa; color: var(--navy); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.4px; }
.g-table tbody tr:hover { background: #fafbfd; }
.g-table code { white-space: nowrap; }

.g-keys-group { font-size: 0.86rem !important; margin: 18px 0 6px !important; color: var(--muted) !important; text-transform: uppercase; letter-spacing: 0.5px; }
.g-keys tbody tr:hover { background: transparent; }
.g-keys-cell { width: 190px; white-space: nowrap; }
.g-plus { color: var(--muted); font-size: 0.75rem; margin: 0 1px; }

kbd {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid #c9d3de;
  border-bottom-width: 2px;
  border-radius: 6px;
  line-height: 1.4;
}

/* FAQ */

.g-faq {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  margin: 0 0 8px;
  background: #fff;
}

.g-faq > summary {
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.91rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g-faq > summary::-webkit-details-marker { display: none; }
.g-faq > summary::before { content: "\25B8"; color: var(--muted); font-size: 0.8rem; }
.g-faq[open] > summary::before { content: "\25BE"; }
.g-faq[open] > summary { border-bottom: 1px solid var(--g-line-soft); }
.g-faq > *:not(summary) { padding: 0 14px; }
.g-faq > p { margin: 11px 0; }

/* Figures */

.g-figure { margin: 0 0 18px; text-align: center; }

.g-figure .g-svg,
.g-figure .g-shot {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.g-figure .g-shot { border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15, 42, 74, 0.08); cursor: zoom-in; }

.g-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.g-inline-flash { padding: 3px 8px !important; font-size: 0.78rem !important; margin: 0 !important; display: inline-block; }

/* Cross references and "see also" */

.g-xref { font-weight: 600; text-decoration: none; border-bottom: 1px solid #b7d8cf; }
.g-xref:hover { border-bottom-color: var(--teal); }

.g-related {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--g-line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.g-related > span { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; }

.g-related a {
  background: #f4f7fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  color: var(--navy);
}

.g-related a:hover { background: #eaf5f2; border-color: var(--teal); color: var(--teal); }

.g-backtop { text-align: center; margin: 24px 0 0; font-size: 0.85rem; }

/* Brief highlight after jumping to an article from search or a cross link. */
.g-article.is-flash { box-shadow: 0 0 0 3px rgba(14, 124, 102, 0.35); transition: box-shadow 0.25s ease; }

/* ---------- "On this page" rail ---------- */

.g-rail { display: none; }

@media (min-width: 1280px) {
  .g-rail {
    display: block;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    font-size: 0.8rem;
  }
}

.g-rail-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.g-rail a { display: block; padding: 4px 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--g-line-soft); line-height: 1.35; }
.g-rail a:hover { color: var(--teal); border-left-color: #b7d8cf; }
.g-rail a.is-active { color: var(--teal); border-left-color: var(--teal); font-weight: 600; }

/* ==========================================================================
   Overlays shared by every page: palette, shortcut dialog, help drawer
   ========================================================================== */

.g-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, 0.42);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}

.g-overlay[hidden] { display: none; }

/* Command palette */

.g-palette {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--g-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.g-pal-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.g-pal-head input { border: 0; font-size: 1rem; flex: 1 1 auto; padding: 4px 0; }
.g-pal-head input:focus { outline: none; box-shadow: none; border: 0; }
.g-pal-hint { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.g-pal-list { overflow-y: auto; padding: 6px; }

.g-pal-group { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); font-weight: 700; padding: 10px 10px 4px; }

.g-pal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.g-pal-item:hover, .g-pal-item.is-sel { background: #eef7f4; }
.g-pal-ico { flex: none; width: 20px; text-align: center; color: var(--muted); }
.g-pal-txt { min-width: 0; }
.g-pal-t { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-pal-s { display: block; font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-pal-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* Shortcut dialog */

.g-dialog {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--g-shadow);
  max-height: 78vh;
  overflow-y: auto;
  padding: 22px 26px 26px;
}

.g-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.g-dialog h2 { margin: 0; }
.g-dialog-body .g-table { margin-bottom: 6px; }
.g-dialog .muted { margin-top: 16px; font-size: 0.82rem; }
.g-pal-head .g-pal-ico { font-size: 1rem; }
.g-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.g-close:hover { background: #f4f7fa; color: var(--navy); }

/* Help drawer */

.g-drawer-wrap {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 42, 74, 0.3);
}

.g-drawer-wrap[hidden] { display: none; }

.g-drawer {
  width: min(520px, 100%);
  height: 100%;
  background: var(--bg);
  box-shadow: -8px 0 30px rgba(15, 42, 74, 0.2);
  display: flex;
  flex-direction: column;
  animation: g-slide-in 0.16s ease-out;
}

@keyframes g-slide-in { from { transform: translateX(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .g-drawer { animation: none; } }

.g-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
}

.g-drawer-head strong { font-size: 0.95rem; }
.g-drawer-head a { color: #bfe0d7; font-size: 0.8rem; text-decoration: none; }
.g-drawer-head a:hover { color: #fff; }
.g-drawer-head .g-close { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.g-drawer-head .g-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.g-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }
.g-drawer-body .g-article { margin: 0; }
.g-drawer-body .g-figure .g-svg { max-width: 100%; }
.g-frag-missing { padding: 20px; color: var(--muted); }

/* Image lightbox */

.g-lightbox { position: fixed; inset: 0; background: rgba(11, 22, 34, 0.9); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.g-lightbox[hidden] { display: none; }
.g-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

/* ==========================================================================
   Welcome card on the chair dashboard (first login)
   ========================================================================== */

.g-welcome {
  border-left: 4px solid var(--teal);
  background: linear-gradient(180deg, #f2f9f7 0%, #ffffff 70%);
}

.g-welcome-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g-welcome h2 { margin: 0; font-size: 1.05rem; }
.g-welcome-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0 4px; }

.g-welcome-step {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
}

.g-welcome-step:hover { border-color: var(--teal); color: var(--ink); }
.g-welcome-step b { display: block; color: var(--navy); font-size: 0.92rem; margin-bottom: 3px; }
.g-welcome-step span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.g-welcome-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* ==========================================================================
   Printable handbook (guide.php?print=1)
   ========================================================================== */

.g-print-body { background: #fff; padding: 0 26px 40px; max-width: 900px; margin: 0 auto; }
.g-print-actions { padding: 18px 0; display: flex; gap: 10px; }
.g-print-cover { text-align: center; padding: 30px 0 22px; border-bottom: 3px solid var(--navy); margin-bottom: 24px; }
.g-print-logo { height: 60px; width: auto; margin-bottom: 12px; }
.g-print-cover h1 { font-size: 2rem; margin: 0 0 6px; }
.g-print-sub { color: var(--muted); margin: 0; }
.g-print-date { color: var(--muted); font-size: 0.8rem; margin: 6px 0 0; }
.g-print-toc { margin-bottom: 30px; }
.g-print-toc ol { padding-left: 20px; }
.g-print-toc-sec { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.g-print-toc-sec ol { font-weight: 400; margin: 4px 0 12px; }
.g-print-toc a { color: var(--ink); text-decoration: none; }
.g-print-section h2 { border-bottom: 2px solid var(--g-line-soft); padding-bottom: 6px; margin-top: 26px; }
.g-print-section .g-article { border: 0; padding: 0; margin: 20px 0 26px; }
.g-print-foot { text-align: center; color: var(--muted); font-size: 0.8rem; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) { .g-rail { display: none; } }

@media (max-width: 860px) {
  .g-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-side > .g-side-sum { display: block; }
  .g-side { margin-bottom: 4px; }
  .g-side-inner { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 12px 14px; margin-bottom: 14px; }
  .g-hero { padding: 20px 18px; border-radius: 12px; }
  .g-hero h1 { font-size: 1.4rem; }
  .g-article { padding: 16px 15px; }
  .g-keys-cell { width: auto; }
  .g-table { font-size: 0.84rem; display: block; overflow-x: auto; }
  .g-overlay { padding: 6vh 10px 10px; }
  .g-drawer { width: 100%; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .g-shell { display: block; }
  .g-side, .g-rail, .g-toolbar, .g-progress, .g-hub, .g-quick, .g-backtop,
  .g-overlay, .g-drawer-wrap, .g-lightbox, .g-print-actions, .nav-help { display: none !important; }

  .g-hero { background: none; color: #000; padding: 0 0 12px; border-bottom: 2px solid #000; border-radius: 0; }
  .g-hero h1 { color: #000; }
  .g-hero-sub, .g-hero-eyebrow { color: #333; }

  .g-article { border: 0; padding: 0; margin: 0 0 22px; break-inside: avoid; page-break-inside: avoid; }
  .g-section-title { break-after: avoid; page-break-after: avoid; }
  .g-art-title { break-after: avoid; page-break-after: avoid; }
  .g-code { background: #f2f5f9; color: #1c2733; border: 1px solid #ccc; }
  .g-callout { break-inside: avoid; page-break-inside: avoid; }
  .g-faq > *:not(summary) { display: block !important; }
  .g-figure { break-inside: avoid; page-break-inside: avoid; }
  .g-print-body { padding: 0; }
  a { text-decoration: none; color: inherit; }
}

/* Help links under the chair login form. */
.login-help-links { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--g-line-soft); text-align: center; }
.login-help-links a { text-decoration: none; }
.login-help-links a:hover { text-decoration: underline; }
