/* Ihop help center (/hjalp). Builds on tokens, components and pages.css; nothing here overrides shared classes. */

/* Hub */
.hhero { padding-block: clamp(32px, 6vw, 80px) var(--s-6); display: grid; gap: var(--s-4); justify-items: start; }
.hhero .crumbs { margin-bottom: 0; }
.hhero .hsearch { width: 100%; max-width: 640px; margin-top: var(--s-3); }
.hhero__pop { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-small); color: var(--ink2); }
.hgroups { display: grid; gap: clamp(40px, 6vw, 72px); padding-bottom: var(--s-8); }
.hgroup h2 { margin-bottom: var(--s-4); }
.hcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); }
.hcards a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); align-items: start; height: 100%; padding: 18px; border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color var(--d-ui) ease, transform var(--d-tick) var(--ease-tick); }
.hcards a:hover { border-color: var(--ink2); }
.hcards a:active { transform: scale(.99); }
.hcards b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.hcards a > span > span { color: var(--ink2); font-size: var(--t-small); line-height: 1.45; }
.hcard__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.hcard__ico .ico { width: 22px; height: 22px; }
.hfoot { padding-bottom: var(--s-8); }

/* Search */
.hsearch { position: relative; }
.hsearch__field { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--sheet); box-shadow: var(--shadow-1); }
.hsearch__field:focus-within { border-color: var(--ink2); }
.hsearch__field .ico { flex: none; width: 20px; height: 20px; color: var(--ink2); }
.hsearch input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font-size: 17px; outline: none; }
.hsearch input::-webkit-search-cancel-button { cursor: pointer; }
.hsearch--big .hsearch__field { min-height: 60px; padding-inline: 20px; }
.hsearch--big input { font-size: 18px; }
.hsearch__res { margin-top: var(--s-2); border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--sheet); box-shadow: var(--shadow-2); overflow: hidden; }
.hsearch__res ul { list-style: none; margin: 0; padding: 0; }
.hsearch__res a { display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.hsearch__res li:last-child a { border-bottom: 0; }
.hsearch__res a:hover, .hsearch__res a[aria-selected="true"] { background: var(--accent-soft); }
.hsearch__res b { font-weight: 600; }
.hsearch__res small { color: var(--ink2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.hsearch__res mark { background: none; color: var(--accent); font-weight: 600; }
.hsearch__res .hsearch__sec { font-size: 12px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; }
.hsearch__none { padding: 14px 18px; color: var(--ink2); font-size: var(--t-small); }

/* Article */
.harticle { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(32px, 5vw, 64px) var(--s-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); justify-items: start; }
.harticle .crumbs { margin-bottom: var(--s-2); }
.harticle .tag .ico { width: 15px; height: 15px; }
.harticle__lede { max-width: 34em; }
.harticle__body { width: 100%; margin-top: var(--s-3); }
.harticle__body > h2:first-child { margin-top: var(--s-4); }
.harticle__body h3 { font-size: 20px; margin: var(--s-6) 0 var(--s-2); }
.harticle__meta { font-size: 14px; color: var(--ink2); margin-top: var(--s-6); }
.harticle .guide__faq { width: 100%; margin-top: var(--s-6); }

/* Numbered steps */
.prose ol.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-3) 0 var(--s-5); display: grid; gap: var(--s-3); }
.prose ol.steps > li { counter-increment: step; position: relative; padding: 2px 0 0 48px; margin: 0; min-height: 34px; color: var(--ink); }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--sans); }
.prose ol.steps > li small { display: block; color: var(--ink2); font-size: var(--t-small); margin-top: 2px; }
.prose .ui { font-weight: 600; color: var(--ink); white-space: nowrap; }
.prose .tip { background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--r-1); padding: 14px 18px; margin: var(--s-4) 0; }
.prose .tip p:last-child { margin-bottom: 0; }
.prose dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: var(--s-3) 0 var(--s-4); }
.prose dl.kv dt { font-weight: 600; color: var(--ink); }
.prose dl.kv dd { margin: 0; color: var(--ink2); }
@media (max-width: 520px) { .prose dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .prose dl.kv dd { margin-bottom: 10px; } }

/* Screenshots in a phone frame drawn in CSS */
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5); margin: var(--s-5) 0 var(--s-6); width: 100%; }
.shot { margin: 0; display: grid; gap: var(--s-3); justify-items: center; width: min(100%, 280px); }
.shots--two .shot { width: min(100%, 250px); }
.phone { position: relative; width: 100%; aspect-ratio: 750 / 1630; padding: 9px; border-radius: 46px; background: #1b1513; box-shadow: inset 0 0 0 1.5px #4a3d36, inset 0 0 0 4px #1b1513, var(--shadow-2); }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone img, .phone__ph { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: var(--ground); }
.phone__ph { display: grid; align-content: center; justify-items: center; gap: 8px; padding: 56px 22px 22px; text-align: center; background: repeating-linear-gradient(135deg, var(--sheet) 0 14px, var(--ground) 14px 28px); border: 2px dashed var(--rule); }
.phone__ph span { font: 600 15px/1.3 var(--sans); color: var(--accent); }
.phone__ph small { font-size: 13px; line-height: 1.4; color: var(--ink2); }
.shot figcaption { font-size: 14px; line-height: 1.45; color: var(--ink2); text-align: center; max-width: 26em; }
@media (prefers-color-scheme: dark) { .phone { background: #0d0a09; box-shadow: inset 0 0 0 1.5px #3a302a, inset 0 0 0 4px #0d0a09, var(--shadow-2); } }

/* Related, same section, contact */
.hrel, .hsame { width: 100%; margin-top: var(--s-6); }
.hrel ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.hrel a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.hrel a b { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.hrel a .ico { flex: none; color: var(--accent); transition: transform var(--d-ui) var(--ease-settle); }
.hrel a:hover .ico { transform: translateX(4px); }
.hsame .more { margin-top: var(--s-2); }
.hhelp { width: 100%; margin-top: var(--s-7); padding: clamp(20px, 4vw, 32px); border-radius: var(--r-3); background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: var(--s-3); }
.hhelp > p { color: var(--ink2); }
.hhelp__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.hhelp__links .btn .ico { width: 18px; height: 18px; }

@media print {
  .hsearch, .hhelp, .hrel, .hsame { display: none !important; }
  .phone { box-shadow: none; border: 1px solid #999; }
}

/* Tables become one card per row on phones */
@media (max-width: 600px) {
  .htable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .htable table, .htable tbody, .htable tr, .htable td { display: block; width: 100%; }
  .htable tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .htable td { border: 0; padding: 2px 0; }
  .htable td:first-child { font-size: 18px; color: var(--ink); padding-bottom: 6px; }
  .htable td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
