/* Help centre (/pagalba). Builds on account.css (.ac) and blog.css (.bl). */
.ac .hp-hero { min-height: clamp(30rem, 66vh, 38rem); }
.ac .hp-hero .bl-hero__inner { padding-bottom: 3.25rem; }
.ac .hp-hero--compact { min-height: clamp(20rem, 40vh, 24rem); }

/* Search on the photo */
.ac .hp-search { position: relative; max-width: 40rem; }
.ac .hp-search__box { display: flex; align-items: center; gap: .7rem; height: 3.6rem; padding: 0 1.25rem; border-radius: 999px;
  background: rgba(255, 253, 249, .97); color: #665d53; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.ac .hp-search__box:focus-within { outline: 2px solid #d9b77e; outline-offset: 3px; }
.ac .hp-search__box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #2b2622; font: 1.08rem var(--ac-sans); outline: none; }
.ac .hp-search__box input::placeholder { color: #8b8278; }
.ac .hp-search__results { margin: .75rem 0 0; padding: .4rem; list-style: none;
  background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: 18px; box-shadow: 0 22px 50px rgba(0, 0, 0, .3); }
.ac .hp-search__results a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border-radius: 12px; color: var(--ac-ink); }
.ac .hp-search__results a:hover, .ac .hp-search__results a:focus { background: var(--ac-tint); text-decoration: none; }
.ac .hp-search__results span { color: var(--ac-muted); font-size: .85rem; }
.ac .hp-search__none { margin: .9rem 0 0; color: rgba(246, 241, 233, .86); }

.ac .hp-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; max-width: 46rem !important; }
.ac .hp-popular__label { color: rgba(246, 241, 233, .72); font-size: .9rem; margin-right: .2rem; }
.ac .hp-popular a { font-size: .9rem; color: #f6f1e9; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(21, 24, 29, .35); backdrop-filter: blur(4px); transition: background .2s ease, border-color .2s ease; }
.ac .hp-popular a:hover { background: rgba(217, 183, 126, .2); border-color: #d9b77e; text-decoration: none; }

/* Topic cards */
.ac .hp-body { padding-top: 1rem; }
.ac .hp-first-title { margin-top: 3rem; }
.ac .hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.5rem; }
.ac .hp-topic { display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.4rem; background: var(--ac-surface); border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius); transition: transform .25s ease, box-shadow .25s ease; }
.ac .hp-topic:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(43, 38, 34, .12); }
.ac .hp-topic__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.ac .hp-topic__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ac-soft); color: var(--ac-accent-text); }
.ac .hp-topic__title { font-size: 1.45rem !important; line-height: 1.2; margin: .15rem 0 .3rem; }
.ac .hp-topic__title a { color: var(--ac-ink); }
.ac .hp-topic__title a:hover { color: var(--ac-accent-text); text-decoration: none; }
.ac .hp-topic__desc { color: var(--ac-muted); font-size: .95rem; line-height: 1.5; margin: 0; }
.ac .hp-topic__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.ac .hp-topic__list li { border-top: 1px solid var(--ac-line); }
.ac .hp-topic__list a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; color: var(--ac-ink); }
.ac .hp-topic__list a span { color: var(--ac-muted); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.ac .hp-topic__list a:hover { color: var(--ac-accent-text); text-decoration: none; }
.ac .hp-topic__list a:hover span { opacity: 1; transform: none; color: var(--ac-accent-text); }
.ac .hp-topic__all { margin-top: auto; font-size: .95rem; }
.ac .hp-topic__all:hover { text-decoration: none; }
.ac .hp-topic__all:hover span { margin-left: .25rem; }

/* QR plate block */
.ac .hp-feature { margin-top: 4rem; }
.ac .hp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ac .hp-facts li { font-size: .88rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--ac-line); color: var(--ac-ink); }

.ac .hp-contact { margin: 4rem 0 0; }
.ac .hp-contact__img { width: 9.5rem; justify-self: end; }
.ac .hp-end { padding-bottom: .5rem; }

