/*
 * Ticketix customer portal (2.1.0).
 * Layout: a full-width maroon band (floating menu and page header), the page below it; quick actions open in
 * windows (<dialog>), article previews in a side panel. Light and dark theme follow the system unless the
 * visitor picks one (data-theme on <html>). Right-to-left pages use the logical properties below.
 */
:root {
  --bg: #f6f3f5;
  --surface: #ffffff;
  --surface-2: #faf7f8;
  --tint: #f6e9ee;
  --line: #e9dee3;
  --line-strong: #d6c4cc;
  --text: #1d1519;
  --text-2: #5f5058;
  --brand: #8b2846;
  --brand-strong: #721f3a;
  --brand-ink: #ffffff;
  --link: #8b2846;
  --hero: #7e2341;
  --hero-deep: #4f1226;
  --hero-glow: #b04a6b;
  --hero-ink: #ffffff;
  --hero-soft: rgba(255, 255, 255, 0.82);
  --hero-chip: rgba(255, 255, 255, 0.13);
  --hero-line: rgba(255, 255, 255, 0.28);
  --ok: #1d7448;
  --ok-bg: #e4f3eb;
  --warn: #8a5300;
  --warn-bg: #fbefd9;
  --info: #2c57a3;
  --info-bg: #e7eef9;
  --danger: #a32c2c;
  --danger-bg: #fbe6e6;
  --mark: #f7d6e1;
  --focus: #b8456c;
  --shadow-sm: 0 1px 2px rgba(60, 20, 35, 0.06), 0 4px 12px rgba(60, 20, 35, 0.05);
  --shadow-lg: 0 2px 6px rgba(60, 20, 35, 0.08), 0 18px 48px rgba(60, 20, 35, 0.16);
  --font: "Zain", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --r-card: 20px;
  --r-ctl: 12px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131012;
    --surface: #1c171a;
    --surface-2: #211b1f;
    --tint: #2c1f25;
    --line: #362b31;
    --line-strong: #4b3c44;
    --text: #f4edf0;
    --text-2: #c4b4bc;
    --brand: #dc86a0;
    --brand-strong: #eaa1b6;
    --brand-ink: #1a0d12;
    --link: #e79bb2;
    --hero: #43172a;
    --hero-deep: #260b17;
    --hero-glow: #7a2e4b;
    --hero-ink: #ffffff;
    --hero-soft: rgba(255, 255, 255, 0.8);
    --hero-chip: rgba(255, 255, 255, 0.1);
    --hero-line: rgba(255, 255, 255, 0.22);
    --ok: #71d09f;
    --ok-bg: #163126;
    --warn: #f1bb62;
    --warn-bg: #352713;
    --info: #93b4f2;
    --info-bg: #1b2741;
    --danger: #f19a9a;
    --danger-bg: #3a1a1a;
    --mark: #5c2a3c;
    --focus: #e79bb2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131012;
  --surface: #1c171a;
  --surface-2: #211b1f;
  --tint: #2c1f25;
  --line: #362b31;
  --line-strong: #4b3c44;
  --text: #f4edf0;
  --text-2: #c4b4bc;
  --brand: #dc86a0;
  --brand-strong: #eaa1b6;
  --brand-ink: #1a0d12;
  --link: #e79bb2;
  --hero: #43172a;
  --hero-deep: #260b17;
  --hero-glow: #7a2e4b;
  --hero-ink: #ffffff;
  --hero-soft: rgba(255, 255, 255, 0.8);
  --hero-chip: rgba(255, 255, 255, 0.1);
  --hero-line: rgba(255, 255, 255, 0.22);
  --ok: #71d09f;
  --ok-bg: #163126;
  --warn: #f1bb62;
  --warn-bg: #352713;
  --info: #93b4f2;
  --info-bg: #1b2741;
  --danger: #f19a9a;
  --danger-bg: #3a1a1a;
  --mark: #5c2a3c;
  --focus: #e79bb2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* Base */
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: normal;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
main:focus {
  outline: none;
}
.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir="rtl"] .flip {
  transform: scaleX(-1);
}
.muted {
  color: var(--text-2);
}
.num {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 50;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  box-shadow: var(--shadow-lg);
}
.skip-link:focus {
  top: 12px;
}

