/* Shared storefront navigation */
html:has(.store-header) {
  --store-header-height: 77px;
  scroll-padding-top: calc(var(--store-header-height) + 12px);
}
.store-header {
  --store-text: #20242a;
  --store-blue: #0065c7;
  --store-secondary: #535c68;
  --store-line: #e3e8ee;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--store-line);
  color: var(--store-text);
}
.storebar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(max-content, .56fr) auto minmax(max-content, 1.72fr) minmax(184px, .92fr);
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  width: min(1180px, calc(100% - 64px));
  min-height: calc(var(--store-header-height) - 1px);
  margin-inline: auto;
}
.store-header .brand { --brand-size: 48px; gap: 9px; justify-self: start; }
.store-header .brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: var(--brand-size);
  height: var(--brand-size);
  overflow: hidden;
  border-radius: 50%;
}
.store-header .brand-mark img { display: block; width: 100%; height: 100%; }
/* Crop the lettering embedded in the current artwork; future uploads use the full frame. */
.store-header .brand-mark img[src*="/1760862406848953."] {
  position: absolute;
  left: -8%;
  top: -5%;
  width: 116%;
  height: 116%;
  max-width: none;
}
/* The two masks follow the pixel lenses on the cropped Software Cat mark. */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark:has(> img[src*="/1760862406848953."]) {
    --lens-layer: "";
  }
  .brand-mark::before, .brand-mark::after {
    content: var(--lens-layer, none);
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 22%, #abdfff70 39%, #f2fcffed 48%, #a2d9ff8c 55%, transparent 65%) -65% 0 / 42% 100% no-repeat;
    animation: brand-lens-idle 6.8s linear .6s infinite;
  }
  .brand-mark::before {
    clip-path: polygon(6.9% 41%, 42.8% 41%, 42.8% 49.7%, 39.3% 49.7%, 39.3% 52.6%, 36.2% 52.6%, 36.2% 55.9%, 16.8% 55.9%, 16.8% 52.6%, 13.6% 52.6%, 13.6% 49.6%, 9.9% 49.6%, 9.9% 46.1%, 6.9% 46.1%);
  }
  .brand-mark::after {
    clip-path: polygon(52.7% 41%, 92.4% 41%, 92.4% 46.1%, 89% 46.1%, 89% 49.6%, 85.5% 49.6%, 85.5% 52.6%, 82.3% 52.6%, 82.3% 55.9%, 59.2% 55.9%, 59.2% 52.8%, 56% 52.8%, 56% 49.9%, 52.7% 49.9%);
  }
  .brand:focus-visible .brand-mark::before, .brand:focus-visible .brand-mark::after {
    animation: brand-lens-greeting .75s ease-out both;
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark::before, .brand:hover .brand-mark::after {
    animation: brand-lens-greeting .75s ease-out both;
  }
}
@keyframes brand-lens-idle {
  0% { background-position-x: -65%; }
  14%, 100% { background-position-x: 165%; }
}
@keyframes brand-lens-greeting {
  from { background-position-x: -65%; }
  to { background-position-x: 165%; }
}
.store-header .brand-name {
  display: grid;
  gap: 2px;
  font: 650 22px/1.08 var(--font-ui);
  letter-spacing: .015em;
  color: var(--ink);
  white-space: nowrap;
}
.store-header .brand small {
  display: block;
  border: 0;
  padding: 0;
  font: 450 12px/1.25 var(--font-ui);
  letter-spacing: .16em;
  color: var(--store-secondary);
}
.store-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-header #navigation { display: flex; min-width: 0; padding: 0; }
.store-more-links { display: flex; align-items: center; gap: clamp(13px, 1.55vw, 25px); }
.store-header #navigation a {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-secondary);
  font-size: 14px;
  white-space: nowrap;
}
.store-header #navigation a::after { content: none; }
.store-header #navigation a[aria-current] { color: var(--store-text); font-weight: 650; }
.store-header #navigation a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 1px;
  width: 14px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: var(--store-blue);
  opacity: 1;
  transform: none;
}
.store-header #navigation a:is(:hover, :focus-visible) { color: var(--store-blue); }
.store-header #navigation [data-language-switch] { font-size: 12px; }
.store-header .menu-toggle { display: none; }
.menu-toggle .menu-cross,
.menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
.menu-toggle[aria-expanded="true"] .menu-cross { display: block; }
.store-header :is(summary, button, a):focus-visible { outline: 2px solid var(--store-blue); outline-offset: 2px; }

