/* =============================================================================
   News: post cards, newspaper grids (home block + news index), single article, sidebar.
   ============================================================================= */

/* ---------- Home news block ---------- */
.dmh-news__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.dmh-news__mid { display: grid; gap: 22px; align-content: start; }
.dmh-news__side { padding-left: clamp(0px, 2vw, 24px); border-left: 1px solid var(--dmh-line); }
.dmh-news__side-title, .dmh-side__title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--dmh-navy-800);
  color: var(--dmh-brand); font-size: 0.75rem; font-weight: 700; letter-spacing: var(--dmh-tracking-label); text-transform: uppercase;
}
.dmh-news__list { margin: 0; padding: 0; list-style: none; counter-reset: dmh-n; }
.dmh-news__list li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px dashed var(--dmh-line); counter-increment: dmh-n; }
.dmh-news__list li::before {
  content: counter(dmh-n, decimal-leading-zero); position: absolute; left: 0; top: 12px;
  color: var(--dmh-gold-500); font-size: 1.15rem; font-weight: 700; line-height: 1;
}
.dmh-news__list li:last-child { border-bottom: 0; }

/* ---------- News index (newspaper) ---------- */
.dmh-blog { padding-bottom: var(--dmh-section); }
.dmh-blog__header { padding-block: 10px 18px; border-bottom: 3px double var(--dmh-line-strong); margin-bottom: 22px; }
.dmh-blog__title { margin: 6px 0 0; font-size: var(--dmh-text-h1); font-weight: 700; }
.dmh-blog__desc { margin: 6px 0 0; color: var(--dmh-text-muted); }
.dmh-blog__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); padding-bottom: 26px; border-bottom: 1px solid var(--dmh-line); }
.dmh-blog__top-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.dmh-blog__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 40px); padding-top: 26px; }
.dmh-blog__section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--dmh-line); }
.dmh-blog__section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dmh-blog__section-head h2 { position: relative; margin: 0; padding-left: 12px; font-size: var(--dmh-text-h3); }
.dmh-blog__section-head h2::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 4px; border-radius: 4px; background: var(--dmh-gold-gradient); }
.dmh-blog__section-head a { font-size: var(--dmh-text-sm); font-weight: 600; text-decoration: none; }
.dmh-blog__section-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.dmh-blog__section-list { display: grid; gap: 14px; align-content: start; }
.dmh-blog__list { display: grid; gap: 18px; }
.dmh-blog__list .dmh-post--row { padding-bottom: 18px; border-bottom: 1px solid var(--dmh-line); }

/* ---------- Sidebar ---------- */
.dmh-side { display: grid; gap: 26px; align-content: start; }
.dmh-side__box { padding: 16px; border: 1px solid var(--dmh-line); border-radius: var(--dmh-radius-leaf); background: var(--dmh-white); }
.dmh-side__products { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dmh-side__products a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--dmh-text); text-decoration: none; }
.dmh-side__products img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--dmh-stage); mix-blend-mode: multiply; }
.dmh-side__products strong { display: -webkit-box; overflow: hidden; font-size: 0.82rem; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dmh-side__products .dmh-price { margin-top: 2px; }
.dmh-side__products .dmh-price__now { font-size: 0.9rem; }
.dmh-side__cats { margin: 0; padding: 0; list-style: none; }
.dmh-side__cats a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--dmh-line); color: var(--dmh-text); font-size: var(--dmh-text-sm); text-decoration: none; }
.dmh-side__cats a:hover { color: var(--dmh-brand); }
.dmh-side__sticky { position: sticky; top: calc(var(--dmh-header-h) + var(--dmh-adminbar) + 16px); display: grid; gap: 26px; }

/* ---------- Single article ---------- */
.dmh-article { display: grid; grid-template-columns: minmax(0, 900px) 320px; justify-content: space-between; gap: clamp(20px, 3vw, 44px); padding-bottom: var(--dmh-section); }
.dmh-article__head { padding-block: 10px 18px; }
.dmh-article__title { margin: 8px 0 10px; font-size: var(--dmh-text-h1); font-weight: 700; line-height: 1.22; }
.dmh-article__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--dmh-text-muted); font-size: 0.8rem; }
.dmh-article__cover { margin: 0 0 22px; border-radius: var(--dmh-radius-leaf); overflow: hidden; }
.dmh-article__cover img { width: 100%; }
.dmh-article__lead { margin: 0 0 18px; padding: 16px 18px; border-left: 3px solid var(--dmh-gold-500); border-radius: 0 var(--dmh-radius-sm) var(--dmh-radius-sm) 0; background: var(--dmh-white); font-size: 1.02rem; font-weight: 600; }
.dmh-toc { margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--dmh-line); border-radius: var(--dmh-radius-leaf-sm); background: var(--dmh-surface-alt); }
.dmh-toc summary { color: var(--dmh-brand); font-size: 0.78rem; font-weight: 700; letter-spacing: var(--dmh-tracking-label); text-transform: uppercase; cursor: pointer; }
.dmh-toc ol { margin: 10px 0 0; padding-left: 20px; }
.dmh-toc li { padding: 3px 0; font-size: var(--dmh-text-sm); }
.dmh-toc a { text-decoration: none; }
.dmh-prose { font-size: 1rem; line-height: 1.75; }
.dmh-prose a { text-decoration: underline; } /* content links: not by colour alone (WCAG 1.4.1) */
.dmh-prose > * + * { margin-top: 1em; }
.dmh-prose h2 { margin-top: 1.6em; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); scroll-margin-top: calc(var(--dmh-header-h) + var(--dmh-adminbar) + 16px); }
.dmh-prose h3 { margin-top: 1.3em; font-size: 1.08rem; scroll-margin-top: calc(var(--dmh-header-h) + var(--dmh-adminbar) + 16px); }
.dmh-prose img { border-radius: var(--dmh-radius-sm); }
.dmh-prose ul, .dmh-prose ol { padding-left: 1.3em; }
.dmh-prose li + li { margin-top: 0.35em; }
.dmh-prose table { width: 100%; border-collapse: collapse; font-size: var(--dmh-text-sm); }
.dmh-prose th, .dmh-prose td { padding: 9px 12px; border: 1px solid var(--dmh-line); text-align: left; }
.dmh-prose th { background: var(--dmh-navy-800); color: var(--dmh-white); }
.dmh-prose tr:nth-child(even) td { background: var(--dmh-surface-alt); }
.dmh-prose blockquote { margin-inline: 0; padding: 12px 16px; border-left: 3px solid var(--dmh-gold-500); background: var(--dmh-white); font-style: normal; }
.dmh-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--dmh-line); font-size: var(--dmh-text-sm); }
.dmh-share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--dmh-line); border-radius: var(--dmh-radius-pill); color: var(--dmh-text); text-decoration: none; }
.dmh-related { margin-top: 32px; }
.dmh-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .dmh-news__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .dmh-news__side { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .dmh-news__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .dmh-blog__body, .dmh-article { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1023px) {
  .dmh-blog__top, .dmh-blog__body, .dmh-article { grid-template-columns: 1fr; }
  .dmh-side__sticky { position: static; }
}
@media (max-width: 767px) {
  .dmh-news__grid { grid-template-columns: 1fr; }
  .dmh-news__list { grid-template-columns: 1fr; }
  .dmh-blog__top-side, .dmh-blog__section-grid { grid-template-columns: 1fr; }
  .dmh-related__grid { grid-template-columns: 1fr; }
}
