/* ================================
   Single Post Header Contrast Fix
   Desktop + Mobile (Astra)
   ================================ */

/* Desktop header background on single posts */
.single-post .site-header,
.single-post .ast-primary-header-bar,
.single-post .main-header-bar {
  background: rgba(0,0,0,0.65);
}

/* Desktop menu link color on single posts */
.single-post .main-header-menu a,
.single-post .ast-header-menu a,
.single-post .site-header a {
  color: #fff !important;
}

/* Desktop hover state (optional) */
.single-post .main-header-menu a:hover,
.single-post .ast-header-menu a:hover {
  opacity: 0.85;
}

/* Mobile: hamburger icon color */
.single-post .ast-mobile-header-toggle .ast-icon svg,
.single-post .menu-toggle .ast-icon svg {
  fill: #fff !important;
}

/* Mobile: slide-out / dropdown menu background + text */
.single-post .ast-mobile-header-content {
  background: rgba(0,0,0,0.85);
}

.single-post .ast-mobile-header-content a,
.single-post .ast-mobile-header-content span,
.single-post .ast-mobile-header-content {
  color: #fff !important;
}

/* Mobile hover/active (optional) */
.single-post .ast-mobile-header-content a:hover {
  opacity: 0.85;
}
/* ==================================================
   Needle & Vine: Header/menu contrast on Posts + Blog
   Works for desktop + mobile across common WP themes
   ================================================== */

/* 1) Add readable background behind the header on posts + blog index + archives */
.single-post header#masthead,
.blog header#masthead,
.archive header#masthead,
.single-post .site-header,
.blog .site-header,
.archive .site-header,
.single-post .wp-site-blocks > header,
.blog .wp-site-blocks > header,
.archive .wp-site-blocks > header,
.single-post .wp-block-template-part > header,
.blog .wp-block-template-part > header,
.archive .wp-block-template-part > header {
  background: rgba(0,0,0,0.65) !important;
}

/* 2) Force nav link colors to white */
.single-post header#masthead a,
.blog header#masthead a,
.archive header#masthead a,
.single-post .site-header a,
.blog .site-header a,
.archive .site-header a,
.single-post nav a,
.blog nav a,
.archive nav a,
.single-post .main-navigation a,
.blog .main-navigation a,
.archive .main-navigation a,
.single-post .primary-navigation a,
.blog .primary-navigation a,
.archive .primary-navigation a,
.single-post .wp-block-navigation a,
.blog .wp-block-navigation a,
.archive .wp-block-navigation a {
  color: #fff !important;
}

/* 3) Mobile hamburger icon / open-close controls */
.single-post button.menu-toggle,
.blog button.menu-toggle,
.archive button.menu-toggle,
.single-post .menu-toggle,
.blog .menu-toggle,
.archive .menu-toggle,
.single-post .wp-block-navigation__responsive-container-open,
.blog .wp-block-navigation__responsive-container-open,
.archive .wp-block-navigation__responsive-container-open,
.single-post .wp-block-navigation__responsive-container-close,
.blog .wp-block-navigation__responsive-container-close,
.archive .wp-block-navigation__responsive-container-close {
  color: #fff !important;
}

.single-post button.menu-toggle svg,
.blog button.menu-toggle svg,
.archive button.menu-toggle svg,
.single-post .menu-toggle svg,
.blog .menu-toggle svg,
.archive .menu-toggle svg,
.single-post .wp-block-navigation__responsive-container-open svg,
.blog .wp-block-navigation__responsive-container-open svg,
.archive .wp-block-navigation__responsive-container-open svg,
.single-post .wp-block-navigation__responsive-container-close svg,
.blog .wp-block-navigation__responsive-container-close svg,
.archive .wp-block-navigation__responsive-container-close svg {
  fill: #fff !important;
}

/* 4) Mobile expanded menu panel readability */
.single-post .wp-block-navigation__responsive-container,
.blog .wp-block-navigation__responsive-container,
.archive .wp-block-navigation__responsive-container,
.single-post .main-navigation,
.blog .main-navigation,
.archive .main-navigation,
.single-post .primary-navigation,
.blog .primary-navigation,
.archive .primary-navigation {
  background: rgba(0,0,0,0.85) !important;
}
/* Needle & Vine Author Box */

