/* Whisky Returns — per-article styles.
   Generated from the whisky-design-system tokens (colors_and_type.css).
   Every rule is scoped under .wr-article so the block can be inlined into
   WordPress post content without leaking into the surrounding theme —
   works inside the current Elementor wrapper AND after Elementor is gone.
   Fonts (Poppins / PT Serif / PT Sans) are loaded by the live theme already. */

.wr-article {
  --cask: #5A2A15;
  --amber: #C8912F;
  --cask-50: #F6EEE8;
  --cask-100: #E7D4C6;
  --amber-50: #FAF1DE;
  --fg-1: #111111;   /* body text — near-black, no brown cast */
  --fg-2: #333333;
  --fg-3: #555555;   /* notes / comments */
  --fg-4: #888888;   /* faint meta (updated line) */
  --fg-heading: #000000;
  --bg-1: #FFFFFF;
  --bg-2: #FBF9F6;
  --bg-3: #F4EFE9;
  --border-1: #EBE4DA;
  --border-2: #D8CDBE;
  --font-h: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-b: 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-n: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --sh-1: 0 1px 2px rgba(58,38,22,.06);
  --sh-2: 0 4px 14px rgba(58,38,22,.08);
  font-family: var(--font-b);
  font-size: 20px;
  line-height: 32px;
  color: var(--fg-1);
}

.wr-article h2, .wr-article h3 {
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--fg-heading);
  letter-spacing: -0.01em;
}
.wr-article h2 { font-size: 32px; line-height: 1.25; margin: 56px 0 20px; }
.wr-article h3 { font-size: 22px; line-height: 1.3;  margin: 36px 0 14px; }
.wr-article p  { margin: 0 0 1em; }
.wr-article a  { color: var(--cask); text-decoration: none; border-bottom: 1px solid var(--cask-100); }
.wr-article a:hover { color: var(--amber); border-bottom-color: currentColor; }
.wr-article ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.wr-article li { margin-bottom: 8px; }

/* --- hero: intro text + bottle image ------------------------------- */
.wr-hero { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; }
.wr-hero-text { flex: 1 1 60%; }
.wr-hero-img  { flex: 0 1 36%; margin: 0; text-align: center; }
.wr-hero-img img {
  max-width: 225px; width: 100%; height: auto;
  border-radius: var(--r-lg);
}

/* --- author byline ------------------------------------------------------ */
.wr-byline {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-family: var(--font-n);
}
.wr-byline img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.wr-byline-name  { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--fg-1); }
.wr-byline-dates { font-size: 13px; line-height: 18px; color: var(--fg-4); }

/* --- stat tiles --------------------------------------------------------- */
.wr-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}
.wr-chips-top .wr-chip-l { min-height: 32px; }   /* two-line labels align */
/* soft pill for up/down deltas — colored but lightweight, not a headline */
.wr-delta {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 16px; line-height: 24px;
}
.wr-delta-up   { background: rgba(79, 122, 60, .10);  color: #3E6230; }
.wr-delta-down { background: rgba(178, 58, 42, .09); color: #9C3324; }
.wr-chip {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 12px 14px;
  text-align: center;
}
.wr-chip-l {
  font-family: var(--font-n);
  font-size: 12px; line-height: 16px;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}
.wr-chip-v {
  font-family: var(--font-h);
  font-size: 20px; font-weight: 700; line-height: 1.1;
  color: var(--fg-heading);
}

/* --- chart ----------------------------------------------------------- */
.wr-chart {
  position: relative;
  height: 420px;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 20px 16px 12px;
  margin: 8px 0 24px;
  box-shadow: var(--sh-2);
}

/* --- verdict card ----------------------------------------------------- */
.wr-verdict {
  background: var(--amber-50);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 20px 0;
}
.wr-verdict p:last-child, .wr-verdict ul:last-child { margin-bottom: 0; }

/* --- key/value facts -------------------------------------------------- */
.wr-facts {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 18px 24px;
  margin: 16px 0;
}
.wr-facts p { margin: 0 0 8px; }
.wr-facts p:last-child { margin: 0; }

/* --- link card grids (special editions / related) --------------------- */
.wr-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.wr-card {
  display: block;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--sh-1);
  font-family: var(--font-h);
  font-size: 16px; font-weight: 600; line-height: 1.4;
  color: var(--fg-1);
  transition: box-shadow .18s cubic-bezier(.2,.8,.2,1), border-color .18s cubic-bezier(.2,.8,.2,1);
}
.wr-card:hover { box-shadow: var(--sh-2); border-color: var(--cask-100); color: var(--cask); }
.wr-card .wr-card-arrow { color: var(--amber); }

/* --- notes / disclaimer ------------------------------------------------ */
.wr-note {
  font-family: var(--font-n);
  font-size: 15px; line-height: 23px;
  color: var(--fg-3);
}
.wr-disclaimer {
  font-family: var(--font-n);
  font-size: 15px; line-height: 23px;
  color: var(--fg-3);
  font-style: italic;
  border-top: 1px solid var(--border-1);
  margin-top: 40px; padding-top: 16px;
}
.wr-updated {
  font-family: var(--font-n);
  font-size: 13px; color: var(--fg-4);
  margin-top: 8px;
}

/* --- page wrapper + H1 (template chrome, outside .wr-article) -----------
   These two are rendered by the WP template (single-template.php), not the
   article body, so they sit on .wr-article-main / .wr-page-title rather than
   under .wr-article. Kept here so all article presentation lives in one file. */
.wr-article-main {
  width: 100%;
  max-width: 1200px;          /* >=720px content area for the stat-tile grid */
  margin-left: auto;
  margin-right: auto;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}
.wr-article-main > .wr-page-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0 0 24px;
}

/* --- mobile ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Elegant, thin-but-present side gutters so content isn't wall-to-wall. */
  .wr-article-main { padding-left: 26px; padding-right: 26px; }
  .wr-article { font-size: 18px; line-height: 28px; }
  .wr-article h2 { font-size: 26px; margin-top: 40px; }
  .wr-article h3 { font-size: 20px; }
  .wr-hero { flex-direction: column-reverse; gap: 16px; }
  .wr-hero-img img { max-width: 170px; }
  .wr-chip-v { font-size: 17px; }
  .wr-chart {
    height: 320px;
    /* Full-bleed: escape the .wr-article-main side padding so the chart
       spans edge-to-edge. The card chrome (border/radius/shadow) reads
       as broken once two sides hit the viewport edge — drop it all and
       let the subtle bg-1 tint + extra vertical breathing room do the
       visual separation instead. */
    margin: 20px 0 32px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 16px 10px 12px;
  }
}