/*
 * SPDX-FileCopyrightText: 2026 Arnold Bagabaldo
 * SPDX-License-Identifier: LicenseRef-GoOffice-Proprietary
 */

:root {
  --help-ink: #0b1d34;
  --help-muted: #5e6d7d;
  --help-blue: #087fb8;
  --help-blue-dark: #075682;
  --help-green: #178f70;
  --help-gold: #c79523;
  --help-line: #d8e2ea;
  --help-paper: #ffffff;
  --help-wash: #edf7fb;
}

.help-center-page {
  color: var(--help-ink);
  background: #f6fafc;
}

.help-center-page .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.help-center-page .site-nav > a.is-active {
  color: var(--help-blue-dark);
  box-shadow: inset 0 -2px var(--help-blue);
}

.help-hero {
  width: min(1480px, calc(100% - 48px));
  min-height: 340px;
  margin: 26px auto 0;
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 31, 61, .98), rgba(6, 64, 99, .93)),
    url("/assets/hero-sovereign-office-cloud.png") center / cover;
  box-shadow: 0 26px 70px rgba(12, 43, 70, .16);
}

.help-hero .eyebrow,
.help-article .eyebrow {
  color: #62d8e6;
}

.help-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: .98;
  letter-spacing: 0;
}

.help-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #d6e5ed;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.help-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.help-hero-actions > span {
  color: #c8dce6;
  font-size: 14px;
  font-weight: 700;
}

.help-search-cta {
  min-width: 142px;
  justify-content: center;
}

.help-search {
  margin: 0;
}

.help-search label {
  display: block;
  margin-bottom: 8px;
  color: #264158;
  font-weight: 700;
}

.help-search-row {
  min-height: 60px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 7px 9px 7px 17px;
  border: 1px solid #b8cad6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 52, 77, .09);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.help-search-row:focus-within {
  border-color: var(--help-blue);
  box-shadow: 0 0 0 3px rgba(8, 127, 184, .14), 0 10px 24px rgba(19, 52, 77, .09);
}

.help-search-icon {
  width: 19px;
  height: 19px;
  border: 2px solid var(--help-blue-dark);
  border-radius: 50%;
  position: relative;
}

.help-search-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  background: var(--help-blue-dark);
}

.help-search-row input {
  width: 100%;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  outline: 0;
  color: var(--help-ink);
  background: transparent;
  font-size: 17px;
}

.help-clear {
  padding: 10px 13px;
  border: 0;
  color: var(--help-blue-dark);
  background: #e7f4f9;
  font-weight: 800;
  cursor: pointer;
}