/* Buttons, pills, tiles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 9px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 15px;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost[aria-pressed="true"] {
  background: var(--tint);
}
.btn-ghost[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.btn-light {
  background: var(--hero-ink);
  color: var(--hero-deep);
}
.btn-light:hover {
  background: var(--hero-soft);
}
.btn-outline-light {
  background: transparent;
  color: var(--hero-ink);
  border-color: var(--hero-line);
}
.btn-outline-light:hover,
.btn-outline-light[aria-pressed="true"] {
  border-color: var(--hero-ink);
  background: var(--hero-chip);
}
.btn-danger {
  background: var(--danger);
  color: #ffffff;
}
.btn-block {
  width: 100%;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.icon-btn:hover {
  background: var(--tint);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  padding: 1px 10px;
  font-size: 15px;
  background: var(--tint);
  color: var(--text);
  white-space: nowrap;
}
.chip .ic {
  width: 15px;
  height: 15px;
  color: var(--brand);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-pill);
  padding: 1px 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.status .ic {
  width: 15px;
  height: 15px;
}
.st-solved {
  background: var(--ok-bg);
  color: var(--ok);
}
.st-open {
  background: var(--info-bg);
  color: var(--info);
}
.st-unanswered,
.st-waiting {
  background: var(--warn-bg);
  color: var(--warn);
}
.st-pinned {
  background: var(--tint);
  color: var(--brand);
}
.st-closed {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--brand);
  font-weight: 800;
  font-size: 17px;
}
.tile .ic {
  width: 24px;
  height: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
mark {
  background: var(--mark);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--r-ctl);
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.45;
}
.notice .ic {
  margin-top: 2px;
}
.notice.is-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.notice.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}
main > .notice {
  margin-top: 24px;
}
.empty {
  padding: 18px 20px;
  color: var(--text-2);
}

/* Full-width band */
.hero {
  color: var(--hero-ink);
  background:
    radial-gradient(40% 90% at 92% 0%, var(--hero-glow) 0%, transparent 70%),
    radial-gradient(35% 80% at 0% 100%, var(--hero-deep) 0%, transparent 75%),
    var(--hero);
  border-radius: 0 0 32px 32px;
  padding-top: 14px;
  padding-bottom: 140px;
}
.hero.is-compact {
  padding-bottom: 56px;
}
.hero.has-image {
  background:
    linear-gradient(135deg, rgba(79, 18, 38, 0.92), rgba(126, 35, 65, 0.78)),
    var(--hero-image) center / cover no-repeat,
    var(--hero);
}
.announce {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--hero-line);
  background: var(--hero-chip);
  color: var(--hero-ink);
  border-radius: var(--r-pill);
  padding-block: 6px;
  padding-inline: 14px 8px;
  font-size: 15.5px;
  line-height: 1.4;
}
.announce .ic {
  width: 18px;
  height: 18px;
}
.announce p {
  flex: 1;
  min-width: 0;
}
.announce a {
  color: var(--hero-ink);
  font-weight: 700;
}
.announce .tag {
  flex: none;
  background: var(--hero-ink);
  color: var(--hero-deep);
  border-radius: var(--r-pill);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.announce button {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hero-ink);
}
.announce button:hover {
  background: var(--hero-chip);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-pill);
  padding-block: 8px;
  padding-inline: 14px 8px;
  box-shadow: var(--shadow-sm);
}
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.brand-name {
  font-weight: 800;
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: 6px;
}
.topnav a {
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.topnav a:hover,
.topnav a[aria-current="page"] {
  background: var(--tint);
}
.top-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding-block: 6px;
  padding-inline: 12px 8px;
  white-space: nowrap;
}
.kbd-hint:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
kbd {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 0 6px;
  background: var(--surface);
  color: var(--text-2);
}
.lang-menu {
  position: relative;
  flex: none;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding-block: 5px;
  padding-inline: 10px 12px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.lang-toggle::-webkit-details-marker {
  display: none;
}
.lang-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
}
.lang-toggle:hover,
.lang-menu[open] > .lang-toggle {
  background: var(--tint);
}
.lang-menu[open] > .lang-toggle::after {
  transform: translateY(1px) rotate(225deg);
}
.lang-globe {
  line-height: 1;
}
.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 100%;
  max-width: min(260px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--r-ctl);
  font-size: 15.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-list a:hover {
  background: var(--tint);
}
.lang-list a[aria-current="true"] {
  background: var(--text);
  color: var(--bg);
}
.signin {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
}
.signin:hover {
  background: var(--tint);
}
.menu-btn {
  display: none;
}
.menu-sheet {
  display: none;
  margin-top: 8px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-card);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}
