/* INFORM.KG Homepage v2 — adaptive portal theme.
   Scoped to the unpublished v2 preview. Desktop legacy CMS remains intact. */
body.he-v2-enhanced {
  --he-blue: #1b557e;
  --he-navy: #173a54;
  --he-ink: #183247;
  --he-muted: #667d90;
  --he-sky: #edf6fb;
  --he-orange: #f49b50;
  --he-line: #e5edf3;
  --he-shadow: 0 8px 28px rgba(22, 61, 88, 0.06);
}
.he-v2-shell,
.he-v2-shell * {
  box-sizing: border-box;
}
.he-v2-shell {
  display: none;
  width: 100%;
  max-width: 100%;
  color: var(--he-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Arial', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
.he-v2-shell [hidden] {
  display: none !important;
}
.he-v2-shell a {
  color: inherit;
  text-decoration: none;
}
.he-v2-shell a:hover,
.he-v2-shell a:focus-visible {
  color: #156ca2;
}
.he-v2-shell button,
.he-v2-shell input,
.he-v2-shell select {
  font: inherit;
}
.he-v2-shell button {
  cursor: pointer;
}
.he-v2-shell button:focus-visible,
.he-v2-shell a:focus-visible,
.he-v2-shell input:focus-visible,
.he-v2-shell select:focus-visible {
  outline: 3px solid rgba(33, 131, 193, .5);
  outline-offset: 3px;
}

/* Subtle wide-screen improvement, without replacing the legacy desktop layout. */
@media (min-width: 1181px) {
  body.he-v2-enhanced {
    background-color: #f2f6f9;
  }
  body.he-v2-enhanced > table:nth-of-type(1) {
    background: #fff;
    box-shadow: 0 2px 9px rgba(22, 52, 76, 0.06);
  }
  body.he-v2-enhanced > table:nth-of-type(3) {
    width: calc(100% - 48px) !important;
    max-width: 1440px;
    margin: 14px auto 32px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(15, 51, 80, .09);
    border-radius: 10px;
  }
  body.he-v2-enhanced div.name_razdel_main2 {
    font-size: 15px;
    line-height: 1.6;
  }
  body.he-v2-enhanced a.a_menu_left_vibor,
  body.he-v2-enhanced a.a_menu_left_vibor2 {
    line-height: 1.55;
  }
}

/* Semantic responsive view below legacy table-layout breakpoint. */
@media (max-width: 1180px) {
  html {
    max-width: 100%;
    overflow-x: clip;
  }
  body.he-v2-ready {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background: #f5f8fb;
  }
  body.he-v2-ready > table {
    display: none !important;
  }
  body.he-v2-ready > .he-v2-shell {
    display: block;
  }
  .he-v2-shell {
    --he-radius: 16px;
    background: #f5f8fb;
    min-height: 100vh;
  }
  .he-v2-header {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--he-line);
    box-shadow: 0 4px 14px rgba(12, 42, 64, .035);
    backdrop-filter: blur(12px);
  }
  .he-v2-header-inner {
    max-width: 1180px;
    height: 76px;
    padding: 8px 28px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }
  .he-v2-brand {
    min-width: 0;
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--he-navy) !important;
  }
  .he-v2-brand-logo {
    display: block;
    width: auto;
    max-width: 150px;
    height: 54px;
    object-fit: contain;
  }
  .he-v2-brand-sub {
    max-width: 200px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .025em;
    color: #657b8c;
    line-height: 1.35;
  }
  .he-v2-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .he-v2-current-weather {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 9px 12px;
    color: #285976 !important;
    background: #f2f7fb;
    border: 1px solid #e7eef4;
    border-radius: 10px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
  }
  .he-v2-weather-symbol {
    color: #f3a43a;
    font-size: 20px;
    line-height: 1;
  }
  .he-v2-menu-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--he-navy);
    color: #fff;
    padding: 0 17px;
    font-size: 13px;
    font-weight: 750;
  }
  .he-v2-menu-button:hover {
    background: #236895;
  }
  .he-v2-menu-button .he-v2-icon {
    font-size: 19px;
  }
  .he-v2-menu {
    position: absolute;
    top: 100%;
    right: max(16px, calc((100vw - 1160px) / 2));
    width: min(560px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    overflow-y: auto;
    padding: 24px;
    background: white;
    border: 1px solid var(--he-line);
    box-shadow: 0 16px 42px rgba(18, 48, 72, .19);
    border-radius: 0 0 16px 16px;
  }
  .he-v2-menu-heading {
    color: var(--he-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin: 0 0 12px;
  }
  .he-v2-menu-heading--second {
    margin-top: 22px;
  }
  .he-v2-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .he-v2-menu-link {
    display: block;
    padding: 10px 11px;
    border-radius: 9px;
    color: #21475d !important;
    background: #f5f8fb;
    font-size: 13px;
    font-weight: 650;
  }
  .he-v2-menu-link:hover {
    background: #e7f2fa;
  }
  .he-v2-rates {
    background: #173d59;
    color: white;
  }
  .he-v2-rates-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1180px;
    min-height: 42px;
    padding: 7px 28px;
    margin: auto;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .he-v2-rate-label {
    flex: 0 0 auto;
    opacity: .72;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .he-v2-rate {
    display: flex;
    gap: 7px;
    align-items: baseline;
    white-space: nowrap;
    font-size: 12px;
  }
  .he-v2-rate strong {
    font-weight: 850;
    color: #ffc58d;
    font-size: 11px;
  }
  .he-v2-rate-value {
    font-weight: 700;
  }
  .he-v2-rate-trend {
    color: #8fdaad;
  }
  .he-v2-main {
    max-width: 1180px;
    padding: 22px 28px 64px;
    margin: auto;
  }
  .he-v2-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 275px;
    padding: 32px 32px 26px;
    background: linear-gradient(112deg, #153c5b, #20658c 72%, #287ba2);
    color: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(24, 76, 115, .14);
  }
  .he-v2-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -175px;
    right: -150px;
    width: 430px;
    height: 430px;
    border: 80px solid rgba(255, 255, 255, .055);
    border-radius: 50%;
  }
  .he-v2-hero-eyebrow {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 50px;
    color: #a9d9f6;
    background: rgba(255, 255, 255, .10);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
  }
  .he-v2-hero h1 {
    max-width: 560px;
    font-size: clamp(25px, 3.3vw, 38px);
    line-height: 1.18;
    letter-spacing: -.03em;
    font-weight: 850;
    margin: 15px 0 10px;
    color: white;
  }
  .he-v2-hero p {
    max-width: 525px;
    margin: 0;
    color: #d7e8f3;
    line-height: 1.65;
    font-size: 13px;
  }
  .he-v2-hero-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 14px;
    font-size: 12px;
    color: #b5d5e7;
  }
  .he-v2-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 620px;
    min-height: 52px;
    margin-top: 20px;
    background: white;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 12px;
    color: var(--he-ink);
    overflow: hidden;
  }
  .he-v2-search-scope {
    flex: 0 0 auto;
    max-width: 153px;
    padding: 0 10px;
    background: #f7f9fb;
    border: 0;
    border-right: 1px solid var(--he-line);
    color: #455e71;
    font-size: 12px;
    outline-offset: -4px;
  }
  .he-v2-search-input {
    flex: 1 1 0%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline-offset: -4px;
    color: #18364d;
    font-size: 14px;
    background: #fff;
  }
  .he-v2-search-submit {
    flex: 0 0 auto;
    background: #f3a252;
    color: #203b52;
    border: 0;
    font-size: 13px;
    font-weight: 850;
    padding: 0 22px;
  }
  .he-v2-search-submit:hover {
    background: #ffc080;
  }
  .he-v2-hero-weather {
    position: absolute;
    right: 30px;
    top: 30px;
    min-width: 175px;
    max-width: 205px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 16px;
    background: rgba(255, 255, 255, .11);
    backdrop-filter: blur(10px);
    color: white !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .he-v2-weather-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: .11em;
    color: #bde0f2;
    font-weight: 800;
  }
  .he-v2-weather-city {
    display: block;
    font-size: 18px;
    letter-spacing: -.01em;
  }
  .he-v2-weather-details {
    display: block;
    font-size: 12px;
    color: #d3e8f3;
  }
  .he-v2-weather-temp {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 850;
    margin-top: 3px;
  }
  .he-v2-quick-links {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 18px 0 12px;
    scrollbar-width: none;
  }
  .he-v2-quick-links::-webkit-scrollbar {
    display: none;
  }
  .he-v2-quick-link {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #e2edf3;
    border-radius: 50px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    color: #355c75 !important;
    box-shadow: 0 2px 5px rgba(15, 60, 90, .03);
  }
  .he-v2-quick-link:hover {
    border-color: #b4d9ec;
    background: #ecf7fd;
  }
  .he-v2-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 22px;
    align-items: start;
    padding-top: 4px;
  }
  .he-v2-primary {
    min-width: 0;
  }
  .he-v2-section {
    margin: 12px 0 30px;
    padding: 18px;
    border-radius: 17px;
    border: 1px solid #e5edf3;
    background: white;
    box-shadow: var(--he-shadow);
    scroll-margin-top: 110px;
  }
  .he-v2-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eff4;
  }
  .he-v2-section-eyebrow {
    color: #cd7934;
    font-weight: 850;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .he-v2-section-title h2 {
    margin: 0;
    color: #173f5c;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.25;
    letter-spacing: -.02em;
  }
  .he-v2-all {
    font-size: 11px;
    white-space: nowrap;
    font-weight: 750;
    color: #2475a3 !important;
    padding-bottom: 2px;
  }
  .he-v2-card-grid,
  .he-v2-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .he-v2-card {
    display: flex;
    overflow: hidden;
    min-width: 0;
    background: #fbfdff;
    border: 1px solid #e8eff5;
    border-radius: 12px;
    transition: box-shadow .15s ease, border-color .15s ease;
  }
  .he-v2-card:hover {
    border-color: #c5deeb;
    box-shadow: 0 5px 16px rgba(26, 78, 111, .08);
  }
  .he-v2-thumb {
    flex: 0 0 108px;
    width: 108px;
    min-height: 112px;
    background: #eef5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .he-v2-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
  }
  .he-v2-thumb-placeholder {
    background: linear-gradient(140deg, #daeef7, #f2f6fb);
    color: #4d85a3 !important;
    font-size: 35px;
    font-weight: 200;
  }
  .he-v2-card-body {
    flex: 1 1 0%;
    min-width: 0;
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
  }
  .he-v2-card h3 {
    font-size: 13px;
    font-weight: 760;
    letter-spacing: -.01em;
    line-height: 1.48;
    color: #19455e;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  .he-v2-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    color: #647a89;
    line-height: 1.55;
    margin: 7px 0;
  }
  .he-v2-read {
    display: inline-flex;
    margin-top: auto;
    padding-top: 9px;
    color: #2780ac !important;
    font-weight: 800;
    font-size: 11px;
  }
  .he-v2-card-feature {
    grid-column: 1 / -1;
    background: #f2f8fc;
  }
  .he-v2-card-feature .he-v2-thumb {
    flex-basis: 180px;
    width: 180px;
  }
  .he-v2-card-feature h3 {
    font-size: 17px;
    line-height: 1.36;
  }
  .he-v2-card-feature .he-v2-card-body {
    padding: 18px 20px;
  }
  .he-v2-show-more {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 16px;
    background: #f0f7fb;
    border: 1px solid #dceaf2;
    border-radius: 10px;
    color: #276c93;
    font-size: 12px;
    font-weight: 800;
  }
  .he-v2-show-more:hover {
    background: #e4f2fa;
  }
  .he-v2-empty {
    font-size: 13px;
    color: #8394a1;
  }
  .he-v2-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 12px;
  }
  .he-v2-widget {
    border: 1px solid var(--he-line);
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--he-shadow);
  }
  .he-v2-widget-head {
    display: flex;
    gap: 9px;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ebf0f4;
    color: #22688c;
  }
  .he-v2-widget-head h2 {
    font-size: 17px;
    color: var(--he-navy);
    margin: 0;
    font-weight: 800;
  }
  .he-v2-widget-head > .he-v2-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: #eaf4fa;
  }
  .he-v2-calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
  }
  .he-v2-calendar-controls strong {
    text-transform: capitalize;
    font-size: 13px;
    color: #284a5c;
  }
  .he-v2-cal-control {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e2ecf2;
    background: #f6f9fb;
    color: #1b6692;
    font-size: 23px;
    line-height: 1;
  }
  .he-v2-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
  }
  .he-v2-day-name {
    padding: 4px 0;
    color: #7a8d9a;
    font-size: 10px;
    font-weight: 750;
  }
  .he-v2-day {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #284c63;
    font-size: 12px;
  }
  .he-v2-day:hover {
    background: #e7f4fb;
  }
  .he-v2-day-today {
    background: #1d6a9b;
    color: #fff;
    font-weight: 800;
  }
  .he-v2-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .he-v2-zodiac {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 1px;
    border: 1px solid #ebf2f6;
    border-radius: 9px;
    text-align: center;
    background: #f9fcfe;
    color: #39627b !important;
    font-size: 10px;
  }
  .he-v2-zodiac:hover {
    background: #edf7fd;
  }
  .he-v2-zodiac img {
    width: 38px;
    height: 38px;
    object-fit: contain;
  }
  .he-v2-zodiac-more {
    display: inline-flex;
    margin-top: 12px;
    font-size: 12px;
    color: #2475a3 !important;
    font-weight: 800;
  }
  .he-v2-sponsors {
    border-radius: 16px;
    border: 1px solid #e6edf4;
    background: #fff;
    padding: 16px 18px;
    margin-top: 12px;
  }
  .he-v2-sponsor-label {
    color: #91a0ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }
  .he-v2-sponsor-rail {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    overflow-x: auto;
  }
  .he-v2-sponsor {
    flex: 0 0 auto;
    max-width: 160px;
    min-width: 130px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 9px;
    border: 1px solid #ebf0f4;
  }
  .he-v2-sponsor img {
    max-width: 100%;
    max-height: 65px;
    object-fit: contain;
  }
  .he-v2-footer {
    background: #183a54;
    color: #d5e5ef;
  }
  .he-v2-footer-inner {
    max-width: 1180px;
    margin: auto;
    padding: 32px 28px;
  }
  .he-v2-footer strong {
    color: #fff;
    font-size: 19px;
    letter-spacing: .07em;
  }
  .he-v2-footer p {
    margin: 7px 0 16px;
    font-size: 12px;
    color: #a8c2d0;
  }
  .he-v2-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-bottom: 18px;
  }
  .he-v2-footer a {
    color: #d8eaf3 !important;
    font-size: 12px;
  }
  .he-v2-footer small {
    color: #91b0c3;
    font-size: 11px;
  }
}

