/*
 * altus Hospitality Knowledge & Performance — workspace design system.
 * Brand colours arrive as CSS variables per property (white-label); everything
 * here uses logical properties so Arabic RTL is the same layout mirrored,
 * not a second stylesheet. Fonts are served locally (offline-safe).
 */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../academy/fonts/montserrat-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../academy/fonts/montserrat-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../academy/fonts/montserrat-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../academy/fonts/playfair-display-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url("../academy/fonts/cairo-400-arabic.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 600; font-display: swap; src: url("../academy/fonts/cairo-600-arabic.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url("../academy/fonts/cairo-700-arabic.woff2") format("woff2"); }

:root {
  --brand: #0F3D3E; --brand-ink: #0D1B2A; --accent: #C89D4F; --surface-brand: #F7F6F2;
  --ink: #16202b; --muted: #5b6470; --line: #e3e0d8; --card: #ffffff; --bg: var(--surface-brand);
  --ok: #1f7a4d; --ok-bg: #e6f4ec; --warn: #9a6b00; --warn-bg: #fdf3dc; --bad: #b3261e; --bad-bg: #fbe9e7; --neutral-bg: #eef0f2;
  --radius: 14px; --shadow: 0 1px 2px rgba(13,27,42,.06), 0 8px 24px rgba(13,27,42,.06);
  --font-latin: "Montserrat"; --font-arabic: "Cairo";
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.hkp { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-latin), "Segoe UI", system-ui, sans-serif; }
body.hkp.is-ar { font-family: var(--font-arabic), "Segoe UI", Tahoma, sans-serif; font-size: 15.5px; }
h1, h2, h3 { color: var(--brand-ink); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font: 700 1.65rem/1.2 "Playfair Display", Georgia, serif; }
.is-ar h1 { font-family: var(--font-arabic), serif; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: .98rem; font-weight: 600; }
a { color: var(--brand); }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.hkp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hkp-skip { position: absolute; inset-inline-start: 1rem; top: -3rem; background: var(--brand-ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 99; }
.hkp-skip:focus { top: 1rem; }
.hkp-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------------------------------------------------------------- shell */
.hkp-shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.hkp-side { background: var(--brand-ink); color: #d7dde4; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .75rem 2rem; }
.hkp-brand { display: flex; gap: .7rem; align-items: center; padding: .4rem .5rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .6rem; }
.hkp-brand__logo { border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; }
.hkp-brand__name { color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.hkp-brand__by { color: var(--accent); font-size: .68rem; margin-top: .15rem; }
.hkp-nav__section { text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; color: #8d99a6; padding: 1rem .75rem .35rem; }
.is-intl .hkp-nav__section { letter-spacing: 0; font-size: .75rem; }
.hkp-nav__item { display: flex; gap: .7rem; align-items: center; color: #d7dde4; text-decoration: none; padding: .55rem .75rem; border-radius: 10px; font-size: .9rem; min-height: 40px; }
.hkp-nav__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.hkp-nav__item.is-active { background: linear-gradient(90deg, rgba(200,157,79,.22), rgba(200,157,79,.05)); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .hkp-nav__item.is-active { box-shadow: inset -3px 0 0 var(--accent); background: linear-gradient(270deg, rgba(200,157,79,.22), rgba(200,157,79,.05)); }
.hkp-main-wrap { min-width: 0; display: flex; flex-direction: column; }
.hkp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hkp-search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 .9rem; color: var(--muted); }
.hkp-search input { border: 0; background: transparent; flex: 1; padding: .6rem 0; font: inherit; color: var(--ink); min-width: 0; }
.hkp-search input:focus { outline: none; }
.hkp-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,61,62,.12); }
.hkp-suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.hkp-suggest a { display: block; padding: .55rem .9rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.hkp-suggest a:hover, .hkp-suggest a:focus { background: var(--bg); }
.hkp-suggest small { color: var(--muted); display: block; }
.hkp-context select, .hkp-input, .hkp-select, textarea.hkp-input { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff; color: var(--ink); min-height: 42px; }
.hkp-lang { text-decoration: none; font-weight: 600; font-size: .85rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; }
.hkp-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--brand-ink); cursor: pointer; }
.hkp-dot { position: absolute; top: -5px; inset-inline-end: -5px; background: var(--bad); color: #fff; font-size: .68rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.hkp-user { position: relative; }
.hkp-user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; }
.hkp-user summary::-webkit-details-marker { display: none; }
.hkp-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.hkp-user__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: .4rem; z-index: 30; }
.hkp-user__menu a { display: flex; gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.hkp-user__menu a:hover { background: var(--bg); }
.hkp-main { padding: 1.5rem; flex: 1; outline: none; max-width: 1480px; width: 100%; }
.hkp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1rem 1.5rem; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); }
.hkp-only-mobile { display: none; }

