/* Shared editorial design for Wagner Plumbing blog pages */
:root {
  --blog-brand: #92400e;
  --blog-brand-dark: #5b2106;
  --blog-ink: #111827;
  --blog-muted: #526071;
  --blog-line: #d8e2ee;
  --blog-panel: #f6f8fb;
}

.blog-page { background: #f5f7fa; color: var(--blog-ink); }
.blog-main { padding: 0 1rem 4rem; background: linear-gradient(180deg, #eef2f7 0, #f8fafc 22rem, #f8fafc 100%); }
.blog-breadcrumb { max-width: 1180px; margin: 0 auto; padding: 1rem 0; color: #667085; font-size: .875rem; }
.blog-breadcrumb a { color: var(--blog-brand); font-weight: 700; }
.blog-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.blog-article { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e5eaf0; border-radius: 1rem; box-shadow: 0 18px 45px rgba(15, 23, 42, .09); }
.article-hero { margin: 0 !important; padding: 2.25rem 1.25rem; color: #fff; text-align: center; background: linear-gradient(135deg, #312e81 0%, #4c1d95 52%, #92400e 100%); }
.article-hero h1 { max-width: 850px; margin: 0 auto 1rem !important; color: #fff !important; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.025em; }
.article-hero > p { color: #f3e8ff !important; }
.article-hero > p:first-child { color: #fbbf24 !important; }
.article-hero > p:last-child { max-width: 780px; margin: 1.25rem auto 0 !important; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.25) !important; border-left: 4px solid #fbbf24 !important; border-radius: .75rem; background: rgba(15,23,42,.24); color: #fff !important; line-height: 1.65; }
.article-hero .flex { justify-content: center; color: #f3e8ff !important; }
.article-hero .italic { max-width: 780px; margin: 1.25rem auto 0; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.25) !important; border-left: 4px solid #fbbf24 !important; border-radius: .75rem; background: rgba(15, 23, 42, .24); color: #fff !important; font-style: normal; line-height: 1.65; }
.article-content { padding: 1.5rem 1.25rem 2rem; color: #374151; }
.article-content > p, .article-content li { font-size: 1rem; line-height: 1.8; }
.article-content > p { margin: 0 0 1.25rem; }
.article-content a { color: #2563eb; font-weight: 700; text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content h2 { margin: 2.75rem 0 1.25rem; padding-bottom: .75rem; border-bottom: 3px solid #60a5fa; color: #172033; font-size: 1.75rem; line-height: 1.25; text-align: center; }
.article-content h3 { margin: 2rem 0 .85rem; padding-left: .75rem; border-left: 4px solid #60a5fa; color: #1f2937; font-size: 1.25rem; line-height: 1.35; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem; padding: 1.25rem 1.25rem 1.25rem 2.75rem; border-radius: .75rem; background: var(--blog-panel); }
.article-content li { margin: .55rem 0; padding-left: .2rem; }
.article-content ul li::marker { color: #10b981; }
.article-content ol li::marker { color: var(--blog-brand); font-weight: 800; }
.article-content table { width: 100%; margin: 1.25rem 0 2rem; overflow: hidden; border-collapse: separate; border-spacing: 0; border: 1px solid #d9e1ea; border-radius: .65rem; box-shadow: 0 4px 12px rgba(15,23,42,.05); }
.article-content th { padding: .9rem; background: #2563eb; color: #fff; text-align: left; }
.article-content td { padding: .9rem; border-top: 1px solid #e5e7eb; vertical-align: top; }
.article-content tr:nth-child(even) td { background: #f8fafc; }
.article-content .bg-yellow-50 { padding: 1.5rem !important; border: 1px solid #fed7aa; border-radius: .85rem; background: #fff7ed !important; }
.article-content .bg-gray-900 { padding: 1.5rem !important; border-radius: .85rem; background: linear-gradient(135deg, #111827, #312e81) !important; }
.article-content .bg-gray-900 h2 { margin-top: 0; border: 0; color: #fff !important; text-align: left; }
.article-content .bg-gray-900 p { color: #e5e7eb; }
.article-content .bg-gray-900 a { color: #fbbf24; }
.article-cta { margin: 0 1.25rem 2rem !important; padding: 1.5rem !important; border: 1px solid #fed7aa; border-radius: .85rem; background: #fff7ed !important; }
.article-cta h3 { color: #7c2d12; }
.article-cta a { display: inline-flex; align-items: center; justify-content: center; background: var(--blog-brand) !important; }

.blog-sidebar { display: grid; gap: 1rem; }
.blog-side-card { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: .85rem; background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.blog-side-card h2 { margin: 0 0 1rem; color: var(--blog-brand); font-size: 1.1rem; }
.blog-side-card p { margin: 0 0 1rem; color: var(--blog-muted); font-size: .925rem; line-height: 1.65; }
.blog-side-card ul { margin: 0; padding: 0; list-style: none; }
.blog-side-card li + li { margin-top: .7rem; }
.blog-side-card a { color: #334155; font-weight: 700; text-decoration: none; }
.blog-side-card a:hover { color: var(--blog-brand); }
.blog-side-card .side-call { display: flex; justify-content: center; padding: .85rem 1rem; border-radius: .6rem; background: var(--blog-brand); color: #fff; }
.blog-side-card .side-call:hover { background: var(--blog-brand-dark); color: #fff; }

.blog-index-main { padding-top: 2rem; }
.blog-index-shell { max-width: 1180px; margin: 0 auto; }
.blog-index-shell > header { padding: 2.5rem 1.25rem; border-radius: 1rem; color: #fff; background: linear-gradient(135deg, #312e81 0%, #4c1d95 55%, #92400e 100%); box-shadow: 0 18px 42px rgba(49, 46, 129, .18); }
.blog-index-shell > header h1, .blog-index-shell > header p { color: #fff !important; }
.blog-index-shell .space-y-6 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.blog-card { margin: 0 !important; padding: 1.5rem !important; border: 1px solid #e3e8ef; border-top: 4px solid var(--blog-brand); border-radius: .85rem; box-shadow: 0 8px 24px rgba(15,23,42,.07); }
.blog-card h2 { line-height: 1.3; }
.blog-card h2 a { color: #172033; }
.blog-card p { line-height: 1.7; }
.blog-index-shell > .bg-yellow-50 { margin-top: 2rem !important; padding: 1.75rem !important; border: 1px solid #fed7aa; border-radius: .85rem; background: #fff7ed !important; box-shadow: 0 8px 24px rgba(15,23,42,.06); }

@media (min-width: 768px) {
  .article-hero { padding: 3.25rem 2.5rem; }
  .article-content { padding: 2.25rem 2.5rem 3rem; }
  .article-cta { margin: 0 2.5rem 2.5rem !important; }
  .blog-index-shell .space-y-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .blog-main { padding-left: 1.5rem; padding-right: 1.5rem; }
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
  .blog-sidebar { position: sticky; top: 6.5rem; }
}
