/* =============================================================
 * gazette-issue.css
 *
 * Layout for single-gazette_issue.php.
 * (Beige page background + dark transparent header come from
 *  gazette-page.css; the list rows come from gazette-list-item.css.)
 *
 * Masthead + featured sit on the beige page background; the content
 * block below (feed + sidebar + nav) sits on white.
 * ============================================================= */

/* ---- Masthead (on beige) ----------------------------------- */
.gz-issue__masthead {
  text-align: center;
  padding: 28px 20px 8px;
}
.gz-issue__brand {
  margin: 0;
  font-family: "Cosmorant Garamond", serif;
  font-size: 86px;
  line-height: 1;
  color: #8A765C;
  font-style: italic;
}
.gz-issue__title {
  margin: 0px 0 0;
  font-family: "Work Sans" , serif;
  font-weight:600;
  letter-spacing: 0.2em;
  font-size: 20px;
  text-transform: uppercase;
  color: #211a15;
  line-height: 18px;
  margin-top: -5px;
}
.gz-issue__number {
  font-family: "Work Sans" , serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1240px;
  margin: 4px auto 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #211A15;
  padding: 0px 20px 0px;
  font-weight:600;
}
.gz-issue__number::before,
.gz-issue__number::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(85, 79, 79, 0.4);
}

/* ---- Featured row (on beige) ------------------------------- */
.gz-issue__featured {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 0px 40px;
}

/* ---- Content block (white) --------------------------------- */
.gz-issue__content {
  background: #fff;
}

.gz-issue__layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
}
@media (max-width: 900px) {
  .gz-issue__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---- Last In feed ------------------------------------------ */
.gz-issue__feed-title {
  margin: 0 0 8px;
  font-family: "Cosmorant Garamond", serif;
  font-style: italic;
  font-size: 52px;
  color: #211a15;
  font-style:italic;
}

/* ---- Sidebar ----------------------------------------------- */
.gz-issue__sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top:20px;
  border-radius:5px;
}

/* Editorial card */
.gz-editorial {
  background: #f4f2ef;
  padding: 30px 50px 30px 30px;
}
.gz-editorial__title {
  margin: 0 0 14px;
  font-family: Georgia, "Cosmorant Garamond", serif;
  font-size: 22px;
  color: #211a15;
  font-style: italic;
}

.gz-editorial__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.gz-editorial__byline img {
  border-radius: 50%;
}
.gz-editorial__byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.gz-editorial__author {
    font-family: "Cosmorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  color: #A6032F;            /* имя — винно-красным */
}
.gz-editorial__by {
  color: #C7BDB0;  
  font-family: "Cosmorant Garamond", serif;          /* "By" приглушённым */
}
.gz-editorial__role {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  font-family: "Work Sans", serif;
  font-weight:600;

}

.gz-editorial__body {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing:0.18px;
  color: #4a4540;
  text-transform: uppercase;
      font-family: "Work Sans", serif;

}
.gz-editorial__body p {
      font-weight:400;
}

.gz-editorial__body_2 {
  font-size: 13px;
  line-height: 1.65;
  color: #4a4540;
    font-family: "Work Sans", serif;
    margin-top:40px;
}

/* Wine of the Month card */
.gz-wotm {
  position: relative;
  overflow: hidden;
  background-color: #8c0335;
  color: #fff;
  border-radius:5px;
}
/* Decorative grape watermark behind the content.
   background-position:center keeps the cluster centred — its left side is
   no longer clipped. Use 'contain' instead of 'cover' to show the whole cluster. */
.gz-wotm::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/back_wine.png);
  background-repeat: no-repeat;
  background-position: right 40px center;
  background-size: contain;
               /* было 0.22 — теперь заметнее */
  mix-blend-mode: soft-light;    /* делает гроздь тон-в-тон, но видимой */
  pointer-events: none;
  width: auto !important;