.author-box {
    border-top: 2px solid #7a1f1f;
    margin-top: 40px;
    padding-top: 20px;
}

.author-box .author-avatar img {
    border-radius: 50%;
}

.author-box .author-title {
    font-size: 18px;
    font-weight: 600;
    color: #7a1f1f;
}

.author-box .author-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}
/* ================================
   Needle & Vine - MailPoet Manage Subscription
   Evening Tone Version
   ================================ */

form.mailpoet-manage-subscription {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

/* Heading */
form.mailpoet-manage-subscription h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 28px;
  color: #1f1f1c;
  letter-spacing: -0.02em;
}

/* Paragraph spacing */
form.mailpoet-manage-subscription .mailpoet_paragraph {
  margin-bottom: 26px;
}

/* Intro copy */
form.mailpoet-manage-subscription p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4b4a46;
  margin-bottom: 32px;
  max-width: 640px;
}

/* General text under fields */
form.mailpoet-manage-subscription p,
form.mailpoet-manage-subscription small,
form.mailpoet-manage-subscription .mailpoet_form_notice,
form.mailpoet-manage-subscription .mailpoet-hp {
  color: #5b5a55;
  line-height: 1.6;
}

/* Labels */
form.mailpoet-manage-subscription .mailpoet_text_label,
form.mailpoet-manage-subscription .mailpoet_select_label,
form.mailpoet-manage-subscription .mailpoet_segment_label,
form.mailpoet-manage-subscription label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 10px;
  color: #2d2b28;
  letter-spacing: 0.01em;
}

/* Inputs and selects */
form.mailpoet-manage-subscription .mailpoet_text,
form.mailpoet-manage-subscription .mailpoet_select,
form.mailpoet-manage-subscription select,
form.mailpoet-manage-subscription input[type="text"],
form.mailpoet-manage-subscription input[type="email"] {
  width: 100%;
  max-width: 520px;
  padding: 14px 16px;
  border: 1px solid #d2ccc1;
  border-radius: 8px;
  background: #fcfbf8;
  color: #2b2926;
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Placeholder */
form.mailpoet-manage-subscription input::placeholder {
  color: #8a867e;
}

/* Focus states */
form.mailpoet-manage-subscription .mailpoet_text:focus,
form.mailpoet-manage-subscription .mailpoet_select:focus,
form.mailpoet-manage-subscription select:focus,
form.mailpoet-manage-subscription input[type="text"]:focus,
form.mailpoet-manage-subscription input[type="email"]:focus {
  outline: none;
  border-color: #9a6b46;
  background: #fffdf9;
  box-shadow: 0 0 0 3px rgba(154, 107, 70, 0.14);
}

/* Email display emphasis */
form.mailpoet-manage-subscription strong,
form.mailpoet-manage-subscription b {
  color: #1f1f1c;
  font-weight: 700;
}

/* Fieldset / Your lists */
form.mailpoet-manage-subscription fieldset {
  border: 1px solid #d8d1c5;
  border-radius: 10px;
  background: #f8f5ef;
  padding: 18px 20px;
  margin-top: 10px;
  margin-bottom: 26px;
  max-width: 760px;
}

form.mailpoet-manage-subscription legend {
  padding: 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5a584f;
  letter-spacing: 0.01em;
}

/* Submit button */
form.mailpoet-manage-subscription .mailpoet_submit,
form.mailpoet-manage-subscription input[type="submit"],
form.mailpoet-manage-subscription button[type="submit"] {
  display: inline-block;
  min-width: 190px;
  padding: 16px 32px;
  margin-top: 10px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #9a6b46 0%, #c59a57 100%);
  color: #fffdf8;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(66, 45, 27, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Button hover */
form.mailpoet-manage-subscription .mailpoet_submit:hover,
form.mailpoet-manage-subscription input[type="submit"]:hover,
form.mailpoet-manage-subscription button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(66, 45, 27, 0.2);
  opacity: 0.98;
}

/* Button focus */
form.mailpoet-manage-subscription .mailpoet_submit:focus,
form.mailpoet-manage-subscription input[type="submit"]:focus,
form.mailpoet-manage-subscription button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 154, 87, 0.2);
}

