:root {
  --webmap-font-min: 15px;
  --webmap-font-body: 16px;
  --webmap-font-max: 36px;
}

/* Keep the brand as one horizontal asset. OneNav may otherwise render the
 * site title or a broken-image alt label beside the configured logo. */
.logo-expanded,
.navbar-brand,
.site-logo {
  display: inline-flex !important;
  align-items: center;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap;
}

.logo-expanded .site-title,
.logo-expanded .site-name,
.navbar-brand .site-title,
.navbar-brand .site-name,
.site-logo .site-title,
.site-logo .site-name {
  display: none !important;
}

.logo-expanded img,
.navbar-brand img,
.site-logo img {
  display: block !important;
  width: var(--webmap-logo-width, 220px) !important;
  max-width: var(--webmap-logo-width, 220px) !important;
  max-height: 56px;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .logo-expanded img,
  .navbar-brand img,
  .site-logo img {
    width: var(--webmap-logo-mobile-width, 164px) !important;
    max-width: var(--webmap-logo-mobile-width, 164px) !important;
    max-height: 44px;
  }
}

html,
body {
  font-size: var(--webmap-font-body);
}

body,
button,
input,
select,
textarea {
  font-size: var(--webmap-font-body);
}

small,
.small,
.text-xs,
.text-sm,
.meta,
.post-meta,
.site-meta,
.badge {
  font-size: var(--webmap-font-min) !important;
}

h1,
.h1,
.display-1,
.display-2,
.display-3,
.display-4 {
  font-size: clamp(30px, 3.2vw, var(--webmap-font-max)) !important;
}

h2,
.h2 {
  font-size: clamp(26px, 2.6vw, 32px) !important;
}

h3,
.h3 {
  font-size: clamp(22px, 2.1vw, 28px) !important;
}

.navbar-brand img,
.logo img,
.site-logo img {
  width: var(--webmap-logo-width, 168px);
  max-width: var(--webmap-logo-width, 168px);
  height: auto;
}

@media (max-width: 767.98px) {
  .navbar-brand img,
  .logo img,
  .site-logo img {
    width: var(--webmap-logo-mobile-width, 132px);
    max-width: var(--webmap-logo-mobile-width, 132px);
  }
}

/* WebMap: OneNav official demo density */
#search .big-title .h1 {
  font-size: 28px !important;
  line-height: 1.25;
}

.posts-item.sites-item .item-title,
.posts-item.sites-item .item-title b {
  font-size: 14px !important;
  line-height: 21px !important;
}

.posts-item.sites-item .text-xs {
  font-size: 12px !important;
  line-height: 18px !important;
}

@media (min-width: 768px) {
  body.aside-show #layout_aside,
  body.aside-show #layout_aside .aside-card {
    width: 170px;
  }

  body.aside-show #layout_aside .aside-ul,
  body.aside-show #layout_aside .aside-bottom,
  body.aside-show #layout_aside .aside-btn {
    width: 150px;
  }

  body.aside-show #layout_aside .aside-btn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.aside-show #layout_aside .aside-btn > span {
    display: inline-block;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
  }

  body.aside-show .ioui-main {
    width: calc(100% - 205px);
    margin-left: 185px;
  }
}
@media (min-width: 768px) {
  body.aside-show .ioui-main {
    margin-left: 185px !important;
  }
}

.webmap-site-quality {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
}

.webmap-site-quality h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 26px) !important;
}

.webmap-site-quality__intro {
  margin: 0 0 16px;
  color: inherit;
  opacity: 0.78;
}

.webmap-site-quality__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.webmap-site-quality__item {
  min-width: 0;
}

.webmap-site-quality__item dt {
  margin-bottom: 2px;
  font-weight: 600;
}

.webmap-site-quality__item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .webmap-site-quality {
    padding: 16px;
  }

  .webmap-site-quality__list {
    grid-template-columns: 1fr;
  }
}

.webmap-report__notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
}

