/* The premium QUAMARO shell and its shared page components. */
:root {
  --qplatform-ink: #172b35;
  --qplatform-muted: #52646c;
  --qplatform-accent: #215e61;
  --qplatform-line: #d9e2e1;
  --qplatform-paper: #f7f9f8;
  --qplatform-deep: #0b2d35;
  --qplatform-width: min(1280px, calc(100% - 2rem));
}

body > .qplatform-header,
body > .qplatform-footer {
  font: 16px/1.5 var(--q-font, Inter, system-ui, sans-serif);
}

.qplatform-header *,
.qplatform-footer *,
.qplatform-page main * {
  box-sizing: border-box;
}

body > .qplatform-header.qsite-header-host {
  --q-header-h: 60px;
  border-radius: 0 0 9px 9px;
  color: var(--qplatform-ink);
}

body > .qplatform-header .qsite-header {
  position: relative;
}

body > .qplatform-header .qsite-shell {
  width: var(--qplatform-width) !important;
  justify-content: flex-start !important;
  gap: clamp(8px, 1.5vw, 18px) !important;
}

body > .qplatform-header .qsite-desktop-nav {
  margin-inline: 8px auto !important;
  gap: 7px !important;
}

body > .qplatform-header .qsite-menu__trigger,
body > .qplatform-header .qsite-project {
  padding-inline: 8px !important;
  border-radius: 5px !important;
  font-size: .82rem !important;
}

body > .qplatform-header .qsite-header-actions {
  gap: clamp(6px, 1vw, 12px) !important;
  margin-inline-start: auto !important;
}

body > .qplatform-header .qsite-project {
  min-height: 44px !important;
  color: var(--qplatform-ink) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.qplatform-header .qplatform-nav-link,
.qplatform-header .qplatform-search {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .35rem .55rem;
  color: var(--qplatform-ink);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 5px;
}

.qplatform-header .qplatform-search {
  min-height: 38px;
  padding-inline: .7rem;
  border: 1px solid var(--qplatform-line);
  background: #fff;
}

.qplatform-header .qplatform-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.qplatform-header .qplatform-account {
  position: relative;
}

.qplatform-header .qplatform-account__guest {
  display: flex;
  gap: .25rem;
}

.qplatform-header .qplatform-account [hidden] {
  display: none;
}

.qplatform-header .qplatform-account__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 44px;
  padding: .25rem .55rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--qplatform-ink);
  background: #fff;
  font: 750 .82rem/1.2 var(--q-font, Inter, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.qplatform-header .qplatform-account__register {
  border-color: var(--qplatform-line);
  color: var(--qplatform-accent);
}

.qplatform-header .qplatform-account__panel {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  z-index: 1;
  display: grid;
  width: min(12rem, calc(100vw - 2rem));
  padding: .35rem;
  border: 1px solid var(--qplatform-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--qnav-shadow);
}

.qplatform-header .qplatform-account__panel form {
  margin: 0;
}

.qplatform-header .qplatform-account__panel :is(a, button) {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: .3rem .55rem;
  border: 0;
  border-radius: 5px;
  color: var(--qplatform-ink);
  background: #fff;
  font: 700 .88rem/1.3 var(--q-font, Inter, system-ui, sans-serif);
  text-decoration: none;
  text-align: start;
  cursor: pointer;
}

.qplatform-header :is(.qplatform-account__control, .qplatform-account__panel a, .qplatform-account__panel button):hover,
.qplatform-header .qplatform-account__control[aria-expanded="true"] {
  background: #edf3f2;
}

body > .qplatform-header .qsite-project:hover,
.qplatform-header .qplatform-nav-link:hover,
.qplatform-header .qplatform-search:hover,
.qplatform-header .qplatform-nav-link[aria-current="page"] {
  background: #edf3f2 !important;
}

.qplatform-header .qplatform-nav-link:focus-visible,
.qplatform-header .qplatform-search:focus-visible,
.qplatform-skip:focus-visible,
.qplatform-context a:focus-visible,
.qplatform-entries a:focus-visible,
.qplatform-page main a:focus-visible {
  outline: 3px solid var(--qplatform-accent);
  outline-offset: 3px;
}

.qplatform-header [aria-current="page"],
.qplatform-footer [aria-current="page"] {
  text-decoration: underline !important;
  text-underline-offset: .22em;
}

.qplatform-header .qsite-category-item[data-current-topic],
.qplatform-header .qsite-mobile-subgroup[data-current-topic] > summary {
  color: #174e51;
  background: #e8f3f1;
}

.qplatform-header .qplatform-fallback {
  display: none;
}

body > .qplatform-header:not([data-platform-ready]) .qplatform-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .8rem;
  width: var(--qplatform-width);
  margin-inline: auto;
  padding-block: .2rem .65rem;
}

