.article-hero {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.article-hero h1 {
  max-width: 13ch;
  margin: 1rem 0 0;
  color: var(--color-cream, #fffaf0);
  font-size: clamp(3.25rem, 7vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.article-hero-summary {
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.article-hero-summary p {
  margin: 1.25rem 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.article-meta span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fffaf0;
  font-size: 0.9rem;
}

.article-section {
  padding-top: clamp(3rem, 6vw, 6rem);
}

.article-page .article-layout {
  display: block;
}

.article-sidebar {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1.25rem;
}

.article-author-card,
.article-toc,
.article-review-note {
  padding: 1.35rem;
  border: 1px solid rgba(8, 45, 67, 0.18);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.58);
}

.article-author-card {
  display: grid;
  gap: 0.45rem;
}

.article-author-card a {
  color: #082d43;
  font-size: 1.12rem;
}

.article-author-card span:last-child {
  color: #496478;
  line-height: 1.45;
}

.article-toc ol {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  color: #214c63;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: #082d43;
  text-decoration: underline;
}

.article-toc .toc-level-3 {
  padding-left: 0.8rem;
  font-size: 0.9rem;
}

.article-content {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  color: #173d52;
  font-size: inherit;
  line-height: 1.78;
}

.article-content > *:first-child,
.article-content > article > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3 {
  color: #082d43;
  scroll-margin-top: 7rem;
}

.article-content h2 {
  margin: 3.25rem 0 1rem;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.article-content a {
  color: #075d7c;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.article-content li + li {
  margin-top: 0.5rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid #d8ff4f;
  background: #f3f8dd;
  color: #082d43;
}

.article-featured {
  overflow: hidden;
  margin: 0 0 2.5rem;
  border-radius: 1.5rem;
}

.article-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.article-review-note {
  margin-top: 3.5rem;
  background: #f3f8dd;
}

.article-review-note p {
  margin: 0.5rem 0 0;
}

.article-cta {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .article-hero-grid,
  .article-page .article-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-summary {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }
}

.article-author-footer {
  margin-top: 3.5rem;
}

/* Compact Post identity and actions, aligned with the existing article grid. */
.article-page .article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  color: #fffaf1;
  font-size: 17px;
  line-height: 1.45;
}
.article-page .article-byline img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fffaf140;
}
.article-page .article-byline a { color: #ddf55d; font-weight: 650; text-underline-offset: 4px; }
.article-page .article-byline small { display: block; margin-top: 3px; font-size: 14px; color: #fffaf1cc; }
.article-page .article-meta { gap: 6px 16px; color: #fffaf1cc; font-size: 13px; line-height: 1.6; }
.article-page .article-meta > span { padding: 0; border: 0; border-radius: 0; color: inherit; font-size: inherit; }
.article-page .article-top-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.article-page .article-preferred { min-width: 0; max-width: 100%; }
.article-page .article-preferred-button,
.article-page .article-share-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid #c8d1c9;
  border-radius: 999px;
  background: #fffaf1;
  color: #102d42;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
}
.article-page .article-preferred-button:hover,
.article-page .article-share-button:hover { background: #f1f5df; border-color: #53686f; text-decoration: none; }
.article-page .article-preferred-button:focus-visible,
.article-page .article-share-button:focus-visible,
.article-page .article-share-options :is(a,button,input):focus-visible { outline: 3px solid #8a78ff; outline-offset: 4px; }
.article-page .article-preferred-button img { flex: 0 0 22px; width: 22px; height: 22px; display: block; margin: 0; border-radius: 0; }
.article-page .article-preferred-button > span { min-width: 0; overflow-wrap: anywhere; }
.article-page .article-share-button { background: transparent; color: #fffaf1; border-color: #fffaf155; }
.article-page .article-share-button:hover { background: #fffaf115; color: #fffaf1; border-color: #fffaf199; }
.article-page .article-share { position: relative; }
.article-page .article-share-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  width: 220px;
  max-width: calc(100vw - 28px);
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #c8d1c9;
  border-radius: 14px;
  background: #fffaf1;
  color: #102d42;
  box-shadow: 0 12px 30px #061e3133;
}
.article-page .article-share-options[hidden],
.article-page .article-share-options > [hidden],
.article-page .article-share-manual[hidden] { display: none !important; }
.article-page .article-share-options > :is(a,button) { box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #102d42; font: inherit; font-size: 14px; line-height: 1.5; text-align: left; text-decoration: none; cursor: pointer; }
.article-page .article-share-options > :is(a,button):hover { background: #f1eadf; }
.article-page .article-share-manual { display: block; padding: 8px; font-size: 12px; }
.article-page .article-share-manual input { box-sizing: border-box; max-width: 100%; width: 100%; margin-top: 6px; padding: 8px; border: 1px solid #c8d1c9; color: #102d42; }
.article-page [data-share-status] { display: block; padding-inline: 12px; font-size: 13px; }
.article-page .article-preferred--bottom { margin: 28px 0; }
.article-page .article-author-footer { display: flex; align-items: flex-start; gap: 20px; margin-top: 28px; padding: 24px; background: #fffaf1; border: 1px solid #c8d1c9; border-radius: 18px; }
.article-page .article-author-photo { display: block; flex: 0 0 80px; width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.article-page .article-author-details { display: grid; gap: 6px; min-width: 0; }
.article-page .article-author-details .content-eyebrow { font-size: 12px; color: #53686f; }
.article-page .article-author-details .article-author-name { color: #102d42; font-size: 20px; line-height: 1.4; text-decoration: none; }
.article-page .article-author-details .article-author-role { color: #53686f; font-size: 14px; line-height: 1.5; }
.article-page .article-author-details p { max-width: 80ch; margin: 8px 0; font-size: 16px; line-height: 1.65; }
.article-page .article-author-details .article-author-profile-link { color: #102d42; font-size: 14px; line-height: 1.5; }

@media (max-width: 620px) {
  .article-page .article-byline { font-size: 16px; }
  .article-page .article-author-footer { flex-direction: column; padding: 20px; gap: 14px; }
}

/* A contained reading column for Posts, with uncropped content images. */
.article-page .article-content {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.65;
}
.article-page .article-hero-summary p { font-size: 18px; line-height: 1.6; }
.article-page .article-content-body { min-width: 0; }
.article-page .article-content-body p { margin: 0 0 18px; font-size: inherit; line-height: inherit; }
.article-page .article-content h2 { margin: 40px 0 16px; font-size: clamp(1.875rem, 2.5vw, 2rem); line-height: 1.2; }
.article-page .article-content h3 { margin: 28px 0 12px; font-size: clamp(1.375rem, 2vw, 1.5rem); line-height: 1.25; }
.article-page .article-content-body > :first-child,
.article-page .article-content-body > article > :first-child { margin-top: 0; }
.article-page .article-content-body figure { max-width: 100%; margin: 24px 0; }
.article-page .article-content-body img.article-content-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  margin-inline: auto;
  object-fit: contain;
}
.article-page .article-content-body .article-image-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: #075d7c;
  text-decoration: none;
  cursor: zoom-in;
}
.article-page .article-image-link > span { font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.article-page .article-image-link:focus-visible { outline: 3px solid #8a78ff; outline-offset: 5px; border-radius: 8px; }
.article-page .article-content-body figcaption { margin-top: 10px; color: #53686f; font-size: 14px; line-height: 1.5; }
.article-page .article-table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #c8d1c9; border-radius: 12px; background: #fffaf1; }
.article-page .article-table-scroll:focus-visible { outline: 3px solid #8a78ff; outline-offset: 3px; }
.article-page .article-table-scroll table { width: 100%; min-width: 640px; border-collapse: collapse; }
.article-page .article-table-scroll :is(th,td) { padding: 12px; font-size: 15px; line-height: 1.5; text-align: left; vertical-align: top; border-bottom: 1px solid #c8d1c9; }
.article-page .article-table-scroll th { background: #edf3e8; color: #102d42; }
.article-page .article-table-scroll tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .article-page .article-content { font-size: 16.5px; line-height: 1.7; }
  .article-page .article-hero-summary p { font-size: 17px; }
  .article-page .article-content h2 { margin-top: 32px; font-size: clamp(1.5rem, 6.8vw, 1.75rem); }
  .article-page .article-content h3 { margin-top: 24px; font-size: clamp(1.25rem, 5.5vw, 1.375rem); }
  .article-page .article-content-body figure { margin-block: 20px; }
  .article-page .article-table-scroll :is(th,td) { padding: 10px; font-size: 14px; }
}

/* Shared Editorial treatment: existing and future WordPress Posts inherit it. */
.article-page .article-content-body {
  --article-paper: #fffaf1;
  --article-line: #c8d1c9;
  --article-ink: #102d42;
  --article-note: #edf3e8;
  --article-accent: #d9f36a;
  --article-coral: #a74135;
}
.article-page .article-content-body .article-intro-frame {
  box-sizing: border-box;
  margin: 24px 0 28px;
  padding: 24px 28px;
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: var(--article-paper);
  color: var(--article-ink);
  box-shadow: 0 5px 16px #102d4205;
}
.article-page .article-content-body .article-section-heading {
  position: relative;
  margin: 38px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--article-line);
}
.article-page .article-content-body .article-section-heading::after {
  content: '';
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 14px;
  border-radius: 6px;
  background: var(--article-accent);
}
.article-page .article-content-body .article-section-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.article-page .article-content-body .article-media-frame {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 26px 0;
  padding: 12px;
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: var(--article-paper);
}
.article-page .article-content-body .article-media-frame .article-content-image {
  border-radius: 10px;
}
.article-page .article-content-body .article-media-frame figcaption {
  margin: 12px 0 2px;
  padding-inline: 6px;
}
.article-page .article-content-body .article-quote-frame,
.article-page .article-content-body .article-callout {
  box-sizing: border-box;
  clear: both;
  margin: 26px 0;
  padding: 20px 24px;
  border: 0;
  border-left: 4px solid var(--article-coral);
  border-radius: 0 18px 18px 0;
  background: var(--article-note);
  color: var(--article-ink);
}
.article-page .article-content-body .article-callout--warning {
  background: #fff2e5;
}
.article-page .article-content-body .article-quote-frame > :last-child {
  margin-bottom: 0;
}
.article-page .article-content-body .article-quote-frame cite {
  display: block;
  margin-top: 12px;
  color: #53686f;
  font-size: 14px;
}
.article-page .article-content-body :is(ul,ol) { padding-left: 26px; list-style: revert; }
.article-page .article-content-body li { padding-left: 4px; }
.article-page .article-content-body li + li { margin-top: 10px; }
.article-page .article-content-body li::marker { color: var(--article-coral); }
.article-page .article-content-body .article-table-scroll {
  border-radius: 18px;
  margin: 26px 0;
}
.article-page .article-content-body .article-table-scroll :is(th,td) {
  padding: 15px 18px;
}
.article-page .article-content-body .article-table-scroll tbody tr:nth-child(even) {
  background: #f7f1e8;
}
.article-page .article-content-body hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--article-line);
}
@media (max-width: 640px) {
  .article-page .article-content-body .article-intro-frame { padding: 20px; margin: 20px 0 24px; }
  .article-page .article-content-body .article-section-heading { margin-top: 32px; padding-top: 22px; }
  .article-page .article-content-body .article-media-frame { padding: 10px; margin-block: 22px; }
  .article-page .article-content-body .article-quote-frame,
  .article-page .article-content-body .article-callout { padding: 18px 20px; margin-block: 22px; }
  .article-page .article-content-body .article-table-scroll :is(th,td) { padding: 12px; }
}