.menu-sheet.is-open {
  display: grid;
  gap: 2px;
}
.menu-sheet > a,
.menu-sheet > button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: start;
  padding: 11px 12px;
  border-radius: var(--r-ctl);
  font-size: 17px;
}
.menu-sheet > a:hover,
.menu-sheet > button:hover {
  background: var(--tint);
}
.menu-sheet .ic {
  color: var(--brand);
}
.menu-sheet .lang-menu {
  display: none;
}

/* Home page header */
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 64px 16px 0;
  max-width: 780px;
  margin-inline: auto;
}
.kicker {
  color: var(--hero-soft);
  font-size: 16px;
  font-weight: 700;
}
.hero-home h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.1;
}
.hero-sub {
  color: var(--hero-soft);
  font-size: 19px;
  max-width: 580px;
}

/* Inner page header */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 40px;
  max-width: 900px;
}
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.page-head .sub {
  color: var(--hero-soft);
  font-size: 19px;
  max-width: 62ch;
}
.hcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--hero-soft);
}
.hcrumbs a {
  color: var(--hero-soft);
  text-decoration: none;
}
.hcrumbs a:hover {
  color: var(--hero-ink);
  text-decoration: underline;
}
.hcrumbs .ic {
  width: 14px;
  height: 14px;
}
.hmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--hero-soft);
  font-size: 15px;
}
.hpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hero-line);
  background: var(--hero-chip);
  color: var(--hero-ink);
  border-radius: var(--r-pill);
  padding: 1px 12px;
  font-size: 15px;
  white-space: nowrap;
}
.hpill .ic {
  width: 15px;
  height: 15px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.hero-actions form {
  display: contents;
}
.ptitle {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ptitle .tile {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--brand);
  font-size: 22px;
}

/* Search box and results */
.search {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 660px;
  margin-top: 6px;
  text-align: start;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-pill);
  padding-block: 6px;
  padding-inline: 18px 6px;
  box-shadow: var(--shadow-lg);
}
.search-box .ic {
  color: var(--text-2);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  font-size: 18px;
  outline: none;
}
.search-box:focus-within {
  outline: 2px solid var(--hero-line);
  outline-offset: 3px;
}
.results {
  background: var(--surface);
  color: var(--text);
}
.drop {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 10px);
  z-index: 30;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow: auto;
  padding: 8px;
}
.res-group {
  padding: 8px 12px 4px;
  font-size: 15px;
  color: var(--text-2);
}
.res-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: var(--r-ctl);
}
.res-item .ic {
  margin-top: 3px;
  color: var(--brand);
}
.res-item[aria-selected="true"],
.res-item:hover {
  background: var(--tint);
}
.res-item small {
  display: block;
  color: var(--text-2);
  font-size: 15px;
}
.res-empty {
  padding: 12px;
  color: var(--text-2);
}

