/* =========================================================
   Podkrižnik Dash — menu demo
   Industrial shell: charcoal chrome, off-white content,
   one accent (warm copper / amber).
   ========================================================= */

:root {
  --bar-h: 60px;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Chrome (dark) */
  --ink-950: #111316;
  --ink-900: #16191c;
  --ink-850: #1c1f23;
  --ink-800: #22262b;
  --ink-700: #2e3339;
  --ink-600: #3d434a;
  --steel-400: #8d959e;
  --steel-300: #aab1b9;
  --steel-200: #cbd0d6;
  --steel-100: #eef0f2;

  /* Content (light) */
  --paper: #f5f4f0;
  --paper-2: #ecebe6;
  --surface: #ffffff;
  --line: #dddbd3;
  --line-strong: #c6c3ba;
  --text: #1b1e21;
  --text-muted: #565c64;

  /* Accent */
  --accent: #d98a3d;          /* on dark surfaces */
  --accent-hi: #f0b072;       /* text on dark when active */
  --accent-ink: #97541a;      /* accent text on light surfaces */
  --accent-soft: rgba(217, 138, 61, 0.13);

  --focus: #a85d18;           /* ≥3:1 on light */
  --focus-dark: #f0a65a;      /* ≥3:1 on dark */

  --radius: 6px;
  --radius-lg: 8px;
  --shadow-pop: 0 12px 32px -8px rgba(10, 12, 14, 0.35), 0 2px 6px rgba(10, 12, 14, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.topbar :focus-visible,
.megamenu :focus-visible,
.signed-out :focus-visible { outline-color: var(--focus-dark); }
.topbar .user-dropdown :focus-visible { outline-color: var(--focus); }

[tabindex="-1"]:focus:not(:focus-visible),
.page-title:focus,
.main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- tags ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--ink-600);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
  white-space: nowrap;
}
.tag-light {
  border-color: var(--line-strong);
  color: var(--text-muted);
  background: var(--surface);
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  background: var(--ink-900);
  color: var(--steel-100);
  border-bottom: 1px solid var(--ink-950);
  box-shadow: inset 0 -1px 0 var(--ink-700);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar-spacer { flex: 1 1 auto; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px;
  margin-left: -6px;
  border-radius: var(--radius);
  flex: none;
}
.brand:hover .brand-word-dash { color: var(--steel-100); }

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  display: block;
}

.brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--steel-100);
}
.brand-word-dash {
  font-weight: 500;
  color: var(--steel-300);
  transition: color 0.15s var(--ease);
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--ink-600);
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-300);
}

/* Menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  margin-left: 8px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-100);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.menu-toggle:hover { background: var(--ink-800); }
.menu-toggle[aria-expanded="true"] {
  background: var(--ink-800);
  border-color: var(--accent);
}
.menu-toggle .icon-open,
.menu-toggle .icon-close { color: var(--accent); }
.menu-toggle .icon-close { display: none; }
.menu-toggle .icon-chevron {
  width: 14px;
  height: 14px;
  color: var(--steel-300);
  transition: transform 0.2s var(--ease);
}
.menu-toggle[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--ink-600);
  border-radius: var(--radius);
  background: var(--ink-950);
  flex: none;
}
.lang-btn {
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--steel-300);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-btn:hover { color: var(--steel-100); background: var(--ink-800); }
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink-950);
}

/* User */
.user {
  position: relative;
  flex: none;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 4px;
  border-radius: var(--radius);
  text-align: left;
  transition: background-color 0.15s var(--ease);
}
.user-toggle:hover,
.user-toggle[aria-expanded="true"] { background: var(--ink-800); }
.user-toggle .icon-chevron {
  width: 14px;
  height: 14px;
  color: var(--steel-300);
  transition: transform 0.2s var(--ease);
}
.user-toggle[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-700);
  border: 1px solid var(--ink-600);
  box-shadow: inset 0 0 0 2px var(--ink-900);
  color: var(--steel-100);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex: none;
}
.avatar-lg { width: 40px; height: 40px; font-size: 14px; }
.avatar-xl { width: 56px; height: 56px; font-size: 18px; }

