/* The Help Center (memlow.com/help/, made by scripts/help-pages.mjs), on top of site.css. Calm and
   plain: paper, ink, one note colour per topic, hairlines instead of boxes where a list will do.
   Light and dark come from site.css's tokens (html[data-mode]); everything is start/end, so a right-to-
   left page reads the same way round. Bump HELP_CSS in scripts/help-pages.mjs when this changes. */

.tone-butter { --tone: var(--butter); }
.tone-sky { --tone: var(--sky); }
.tone-sage { --tone: var(--sage); }
.tone-lilac { --tone: var(--lilac); }
.tone-peach { --tone: var(--peach); }
.tone-rose { --tone: var(--rose); }
.tone-mint { --tone: var(--mint); }

.hc { --tone: var(--butter); --gap: 44px; padding: 24px 0 72px; }
.hc .icon { width: 20px; height: 20px; }
.hc [hidden] { display: none !important; }
html:not(.js) .hc-search { display: none; }

/* ---- Search (the hub's big one, and the article pages' small one) ---------------------------- */

.hc-search { position: relative; }
.hc-search > .icon { position: absolute; inset-inline-start: 14px; top: 12px; color: var(--muted); pointer-events: none; }
.hc-search input {
  width: 100%; min-height: 44px; margin: 0; padding-block: 0; padding-inline: 42px 14px; border: 0; border-radius: 12px;
  background: var(--card); color: var(--ink); font: 500 15.5px/1.2 var(--body);
  box-shadow: inset 0 0 0 1px var(--line); -webkit-appearance: none; appearance: none;
}
.hc-search input::placeholder { color: var(--muted); opacity: 1; }
.hc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-search input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.hc-search.is-big > .icon { inset-inline-start: 22px; top: 18px; width: 24px; height: 24px; }
.hc-search.is-big input { min-height: 60px; padding-inline: 56px 22px; border-radius: 999px; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line), var(--lift); }
.hc-search.is-big input:focus-visible { border-radius: 999px; }

.hc-results {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 8px);
  max-height: min(62vh, 480px); overflow-y: auto; padding: 6px; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); text-align: start;
}
.hc-side .hc-results { inset-inline-end: auto; width: min(420px, calc(100vw - 48px)); }
.hc-results ul { list-style: none; margin: 0; padding: 0; }
.hc-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hc-results a:hover, .hc-results a:focus-visible { background: var(--paper-deep); }
.hc-results a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.hc-results small { font: 600 12.5px/1.3 var(--body); color: var(--muted); }
.hc-results strong { font: 700 15.5px/1.35 var(--body); }
.hc-results span { font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-results mark { padding: 0 .1em; border-radius: 3px; background: var(--butter); color: var(--ink); }
.hc-results-status { margin: 0; padding: 10px 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.hc-results-status:empty { display: none; }
.hc-results.has-results .hc-results-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }

/* ---- Article pages: the article, its topic list beside it, the contents on wide screens -------- */

.hc-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
.hc-article { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hc-article > * { min-width: 0; }

.hc-head .crumbs ol { margin-bottom: 18px; font-size: 14.5px; }
.hc-head h1 { max-width: 22ch; margin: 0 0 16px; font-size: 44px; line-height: 1.08; letter-spacing: -.03em; }
.hc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-size: 15px; color: var(--muted); }
.hc-platform-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 72%, var(--card)); color: var(--ink); font-weight: 600;
}
.hc-platform-chip .icon { width: 18px; height: 18px; }
.hc-meta time { color: var(--ink-soft); }