/* Footer brand line */
form.mailpoet-manage-subscription p:last-of-type {
  margin-top: 42px;
  color: #6a675f;
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

/* Optional helper links */
form.mailpoet-manage-subscription a {
  color: #7c5536;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 85, 54, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

form.mailpoet-manage-subscription a:hover {
  color: #5e3f28;
  border-bottom-color: rgba(94, 63, 40, 0.45);
}

/* Mobile */
@media (max-width: 768px) {
  form.mailpoet-manage-subscription {
    max-width: 100%;
    padding: 0 0 20px;
  }

  form.mailpoet-manage-subscription h1 {
    margin-bottom: 22px;
  }

  form.mailpoet-manage-subscription .mailpoet_text,
  form.mailpoet-manage-subscription .mailpoet_select,
  form.mailpoet-manage-subscription select,
  form.mailpoet-manage-subscription input[type="text"],
  form.mailpoet-manage-subscription input[type="email"],
  form.mailpoet-manage-subscription fieldset {
    max-width: 100%;
  }

  form.mailpoet-manage-subscription .mailpoet_submit,
  form.mailpoet-manage-subscription input[type="submit"],
  form.mailpoet-manage-subscription button[type="submit"] {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
/* ================================
   Global Button Styling - Needle & Vine
   ================================ */

/* Base button styles */
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.ast-button,
.ast-custom-button,
a.button,
a.wp-block-button__link {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  min-width: 160px;

  /* Gradient */
  background: linear-gradient(135deg, #9a6b46 0%, #c59a57 100%);
  color: #fffdf8;

  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  /* Depth */
  box-shadow: 0 6px 18px rgba(66, 45, 27, 0.16);

  transition: all 0.2s ease;
}

/* Hover */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.ast-button:hover,
.ast-custom-button:hover,
a.button:hover,
a.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(66, 45, 27, 0.22);
  opacity: 0.98;
}

/* Active (click) */
button:active,
input[type="submit"]:active,
input[type="button"]:active,
.wp-block-button__link:active,
.ast-button:active,
.ast-custom-button:active,
a.button:active,
a.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(66, 45, 27, 0.14);
}

/* Focus (accessibility) */
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
.wp-block-button__link:focus,
.ast-button:focus,
.ast-custom-button:focus,
a.button:focus,
a.wp-block-button__link:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 154, 87, 0.25);
}

/* Disabled state */
button:disabled,
input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
/* =================================
   Needle & Vine Table - FINAL
   Use by adding: nv-table
   ================================= */

.nv-table {
  margin: 32px 0;
  overflow-x: auto;
}

.nv-table table,
table.nv-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f3ea;
  box-shadow: 0 10px 28px rgba(66, 45, 27, 0.10);
}

