/*
  solar/skydera_blog/templates/editorial/assets/editorial.css
  The editorial template's styles: synthseo.ai's blog (Tailwind in the marketing site) as hand-written, mobile-first CSS.
  WHY: spec §6.4: pages must look like synthseo.ai/blog with no Tailwind runtime and no JavaScript; colours and fonts come from
    each site's settings as custom properties on <html> (render/views.py style_vars).
  RELEVANT FILES: ../base.html, ../list.html, ../post.html, skydera_grp_marketing_sites/synthseo/marketing/src/styles/index.css
*/

/* Derived tokens. paper-2 (the footer and code ground, #E8F7EF on synthseo.ai) sits halfway between tint and paper. */
:root {
  --color-paper-2: color-mix(in srgb, var(--color-tint) 50%, var(--color-background));
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 30; padding: 8px 12px; border-radius: 8px;
  background: var(--color-primary); color: #fff; font-size: 13px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Primitives: Container (max-w-[1264px] px-8), MonoLabel, Key, Button */
.container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 32px; }
.mono-label {
  font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-subtle);
}
.key { font-style: normal; color: var(--color-primary); }
.block { display: block; }
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px;
  border-radius: 8px; font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms, color 150ms;
}
.button-primary { background: var(--color-primary); color: #fff; }
.button-primary:hover { background: var(--color-primary-dark); }
.button-outline { border: 1px solid var(--color-border); background: var(--color-background); color: var(--color-text); }
.button-outline:hover { background: var(--color-paper-2); }
.button-wide { width: 100%; height: 44px; margin-top: 12px; }

/* Header (Header.jsx): paper band, hairline below, 64px row */
.site-header { position: relative; border-bottom: 1px solid var(--color-border); background: var(--color-background); }
@keyframes band-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .site-header { animation: band-in 400ms ease-out both; }
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; color: var(--color-text); }
.header-nav { display: none; gap: 28px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-text-muted); }
.header-nav a { transition: color 150ms; }
.header-nav a:hover { color: var(--color-primary); }
.header-nav a.is-current { color: var(--color-primary); font-weight: 600; }
.header-actions { display: none; align-items: center; gap: 20px; }
.header-secondary { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--color-primary); }

/* Below md the links fold into a <details> menu: no JavaScript. */
.mobile-menu > summary {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--color-border);
  border-radius: 8px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--color-text-muted);
}
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20; display: flex; flex-direction: column;
  padding: 8px 32px 24px; border-bottom: 1px solid var(--color-border); background: var(--color-background);
}
.mobile-link {
  display: flex; align-items: center; height: 44px; border-bottom: 1px solid var(--color-border);
  font-size: 14px; font-weight: 500; color: var(--color-text-muted);
}
.mobile-link.is-current { color: var(--color-primary); font-weight: 600; }
.mobile-secondary { display: flex; align-items: center; height: 44px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--color-primary); }

/* List hero (BlogPage.jsx:301-317) */
.hero { padding: 40px 0 24px; }
.hero-inner { display: flex; flex-direction: column; gap: 16px; }
.hero-title {
  font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--color-text); overflow-wrap: break-word;
}
.hero-intro { font-size: 16px; line-height: 25px; color: var(--color-text-muted); }

/* List, featured card and grid (BlogPage.jsx:241-296) */
.list-section { padding-bottom: 32px; }
.list-stack { display: flex; flex-direction: column; gap: 16px; }
.meta-line { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--color-text-muted); }
.meta-line a:hover { color: var(--color-primary); }
.dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 9999px; background: var(--color-primary); }
.card-link::after { content: ""; position: absolute; inset: 0; }
.featured {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface);
}
.featured-image { width: 100%; height: 200px; flex-shrink: 0; object-fit: cover; background: var(--color-tint); }
.featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px; }
.featured-title {
  font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--color-text);
}
.featured-excerpt { font-size: 14px; line-height: 22px; color: var(--color-text-muted); }
.read-more { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--color-primary); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface);
}
.card-image { width: 100%; height: 180px; flex-shrink: 0; border-radius: 6px; object-fit: cover; background: var(--color-tint); }
.card-meta { font-size: 12px; line-height: 16px; color: var(--color-text-subtle); }
.card-title { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--color-text); }

/* Notice card (BlogStates.jsx noticeCard): the empty list and the 404 */
.notice {
  display: flex; flex-direction: column; gap: 6px; padding: 24px 16px;
  border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface);
}
.notice-title { font-family: var(--font-body); font-size: 16px; line-height: 20px; font-weight: 600; color: var(--color-text); }
.notice-text { font-size: 14px; line-height: 21px; color: var(--color-text-muted); }
.notice-action { width: max-content; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--color-primary); }
.notice-action:hover { color: var(--color-primary-dark); }

/* Paging */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.pager-label { font-size: 13px; line-height: 20px; color: var(--color-text-subtle); }