.help-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.help-popular button {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #e7f7fb;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}

.help-popular button:hover,
.help-popular button:focus-visible {
  background: rgba(255, 255, 255, .18);
}

.help-hero-aside {
  display: grid;
  gap: 1px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(3, 25, 48, .68);
  backdrop-filter: blur(12px);
}

.help-hero-aside > div {
  display: grid;
  gap: 5px;
  padding: 18px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.help-hero-aside > div:last-child {
  border-bottom: 0;
}

.help-hero-aside strong {
  font-size: 17px;
}

.help-hero-aside span {
  color: #c8dce6;
  line-height: 1.45;
}

.help-compass {
  width: 52px;
  aspect-ratio: 1;
  margin: 0 0 8px 5px;
  border: 2px solid #64dbe6;
  border-radius: 50%;
  position: relative;
}

.help-compass::before,
.help-compass::after {
  content: "";
  position: absolute;
  inset: 10px 22px;
  transform: rotate(35deg);
  background: #64dbe6;
}

.help-compass::after {
  inset: 22px 10px;
}

.help-workspace {
  width: min(1480px, calc(100% - 48px));
  margin: 20px auto 80px;
  display: grid;
  grid-template-columns: 230px minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.help-search-dock,
.help-filter-panel,
.help-results-panel,
.help-article {
  border: 1px solid var(--help-line);
  border-radius: 7px;
  background: var(--help-paper);
  box-shadow: 0 12px 35px rgba(19, 52, 77, .07);
}

.help-search-dock {
  grid-column: 1 / -1;
  scroll-margin-top: 92px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: 22px 24px;
  border-left: 4px solid var(--help-blue);
}

.help-search-dock-copy h2 {
  margin: 3px 0 5px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
}

.help-search-dock-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--help-muted);
  font-size: 14px;
  line-height: 1.45;
}

.help-filter-panel {
  position: sticky;
  top: 90px;
  padding: 18px;
}

.help-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.help-filter-heading h2,
.help-results-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.help-filter-toggle {
  display: none;
}

.help-filter-body {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.help-filter-body label {
  display: grid;
  gap: 6px;
  color: #31485e;
  font-size: 13px;
  font-weight: 800;
}

.help-filter-body select {
  width: 100%;
  min-width: 0;
  padding: 11px 34px 11px 10px;
  border: 1px solid #cfdbe4;
  border-radius: 5px;
  color: var(--help-ink);
  background: #fff;
}

.help-reset {
  width: 100%;
  justify-content: center;
}

.help-viewer-status {
  margin-top: 18px;
  padding: 13px;
  border-radius: 5px;
  color: #38536b;
  background: var(--help-wash);
  font-size: 13px;
  line-height: 1.45;
}

.help-viewer-status a {
  color: var(--help-blue-dark);
  font-weight: 800;
}

.help-results-panel {
  max-height: calc(100vh - 112px);
  position: sticky;
  top: 90px;
  overflow: hidden;
}

.help-results-heading {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--help-line);
}

.help-results-heading > span {
  color: var(--help-muted);
  font-size: 13px;
}

.help-topic-list {
  max-height: calc(100vh - 202px);
  overflow: auto;
  overscroll-behavior: contain;
}

.help-topic-button {
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid #e5edf2;
  text-align: left;
  color: var(--help-ink);
  background: #fff;
  cursor: pointer;
}

.help-topic-button:hover,
.help-topic-button:focus-visible {
  background: #f2f8fb;
}

.help-topic-button.is-active {
  box-shadow: inset 4px 0 var(--help-blue);
  background: #eaf6fb;
}

.help-topic-button strong {
  font-size: 16px;
  line-height: 1.25;
}

.help-topic-button > span:not(.help-topic-meta) {
  color: var(--help-muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-topic-meta,
.help-article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.help-topic-meta span,
.help-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: #315b70;
  background: #e6f1f5;
  font-size: 11px;
  font-weight: 800;
}

.help-empty {
  padding: 42px 24px;
  text-align: center;
  color: var(--help-muted);
}

.help-article {
  min-height: 680px;
  overflow: hidden;
}

.help-loading {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--help-muted);
}

.help-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #cfe1e9;
  border-top-color: var(--help-blue);
  border-radius: 50%;
  animation: help-spin .9s linear infinite;
}

@keyframes help-spin { to { transform: rotate(360deg); } }

.help-article-header {
  padding: clamp(24px, 4vw, 44px);
  color: #fff;
  background: linear-gradient(135deg, #082a4d, #075f88);
}

.help-article-header h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.help-article-header > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #d6e8f0;
  font-size: 17px;
  line-height: 1.55;
}

.help-article-badges {
  margin-top: 20px;
}

.help-article-header .help-badge {
  color: #e6fbff;
  background: rgba(255, 255, 255, .12);
}

.help-article-body {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 44px);
}

.help-practical-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-practical-context > div {
  padding: 18px;
  border: 1px solid #cadbe4;
  border-top: 3px solid var(--help-blue);
  border-radius: 6px;
  background: #f8fbfd;
}

.help-practical-context span {
  display: block;
  margin-bottom: 8px;
  color: var(--help-blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.help-practical-context p {
  margin: 0;
  color: #31485e;
  line-height: 1.55;
}

.help-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px;
  border: 1px solid #b9dbe7;
  border-radius: 6px;
  background: #edf9fc;
}

.help-action-bar span {
  color: #3c566a;
  line-height: 1.4;
}

.help-action-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: var(--go-action-height, 46px);
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--help-blue);
  border-radius: var(--go-action-radius, 6px);
  color: #fff;
  background: var(--help-blue);
  box-shadow: 0 3px 0 #034b7e, 0 9px 20px rgba(3, 101, 172, 0.18);
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.help-action-link:hover,
.help-action-link:focus-visible {
  background: var(--help-blue-dark);
  box-shadow: 0 4px 0 #034b7e, 0 13px 26px rgba(3, 101, 172, 0.22);
  outline: 3px solid rgba(3, 101, 172, 0.16);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.help-action-link:active {
  box-shadow: 0 1px 0 #034b7e, 0 5px 10px rgba(3, 101, 172, 0.14);
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .help-action-link {
    transition: none;
  }

  .help-action-link:hover,
  .help-action-link:focus-visible,
  .help-action-link:active {
    transform: none;
  }
}

.help-section h3 {
  margin: 0 0 13px;
  font-size: 21px;
}

.help-section ol,
.help-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
  color: #31485e;
  line-height: 1.6;
}