/* Home page content */
.actions {
  position: relative;
  z-index: 2;
  margin-top: -104px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.action {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
  text-align: start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.action .tile {
  margin-bottom: 4px;
}
.action.is-main .tile {
  background: var(--brand);
  color: var(--brand-ink);
}
.action h2 {
  font-size: 21px;
}
.action p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}
.go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--brand);
  font-weight: 700;
}
.go .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.action:hover .go .ic {
  transform: translateX(3px);
}
[dir="rtl"] .action:hover .go .ic {
  transform: scaleX(-1) translateX(3px);
}
.explore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.xcard {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
}
.xcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.xcard .tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.xcard .tile .ic {
  width: 21px;
  height: 21px;
}
.xcard .grow {
  flex: 1;
  min-width: 0;
  display: grid;
}
.xcard strong {
  font-size: 18px;
}
.xcard small {
  color: var(--text-2);
  font-size: 15px;
}
.xcard > .ic {
  color: var(--text-2);
}
.section {
  display: grid;
  gap: 18px;
  padding-top: 44px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
}
.section-head h2 {
  font-size: 32px;
}
.section-head h2.sm {
  font-size: 26px;
}
.section-head p {
  color: var(--text-2);
}
.section-head a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.section-head a:hover {
  text-decoration: underline;
}
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  display: grid;
  gap: 6px;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.pcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pcount {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: var(--r-pill);
  padding: 1px 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.pcard:hover .pcount {
  border-color: var(--brand);
  color: var(--brand);
}
.pcard h3 {
  font-size: 20px;
}
.pcard p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.split > .stack {
  grid-template-rows: auto 1fr;
}
.stack {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}
.alist {
  list-style: none;
  margin: 0;
  padding: 6px;
}
.alist.is-flush {
  padding: 0;
}
.alist button,
.alist a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
}
.alist button:hover,
.alist a:hover {
  background: var(--tint);
}
.alist .tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 15px;
}
.alist .tile .ic {
  width: 20px;
  height: 20px;
}
.alist .grow {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.alist strong {
  font-size: 18px;
  line-height: 1.3;
}
.alist small {
  color: var(--text-2);
  font-size: 15px;
}
.alist button > .ic,
.alist a > .ic {
  color: var(--text-2);
}
.faq {
  display: grid;
  gap: 10px;
  align-content: start;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 15px 18px;
  font-weight: 700;
  font-size: 18px;
  text-align: start;
  border-radius: 16px;
}
.faq-q .ic {
  color: var(--text-2);
  transition: transform 0.2s;
}
.faq-q[aria-expanded="true"] .ic {
  transform: rotate(45deg);
}
.faq-a {
  display: grid;
  gap: 8px;
  padding: 0 18px 16px;
  color: var(--text-2);
  max-width: 70ch;
}
.faq-a a {
  justify-self: start;
  font-weight: 700;
}
.cta {
  margin-top: 56px;
  border-radius: 28px;
  color: var(--hero-ink);
  background:
    radial-gradient(50% 90% at 100% 50%, var(--hero-glow) 0%, transparent 70%),
    var(--hero-deep);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 40px 44px;
}
.cta h2 {
  font-size: 34px;
}
.cta p {
  color: var(--hero-soft);
  max-width: 54ch;
  margin-top: 8px;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Product page */
.pgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cat {
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.cat h3 {
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.cat h3 span {
  font-weight: 400;
  font-size: 15px;
  color: var(--text-2);
}
.cat ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.cat a {
  text-decoration: none;
}
.cat a:hover {
  text-decoration: underline;
}
.cat .more {
  font-weight: 700;
}
.side-card {
  padding: 20px 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.side-card h2,
.side-card h3 {
  font-size: 20px;
}
.side-card ul.plain {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 6px;
}
.side-card > .btn {
  justify-self: start;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.release {
  display: grid;
  gap: 6px;
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--line);
}
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.release-head strong {
  font-size: 18px;
}
.release ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 15.5px;
}
.release li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.kind {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 6px;
}
.kind-added {
  background: var(--ok-bg);
  color: var(--ok);
}
.kind-changed {
  background: var(--info-bg);
  color: var(--info);
}
.kind-fixed {
  background: var(--warn-bg);
  color: var(--warn);
}
.kind-removed {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--line);
}
.kind-security {
  background: var(--danger-bg);
  color: var(--danger);
}
.side-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.side-nav a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-ctl);
  color: var(--text);
  text-decoration: none;
}
.side-nav a:hover {
  background: var(--surface-2);
}
.side-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--brand);
  font-weight: 700;
}

