.pandu-page { overflow-wrap: anywhere; }

.pandu-hero {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.5vw, 36px);
  min-height: 176px;
  padding: 12px clamp(16px, 3.3vw, 36px);
}
.pandu-hero .hero-copy { padding: 6px 0; }
.pandu-hero h1 { font-size: clamp(31px, 3.7vw, 41px); text-wrap: balance; }
.pandu-hero p { max-width: 68ch; }
.pandu-heading-logo {
  display: block;
  width: clamp(104px, 13vw, 148px);
  height: auto;
}
.language-toolbar {
  align-self: start;
  justify-self: end;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 74px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #bdb6c9;
  background: transparent;
  color: #fff;
  font: 700 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.language-switch:hover { background: #534d63; }
.language-switch:focus-visible { outline-color: #e5d9f7; }
.language-flag { display: block; width: 24px; height: 16px; overflow: hidden; }
.language-flag svg { display: block; width: 100%; height: 100%; }
.language-switch[hidden],
.language-flag[hidden],
.update-status .version-message[hidden],
.update-status time[hidden],
[data-pandu-count-format][hidden] { display: none; }

.status-support-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 10px;
  margin-block: 10px 4px;
}
.update-status, .project-support {
  min-width: 0;
  padding: 12px 16px;
  border-top: 4px solid var(--red);
  background: var(--panel);
}
.update-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.update-status > div:first-child { flex: 0 0 clamp(138px, 16vw, 195px); }
.update-status-label {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.update-status time {
  color: var(--red);
  font-size: clamp(28px, 4vw, 38px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.update-status time,
.update-status .version-message {
  display: block;
  font-weight: 700;
}
.update-status .version-message {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.2;
}
.update-status-note {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
#pandu-statistics-message:not([hidden]) { display: block; margin-top: 4px; }
.project-support {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top-color: #766e88;
  background: var(--pale);
  text-decoration: none;
}
.project-support:hover { color: var(--ink); background: #e9e5ee; }
.project-support:hover .project-support-title { text-decoration: underline; }
.project-support-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 5px;
  border-radius: 50%;
  background: #e6e0ed;
  color: var(--slate);
}
.project-support-title { display: block; font-size: 17px; line-height: 1.25; }
.project-support-description,
.project-support-service { display: block; margin-top: 4px; color: var(--muted); }
.project-support-service { font-size: 12px; }

.notice {
  margin-block: 4px 10px;
  padding: 10px 14px;
  border-left: 4px solid #9e7526;
  background: #fff8e9;
  color: #51442e;
  font-size: 13px;
}
.notice-title { display: block; margin-bottom: 5px; font-size: 14px; }
.notice p + p { margin-top: 4px; }
.notice-sources summary { min-height: 40px; padding-block: 8px; font-weight: 700; cursor: pointer; }
.notice-sources[open] { padding-bottom: 4px; }
.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding-block: 6px;
  background: #fff;
}
.quick-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid #a79fae;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.quick-nav a:hover { border-color: var(--slate); background: #e9e5ee; }
.section {
  min-width: 0;
  margin-top: 10px;
  padding: 16px 18px;
  border-top: 4px solid #766e88;
  background: var(--panel);
  scroll-margin-top: 20px;
}
.section h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 24px);
  letter-spacing: -.025em;
}
.section h3, .section h4 { margin: 12px 0 6px; }
.section h3 { font-size: 18px; }
.section h4 { font-size: 16px; }
.description p { margin-bottom: 8px; }
.description ol, .description ul { margin: 6px 0 8px; padding-left: 20px; }
.description li + li { margin-top: 3px; }
.description li::marker { color: var(--red); font-weight: 700; }
.card { min-width: 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.device-guide, .installation-guide { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
:is(.device-guide, .installation-guide) summary {
  min-height: 44px;
  padding-block: 9px;
  font-weight: 700;
  cursor: pointer;
}
:is(.device-guide, .installation-guide) summary::marker { color: var(--red); }
:is(.device-guide, .installation-guide) summary:hover { color: var(--red); }
.guide-body { padding-bottom: 6px; }
.description .guide-reference { margin-top: 12px; color: var(--muted); font-size: 13px; }
.device-model-list { margin-block: 8px; }
.device-models {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}
.legacy-anchor { display: block; scroll-margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 8px; }
.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--pale);
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.media-frame, .product-image, .device-banner {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.media-frame, .product-image, .device-banner { margin: 10px auto 0; max-width: 460px; }
.media-frame { aspect-ratio: 16 / 9; background: #23202c; }
.media-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.section-heading h2 { margin: 0; }
.download-row { display: flex; flex-wrap: wrap; gap: 6px; }
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid transparent;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.download-link::before { content: "↓"; font-size: 17px; line-height: 1; }
.download-link:hover { background: var(--red-hover); color: #fff; }
.platform-grid { display: grid; gap: 9px; margin-bottom: 10px; }
.platform-block { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); background: #fff; }
.platform-block h3 { margin-top: 0; }
.platform-block .installation-guide { margin-top: 7px; }
.inline-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #766e88;
  background: var(--pale);
  color: var(--muted);
  font-size: 14px;
}
.device-guide + .inline-note { margin-top: 8px; }
.mono-frame {
  display: block;
  width: 100%;
  height: clamp(240px, 33vh, 290px);
  border: 1px solid var(--line);
  background: #fff;
}
.data-sources { margin-top: 9px; color: var(--muted); font-size: 13px; }

@media (min-width: 1051px) {
  .quick-nav { position: sticky; top: 0; z-index: 1; }
  .section, .legacy-anchor, .device-guide { scroll-margin-top: 138px; }
}
@media (min-width: 800px) {
  .section--with-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
    align-items: start;
    column-gap: 16px;
  }
  .section--with-media > :is(h2, .section-heading, .platform-grid) { grid-column: 1 / -1; }
  .section--with-media > :is(.media-frame, .product-image, .device-banner) { margin: 0; }
}
@media (min-width: 670px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .quick-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .quick-nav a { grid-column: span 2; font-size: 13px; }
  .quick-nav a:nth-last-child(-n + 4) { grid-column: span 3; }
}
@media (max-width: 365px) {
  .quick-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-nav a, .quick-nav a:nth-last-child(-n + 4) { grid-column: auto; }
}
@media (max-width: 710px) {
  .pandu-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 10px 14px 14px;
  }
  .pandu-hero .hero-copy { grid-row: 2; padding: 0; }
  .pandu-hero h1 { font-size: clamp(23px, 6.1vw, 36px); }
  .pandu-heading-logo { grid-row: 2; width: clamp(72px, 23vw, 116px); }
  .language-toolbar { grid-column: 1 / -1; grid-row: 1; }
  .status-support-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .update-status > div:first-child { flex-basis: max(108px, 39%); }
  .update-status-note { padding-left: 10px; }
  .section { padding: 12px 13px; }
  .section-heading > .download-row, .download-link { width: 100%; }
}

