/* ==========================================================================
   Single blog article (single-post.php). Loaded on blog posts only.

   Palette matches the "vl-" landing page tokens in style.css. The site-wide
   `p { font-size: 14px }` and `h2 { text-transform: uppercase }` rules are
   normalised here, for articles only.
   ========================================================================== */

.vogue-article-band,
.vogue-article-wrap,
.vogue-article-related {
  --va-navy: #0c2b4c;
  --va-blue: #365abe;
  --va-blue-pale: #eaf0fb;
  --va-orange: #f76d00;
  --va-ink: #16283d;
  --va-body: #3a4c61;
  --va-muted: #5d6f85;
  --va-line: #dbe4ee;
  --va-paper: #f3f7fc;
  --va-gutter: 32px;
}

/* Astra's narrow post container would squeeze the band and two-column grid. */
.single-post.ast-narrow-container .site-content > .ast-container {
  max-width: none;
  padding: 0;
}

/* style.css gives Astra's .ast-article-single a 3em !important side padding. */
.ast-separate-container .vogue-article.ast-article-single {
  padding: 0 !important;
}

/* --------------------------------------------------------------------------
   Title band
   -------------------------------------------------------------------------- */

.vogue-article-band .wrapper,
.vogue-article-wrap {
  box-sizing: border-box;
  padding-left: var(--va-gutter);
  padding-right: var(--va-gutter);
}

.vogue-article-band {
  padding: 36px 0 30px;
}

.vogue-article-band h1 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
  text-wrap: balance;
}

.vogue-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 14px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.vogue-article-wrap #breadcrumbs {
  margin: 24px 0 28px;
}

.vogue-article-main {
  min-width: 0;
}

/* Sidebar grid and sticky booking card: css/sidebar.css (.vogue-sidebar-layout) */
.vogue-article-grid > .vogue-sidebar {
  padding: 0;
}

/* No sidebar here: keep a readable line length, with everything still aligned. */
@media (max-width: 1025px) {
  .vogue-article-band .wrapper,
  .vogue-article-wrap {
    max-width: 864px;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* Astra's inline `.ast-article-single figure` rule shadows the whole figure,
   boxing in the caption too. Put the shadow on the photo only. */
.vogue-article .vogue-article-hero {
  margin: 0 0 28px;
  background: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.vogue-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.vogue-article-hero figcaption {
  margin-top: 8px;
  color: var(--va-muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Article text
   -------------------------------------------------------------------------- */

.vogue-article {
  color: var(--va-body);
  font-size: 17px;
  line-height: 1.7;
}

.vogue-article p {
  margin: 0 0 1.25em;
  font-size: inherit;
  font-weight: 400;
}

.vogue-article strong {
  color: var(--va-ink);
  font-weight: 600;
}

.vogue-article ul,
.vogue-article ol {
  margin: 0 0 1.25em 1.4em;
  padding: 0;
  font-size: inherit;
}

.vogue-article li {
  margin-bottom: 0.5em;
  font-size: inherit;
}

.vogue-article h2,
.vogue-article-related h2 {
  margin: 1.9em 0 0.6em;
  color: var(--va-navy);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.vogue-article h3 {
  margin: 1.5em 0 0.45em;
  color: var(--va-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.vogue-article h4 {
  margin: 1.3em 0 0.4em;
  color: var(--va-ink);
  font-size: 17px;
  font-weight: 700;
}

.vogue-article-content > :first-child {
  margin-top: 0;
}

.vogue-article a:not(.vogue-btn) {
  color: var(--va-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vogue-article a:not(.vogue-btn):hover {
  color: var(--va-orange);
}

.vogue-article hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--va-line);
}

.vogue-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 8px;
}

.vogue-article-content figure {
  margin: 1.5em 0;
  box-shadow: none;
}

.vogue-article-content figcaption {
  margin-top: 8px;
  color: var(--va-muted);
  font-size: 13px;
}

/* Tables scroll inside their own box on small screens */
.vogue-article .wp-block-table {
  overflow-x: auto;
}

.vogue-article table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border: 1px solid var(--va-line);
  font-size: 16px;
  line-height: 1.5;
}

.vogue-article th,
.vogue-article td {
  padding: 11px 14px;
  border: 1px solid var(--va-line);
  text-align: left;
  vertical-align: top;
}

.vogue-article th {
  background: var(--va-paper);
  color: var(--va-navy);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Quick answer and notes
   -------------------------------------------------------------------------- */

.vogue-quick-answer,
.vogue-note {
  margin: 0 0 28px;
  padding: 18px 22px;
  border-left: 4px solid var(--va-blue);
  border-radius: 4px;
  background: var(--va-blue-pale);
  color: var(--va-ink);
}

.vogue-quick-answer p:last-child,
.vogue-note p:last-child {
  margin-bottom: 0;
}

.vogue-quick-answer__label {
  margin-bottom: 4px !important;
  color: var(--va-blue);
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   End-of-article blocks
   -------------------------------------------------------------------------- */

.vogue-article-faq {
  margin-top: 40px;
}

.vogue-article-reviewer {
  margin: 36px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--va-line);
  border-radius: 6px;
  background: var(--va-paper);
  font-size: 15px;
}

.vogue-article-reviewer p {
  margin: 0;
}

.vogue-article-sources {
  font-size: 15px;
}

.vogue-article-sources h2 {
  font-size: 20px;
}

.vogue-article-cta {
  margin: 44px 0 0;
  padding: 28px;
  border-radius: 8px;
  background: var(--va-navy);
  color: #fff;
}

.vogue-article-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 24px;
}

.vogue-article-cta p {
  margin-bottom: 18px;
  color: #fff;
}

.vogue-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vogue-article-cta .vogue-btn {
  display: inline-block;
  padding: 11px 20px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.vogue-article-cta .vogue-btn:hover {
  background: #fff;
  color: var(--va-navy);
}

.vogue-article-cta .vogue-btn--primary {
  border-color: var(--va-orange);
  background: var(--va-orange);
  color: #16283d;
}

.vogue-article-cta .vogue-btn--primary:hover {
  border-color: #fff;
}

.vogue-article-cta p.vogue-article-cta__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.vogue-article-cta__note a {
  color: #fff !important;
}

/* Related posts reuse the News archive's .news-snip card */
.vogue-article-wrap {
  padding-bottom: 64px;
}

.vogue-article-related {
  margin: 56px 0 0;
}

.vogue-article-related h2 {
  margin-top: 0;
}

.vogue-article-related .news-snip h3 {
  margin: 0 0 18px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.vogue-article-related .news-snip h3 a {
  color: #fff !important; /* beats style.css `.news-snip a` (!important) */
  font-weight: 700;
  text-decoration: none;
}

.vogue-article-related .read-more-btn {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Tablet and mobile
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .vogue-article-band,
  .vogue-article-wrap,
  .vogue-article-related {
    --va-gutter: 20px;
  }

  .vogue-article-band {
    padding: 26px 0 22px;
  }

  .vogue-article {
    font-size: 16px;
  }

  .vogue-article h2,
  .vogue-article-related h2 {
    font-size: 23px;
  }

  .vogue-article h3 {
    font-size: 19px;
  }

  .vogue-article table {
    table-layout: auto;
    font-size: 15px;
  }

  .vogue-article th,
  .vogue-article td {
    padding: 9px 10px;
  }

  .vogue-article-cta {
    padding: 22px 20px;
  }

  .vogue-article-cta .vogue-btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
