/* Help center (templates/drobo/pages/help_v2.html), in the app frame. The Magic UI pieces (dots, particles, shiny
   and gradient text, magic cards, border beam, blur fade) come from css/drobo-ui.css; this file lays them out and adds
   the page's own parts. Only --ui-* tokens, light and dark. Behaviour: js/drobo-ui-help.js. */
.acct-flashes { display: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.hc-hero .ui-hero__inner { container-type: inline-size; align-items: center; gap: 2rem 2.5rem; padding-top: 3.25rem; padding-bottom: 2.25rem; }
.hc-hero__text { flex: 1 1 30rem; gap: .85rem; max-width: 44rem; }
.hc-h1 { font-size: clamp(2.15rem, 3.4vw, 2.9rem); letter-spacing: -.035em; line-height: 1.08; }
.hc-lead { font-size: 1rem; line-height: 1.6; }

/* Search: a large field; a gradient edge and a soft glow while it has focus. */
.hc-search { position: relative; isolation: isolate; margin-top: .55rem; }
.hc-search::before {
  content: ""; position: absolute; z-index: 1; inset: 0; padding: 1.5px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(100deg, var(--ui-primary), var(--ui-violet) 55%, var(--ui-primary));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s var(--ui-ease);
}
.hc-search::after {
  content: ""; position: absolute; z-index: -1; inset: 18% 8% -14%; border-radius: 24px; pointer-events: none;
  background: linear-gradient(90deg, var(--ui-primary), var(--ui-violet)); filter: blur(26px); opacity: 0; transition: opacity .45s var(--ui-ease);
}
.hc-search:focus-within::before { opacity: 1; }
.hc-search:focus-within::after { opacity: .22; }
html[data-theme="dark"] .hc-search:focus-within::after { opacity: .34; }
body.ui-app .hc-search__input {
  height: var(--ui-h-field); padding: 0 3.4rem 0 3.1rem; font-size: .875rem; border-radius: 14px !important;
  box-shadow: var(--ui-shadow-sm), 0 10px 30px -18px rgba(16, 24, 40, .35) !important;
}
body.ui-app .hc-search__input:focus { border-color: transparent !important; box-shadow: 0 0 0 4px var(--ui-ring) !important; }
.hc-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hc-search__icon { position: absolute; z-index: 2; top: 50%; left: 1.1rem; font-size: 1.2rem; color: var(--ui-muted); pointer-events: none; transform: translateY(-50%); transition: color .2s; }
.hc-search:focus-within .hc-search__icon { color: var(--ui-primary); }
.hc-search__key {
  position: absolute; z-index: 2; top: 50%; right: 1rem; display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; box-sizing: border-box;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; font-weight: 600; line-height: 1; color: var(--ui-muted);
  background: var(--ui-subtle); border: 1px solid var(--ui-border); border-bottom-width: 2px; border-radius: 6px; pointer-events: none;
  transform: translateY(-50%); transition: opacity .2s;
}
.hc-search:focus-within .hc-search__key, .hc-search[data-filled] .hc-search__key { opacity: 0; }
.hc-search__clear {
  position: absolute; z-index: 2; top: 50%; right: .5rem; display: grid; place-items: center; width: var(--ui-h-sm); height: var(--ui-h-sm); padding: 0;
  font-size: 1.05rem; color: var(--ui-muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer;
  transform: translateY(-50%); transition: background .15s, color .15s; animation: hc-pop-centered .25s var(--ui-ease);
}
.hc-search__clear:hover { color: var(--ui-fg); background: var(--ui-hover); }

/* The questions, one dropping in at the top every few seconds (Magic UI "animated list"); each opens its answer. */
.hc-feed { flex: 0 0 24rem; min-width: 0; }
.hc-feed__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .7rem; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ui-muted); }
.hc-feed__title .ti { font-size: .95rem; color: var(--ui-primary); }
.hc-feed__list {
  display: grid; grid-auto-rows: 4.1rem; gap: .6rem; height: calc(3 * 4.1rem + 2 * .6rem); margin: 0; padding: 0; overflow: hidden; list-style: none;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
.hc-feed__item {
  display: flex; align-items: center; gap: .8rem; height: 100%; padding: 0 1rem; box-sizing: border-box; text-decoration: none;
  background: color-mix(in srgb, var(--ui-card) 86%, transparent); border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, background .2s;
}
.hc-feed__item:hover { border-color: var(--ui-border-strong); background: var(--ui-card); }
.hc-feed__item .ui-stat__icon { width: 2.2rem; height: 2.2rem; font-size: 1.05rem; border-radius: 10px; }
.hc-feed__text { display: grid; min-width: 0; line-height: 1.35; }
.hc-feed__text strong { overflow: hidden; font-size: .875rem; font-weight: 600; color: var(--ui-fg); text-overflow: ellipsis; white-space: nowrap; }
.hc-feed__text small { font-size: .75rem; color: var(--ui-muted); }
.hc-feed__go { flex: 0 0 auto; margin-left: auto; color: var(--ui-faint); transition: color .2s, transform .25s var(--ui-ease); }
.hc-feed__item:hover .hc-feed__go { color: var(--ui-primary); transform: translateX(3px); }
@container (max-width: 57rem) { .hc-feed { display: none; } }

/* ── Page ────────────────────────────────────────────────────────────────── */
.hc { container-type: inline-size; display: grid; gap: 2.75rem; padding-top: .5rem; }   /* its width sets the columns below */
body.ui-app .hc-head { margin: 0 0 1.1rem; }
.hc-head h2 { font-size: 1.25rem; }
.hc-head p { font-size: .875rem; }

/* Topics: one card each; the chosen one is lit and only its answers show. */
.hc-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hc-topic {
  display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.3rem 1.35rem 1.25rem; box-sizing: border-box; text-decoration: none; color: inherit;
  transition: transform .3s var(--ui-ease), box-shadow .3s var(--ui-ease), border-color .2s, background .2s;
}
.hc-topic:hover { transform: translateY(-3px); border-color: var(--ui-border-strong); box-shadow: var(--ui-shadow-lg); }
.hc-topic__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.hc-topic__icon { width: 2.65rem; height: 2.65rem; font-size: 1.3rem; border-radius: 12px; transition: transform .4s cubic-bezier(.2, .9, .3, 1.35); }
.hc-topic:hover .hc-topic__icon { transform: scale(1.08) rotate(-6deg); }
.hc-topic__count {
  display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .6rem; font-size: .75rem; font-weight: 600; color: var(--ui-muted);
  background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: 999px; font-variant-numeric: tabular-nums; transition: color .2s, background .2s, border-color .2s;
}
.hc-topic__name { display: flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; color: var(--ui-fg); }
.hc-topic__go { font-size: 1rem; color: var(--ui-primary); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--ui-ease); }
.hc-topic:hover .hc-topic__go, .hc-topic[aria-current] .hc-topic__go { opacity: 1; transform: none; }
.hc-topic__blurb { font-size: .875rem; line-height: 1.5; color: var(--ui-muted); }
.hc-topic[aria-current] {
  border-color: color-mix(in srgb, var(--ui-primary) 55%, var(--ui-border)); background: color-mix(in srgb, var(--ui-primary) 6%, var(--ui-card));
  box-shadow: 0 0 0 3px var(--ui-primary-soft), var(--ui-shadow-lg);
}
.hc-topic[aria-current] .hc-topic__count { color: var(--ui-primary); background: var(--ui-primary-soft); border-color: transparent; }

