/* Single blog post — markup from inc/blog-article.php. Scoped to .bp so the
   shared ka/blog.css (post pages used to load it) stays untouched. */

.blog-article {
  background: #faf7f3;
}

.bp {
  --bp-wine: #7b1e2b;
  --bp-ink: #231a17;
  --bp-muted: #6f625c;
  --bp-line: #eadfd6;
  /* type scale — reapplied for ka at the end of the file */
  --bp-h1: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --bp-text: 1.0625rem;
  --bp-h2: 1.375rem;
  --bp-h3: 1.175rem;
  --bp-h4: 1.05rem;
  --bp-section: 1.3rem;
  --bp-card-title: 1rem;
  --bp-cta-title: clamp(1.35rem, 1rem + 1.2vw, 1.625rem);
  --bp-cta-text: 1rem;
  color: var(--bp-ink);
  text-transform: none;
  padding-bottom: 72px;
}

body.lang-ka.blog-article .bp,
body.lang-ka.blog-article .bp *:not(.fas):not(.far):not(.fal):not(.fab):not(.fa),
body.lang-ka.blog-article .bp h1,
body.lang-ka.blog-article .bp h2,
body.lang-ka.blog-article .bp h3,
body.lang-ka.blog-article .bp p,
body.lang-ka.blog-article .bp li,
body.lang-ka.blog-article .bp a,
body.lang-ka.blog-article .bp button {
  text-transform: none !important;
}

.bp-progress {
  position: fixed;
  top: 98px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bp-wine, #7b1e2b);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 40;
}

.bp-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.bp-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- hero --- */

.bp-hero {
  padding: calc(98px + 40px) 0 8px;
}

.bp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--bp-muted);
  font-size: .92rem;
}

.bp-crumbs a {
  color: var(--bp-muted);
  text-decoration: none;
}

.bp-crumbs a:hover {
  color: var(--bp-wine);
}

.bp-hero h1 {
  margin: 0 0 18px;
  font-size: var(--bp-h1);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: left;
  color: var(--bp-ink);
}

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  color: var(--bp-muted);
  font-size: .92rem;
}

.bp-meta > * + *::before {
  content: "·";
  margin: 0 10px;
  color: #c4b8b0;
}

.bp-meta i {
  margin-right: 4px;
}

.bp-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip) 12%, #fff);
  color: var(--chip);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.bp-chip:hover {
  background: var(--chip);
  color: #fff;
}

.bp-heroimg {
  max-width: 740px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.bp-heroimg img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 390px;
  object-fit: cover;
  border-radius: 16px;
  background: #efe6de;
  box-shadow: 0 8px 28px rgba(35, 26, 23, .10);
}

/* --------------------------------------------------------------- prose --- */

.bp-prose {
  padding-top: 36px;
  padding-bottom: 12px;
  font-size: var(--bp-text);
  line-height: 1.8;
}

.bp-prose p {
  margin: 0 0 1.15em;
}

.bp-prose h2,
.bp-prose h3,
.bp-prose h4 {
  text-align: left;
  color: var(--bp-ink);
  line-height: 1.3;
  margin: 1.7em 0 .55em;
}

.bp-prose h2 { font-size: var(--bp-h2); }
.bp-prose h3 { font-size: var(--bp-h3); }
.bp-prose h4 { font-size: var(--bp-h4); }

.bp-prose a {
  color: var(--bp-wine);
  text-underline-offset: 3px;
}

.bp-prose strong {
  font-weight: 700;
}

.bp-prose ul,
.bp-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.bp-prose li {
  margin: .35em 0;
}

.bp-prose li::marker {
  color: var(--bp-wine);
}

.bp-prose img {
  display: block;
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  margin: 1.4em auto;
  border-radius: 14px;
}

/* --------------------------------------------------------------- share --- */

.bp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--bp-line);
}

.bp-share__label {
  margin-right: 4px;
  color: var(--bp-muted);
  font-size: .92rem;
}

.bp-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bp-ink);
  font: inherit;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.bp-share__btn:hover,
.bp-share__btn:focus-visible {
  border-color: var(--bp-wine);
  color: var(--bp-wine);
}

.bp-share__btn.is-done {
  border-color: var(--bp-wine);
  color: var(--bp-wine);
}

/* ------------------------------------------------------------- related --- */

.bp-related {
  margin-top: 56px;
}

.bp-related h2 {
  margin: 0 0 20px;
  font-size: var(--bp-section);
  text-align: left;
}

.bp-rel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bp-rel__card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(35, 26, 23, .05), 0 8px 24px rgba(35, 26, 23, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.bp-rel__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(35, 26, 23, .12);
}

.bp-rel__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #efe6de;
  overflow: hidden;
}

.bp-rel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-rel__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2rem;
  color: rgba(123, 30, 43, .35);
}

.bp-rel__body {
  padding: 16px 18px 18px;
}

.bp-rel__body time {
  color: var(--bp-muted);
  font-size: .82rem;
}

.bp-rel__body h3 {
  margin: 8px 0 0;
  font-size: var(--bp-card-title);
  line-height: 1.35;
  text-align: left;
}