/* Article */
.doc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  gap: 40px;
  align-items: start;
}
.doc.no-toc {
  grid-template-columns: 260px minmax(0, 1fr);
}
.doc-side,
.toc {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}
.doc-side > summary,
.toc > summary {
  display: none;
}
.tree {
  display: grid;
  gap: 4px;
  font-size: 16px;
}
.tree-title {
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  color: var(--text);
  text-decoration: none;
}
.tree details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 8px;
}
.tree details > summary::-webkit-details-marker {
  display: none;
}
.tree details > summary:hover {
  background: var(--tint);
}
.tree details > summary .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.tree details[open] > summary .ic {
  transform: rotate(90deg);
}
.tree ul {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0;
  display: grid;
}
.tree li a {
  display: block;
  padding-block: 5px;
  padding-inline: 18px 8px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 8px;
}
.tree li a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.tree li a[aria-current="page"] {
  color: var(--brand);
  background: var(--tint);
  font-weight: 700;
}
.article {
  min-width: 0;
  display: grid;
  gap: 22px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 36px;
}
.prose {
  display: grid;
  gap: 16px;
  font-size: 18px;
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: break-word;
}
.prose > * {
  margin: 0;
  max-width: 70ch;
}
.prose h2 {
  font-size: 27px;
  margin-top: 14px;
  scroll-margin-top: 20px;
}
.prose h3 {
  font-size: 22px;
  margin-top: 8px;
  scroll-margin-top: 20px;
}
.prose ul,
.prose ol {
  padding-inline-start: 24px;
  display: grid;
  gap: 8px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
}
.prose blockquote {
  border-inline-start: 3px solid var(--brand);
  background: var(--info-bg);
  border-radius: var(--r-ctl);
  padding: 12px 16px;
}
.prose pre {
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 12px 16px;
  font-size: 15px;
}
.prose pre code {
  background: none;
  padding: 0;
  white-space: pre;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tint);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
table {
  border-collapse: collapse;
  font-size: 16.5px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 16px;
}
th,
td {
  text-align: start;
  padding: 12px 16px;
  vertical-align: top;
}
th {
  background: var(--surface-2);
  font-weight: 800;
}
tbody tr td {
  border-top: 1px solid var(--line);
}
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.helpful {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.helpful b {
  margin-inline-end: 6px;
}
.helpful .btn {
  padding: 5px 16px;
}
.helpful .btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.feedback {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}
.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pager a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
}
.pager a:hover {
  border-color: var(--line-strong);
}
.pager small {
  color: var(--text-2);
  font-size: 15px;
}
.pager .next {
  grid-column: 2;
  text-align: end;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related a {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 18px;
  color: var(--text);
  text-decoration: none;
}
.related a:hover {
  border-color: var(--line-strong);
}
.related p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.45;
}
.toc {
  font-size: 15.5px;
}
.toc-title {
  font-weight: 800;
  padding-bottom: 8px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-inline-start: 2px solid var(--line);
}
.toc a {
  display: block;
  padding: 4px 12px;
  color: var(--text-2);
  text-decoration: none;
  margin-inline-start: -2px;
  border-inline-start: 2px solid transparent;
}
.toc .is-sub a {
  padding-inline-start: 26px;
  font-size: 15px;
}
.toc a:hover {
  color: var(--text);
}
.toc a.is-active {
  color: var(--brand);
  border-inline-start-color: var(--brand);
  font-weight: 700;
}