/* Answers beside the ways to talk to the team. */
.hc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: 1.5rem; align-items: start; }
.hc-answers-block { scroll-margin-top: 5rem; }
.hc-answers { display: grid; gap: 1rem; min-width: 0; }
.hc-reset {
  display: inline-flex; align-items: center; gap: .4rem; height: 2.1rem; padding: 0 .85rem; font-family: inherit; font-size: .8125rem; font-weight: 600;
  color: var(--ui-fg-2); background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 999px; box-shadow: var(--ui-shadow-sm); cursor: pointer;
  transition: border-color .15s, color .15s; animation: hc-pop .3s var(--ui-ease);
}
.hc-reset:hover { color: var(--ui-fg); border-color: var(--ui-border-strong); }
.hc-reset .ti { font-size: .95rem; color: var(--ui-muted); }

.hc-group { padding: 1.35rem 1.5rem .4rem; scroll-margin-top: 5rem; }
.hc-group__head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; }
.hc-group__head .ui-stat__icon { width: 2.3rem; height: 2.3rem; font-size: 1.15rem; border-radius: 10px; }
.hc-group__title { margin: 0; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.015em; color: var(--ui-fg); }
.hc-group__count {
  display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .45rem; box-sizing: border-box; font-size: .75rem; font-weight: 650;
  color: var(--ui-muted); background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: 999px; font-variant-numeric: tabular-nums;
}
.hc-list { margin: 0; padding: 0; list-style: none; }
.hc-list > li { border-top: 1px solid var(--ui-border); }

