/*!
 * Control Pro — help center (cph-*), public site. Loaded on the help center's pages only. It sits in
 * the theme's page layout (its header, breadcrumb and footer) and takes the theme's type and
 * neutrals: its text, muted and line greys, its soft surface, its 4–6px corners and its alert shades
 * for the tip, warning and note boxes. The site sets its own colours through the filter
 * cp_help_theme_vars (the tokens below); the defaults are neutral. Text and button colours meet
 * WCAG AA on white and on the soft surface; a light brand colour is used for decoration only (rules,
 * icon wells, focus of a previewed block). Touch targets are at least 44px; light scheme only, as
 * the theme; no animation when the visitor asks for reduced motion.
 */
:root {
  --cph-brand: #337ab7;
  --cph-brand-soft: #eaf2f9;
  --cph-link: #23527c;
  --cph-button: #23527c;
  --cph-button-hover: #183a58;
  --cph-button-ink: #fff;
  --cph-text: #333;
  --cph-muted: #595959;
  --cph-line: #ddd;
  --cph-line-soft: #e8e8e8;
  --cph-soft: #f5f5f5;
  --cph-surface: #fff;
  --cph-tip: #3c763d;
  --cph-tip-bg: #dff0d8;
  --cph-warn: #8a6d3b;
  --cph-warn-bg: #fcf8e3;
  --cph-note: #31708f;
  --cph-note-bg: #d9edf7;
  --cph-mark: #fcf8e3;
  --cph-radius: 6px;
  --cph-radius-lg: 10px;
  --cph-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
}

/* ---------- frame ---------- */
.cph-wrap { padding: 18px 0 40px; }
.cph { color: var(--cph-text); font-size: 15px; line-height: 1.6; }
.cph *, .cph *::before, .cph *::after { box-sizing: border-box; }
.cph a { color: var(--cph-link); }
.cph a:hover { color: var(--cph-button-hover); }
.cph a:focus-visible, .cph summary:focus-visible, .cph button:focus-visible, .cph input:focus-visible {
  outline: 2px solid var(--cph-link); outline-offset: 2px; }
.cph-ico { flex: none; vertical-align: middle; }
.cph-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cph-section-title { margin: 0 0 14px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--cph-text); }

/* ---------- search ---------- */
.cph-search { margin: 0; }
.cph-search__box { display: flex; align-items: center; gap: 0; background: var(--cph-surface); border: 1px solid var(--cph-line);
  border-radius: var(--cph-radius); overflow: hidden; box-shadow: var(--cph-shadow); }
.cph-search__box:focus-within { border-color: var(--cph-link); box-shadow: 0 0 0 3px var(--cph-brand-soft); }
.cph-search__ico { margin: 0 4px 0 14px; color: var(--cph-muted); }
.cph .cph-search__input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0; padding: 0 10px; font: inherit; font-size: 16px; color: var(--cph-text);
  background: transparent; box-shadow: none; -webkit-appearance: none; appearance: none; }
.cph .cph-search__input:focus { outline: none; }
.cph .cph-search__input::-webkit-search-cancel-button { cursor: pointer; }
.cph-search__btn { flex: none; align-self: stretch; min-height: 48px; padding: 0 20px; border: 0; background: var(--cph-button); color: var(--cph-button-ink);
  font: inherit; font-weight: 700; cursor: pointer; }
.cph-search__btn:hover { background: var(--cph-button-hover); }
.cph-search--side .cph-search__box { box-shadow: none; }
.cph-search--side .cph-search__input { height: 44px; font-size: 15px; }
.cph-search--side .cph-search__btn { min-height: 44px; padding: 0 14px; }

/* ---------- front page ---------- */
.cph-hero { text-align: center; padding: 28px 20px 24px; margin-bottom: 26px; background: var(--cph-soft); border-radius: var(--cph-radius-lg);
  border-top: 3px solid var(--cph-brand); }
.cph .cph-hero__title { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--cph-text); }
.cph-hero__lead { max-width: 640px; margin: 0 auto 18px; color: var(--cph-muted); font-size: 16px; }
.cph-hero__lead p { margin: 0; }
.cph-hero .cph-search { max-width: 640px; margin: 0 auto; }
.cph-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.cph-quick a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--cph-line); border-radius: 999px;
  background: var(--cph-surface); font-weight: 600; text-decoration: none; }
.cph-quick a:hover { border-color: var(--cph-link); text-decoration: none; }

.cph-results:not(:empty) { margin: 0 0 28px; }
.cph-results[aria-busy="true"] { opacity: .6; }
.cph-results__none { margin: 0 0 10px; color: var(--cph-muted); }
.cph mark { background: var(--cph-mark); color: inherit; padding: 0 1px; border-radius: 2px; }