/* Community and tickets */
.cgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.tabs a {
  border-radius: var(--r-pill);
  padding: 5px 14px;
  color: var(--text);
  text-decoration: none;
}
.tabs a:hover {
  background: var(--tint);
}
.tabs a[aria-current="page"] {
  background: var(--text);
  color: var(--bg);
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  min-width: 0;
  max-width: 100%;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li + li {
  border-top: 1px solid var(--line);
}
.topic-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
}
.tstat {
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
  padding: 8px 4px;
  text-align: center;
  line-height: 1.2;
}
.tstat b {
  font-size: 22px;
}
.tstat small {
  font-size: 13.5px;
  color: var(--text-2);
}
.tstat.is-solved {
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok);
}
.tstat.is-solved small {
  color: var(--ok);
}
.tstat.is-unanswered {
  border-color: var(--warn);
  color: var(--warn);
}
.tstat.is-unanswered small {
  color: var(--warn);
}
.tbody {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tbody .ttl {
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}
.tbody .ttl:hover {
  color: var(--link);
}
.tbody p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-topic {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
}
.compact-topic:hover strong {
  color: var(--link);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 15px;
  color: var(--text-2);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.meta-item .ic {
  width: 15px;
  height: 15px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.stats b {
  display: block;
  font-size: 24px;
}
.stats small {
  color: var(--text-2);
  font-size: 14px;
}
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tk-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  padding: 16px 18px;
}
.tk-row:hover {
  background: var(--surface-2);
}
.rows > li:first-child .tk-row {
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.rows > li:last-child .tk-row {
  border-radius: 0 0 var(--r-card) var(--r-card);
}
.tk-row .no {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text-2);
}
.tk-row strong {
  font-size: 18px;
  line-height: 1.3;
}
.post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
  font-weight: 800;
}
.avatar.staff {
  background: var(--brand);
  color: var(--brand-ink);
}
.post-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 15px;
  color: var(--text-2);
}
.post-meta strong {
  color: var(--text);
  font-size: 17px;
}
.role {
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: var(--r-pill);
  padding: 0 8px;
  font-size: 14px;
}
.post-text {
  display: grid;
  gap: 10px;
  max-width: 70ch;
  overflow-wrap: break-word;
}
.post-text > * {
  margin: 0;
}
.post-text img {
  max-width: 100%;
  height: auto;
}
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-actions form {
  display: contents;
}
.solution {
  border-color: var(--ok);
  overflow: hidden;
}
.solution-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: var(--ok-bg);
  color: var(--ok);
  padding: 8px 20px;
  font-weight: 700;
  font-size: 16px;
}
.solution-bar a {
  color: var(--ok);
  margin-inline-start: auto;
  font-weight: 400;
}
.replies-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.replies-head h2 {
  font-size: 24px;
}
.compose {
  padding: 20px;
  display: grid;
  gap: 12px;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-top: 32px;
}

/* Ticket conversation */
.tk-head {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.tk-head strong {
  font-size: 19px;
  line-height: 1.3;
}
.thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.msg {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}
.msg.staff {
  background: var(--tint);
  border-color: transparent;
}
.msg header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
  color: var(--text-2);
}
.msg header b {
  color: var(--text);
}
.msg-body {
  display: grid;
  gap: 8px;
  overflow-wrap: break-word;
}
.msg-body > * {
  margin: 0;
}
.msg-body img {
  max-width: 100%;
  height: auto;
}
.tech {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 15px;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech .chip {
  white-space: normal;
  overflow-wrap: anywhere;
}
.details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 16px;
  margin: 0;
}
.details div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.details dt {
  color: var(--text-2);
  font-size: 15px;
}
.details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 36px 24px;
}
.footer h2 {
  font-size: 17px;
  margin-bottom: 10px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer li a,
.footer li button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  text-align: start;
}
.footer li a:hover,
.footer li button:hover {
  color: var(--text);
}
.footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}
.footer-brand p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 34ch;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-block: 16px 28px;
  font-size: 15px;
  color: var(--text-2);
}
.is-minimal .footer {
  margin-top: 40px;
}
.is-minimal .footer-bottom {
  border-top: 0;
}
.theme-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px;
}
.theme-switch button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-2);
}
.theme-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.theme-switch .ic {
  width: 17px;
  height: 17px;
}

