/* Home page: a drawing sheet. Hairline frame, sheet numbers as section marks, a title block for the facts,
   the real ERP screen with a task check, numbers in tabular figures. Loaded last; /classic/ never renders .hm. */
.hm {
  --hm-ink: #0b1b36; --hm-ink-2: #3b4760; --hm-ink-3: #6b7489; --hm-blue: #1a66e8; --hm-warm: #d9480f;
  --hm-paper: #f6f5f1; --hm-rule: rgba(11, 27, 54, 0.14); --hm-rule-2: rgba(11, 27, 54, 0.32);
  --hm-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  background: #fff; color: var(--hm-ink);
}
.hm :is(dd, .hm-ck-v, .hm-course-meta, .hm-how-n) { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- sheet marks ---------- */
.hm-mark { display: flex; align-items: baseline; gap: 14px; margin: 0; font: 500 12px/1.4 var(--hm-mono); letter-spacing: 0.02em; color: var(--hm-ink-2); text-transform: uppercase; }
.hm-mark-no { white-space: nowrap; flex: none; color: var(--hm-warm); font-weight: 600; letter-spacing: 0.06em; padding-inline-end: 14px; border-inline-end: 1px solid var(--hm-rule-2); }
:lang(ar) .hm-mark, :lang(he) .hm-mark, :lang(fa) .hm-mark, :lang(ur) .hm-mark { text-transform: none; font-family: inherit; font-size: 13px; }

/* ---------- hero ---------- */
.hm-hero { position: relative; background: var(--hm-paper); border-bottom: 1px solid var(--hm-rule); padding-block: clamp(36px, 6vw, 88px) 0; }
/* sheet frame: two hairlines inset from the page edge, with corner ticks */
.hm-hero::before { content: ""; position: absolute; inset: 14px 14px 0; border: 1px solid var(--hm-rule); border-bottom: 0; pointer-events: none; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.hm-copy { min-width: 0; padding-top: 6px; }
.hm-title { margin: 28px 0 0; font: 600 clamp(38px, 5.2vw, 76px)/0.98 var(--f-hero); letter-spacing: -0.032em; color: var(--hm-ink); text-wrap: balance; max-width: 15ch; }
:lang(de) .hm-title, :lang(fr) .hm-title, :lang(es) .hm-title, :lang(ru) .hm-title { max-width: 14ch; font-size: clamp(36px, 4.6vw, 68px); }
:lang(ar) .hm-title { letter-spacing: 0; line-height: 1.2; }
.hm-sub { margin: 26px 0 0; max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; color: var(--hm-ink-2); }
.hm-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hm-btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 22px; background: var(--hm-ink); color: #fff; border-radius: 2px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background 160ms ease; }
.hm-btn span { transition: transform 160ms ease; }
.hm-btn:hover { background: var(--hm-blue); color: #fff; }
.hm-btn:hover span { transform: translateX(3px); }
[dir="rtl"] .hm-btn:hover span { transform: translateX(-3px); }
.hm-link { color: var(--hm-ink); font-weight: 600; font-size: 15.5px; text-decoration: underline; text-decoration-color: var(--hm-rule-2); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.hm-link:hover { color: var(--hm-blue); text-decoration-color: currentColor; }
.hm-note { margin: 16px 0 0; font-size: 13.5px; color: var(--hm-ink-3); max-width: 46ch; }

/* product shot with dimension line and task check */
.hm-shot { margin: 0; min-width: 0; position: relative; }
.hm-dim { position: relative; height: 18px; margin-bottom: 10px; border-inline: 1px solid var(--hm-rule-2); }
.hm-dim::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 1px solid var(--hm-rule-2); }
.hm-dim span { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 10px; background: var(--hm-paper); font: 500 11px/1 var(--hm-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-ink-2); white-space: nowrap; }
[dir="rtl"] .hm-dim span { transform: translate(50%, -50%); }
.hm-frame { position: relative; border: 1px solid var(--hm-rule-2); background: #fff; padding: 6px; }
.hm-frame-in { overflow: hidden; aspect-ratio: 16 / 11; }
.hm-frame-in img { display: block; width: 100%; height: auto; transform: scale(1.38); transform-origin: 34% 30%; filter: saturate(0.9); }
.hm-shot figcaption { margin-top: 10px; max-width: calc(100% - min(330px, 62%) - 8px); font-size: 12.5px; color: var(--hm-ink-3); }

.hm-ck { position: absolute; inset-inline-end: -18px; bottom: -26px; width: min(330px, 62%); background: #fff; color: var(--hm-ink); border: 1px solid var(--hm-ink); box-shadow: 10px 10px 0 rgba(11, 27, 54, 0.08); padding: 16px 18px 14px; font-size: 13.5px; }
[dir="rtl"] .hm-ck { box-shadow: -10px 10px 0 rgba(11, 27, 54, 0.08); }
.hm-ck p { margin: 0; }
.hm-ck-head { display: flex; justify-content: space-between; gap: 12px; font: 500 11px/1.3 var(--hm-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--hm-ink-3); }
.hm-ck-gb { color: var(--hm-warm); }
.hm-ck-title { margin-top: 6px !important; font: 600 16px/1.25 var(--f-hero); letter-spacing: -0.015em; padding-bottom: 10px; border-bottom: 1px solid var(--hm-rule); }
.hm-ck-rows { list-style: none; margin: 0; padding: 0; }
.hm-ck-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--hm-rule); }
.hm-ck-code { font: 500 12.5px/1.2 var(--hm-mono); color: var(--hm-ink-2); }
.hm-ck-v { font: 500 14px/1.2 var(--hm-mono); }
.hm-ck-row.is-sum { border-bottom: 0; border-top: 1px solid var(--hm-ink); margin-top: 2px; padding-top: 8px; }
.hm-ck-row.is-sum .hm-ck-code { font: 600 13px/1.2 var(--f-body, inherit); color: var(--hm-ink); }
.hm-ck-row.is-sum .hm-ck-v { font-weight: 700; }
.hm-ck-ok { width: 16px; height: 16px; border-radius: 50%; background: #16794a; position: relative; display: inline-block; flex: none; }
.hm-ck-ok::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-ck-line { display: flex; align-items: center; gap: 8px; margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--hm-rule); font-weight: 600; font-size: 13px; color: #16794a; }
/* the check runs once: each figure lands, then its tick */
@media (prefers-reduced-motion: no-preference) {
  .hm-ck-row .hm-ck-v, .hm-ck-row .hm-ck-ok, .hm-ck-line { animation: hm-in 380ms cubic-bezier(.2, .7, .2, 1) both; }
  .hm-ck-row .hm-ck-v { animation-delay: calc(500ms + var(--d) * 260ms); }
  .hm-ck-row .hm-ck-ok { animation-name: hm-pop; animation-delay: calc(700ms + var(--d) * 260ms); }
  .hm-ck-line { animation-delay: calc(700ms + var(--d) * 260ms); }
}
@keyframes hm-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes hm-pop { from { opacity: 0; transform: scale(0.4); } }

/* title block: the facts as a drawing's title block */
.hm-facts { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; margin: clamp(56px, 6vw, 88px) 0 0; border-top: 1px solid var(--hm-ink); }
.hm-fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 18px 20px 22px; border-inline-start: 1px solid var(--hm-rule); min-width: 0; }
.hm-fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hm-fact dd { margin: 0; font: 600 clamp(28px, 2.8vw, 40px)/1 var(--f-hero); letter-spacing: -0.03em; white-space: nowrap; color: var(--hm-ink); }
.hm-fact dd small { font-size: 0.5em; letter-spacing: -0.01em; color: var(--hm-ink-3); margin-inline-start: 2px; }
.hm-fact dt { font-size: 13.5px; line-height: 1.35; color: var(--hm-ink-2); }
.hm-fact-k { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--hm-mono); letter-spacing: 0.08em; color: var(--hm-ink-3); }
.hm-fact-x { order: -1; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; font-size: 12.5px; color: var(--hm-ink-3); }
.hm-fact-x span { display: inline-flex; align-items: center; gap: 5px; }
.hm-fact-x img { width: 16px; height: 11px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }

/* ---------- sections ---------- */
.hm-sec { padding-top: clamp(64px, 8vw, 120px); }
.hm-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px clamp(28px, 4.5vw, 72px); align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--hm-ink); margin-bottom: 0; }
.hm-head .hm-mark { grid-column: 1 / -1; }
.hm-head h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 46px)/1.04 var(--f-hero); letter-spacing: -0.035em; color: var(--hm-ink); text-wrap: balance; }
.hm-lead { margin: 0; max-width: 56ch; font-size: 16px; line-height: 1.55; color: var(--hm-ink-2); }
.hm-more { grid-column: 2; justify-self: start; font-weight: 600; font-size: 14.5px; color: var(--hm-blue); text-decoration: none; }
.hm-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.hm-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hm-how li { padding: 26px 28px 8px; border-inline-start: 1px solid var(--hm-rule); }
.hm-how li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hm-how-n { display: block; font: 500 13px/1 var(--hm-mono); color: var(--hm-warm); }
.hm-how h3 { margin: 18px 0 10px; font: 600 21px/1.2 var(--f-hero); letter-spacing: -0.02em; color: var(--hm-ink); }
.hm-how p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--hm-ink-2); max-width: 38ch; }