@media (max-width: 920px) {
  .he-v2-shell .he-v2-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .he-v2-shell .he-v2-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }
  .he-v2-shell .he-v2-zodiac-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .he-v2-shell {
    font-size: 14px;
  }
  .he-v2-shell .he-v2-header-inner {
    height: 66px;
    padding: 8px 16px;
    gap: 8px;
  }
  .he-v2-shell .he-v2-brand-logo {
    width: 115px;
    height: 44px;
  }
  .he-v2-shell .he-v2-brand-sub {
    display: none;
  }
  .he-v2-shell .he-v2-header-actions {
    gap: 7px;
  }
  .he-v2-shell .he-v2-current-weather {
    padding: 8px;
    font-size: 12px;
  }
  .he-v2-shell .he-v2-menu-button {
    min-height: 39px;
    padding: 0 12px;
    gap: 5px;
    font-size: 12px;
  }
  .he-v2-shell .he-v2-rates-inner {
    gap: 15px;
    padding: 9px 16px;
  }
  .he-v2-shell .he-v2-main {
    padding: 15px 12px 40px;
  }
  .he-v2-shell .he-v2-hero {
    padding: 24px 20px 20px;
    border-radius: 16px;
    min-height: auto;
  }
  .he-v2-shell .he-v2-hero h1 {
    max-width: none;
    font-size: clamp(25px, 7vw, 34px);
    margin-top: 14px;
  }
  .he-v2-shell .he-v2-hero p {
    font-size: 12px;
  }
  .he-v2-shell .he-v2-hero-weather {
    position: relative;
    right: auto;
    top: auto;
    max-width: none;
    min-width: 0;
    margin-top: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .he-v2-shell .he-v2-weather-temp {
    font-size: 27px;
  }
  .he-v2-shell .he-v2-search {
    flex-wrap: wrap;
    overflow: visible;
    min-height: 0;
    padding: 3px;
    border-radius: 10px;
  }
  .he-v2-shell .he-v2-search-scope {
    flex-basis: 115px;
    max-width: 115px;
    font-size: 11px;
  }
  .he-v2-shell .he-v2-search-input {
    min-width: 0;
    flex-basis: calc(100% - 115px);
    min-height: 43px;
    border-radius: 7px;
  }
  .he-v2-shell .he-v2-search-submit {
    flex-basis: 100%;
    height: 39px;
    border-radius: 7px;
  }
  .he-v2-shell .he-v2-section {
    padding: 13px;
    border-radius: 13px;
    margin-bottom: 16px;
  }
  .he-v2-shell .he-v2-section-title h2 {
    font-size: 19px;
  }
  .he-v2-shell .he-v2-card-grid,
  .he-v2-shell .he-v2-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .he-v2-shell .he-v2-card-feature {
    grid-column: auto;
  }
  .he-v2-shell .he-v2-card-feature .he-v2-thumb {
    flex-basis: 112px;
    width: 112px;
  }
  .he-v2-shell .he-v2-card-feature h3 {
    font-size: 14px;
  }
  .he-v2-shell .he-v2-card-feature .he-v2-card-body {
    padding: 12px;
  }
  .he-v2-shell .he-v2-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .he-v2-shell .he-v2-zodiac-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .he-v2-shell .he-v2-footer-inner {
    padding: 28px 20px;
  }
}

