/* D-399A: the public how-to (/how-to, /how-to/<id>), on Call's theme tokens (theme.css), light and dark. */
.ht-page { background: var(--ink); color: var(--txt); }
.ht { max-width: 1040px; margin: 0 auto; padding: 0 24px 80px; box-sizing: border-box; }
.ht .sr-only, .ht-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ht-head { text-align: center; padding: 56px 0 8px; }
.ht-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--txt-2); background: var(--film-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.ht-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ht h1 { font-family: var(--font-d); font-size: clamp(30px, 6vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 0; overflow-wrap: anywhere; }
.ht-lead { font-size: 17px; line-height: 1.6; color: var(--txt-2); margin: 12px auto 0; max-width: 620px; }

/* The search: a combobox over a listbox of results. */
.ht-search { position: relative; max-width: 640px; margin: 28px auto 0; text-align: start; }
.ht-article .ht-search { margin: 24px 0 0; max-width: none; }
.ht-search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--ink-2); color: var(--txt-2); }
.ht-search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.ht-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--txt); font: inherit; font-size: 16px; padding: 14px 0; outline: none; }
/* D-451: the dark theme's search box border at 5.6:1 and placeholder at 8.1:1 against its ground (--ink-2); light unchanged. */
html:not([data-theme="light"]) .ht-search-field { border-color: var(--txt-3); color-scheme: dark; }
html:not([data-theme="light"]) .ht-search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.45); }
html:not([data-theme="light"]) .ht-search input::placeholder { color: var(--txt-2); opacity: 1; }
html:not([data-theme="light"]) .ht-search input:-webkit-autofill { -webkit-text-fill-color: var(--txt); box-shadow: inset 0 0 0 100px var(--ink-2); }
/* /D-451 */
.ht-results { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(70vh, 520px); overflow-y: auto; background: var(--menu-bg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.ht-results[hidden] { display: none; }
.ht-opt { display: block; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: inherit; text-decoration: none; }
.ht-opt[aria-selected="true"], .ht-opt:hover { background: var(--film-4); }
.ht-opt b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.4; }
.ht-opt span { display: block; font-size: 13px; color: var(--txt-2); line-height: 1.5; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ht-opt small { font-size: 11.5px; color: var(--txt-3); }
.ht-opt-empty { padding: 12px; font-size: 14px; color: var(--txt-2); }
.ht mark { background: rgba(124, 92, 255, 0.28); color: inherit; border-radius: 3px; padding: 0 1px; }

.ht-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0 0; }
.ht-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ht-chip .n { font-size: 12px; color: var(--txt-3); font-weight: 600; }
.ht-chip:hover, .ht-chip:focus-visible { border-color: var(--line-3); }
.ht-chip[aria-pressed="true"] { background: var(--txt); color: var(--ink); border-color: var(--txt); }
.ht-chip[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.ht-count { text-align: center; font-size: 13px; color: var(--txt-2); margin: 14px 0 0; }

.ht-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.ht-tile { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; color: inherit; text-decoration: none; background: var(--card-bg); transition: border-color 0.15s, transform 0.12s; }
.ht-tile:hover, .ht-tile:focus-visible { border-color: var(--violet); transform: translateY(-2px); }
.ic { flex: none; display: inline-grid; place-items: center; }
.ht-tile .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--violet); }
.ht-tile b { display: block; font-size: 15px; font-weight: 650; }
.ht-tile .n { display: block; font-size: 12.5px; color: var(--txt-2); margin-top: 2px; }

.ht-group { margin-top: 34px; scroll-margin-top: 90px; }
.ht-group[hidden], .ht-list li[hidden] { display: none; }
.ht-group h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 10px; }
.ht-group h2 .ic { color: var(--violet); }
.ht-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ht-item { display: block; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; color: inherit; text-decoration: none; background: var(--card-bg); }
.ht-item:hover, .ht-item:focus-visible { border-color: var(--violet); }
.ht-item-t { display: block; font-weight: 650; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ht-item-g { display: block; font-size: 13.5px; color: var(--txt-2); line-height: 1.55; margin-top: 4px; overflow-wrap: anywhere; }
.ht-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 190, 80, 0.5); color: var(--txt); background: rgba(255, 190, 80, 0.12); vertical-align: middle; white-space: normal; }
.ht-badge-lg { font-size: 13px; padding: 5px 12px; margin: 12px 0 0; }
.ht-empty { text-align: center; padding: 32px 0; color: var(--txt-2); }
.ht-empty[hidden] { display: none; }

/* An article. */
.ht-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 22px 0 0; font-size: 13.5px; color: var(--txt-3); }
.ht-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--txt-2); text-decoration: none; }
.ht-crumbs a:hover { color: var(--txt); text-decoration: underline; }
.ht-art { margin-top: 14px; }
.ht-art h1 { text-align: start; }
.ht-goal { font-size: 18px; line-height: 1.65; color: var(--txt-2); margin: 14px 0 0; max-width: 760px; }
.ht-art h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-size: 20px; font-weight: 700; margin: 34px 0 12px; }
.ht-art h2 .ic, .ht-art h2 svg { color: var(--violet); flex: none; }
.ht-where { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-bg); }
.ht-where h2 { margin: 0 0 6px; font-size: 15px; }
.ht-where p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ht-open { display: inline-flex; align-items: center; gap: 8px; }
.ht-shot { margin: 24px 0 0; }
.ht-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); }
.ht-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.ht-steps li { counter-increment: s; position: relative; padding-block: 10px; padding-inline: 40px 4px; font-size: 15.5px; line-height: 1.7; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ht-steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ht-table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.ht-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ht-table th, .ht-table td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.ht-table thead th { font-size: 12.5px; color: var(--txt-3); font-weight: 700; background: var(--film-2); }
.ht-trouble { border: 1px solid var(--line-2); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.ht-trouble summary { cursor: pointer; padding: 12px 0; font-weight: 650; }
.ht-trouble p { margin: 0 0 14px; line-height: 1.65; color: var(--txt-2); }
.ht-bullets { margin: 0; padding-inline-start: 20px; }
.ht-bullets li { margin: 6px 0; line-height: 1.65; overflow-wrap: anywhere; }

.ht-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 56px 0 0; }
.ht-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 32px 0 0; font-size: 14px; line-height: 2; }
.ht-langs a { color: inherit; opacity: 0.8; white-space: nowrap; }
.ht-langs a[aria-current] { opacity: 1; font-weight: 700; }

@media (max-width: 640px) {
  .ht { padding: 0 16px 64px; }
  .ht-head { padding-top: 32px; }
  .ht-lead { font-size: 15.5px; }
  .ht-chips { justify-content: flex-start; }
  .ht-list { grid-template-columns: minmax(0, 1fr); }
  .ht-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ht-tile { padding: 12px; gap: 10px; }
  .ht-tile .ic { width: 34px; height: 34px; }
  .ht-goal { font-size: 16px; }
  .ht-table { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .ht-tile { transition: none; } .ht-tile:hover { transform: none; } }