.cph-topics { margin: 0 0 30px; }
.cph-topics__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cph-topic { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg);
  background: var(--cph-surface); color: var(--cph-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cph a.cph-topic { color: var(--cph-text); text-decoration: none; }
.cph a.cph-topic:hover { border-color: var(--cph-link); box-shadow: var(--cph-shadow); text-decoration: none; color: var(--cph-text); }
.cph-topic__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--cph-brand-soft); color: var(--cph-link); }
.cph-topic__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cph-topic__title { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--cph-link); }
.cph-topic__text { color: var(--cph-muted); font-size: 14px; line-height: 1.45; }
.cph-topic__count { color: var(--cph-muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }

.cph-cat { margin: 0 0 34px; scroll-margin-top: 90px; }
.cph .cph-cat__title { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.cph-cat__title .cph-ico { color: var(--cph-link); }
.cph-cat__text { max-width: 720px; margin: 0 auto 16px; text-align: center; color: var(--cph-muted); }

/* a list of guides or results: one row each */
.cph-list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg); background: var(--cph-surface); overflow: hidden; }
.cph-list > li + li { border-top: 1px solid var(--cph-line-soft); }
.cph a.cph-list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 56px; padding: 12px 16px;
  color: var(--cph-text); text-decoration: none; }
.cph a.cph-list__item:hover { background: var(--cph-soft); text-decoration: none; color: var(--cph-text); }
.cph-list__kicker { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--cph-muted); }
.cph-list__title { grid-column: 1; font-weight: 700; color: var(--cph-link); }
.cph-list__text { grid-column: 1; color: var(--cph-muted); font-size: 14px; line-height: 1.45; }
.cph-list__chev { grid-column: 2; grid-row: 1 / span 3; color: var(--cph-muted); }

/* FAQs */
.cph-faqs { margin: 0 0 22px; }
.cph .cph-faqs__title { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.cph-faqs__list { border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg); background: var(--cph-surface); overflow: hidden; }
.cph-faq + .cph-faq { border-top: 1px solid var(--cph-line-soft); }
.cph-faq { scroll-margin-top: 90px; }
.cph-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer;
  font-weight: 700; list-style: none; }
.cph-faq__q::-webkit-details-marker { display: none; }
.cph-faq__q:hover { background: var(--cph-soft); }
.cph-faq__chev { color: var(--cph-muted); transition: transform .15s; }
.cph-faq[open] > .cph-faq__q .cph-faq__chev { transform: rotate(180deg); }
.cph-faq[open] > .cph-faq__q { color: var(--cph-link); }
.cph-faq__a { padding: 0 16px 14px; color: var(--cph-text); }
.cph-faq__a > :first-child { margin-top: 0; }
.cph-faq__a > :last-child { margin-bottom: 0; }

/* "Did not find the answer?" */
.cph-contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 0; padding: 18px 20px; border-radius: var(--cph-radius-lg);
  background: var(--cph-soft); border: 1px solid var(--cph-line-soft); }
.cph-contact__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cph-surface); color: var(--cph-link); }
.cph-contact__body { flex: 1 1 260px; min-width: 0; }
.cph .cph-contact__title { margin: 0 0 2px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.cph-contact__text { margin: 0; color: var(--cph-muted); }
.cph a.cph-btn, .cph .cph-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: var(--cph-radius);
  background: var(--cph-button); color: var(--cph-button-ink); font-weight: 700; text-decoration: none; border: 0; }
.cph a.cph-btn:hover { background: var(--cph-button-hover); color: var(--cph-button-ink); text-decoration: none; }

/* ---------- an article ---------- */
.cph-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) {
  .cph-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
  .cph-side { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
}
.cph-main { min-width: 0; }
.cph-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cph-kicker a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cph .cph-title { margin: 0 0 6px; font-size: 30px; line-height: 1.22; font-weight: 700; color: var(--cph-text); }
.cph-updated { margin: 0 0 18px; color: var(--cph-muted); font-size: 13px; }

.cph-toc { margin: 0 0 22px; border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg); background: var(--cph-soft); }
.cph-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 16px; cursor: pointer; font-weight: 700; list-style: none; }
.cph-toc summary::-webkit-details-marker { display: none; }
.cph-toc__chev { color: var(--cph-muted); transition: transform .15s; }
.cph-toc details[open] .cph-toc__chev { transform: rotate(180deg); }
.cph-toc ol { margin: 0; padding: 0 16px 12px 36px; }
.cph-toc li { margin: 3px 0; }

.cph-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cph-nav__title { margin: 0 0 8px; font-weight: 700; }
.cph-nav__title a { text-decoration: none; }
.cph-nav__cats { list-style: none; margin: 0; padding: 0; border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg); background: var(--cph-surface); overflow: hidden; }
.cph-nav__cat + .cph-nav__cat { border-top: 1px solid var(--cph-line-soft); }
.cph-nav__cat summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer; font-weight: 700; list-style: none; }
.cph-nav__cat summary::-webkit-details-marker { display: none; }
.cph-nav__cat summary > span { flex: 1 1 auto; min-width: 0; }
.cph-nav__cat summary .cph-ico:first-child { color: var(--cph-link); }
.cph-nav__chev { color: var(--cph-muted); transition: transform .15s; }
.cph-nav__cat details[open] .cph-nav__chev { transform: rotate(180deg); }
.cph-nav__cat ul { list-style: none; margin: 0; padding: 0 0 8px; }
.cph-nav__cat ul a { display: block; padding: 8px 12px 8px 38px; font-size: 14px; line-height: 1.4; text-decoration: none; }
.cph-nav__cat ul a:hover { background: var(--cph-soft); }
.cph-nav__cat ul a.is-current { font-weight: 700; color: var(--cph-text); box-shadow: inset 3px 0 0 var(--cph-brand); background: var(--cph-soft); }