/* One answer: the question row, then the answer opening smoothly under it (browsers without ::details-content snap). */
.hc-q { scroll-margin-top: 6rem; }
.hc-q summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; list-style: none; cursor: pointer; }
.hc-q summary::-webkit-details-marker { display: none; }
.hc-q summary:focus-visible { outline: none; }
.hc-q summary:focus-visible .hc-q__text { text-decoration: underline; text-decoration-color: var(--ui-focus); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hc-q summary:focus-visible .hc-q__icon { border-color: var(--ui-focus); box-shadow: 0 0 0 3px var(--ui-ring); }
.hc-q__text { flex: 1 1 auto; min-width: 0; font-size: .9375rem; font-weight: 600; line-height: 1.45; color: var(--ui-fg-2); transition: color .2s; }
.hc-q summary:hover .hc-q__text, .hc-q[open] .hc-q__text { color: var(--ui-fg); }
.hc-q__icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.95rem; height: 1.95rem; font-size: 1rem; color: var(--ui-muted);
  border: 1px solid var(--ui-border); border-radius: 50%; transition: transform .4s var(--ui-ease), color .2s, background .2s, border-color .2s;
}
.hc-q summary:hover .hc-q__icon { color: var(--ui-fg); border-color: var(--ui-border-strong); }
.hc-q[open] .hc-q__icon { color: var(--ui-primary); background: var(--ui-primary-soft); border-color: transparent; transform: rotate(45deg); }
.hc-q::details-content { height: 0; overflow: clip; transition: height .38s var(--ui-ease), content-visibility .38s allow-discrete; }
.hc-q[open]::details-content { height: auto; }
.hc-q__body { padding: 0 3rem 1.3rem 0; }
.hc-q__body p { margin: 0 0 .8rem; max-width: 68ch; font-size: .9375rem; line-height: 1.7; color: color-mix(in srgb, var(--ui-fg-2) 78%, transparent); }
.hc-q__more { font-size: .875rem; }
.hc-q__more .ti { transition: transform .25s var(--ui-ease); }
.hc-q__more:hover .ti { transform: translateX(3px); }
/* Opened from a link, the list or Enter: the row glows once so the eye finds it. */
.hc-list > li { position: relative; isolation: isolate; }
.hc-list > li::before { content: ""; position: absolute; z-index: -1; inset: -1px -.8rem 0; border-radius: 12px; background: var(--ui-primary-soft); opacity: 0; pointer-events: none; }
.hc-list > li.is-flash::before { animation: hc-flash 1.9s ease-out; }
@keyframes hc-flash { 0%, 35% { opacity: 1; } 100% { opacity: 0; } }
/* The words searched for, marked in the question and the answer. */
.hc-mark { padding: 0 .05em; color: inherit; background: color-mix(in srgb, var(--ui-primary) 22%, transparent); border-radius: 3px; }

/* Arrival: the rows of a card rise in one after another once the card is on screen, and again whenever a search or a
   topic shows them (a row coming back from hidden restarts its animation; js sets --n and, after the first use, a
   shorter wait). */
.ui-js .hc-group.ui-fade:not(.is-in) .hc-list > li { opacity: 0; }
.ui-js .hc-group.is-in .hc-list > li { animation: hc-rise .5s var(--ui-ease) both; animation-delay: calc(var(--n, 0) * 55ms + var(--hc-wait, 180ms)); }
.hc-enter { animation: hc-rise .5s var(--ui-ease) both; }
@keyframes hc-rise { from { opacity: 0; filter: blur(4px); transform: translateY(10px); } }
@keyframes hc-pop { from { opacity: 0; transform: scale(.94); } }
@keyframes hc-pop-centered { from { opacity: 0; transform: translateY(-50%) scale(.8); } }

