/* Help centre (/help/): articles, FAQs and search on the main site's
   layout. Loaded after glass.css (officeapp/core/layout.html, pagecss), so
   it uses the same tokens: --brand, --ink, --frost-*, --radius-*, --dur-*. */

.help-section { margin-top: 56px; padding: 0 0 24px; }
/* The theme gives every <section> margin-top: 140px. */
section.help-footer { margin-top: 96px; }
.help-hero .header-text { padding-bottom: 56px; }
section.page-heading:not(.help-hero) .header-text { padding-bottom: 48px; }
.help-narrow { max-width: 860px; }
.help-subhead { text-align: left; margin-bottom: 24px; }
.help-subhead h4 em { font-style: normal; color: var(--ink-soft); font-weight: 600; }
.help-empty { color: var(--ink-soft); font-size: 16px; margin: 0 0 28px; }
.help-empty a { color: var(--brand); font-weight: 600; }

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

.help-hero .header-text { text-align: center; }
.help-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 28px auto 0;
  padding: 6px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
}
.help-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  outline: none;
}
.help-search input::placeholder { color: var(--ink-soft); opacity: .8; }
.help-search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.help-search .btn-pill { height: 48px; padding: 0 24px; flex: none; }

/* ------------------------------------------------------------- tiles */

.help-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.help-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 26px 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  color: var(--ink);
  transition: transform var(--dur-move) var(--ease-io), box-shadow var(--dur-move) ease, background var(--dur) ease;
}
.help-tile:hover,
.help-tile:focus-visible {
  background: #fff;
  color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(45, 46, 130, 0.14);
}
.help-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.help-tile__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: rgba(45, 46, 130, 0.08);
  color: var(--brand);
  font-size: 18px;
}
.help-tile__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.help-tile__text { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

@media (max-width: 991.98px) {
  .help-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .help-tiles { gap: 12px; }
  .help-tile { padding: 18px 16px; }
  .help-tile__text { display: none; }
}

/* ---------------------------------------------------------------- FAQ */

.help-faq { display: grid; gap: 12px; }
.help-faq__item {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
  transition: background var(--dur) ease;
}
.help-faq__item[open] { background: #fff; }
.help-faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.help-faq__item summary::-webkit-details-marker { display: none; }
.help-faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}
.help-faq__item[open] summary::after { transform: translate(0, 4px) rotate(-135deg); }
.help-faq__item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 18px; }
.help-faq__answer {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
.help-faq__answer > :last-child { margin-bottom: 0; }
.help-faq__answer a { color: var(--brand); text-decoration: underline; }

/* ---------------------------------------------------------- load more */

.help-more { margin-top: 36px; text-align: center; }
.help-more__status { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; }

/* ------------------------------------------------------- article page
   article.css was written against the portal's old theme; these bring the
   sidebar and its search box onto the site's components. */

.article-page { padding-top: 150px; }
.article-aside .widget-box {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--frost-bg);
  box-shadow: var(--frost-shadow);
}
.article-aside .divider { display: none; }
.article-aside .search-widget { display: grid; gap: 10px; }
.article-aside .search-widget .form-control {
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(23, 23, 43, 0.14);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 16px;
}
.article-aside .search-widget .btn {
  height: 46px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.article-aside .search-widget .btn:hover { background: var(--brand); }
@media (max-width: 991.98px) {
  .article-page { padding-top: 110px; }
}

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

.help-footer { padding-top: 80px; }
.help-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.help-footer__title { margin: 0 0 10px; color: #fff; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.help-footer__lead { margin: 0 0 24px; color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.6; max-width: 520px; }
.help-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-pill--light { background: #fff; color: var(--ink); }
.btn-pill--light:hover { background: #e9e9ff; color: var(--ink); }
.btn-pill--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn-pill--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.help-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.help-footer__contact li { color: #fff; font-size: 15px; }
.help-footer__contact span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.help-footer__contact a { color: #fff; }
.help-footer__contact a:hover { color: #c9c6ff; }
.help-footer .copyright { margin-top: 24px; }

@media (max-width: 767.98px) {
  .help-footer { padding-top: 56px; }
  .help-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .help-tile,
  .help-faq__item summary::after { transition: none; }
}