.cph-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 26px 0 0; }
.cph a.cph-pager__link { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--cph-line); border-radius: var(--cph-radius-lg);
  text-decoration: none; font-weight: 700; }
.cph a.cph-pager__link:hover { border-color: var(--cph-link); text-decoration: none; }
.cph-pager__link span { display: flex; flex-direction: column; min-width: 0; }
.cph-pager__link small { font-weight: 600; color: var(--cph-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.cph-pager__link--next { justify-content: flex-end; text-align: right; }
.cph-pager__link--next:only-child { grid-column: -2 / -1; }

/* ---------- the text of a guide or page ---------- */
.cph-text, .cph-doc { overflow-wrap: anywhere; }
.cph-text { font-size: 16px; line-height: 1.7; max-width: 76ch; }
.cph-text .cph-lead { font-size: 18px; line-height: 1.6; color: var(--cph-muted); margin: 0 0 20px; }
.cph-doc p { margin: 0 0 14px; }
.cph-doc h2 { margin: 30px 0 10px; padding-bottom: 6px; font-size: 22px; line-height: 1.3; font-weight: 700; border-bottom: 1px solid var(--cph-line-soft); scroll-margin-top: 90px; }
.cph-doc h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.cph-doc h4 { margin: 18px 0 6px; font-size: 16px; font-weight: 700; }
.cph-doc ul, .cph-doc ol { margin: 0 0 14px; padding-left: 24px; }
.cph-doc li { margin: 4px 0; }
.cph-doc a { text-decoration: underline; text-underline-offset: 2px; }
.cph-doc blockquote { margin: 0 0 14px; padding: 6px 16px; border-left: 3px solid var(--cph-line); color: var(--cph-muted); }
.cph-doc code, .cph-doc kbd { font-family: Menlo, Consolas, monospace; font-size: .9em; background: var(--cph-soft); border: 1px solid var(--cph-line-soft); border-radius: 3px; padding: 0 4px; }
.cph-doc hr { border: 0; border-top: 1px solid var(--cph-line); margin: 24px 0; }
.cph-doc table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.cph-doc th, .cph-doc td { border: 1px solid var(--cph-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.cph-doc th { background: var(--cph-soft); }
.cph-doc caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 6px; }
/* callouts and numbered steps (the classes a help text may use) */
.cph-doc .cph-tip, .cph-doc .cph-warn, .cph-doc .cph-note { padding: 12px 16px; border-radius: var(--cph-radius); border-left: 4px solid; }
.cph-doc .cph-tip { background: var(--cph-tip-bg); border-color: var(--cph-tip); color: #2b542c; }
.cph-doc .cph-warn { background: var(--cph-warn-bg); border-color: var(--cph-warn); color: #66512c; }
.cph-doc .cph-note { background: var(--cph-note-bg); border-color: var(--cph-note); color: #245269; }
.cph-doc ol.cph-steps { list-style: none; counter-reset: cph-step; padding-left: 0; }
.cph-doc ol.cph-steps > li { counter-increment: cph-step; position: relative; padding: 2px 0 6px 44px; min-height: 32px; }
.cph-doc ol.cph-steps > li::before { content: counter(cph-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cph-brand-soft); color: var(--cph-link); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---------- preview (administrators only) ---------- */
.cph-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--cph-radius);
  background: var(--cph-warn-bg); border: 1px solid #faebcc; color: #66512c; font-size: 14px; }
.cph-preview a { color: #66512c; text-decoration: underline; }
.cph-preview__lang { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border: 1px solid #e6d29a; border-radius: 999px; }
.cph-preview__lang.is-current { background: #fff; font-weight: 700; }
.cph-preview__back { margin-left: auto; font-weight: 700; }
.cph-preview__warn { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; }
.cph-focus { outline: 3px solid var(--cph-brand); outline-offset: 4px; border-radius: var(--cph-radius-lg); }
.cph-empty { padding: 30px 0; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .cph-wrap { padding-top: 10px; }
  .cph-hero { padding: 22px 14px 18px; margin-bottom: 20px; }
  .cph .cph-hero__title, .cph .cph-title { font-size: 24px; }
  .cph-search__btn { padding: 0 14px; }
  .cph .cph-cat__title { font-size: 19px; }
  .cph-text { font-size: 15.5px; }
  .cph-contact { padding: 16px; }
  .cph-contact .cph-btn { width: 100%; }
  .cph-pager__link--next:only-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cph *, .cph *::before, .cph *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .cph-side, .cph-search, .cph-contact, .cph-quick, .cph-pager, .cph-preview { display: none !important; }
  .cph-layout { display: block; }
  .cph-faq:not([open]) > .cph-faq__a { display: block; }
}
