/* INFORM.KG — Frontend v2 refinements for content-rich public pages.
   Loaded after the shared responsive layers. Original HTML remains the source.
*/
.he-v2-weather-adaptive { display: none; }
@media (max-width: 1180px) {
  /* Publications: the picture stays inside its own article, and never floats
     into the next row. Alternating sides improve scanning without a new CMS. */
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-article-list > tbody > tr > td.he-v2-article-card.he-v2-feed-ready {
    display: flow-root !important;
    clear: both;
    width: 100% !important;
    min-height: 145px;
    height: auto !important;
    box-sizing: border-box;
    margin: 10px 0 !important;
    padding: 13px !important;
    border: 1px solid #dce8ef !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(29,67,95,.045);
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: left !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-article-card .he-v2-feed-picture {
    display: block !important;
    float: left !important;
    width: 104px;
    max-width: 104px;
    min-height: 0;
    margin: 1px 13px 9px 0 !important;
    padding: 0;
    clear: none;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-article-card.he-v2-feed-right .he-v2-feed-picture {
    float: right !important;
    margin: 1px 0 9px 13px !important;
  }
  .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-article-card .he-v2-feed-picture a {
    display: block;
    line-height: 0;
  }
  .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-article-card .he-v2-feed-picture img {
    display: block;
    float: none !important;
    width: 100px !important;
    height: auto !important;
    max-width: 100px !important;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e1eaf0;
  }
  /* Transparent gap blocks from legacy markup must not interfere with cards. */
  .he-v2-inner-shell .he-v2-inner-content td.he-v2-article-card.he-v2-feed-ready
    > div:not(.he-v2-feed-picture) {
    max-width: 100%;
  }

  /* Directory: one independently outlined entry, image and text flow within
     the same card. Background no longer alternates unpredictably. */
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list,
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item {
    display: flow-root !important;
    width: 100% !important;
    min-height: 120px;
    height: auto !important;
    margin: 0 0 13px !important;
    padding: 14px !important;
    border: 1px solid #dce8ef !important;
    border-radius: 13px;
    background: #fff !important;
    box-shadow: 0 3px 14px rgba(23,64,93,.05);
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item > td {
    display: block !important;
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    text-align: left !important;
    box-sizing: border-box;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item
    > td.he-v2-directory-figure {
    width: 112px !important;
    max-width: 112px !important;
    float: left !important;
    margin: 0 14px 7px 0 !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item.he-v2-directory-right
    > td.he-v2-directory-figure {
    float: right !important;
    margin: 0 0 7px 14px !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item
    > td.he-v2-directory-description {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.65;
    color: #516b7a;
  }
  .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-directory-figure a {
    display: block;
    border-radius: 9px;
    background: #f4f8fb;
    padding: 5px;
    text-align: center;
  }
  .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-directory-figure img {
    display: block;
    max-width: 100% !important;
    max-height: 125px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    border-radius: 7px;
  }
  .he-v2-inner-shell .he-v2-inner-content
    td.he-v2-directory-description a.a_razd_name {
    display: inline;
    color: #1b638c;
    font-size: 15px;
    font-weight: 800;
  }

  /* The original 12-city navigation was a 3-column table. On mobile this is
     a true grid of links; no vertical barbershop striping from bgcolor attrs. */
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list > tbody {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    width: 100% !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list > tbody > tr {
    display: contents !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list > tbody > tr > td {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 52px;
    padding: 8px !important;
    margin: 0 !important;
    background: #f2f8fb !important;
    border: 1px solid #dfebf3;
    border-radius: 10px;
    text-align: center !important;
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list a {
    font-size: 12px;
    font-weight: 750;
    color: #266b92;
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list td.he-v2-weather-city-selected {
    background: #deeffa !important;
    border-color: #8db9d2;
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list font {
    font-size: 12px !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-original-day {
    display: none !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    .he-v2-weather-adaptive {
    display: block;
    margin: 14px 0 24px;
    width: 100%;
    max-width: 100%;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-title {
    font-size: 19px;
    color: #174663;
    margin: 6px 0 5px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-note {
    font-size: 12px;
    color: #7d90a0;
    margin: 0 0 17px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-day {
    margin: 0 0 15px;
    border: 1px solid #dae8f0;
    border-radius: 14px;
    background: #fff;
    padding: 13px;
    box-shadow: 0 3px 13px rgba(25,70,100,.04);
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-day h3 {
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #245775;
    border-bottom: 1px solid #e8eff4;
    padding-bottom: 9px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-periods {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-period {
    min-width: 0;
    background: #f5f9fc;
    border: 1px solid #e5eef5;
    border-radius: 11px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    overflow-wrap: anywhere;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-period-name {
    text-transform: capitalize;
    color: #517a91;
    font-weight: 850;
    font-size: 11px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-period-top {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-period-top img {
    width: 31px !important;
    height: 31px !important;
    max-width: 31px !important;
    flex: 0 0 31px;
    object-fit: contain;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-temperature {
    color: #1b587a;
    font-size: 20px;
    font-weight: 850;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-condition {
    color: #3b687f;
    font-size: 11px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #738a9a;
  }
  .he-v2-inner-shell .he-v2-inner-content
    .he-v2-weather-day.he-v2-weather-extra {
    display: none !important;
  }
  .he-v2-inner-shell .he-v2-inner-content
    .he-v2-weather-expanded .he-v2-weather-day.he-v2-weather-extra {
    display: block !important;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-expand {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #d2e6f1;
    background: #eaf6fd;
    color: #1d6189;
    border-radius: 10px;
    font-weight: 800;
    font-size: 12px;
  }

  /* Profile: legible fields, logo and live OpenLayers map. */
  .he-v2-inner-shell .he-v2-inner-content.he-v2-business-profile
    table.he-v2-profile-photo-table {
    width: auto !important;
    max-width: 100% !important;
    margin: 8px auto !important;
    background: #f5f9fc;
    border-radius: 10px;
    text-align: center;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-business-profile
    img[src*="getpict.php"] {
    display: block;
    width: auto !important;
    max-width: min(220px,100%) !important;
    height: auto !important;
    max-height: 220px;
    object-fit: contain;
    margin: 0 auto;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-business-profile td.prof_kont {
    text-align: left !important;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    padding: 6px 5px !important;
    height: auto !important;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-business-profile
    td.prof_kont center {
    text-align: left !important;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-business-profile
    table[width="100%"] {
    max-width: 100% !important;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-profile-has-map #map {
    margin: 5px 0 10px;
    background: #eaf3f7;
  }

  /* Horoscope archive notice is explicit about stale source content. */
  .he-v2-inner-shell .he-v2-inner-content .he-v2-horoscope-archive {
    display: block;
    margin: 12px 0 17px;
    padding: 14px 16px;
    background: #edf6fb;
    border-left: 3px solid #3189b5;
    border-radius: 9px;
    color: #32647f;
    font-size: 12px;
    line-height: 1.6;
  }
  .he-v2-inner-shell .he-v2-inner-content.he-v2-horoscope-content
    tr.he-v2-zodiac-row {
    display: flow-root !important;
    width: 100% !important;
    clear: both;
    margin: 6px 0 17px;
    padding: 10px 8px;
    background: #fbfdff;
    border-bottom: 1px solid #e9eff4;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content.he-v2-horoscope-content
    tr.he-v2-zodiac-row > td:first-child {
    display: block !important;
    width: 118px !important;
    max-width: 118px !important;
    float: left !important;
    padding: 0 10px 5px 0 !important;
    margin: 0 !important;
  }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content.he-v2-horoscope-content
    tr.he-v2-zodiac-row > td + td {
    width: auto !important;
    max-width: none !important;
    display: block !important;
    text-align: left !important;
    line-height: 1.7;
    padding: 0 !important;
    margin: 0 !important;
  }
}
@media (max-width: 640px) {
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-weather-city-list > tbody {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-periods {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list > tbody > tr.he-v2-directory-item {
    padding: 12px !important;
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list td.he-v2-directory-figure {
    width: 92px !important;
    max-width: 92px !important;
    margin-right: 11px !important;
  }
  .he-v2-inner-shell .he-v2-inner-content
    table.he-v2-directory-list tr.he-v2-directory-right td.he-v2-directory-figure {
    margin-right: 0 !important;
    margin-left: 11px !important;
  }
}
@media (max-width: 345px) {
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-period {
    padding: 8px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-weather-temperature {
    font-size: 17px;
  }
}

/* Correct representation of the directory's legacy FOUR-CELL rows.
   Exactly one category per card; old two-up table is hidden only on mobile. */
.he-v2-directory-cards { display: none; }
@media(max-width:1180px) {
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
  table.he-v2-directory-list-original { display: none !important; }
  body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content
  .he-v2-directory-cards {
    display: block !important;
    width: 100%;
    padding: 0;
    margin: 8px 0 22px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card {
    display: flow-root;
    width: 100%;
    min-height: 124px;
    overflow: hidden;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #dce8ef;
    border-radius: 13px;
    background: white;
    box-shadow: 0 3px 14px rgba(23,64,93,.055);
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-media {
    display: block;
    width: 110px;
    float: left;
    margin: 0 14px 5px 0;
    padding: 7px;
    border: 1px solid #e9f0f5;
    border-radius: 11px;
    background: #f5f9fc;
    box-sizing: border-box;
  }
  .he-v2-inner-shell .he-v2-inner-content
  .he-v2-directory-card-right .he-v2-directory-card-media {
    float: right;
    margin: 0 0 5px 14px;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-media img {
    display: block;
    max-width: 100% !important;
    width: auto;
    height: auto;
    max-height: 110px;
    margin: 0 auto;
    object-fit: contain;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-copy {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.7;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-copy h3 {
    font-size: 15px;
    line-height: 1.3;
    color: #165980;
    margin: 2px 0 8px;
    font-weight: 850;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-copy p {
    color: #4e697a;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
  }
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-copy p a {
    color: inherit;
  }
}
@media(max-width:375px){
  .he-v2-inner-shell .he-v2-inner-content .he-v2-directory-card-media {
    width: 88px;
    padding: 5px;
    margin-right: 10px;
  }
  .he-v2-inner-shell .he-v2-inner-content
  .he-v2-directory-card-right .he-v2-directory-card-media {
    margin-right: 0;
    margin-left: 10px;
  }
}

@media (max-width:1180px) { .he-v2-inner-content .he-v2-directory-view-control, .he-v2-inner-content .he-v2-directory-intro {display:none!important;} }

/* Tablet organization listings: two-column cards instead of checkerboard cells. */
@media(min-width:641px) and (max-width:1180px){
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid{display:block!important;width:100%!important;background:transparent!important;border:0!important;margin-top:20px!important;font-family:Arial,Helvetica,sans-serif!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid>tbody{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid>tbody>tr{display:contents!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid>tbody>tr>td.he-v2-organization-card{display:flex!important;flex-direction:column;min-width:0!important;width:auto!important;padding:22px!important;background:#fff!important;border:1px solid #dbe8ef!important;border-radius:16px!important;box-shadow:0 4px 15px #16476408!important;font:14px/1.65 Arial,Helvetica,sans-serif!important;color:#385465!important;overflow-wrap:anywhere}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid td.he-v2-organization-card h2{margin:0 0 12px!important;font:700 19px/1.35 Arial,Helvetica,sans-serif!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid td.he-v2-organization-card h2 a{color:#184f70!important;text-decoration:none!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid td.he-v2-organization-card p{margin:0 0 12px!important;font:inherit!important;color:#476171!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid td.he-v2-organization-card p b{font-weight:500!important;color:#334d5d!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid .a_cat_name_l{display:inline-block;padding:4px 9px;background:#eef7fb;border-radius:7px;font:12px/1.5 Arial,Helvetica,sans-serif!important;color:#26769b!important;text-decoration:none!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid td.he-v2-organization-card p:last-child{margin-top:auto!important;margin-bottom:0!important;padding-top:8px!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid .he-v2-organization-more{display:flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border-radius:9px;background:#eaf5fb;border:1px solid #cde3ef;color:#1a678c!important;font:600 13px/1.5 Arial,Helvetica,sans-serif!important;text-decoration:none!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid .he-v2-organization-more:hover{background:#dceef8}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid .he-v2-organization-empty{display:none!important}
body.he-v2-inner-ready .he-v2-inner-shell .he-v2-inner-content table.he-v2-organization-grid a:focus-visible{outline:3px solid #f7a24b;outline-offset:3px}
}