.hm-courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); border-inline-start: 1px solid var(--hm-rule); }
.hm-course { border-inline-end: 1px solid var(--hm-rule); border-bottom: 1px solid var(--hm-rule); min-width: 0; }
.hm-course a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 22px 22px 20px; color: var(--hm-ink); text-decoration: none; transition: background 160ms ease; }
.hm-course a:hover { background: var(--hm-paper); }
.hm-course-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--hm-ink-2); }
.hm-course-top img { width: 20px; height: 14px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.hm-course-no { font: 500 12px/1 var(--hm-mono); color: var(--hm-ink-3); margin-inline-end: 6px; }
.hm-course-lang { margin-inline-start: auto; font: 500 11px/1 var(--hm-mono); letter-spacing: 0.06em; color: var(--hm-ink-3); border: 1px solid var(--hm-rule); padding: 3px 5px; }
.hm-course-t { font: 600 20px/1.2 var(--f-hero); letter-spacing: -0.02em; }
.hm-course-s { font-size: 14.5px; line-height: 1.5; color: var(--hm-ink-2); flex: 1 1 auto; }
.hm-course-bar { display: flex; gap: 3px; }
.hm-course-bar i { flex: 1 1 0; height: 6px; background: transparent; border: 1px solid var(--hm-rule-2); }
.hm-course-bar i.is-free { background: var(--hm-ink); border-color: var(--hm-ink); }
.hm-course-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--hm-ink-2); }
.hm-course-meta span + span::before { content: "·"; margin-inline: 8px; color: var(--hm-ink-3); }
.hm-course-go { font-weight: 600; font-size: 14.5px; color: var(--hm-blue); padding-top: 12px; border-top: 1px solid var(--hm-rule); }
.hm-course a:hover .hm-course-go { text-decoration: underline; text-underline-offset: 4px; }