.store-header .store-search {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  gap: 7px;
  padding: 3px 4px 3px 13px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #f4f6f9;
}
.store-header .store-search:focus-within { border-color: #81ade4; background: white; box-shadow: 0 0 0 3px #007aff0d; }
.store-search input { flex: 1; padding: 0; }
.store-search input::placeholder { color: #657181; }
.store-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.store-header #search-reset { color: #526075; background: #e5e9ed; }
.store-search-submit {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--store-secondary);
}
.store-search-submit:is(:hover, :focus-visible) { background: #e5ecf4; color: var(--store-blue); }
.store-search:has(input[type="search"]:not(:placeholder-shown)) .store-search-submit { background: #e7f0fc; color: var(--store-blue); }

.catalog-categories { position: relative; }
.catalog-category-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  background: transparent;
  color: var(--store-text);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
}
.catalog-category-toggle::-webkit-details-marker { display: none; }
.catalog-category-toggle [data-category-caption] { min-inline-size: 4em; text-align: start; }
.store-header .catalog-category-toggle:focus-visible { outline-color: currentColor; }
.catalog-categories[open] .catalog-category-toggle { background: #e0edfb; color: var(--store-blue); }
.category-chevron {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.catalog-categories[open] .category-chevron { transform: translateY(1px) rotate(225deg); }

.catalog-category-panel {
  position: absolute;
  inset: calc(100% + 12px) auto auto 0;
  z-index: 2;
  width: min(370px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px #2237541a;
}
.catalog-category-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
}
.catalog-category-panel a:hover { background: #f2f6fb; color: var(--store-blue); }
.catalog-category-panel .catalog-category-all { justify-content: space-between; font-size: 15px; font-weight: 600; }
.catalog-category-all span { color: inherit; }
.catalog-category-panel a[aria-current="true"] { color: var(--store-blue); background: #edf5ff; }
.catalog-category-groups a[aria-current="true"]::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-inline-start: 5px;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}
.catalog-category-groups { display: grid; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--store-line); }
.catalog-category-groups > div { display: grid; align-items: center; grid-template-columns: 48px repeat(3, minmax(0, 1fr)); gap: 3px; }
.catalog-category-groups p { margin: 0; padding-inline-start: 4px; font-size: 12px; color: var(--store-secondary); }
.catalog-category-groups a { justify-content: center; padding-inline: 3px; white-space: nowrap; }
.catalog-category-groups .category-android { grid-column: span 2; justify-self: start; padding-inline: 8px; gap: 5px; }
.category-android small { color: var(--store-secondary); font-size: 11px; }

@media (min-width: 761px) {
  .rjm-tutorial-page .rjm-tutorial-sidebar { top: var(--store-header-height); max-height: calc(100dvh - var(--store-header-height)); }
}
@media (min-width: 901px) {
  .store-more-links { width: 100%; }
  .store-header #navigation .store-contact { margin-inline-start: auto; font-size: 13px; }
  .catalog-category-toggle { padding-inline: 6px; }
}
@media (min-width: 1101px) {
  .rjm-tutorial-page .rjm-tutorial-toc { top: calc(var(--store-header-height) + 20px); max-height: calc(100dvh - var(--store-header-height) - 40px); }
}

@media (min-width: 901px) and (max-width: 1130px) {
  .storebar { width: calc(100% - 48px); grid-template-columns: auto auto 1fr minmax(194px, 23vw); gap: 14px; }
  .store-more-links { gap: 13px; }
  .store-header #navigation a { font-size: 13px; }
}
@media (max-width: 900px) {
  html:has(.store-header) { --store-header-height: 67px; }
  .storebar { width: calc(100% - 48px); grid-template-columns: 1fr auto auto minmax(210px, 35%); gap: 14px; }
  .store-header #navigation { position: static; width: auto; flex-basis: auto; }
  .js-enabled .store-header #navigation { display: flex; }
  .js-enabled .store-header .menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: var(--store-text);
    background: transparent;
  }
  .store-header .menu-toggle .store-icon { width: 20px; height: 20px; }
  .js-enabled .store-header .menu-toggle:is(:hover, [aria-expanded="true"]) { background: #edf2f7; }
  .js-enabled .store-more-links { display: none; }
  .js-enabled .store-more-links.open {
    position: absolute;
    inset: calc(100% + 1px) 0 auto auto;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    width: min(300px, 100%);
    padding: 8px;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 32px #2237541a;
  }
  .store-header #navigation .store-more-links.open a { justify-content: center; min-height: 44px; border-radius: 8px; }
  .store-header #navigation .store-more-links.open a:is(:hover, [aria-current]) { color: var(--store-blue); background: #edf4fd; }
  .store-header #navigation .store-more-links.open a::after { content: none; }
  html:not(.js-enabled) .storebar { grid-template-columns: 1fr auto; padding-block: 8px; }
  html:not(.js-enabled) .storebar :is(#navigation, .store-search) { grid-column: 1 / -1; }
  html:not(.js-enabled) .store-more-links { flex-wrap: wrap; gap: 2px 14px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .store-header #navigation { position: relative; }
  .js-enabled .store-more-links.open { inset: calc(100% + 12px) 0 auto auto; width: 260px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .js-enabled .storebar { grid-template-columns: minmax(max-content, 1fr) auto auto minmax(178px, 27%); gap: 12px; }
  .js-enabled .store-header #navigation { gap: 14px; }
  html[lang="en"] .js-enabled .store-header #navigation { gap: 8px; }
  html[lang="en"] .store-header .catalog-category-toggle .store-icon { display: none; }
}
@media (max-width: 600px) {
  html:has(.store-header) { --store-header-height: 111px; }
  .storebar {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0 8px;
    padding-block: 6px 10px;
    align-content: space-between;
  }
  .store-header .brand { --brand-size: 42px; gap: 8px; margin: 0; }
  .store-header .brand-name { font-size: 19px; }
  .store-header .brand small { font-size: 11px; letter-spacing: .13em; }
  .catalog-categories { position: static; }
  .catalog-category-toggle { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .catalog-category-toggle .store-icon { display: none; }
  .catalog-category-panel, .js-enabled .store-more-links.open { inset: calc(100% + 1px) 0 auto; width: auto; }
  .store-header .store-search { grid-column: 1 / -1; min-height: 40px; }
  .store-header .store-search input { font-size: 16px; }
}
@media (max-width: 360px) {
  .catalog-category-groups > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-category-groups p { grid-column: 1 / -1; padding: 4px 7px 0; }
}