body > .qplatform-header:not([data-platform-ready]) .qsite-desktop-nav,
body > .qplatform-header:not([data-platform-ready]) .qsite-header-actions {
  display: none !important;
}

.qplatform-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--qplatform-accent);
  font-weight: 700;
}

.qplatform-skip {
  position: fixed;
  inset: 8px auto auto 12px;
  z-index: 1100;
  transform: translateY(calc(-100% - 20px));
  padding: .65rem .9rem;
  border-radius: 5px;
  color: var(--qplatform-ink) !important;
  background: #fff;
}

.qplatform-skip:focus {
  transform: none;
}

.qplatform-header :is(.qsite-dropdown, .qsite-mobile-panel, .qsite-category-panel)[hidden] {
  display: none !important;
}

@media (min-width: 901px) {
  body > .qplatform-header .qh-mobile-project {
    display: none !important;
  }

  body > .qplatform-header .qsite-menu[data-qmenu="categories"] {
    position: static !important;
  }

  body > .qplatform-header .qsite-dropdown--categories {
    top: 100% !important;
    left: clamp(11rem, 17vw, 16rem) !important;
    width: min(21rem, calc(100% - 13rem)) !important;
    max-height: 75dvh !important;
    overflow: auto !important;
    padding: .65rem !important;
  }

  body > .qplatform-header .qsite-dropdown--categories:has([data-active]) {
    width: min(49rem, calc(100% - clamp(12rem, 18vw, 18rem))) !important;
  }

  .qplatform-header .qsite-category-browser {
    display: grid;
    align-items: start;
    gap: .7rem;
  }

  .qplatform-header .qsite-category-browser[data-active] {
    grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.5fr);
  }

  body > .qplatform-header .qsite-category-browser > .qsite-category-panel {
    position: static !important;
    width: auto !important;
    padding: .8rem;
    border: 1px solid var(--qplatform-line);
    border-radius: 8px;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .qplatform-header .qsite-category-panel::before {
    display: none;
  }

  .qplatform-header .qsite-category-panel__top {
    display: grid;
    gap: .4rem;
    margin-bottom: .7rem;
  }

  .qplatform-header .qsite-category-panel__title {
    color: var(--qplatform-ink);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
  }

  body > .qplatform-header .qsite-category-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: .65rem;
  }

  .qplatform-header :is(.qsite-category-panel__quick, .qsite-category-panel__links) {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .45rem;
  }

  .qplatform-header .qsite-category-panel__links {
    flex-direction: column;
  }

  .qplatform-header :is(.qsite-category-panel__quick, .qsite-category-panel__links) a,
  .qplatform-header .qsite-category-panel__footer a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: #204b49;
    text-decoration: none;
  }

  .qplatform-header .qsite-category-panel a:hover {
    text-decoration: underline;
  }

  .qplatform-header .qsite-category-panel__heading {
    font-weight: 800;
  }
}

.qplatform-header .qsite-category-item__label {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
}

.qplatform-header :is(.qsite-category-item__label small, .qsite-category-item__label strong) {
  display: block;
}

.qplatform-header .qsite-category-item__label small {
  color: var(--qplatform-muted);
  font-size: .75rem;
  font-weight: 500;
}