height: auto !important;
visibility: visible !important;
overflow: visible !important;
}
.gz-wotm__inner {
  position: relative;            /* sit above the watermark */
  z-index: 1;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.gz-wotm__eyebrow {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 24px;
}
.gz-wotm__month {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gz-wotm__suggested {
  margin: 2px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.gz-wotm__name {
  margin: 22px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
}
.gz-wotm__actions > .gz-wotm__details { color: #FFF !important; }
.gz-wotm__name a { color: #fff !important; text-decoration: none; }
.gz-wotm__maker {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 15px;
  opacity: 0.85;
}
.gz-wotm__bottle {
  display: block;
  text-align: center;
  margin: 18px 0;
}
.gz-wotm__bottle img {
  max-height: 320px;
  width: auto;
  display: inline-block;
}
.gz-wotm__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.gz-wotm__price {
  align-self: flex-end;          /* price on its own line, right-aligned;
                                    change to center/flex-start to move it */
  position: relative;
  z-index: 1;
  margin-top: -52px;             /* pull the panel up so it overlaps the bottle */
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.12);   /* slightly lighter than the card bg */
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  width: 160px;
  text-align: right;
  border-radius:5px;
}

/* DETAILS + ADD as two equal halves */
.gz-wotm__actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-end;     /* push both buttons to the right */
}
.gz-wotm__actions > .gz-wotm__details,
.gz-wotm__actions > .np-focus-wine-card-cart-wrap {
  flex: 0 0 auto !important;
  width: 130px !important;       /* equal, shorter — tune this value */
  min-width: 0 !important;
  max-width: none !important;
}
.gz-wotm .np-focus-wine-card-cart-wrap {
  display: flex !important;      /* so the ADD button fills its half */
}

.gz-wotm__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: #c7b8a4;     /* beige (per layout) */
  color: #4a3f36; 
  border-radius:5px; 
  min-height:46px;        /* dark text on the beige */
}

/* IMPORTANT: the ADD button also carries .np-focus-wine-card-cart, which is
   styled as a small coloured icon button by the product-card CSS. The combined
   selector below has higher specificity and resets it to the white pill. */
.gz-wotm__add.np-focus-wine-card-cart {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #7a0b2e !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius:5px !important;
  min-height: 46px;
}
/* kill the small coloured icon square the card CSS draws */
.gz-wotm__add.np-focus-wine-card-cart .np-focus-wine-card-cart__icon {
  background: transparent !important;
  width: 18px !important;
  height: 18px !important;
}
/* Recolour the shared cart icon (white by default) so it shows on the white
   ADD button — covers the default icon AND the JS loading/added icons. */
.gz-wotm__add .np-focus-wine-card-cart__icon { display: inline-flex; width: 18px; height: 18px; }
.gz-wotm__add .np-focus-wine-card-cart__icon svg { width: 18px; height: 18px; }
.gz-wotm__add .np-focus-wine-card-cart__icon svg path { fill: #7a0b2e; }
.gz-wotm__add .np-focus-wine-card-cart__icon svg { stroke: #7a0b2e; }

/* ---- Previous / next issue --------------------------------- */
.gz-issue__nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px 60px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.gz-issue__nav a {
  color: #211a15;
  text-decoration: none;
  font-weight: 600;
}
.gz-issue__nav a:hover {
  color: #ED1C24;
}
.gz-issue__nav-next {
  margin-left: auto;
  text-align: right;
}

/* ---- Featured content (4 columns + sponsor) ---------------- */
.gz-featured__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  color: #211a15;
}
.gz-featured__showall {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #6b655f;
  text-decoration: none;
}
.gz-featured__showall:hover { color: #ED1C24; }

.gz-featured__grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 200px;
  gap: 16px;
  align-items: stretch;
}

/* Category card */
.gz-featured__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 22px 20px;
  background: #e8ddce;
  text-decoration: none;
}
.gz-featured__icon { display: inline-flex; }
.gz-featured__icon svg { width: 26px; height: 26px; }
.gz-featured__icon svg path { fill: var(--gz-fc-accent, #8a6d3b); }

.gz-featured__eyebrow {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.2;
  color: var(--gz-fc-accent, #8a6d3b);
}
.gz-featured__title {
    font-family: "Work Sans", serif;
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #211a15;
}

/* Sponsor plate (wiize_render_vignette_180) */
.gz-featured__sponsor {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    text-align: left;
    background: #A6032F;
    color: #fff;
    padding: 40px;
    border-radius:5px;
    font-family: "Work Sans", serif;
}
.gz-featured__sponsor-label { font-weight: 700; font-size: 24px; line-height: 1.2; }
.gz-featured__sponsor-size  { font-size: 22px;
    opacity: 0.85;
    margin-top: 4px;
    color: #FFF;
    line-height: 16px; }
.gz-featured__sponsor-img   { max-width: 100%; height: auto; display: block; }

/* RWD */
@media (max-width: 1024px) {
  .gz-featured__grid { grid-template-columns: repeat(2, 1fr); }
  .gz-featured__sponsor { grid-column: span 2; min-height: 120px; }
}
@media (max-width: 560px) {
  .gz-featured__grid { grid-template-columns: 1fr; }
  .gz-featured__sponsor { grid-column: auto; }
}

/* ---- Empty state ("No posts in this issue yet.") ----------- */
.gz-issue__empty {
  margin: 8px 0 0;
  padding: 24px 0;
  font-style: italic;
  color: #9a948e;
}

.gazette .np-focus-selection-section {
  padding-top: 30px;
  padding-bottom:0px;
}

.gazette .np-focus-banner-section{
  padding-bottom:60px;
  margin-top:-60px;
}

.gazette .np-featured-section {
  padding:2% 0px !important;
}

/* SINGLE article */
.cat-editorial {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

.cat-editorial__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, auto); /* date, title, byline, thumb, excerpt, more */
    column-gap: 32px;
    row-gap: 0;                          /* вертикальные отступы дают margin'ы внутри карточки */
    margin-bottom: 32px;
}

.cat-editorial__card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;       /* карточка занимает все 6 строк ряда */
    align-items: start;     /* элементы прижаты к верху своей дорожки, без растягивания */
}
.cat-editorial__date { font-style: italic;
  font-family: "Cosmorant Garamond", serif;
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600; }
.cat-editorial__card-title {     margin: 0 0 8px;
    font-family: "Work Sans", sans-serif;
    line-height: 46px;
    font-size: 46px;}
.cat-editorial__card-title a { text-decoration: none; color: inherit;     font-family: "Work Sans", sans-serif; text-transform:uppercase;font-family: "Work Sans", sans-serif;
font-weight: 200; }

.cat-editorial__byline { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cat-editorial__avatar { border-radius: 50%; }

.cat-editorial__thumb { margin: 0 0 12px; }
.cat-editorial__thumb img { width: 100%; height: auto; display: block; }
.cat-editorial__caption { font-size: 11px; opacity: .6; margin-top: 4px; }

.cat-editorial__excerpt { margin-bottom: 16px;   font-family: "Work Sans", sans-serif; font-size: 14px; font-weight: 400; text-transform: uppercase;}

.cat-editorial__more {
    justify-self: start;
    display: inline-block;
    padding: 8px 18px;
    background: #c8884e;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .05em;
     font-family: "Work Sans", sans-serif; font-weight: 500; border-radius:5px;
}

.category-almanac .cat-editorial__more {
  background: #336686;
}

.category-story .cat-editorial__more {
  background: #08A900;
}


.np-focus-banner-section { margin: 0 0 32px; }

.cat-editorial__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 16px; margin-bottom: 40px;}
.cat-editorial__pagination .page-numbers { padding: 6px 12px; text-decoration: none; }
.cat-editorial__pagination .current { font-weight: 700; }

@media (max-width: 768px) {
    .cat-editorial__row {
        display: block;          /* отключаем грид-выравнивание */
    }
    .cat-editorial__card {
        display: flex;
        flex-direction: column;
        margin-bottom: 32px;
    }
}

.article_list {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cat-editorial__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    margin-bottom: 32px;
}
.cat-editorial__head-main { display: flex; flex-direction: column; }
.cat-editorial__icon svg { display: block; width: 34px; height: auto; }
.cat-editorial__title {
    margin: 12px 0 6px;
    font-family: "Cosmorant Garamond", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 48px;
    line-height: 1;
    color: #211a15;
}
.cat-editorial__subtitle {
    margin: 0;
    font-family: "Work Sans", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #211a15;
}
.cat-editorial__sponsor {
    flex: 0 0 auto;
    width: var(--sp-w, 180px);
    /*height: var(--sp-h, 110px);*/
        min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 22px;
    background: #A6032F;
    color: #fff;
    border-radius: 4px;
    font-family: "Work Sans", sans-serif;
}
.cat-editorial__sponsor-label { font-weight: 700; font-size: 18px; line-height: 1.15; }
.cat-editorial__sponsor-size  { font-size: 16px; opacity: .55; margin-top: 2px; }
.cat-editorial__sponsor-img   { max-width: 100%; max-height: 100%; display: block; margin: auto; }