.user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-name {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}
.user-role {
  font-size: 12px;
  color: var(--steel-300);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 248px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: pop-in 0.14s var(--ease);
}
.user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.user-dropdown-head .avatar {
  background: var(--ink-800);
  border-color: var(--ink-800);
  box-shadow: inset 0 0 0 2px var(--ink-800), 0 0 0 1px var(--line);
}
.user-dropdown-id {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.user-dropdown-id .user-role { color: var(--text-muted); }

.user-menu { padding: 6px; }
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  text-align: left;
  color: var(--text);
}
.user-menu-item .icon { color: var(--text-muted); }
.user-menu-item:hover,
.user-menu-item:focus-visible { background: var(--paper-2); }
.user-menu-item:focus-visible { outline-offset: -2px; }
.user-menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: var(--line);
}

/* =========================================================
   Mega-menu
   ========================================================= */

.scrim {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  z-index: 40;
  background: rgba(17, 19, 22, 0.42);
  animation: fade-in 0.16s var(--ease);
}

.megamenu {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  z-index: 45;
  max-height: calc(100vh - var(--bar-h));
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-850);
  color: var(--steel-100);
  border-bottom: 1px solid var(--ink-950);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
  animation: drop-in 0.18s var(--ease);
  scrollbar-color: var(--ink-600) transparent;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  max-width: 1760px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}

.mm-col {
  min-width: 0;
  padding: 0 8px 16px;
  border-left: 1px solid var(--ink-700);
}
.mm-col:first-child { border-left: 0; }

.mm-col-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 8px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--ink-700);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--steel-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-num {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.mm-col-toggle { display: none; }

.mm-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mm-item {
  display: block;
  padding: 7px 8px 8px 9px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  text-decoration: none;
  transition: background-color 0.12s var(--ease), border-color 0.12s var(--ease);
}
.mm-item:hover {
  background: rgba(255, 255, 255, 0.045);
  border-left-color: var(--ink-600);
}
.mm-item:focus-visible {
  outline-offset: -2px;
  background: rgba(255, 255, 255, 0.06);
}
.mm-item[aria-current="page"] {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}
.mm-item[aria-current="page"] .mm-item-name { color: var(--accent-hi); }

.mm-item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--steel-100);
  hyphens: auto;
  overflow-wrap: break-word;
}
.mm-item-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--steel-300);
  hyphens: auto;
  overflow-wrap: break-word;
}

.megamenu-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--ink-700);
  font-size: 12px;
  color: var(--steel-300);
}

@media (min-width: 1600px) {
  .megamenu-grid { padding: 22px 20px 12px; }
  .mm-col { padding: 0 10px 18px; }
  .mm-col-title { font-size: 13.5px; }
  .mm-item-name { font-size: 13.5px; }
  .mm-item-desc { font-size: 12px; }
}

/* 900–1399: two rows of columns */
@media (max-width: 1399.98px) {
  .megamenu-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 8px;
  }
  .mm-col:nth-child(5n + 1) { border-left: 0; }
  .mm-col:nth-child(n + 6) { padding-top: 14px; border-top: 1px solid var(--ink-700); }
  .mm-col:nth-child(n + 6) .mm-col-title { padding-top: 0; }
  .mm-item-name { font-size: 13.5px; }
  .mm-item-desc { font-size: 12px; }
}

/* =========================================================
   Main content
   ========================================================= */

.main {
  flex: 1 0 auto;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}
.breadcrumb a {
  text-decoration: none;
  border-radius: 2px;
}
.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.page-head {
  padding: 18px 0 4px;
}
.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
}
.page-lead {
  max-width: 64ch;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
}
.page-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--accent-ink);
}
.page-hint .icon { width: 16px; height: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Empty state */
.empty {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  color: var(--accent-ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 5px, rgba(27, 30, 33, 0.045) 5px 6px),
    var(--paper);
}
.empty-icon .icon { width: 24px; height: 24px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--paper);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel-400);
  box-shadow: 0 0 0 2px rgba(141, 149, 158, 0.2);
}
.empty-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.empty-text {
  max-width: 62ch;
  margin-top: 6px;
  color: var(--text-muted);
}
.empty-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

