/* Нүүр — shilen-bai reference layout */
body.home-front {
  --home-paper: #faf9f5;
  --home-ink: #171717;
  --home-red: #9f2026;
  --home-line: #79756c;
  --home-muted: #595650;
  background: var(--home-paper);
  background-image: none;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
}

body.home-front a { color: inherit; text-decoration: none; }
body.home-front img { display: block; width: 100%; object-fit: cover; }

body.home-front .page-wrap {
  max-width: 1370px;
  margin: auto;
  padding: 0 30px;
}

body.home-front .utility {
  background: #202020;
  color: #f1eee8;
  font-size: 14px;
}
body.home-front .top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(290px, 1fr) minmax(250px, 0.77fr);
  gap: 14px;
  padding-top: 19px;
}
body.home-front .lead {
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  background: #111;
  text-decoration: none;
}
body.home-front .lead-media {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
}
body.home-front .lead-media img,
body.home-front .lead-media .lead-ph {
  position: static;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.07);
  opacity: 0.92;
  display: block;
}
body.home-front .lead-ph {
  background: linear-gradient(135deg, #444, #222);
  min-height: 320px;
}
body.home-front .lead-body {
  flex: 1 1 auto;
  background: #111;
  padding: 16px 18px 18px;
  margin: 0;
}
body.home-front .badge {
  position: absolute;
  top: 13px;
  left: 13px;
  background: var(--home-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  z-index: 1;
  line-height: 1.2;
}
body.home-front .lead-body h2 {
  font-size: clamp(29px, 3.4vw, 49px);
  line-height: 1.04;
  margin: 0 0 14px;
  color: #fff;
}
body.home-front .lead-body p {
  font-size: 15px;
  line-height: 1.38;
  margin: 0 0 22px;
  color: #eee;
}
body.home-front .meta {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 12px;
  flex-wrap: wrap;
}
body.home-front .lead .meta {
  font-size: 14px;
  font-weight: 600;
  color: #f2f2f2;
  opacity: 1;
}
body.home-front .lead .more {
  margin-left: auto;
  background: var(--home-red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 2px;
  transition: background 0.15s;
}
body.home-front .lead:hover .more { background: #fff; color: var(--home-red); }

body.home-front .headline-list {
  border-left: 1px solid var(--home-line);
  border-right: 1px solid var(--home-line);
  padding: 0 13px;
}
body.home-front .section-title {
  font-size: 21px;
  margin: 0 0 8px;
  border-bottom: 1px solid #9d988c;
  padding-bottom: 7px;
}
body.home-front .story {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #c0baae;
  min-height: 112px;
}
body.home-front .story:last-child { border: 0; }
body.home-front .story img,
body.home-front .story .story-ph {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(0.55);
}
body.home-front .story-ph { background: #c8c0b4; }
body.home-front .story h3 {
  font-size: 17px;
  line-height: 1.18;
  margin: 0 0 8px;
  font-weight: 700;
}
body.home-front .story small {
  font-size: 12px;
  color: #47433d;
  text-transform: uppercase;
}
body.home-front .story:hover h3 { color: var(--home-red); }

body.home-front .rail {
  border-left: 1px solid var(--home-line);
  padding-left: 13px;
}
body.home-front .mission {
  background: #1e1e1e;
  color: #f6f3ee;
  min-height: 236px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
body.home-front .mission::after {
  content: "◎";
  position: absolute;
  right: -30px;
  top: 5px;
  font-size: 175px;
  color: #ffffff19;
}
body.home-front .mission h2 {
  font-size: 29px;
  margin: 0 0 10px;
  line-height: 1;
}
body.home-front .mission p {
  position: relative;
  z-index: 1;
  max-width: 230px;
  line-height: 1.42;
  font-size: 15px;
  margin: 0;
}
body.home-front .mission em {
  display: block;
  text-align: right;
  font-size: 20px;
  margin-top: 15px;
  transform: rotate(-8deg);
  font-style: italic;
}
body.home-front .popular { margin-top: 17px; }
body.home-front .popular h2 {
  font-size: 19px;
  margin: 0;
  border-bottom: 1px solid var(--home-line);
  padding-bottom: 7px;
}
body.home-front .popular a {
  display: flex;
  gap: 15px;
  padding: 10px 5px;
  border-bottom: 1px solid #c0baae;
  font-size: 14px;
  line-height: 1.2;
}
body.home-front .popular b {
  color: var(--home-red);
  font-size: 23px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Гол мэдээний өндрөөр хажуугийн баганууд сунаж, доор нь хоосон зай үлдэхгүй */
@media (min-width: 1101px) {
  body.home-front .headline-list,
  body.home-front .rail {
    display: flex;
    flex-direction: column;
  }
  body.home-front .headline-list .story {
    flex: 1 1 auto;
    align-items: center;
  }
  body.home-front .popular {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  body.home-front .popular a {
    flex: 1 1 auto;
    align-items: center;
  }
}

body.home-front .category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}
body.home-front .card {
  padding: 9px 13px 10px;
  border-right: 1px solid var(--home-line);
}
body.home-front .card:first-child { padding-left: 0; }
body.home-front .card:last-child { border: 0; padding-right: 0; }
body.home-front .card h2 {
  display: flex;
  margin: 0 0 12px;
  border-bottom: 3px solid var(--home-red);
  font-size: 13px;
  line-height: 1;
}
body.home-front .card h2 span {
  background: var(--home-red);
  color: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 10px 6px;
}
body.home-front .card img,
body.home-front .card .card-ph {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 15%;
  filter: saturate(0.55);
}
body.home-front .card .card-box {
  display: block;
  color: inherit;
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--home-line);
}
body.home-front .card .card-box:last-of-type { border-bottom: 0; margin-bottom: 0; }
body.home-front .card .card-box img,
body.home-front .card .card-box .card-ph { aspect-ratio: auto; height: 150px; }
body.home-front .card .card-box h3 {
  font-size: 16px;
  line-height: 1.2;
  margin: 8px 0 6px;
  height: calc(1.2em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.home-front .card .card-box:hover h3 { color: var(--home-red); }
body.home-front .card-box-date {
  display: block;
  font-size: 12px;
  color: #47433d;
}
body.home-front .card-ph { background: #c8c0b4; }
body.home-front .card h3 {
  font-size: 18px;
  line-height: 1.12;
  margin: 9px 0 7px;
  font-weight: 700;
}
body.home-front .card p {
  font-size: 14px;
  line-height: 1.25;
  margin: 0 0 12px;
  min-height: 54px;
}
body.home-front .card .meta { color: #47433d; }
body.home-front .card > a { display: block; color: inherit; }
body.home-front .card:hover h3 { color: var(--home-red); }
body.home-front .story-ph,
body.home-front .lead-ph,
body.home-front .card-ph { display: block; width: 100%; }
body.home-front .card .issue-button {
  display: block;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px;
  margin-top: 14px;
}
body.home-front .card .issue-button:hover { background: #000; color: #fff; }

body.home-front .home-empty {
  padding: 40px 0;
  color: var(--home-muted);
  font-style: italic;
}

@media (max-width: 1100px) {
  body.home-front .top-grid { grid-template-columns: 1.4fr 1fr; }
  body.home-front .rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0;
    border: 0;
  }
  body.home-front .popular { margin: 0; }
  body.home-front .lead { min-height: 500px; }
}

@media (max-width: 720px) {
  body.home-front .page-wrap { padding: 0 16px; }
  body.home-front .top-grid { grid-template-columns: 1fr; }
  body.home-front .lead { min-height: 510px; }
  body.home-front .lead h2 { font-size: 35px; }
  body.home-front .headline-list { border: 0; padding: 0; }
  body.home-front .story { grid-template-columns: 110px 1fr; }
  body.home-front .rail { grid-template-columns: 1fr; }
  body.home-front .category-grid { grid-template-columns: repeat(2, 1fr); }
  body.home-front .card:nth-child(2) { border-right: 0; }
  body.home-front .card:nth-child(-n + 2) { border-bottom: 1px solid var(--home-line); }
  body.home-front .card:nth-child(3) { padding-left: 0; }
}

@media (max-width: 430px) {
  body.home-front .category-grid { grid-template-columns: 1fr; }
  body.home-front .card {
    border-right: 0;
    border-bottom: 1px solid var(--home-line);
    padding: 12px 0;
  }
  body.home-front .card:last-child { border: 0; }
  body.home-front .card img,
  body.home-front .card .card-ph { aspect-ratio: 16 / 11; }
  body.home-front .card p { min-height: 0; }
}
