@import url("page-quick-calculator.css?v=20260719-3");

/* Shared KalQ branding. The supplied artwork is displayed directly and only
   cropped by its container, so the source image remains unchanged. */
html {
  scrollbar-gutter: stable;
}

.right-panel {
  scrollbar-gutter: stable;
}

.kalq-logo-crop {
  --kalq-logo-width: 190px;
  --kalq-logo-height: 50px;
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--kalq-logo-width);
  height: var(--kalq-logo-height);
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  isolation: isolate;
}

.kalq-logo-crop > img {
  position: absolute;
  top: 64%;
  left: 56.5%;
  display: block !important;
  width: 160% !important;
  max-width: none !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: initial !important;
  transform: translate(-50%, -50%);
}

.brand.kalq-branded {
  min-width: 0;
  gap: 0 !important;
  line-height: 1;
}

.brand.kalq-branded > :not(.kalq-logo-crop),
.kalq-report-brand > :not(.kalq-logo-crop),
.kalq-certificate-brand > :not(.kalq-logo-crop) {
  display: none !important;
}

.kalq-report-brand,
.kalq-certificate-brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0;
}

.kalq-report-brand .kalq-logo-crop {
  --kalq-logo-width: 164px;
  --kalq-logo-height: 44px;
}

.kalq-certificate-brand .kalq-logo-crop {
  --kalq-logo-width: 145px;
  --kalq-logo-height: 39px;
}

.kalq-country-context{display:grid;grid-column:1/-1;align-self:stretch;min-width:0;width:auto;box-sizing:border-box;gap:5px;margin:10px 0 14px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--muted);font-size:10.5px;line-height:1.45}
.kalq-country-context strong{color:var(--primary-dark);font-size:11.5px}
.kalq-country-faqs{display:grid;gap:10px;margin-bottom:10px}
.kalq-country-references{margin-bottom:10px}
body.dark .kalq-country-context{background:color-mix(in srgb,var(--primary) 12%,#111b2c);border-color:color-mix(in srgb,var(--primary) 30%,#334155)}

@media (max-width: 820px) {
  body.kalq-weather-page .right-panel .control-card,
  body.kalq-weather-page .right-panel .actions-card {
    width: calc(100% - 24px) !important;
    min-width: 0;
  }
}

@media (max-width: 1120px) {
  .brand.kalq-branded .kalq-logo-crop {
    --kalq-logo-width: 165px;
    --kalq-logo-height: 44px;
  }
}

@media (max-width: 520px) {
  .brand.kalq-branded .kalq-logo-crop {
    --kalq-logo-width: 150px;
    --kalq-logo-height: 40px;
  }
}

@media print {
  .kalq-logo-crop {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .kalq-report-brand .kalq-logo-crop {
    --kalq-logo-width: 145px;
    --kalq-logo-height: 39px;
  }

  .kalq-certificate-brand .kalq-logo-crop {
    --kalq-logo-width: 132px;
    --kalq-logo-height: 35px;
  }
}

/* Related calculator quick access */
.related-tools-nav {
  --related-color: #1d4ed8;
  --related-soft: #dce5f5;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  flex: 0 0 54px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--related-color) 25%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--related-soft) 72%, white);
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.related-tools-nav::-webkit-scrollbar,
.weather-tool-switcher::-webkit-scrollbar {
  display: none;
}

.related-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--related-color) 52%, white);
  border-radius: 9px;
  background: color-mix(in srgb, var(--related-soft) 58%, white);
  color: var(--related-color);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.related-tool-link:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--related-soft) 84%, white);
  box-shadow: 0 5px 12px color-mix(in srgb, var(--related-color) 16%, transparent);
}

.related-tool-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--related-color) 28%, transparent);
  outline-offset: 2px;
}

.related-tool-link.active,
.related-tool-link[aria-current="page"] {
  border-color: var(--related-color);
  background: var(--related-color);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--related-color) 24%, transparent);
}

.related-tool-symbol {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

body.dark .related-tools-nav {
  background: color-mix(in srgb, var(--related-soft) 18%, #101828);
  border-color: color-mix(in srgb, var(--related-color) 42%, #344054);
}

body.dark .related-tool-link:not(.active) {
  background: color-mix(in srgb, var(--related-soft) 13%, #182230);
  color: color-mix(in srgb, var(--related-color) 62%, white);
}

/* Match the weather group's original static switcher from the first paint. */
.weather-tool-switcher {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  flex: 0 0 54px !important;
  margin: 0 0 16px !important;
  padding: 8px !important;
  border-radius: 13px !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.weather-tool-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 6px 11px !important;
  border-radius: 9px !important;
  font-size: 11.5px !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.weather-tool-link .ui-icon {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}

/* Keep every weather calculator control at the same exact dimensions. */
body.kalq-weather-page .right-panel .control-card,
body.kalq-weather-page .right-panel .actions-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.kalq-weather-page .right-panel .control-card .select,
body.kalq-weather-page .right-panel .control-card .text-input {
  width: 100% !important;
  height: 37px !important;
  min-height: 37px !important;
  max-height: 37px !important;
  box-sizing: border-box !important;
}

body.kalq-weather-page .right-panel #modeSelect + .field-note {
  display: block;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  line-height: 1.3;
  overflow: hidden;
}

body.kalq-weather-page .right-panel .location-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 7px !important;
  width: 100% !important;
}

body.kalq-weather-page .right-panel .location-row .icon-btn {
  width: 40px !important;
  height: 37px !important;
  min-height: 37px !important;
}

@media (max-width: 720px) {
  .related-tools-nav {
    padding: 8px;
  }

  .related-tool-link {
    min-height: 36px;
  }

  .weather-tool-switcher {
    padding: 8px !important;
  }

  .weather-tool-link {
    min-height: 36px !important;
  }
}

@media print {
  .related-tools-nav {
    display: none !important;
  }
}

/* Keep the two weather-analysis columns aligned as one balanced block. */
@media (min-width: 821px) {
  body.kalq-weather-page .workspace {
    align-items: stretch;
  }

  body.kalq-weather-page .visual-stack,
  body.kalq-weather-page .analysis-stack {
    align-self: stretch;
  }
}

/* Compact weather summary cards so long forecast results remain balanced. */
body.kalq-weather-page .metric-grid {
  gap: 10px;
  margin-bottom: 14px;
}

body.kalq-weather-page .metric-card {
  min-height: 82px;
  padding: 11px 13px;
  gap: 10px;
}

body.kalq-weather-page .metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

body.kalq-weather-page .metric-copy {
  gap: 2px;
}

body.kalq-weather-page .metric-label {
  font-size: 10.5px;
  line-height: 1.2;
}

body.kalq-weather-page .metric-value {
  font-size: 17.5px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

body.kalq-weather-page .metric-note {
  font-size: 10px;
  line-height: 1.3;
}

@media (max-width: 520px) {
  body.kalq-weather-page .metric-card {
    min-height: 76px;
    padding: 10px 11px;
  }

  body.kalq-weather-page .metric-icon {
    width: 33px;
    height: 33px;
  }

  body.kalq-weather-page .metric-value {
    font-size: 16px;
  }
}