/* Sibling pages */
.siblings { margin-top: 40px; }
.section-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-label-name {
  color: var(--accent-ink);
}
.sibling-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.sibling {
  display: block;
  height: 100%;
  padding: 13px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.sibling:hover {
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--accent);
}
.sibling-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
}
.sibling-name .icon {
  width: 16px;
  height: 16px;
  color: var(--line-strong);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.sibling:hover .sibling-name .icon {
  color: var(--accent-ink);
  transform: translateX(2px);
}
.sibling-desc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Account pages */
.user-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
}
.user-card .avatar {
  background: var(--ink-800);
  border-color: var(--ink-800);
  box-shadow: inset 0 0 0 3px var(--ink-800), 0 0 0 1px var(--line);
}
.user-card-name { font-size: 17px; font-weight: 600; }
.user-card-role { font-size: 13.5px; color: var(--text-muted); }
.setting-label {
  min-width: 110px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.setting-value { font-size: 15px; font-weight: 500; }
.setting-code {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink-950);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-secondary {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 32px 18px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* =========================================================
   Signed-out overlay
   ========================================================= */

.signed-out {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217, 138, 61, 0.07), transparent 60%),
    var(--ink-900);
  color: var(--steel-100);
  animation: fade-in 0.2s var(--ease);
}
.signed-out-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  background: var(--ink-850);
  text-align: center;
}
.brand-mark-lg { width: 44px; height: 44px; margin: 0 auto; }
.signed-out-product {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--steel-300);
}
.signed-out-title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.signed-out-body {
  margin: 10px 0 26px;
  font-size: 14.5px;
  color: var(--steel-300);
}
.is-signed-out body { overflow: hidden; }

.noscript {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 24px;
}

/* =========================================================
   Responsive: < 900px — hamburger + accordion
   ========================================================= */

@media (max-width: 899.98px) {
  .topbar-inner { padding: 0 12px 0 8px; gap: 8px; }

  .menu-toggle {
    order: -1;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    justify-content: center;
    border-color: transparent;
  }
  .menu-toggle[aria-expanded="true"] { border-color: transparent; }
  .menu-toggle .icon { width: 22px; height: 22px; }
  .menu-toggle .icon-open,
  .menu-toggle .icon-close { color: var(--steel-100); }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; color: var(--accent); }
  .menu-toggle .icon-chevron { display: none; }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brand { margin-left: 0; padding: 0 4px; gap: 9px; }
  .demo-tag { display: none; }

  .scrim { display: none; }

  .megamenu {
    height: calc(100vh - var(--bar-h));
    height: calc(100dvh - var(--bar-h));
    max-height: none;
    box-shadow: none;
  }
  .menu-open body { overflow: hidden; }

  .megamenu-grid {
    display: block;
    padding: 4px 0 8px;
  }
  .mm-col,
  .mm-col:nth-child(n + 6) {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--ink-700);
  }
  .mm-col-title { display: none; }

  .mm-col-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    text-align: left;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--steel-100);
  }
  .mm-col-toggle:hover { background: rgba(255, 255, 255, 0.03); }
  .mm-col-toggle:focus-visible { outline-offset: -2px; }
  .mm-col-toggle .mm-num { min-width: 18px; font-size: 11.5px; }
  .mm-col-toggle-label { flex: 1 1 auto; }
  .mm-count {
    min-width: 24px;
    padding: 1px 7px;
    border: 1px solid var(--ink-600);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    color: var(--steel-300);
  }
  .mm-col-toggle .icon-chevron {
    width: 18px;
    height: 18px;
    color: var(--steel-300);
    transition: transform 0.2s var(--ease);
  }
  .mm-col.is-expanded .mm-col-toggle .icon-chevron { transform: rotate(180deg); }
  .mm-col.is-expanded .mm-col-toggle { color: var(--accent-hi); }

  .mm-list {
    display: none;
    padding: 0 12px 12px 42px;
  }
  .mm-col.is-expanded .mm-list { display: flex; }

  .mm-item { padding: 10px 12px; }
  .mm-item-name { font-size: 15px; }
  .mm-item-desc { font-size: 13.5px; margin-top: 3px; }

  .megamenu-foot { padding: 16px; border-top: 0; }

  .page { padding: 20px 20px 48px; }
  .page-title { font-size: 28px; }
  .page-lead { font-size: 16px; }
  .footer-inner { padding: 14px 20px 18px; }
}

@media (max-width: 639.98px) {
  .user-text,
  .user-toggle .icon-chevron { display: none; }
  .user-toggle { padding: 0 4px; }

  .mm-list { padding-left: 12px; }

  .empty {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 20px;
  }
  .empty-icon { width: 48px; height: 48px; }
  .sibling-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 419.98px) {
  .topbar-inner { padding: 0 10px 0 4px; gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 15.5px; }
  .lang-btn { min-width: 30px; padding: 0 6px; }
  .page { padding: 18px 16px 40px; }
  .page-title { font-size: 25px; }
  .user-dropdown { width: min(248px, calc(100vw - 20px)); }
}

/* ---------- motion ---------- */

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .mm-item[aria-current="page"],
  .lang-btn[aria-pressed="true"] { outline: 2px solid CanvasText; }
}