.webmap-report__notice--success {
  background: rgba(40, 167, 69, 0.14);
}

.webmap-report__notice--error {
  background: rgba(220, 53, 69, 0.14);
}

.webmap-report__toggle,
.webmap-report__submit {
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: #2b6cb0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.webmap-report__toggle:focus-visible,
.webmap-report__submit:focus-visible,
.webmap-report select:focus-visible,
.webmap-report textarea:focus-visible {
  outline: 3px solid rgba(43, 108, 176, 0.36);
  outline-offset: 2px;
}

.webmap-report {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 127, 127, 0.24);
}

.webmap-report__field + .webmap-report__field {
  margin-top: 14px;
}

.webmap-report label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.webmap-report select,
.webmap-report textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(127, 127, 127, 0.42);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 16px;
}

.webmap-report textarea {
  min-height: 112px;
  resize: vertical;
}

.webmap-report small {
  display: block;
  margin-top: 6px;
}

.webmap-report__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
:root {
  --webmap-font-min: 15px;
  --webmap-font-body: 16px;
  --webmap-font-max: 36px;
}

html,
body {
  font-size: var(--webmap-font-body);
}

body,
button,
input,
select,
textarea {
  font-size: var(--webmap-font-body);
}

small,
.small,
.text-xs,
.text-sm,
.meta,
.post-meta,
.site-meta,
.badge {
  font-size: var(--webmap-font-min) !important;
}

h1,
.h1,
.display-1,
.display-2,
.display-3,
.display-4 {
  font-size: clamp(30px, 3.2vw, var(--webmap-font-max)) !important;
}

h2,
.h2 {
  font-size: clamp(26px, 2.6vw, 32px) !important;
}

h3,
.h3 {
  font-size: clamp(22px, 2.1vw, 28px) !important;
}

.navbar-brand img,
.logo img,
.site-logo img {
  width: var(--webmap-logo-width, 168px);
  max-width: var(--webmap-logo-width, 168px);
  height: auto;
}

@media (max-width: 767.98px) {
  .navbar-brand img,
  .logo img,
  .site-logo img {
    width: var(--webmap-logo-mobile-width, 132px);
    max-width: var(--webmap-logo-mobile-width, 132px);
  }
}

/* WebMap: OneNav official demo density */
#search .big-title .h1 {
  font-size: 28px !important;
  line-height: 1.25;
}

.posts-item.sites-item .item-title,
.posts-item.sites-item .item-title b {
  font-size: 14px !important;
  line-height: 21px !important;
}

.posts-item.sites-item .text-xs {
  font-size: 12px !important;
  line-height: 18px !important;
}

@media (min-width: 768px) {
  body.aside-show #layout_aside,
  body.aside-show #layout_aside .aside-card {
    width: 170px;
  }

  body.aside-show #layout_aside .aside-ul,
  body.aside-show #layout_aside .aside-bottom,
  body.aside-show #layout_aside .aside-btn {
    width: 150px;
  }

  body.aside-show #layout_aside .aside-btn {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.aside-show #layout_aside .aside-btn > span {
    display: inline-block;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
  }

  body.aside-show .ioui-main {
    width: calc(100% - 205px);
    margin-left: 185px;
  }
}
@media (min-width: 768px) {
  body.aside-show .ioui-main {
    margin-left: 185px !important;
  }
}

.webmap-site-quality {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(127, 127, 127, 0.24);
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.06);
}

.webmap-site-quality h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 26px) !important;
}

.webmap-site-quality__intro {
  margin: 0 0 16px;
  color: inherit;
  opacity: 0.78;
}

.webmap-site-quality__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
}

.webmap-site-quality__item {
  min-width: 0;
}

.webmap-site-quality__item dt {
  margin-bottom: 2px;
  font-weight: 600;
}

.webmap-site-quality__item dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .webmap-site-quality {
    padding: 16px;
  }

  .webmap-site-quality__list {
    grid-template-columns: 1fr;
  }
}