/* On this page: a box above the article; beside it on wide screens. */
.hc-toc { margin: 28px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.hc-toc h2 { margin: 0 0 6px; font: 700 14.5px/1.3 var(--body); letter-spacing: 0; color: var(--ink); }
.hc-toc ol { list-style: none; margin: 0; padding: 0; }
.hc-toc a { display: block; padding: 6px 10px; margin-inline: -10px; border-radius: 9px; color: var(--muted); font-size: 15px; line-height: 1.4; text-decoration: none; }
.hc-toc a:hover { color: var(--ink); background: var(--paper-deep); }
.hc-toc a.is-on { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--tone) 55%, transparent); }
.hc-toc-more { display: none; align-items: center; min-height: 44px; margin: 4px 0 -6px; padding: 0; border: 0; background: none; color: var(--ink); font: 700 15px/1 var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* A long list above the article: two columns on a tablet, the first five on a phone (and Show all). */
@media (min-width: 640px) and (max-width: 1199px) {
  .hc-toc.is-long ol { columns: 2; column-gap: 32px; }
  .hc-toc li { break-inside: avoid; }
}
@media (max-width: 639px) {
  .js .hc-toc.is-long:not(.is-open) li:nth-child(n+6) { display: none; }
  .js .hc-toc.is-long .hc-toc-more { display: inline-flex; }
}
.hc-answer { margin-top: 28px; }
.hc-answer + .hc-toc { margin-top: 8px; }

/* ---- The article's words --------------------------------------------------------------------- */

.hc-prose { max-width: 70ch; margin-top: 32px; font-size: 17.5px; line-height: 1.72; color: var(--ink-soft); text-wrap: pretty; overflow-wrap: break-word; }
.hc-prose > :first-child { margin-top: 0; }
.hc-prose > p:first-child { font-size: 19.5px; line-height: 1.6; color: var(--ink); }
.hc-prose p { margin: 0 0 1em; }
.hc-prose h2 { margin: 56px 0 14px; font-size: 28px; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 104px; }
.hc-prose h3 { margin: 32px 0 8px; font: 700 19.5px/1.35 var(--body); letter-spacing: -.005em; color: var(--ink); scroll-margin-top: 104px; }
.hc-prose h4 { margin: 24px 0 6px; font: 700 17.5px/1.4 var(--body); color: var(--ink); }
.hc-prose strong { color: var(--ink); }
.hc-prose a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 38%, transparent); }
.hc-prose a:hover { text-decoration-color: currentColor; }
.hc-prose mark { padding: 0 .15em; border-radius: 4px; background: var(--butter); color: var(--ink); }
.hc-prose hr { height: 0; margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.hc-prose ul { margin: 0 0 1.1em; padding-inline-start: 1.3em; }
.hc-prose ul > li::marker { color: var(--muted); }
.hc-prose li { margin-bottom: 8px; padding-inline-start: 4px; }
.hc-prose li > :is(ul, ol) { margin: 8px 0 0; }
.hc-prose li > p { margin: 0 0 .5em; }

/* Numbered steps: each number in the topic's colour. Lists that start later use plain numbers. */
.hc-prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; counter-reset: step; }
.hc-prose ol > li { position: relative; min-height: 28px; margin-bottom: 12px; padding-inline-start: 44px; counter-increment: step; }
.hc-prose ol > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: .1em; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--tone); color: var(--ink); font: 700 14px/1 var(--body);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
}
.hc-prose ol.from { padding-inline-start: 1.6em; list-style: decimal; }
.hc-prose ol.from > li { padding-inline-start: 6px; }
.hc-prose ol.from > li::before { content: none; }
.hc-prose li ol > li::before { width: 24px; height: 24px; font-size: 12.5px; background: var(--paper-deep); }

