/* Transparent UI vectors; colours follow the existing light/dark surface. */
html .v40-ui-svg {
  display: block;
  width: var(--v40-icon-size, 20px);
  height: var(--v40-icon-size, 20px);
  min-width: 0;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: transparent;
  pointer-events: none;
}
html .v40-ui-svg :is(path, rect, circle) { vector-effect: non-scaling-stroke; }
html :is(.search-icon,.support-icon,.proof-mark,.pin)[data-v40-icon] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
}
html :is(.search-icon,.support-icon,.proof-mark,.pin)[data-v40-icon]::before,
html :is(.search-icon,.support-icon,.proof-mark,.pin)[data-v40-icon]::after {
  display: none !important;
  content: none !important;
}
html .search-icon[data-v40-icon] { --v40-icon-size:22px; width:22px !important; height:22px !important; flex:0 0 22px !important; }
html .support-icon[data-v40-icon] { --v40-icon-size:22px; width:22px; height:22px; }
html .proof-mark[data-v40-icon] { --v40-icon-size:31px; width:31px; height:31px; }
html .pin[data-v40-icon] { --v40-icon-size:18px; width:18px; height:18px; }

/* Keep React-owned bars/text in place; only their old paint is suppressed. */
html .site-header .menu-button[data-v40-icon] {
  --v40-icon-size:22px;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
}
html .site-header .menu-button[data-v40-icon] > :is(i,span) { display:none !important; }
html .v40-menu-close { display:none; }
html .menu-button[aria-expanded="true"] .v40-menu-bars { display:none; }
html .menu-button[aria-expanded="true"] .v40-menu-close { display:inline; }

html [data-v40-icon][data-v40-glyph] {
  font-size:0 !important;
  line-height:0 !important;
  -webkit-text-stroke:0 !important;
}
html :is(.konic-arrow-glyph,.choice__arrow,.enter-arrow,.room-arrow,.link-arrow,.scene-link > span,.konic-site-route > i,.konic-mobile-site-route > i)[data-v40-icon] {
  --v40-icon-size:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
}
html .scene-link > [data-v40-icon] { --v40-icon-size:22px; }
html :is(.konic-site-route,.konic-mobile-site-route) > [data-v40-icon] { --v40-icon-size:16px; }
html :is(.choice__arrow,.enter-arrow)[data-v40-icon] { --v40-icon-size:22px; }
html :is(#closeSearch,.close-search,.close-button,.v31-calendar > header button)[data-v40-icon] {
  --v40-icon-size:22px;
  font-size:0 !important;
  line-height:0 !important;
}
html :is(.close-search,.close-button,.v31-calendar > header button)[data-v40-icon] > .v40-ui-svg { margin:auto; }

/* Footer contact icons are artwork on the footer itself, with no baked-in disc. */
html .konic-source-footer__contact-icon[data-v40-icon] {
  --v40-icon-size:20px;
  color:var(--footer-muted, currentColor);
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
}
html .konic-source-footer__contact-icon[data-v40-icon] > img { display:none !important; }

/* One plus/minus vector survives accordion state changes without editing labels. */
html .accordion summary[data-v40-icon]::after { display:none !important; content:none !important; }
html .accordion summary[data-v40-icon] > .v40-ui-svg { --v40-icon-size:18px; margin-left:auto; color:var(--red,#df181d); }
html .x-faq-question > span[data-v40-icon] {
  --v40-icon-size:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
  transform:none !important;
}
html .accordion details[open] > summary .v40-plus-vertical,
html .x-faq-item.is-open .x-faq-question .v40-plus-vertical,
html .x-faq-question[aria-expanded="true"] .v40-plus-vertical { display:none; }
html .v31-calendar [data-month-step][data-v40-icon] { --v40-icon-size:18px; display:grid; place-items:center; }

/* Brand glyphs stay transparent; their existing circular colour surfaces remain. */
html .social-link[data-v40-icon] { --v40-icon-size:18px; }
html .site-header .header-actions .social-link[data-v40-icon] { font-size:0 !important; line-height:0 !important; }
html .social-link.yt[data-v40-icon] { --v40-icon-size:19px; }
html .social-link[data-v40-icon] > :is(.ig-camera,.yt-play) { display:none !important; }
html .social-link[data-v40-icon]::before,
html .social-link[data-v40-icon]::after { display:none !important; content:none !important; }
html .social-link[data-v40-icon] > .v40-ui-svg {
  fill:currentColor;
  fill-rule:evenodd;
  stroke:none;
}

/* Header-only repair: an invisible legacy f must not create a second grid row. */
html .site-header .header-actions .social-link.fb[data-v40-icon] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
}
/* These controls use a centred 16px vector, without the former font baseline offset. */
html .site-header .header-actions .konic-site-route > i[data-v40-icon],
html .konic-mobile-site-route > .konic-arrow-glyph[data-v40-icon] {
  --v40-icon-size: 16px;
  transform: none;
}
