/* dv-vivino: "Recenzii de pe [Vivino]" on a wine page and "Doina Vin pe [Vivino]" on a house page.
   Redesign 2026-11-01 (owner: "Vivino logo on all of them, better layout and design"): Vivino's own logo in the heading,
   on the button and as a small mark per card (attribution only, colours untouched); the count as plain text with the
   date muted; warm paper cards of the dv-reviews system (--dvrv-paper, hairline, the amber stars), each a link as a
   whole (the name's link stretched over the card, the focus ring drawn on the card); equal heights; three columns from
   900 px, two from 600 px, a swipe row with the next card peeking in on a phone (the kit's .dvh-cards--strip pattern).
   Kit tokens only. */
.dvviv .dvh-container { display: grid; gap: var(--sp-5); }
/* Inside "Ce spun despre acest vin" (2026-11-01, owner "Isn't the spacing too big?"): a sub-block full width under the
   section's grid, like the Google block of the tour pages (hairline, kit gaps); on its own (reviews closed) a compact
   section. */
.dvviv--in { display: grid; gap: var(--sp-5); min-inline-size: 0; padding-block-start: var(--sp-6); border-block-start: 1px solid var(--line); }
.dvviv--solo { padding-block: var(--section-inner); }

/* ---- Head: heading with the logo, the plain count line, the one button ---------------------------------------- */
.dvviv__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); }
.dvviv__text { display: grid; gap: var(--sp-2); min-inline-size: 0; }
.dvviv__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-title); text-wrap: balance; }
/* The logo's wordmark sits on the text baseline: its baseline is at 78.6 % of the lockup's height. */
.dvviv__logo { display: inline-block; block-size: 1.15em; inline-size: auto; vertical-align: -.246em; margin-inline-start: .08em; }
.dvviv__count { margin: 0; max-inline-size: 60ch; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); text-wrap: pretty; }
.dvviv__asof { color: var(--muted); font-size: var(--fs-meta); white-space: nowrap; }
.dvviv__btn { gap: var(--sp-2); }
.dvviv__btnlogo { display: inline-block; block-size: 1.15em; inline-size: auto; vertical-align: -.246em; margin-inline-start: .1em; }
.dvviv__arrow { font-size: 1.05em; line-height: 1; }
.dvviv a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- Cards ------------------------------------------------------------------------------------------------------ */
.dvviv__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.dvviv__cards > li { display: flex; min-inline-size: 0; }
.dvviv-card {
  position: relative; flex: 1; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: 20px 22px 18px; background: var(--dvrv-paper, #FAF6EC); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-media);
  transition: border-color var(--dur-hover) ease;
}
.dvviv-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-block-size: 20px; }
.dvviv-card__stars { display: inline-flex; align-items: center; }
.dvviv-card__logo { display: block; flex: none; block-size: 16px; inline-size: auto; }
.dvviv-card__q { margin: 0; }
.dvviv-card__mark { display: block; block-size: .42em; margin-block-end: var(--sp-2); font-family: var(--font-display); font-size: 2.75rem; line-height: .9; color: var(--line); user-select: none; }
.dvviv-card__q p { margin: 0; max-inline-size: 60ch; font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; overflow-wrap: anywhere; }
.dvviv-card__q p + p { margin-block-start: var(--sp-2); }
.dvviv-card__by { margin-block-start: auto; padding-block-start: var(--sp-1); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
.dvviv-card__link { color: var(--ink); font-weight: var(--fw-ui); text-decoration: none; }
.dvviv-card__link::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius-media); }
.dvviv .dvviv-card__link:focus-visible { outline: none; }
.dvviv-card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.dvviv-card__lang { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .dvviv-card:hover { border-color: var(--control); }
  .dvviv-card:hover .dvviv-card__who { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
}

/* "Mai multe": the rest under a quiet disclosure, close to the cards */
.dvviv__more { margin-block-start: calc(var(--sp-1) - var(--sp-5)); }
.dvviv__more > summary { list-style: none; cursor: pointer; inline-size: fit-content; }
.dvviv__more > summary::-webkit-details-marker { display: none; }
.dvviv__more[open] > .dvviv__cards { margin-block-start: var(--sp-3); }

.dvviv__note { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }

@media (min-width: 600px) { .dvviv__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dvviv__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Phone: a swipe row to the screen edge, the next card peeking in; the button full width */
@media (max-width: 599.98px) {
  .dvviv__btn { inline-size: 100%; justify-content: center; }
  .dvviv__asof { display: block; }
  .dvviv__asof > [aria-hidden] { display: none; }
  .dvviv__cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--sp-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--page-gutter)); padding: 4px var(--page-gutter); margin-block: -4px;
    scroll-padding-inline: var(--page-gutter);
  }
  .dvviv__cards::-webkit-scrollbar { display: none; }
  .dvviv__cards > li { scroll-snap-align: start; }
  .dvviv__cards:has(> li:only-child) { grid-auto-columns: 100%; }
  .dvviv-card { padding: 18px 18px 16px; }
}

/* ---- Category summary (2026-11-01): house pages, style pages, the catalogue --------------------------------------
   The cards of the wine page plus the wine each excerpt is about (a link above the card's stretched link). */
.dvviv-card__wine { margin: auto 0 0; font-size: var(--fs-meta); line-height: var(--lh-meta); }
.dvviv-card__wine + .dvviv-card__by { margin-block-start: 0; }
.dvviv-card__wine a { position: relative; z-index: 1; color: var(--link); font-weight: var(--fw-ui); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.dvviv-card__wine a:hover { text-decoration-thickness: 2px; }
.dvh-section.dvviv--sum { padding-block: var(--section-inner); }
/* Right after a plain section ("Medalii și note"): its bottom padding is the gap (--sp-7), not padding + padding. */
.dvh-section:not(.dvh-surface):not(.dvh-band) + .dvh-section.dvviv--sum,
.dvh-section:not(.dvh-surface):not(.dvh-band) + .dvh-section.dvviv--house { margin-block-start: calc(var(--sp-7) - var(--section)); padding-block-start: 0; }
.dvviv--style { display: grid; gap: var(--sp-5); padding-block: var(--sp-6); }
.dvs-faq + .dvviv--style { padding-block-start: var(--sp-2); }
.dvviv--shop { display: grid; gap: var(--sp-5); min-inline-size: 0; margin-block-start: var(--sp-5); padding-block-start: var(--sp-6); border-block-start: 1px solid var(--line); }
@media (min-width: 900px) and (max-width: 1279.98px) { .dvviv--shop .dvviv__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- The small panel with the winery link (no linked wine on the page) ---------------------------------------- */
.dvh-section.dvviv--house { padding-block: var(--section-inner); }
.dvviv--house .dvviv__head { padding: var(--sp-5) var(--sp-6); background: var(--dvrv-paper, #FAF6EC); border: 1px solid var(--line); border-radius: var(--radius-media); align-items: center; }
@media (max-width: 599.98px) { .dvviv--house .dvviv__head { padding: var(--sp-5); } }

@media (forced-colors: active) {
  .dvviv-card { border-color: CanvasText; }
}