/* Nothing found. */
.hc-empty { display: grid; justify-items: center; gap: .6rem; padding: 2.75rem 1.5rem; text-align: center; }
.hc-empty__icon { display: grid; place-items: center; width: 3rem; height: 3rem; font-size: 1.4rem; color: var(--ui-muted); background: var(--ui-subtle); border: 1px solid var(--ui-border); border-radius: 14px; }
.hc-empty h3 { margin: .35rem 0 0; font-size: 1.0625rem; font-weight: 650; color: var(--ui-fg); overflow-wrap: anywhere; }
.hc-empty p { max-width: 40ch; margin: 0; font-size: .875rem; line-height: 1.6; color: var(--ui-muted); }
.hc-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .6rem; }

/* Aside: talk to the team (the page's one border beam), then the guides. Stays in view beside the answers. */
.hc-aside { position: sticky; top: 4.75rem; display: grid; gap: 1rem; min-width: 0; }
.hc-talk { display: grid; gap: .75rem; padding: 1.4rem; }
.hc-talk__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.hc-talk__icon { width: 2.65rem; height: 2.65rem; font-size: 1.35rem; border-radius: 12px; }
.hc-talk__title { margin: .25rem 0 0; font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; color: var(--ui-fg); }
.hc-talk__text { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--ui-muted); }
.hc-talk__actions { display: grid; gap: .55rem; margin-top: .35rem; }
.hc-talk__foot { margin: .1rem 0 0; font-size: .8125rem; color: var(--ui-muted); }
.hc-guides { padding: 1.3rem 1.3rem .8rem; }
.hc-guides .ui-card__title { font-size: 1rem; }
.hc-guides__list { display: grid; gap: .15rem; margin: .85rem -.6rem 0; padding: 0; list-style: none; }
.hc-guides__list a { display: flex; align-items: center; gap: .8rem; padding: .6rem; text-decoration: none; color: inherit; border-radius: var(--ui-radius-md); transition: background .2s; }
.hc-guides__list a:hover { background: var(--ui-hover); }
.hc-guides__list .ui-stat__icon { width: 2.3rem; height: 2.3rem; font-size: 1.1rem; border-radius: 10px; transition: transform .4s cubic-bezier(.2, .9, .3, 1.35); }
.hc-guides__list a:hover .ui-stat__icon { transform: scale(1.08) rotate(-6deg); }
.hc-guides__list a > span:nth-child(2) { display: grid; min-width: 0; line-height: 1.35; }
.hc-guides__list strong { font-size: .875rem; font-weight: 600; color: var(--ui-fg); }
.hc-guides__list small { font-size: .8125rem; color: var(--ui-muted); }
.hc-guides__list a > .ti { margin-left: auto; color: var(--ui-faint); transition: color .2s, transform .25s var(--ui-ease); }
.hc-guides__list a:hover > .ti { color: var(--ui-primary); transform: translateX(3px); }

/* ── Narrower: by the page's own width (so a collapsed sidebar gives the room back), then phones ─────── */
@container (max-width: 58rem) {
  .hc-layout { grid-template-columns: minmax(0, 1fr); }
  .hc-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@container (max-width: 56rem) { .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 44rem) { .hc-aside { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .hc-hero .ui-hero__inner { padding-top: 2rem; padding-bottom: 1.5rem; }
  .hc { gap: 2rem; }
  .hc-search__key { display: none; }
  .hc-topics { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .hc-topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .15rem .9rem; padding: .95rem 1.1rem; }
  .hc-topic__top { display: contents; }
  .hc-topic__icon { grid-row: 1 / span 2; }
  .hc-topic__count { grid-column: 3; grid-row: 1 / span 2; }
  .hc-topic__name, .hc-topic__blurb { grid-column: 2; }
  .hc-topic__blurb { font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hc-topic__go { display: none; }
  .hc-group { padding: 1.1rem 1.1rem .3rem; }
  .hc-q__body { padding-right: 0; }
}