/* Header */
.nv-table table thead th,
table.nv-table thead th {
  background: linear-gradient(135deg, #9a6b46 0%, #c59a57 100%) !important;
  color: #fffdf8 !important;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px !important;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  border: none !important;
  white-space: normal;
}

/* Body cells */
.nv-table table tbody td,
table.nv-table tbody td {
  background: #fbf8f2 !important;
  color: #3a3834;
  padding: 18px !important;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
  border: none !important;
  border-top: 1px solid #e4dccf !important;
}

/* Prevent ugly word breaks */
.nv-table table th,
.nv-table table td,
table.nv-table th,
table.nv-table td {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

/* Alternating rows */
.nv-table table tbody tr:nth-child(even) td,
table.nv-table tbody tr:nth-child(even) td {
  background: #f2ede2 !important;
}

/* Hover effect */
.nv-table table tbody tr:hover td,
table.nv-table tbody tr:hover td {
  background: #ece4d5 !important;
  transition: background 0.2s ease;
}

/* First column emphasis */
.nv-table table tbody td:first-child,
table.nv-table tbody td:first-child {
  font-weight: 600;
  color: #2d2b28;
}

/* Optional: emphasize rating column */
.nv-table table tbody td:nth-child(3),
table.nv-table tbody td:nth-child(3) {
  font-weight: 600;
}

/* Rounded corners */
.nv-table table thead th:first-child,
table.nv-table thead th:first-child {
  border-top-left-radius: 14px;
}

.nv-table table thead th:last-child,
table.nv-table thead th:last-child {
  border-top-right-radius: 14px;
}

.nv-table table tbody tr:last-child td:first-child,
table.nv-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.nv-table table tbody tr:last-child td:last-child,
table.nv-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

/* Column widths (balanced) */
.nv-table table thead th:nth-child(1),
.nv-table table tbody td:nth-child(1),
table.nv-table thead th:nth-child(1),
table.nv-table tbody td:nth-child(1) {
  width: 20%;
}

.nv-table table thead th:nth-child(2),
.nv-table table tbody td:nth-child(2),
table.nv-table thead th:nth-child(2),
table.nv-table tbody td:nth-child(2) {
  width: 22%;
}

.nv-table table thead th:nth-child(3),
.nv-table table tbody td:nth-child(3),
table.nv-table thead th:nth-child(3),
table.nv-table tbody td:nth-child(3) {
  width: 16%;
}

.nv-table table thead th:nth-child(4),
.nv-table table tbody td:nth-child(4),
table.nv-table thead th:nth-child(4),
table.nv-table tbody td:nth-child(4) {
  width: 16%;
}

.nv-table table thead th:nth-child(5),
.nv-table table tbody td:nth-child(5),
table.nv-table thead th:nth-child(5),
table.nv-table tbody td:nth-child(5) {
  width: 26%;
}

/* Mobile */
@media (max-width: 768px) {
  .nv-table {
    overflow-x: auto;
  }

  .nv-table table,
  table.nv-table {
    min-width: 760px;
  }

  .nv-table table thead th,
  .nv-table table tbody td,
  table.nv-table thead th,
  table.nv-table tbody td {
    padding: 14px 16px !important;
    font-size: 0.95rem;
  }
}
/* Wrapper */
.nv-button-wrap {
  margin: 28px 0;
  text-align: center;
}

/* Gradient Button on wine */
.nv-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6E0F1F, #C4A26A);
  color: #FFFFFF;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Hover Effect */
.nv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #5A0C19, #B68C54);
}

/* Disclosure Text */
.nv-disclosure {
  margin-top: 10px;
  font-size: 12px;
  color: #666666;
  font-family: 'Work Sans', sans-serif;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
/* Listening Ritual Section */
.nv-ritual {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(180deg, #121212, #1a1a1a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f5f5f5;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nv-ritual:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.nv-ritual h2 {
  margin: 0 0 12px 0;
  font-size: 1.8em;
  line-height: 1.2;
  color: #FFFFFF;
}

.nv-ritual-intro {
  margin: 0 0 8px 0;
  font-size: 1.02em;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
}

.nv-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nv-block:first-of-type {
  margin-top: 20px;
}

.nv-block h3 {
  margin: 0 0 8px 0;
  font-size: 1.15em;
  line-height: 1.3;
  color: #FFFFFF;
}

.nv-block p {
  margin: 0;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.nv-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Slight emphasis for wine CTA */
.nv-wine {
  box-shadow: 0 8px 20px rgba(196,162,106,0.35);
}

/* Secondary button for Spotify */
.nv-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #E6E6E6;
  box-shadow: none;
}

.nv-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.38);
}

/* =========================
   Weglot Language Switcher (Header)
   Needle & Vine Final Version
   ========================= */

/* Base style */
.menu-item-weglot .menu-link {
  text-decoration: none !important;
  font-weight: 400 !important;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  padding: 0 2px !important;
}

/* Hover */
.menu-item-weglot .menu-link:hover {
  opacity: 1;
}

/* Gold divider: EN | ES */
.menu-item-weglot.weglot-en .menu-link::after {
  content: "|";
  margin: 0 4px;
  color: #C4A26A; /* Needle & Vine gold accent */
  opacity: 0.8;
}

/* English page → highlight EN */
html[lang="en-US"] .weglot-en .menu-link,
html[lang="en"] .weglot-en .menu-link {
  text-decoration: underline !important;
  font-weight: 600 !important;
  opacity: 1;
}

/* Spanish page → highlight ES */
html[lang="es"] .weglot-es .menu-link,
html[lang^="es-"] .weglot-es .menu-link {
  text-decoration: underline !important;
  font-weight: 600 !important;
  opacity: 1;
}

/* Ensure non-active language is NOT underlined */
html[lang="en-US"] .weglot-es .menu-link,
html[lang="en"] .weglot-es .menu-link,
html[lang="es"] .weglot-en .menu-link,
html[lang^="es-"] .weglot-en .menu-link {
  text-decoration: none !important;
  font-weight: 400 !important;
}