@media (max-width: 365px) {
  .he-v2-shell .he-v2-current-weather {
    display: none;
  }
  .he-v2-shell .he-v2-menu {
    padding: 16px;
  }
  .he-v2-shell .he-v2-menu-links {
    grid-template-columns: 1fr;
  }
  .he-v2-shell .he-v2-thumb {
    flex-basis: 95px;
    width: 95px;
  }
  .he-v2-shell .he-v2-card h3 {
    font-size: 12px;
  }
  .he-v2-shell .he-v2-card p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .he-v2-shell *, .he-v2-shell *::before, .he-v2-shell *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Mobile version of existing organization login and latest comments. */
@media (max-width: 1180px) {
  .he-v2-shell .he-v2-account-widget {
    scroll-margin-top: 110px;
  }
  .he-v2-shell .he-v2-login-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  .he-v2-shell .he-v2-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #536e81;
    font-size: 12px;
    font-weight: 700;
  }
  .he-v2-shell .he-v2-form-field input {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 8px 10px;
    border: 1px solid #d9e6ee;
    border-radius: 8px;
    background: white;
    color: #21445c;
    outline-offset: 2px;
    font-size: 13px;
  }
  .he-v2-shell .he-v2-captcha {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 8px;
    border: 1px dashed #d5e4ed;
    border-radius: 8px;
    background: #f7fafc;
  }
  .he-v2-shell .he-v2-captcha img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  .he-v2-shell .he-v2-login-submit {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    background: #246d97;
    color: white;
    font-size: 12px;
    font-weight: 850;
  }
  .he-v2-shell .he-v2-login-submit:hover {
    background: #1b557e;
  }
  .he-v2-shell .he-v2-comment-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .he-v2-shell .he-v2-comment-link {
    display: block;
    padding: 10px 11px;
    border: 1px solid #e7edf2;
    border-radius: 9px;
    background: #f8fbfd;
    color: #345f78;
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
  }
  .he-v2-shell .he-v2-comment-link:hover {
    background: #edf6fc;
  }
}

