/* Shared geometry across every public page. */
.simy-header {
  all: initial; display: block; position: sticky; top: 0; z-index: 1000;
  box-sizing: border-box; width: 100%; background: #f8f6ef; color: #17252a;
  border-bottom: 1px solid #cdd0ca; font: 500 15px/1.4 system-ui, sans-serif;
}
.simy-header *, .simy-header *::before, .simy-header *::after { box-sizing: border-box; }
.simy-header .sh-frame { display: flex; align-items: center; gap: 36px; max-width: 1440px; min-height: 76px; margin: 0 auto; padding: 12px 32px; }
.simy-header a, .simy-header summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; margin: 0; color: inherit; background: transparent; border: 0; border-radius: 0; font: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; }
.simy-header .sh-brand { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.simy-header .sh-navigation, .simy-header .sh-account { display: flex; align-items: center; gap: 28px; }
.simy-header .sh-account { margin-left: auto; gap: 20px; }
.simy-header .sh-dropdown { position: relative; margin: 0; padding: 0; border: 0; background: transparent; }
.simy-header summary { list-style: none; }
.simy-header summary::-webkit-details-marker { display: none; }
.simy-header summary::after { content: none; }
.simy-header .sh-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 8px; margin: 0; background: #fffef9; color: #17252a; border: 1px solid #cdd0ca; border-radius: 8px; box-shadow: 0 12px 30px #17252a20; max-height: min(420px, 65dvh); overflow-y: auto; }
.simy-header details:not([open]) > .sh-panel { display: none; }
.simy-header .sh-panel a { padding: 10px 12px; }
.simy-header .sh-language .sh-panel { right: 0; left: auto; min-width: 160px; }
.simy-header a:hover, .simy-header summary:hover { color: #00674f; }
.simy-header .sh-panel a:hover, .simy-header .sh-panel a[aria-current] { background: #edf3ed; }
.simy-header .sh-signup { padding: 10px 18px; border-radius: 6px; background: #17252a; color: #fff; }
.simy-header .sh-signup:hover { background: #00674f; color: #fff; }
.simy-header :focus-visible { outline: 2px solid #00674f; outline-offset: 4px; }
@media (max-width: 960px) {
  .simy-header .sh-frame { flex-wrap: wrap; gap: 0 16px; padding: 8px 20px; }
  .simy-header .sh-navigation { order: 3; flex: 0 0 100%; justify-content: space-between; gap: 12px; border-top: 1px solid #cdd0ca; margin-top: 8px; padding-top: 4px; }
  .simy-header .sh-account { gap: 16px; }
  .simy-header .sh-navigation .sh-dropdown:nth-child(3) .sh-panel { left: auto; right: 0; }
}
@media (max-width: 380px) {
  .simy-header .sh-frame { padding-inline: 12px; }
  .simy-header .sh-account { gap: 10px; }
  .simy-header .sh-navigation { gap: 8px; font-size: 13px; }
  .simy-header .sh-signup { padding-inline: 12px; }
}

/* Store artwork keeps its native aspect ratio and built-in clear space. */
.simy-header .sh-frame { column-gap: 24px; }
.simy-header .sh-stores { display: flex; align-items: center; gap: 0; flex: none; }
.simy-header .sh-store { display: flex; align-items: center; flex: none; padding: 0; min-height: 60px; }
.simy-header .sh-store img { display: block; max-width: none; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
.simy-header .sh-store:not(.sh-google-play) { padding-inline: 10px; }
@media (min-width: 961px) and (max-width: 1250px) {
  .simy-header .sh-frame { flex-wrap: wrap; row-gap: 0; }
  .simy-header .sh-stores { flex-basis: 100%; justify-content: flex-end; }
}
@media (max-width: 960px) {
  .simy-header .sh-stores { order: 4; flex-basis: 100%; justify-content: center; }
}

/* A single scroll offset follows the rendered sticky header on every page. */
html:root { scroll-padding-top: var(--simy-header-offset, 202px); }
/* Long filenames in guide examples should wrap inside their grid track. */
.mock-head > div { min-width: 0; }
.mock-desc { overflow-wrap: anywhere; }

.simy-header .sh-stores { padding-bottom: 16px; }
.simy-header .sh-google-play { position: relative; }
.simy-header .sh-google-play small { position: absolute; top: 100%; left: 0; width: 100%; text-align: center; font-size: 11px; line-height: 16px; font-weight: 500; }