/* Button and menu names as the app shows them; keys as keys. */
.hc-prose code {
  padding: 1px 7px 2px; border-radius: 7px; background: var(--paper-deep); color: var(--ink);
  font: 600 .9em/1.45 var(--body); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hc-prose kbd {
  display: inline-block; min-width: 1.9em; padding: 3px 7px 4px; border-radius: 7px; background: var(--card); color: var(--ink);
  font: 600 .84em/1.2 var(--body); text-align: center; box-shadow: inset 0 0 0 1px var(--line), 0 1.5px 0 var(--line);
}
.hc-prose pre { margin: 0 0 1.4em; padding: 16px 18px; border-radius: 14px; background: var(--paper-deep); color: var(--ink); overflow-x: auto; font: 500 15px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; }
.hc-prose pre code { padding: 0; background: none; box-shadow: none; font: inherit; }
.hc-prose blockquote { margin: 28px 0; padding-block: 2px; padding-inline-start: 20px; border-inline-start: 1px solid var(--ink); color: var(--ink); }
.hc-prose blockquote p:last-child { margin: 0; }

/* Tables */
.hc-prose .table-wrap { margin: 24px 0; overflow-x: auto; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.hc-prose .table-wrap:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hc-prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.hc-prose th, .hc-prose td { padding: 11px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.hc-prose thead th { background: var(--paper-deep); color: var(--ink); font-weight: 700; }
.hc-prose tbody th { color: var(--ink); font-weight: 600; }
.hc-prose tbody tr:last-child > * { border-bottom: 0; }

/* Checklists */
.hc-prose ul.tasks { list-style: none; padding-inline-start: 0; }
.hc-prose ul.tasks > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-inline-start: 0; }
.hc-prose ul.tasks .box { width: 20px; height: 20px; margin-top: .3em; border-radius: 6px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 40%, transparent); }
.hc-prose ul.tasks li.done > .box { background: var(--ink); box-shadow: none; }
.hc-prose ul.tasks li.done > .task-body { color: var(--muted); text-decoration: line-through; }

/* Tip, Note, Warning */
.hc-prose .callout { --c: var(--sky); margin: 26px 0; padding: 15px 20px 16px; border-radius: 16px; background: color-mix(in srgb, var(--c) 62%, var(--card)); color: var(--ink); }
.hc-prose .callout.is-tip { --c: var(--butter); }
.hc-prose .callout.is-good { --c: var(--sage); }
.hc-prose .callout.is-warning { --c: var(--peach); }
.hc-prose .callout-label { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font: 700 15px/1.4 var(--body); }
.hc-prose .callout-label .icon { width: 19px; height: 19px; stroke-width: 2; }
.hc-prose .callout > :last-child { margin-bottom: 0; }
.hc-prose .callout p { font-size: 16.5px; line-height: 1.6; }

/* Pictures of the apps. Phones and tablets are shown at a size that reads like the device. */
.hc-shot { margin: 30px 0; }
.hc-shot img, .hc-zoom { display: block; width: 100%; height: auto; border-radius: 12px; }
.hc-shot img { background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 22px 44px -32px rgba(30, 27, 38, .5); }
.hc-shot:is([data-device="web-phone"], [data-device="android-phone"]) { max-width: 300px; margin-inline: auto; }
.hc-shot:is([data-device="web-phone"], [data-device="android-phone"]) img { border-radius: 22px; }
.hc-shot:is([data-device="web-tablet"], [data-device="android-tablet"]) { max-width: 460px; margin-inline: auto; }
.hc-shot figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.hc-zoom { padding: 0; border: 0; background: none; cursor: zoom-in; }
.hc-zoom:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
/* A picture not taken yet: only ever seen on a local server (assets/js/help.js). */
.hc-missing {
  display: grid; gap: 6px; padding: 22px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink);
  background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--late) 8%, transparent) 10px 20px), var(--card);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--late) 55%, transparent);
}
.hc-missing strong { color: var(--late); }
.hc-missing code { justify-self: start; }

.hc-lightbox { width: auto; max-width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.hc-lightbox::backdrop { background: rgba(20, 18, 24, .72); }
.hc-lightbox img { display: block; max-width: none; width: auto; height: auto; }
.hc-lightbox .hc-close { position: fixed; top: 14px; inset-inline-end: 14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }

/* "On Android" and "On the web": both, one after the other, until the script makes them tabs. */
.hc-tabs { margin: 24px 0 8px; }
.hc-panel + .hc-panel, .hc-platform + .hc-platform { margin-top: 28px; }
.hc-panel-title { display: flex; align-items: center; gap: 9px; }
.hc-panel-title .icon { width: 21px; height: 21px; padding: 4px; box-sizing: content-box; border-radius: 8px; background: color-mix(in srgb, var(--tone) 72%, var(--card)); }
.hc-tablist {
  display: inline-flex; gap: 2px; margin: 0 0 20px; padding: 4px; border-radius: 999px;
  background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--line);
}
.hc-tablist [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 15px/1 var(--body); cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.hc-tablist [role="tab"]:hover { color: var(--ink); }
.hc-tablist [role="tab"][aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(30, 27, 38, .12), inset 0 0 0 1px var(--line); }
.hc-tablist [role="tab"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.hc-tablist .icon { width: 18px; height: 18px; }
.hc-tabs.is-on .hc-panel { margin-top: 0; }
.hc-tabs.is-on .hc-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.hc-tabs.is-on .hc-panel > .hc-panel-title + * { margin-top: 0; }
.hc-tabs.is-on .hc-panel:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 6px; }

/* Questions and answers */
.hc-faq { margin: 8px 0 28px; border-top: 1px solid var(--line); }
.hc-qa { border-bottom: 1px solid var(--line); }
.hc-qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 16px 0;
  list-style: none; cursor: pointer; font: 700 17.5px/1.4 var(--body); color: var(--ink);
}
.hc-qa summary::-webkit-details-marker { display: none; }
.hc-qa summary .icon { flex: none; transition: transform .2s ease; }
.hc-qa[open] summary .icon { transform: rotate(45deg); }
.hc-qa summary:focus-visible { outline-offset: 2px; }
.hc-qa .answer { padding: 0 0 18px; }
.hc-qa .answer p { margin: 0; }

/* ---- After the article: feedback, previous and next, related ------------------------------------ */