.help-section ol li::marker {
  color: var(--help-blue);
  font-weight: 900;
}

.help-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-rule {
  padding: 14px;
  border-left: 3px solid var(--help-green);
  color: #2d4d52;
  background: #edf8f5;
  line-height: 1.5;
}

.help-prerequisites {
  padding: 16px 18px;
  border: 1px solid #ecdca8;
  border-radius: 6px;
  background: #fff9e8;
}

.help-prerequisites h3 {
  margin-top: 0;
}

.help-troubleshooting {
  padding: 18px;
  border-radius: 6px;
  background: #f3f5f7;
}

.help-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-related-list button {
  padding: 9px 11px;
  border: 1px solid #c5d8e2;
  border-radius: 5px;
  color: var(--help-blue-dark);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.help-copy-link {
  padding: 9px 11px;
  border: 1px solid #c5d8e2;
  border-radius: 5px;
  color: var(--help-blue-dark);
  background: #fff;
  cursor: pointer;
}

.help-error {
  min-height: 430px;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}

@media (max-width: 1120px) {
  .help-workspace {
    grid-template-columns: 220px minmax(270px, 340px) minmax(0, 1fr);
  }

  .help-rule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .help-hero {
    grid-template-columns: 1fr;
  }

  .help-hero-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-hero-aside > div {
    border-right: 1px solid rgba(255, 255, 255, .13);
    border-bottom: 0;
  }

  .help-hero-aside > div:last-child {
    border-right: 0;
  }

  .help-compass {
    display: none;
  }

  .help-workspace {
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  }

  .help-search-dock {
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 22px;
  }

  .help-filter-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .help-filter-body {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .help-reset {
    min-height: 43px;
  }
}

@media (max-width: 680px) {
  .help-hero,
  .help-workspace {
    width: calc(100% - 24px);
  }

  .help-hero {
    min-height: 0;
    margin-top: 12px;
    padding: 30px 20px;
  }

  .help-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .help-hero-aside {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .help-hero-aside > div {
    padding: 13px 3px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  .help-popular {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .help-popular button {
    flex: 0 0 auto;
  }

  .help-workspace {
    display: block;
    margin-top: 14px;
  }

  .help-search-dock,
  .help-filter-panel,
  .help-results-panel,
  .help-article {
    margin-bottom: 14px;
  }

  .help-search-dock {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 18px;
    scroll-margin-top: 76px;
  }

  .help-search-dock-copy h2 {
    font-size: 24px;
  }

  .help-search-row {
    min-height: 56px;
    padding-left: 14px;
  }

  .help-search-row input {
    font-size: 16px;
  }

  .help-filter-heading h2 {
    font-size: 20px;
  }

  .help-filter-toggle {
    display: inline-flex;
    padding: 9px 11px;
    border: 1px solid #c5d8e2;
    border-radius: 5px;
    color: var(--help-blue-dark);
    background: #fff;
    font-weight: 800;
  }

  .help-filter-body {
    display: none;
    grid-template-columns: 1fr;
  }

  .help-filter-body.is-open {
    display: grid;
  }

  .help-results-panel {
    max-height: none;
    position: static;
  }

  .help-topic-list {
    max-height: 390px;
  }

  .help-article {
    min-height: 0;
  }

  .help-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .help-practical-context {
    grid-template-columns: 1fr;
  }

  .help-action-link {
    text-align: center;
  }
}

@media print {
  .site-header,
  .help-hero,
  .help-search-dock,
  .help-filter-panel,
  .help-results-panel,
  .site-footer,
  .help-copy-link {
    display: none !important;
  }

  .help-workspace {
    width: 100%;
    display: block;
    margin: 0;
  }

  .help-article {
    border: 0;
    box-shadow: none;
  }

  .help-article-header {
    color: #000;
    background: #fff;
  }

  .help-article-header > p:not(.eyebrow) {
    color: #333;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-loading span { animation: none; }
}