.qplatform-header :is(.qsite-category-item, .qsite-category-all) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: .5rem .65rem;
  border: 0;
  border-radius: 8px;
  color: var(--qplatform-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.qplatform-header button.qsite-category-item {
  cursor: pointer;
}

.qplatform-header :is(button.qsite-category-item, .qsite-category-all):hover,
.qplatform-header button.qsite-category-item[aria-expanded="true"] {
  background: #e8f3f1;
}

.qplatform-header .qsite-soon-badge {
  color: var(--qplatform-muted);
  font-size: .75rem;
}

.qplatform-header .qsite-mobile-subgroup summary,
.qplatform-header .qsite-mobile-level3 summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding-inline: .55rem;
  color: var(--qplatform-ink);
  cursor: pointer;
  list-style: none;
}

.qplatform-header :is(.qsite-mobile-subgroup, .qsite-mobile-level3) summary::-webkit-details-marker {
  display: none;
}

.qplatform-header :is(.qsite-mobile-subgroup, .qsite-mobile-level3) summary svg {
  margin-inline-start: auto;
}

.qplatform-header :is(.qsite-mobile-subgroup, .qsite-mobile-level3)[open] > summary svg {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  html:has(> body.qsite-menu-lock > .qplatform-header) {
    overflow: hidden;
  }

  body > .qplatform-header .qplatform-search {
    display: none;
  }

  body > .qplatform-header .qsite-mobile-toggle {
    width: 44px !important;
    height: 44px !important;
  }

  body > .qplatform-header .qsite-mobile-panel {
    overscroll-behavior: contain;
  }

  body > .qplatform-header .qsite-mobile-links a {
    min-height: 44px;
  }
}

@media (min-width: 901px) and (max-width: 1020px) {
  body.qh-page > .qplatform-header.qsite-header-host {
    width: calc(100% - 2rem) !important;
  }

  body.qh-page > .qplatform-header .qsite-shell {
    gap: 8px !important;
    padding-inline: 10px;
  }

  body.qh-page > .qplatform-header .qsite-brand img {
    width: 140px !important;
  }
}

@media (max-width: 500px) {
  body > .qplatform-header .qsite-header-actions .qh-mobile-project {
    display: none !important;
  }

  body > .qplatform-header .qsite-brand {
    flex: 0 1 auto !important;
    min-width: 0;
  }

  body > .qplatform-header .qsite-brand img {
    max-width: 100%;
  }

  .qplatform-header .qplatform-account__control {
    padding-inline: .35rem;
  }
}

@media (max-width: 360px) {
  body > .qplatform-header .qsite-shell {
    width: calc(100% - 1rem) !important;
    gap: 4px !important;
  }

  body.qh-page > .qplatform-header .qsite-shell {
    width: 100% !important;
    gap: 4px !important;
    padding-inline: 6px;
  }

  body > .qplatform-header .qsite-brand img {
    width: 84px !important;
  }

  body > .qplatform-header .qsite-header-actions,
  .qplatform-header .qplatform-account__guest {
    gap: 4px !important;
  }

  .qplatform-header .qplatform-account__control {
    font-size: .75rem;
    padding-inline: .25rem;
  }
}

body.qh-page > .qplatform-header:not([data-platform-ready]) {
  position: relative !important;
  inset: auto !important;
  margin-inline: auto;
  transform: none;
}

body > .qplatform-footer {
  margin-top: 0;
  padding-block: 2rem 0;
  color: #cfdbde;
  background: #0b2026;
}

.qplatform-footer :is(.qplatform-footer__grid, .qplatform-footer__bottom) {
  width: var(--qplatform-width);
  margin-inline: auto;
}

.qplatform-footer__grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.75rem;
}

.qplatform-footer img {
  display: block;
  width: 164px;
  max-width: 100%;
  height: auto;
}

.qplatform-footer h2 {
  margin: 0 0 .45rem;
  color: #f1f5f6;
  font: 750 .93rem/1.4 var(--q-font, Inter, system-ui, sans-serif);
}

.qplatform-footer p {
  margin: .75rem 0 0;
  color: #cfdbde;
  font-size: .86rem;
}

.qplatform-footer a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  color: #dbe6e8;
  font-size: .85rem;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.qplatform-footer nav a {
  display: flex;
}