/* Windows */
dialog {
  border: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog::backdrop {
  background: rgba(24, 10, 16, 0.5);
  backdrop-filter: blur(3px);
}
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-radius: 24px;
  overflow: auto;
}
.modal.wide {
  width: min(880px, calc(100vw - 32px));
}
.modal.xwide {
  width: min(960px, calc(100vw - 32px));
}
.modal[open] {
  animation: rise 0.18s ease-out;
}
@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.m-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.m-head.is-flat {
  padding: 0;
  border-bottom: 0;
}
.m-head .tile {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.m-head .tile .ic {
  width: 22px;
  height: 22px;
}
.m-head .grow {
  flex: 1;
  min-width: 0;
  display: grid;
}
.m-head h2 {
  font-size: 24px;
}
.m-head p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.4;
}
.m-body {
  padding: 16px 22px 20px;
  display: grid;
  gap: 14px;
}
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: start;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}
.field-wide {
  grid-column: 1 / -1;
}
.field > label,
.field > .label,
.label-row label {
  font-weight: 700;
  font-size: 16px;
}
.label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--r-ctl);
  padding: 9px 13px;
  font-size: 17px;
}
.field textarea {
  min-height: 112px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: transparent;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hint {
  font-size: 15px;
  color: var(--text-2);
}
.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-fields {
  display: contents;
}
.form-notices {
  display: grid;
  gap: 8px;
}
/* Articles suggested while the subject is typed (TKX-NEW-03) */
.suggest {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--tint);
  padding: 8px 12px;
  font-size: 15px;
}
.suggest ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.suggest button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: start;
  padding: 4px 6px;
  border-radius: 8px;
}
.suggest button:hover {
  background: var(--panel);
}
.suggest small {
  margin-inline-start: auto;
  color: var(--text-2);
  font-size: 13.5px;
}
.form-notices:not(:has(.notice-line)) {
  display: none;
}
.notice-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: var(--r-ctl);
  background: var(--warn-bg);
  color: var(--text);
  padding: 7px 12px;
  font-size: 15px;
  line-height: 1.45;
}
.notice-line.is-info {
  background: var(--info-bg);
}
.notice-line .ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--warn);
}
.notice-line.is-info .ic {
  color: var(--info);
}
.req {
  color: var(--brand);
}
.row-msg {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 12px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.seg span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 9px 4px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.seg input:checked + span {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 112px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-ctl);
  padding: 10px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.35;
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-over {
  background: var(--tint);
  border-color: var(--brand);
}
.dropzone strong {
  color: var(--text);
  font-size: 16px;
}
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.files {
  font-size: 14px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.files.is-error {
  color: var(--danger);
}
.honeypot {
  position: absolute;
  inset-inline-start: -9999px;
}
.m-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.m-foot.is-center {
  justify-content: center;
}
.linkish {
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 0;
  font-weight: 700;
}
.linkish:hover {
  text-decoration: underline;
}
.linkish.is-center {
  justify-self: center;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.done {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 10px 0 4px;
}
.done .tile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.done h3 {
  font-size: 24px;
}
.done p {
  color: var(--text-2);
  max-width: 46ch;
}
.drawer {
  margin: 0;
  margin-inline-start: auto;
  width: min(580px, 100vw);
  height: 100%;
  max-height: 100%;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[dir="rtl"] .drawer {
  border-radius: 0 24px 24px 0;
}
.drawer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: slide 0.2s ease-out;
}
@keyframes slide {
  from {
    transform: translateX(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.d-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.d-head .grow {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.d-head h2 {
  font-size: 28px;
}
.d-body {
  overflow: auto;
  padding: 18px 22px 24px;
}
.d-body .prose {
  font-size: 17px;
}
.d-foot {
  display: grid;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.palette {
  margin-top: 9vh;
  width: min(680px, calc(100vw - 32px));
  max-height: min(76vh, 640px);
  border-radius: 22px;
  overflow: hidden;
}
.palette[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: rise 0.15s ease-out;
}
.p-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.p-input .ic {
  color: var(--text-2);
}
.p-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  outline: none;
}
.p-list {
  overflow: auto;
  padding: 8px;
}
.p-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

/* Account pages (sign-in steps, password, rating) */
.auth {
  display: grid;
  justify-items: center;
  margin-top: -32px;
}
.auth-card {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.auth-card h1 {
  font-size: 28px;
}
.two-factor-qr canvas {
  display: block;
  max-width: 100%;
  border-radius: var(--r-ctl);
}
.codes {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--r-ctl);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.8;
}
.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.stars input {
  position: absolute;
  opacity: 0;
}
.stars label {
  font-size: 32px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
}
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: var(--brand);
}
.stars input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Narrow screens */
@media (max-width: 1240px) {
  .kbd-hint span,
  .kbd-hint kbd {
    display: none;
  }
  .kbd-hint {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
}
@media (max-width: 1100px) {
  .topnav,
  .signin {
    display: none;
  }
  .menu-btn {
    display: inline-grid;
  }
  .actions,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .pgrid,
  .cgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .row3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc,
  .doc.no-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .doc-side,
  .toc {
    position: static;
    max-height: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
  }
  .doc-side > summary,
  .toc > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    padding: 12px 16px;
  }
  .doc-side > summary::-webkit-details-marker,
  .toc > summary::-webkit-details-marker {
    display: none;
  }
  .doc-side .tree,
  .toc .toc-body {
    padding: 0 16px 14px;
  }
  .toc-title,
  .tree-title {
    display: none;
  }
  .toc {
    order: 1;
  }
  .article {
    order: 2;
  }
  .doc-side {
    order: 3;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .row-msg {
    grid-template-columns: minmax(0, 1fr);
  }
  .dropzone {
    min-height: 72px;
  }
}
@media (max-width: 760px) {
  /* The account pages have no menu sheet; they keep the language menu in the top bar. */
  body:not(.is-minimal) .top-end > .lang-menu {
    display: none;
  }
  .menu-sheet .lang-menu {
    display: block;
    justify-self: start;
    margin: 6px 12px;
  }
  .menu-sheet .lang-list {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }
  .top-end .btn-primary span {
    display: none;
  }
  .top-end .btn-primary {
    padding: 9px 12px;
  }
  .hero {
    padding-bottom: 116px;
    border-radius: 0 0 24px 24px;
  }
  .hero-home {
    padding-top: 40px;
  }
  .announce {
    border-radius: var(--r-card);
  }
  .announce .tag {
    display: none;
  }
  .hero-sub,
  .page-head .sub {
    font-size: 17.5px;
  }
  .explore,
  .related,
  .cats {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-inner {
    padding: 28px 22px;
  }
  .cta h2 {
    font-size: 28px;
  }
  .section-head h2 {
    font-size: 27px;
  }
  .tk-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
@media (max-width: 560px) {
  .topbar {
    gap: 10px;
  }
  .top-end {
    gap: 6px;
  }
  .top-end .kbd-hint {
    display: none;
  }
  .brand-name {
    font-size: 17px;
  }
  .brand-logo {
    height: 30px;
    max-width: 72px;
  }
  .actions {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -88px;
  }
  .action {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    padding: 16px;
  }
  .action .tile {
    grid-row: span 3;
    margin: 0;
  }
  .action .go {
    display: none;
  }
  .products,
  .row2,
  .row3,
  .footer-grid,
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager .next {
    grid-column: auto;
  }
  .seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topic-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .post {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }
  .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .article-card {
    padding: 20px 18px;
  }
  .auth-card {
    padding: 20px 18px;
  }
  .modal,
  .modal.wide,
  .modal.xwide {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    max-height: 94vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .m-head,
  .m-body {
    padding-inline: 18px;
  }
  .drawer {
    width: 100vw;
    border-radius: 0;
  }
  [dir="rtl"] .drawer {
    border-radius: 0;
  }
  .palette {
    margin-top: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}
/* The hidden attribute wins over the display of a component (one rule, after every component). */
[hidden]:not(dialog) {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  .modal[open],
  .drawer[open],
  .palette[open] {
    animation: none !important;
    transition: none !important;
  }
}