/* HOMEPAGE + INTERNAL PAGES: four currencies fit on narrow phones.
   We intentionally keep the older horizontal ticker on tablet/desktop. */
@media (max-width: 640px) {
  body.he-v2-ready .he-v2-shell .he-v2-rates-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    padding: 10px 16px 12px;
    overflow: visible;
    align-items: center;
  }
  body.he-v2-ready .he-v2-shell .he-v2-rate-label {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    white-space: normal;
  }
  body.he-v2-ready .he-v2-shell .he-v2-rate {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 7px;
    white-space: nowrap;
    justify-content: flex-start;
  }
  body.he-v2-ready .he-v2-shell .he-v2-rate strong {
    flex: 0 0 auto;
  }
  body.he-v2-ready .he-v2-shell .he-v2-rate-value {
    min-width: 0;
    font-variant-numeric: tabular-nums;
  }
}

/* Homepage city weather, 11 October 2026 */
.he-v2-shell .he-v2-home-weather {min-width:0;}
.he-v2-shell .he-v2-home-weather .he-v2-widget-head {display:flex;justify-content:space-between;align-items:center;gap:8px;}
.he-v2-shell .he-v2-home-weather .he-v2-widget-head h2 {font-size:18px;line-height:1.3;}
.he-v2-shell .he-v2-home-weather-date {font-size:11px;color:#7895ac;white-space:nowrap;}
.he-v2-shell .he-v2-home-weather-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.he-v2-shell .he-v2-home-weather-city {display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:88px;padding:12px;background:#f6fafc;border:1px solid #e0edf5;border-radius:12px;color:#315c77;text-decoration:none;}
.he-v2-shell .he-v2-home-weather-city[hidden] {display:none!important;}
.he-v2-shell .he-v2-home-weather-city.is-featured {background:#e9f4fa;border-color:#cde5f4;}
.he-v2-shell .he-v2-home-weather-city:hover {background:#edf6fb;border-color:#b6d9ee;}
.he-v2-shell .he-v2-home-weather-name {font-size:12px;font-weight:750;text-align:center;line-height:1.35;overflow-wrap:anywhere;}
.he-v2-shell .he-v2-home-weather-detail {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:12px;}
.he-v2-shell .he-v2-home-weather-detail strong {font-size:18px;color:#1b5c85;line-height:1;}
.he-v2-shell .he-v2-home-weather-detail img {width:29px!important;height:29px!important;object-fit:contain;}
.he-v2-shell .he-v2-home-weather-expand {display:block;width:100%;min-height:42px;margin-top:13px;padding:9px;border:1px solid #d9e8f2;border-radius:9px;background:#f0f7fb;color:#256d94;font:inherit;font-size:12px;font-weight:800;cursor:pointer;}
.he-v2-shell .he-v2-home-weather-more {display:block;margin-top:17px;text-align:center;color:#2276a0;font-size:12px;font-weight:750;text-decoration:none;}

.he-v2-shell .he-v2-home-weather a, .he-v2-shell .he-v2-home-weather span, .he-v2-shell .he-v2-home-weather strong {font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;}
.he-v2-shell .he-v2-home-weather-detail strong {font-weight:800;}

/* Tablet portal hero: reuse the single interactive calendar. */
@media (min-width:641px) and (max-width:1180px) {
  .he-v2-shell .he-v2-hero {display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,29%);column-gap:24px;align-items:start;padding:26px;}
  .he-v2-shell .he-v2-hero > :not(.he-v2-calendar-widget):not(.he-v2-hero-weather) {grid-column:1;min-width:0;max-width:100%;}
  .he-v2-shell .he-v2-hero-eyebrow {justify-self:start;}
  .he-v2-shell .he-v2-hero .he-v2-hero-weather {display:none!important;}
  .he-v2-shell .he-v2-hero > .he-v2-calendar-widget {grid-column:2;grid-row:1 / 7;align-self:center;width:100%;min-width:0;color:var(--he-ink);margin:0;padding:16px;}
  .he-v2-shell .he-v2-hero .he-v2-calendar-controls strong {font-size:13px;}
  .he-v2-shell .he-v2-hero .he-v2-search {width:100%;}
}
@media (min-width:641px) and (max-width:760px) {
  .he-v2-shell .he-v2-hero {padding:20px;column-gap:16px;grid-template-columns:minmax(0,1fr) 230px;}
  .he-v2-shell .he-v2-hero h1 {font-size:25px;}
  .he-v2-shell .he-v2-hero .he-v2-search {flex-wrap:wrap;}
  .he-v2-shell .he-v2-hero .he-v2-search-scope {flex-basis:100%;max-width:100%;min-height:34px;border-bottom:1px solid var(--he-line);}
  .he-v2-shell .he-v2-hero .he-v2-search-input {padding:0 8px;min-height:40px;}
  .he-v2-shell .he-v2-hero .he-v2-search-submit {padding:0 10px;}
}

/* Hide the homepage partner panel on phone and tablet. */
@media (max-width:1180px) { .he-v2-shell .he-v2-sponsors {display:none!important;} }

@media (max-width:640px) { .he-v2-shell .he-v2-hero .he-v2-hero-weather {display:none!important;} }
