/* ============================================================
   publication.css — "Vardagsekonomi" editorial family.
   Used by: site/index.html (advertorial) and site/about/index.html
   Layout language: dark masthead, grey disclosure ribbon, big bold
   sans headline, narrow reading column, dashed-border callouts,
   green CTA treatment. Primary reference: advertorial-1-primary.
   ============================================================ */

body.family-publication {
  --bg: #fbf9f4;
  --ink: #1c1c1a;
  --muted: #5c5b53;
  --header-bg: #17342b;
  --header-fg: #ffffff;
  --ribbon-bg: #eeece5;
  --ribbon-fg: #55564c;
  --accent: #1f7a44;
  --accent-hover: #185f35;
  --accent-ink: #ffffff;
  --accent-shadow: rgba(31, 122, 68, 0.35);
  --star: #e2a63b;
  --callout-bg: #fff8ea;
  --callout-border: #d98c2b;
  --rule: #e3ddd0;
  --focus-ring: #1f7a44;
  --disclaimer-bg: #f1efe8;
  --disclaimer-ink: #43423b;
  --disclaimer-border: #ddd6c4;
  --footer-bg: #12211b;
  --footer-ink: #cdd8d0;
  --footer-ink-strong: #ffffff;
  --footer-ink-muted: #8ea298;
  --container-max: 1080px;
  font-family: "Source Serif 4", Georgia, serif;
}

body.family-publication h1,
body.family-publication h2,
body.family-publication h3,
body.family-publication .pub-kicker,
body.family-publication .pub-header__brand,
body.family-publication .pub-nav,
body.family-publication .btn,
body.family-publication .pub-byline,
body.family-publication .pub-ribbon {
  font-family: "Libre Franklin", "Inter", system-ui, sans-serif;
}

/* ---------- Masthead ---------- */
.pub-header {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 20px 16px;
}

.pub-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.pub-header__brand {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.pub-header__tagline {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.pub-nav {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pub-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pub-nav a:hover,
.pub-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
}

.pub-ribbon {
  background: var(--ribbon-bg);
  color: var(--ribbon-fg);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Article shell ---------- */
.pub-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

@media (min-width: 480px) {
  .pub-article {
    padding: 40px 24px 64px;
  }
}

.pub-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.pub-stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.pub-stars__label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.pub-hero h1 {
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: #111;
}

.pub-hero__subhead {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: #33322c;
  margin-bottom: 28px;
}

.pub-hero__subhead strong {
  color: var(--accent-hover);
}

.pub-figure {
  margin: 0 0 32px;
}

.pub-figure img,
.pub-figure video {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.pub-video-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.pub-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.pub-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin: 40px 0 10px;
}

.pub-article > p,
.pub-article > ul {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #262620;
}

.pub-article h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 16px;
  color: #111;
}

.pub-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 36px 0;
}

/* ---------- Two-column split: leverage + pull-quote ---------- */
.pub-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 12px 0 32px;
}

@media (min-width: 700px) {
  .pub-split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.pub-callout {
  background: #f4f8f2;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 22px 20px;
}

.pub-callout h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--accent-hover);
}

.pub-callout p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2c2c26;
  margin: 0;
}

.pub-pullquote {
  background: var(--callout-bg);
  border: 2px dashed var(--callout-border);
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.pub-pullquote__figure {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-weight: 800;
  color: #a9631a;
  margin-bottom: 8px;
  line-height: 1.1;
}

.pub-pullquote p {
  font-size: 0.9rem;
  color: #5c4526;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Offer list (what you can sell) ---------- */
.pub-offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-offer-list li {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.55;
  background: #fff;
}

.pub-offer-list strong {
  color: var(--accent-hover);
}

/* ---------- CTAs ---------- */
.pub-cta-band {
  text-align: center;
  margin: 32px 0;
  padding: 28px 16px;
  background: #f4f8f2;
  border-radius: 10px;
}

.pub-cta-band p {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pub-ps {
  font-style: italic;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 8px;
  color: #3a392f;
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- About page ---------- */
.pub-about h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  margin: 32px 0 12px;
  color: #111;
}

.pub-about h2:first-of-type {
  margin-top: 0;
}

.pub-about p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #262620;
}

.pub-about ul {
  margin-bottom: 16px;
}

.pub-about li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.pub-lede {
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.2rem);
  color: #33322c;
  margin-bottom: 24px;
  line-height: 1.55;
}