/* Closing band (BlogPage.jsx:370-398) */
.band-section { padding-bottom: 40px; }
.band { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 12px; background: var(--color-primary-dark); }
.band-copy { display: flex; flex-direction: column; gap: 6px; }
.band-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; color: #fff; }
.band-text { font-size: 14px; line-height: 20px; color: var(--color-border); }
.button-band { width: 100%; height: 44px; padding: 0 20px; background: #fff; color: var(--color-primary-dark); }
.button-band:hover { background: var(--color-background); }

/* Post column (BlogPostPage.jsx:205-262): one 720px measure */
.post-section { padding: 40px 0 32px; }
.post { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; margin: 0 auto; }
.post-title {
  font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--color-text); overflow-wrap: break-word;
}
.post-lede { font-size: 16px; line-height: 25px; color: var(--color-text-muted); }
.post-image {
  width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-tint);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip {
  display: flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--color-border);
  border-radius: 9999px; background: var(--color-surface); font-size: 13px; line-height: 16px; font-weight: 500;
  color: var(--color-text-muted);
}
a.chip:hover { background: var(--color-paper-2); }
.post-cta {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px;
  border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface);
}
.post-cta-text { font-size: 13px; line-height: 20px; color: var(--color-text-muted); }
.post-cta-text strong { font-weight: 600; color: var(--color-text); }
.post-cta-link { width: max-content; flex-shrink: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--color-primary); }
.post-cta-link:hover { color: var(--color-primary-dark); }

/* Hero caption and the FAQ after the body (spec §4.2a); the answers take the body's .prose scale */
.post-figure { display: flex; flex-direction: column; gap: 8px; }
.post-caption { font-size: 13px; line-height: 20px; color: var(--color-text-subtle); }
.post-caption .attribution { font-style: italic; }
.faq { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.faq-title {
  font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; color: var(--color-text);
}
.faq-question {
  margin-top: 16px; font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600;
  color: var(--color-text);
}

/* Body (SlateContent/Content/Element.jsx type scale) */
.prose { font-size: 17px; line-height: 28px; color: var(--color-text-muted); overflow-wrap: break-word; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose strong { font-weight: 600; color: var(--color-text); }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 600; color: var(--color-text); }
.prose h2 { margin: 32px 0 12px; font-size: 24px; line-height: 32px; }
.prose h3 { margin: 24px 0 8px; font-size: 18px; line-height: 24px; }
.prose h4 { margin: 20px 0 8px; font-size: 16px; line-height: 24px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li > ul, .prose li > ol { margin: 8px 0 0; }
.prose blockquote {
  margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--color-accent);
  font-size: 20px; line-height: 32px; font-weight: 600; letter-spacing: -0.025em; color: var(--color-text);
}
.prose blockquote p { margin: 0; }
.prose code {
  padding: 2px 5px; border-radius: 4px; background: var(--color-tint);
  font-family: var(--font-mono); font-size: 0.875em; color: var(--color-text);
}
.prose pre {
  margin: 0 0 16px; padding: 12px 16px; overflow-x: auto; border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-paper-2); font-size: 14px; line-height: 22px;
}
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose figure { margin: 32px 0; }
.prose img { border-radius: 16px; }
.prose figcaption { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--color-text-subtle); }
.prose hr { margin: 32px 0; border: 0; border-top: 1px solid var(--color-border); }
.prose table {
  display: block; max-width: 100%; margin: 0 0 16px; overflow-x: auto;
  border-collapse: collapse; font-size: 15px; line-height: 24px;
}
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--color-text); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

/* Footer (Footer.jsx): paper-2 band of ruled link columns */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-paper-2); }
.footer-grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.footer-logo { height: 32px; width: auto; }
.footer-text { max-width: 36ch; margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.footer-copyright { margin-top: 24px; font-size: 12px; line-height: 16px; color: var(--color-text-subtle); }
.footer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--color-text-muted); }
.footer-links a:hover { color: var(--color-primary); }

/* sm: 640px */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* md: 768px */
@media (min-width: 768px) {
  .header-nav, .header-actions { display: flex; }
  .mobile-menu { display: none; }
  .hero { padding: 80px 0 32px; }
  .hero-title { font-size: 56px; line-height: 60px; }
  .hero-intro { max-width: 640px; font-size: 17px; line-height: 26px; }
  .list-section { padding-bottom: 64px; }
  .featured { flex-direction: row; }
  .featured-image { width: 560px; height: 340px; border-right: 1px solid var(--color-border); }
  .featured-body { padding: 32px; }
  .featured-title { font-size: 30px; line-height: 36px; }
  .band-section { padding-bottom: 72px; }
  .band { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; }
  .band-title { font-size: 24px; line-height: 30px; }
  .band-text { font-size: 15px; line-height: 18px; }
  .button-band { width: auto; height: 40px; }
  .post-section { padding: 72px 0 40px; }
  .post-title { font-size: 44px; line-height: 50px; }
  .post-lede { font-size: 17px; line-height: 26px; }
  .post-image { height: 400px; }
  .post-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .footer-cols-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .footer-cols-2 { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
  .footer-cols-3 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .footer-cols-4 { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
