/* Verano Journal — blog listing & article pages. Extends the Tidal Modernism
   system defined in styles.css (colors, type, buttons, header, footer);
   no variables, fonts or existing selectors are redefined here. */

/* Header sits over a light, hero-less page here, so it renders in its
   "scrolled" light state from the start instead of the transparent
   over-hero variant used on the homepage. */
.site-header.blog-header { background: rgba(255,249,242,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ocean); box-shadow: 0 8px 24px rgba(26,14,19,.09); }
.desktop-nav a.nav-active, .mobile-menu a.nav-active { color: var(--coral); }
.desktop-nav a.nav-active:after { width: 100%; }

/* ---------- Breadcrumb (article page) ---------- */
.blog-breadcrumb { padding: 150px 0 0; background: var(--sand); }
.blog-breadcrumb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 800 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(59,36,48,.5); }
.blog-breadcrumb-inner a { color: var(--ocean); text-decoration: none; }
.blog-breadcrumb-inner a:hover { color: var(--coral); }
.blog-breadcrumb-inner .crumb-sep { opacity: .5; }
.blog-breadcrumb-inner .crumb-current { color: rgba(59,36,48,.5); font-weight: 700; text-transform: none; letter-spacing: .01em; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Blog hero (listing page) ---------- */
.blog-hero { position: relative; padding: 128px 0 54px; background: var(--sand); overflow: hidden; }
.blog-hero:before { content: ""; position: absolute; right: -170px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(120,46,93,.14); border-radius: 50%; box-shadow: 0 0 0 40px rgba(120,46,93,.025); pointer-events: none; }
.blog-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.blog-hero-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 800 10px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.blog-hero-eyebrow i { display: inline-block; width: 26px; height: 1px; background: var(--coral); }
.blog-hero h1 { white-space: normal; max-width: 100%; font-size: clamp(34px,4.4vw,58px); line-height: 1.08; margin: 0 0 22px; }
.blog-hero h1 i { color: var(--coral); font-style: italic; }
.blog-hero-sub { margin: 0; font-size: 16px; line-height: 1.8; color: #5c4650; max-width: 560px; }

/* ---------- Blog grid / cards ----------
   Compact single-column article cards (image on top, trimmed heading and
   excerpt below) — reads as a proper article feed and keeps stacking
   cleanly as more posts are added. */
.blog-grid-section { padding: 6px 0 120px; background: var(--sand); }
.blog-grid { display: flex; flex-direction: column; gap: 32px; max-width: 760px; margin: 0 auto; }
.blog-card { position: relative; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(26,14,19,.13); }
.blog-card-link { display: block; color: inherit; text-decoration: none; }
.blog-card-media { aspect-ratio: 16/9; overflow: hidden; background: var(--ocean); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .5s var(--ease-out); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 28px 30px 30px; }
.blog-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 800 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.blog-card-meta span + span { padding-left: 10px; border-left: 1px solid var(--line); color: rgba(59,36,48,.55); }
.blog-card-title { font-size: clamp(20px,2.2vw,26px); line-height: 1.22; margin: 0 0 10px; color: var(--ocean); }
.blog-card-excerpt { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #5c4650; max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.blog-card-cta { display: inline-flex; align-items: center; gap: 6px; font: 800 10px var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ocean); }
.blog-card-cta i { font-style: normal; color: var(--coral); font-size: 14px; transition: transform .2s var(--ease-out); }
.blog-card:hover .blog-card-cta i { transform: translate(4px,-2px); }

/* ---------- Article ---------- */
.article-hero { padding: 24px 0 0; background: var(--sand); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font: 800 9px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.article-meta span + span { padding-left: 10px; border-left: 1px solid var(--line); color: rgba(59,36,48,.55); }
.article-title { white-space: normal; max-width: 900px; font-size: clamp(32px,4.6vw,54px); margin: 0 0 30px; letter-spacing: -.02em; }
.article-featured { margin: 0 0 60px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(26,14,19,.18); }
.article-featured img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: center 30%; display: block; }

.article-body-section { background: var(--ivory); padding: 0 0 110px; }
.article-layout { display: flex; align-items: flex-start; gap: 56px; }
.article-body { flex: 1 1 auto; min-width: 0; max-width: 720px; font-size: 16px; line-height: 1.85; color: #4a3a40; }

/* "Need personalised advice?" sidebar — reuses the homepage's own
   hero-offer-card component (badge, heading, form, note) for visual and
   functional consistency instead of inventing a new lead-capture style. */
.article-sidebar { flex: 0 0 320px; width: 320px; position: sticky; top: 112px; }
.article-sidebar .hero-offer-card { width: 100%; max-width: none; justify-self: auto; align-self: auto; }
.article-body > p { margin: 0 0 24px; }
.article-body h2 { font-size: clamp(26px,3vw,34px); line-height: 1.18; letter-spacing: -.01em; color: var(--ocean); margin: 54px 0 20px; }
.article-body h2:first-child { margin-top: 0; }
.article-body strong { color: var(--ocean); font-weight: 800; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 24px; display: flex; flex-direction: column; gap: 11px; }
.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li { position: relative; padding-left: 26px; }
.article-body ul li:before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.article-body ol li { padding-left: 6px; }
.article-body ol li::marker { font-weight: 800; color: var(--coral); }
.article-body a { color: var(--ocean); font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--aqua); transition: color .2s, border-color .2s; }
.article-body a:hover, .article-body a:focus-visible { color: var(--coral); border-bottom-color: var(--coral); }

.table-scroll { width: 100%; overflow-x: auto; margin: 6px 0 14px; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.article-body thead th { background: var(--ocean); color: var(--ivory); font: 800 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.article-body tbody tr:nth-child(even) { background: rgba(59,36,48,.035); }
.article-body > p.table-footnote { margin: 0 0 30px; font-size: 11.5px; line-height: 1.6; color: rgba(59,36,48,.55); }

.article-cta { margin: 68px 0 0; padding: 52px 44px; border-radius: 20px; background: var(--ocean-deep); color: var(--ivory); }
.article-cta h2 { font-size: clamp(28px,3.4vw,38px); margin: 0 0 14px; color: var(--ivory); }
.article-cta h2 i { color: var(--aqua); font-style: italic; }
.article-cta p { margin: 0 0 28px; color: rgba(255,249,242,.75); max-width: 520px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.article-back { margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-back a { color: var(--ocean); }

@media (max-width: 1120px) {
  .article-layout { flex-direction: column; align-items: stretch; gap: 44px; }
  .article-sidebar { width: 100%; max-width: 480px; margin: 0 auto; position: static; top: auto; }
}
@media (max-width: 900px) {
  .blog-hero { padding: 116px 0 44px; }
  .blog-hero:before { width: 300px; height: 300px; right: -120px; top: -90px; }
  .blog-breadcrumb { padding-top: 128px; }
  .article-hero { padding-top: 14px; }
  .blog-grid { gap: 26px; }
}
@media (max-width: 650px) {
  .blog-breadcrumb { padding-top: 100px; }
  .blog-breadcrumb-inner .crumb-current { max-width: 58vw; }
  .blog-hero { padding: 94px 0 34px; }
  .blog-hero:before { width: 220px; height: 220px; right: -90px; top: -70px; }
  .blog-hero h1 { font-size: 32px; }
  .blog-hero-sub { font-size: 14px; }
  .blog-grid-section { padding: 0 0 90px; }
  .blog-grid { gap: 22px; }
  .blog-card { border-radius: 12px; }
  .blog-card-media { aspect-ratio: 4/3; }
  .blog-card-body { padding: 20px 20px 22px; }
  .blog-card-excerpt { -webkit-line-clamp: 3; line-clamp: 3; }
  .article-title { font-size: 30px; margin-bottom: 22px; }
  .article-featured { margin-bottom: 36px; border-radius: 12px; }
  .article-featured img { max-height: 320px; }
  .article-body { font-size: 15px; }
  .article-body h2 { margin: 40px 0 16px; }
  /* The pricing table needs a 480px min-width for comfortable columns on
     desktop, but that forces horizontal scroll with no visible affordance
     on phones — the right column just looked cut off. Shrinking padding
     and letting header cells wrap instead lets the whole table fit inside
     a normal phone viewport with no scrolling needed. */
  .article-body table { min-width: 0; font-size: 12.5px; }
  .article-body th, .article-body td { padding: 9px 8px; white-space: normal; }
  .article-body thead th { font-size: 8.5px; letter-spacing: .05em; }
  .article-cta { padding: 32px 22px; border-radius: 14px; margin-top: 52px; }
  .article-cta-actions { flex-direction: column; align-items: stretch; }
  .article-cta-actions .button { width: 100%; }
  .sticky-cta a { width: 100%; min-height: 51px; padding: 0 17px; border: 0; background: var(--coral); box-shadow: 0 10px 22px rgba(26,14,19,.25); color: #fff; font: 800 10px var(--sans); letter-spacing: .13em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; text-decoration: none; }
}