/* Topic page */
.ac .hp-hero--compact .bl-hero__inner { padding-top: 5rem; padding-bottom: 2.5rem; }
.ac .hp-hero__count { color: rgba(246, 241, 233, .72); margin: 0; }
.ac .hp-hero__icon { display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; margin-bottom: .25rem;
  background: rgba(217, 183, 126, .18); color: #e2c693; border: 1px solid rgba(217, 183, 126, .35); }
.ac .hp-split { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3.5rem; align-items: start; padding-top: 3rem; }
.ac .hp-articles { display: grid; gap: 1rem; }
.ac .hp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.4rem 1.5rem;
  background: var(--ac-surface); border: 1px solid var(--ac-line); border-radius: var(--ac-radius); color: var(--ac-ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.ac .hp-row:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(43, 38, 34, .1); border-color: var(--ac-accent); text-decoration: none; }
.ac .hp-row__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ac-soft);
  color: var(--ac-accent-text); font-weight: 600; }
.ac .hp-row__title { display: block; font-family: var(--ac-serif); font-size: 1.4rem; line-height: 1.25; }
.ac .hp-row__intro { display: block; color: var(--ac-muted); margin-top: .3rem; line-height: 1.5; }
.ac .hp-row__arrow { color: var(--ac-accent-text); font-size: 1.2rem; transition: transform .2s ease; }
.ac .hp-row:hover .hp-row__arrow { transform: translateX(3px); }

.ac .hp-side { position: sticky; top: 6.5rem; }
.ac .hp-side__title { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ac-muted); font-weight: 600; margin: 0 0 .75rem; }
.ac .hp-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ac .hp-side a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; color: var(--ac-ink); }
.ac .hp-side a:hover { background: var(--ac-surface); color: var(--ac-accent-text); text-decoration: none; }
.ac .hp-side a[aria-current] { background: var(--ac-surface); color: var(--ac-accent-text); font-weight: 600; }
.ac .hp-side .hp-icon { width: 20px; height: 20px; color: var(--ac-accent-text); flex: none; }
.ac .hp-side__back { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--ac-line); }

/* Article page */
.ac .hp-post .bl-prose > :last-child { margin-bottom: 0; }
.ac section.hp-related { margin-top: 3rem; padding: 2rem 0 0; border-top: 1px solid var(--ac-line); }
.ac .hp-related h2 { font-size: 1.6rem; margin: 0 0 1.1rem; }
.ac .hp-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.ac .hp-related__grid a { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.3rem; background: var(--ac-surface); border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius); color: var(--ac-ink); font-family: var(--ac-serif); font-size: 1.2rem; line-height: 1.3; transition: border-color .2s ease, transform .2s ease; }
.ac .hp-related__grid a:hover { border-color: var(--ac-accent); transform: translateY(-2px); text-decoration: none; }
.ac .hp-related__grid a span { font-family: var(--ac-sans); font-size: .9rem; color: var(--ac-accent-text); font-weight: 600; margin-top: auto; }
.ac .hp-post .hp-contact { margin-top: 3rem; }

@media (max-width: 960px) {
  .ac .hp-split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .ac .hp-side { position: static; }
}
@media (max-width: 640px) {
  .ac .hp-hero { min-height: 32rem; }
  .ac .hp-hero--compact { min-height: 20rem; }
  .ac .hp-search__box { height: 3.25rem; }
  .ac .hp-popular__label { width: 100%; }
  .ac .hp-first-title { margin-top: 2.25rem; }
  .ac .hp-grid { grid-template-columns: minmax(0, 1fr); }
  .ac .hp-topic { padding: 1.35rem 1.25rem 1.2rem; }
  .ac .hp-row { grid-template-columns: minmax(0, 1fr) auto; padding: 1.15rem 1.2rem; }
  .ac .hp-row__num { display: none; }
  .ac .hp-split { padding-top: 2rem; }
  .ac .hp-feature { margin-top: 3rem; }
}