.hm-lib:focus { outline: none; }
.hm-lib .vsearch { margin: 28px 0 0; max-width: 720px; border-radius: 2px; border: 1px solid var(--hm-ink); box-shadow: none; }
.hm-lib .vsearch:focus-within { box-shadow: 0 0 0 3px rgba(26, 102, 232, 0.2); border-color: var(--hm-blue); }
.hm-lib .vasks { justify-content: flex-start; margin: 14px 0 0; padding: 0; gap: 8px; }
.hm .vask { border-radius: 2px; background: #fff; border-color: var(--hm-rule-2); color: var(--hm-ink); font-weight: 500; }
.hm .vask:hover { border-color: var(--hm-ink); background: var(--hm-paper); }

/* the library blocks below follow the sheet: square corners, hairlines, no glow */
.hm :is(.vfeat, .vposter, .vpath-card, .vtopic, .vcard .vthumb, .vthumb img) { border-radius: 3px; }
.hm .vfeat { box-shadow: none; border: 1px solid var(--hm-rule-2); }
.hm .vfeat:hover { transform: none; box-shadow: none; border-color: var(--hm-ink); }
.hm .vpath-card { background: var(--hm-paper); border: 1px solid var(--hm-rule); box-shadow: none; }
.hm .vposter:hover { transform: none; }
.hm .vbtn.is-big { background: var(--hm-ink); border-radius: 2px; box-shadow: none; }
.hm .vbtn.is-big:hover { background: var(--hm-blue); filter: none; }
.hm .vfeat-kick { border-radius: 0; background: transparent; padding: 0; font: 500 12px/1 var(--hm-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--hm-warm); }
.hm .vsec h2 { font-weight: 600; letter-spacing: -0.03em; }
.hm .vcta { background: var(--hm-ink); }

@media (max-width: 1100px) {
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-title { max-width: 16ch; }
  .hm-shot { margin-inline-end: 18px; }
  .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-fact:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .hm-fact:nth-child(n + 3) { border-top: 1px solid var(--hm-rule); }
}
@media (max-width: 760px) {
  .hm-hero::before { inset: 8px 8px 0; }
  .hm-head { grid-template-columns: minmax(0, 1fr); }
  .hm-more { grid-column: 1; }
  .hm-how { grid-template-columns: minmax(0, 1fr); }
  .hm-how li, .hm-how li:first-child { border-inline-start: 0; padding: 22px 0 6px; border-bottom: 1px solid var(--hm-rule); }
  .hm-ck { position: relative; inset: auto; width: auto; margin: -36px 12px 0; box-shadow: 6px 6px 0 rgba(11, 27, 54, 0.08); }
  .hm-shot { margin-inline-end: 0; }
  .hm-shot figcaption { max-width: none; }
  .hm-btn { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .hm-title { font-size: clamp(34px, 10vw, 44px); }
  .hm-fact { padding: 14px 12px 16px; }
  .hm-fact dd { font-size: 30px; }
  .hm-course a { padding: 18px 16px; }
  .hm-dim span { font-size: 10px; }
}

/* ---------- header on narrow screens: one Menu button instead of a sideways-scrolling row ---------- */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  body:not(.is-classic) .topbar-row { flex-wrap: nowrap; gap: 8px; min-height: 56px; padding-top: 0; position: static; }
  body:not(.is-classic) .topbar { position: sticky; }
  body:not(.is-classic) .wordmark { min-width: 0; flex: 1 1 auto; }
  body:not(.is-classic) .wordmark span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.is-classic) .topbar-end { margin-inline-start: 0; gap: 6px; flex: none; }
  body:not(.is-classic) .nav-toggle:not([hidden]) { display: inline-flex; order: 3; align-items: center; gap: 8px; flex: none; font-family: inherit; font-size: 13px; line-height: 1; padding: 8px 10px; border: 1px solid var(--rule-2, rgba(11, 27, 54, 0.2)); border-radius: 3px; background: #fff; color: var(--ink, #0b1b36); cursor: pointer; }
  body:not(.is-classic) .nav-toggle::before { content: ""; width: 14px; height: 9px; border-block: 1.5px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }
  body:not(.is-classic) .nav { display: none; position: absolute; inset-inline: 0; top: 100%; z-index: 60; width: auto; margin: 0; padding: 4px 22px 14px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid rgba(11, 27, 54, 0.14); box-shadow: 0 18px 30px rgba(11, 27, 54, 0.1); -webkit-mask-image: none; mask-image: none; overflow: visible; }
  body.nav-open:not(.is-classic) .nav { display: flex; }
  body:not(.is-classic) .nav a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid rgba(11, 27, 54, 0.08); font-size: 16px; background: none; }
  body:not(.is-classic) .nav a[aria-current] { color: var(--accent); background: none; }
  body:not(.is-classic) .nav .erp-long { display: inline; }
  body:not(.is-classic) .topbar-end { order: 2; }
}
@media (max-width: 480px) {
  body:not(.is-classic) .wordmark span { display: grid; white-space: normal; font-size: 11.5px; line-height: 1.12; letter-spacing: -0.01em; }
  body:not(.is-classic) .wordmark span b { display: block; }
}
@media (max-width: 420px) {
  body:not(.is-classic) .wm-logo { width: 26px; height: 26px; }
  body:not(.is-classic) .wordmark { font-size: 14px; gap: 7px; }
  body:not(.is-classic) .acct-link { padding: 6px 8px; }
  body:not(.is-classic) .langsel summary { padding-inline: 6px; gap: 4px; }
  body:not(.is-classic) .langsel summary > span { display: none; }
  body:not(.is-classic) .wordmark span { overflow: visible; }
}