.hc-feedback {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 70ch;
  margin: 52px 0 0; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.hc-feedback p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.hc-feedback strong { display: block; color: var(--ink); font-size: 16.5px; }
.hc-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 15px; border-radius: 999px;
  background: transparent; color: var(--ink); font: 700 15px/1 var(--body); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .15s ease;
}
.hc-btn:hover { background: var(--paper-deep); }

.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 70ch; margin-top: 16px; }
.hc-pager a {
  position: relative; display: grid; gap: 2px; padding: 14px 18px; padding-inline-start: 46px; border-radius: 16px;
  color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s ease;
}
.hc-pager a:hover { background: var(--card); }
.hc-pager .hc-pager-next { grid-column: 2; padding-inline: 18px 46px; text-align: end; }
.hc-pager small { font: 600 13px/1.3 var(--body); color: var(--muted); }
.hc-pager a > span { font-weight: 700; font-size: 16px; line-height: 1.35; }
.hc-pager .chev { position: absolute; top: 50%; margin-top: -10px; color: var(--muted); }
.hc-pager-prev .chev { inset-inline-start: 16px; transform: rotate(180deg); }
.hc-pager-next .chev { inset-inline-end: 16px; }
[dir="rtl"] .hc-pager-prev .chev { transform: none; }
[dir="rtl"] .hc-pager-next .chev { transform: scaleX(-1); }

.hc-related { max-width: 70ch; margin-top: 52px; }
.hc-related h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.015em; }
.hc-related ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hc-related a { position: relative; display: grid; gap: 2px; padding-block: 14px; padding-inline: 24px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hc-related a::before { content: ""; position: absolute; inset-inline-start: 2px; top: 22px; width: 10px; height: 10px; border-radius: 3px; background: var(--tone); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.hc-related strong { font-size: 17px; line-height: 1.35; }
.hc-related a:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hc-related span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---- The topic list beside the article (below it on small screens) ------------------------------- */

.hc-side { font-size: 15px; }
.hc-side nav { margin-top: 18px; }
.hc-side-home { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 10px; margin-inline: -10px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.hc-side-home:hover { background: var(--paper-deep); }
.hc-side-cats { list-style: none; margin: 6px 0 0; padding: 0; }
.hc-side-cat { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 6px 10px; margin-inline: -10px; border-radius: 10px; color: var(--ink-soft); line-height: 1.3; text-decoration: none; }
.hc-side-cat:hover { background: var(--paper-deep); color: var(--ink); }
.hc-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--tone); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); }
.hc-side-cats .is-open > .hc-side-cat { color: var(--ink); font-weight: 700; }
.hc-side-cats ul { list-style: none; margin: 2px 0 10px; padding: 0; margin-inline-start: 4px; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.hc-side-cats ul a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--muted); line-height: 1.35; text-decoration: none; }
.hc-side-cats ul a:hover { color: var(--ink); background: var(--paper-deep); }
.hc-side-cats ul a[aria-current="page"] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--tone) 60%, transparent); }