.qplatform-footer a:hover,
.qplatform-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.qplatform-footer a:focus-visible {
  outline: 2px solid #b2e2df;
  outline-offset: 2px;
}

body > .qplatform-footer .qplatform-footer__bottom {
  margin-block: 0;
  background: transparent;
  text-align: start;
  padding-block: 1rem;
  border-top: 1px solid #c4d6db45;
  color: #beced1;
  font-size: .8rem;
}

@media (max-width: 900px) {
  .qplatform-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qplatform-footer__brand {
    grid-column: 1 / -1;
  }

  .qplatform-footer a {
    min-height: 44px;
  }
}

.qplatform-page {
  margin: 0;
  color: var(--qplatform-ink);
  background: var(--qplatform-paper);
  font: 16px/1.55 var(--q-font, Inter, system-ui, sans-serif);
}

.qplatform-content {
  width: var(--qplatform-width);
  margin-inline: auto;
  padding-block: 1.5rem 3rem;
}

.qplatform-context {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  align-items: center;
  margin-block: 1rem .7rem;
  font: 650 .875rem/1.45 var(--q-font, Inter, system-ui, sans-serif);
}

.qplatform-context a {
  padding-block: .25rem;
  color: var(--qplatform-accent);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.qplatform-context [aria-current="page"] {
  color: var(--qplatform-muted);
}

.qplatform-project-note {
  padding-block: .75rem;
  color: var(--qplatform-muted);
  font-size: .9rem;
}

.qplatform-page .qds-subpage-hero {
  --qds-subpage-hero-title-width: 18ch;
}

.qplatform-page .qds-subpage-hero__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.qplatform-intro {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.qplatform-intro h1,
.qplatform-page .qds-subpage-hero__title {
  margin: .45rem 0 .8rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.qplatform-intro p,
.qplatform-card p {
  max-width: 65ch;
  color: var(--qplatform-muted);
}

.qplatform-entries {
  width: var(--qplatform-width);
  margin: 1.5rem auto 2.1rem;
  font: 16px/1.5 var(--q-font, Inter, system-ui, sans-serif);
}

.qplatform-entries h2,
.qplatform-section h2 {
  margin: 0 0 .85rem;
  color: var(--qplatform-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

.qplatform-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.qplatform-card,
.qplatform-entries .qplatform-card {
  display: block;
  min-width: 0;
  padding: var(--q-card-pad, 1.15rem);
  border: 1px solid var(--qplatform-line);
  border-radius: var(--q-radius-sm, 12px);
  background: #fff;
  color: var(--qplatform-ink);
  text-decoration: none;
}

a.qplatform-card:hover {
  border-color: var(--qplatform-accent);
  box-shadow: var(--q-shadow, 0 8px 25px #14393612);
}

.qplatform-card > strong,
.qplatform-card h3 {
  display: block;
  margin-block: 0 .25rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.qplatform-card > span {
  color: var(--qplatform-muted);
}

.qplatform-card h3 + p,
.qplatform-card p:last-child {
  margin-block: .35rem 0;
}

.qplatform-card a,
.qplatform-section a:not(.qplatform-card) {
  color: var(--qplatform-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.qplatform-section {
  margin-block: 1.6rem;
  scroll-margin-top: 5.25rem;
}

body.qguide-hub-page .qguide-crosslink {
  color: #e2ebec;
  background: var(--qplatform-deep);
}

body.qguide-hub-page .qguide-crosslink h2,
body.qguide-hub-page .qguide-crosslink a:not(.qguide-button):not(.qguide-action) {
  color: #fff !important;
}

body.qguide-hub-page .qguide-crosslink .qguide-eyebrow {
  color: #ffc1a1 !important;
}

body.qguide-hub-page .qguide-crosslink p:not(.qguide-eyebrow) {
  color: #e2ebec !important;
}

body.qguide-hub-page .qguide-crosslink :is(.qguide-button, .qguide-action) {
  color: #1e3434 !important;
  background: #ffc1a1;
}

body.qguide-hub-page .qguide-crosslink a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media print {
  body > .qplatform-header,
  body > .qplatform-footer,
  .qplatform-skip,
  body[data-view] .qplatform-context {
    display: none !important;
  }
}