/* ---------- region note: one quiet line ---------- */
.lang-note { background: #f6f5f1; border-bottom: 1px solid rgba(11, 27, 54, 0.1); font-size: 13px; }
.lang-note-row { padding-block: 2px; gap: 4px 12px; }
.lang-note-x { min-width: 32px; min-height: 32px; font-size: 18px; border-radius: 3px; }
@media (max-width: 600px) {
  .lang-note-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- analytics consent: compact card at the bottom, a slim sheet on phones ---------- */
#oca-consent { max-width: 460px; margin-inline: 0; inset-inline: auto 20px; left: auto; right: 20px; bottom: 20px; padding: 14px 16px; border-radius: 4px; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28); }
[dir="rtl"] #oca-consent { right: auto; left: 20px; }
#oca-consent p { margin-bottom: 10px; }
.oca-consent-btns { gap: 8px; }
.oca-consent-btns button { padding: 7px 14px; border-radius: 3px; font-size: 13px; }
.oca-consent-btns button[data-v="granted"] { background: #fff; color: #0b1b36; border-color: #fff; }
@media (max-width: 600px) {
  #oca-consent, [dir="rtl"] #oca-consent { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.4; }
  #oca-consent p { margin-bottom: 8px; }
  .oca-consent-btns { flex-wrap: nowrap; }
  .oca-consent-btns button { padding: 6px 12px; font-size: 12.5px; }
}

/* ---------- before you start, task index, path, series, countries, teams, closer ---------- */
.hm-first { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--hm-rule); font-size: 14px; color: var(--hm-ink-3); max-width: 46ch; }
.hm-first a { color: var(--hm-ink); font-weight: 600; text-decoration: none; }
.hm-first a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.hm-first-t { font: 500 12.5px/1 var(--hm-mono); color: var(--hm-ink-3); margin-inline-start: 4px; }

.hm-sec-tight { padding-top: 40px; }
.hm-sub-h { margin: 0 0 6px; font: 500 12px/1.4 var(--hm-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-ink-3); }
.hm-index { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 40px; }
.hm-index li { break-inside: avoid; }
.hm-index a { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--hm-rule); color: var(--hm-ink); text-decoration: none; font-size: 15.5px; }
.hm-index i { flex: 1 1 auto; border-bottom: 1px dotted var(--hm-rule-2); transform: translateY(-4px); min-width: 12px; }
.hm-index b { font: 500 13.5px/1 var(--hm-mono); color: var(--hm-ink-2); }
.hm-index a:hover { color: var(--hm-blue); }
.hm-index a:hover b { color: var(--hm-blue); }

.hm-path { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); padding-top: 26px; }
.hm-path-pick { display: grid; gap: 18px; align-content: start; }
.hm-path-pick label { display: grid; gap: 6px; font: 500 12px/1.3 var(--hm-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--hm-ink-3); }
.hm-path-pick select { font: 500 16px/1.3 var(--f-body, "Inter", system-ui, sans-serif); text-transform: none; letter-spacing: 0; color: var(--hm-ink); padding: 11px 12px; border: 1px solid var(--hm-ink); border-radius: 2px; background: #fff; width: 100%; }
.hm-path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-path-list a { display: grid; gap: 6px; color: var(--hm-ink); text-decoration: none; }
.hm-path-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hm-paper); border: 1px solid var(--hm-rule); }
.hm-path-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-path-n { font: 500 12px/1 var(--hm-mono); color: var(--hm-warm); margin-top: 6px; }
.hm-path-t { font: 600 16px/1.3 var(--f-hero); letter-spacing: -0.01em; }
.hm-path-m { font-size: 13px; color: var(--hm-ink-3); }
.hm-path-list a:hover .hm-path-t { color: var(--hm-blue); }
.hm-path-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--hm-rule); }
.hm-path-course { display: grid; gap: 2px; text-decoration: none; color: var(--hm-ink); padding-inline-start: 12px; border-inline-start: 3px solid var(--hm-ink); }
.hm-path-course span { font: 500 11.5px/1.3 var(--hm-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--hm-ink-3); }
.hm-path-course b { font-weight: 600; }
.hm-path-course:hover b { color: var(--hm-blue); }
.hm-path-foot .hm-more { margin-inline-start: auto; }

