/* The studio journal uses the same brand tokens and navigation as agency.css. */
.article-container {
  width: min(1120px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 38px 96px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  font-size: .85rem;
  color: var(--muted);
}

.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-breadcrumb a:hover { color: var(--ink); }

.article-header {
  padding-bottom: 42px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-title {
  max-width: 24ch;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(2.5rem, 5.2vw, 4.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-transform: none;
  text-wrap: balance;
}

.article-dek {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.22rem);
  line-height: 1.7;
}

.article-hero-image {
  width: 100%;
  height: auto;
  margin-block: 36px 22px;
  border-radius: 4px;
}

.origin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.origin-link:hover { color: var(--ink); }

.article-body {
  max-width: 740px;
  margin-inline: auto;
  color: #343a34;
  font-size: 1.125rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.article-body > :first-child { margin-top: 0; }
.article-body p { max-width: none; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body figure,
.article-body pre,
.article-body table { margin: 0 0 1.6em; }

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.035em;
  text-transform: none;
  text-wrap: pretty;
  scroll-margin-top: 115px;
}

.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 2.2em 0 .7em; }
.article-body h3 { font-size: clamp(1.45rem, 2.5vw, 1.8rem); margin: 2em 0 .8em; }
.article-body h4 { font-size: 1.2rem; margin: 1.8em 0 .7em; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .65em; }
.article-body li::marker { color: #536520; }

.article-body a {
  color: #425d0c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.article-body a:hover { color: var(--ink); text-decoration-thickness: 2px; }

.article-body img, .article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.article-body iframe { max-width: 100%; }
.article-body figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.6;
}

.article-body blockquote {
  padding: 8px 0 8px 24px;
  border-left: 3px solid #7b951c;
  color: var(--ink);
}
.article-body blockquote > :last-child { margin-bottom: 0; }
.article-body hr { margin-block: 48px; border: 0; border-top: 1px solid var(--line); }
.article-body .article-divider { margin-block: 40px; text-align: center; color: var(--muted); }
.article-callout { margin-block: 40px; padding: 28px; border: 1px solid var(--line); background: #edf0e8; }
.article-callout h3 { margin-top: 0; }
.article-callout > :last-child { margin-bottom: 0; }

.article-body code {
  padding: .15em .3em;
  border-radius: 3px;
  background: #edf0e8;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .88em;
}
.article-body pre {
  max-width: 100%;
  padding: 24px;
  overflow-x: auto;
  border: 1px solid #343a2e;
  border-radius: 4px;
  background: var(--dark);
  color: #f8faf5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .86em;
  line-height: 1.75;
  white-space: pre;
  overflow-wrap: normal;
}
.article-body pre code { padding: 0; background: transparent; color: inherit; font-size: inherit; }
.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .95rem;
}
.article-body th, .article-body td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; }
.article-body th { background: #edf0e8; color: var(--ink); }

.article-container .post-cta,
.article-container .service-route-cta {
  max-width: 900px;
  margin: 72px auto 0;
  padding: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  text-align: left;
}
.article-container .post-cta h3,
.article-container .service-route-cta h2 {
  max-width: 26ch;
  margin: 0 0 18px;
  font: 600 clamp(1.8rem, 3vw, 2.4rem)/1.15 var(--sans);
  letter-spacing: -.04em;
  color: var(--ink);
}
.article-container .post-cta p,
.article-container .service-route-cta p {
  max-width: 62ch;
  margin: 0 0 24px;
  font: 400 1rem/1.75 var(--sans);
  color: #303b21;
}
.article-container .post-cta .button,
.article-container .post-cta .btn,
.article-container .service-route-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font: 700 .94rem/1.4 var(--sans);
  text-decoration: none;
}
.article-container .post-cta .button:hover,
.article-container .post-cta .btn:hover,
.article-container .service-route-cta > a:hover { background: #353c30; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.newsletter-form input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid #85964b;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-success { margin-block: 18px; padding: 18px; background: var(--paper); color: #30470d; }

/* Match the article brand without changing shared consent behavior. */
.article-page #cookie-consent-banner {
  background: var(--dark);
  border-color: #42483f;
  border-radius: 4px;
  box-shadow: 0 8px 32px #10121026;
  font-family: var(--sans);
}
.article-page #cookie-consent-banner .cc-icon,
.article-page #cookie-consent-banner .cc-text a { color: var(--accent); }
.article-page #cookie-consent-banner .cc-text p { color: #d8dfd2; }
.article-page #cookie-consent-banner .cc-btn { border-radius: 4px; min-height: 44px; }
.article-page #cookie-consent-banner .cc-btn-decline { border-color: #76816c; color: #f8faf5; }
.article-page #cookie-consent-banner .cc-btn-accept { background: var(--accent); color: var(--ink); box-shadow: none; }
.article-page #cookie-consent-banner .cc-btn-accept:hover { background: #e2ff88; }

@media (max-width: 900px) {
  .article-container { width: calc(100% - 56px); }
  .article-breadcrumb { margin-bottom: 30px; }
}
@media (max-width: 680px) {
  .article-container { width: calc(100% - 40px); padding-block: 20px 60px; }
  .article-breadcrumb { margin-bottom: 24px; }
  .article-header { padding-bottom: 26px; margin-bottom: 34px; }
  .article-meta { font-size: .72rem; margin-bottom: 18px; }
  .article-title { font-size: clamp(2.2rem, 8.8vw, 3.3rem); margin-bottom: 24px; text-wrap: pretty; }
  .article-dek { font-size: 1.05rem; }
  .article-hero-image { margin-block: 28px 14px; }
  .article-body { font-size: 1.0625rem; line-height: 1.8; }
  .article-body pre { padding: 18px; font-size: .8em; }
  .article-body blockquote { padding-left: 18px; }
  .article-container .post-cta,
  .article-container .service-route-cta { margin-top: 48px; padding: 28px 24px; }
  .article-container .post-cta .button,
  .article-container .post-cta .btn,
  .article-container .service-route-cta > a { display: flex; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .article-page #cookie-consent-banner { opacity: 1; transform: translateX(-50%); }
}

@media print {
  .agency-header, .agency-footer, .article-breadcrumb, .post-cta, .service-route-cta,
  .article-page #cookie-consent-banner { display: none; }
  .article-container { width: 100%; padding: 0; }
  .article-body { max-width: none; font-size: 11pt; }
  .article-title { font-size: 28pt; }
  .article-hero-image { max-height: 240px; object-fit: contain; }
  .article-body pre { white-space: pre-wrap; color: black; background: white; border-color: #aaa; }
  .article-body h2, .article-body h3 { break-after: avoid; }
}