@media (min-width: 960px) {
  .hc-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: var(--gap); }
  .hc-article { grid-column: 2; }
  .hc-side { grid-column: 1; grid-row: 1; position: sticky; top: 96px; }
  .hc-side nav { max-height: calc(100vh - 176px); overflow-y: auto; overscroll-behavior: contain; padding-inline: 10px; padding-bottom: 24px; margin-inline: -10px; scrollbar-width: thin; }
}
@media (min-width: 1200px) {
  .hc-article { grid-template-columns: minmax(0, 1fr) 188px; column-gap: var(--gap); }
  .hc-article > * { grid-column: 1; }
  .hc-article > .hc-toc { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 4px 0 0; padding: 0; background: none; box-shadow: none; }
  .hc-article > .hc-toc ol { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
  .hc-prose { margin-top: 36px; }
}
@media (max-width: 959px) {
  .hc-side { padding-top: 32px; border-top: 1px solid var(--line); }
  .hc-side-cat, .hc-side-cats ul a, .hc-side-home { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 640px) {
  .hc { padding-top: 16px; }
  .hc-head h1 { font-size: 34px; line-height: 1.1; }
  .hc-head .crumbs li:last-child { display: none; }
  .hc-prose { font-size: 17px; }
  .hc-prose > p:first-child { font-size: 18.5px; }
  .hc-prose h2 { margin-top: 44px; font-size: 24px; }
  .hc-prose h3 { font-size: 18.5px; }
  .hc-prose ol > li { padding-inline-start: 40px; }
  .hc-pager { grid-template-columns: 1fr; }
  .hc-pager .hc-pager-next { grid-column: 1; }
  .hc-feedback .hc-btn { width: 100%; justify-content: center; }
  .hc-tablist { display: flex; }
  .hc-tablist [role="tab"] { flex: 1; justify-content: center; min-height: 44px; }
}

/* ---- The hub -------------------------------------------------------------------------------------- */

.hc-hub { padding: 0 0 64px; }
.hc-hero { position: relative; padding: 36px 0 56px; text-align: center; isolation: isolate; }
.hc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dots) 1.5px, transparent 1.9px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000 10%, transparent 92%); mask-image: linear-gradient(#000 10%, transparent 92%);
}
.hc-hero .crumbs ol { justify-content: center; margin-bottom: 20px; font-size: 14.5px; }
.hc-hero h1 { margin: 0 auto 14px; font-size: 58px; line-height: 1.02; letter-spacing: -.035em; }
.hc-intro { max-width: 34em; margin: 0 auto 30px; font-size: 19px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.hc-hero .hc-search { max-width: 640px; margin: 0 auto; text-align: start; }
.hc-count { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
html:not(.js) .hc-count { margin-top: 0; }

.hc-hub section > h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.hc-popular, .hc-topics { margin-top: 16px; }
.hc-topics { margin-top: 64px; }

.hc-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.hc-ico .icon { width: 20px; height: 20px; stroke-width: 1.9; }

.hc-popular ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 0 36px; margin: 0; padding: 0; }
.hc-popular li { border-top: 1px solid var(--line); }
.hc-popular a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0 18px; color: var(--ink); text-decoration: none; }
.hc-popular strong { display: block; font-size: 17px; line-height: 1.35; }
.hc-popular a:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hc-popular a > span:last-child > span { display: -webkit-box; margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hc-cat-grid { columns: 3 300px; column-gap: 20px; }
.hc-cat {
  break-inside: avoid; margin: 0 0 20px; padding: 22px 22px 10px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 100px;
}
.hc-cat:target { box-shadow: inset 0 0 0 2px var(--ink); }
.hc-cat-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 12px; }
.hc-cat h3 { margin: 1px 0 3px; font: 700 18px/1.3 var(--body); letter-spacing: -.005em; }
.hc-cat-head p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.hc-cat ul { list-style: none; margin: 0; padding: 0; }
.hc-cat li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.hc-cat li a { flex: 1; display: flex; align-items: center; min-height: 44px; padding: 9px 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.4; text-decoration: none; }
.hc-cat li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hc-tag { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--paper-deep); color: var(--muted); font: 600 12.5px/1 var(--body); }

.hc-contact {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 28px 40px; align-items: center;
  margin-top: 44px; padding: 32px; border-radius: 24px; background: var(--paper-deep);
}
.hc-hub .hc-contact h2 { margin-bottom: 8px; }
.hc-contact p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hc-contact p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.hc-contact ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.hc-contact li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 12px 18px; border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease; }
.hc-contact li a:hover { box-shadow: inset 0 0 0 1px var(--line), var(--lift); }
.hc-contact li .icon { width: 22px; height: 22px; }
.hc-contact strong { display: block; font-size: 16px; line-height: 1.3; }
.hc-contact li a > span > span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }

@media (max-width: 760px) {
  .hc-contact { grid-template-columns: 1fr; padding: 24px 20px; }
}
@media (max-width: 640px) {
  .hc-hero { padding: 24px 0 40px; }
  .hc-hero h1 { font-size: 40px; }
  .hc-intro { font-size: 17.5px; margin-bottom: 24px; }
  .hc-search.is-big input { min-height: 56px; font-size: 17px; }
  .hc-search.is-big > .icon { top: 16px; }
  .hc-hub section > h2 { font-size: 24px; }
  .hc-cat { padding: 20px 18px 8px; }
}

/* ---- Urdu and other Nastaliq pages need room above and below the line ----------------------------- */
html[lang="ur"] .hc-prose { line-height: 2.1; }
html[lang="ur"] :is(.hc-head h1, .hc-prose h2, .hc-hero h1) { line-height: 1.75; }

/* ---- Print: the article alone, both platforms' steps ------------------------------------------- */
@media print {
  .site-header, .site-footer, .hc-side, .hc-toc, .hc-feedback, .hc-pager, .hc-tablist, .skip-link { display: none !important; }
  .hc-wrap, .hc-article { display: block; }
  .hc-tabs .hc-panel[hidden] { display: block !important; }
  .hc-tabs.is-on .hc-panel-title { position: static; width: auto; height: auto; clip: auto; margin: 24px 0 8px; }
  .hc-prose { max-width: none; }
}