.hm-series { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hm-series-art { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: -22px -22px 4px; border-bottom: 1px solid var(--hm-rule); background: var(--hm-paper); }
.hm-series-art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.hm-series .hm-course-t { font-size: 18px; }
.hm-series .hm-course-s { font-size: 13.5px; font-style: italic; flex: 0 0 auto; }
.hm-series .hm-course-meta { margin-top: auto; }

.hm-cc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); border-inline-start: 1px solid var(--hm-rule); }
.hm-cc li { border-inline-end: 1px solid var(--hm-rule); border-bottom: 1px solid var(--hm-rule); }
.hm-cc a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 14px 16px; color: var(--hm-ink); text-decoration: none; }
.hm-cc a:hover { background: var(--hm-paper); }
.hm-cc img, .hm-cc-any { width: 22px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); grid-row: span 2; }
.hm-cc-any { display: block; background: repeating-linear-gradient(90deg, var(--hm-ink) 0 2px, transparent 2px 5px); box-shadow: none; opacity: 0.35; }
.hm-cc-name { font-weight: 600; font-size: 15px; }
.hm-cc-n { font-size: 13px; color: var(--hm-ink-3); }
.hm-cc-n b { font-weight: 600; color: var(--hm-ink-2); }

.hm-teams { margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--hm-rule); }
.hm-teams-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-block: 20px; font-size: 15px; color: var(--hm-ink-2); }
.hm-teams a { font-weight: 600; color: var(--hm-ink); }