.bp-rel__body h3 a {
  color: var(--bp-ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bp-rel__body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bp-rel__card:has(:focus-visible) {
  outline: 3px solid rgba(123, 30, 43, .45);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------- cta --- */

.bp-cta {
  margin-top: 56px;
}

.bp-cta__card {
  padding: 48px 40px;
  border-radius: 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(600px 220px at 100% 0, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #7b1e2b 0%, #5a1520 100%);
}

.bp-cta h2 {
  margin: 0 0 10px;
  font-size: var(--bp-cta-title);
  text-align: center;
  color: #fff;
}

.bp-cta p {
  max-width: 520px;
  margin: 0 auto 26px;
  font-size: var(--bp-cta-text);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}

.bp-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bp-cta__primary,
.bp-cta__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.bp-cta__primary {
  background: #fff;
  color: var(--bp-wine);
}

.bp-cta__primary:hover {
  background: transparent;
  color: #fff;
}

.bp-cta__ghost {
  background: transparent;
  color: #fff;
}

.bp-cta__ghost:hover {
  background: #fff;
  color: var(--bp-wine);
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1080px) {
  .bp-progress {
    top: 64px;
  }

  .bp-hero {
    padding-top: calc(64px + 28px);
  }
}

@media (max-width: 760px) {
  .bp-wrap,
  .bp-wide,
  .bp-heroimg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bp-heroimg {
    margin-top: 20px;
  }

  .bp-heroimg img {
    aspect-ratio: 3 / 2;
    max-height: 260px;
    border-radius: 12px;
  }

  .bp-prose img {
    max-height: 320px;
  }

  .bp {
    --bp-text: 1rem;
    --bp-h2: 1.25rem;
    --bp-h3: 1.1rem;
    --bp-section: 1.2rem;
  }

  .bp-prose {
    padding-top: 26px;
  }

  .bp-rel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bp-cta__card {
    padding: 32px 20px;
  }

  .bp-cta__primary,
  .bp-cta__ghost {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-rel__card,
  .bp-progress {
    transition: none;
  }
}

/* georgian-styles.css sizes every ka h1–h3 and p with !important; these
   selectors outrank it so the scale above holds on Georgian pages too. */
body.lang-ka.blog-article .bp-hero h1 { font-size: var(--bp-h1) !important; }
body.lang-ka.blog-article .bp-prose p { font-size: var(--bp-text) !important; }
body.lang-ka.blog-article .bp-prose h2 { font-size: var(--bp-h2) !important; }
body.lang-ka.blog-article .bp-prose h3 { font-size: var(--bp-h3) !important; }
body.lang-ka.blog-article .bp-related h2 { font-size: var(--bp-section) !important; }
body.lang-ka.blog-article .bp-rel__body h3 { font-size: var(--bp-card-title) !important; }
body.lang-ka.blog-article .bp-cta h2 { font-size: var(--bp-cta-title) !important; }
body.lang-ka.blog-article .bp-cta p { font-size: var(--bp-cta-text) !important; }

/* ------------------------------------------------ wine tasting box --- */
/* Shown after the post text when the post has show_tasting = 1. */

.bp-tasting {
  margin-top: 8px;
  margin-bottom: 28px;
}

.bp-tasting__card {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 26px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fbf4ee 100%);
  border: 1px solid var(--bp-line);
  box-shadow: 0 10px 30px rgba(35, 26, 23, .06);
  overflow: hidden;
}

.bp-tasting__card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bp-wine);
}

.bp-tasting__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bp-wine);
  color: #fff;
  font-size: 1.35rem;
}

.bp-tasting__body {
  min-width: 0;
  flex: 1;
}

.bp-tasting__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #b8862f;
}

.bp-tasting h2 {
  margin: 0 0 6px;
  text-align: left;
  font-size: var(--bp-h3);
  line-height: 1.3;
  color: var(--bp-ink);
}

.bp-tasting p {
  margin: 0 0 14px;
  color: var(--bp-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.bp-tasting__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.bp-tasting__facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bp-tasting__facts li > i {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f4e7e4;
  color: var(--bp-wine);
  font-size: .9rem;
}

.bp-tasting__facts small {
  display: block;
  font-size: .75rem;
  color: var(--bp-muted);
}

.bp-tasting__facts a {
  color: var(--bp-ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

.bp-tasting__facts a:hover {
  color: var(--bp-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-tasting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp-tasting__primary,
.bp-tasting__ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.bp-tasting__primary {
  background: var(--bp-wine);
  color: #fff;
}

.bp-tasting__primary:hover {
  color: #fff;
  transform: translateY(-1px);
  background: #611622;
}

.bp-tasting__ghost {
  border: 1px solid var(--bp-wine);
  color: var(--bp-wine);
  background: #fff;
}

.bp-tasting__ghost:hover {
  background: var(--bp-wine);
  color: #fff;
}

@media (max-width: 560px) {
  .bp-tasting__card {
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }

  .bp-tasting__icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .bp-tasting__actions a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

body.lang-ka.blog-article .bp-tasting__kicker {
  letter-spacing: .02em;
}