/* ------------------------------------------------------------ components */
.hkp-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.hkp-head p { margin: .2rem 0 0; color: var(--muted); max-width: 70ch; }
.hkp-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--accent); font-weight: 700; margin-bottom: .35rem; }
.is-intl .hkp-eyebrow { letter-spacing: 0; font-size: .8rem; }
.hkp-question { font-size: .8rem; color: var(--muted); font-style: italic; }
.hkp-grid { display: grid; gap: 1rem; }
.hkp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hkp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hkp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hkp-grid--main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.hkp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.2rem; min-width: 0; }
.hkp-card > h2:first-child, .hkp-card > h3:first-child { margin-bottom: .75rem; }
.hkp-card--hero { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #e9eef0; border: 0; }
.hkp-card--hero h1, .hkp-card--hero h2 { color: #fff; }
.hkp-card--hero .hkp-muted { color: #c6d2d4; }
.hkp-tile { display: flex; flex-direction: column; gap: .2rem; }
.hkp-tile__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.is-intl .hkp-tile__label { letter-spacing: 0; font-size: .82rem; }
.hkp-tile__value { font-size: 1.85rem; font-weight: 700; color: var(--brand-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hkp-tile__foot { font-size: .78rem; color: var(--muted); }
.hkp-tile a { font-size: .82rem; }
.hkp-muted { color: var(--muted); }
.hkp-small { font-size: .82rem; }
.hkp-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .14rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.hkp-badge--success { background: var(--ok-bg); color: var(--ok); }
.hkp-badge--warning { background: var(--warn-bg); color: var(--warn); }
.hkp-badge--danger { background: var(--bad-bg); color: var(--bad); }
.hkp-badge--muted, .hkp-badge--neutral { background: var(--neutral-bg); color: #4a5561; }
.hkp-bar { display: inline-block; width: 100%; height: 8px; background: var(--neutral-bg); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.hkp-bar > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.hkp-bar--accent > span { background: var(--accent); }
.hkp-bar--ok > span { background: var(--ok); }
.hkp-bar--bad > span { background: var(--bad); }
.hkp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .9rem; padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; min-height: 42px; }
.hkp-btn:hover { background: var(--brand-ink); color: #fff; }
.hkp-btn--ghost { background: transparent; color: var(--brand); }
.hkp-btn--ghost:hover { background: rgba(15,61,62,.06); color: var(--brand-ink); }
.hkp-btn--accent { background: var(--accent); border-color: var(--accent); color: #1c1407; }
.hkp-btn--danger { background: var(--bad); border-color: var(--bad); }
.hkp-btn--sm { padding: .35rem .7rem; min-height: 34px; font-size: .82rem; }
.hkp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.hkp-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hkp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hkp-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hkp-table th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.is-intl .hkp-table th { letter-spacing: 0; font-size: .8rem; }
.hkp-table td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hkp-table tr:last-child td { border-bottom: 0; }
.hkp-table tbody tr:hover { background: #fbfaf7; }
.hkp-num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hkp-empty { padding: 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.hkp-flash { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 500; }
.hkp-flash--ok { background: var(--ok-bg); color: var(--ok); }
.hkp-flash--error { background: var(--bad-bg); color: var(--bad); }
.hkp-list { list-style: none; margin: 0; padding: 0; }
.hkp-list > li { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; }
.hkp-list > li:last-child { border-bottom: 0; }
.hkp-kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; font-size: .88rem; margin: 0; }
.hkp-kv dt { color: var(--muted); }
.hkp-kv dd { margin: 0; }
.hkp-form { display: grid; gap: .9rem; }
.hkp-form .hkp-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hkp-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hkp-field > label, .hkp-label { font-size: .8rem; font-weight: 600; color: var(--brand-ink); }
.hkp-field .hkp-help { font-size: .76rem; color: var(--muted); }
.hkp-input, .hkp-select { width: 100%; }
textarea.hkp-input { min-height: 110px; resize: vertical; }
.hkp-check { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.hkp-tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.hkp-tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hkp-tabs a.is-active { color: var(--brand); border-bottom-color: var(--accent); }
.hkp-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.hkp-steps li { flex: 1; min-width: 120px; background: var(--neutral-bg); border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; }
.hkp-steps li.is-done { background: var(--ok-bg); color: var(--ok); }
.hkp-steps li.is-now { background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.hkp-chain { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .78rem; color: var(--muted); }
.hkp-chain span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; }
.hkp-chain span.is-on { border-color: var(--brand); color: var(--brand); font-weight: 700; }

/* heatmaps: colour plus the number, never colour alone */
.hkp-heat td.c { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 54px; }
.hkp-heat .s-none { background: var(--ok-bg); color: var(--ok); }
.hkp-heat .s-minor { background: #fff6dd; color: #8a6400; }
.hkp-heat .s-moderate { background: #fde2c4; color: #8a4b00; }
.hkp-heat .s-critical { background: var(--bad-bg); color: var(--bad); }
.hkp-heat .s-na { background: #f6f6f4; color: #b5b5b0; }
.hkp-heat .r-ready { background: var(--ok-bg); color: var(--ok); }
.hkp-heat .r-conditional { background: var(--warn-bg); color: var(--warn); }
.hkp-heat .r-not_ready { background: var(--bad-bg); color: var(--bad); }
.hkp-legend { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .76rem; color: var(--muted); margin-top: .6rem; }
.hkp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-inline-end: .3rem; }

/* stacked bar for readiness distribution */
.hkp-stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--neutral-bg); }
.hkp-stack span { display: block; height: 100%; }
.hkp-stack .ready { background: var(--ok); } .hkp-stack .conditional { background: var(--accent); } .hkp-stack .not_ready { background: var(--bad); } .hkp-stack .not_calculated { background: #c9ced4; }

/* lesson reading */
.hkp-lesson { max-width: 78ch; font-size: 1.02rem; line-height: 1.75; }
.hkp-lesson h2, .hkp-lesson h3 { margin-top: 1.4rem; }
.hkp-lesson img, .hkp-lesson video { max-width: 100%; height: auto; border-radius: 12px; }
.hkp-lesson table { border-collapse: collapse; width: 100%; }
.hkp-lesson td, .hkp-lesson th { border: 1px solid var(--line); padding: .4rem .6rem; }
.hkp-callout { border-inline-start: 4px solid var(--accent); background: #fffaf0; padding: .8rem 1rem; border-radius: 10px; margin: 1rem 0; }
.hkp-video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.hkp-video iframe, .hkp-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* assessment */
.hkp-q { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .9rem; background: #fff; }
.hkp-q legend { font-weight: 600; padding: 0 .3rem; }
.hkp-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; min-height: 44px; }
.hkp-opt:hover { background: var(--bg); }
.hkp-opt input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--brand); }
.hkp-opt.is-correct { background: var(--ok-bg); }
.hkp-opt.is-wrong { background: var(--bad-bg); }
.hkp-order li { cursor: grab; }
.hkp-sortable li { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .4rem; background: #fff; }
.hkp-sortable li.dragging { opacity: .5; }
.hkp-handle { cursor: grab; color: var(--muted); user-select: none; }

/* rubric scoring */
.hkp-rubric td { vertical-align: middle; }
.hkp-rate { display: flex; flex-wrap: wrap; gap: .3rem; }
.hkp-rate label { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .65rem; font-size: .8rem; cursor: pointer; min-height: 34px; display: inline-flex; align-items: center; }
.hkp-rate input { position: absolute; opacity: 0; pointer-events: none; }
.hkp-rate input:checked + span { font-weight: 700; }
.hkp-rate label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.hkp-rate input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* assistant */
.hkp-chat { display: flex; flex-direction: column; gap: .8rem; }
.hkp-msg { padding: .9rem 1rem; border-radius: 14px; max-width: 88%; white-space: pre-wrap; }
.hkp-msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.hkp-msg--ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.hkp-msg--warn { background: var(--warn-bg); border-color: #f0dca6; }
.hkp-sources { margin-top: .6rem; font-size: .8rem; }
.hkp-sources a { display: inline-block; margin: .15rem .3rem .15rem 0; }

/* certificate */
.hkp-cert { aspect-ratio: 1.414; background: var(--surface-brand); border: 6px solid var(--brand); outline: 2px solid var(--accent); outline-offset: -18px; border-radius: 6px; padding: 3rem; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.hkp-cert h1 { font-size: 2rem; }

/* matrix quadrant */
.hkp-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1.3; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.hkp-quad > div { padding: .8rem; font-size: .8rem; border: 1px solid var(--line); }
.hkp-quad .is-here { background: var(--ok-bg); font-weight: 700; }
.hkp-quad .hkp-pin { position: absolute; width: 16px; height: 16px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--brand-ink); transform: translate(-50%, 50%); }

/* Grid items must be allowed to shrink below their content (tables scroll inside .hkp-table-wrap
   instead of widening the page). `1fr` alone is minmax(auto, 1fr) and would not shrink. */
.hkp-grid > *, .hkp-main > * { min-width: 0; }
@media (max-width: 1100px) {
  .hkp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hkp-grid--main, .hkp-grid--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hkp-shell { grid-template-columns: minmax(0, 1fr); }
  /* Off-canvas menu: hidden from view AND from keyboard focus / screen readers while closed. */
  .hkp-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 86vw; max-width: 320px; z-index: 50; transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  [dir="rtl"] .hkp-side { transform: translateX(105%); }
  .hkp-side.is-open { transform: none; visibility: visible; transition: transform .2s ease; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .hkp-top > * { flex-shrink: 0; }
  .hkp-top .hkp-search { flex: 1 1 0; min-width: 0; padding: 0 .6rem; }
  .hkp-nav__item { min-height: 44px; }
  .hkp-only-mobile { display: inline-flex; }
  .hkp-hide-mobile, .hkp-context { display: none; }
  .hkp-top { padding: .6rem .75rem; gap: .5rem; }
  .hkp-main { padding: 1rem .75rem; }
  .hkp-grid--2, .hkp-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hkp-tile__value { font-size: 1.5rem; }
  .hkp-msg { max-width: 100%; }
  .hkp-cert { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .hkp-side, .hkp-top, .hkp-foot, .hkp-noprint, .hkp-flash { display: none !important; }
  .hkp-shell { display: block; } body.hkp { background: #fff; } .hkp-main { padding: 0; max-width: none; }
  .hkp-card { box-shadow: none; break-inside: avoid; }
}

/* ---------------------------------------------------------------- languages
   Scripts other than Latin: system fonts that ship with Windows, macOS, Android
   and iOS (no web-font download), no Latin letter-spacing/uppercase tricks. */
.is-intl .hkp-eyebrow, .is-intl .hkp-nav__section, .is-intl .hkp-tile__label, .is-intl .hkp-table th { text-transform: none; }
:lang(ur) body.hkp, body.hkp.is-ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Segoe UI", Tahoma, sans-serif; line-height: 1.9; }
body.hkp.is-hi, body.hkp.is-ne { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Kohinoor Devanagari", sans-serif; }
body.hkp.is-bn { font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", "Kohinoor Bangla", sans-serif; }
body.hkp.is-ml { font-family: "Noto Sans Malayalam", "Nirmala UI", "Kartika", "Malayalam Sangam MN", sans-serif; }
.is-intl h1, .is-intl h2, .is-intl h3 { font-family: inherit; }
.hkp-langmenu { position: relative; }
.hkp-langmenu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
.hkp-langmenu > summary::-webkit-details-marker { display: none; }
.hkp-langmenu > summary .hkp-icon { width: 16px; height: 16px; }
.hkp-langmenu__list { position: absolute; inset-inline-end: 0; top: calc(100% + .35rem); z-index: 40; margin: 0; padding: .35rem; list-style: none; min-width: 190px; max-height: 70vh; overflow-y: auto;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
.hkp-langmenu__list a { display: block; padding: .55rem .7rem; min-height: 44px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.hkp-langmenu__list a:hover, .hkp-langmenu__list a:focus-visible { background: var(--bg); }
.hkp-langmenu__list a[aria-current] { font-weight: 700; color: var(--brand); }
@media (max-width: 860px) { .hkp-langmenu > summary span { display: none; } }