/* closer: the sheet's last title block, ink on paper */
.hm .vcta { margin-top: 0; background: var(--hm-ink); padding-block: clamp(48px, 7vw, 96px); border-top: 0; }
.hm .vcta h2 { font-weight: 600; letter-spacing: -0.035em; font-size: clamp(30px, 4vw, 56px); line-height: 1.02; max-width: 16ch; }
.hm .vcta p { color: rgba(255, 255, 255, 0.72); }
.hm .vcta-grid { position: relative; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.28); align-items: end; }
.hm .vcta-grid::before { content: "A-07"; position: absolute; top: -9px; inset-inline-start: 0; padding-inline-end: 12px; background: var(--hm-ink); font: 600 12px/1 var(--hm-mono); letter-spacing: 0.06em; color: #ff8a4c; }
.hm .vcta .vbtn { border-radius: 2px; box-shadow: none; }
.hm .vbtn.is-light { background: #fff; color: var(--hm-ink); }
.hm .vbtn.is-yt { background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.hm .vbtn.is-yt:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 860px) {
  .hm-path { grid-template-columns: minmax(0, 1fr); }
  .hm-path-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hm-path-list li + li { border-top: 1px solid var(--hm-rule); }
  .hm-path-list a { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 14px; padding: 12px 0; }
  .hm-path-thumb { grid-row: 1 / 4; align-self: start; }
  .hm-path-n { margin-top: 0; }
}
.hm-cc-tag { color: var(--hm-warm); font-weight: 600; }

/* globe: same sheet language — left-aligned head with a mark, hairline panel, square corners */
.hm .home-world { background: #fff; padding-top: clamp(64px, 8vw, 120px); padding-bottom: 0; }
.hm .home-world .sec-head { position: relative; justify-items: start; text-align: start; max-width: none; margin: 0 0 28px; padding: 30px 0 22px; border-bottom: 1px solid var(--hm-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px clamp(28px, 4.5vw, 72px); align-items: end; }
.hm .home-world .sec-head::before { content: "A-06"; position: absolute; top: 0; inset-inline-start: 0; font: 600 12px/1.4 var(--hm-mono); letter-spacing: 0.06em; color: var(--hm-warm); }
.hm .home-world .sec-head h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 46px)/1.04 var(--f-hero); letter-spacing: -0.035em; color: var(--hm-ink); }
.hm .home-world .sec-head p { margin: 0; font-size: 16px; color: var(--hm-ink-2); }
.hm .country-panel { background: var(--hm-paper); border: 1px solid var(--hm-rule); border-radius: 2px; }
.hm .cp-stats div { border-radius: 0; background: #fff; border: 1px solid var(--hm-rule); }
.hm .country-panel .btn { border-radius: 2px; background: var(--hm-ink); box-shadow: none; }
.hm .country-panel .chip, .hm .hw-cc { border-radius: 2px; }
@media (max-width: 760px) { .hm .home-world .sec-head { grid-template-columns: minmax(0, 1fr); } }
.hm .cp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-fact dd, .hm-ck-v { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .hm-fact dd { text-align: right; }
