/* Article page readability and SEO-friendly content layout. Scoped to the article page. */
.article-page {
  --article-ink: #1f2e25;
  --article-muted: #637168;
  --article-line: #e1e9e2;
  max-width: 1080px;
  margin: 0 auto;
  color: var(--article-ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.article-page a:focus-visible,
.article-page button:focus-visible {
  outline: 3px solid rgba(35, 131, 75, .35);
  outline-offset: 3px;
}
.article-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  color: #7a887e;
  font-size: 13px;
  line-height: 1.6;
}
.article-page .breadcrumbs a {
  color: #247a45;
  font-weight: 650;
}
.article-page .breadcrumbs [aria-current="page"] {
  color: #55645a;
  overflow-wrap: anywhere;
}
.article-page .article-header {
  max-width: 850px;
  margin: 0 auto 26px;
}
.article-page .article-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #dcecdf;
  border-radius: 999px;
  background: #f2faf3;
  color: #247a45;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  line-height: 1.4;
  text-transform: uppercase;
}
.article-page .article-header h1 {
  margin: 14px 0 15px;
  color: #17251c;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.9px;
  text-wrap: balance;
}
.article-page .article-excerpt {
  max-width: 74ch;
  margin: 0 0 17px;
  color: #56665b;
  font-size: 18px;
  line-height: 1.8;
}
.article-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #7b887e;
  font-size: 13px;
  line-height: 1.6;
}
.article-page .post-cover {
  display: block;
  width: 100%;
  height: clamp(230px, 34vw, 380px);
  margin: 0 auto 30px;
  padding: 8px;
  border: 1px solid #e2e9e3;
  border-radius: 19px;
  background: #f6f8f6;
  object-fit: contain;
  object-position: center;
}
.article-page .article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 28px;
}
.article-page .article-main { min-width: 0; }
.article-page .content-section {
  padding: 28px 30px;
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 57, 34, .035);
}
.article-page .content-section h2,
.article-page .locked-section h2 {
  margin: 0 0 16px;
  color: #1c2b21;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.35px;
}
.article-page .article-body {
  max-width: 76ch;
  color: #2d3a31;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.article-page .article-body p { margin: 0 0 1.15em; }
.article-page .article-body br + br { line-height: 1.4; }
.article-page .locked-section {
  margin-top: 22px;
  padding: 27px 29px;
  border: 1px solid #d8e9db;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fcf8, #fff);
}
.article-page .locked-section.unlocked {
  background: #fbfdfb;
}
.article-page .locked-section-head {
  gap: 14px;
  margin-bottom: 18px;
}
.article-page .locked-section-head h2 { margin: 0 0 5px; }
.article-page .locked-section-head p {
  margin: 0;
  color: #657469;
  font-size: 14px;
  line-height: 1.7;
}
.article-page .lock-icon {
  flex-basis: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 20px;
}
.article-page .locked-preview {
  height: 150px;
  padding: 22px;
  border-radius: 12px;
}
.article-page .unlock-box { margin-top: 20px; }
.article-page .unlock-price { font-size: 23px; }
.article-page .unlock-box small { margin-top: 5px; font-size: 13px; }
.article-page .unlock-box .button { min-height: 46px; font-size: 14px; }
.article-page .article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-page .side-card {
  padding: 22px;
  border: 1px solid #e0e9e1;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(27, 57, 34, .04);
}
.article-page .side-label {
  font-size: 11px;
  letter-spacing: 1px;
}
.article-page .side-card h3 {
  margin: 9px 0 8px;
  color: #203027;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}
.article-page .side-card p {
  margin: 0 0 16px;
  color: #647268;
  font-size: 14px;
  line-height: 1.8;
}
.article-page .side-card>a:not(.button) {
  font-size: 13px;
  font-weight: 800;
}
.article-page .sidebar-price {
  margin-bottom: 12px;
  font-size: 23px;
}
.article-page .side-card .button { min-height: 45px; font-size: 13px; }
@media (max-width: 900px) {
  .article-page .article-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .article-page .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-page .article-header { max-width: none; }
}
@media (max-width: 640px) {
  .article-page .breadcrumbs { margin-bottom: 17px; font-size: 12px; }
  .article-page .article-header { margin-bottom: 20px; }
  .article-page .article-header h1 { font-size: clamp(29px, 7.5vw, 35px); line-height: 1.25; letter-spacing: -.55px; }
  .article-page .article-excerpt { font-size: 16px; line-height: 1.75; }
  .article-page .post-cover { height: 250px; margin-bottom: 20px; padding: 5px; border-radius: 14px; }
  .article-page .content-section { padding: 20px 19px; border-radius: 15px; }
  .article-page .content-section h2,
  .article-page .locked-section h2 { font-size: 21px; }
  .article-page .article-body { font-size: 17px; line-height: 1.9; }
  .article-page .locked-section { padding: 20px 18px; border-radius: 15px; }
  .article-page .article-sidebar { grid-template-columns: minmax(0, 1fr); }
  .article-page .side-card { padding: 20px; }
  .article-page .unlock-box { align-items: stretch; }
  .article-page .unlock-box form,
  .article-page .unlock-box form .button,
  .article-page .unlock-box > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .article-page * { scroll-behavior: auto !important; transition: none !important; }
}

/* Modern article header refresh: scoped to article pages only. */
.article-page {
  --article-ink: #17251d;
  --article-muted: #657369;
  --article-line: #e3eae4;
}
.article-page .breadcrumbs {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 14px;
  gap: 9px;
  border: 1px solid #e7ece7;
  border-radius: 999px;
  background: #fbfcfb;
  box-shadow: 0 3px 12px rgba(24, 55, 31, .025);
  font-size: 13px;
}
.article-page .breadcrumbs a {
  color: #217b43;
  text-decoration: none;
  transition: color .18s ease;
}
.article-page .breadcrumbs a:hover { color: #d92f32; }
.article-page .article-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  margin: 0 0 24px;
  padding: clamp(27px, 4vw, 46px);
  border: 1px solid #e6eae4;
  border-radius: 24px;
  background: linear-gradient(118deg, #fff6f5 0%, #fff 47%, #f1faf3 100%);
  box-shadow: 0 16px 40px rgba(28, 59, 36, .065);
}
.article-page .article-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 5px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, #d92f32, #23834b);
}
.article-page .article-header::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -92px;
  top: -136px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 1px solid rgba(35, 131, 75, .13);
  background: radial-gradient(circle, rgba(255,255,255,.05) 0 42%, rgba(255,255,255,.48) 43% 43.5%, transparent 44% 56%, rgba(217,47,50,.06) 56.5% 57%, transparent 57.5%);
  pointer-events: none;
}
.article-page .article-header > * { position: relative; z-index: 1; }
.article-page .article-kicker {
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #f0d9d7;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #b52b2e;
  font-size: 12px;
  letter-spacing: .8px;
  box-shadow: 0 3px 10px rgba(115, 43, 35, .035);
}
.article-page .article-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #23834b;
  box-shadow: 0 0 0 3px #e9f5ec;
}
.article-page .article-header h1 {
  max-width: 22ch;
  margin: 18px 0 14px;
  color: #16241b;
  font-size: clamp(36px, 4.4vw, 50px);
  font-weight: 850;
  line-height: 1.13;
  letter-spacing: -1.35px;
  text-wrap: balance;
}
.article-page .article-excerpt {
  max-width: 66ch;
  margin: 0 0 22px;
  color: #59695e;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.8;
}
.article-page .article-meta {
  gap: 9px;
  color: #637267;
  font-size: 13px;
}
.article-page .article-meta span:nth-child(2) { display: none; }
.article-page .article-meta span:nth-child(1),
.article-page .article-meta span:nth-child(3) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e1e9e2;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-weight: 650;
}
.article-page .article-meta span:nth-child(1)::before {
  content: "◷";
  color: #23834b;
  font-size: 15px;
}
.article-page .article-meta span:nth-child(3) {
  border-color: #f0d8d7;
  background: #fff8f7;
  color: #a92c2d;
}
.article-page .article-meta span:nth-child(3)::before {
  content: "✦";
  color: #d92f32;
  font-size: 12px;
}
.article-page .post-cover {
  margin-top: 0;
  margin-bottom: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faf7, #fff7f6);
  box-shadow: 0 10px 28px rgba(27, 57, 34, .045);
}
.article-page .content-section {
  border-color: #e3eae4;
  box-shadow: 0 12px 32px rgba(26, 57, 34, .045);
}
.article-page .content-section h2 {
  display: flex;
  align-items: center;
  gap: 11px;
}
.article-page .content-section h2::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 25px;
  flex: 0 0 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, #d92f32, #23834b);
}
.article-page .locked-section {
  border-color: #dce9de;
  box-shadow: 0 10px 26px rgba(27, 57, 34, .035);
}
.article-page .side-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.article-page .side-card:hover {
  border-color: #d2e4d5;
  box-shadow: 0 12px 28px rgba(27, 57, 34, .07);
}
@media (max-width: 900px) {
  .article-page .article-header { padding: 30px 28px; }
  .article-page .article-header h1 { font-size: clamp(34px, 5vw, 43px); }
  .article-page .article-header::after { right: -150px; }
}
@media (max-width: 640px) {
  .article-page .breadcrumbs {
    width: 100%;
    border-radius: 12px;
    padding: 9px 11px;
    gap: 7px;
  }
  .article-page .article-header {
    padding: 25px 20px 24px 23px;
    border-radius: 19px;
    margin-bottom: 20px;
  }
  .article-page .article-header::before { top: 20px; bottom: 20px; width: 4px; }
  .article-page .article-header::after { width: 220px; height: 220px; top: -95px; right: -110px; opacity: .75; }
  .article-page .article-kicker { font-size: 11px; padding: 6px 10px; }
  .article-page .article-header h1 { max-width: none; margin: 15px 0 12px; font-size: clamp(30px, 8vw, 38px); line-height: 1.2; letter-spacing: -.8px; }
  .article-page .article-excerpt { margin-bottom: 17px; font-size: 16px; line-height: 1.75; }
  .article-page .article-meta { gap: 7px; font-size: 12px; }
  .article-page .article-meta span:nth-child(1),
  .article-page .article-meta span:nth-child(3) { min-height: 32px; padding: 6px 9px; }
  .article-page .post-cover { border-radius: 15px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-page .breadcrumbs a,
  .article-page .side-card { transition: none !important; }
}


/* V2 deployment-safe article header: explicit visual treatment */
.article-page .article-header {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: block !important;
  max-width: none !important;
  margin: 0 0 28px !important;
  padding: clamp(28px, 4.5vw, 48px) !important;
  border: 1px solid #f0d9d7 !important;
  border-radius: 24px !important;
  background: linear-gradient(118deg, #fff2f1 0%, #ffffff 52%, #eef9f1 100%) !important;
  box-shadow: 0 18px 44px rgba(36, 65, 42, .09) !important;
  text-align: left !important;
}
.article-page .article-header::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  left: 0 !important;
  top: 24px !important;
  bottom: 24px !important;
  width: 6px !important;
  border-radius: 0 6px 6px 0 !important;
  background: linear-gradient(180deg, #d92f32, #23834b) !important;
}
.article-page .article-header::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  right: -90px !important;
  top: -138px !important;
  width: 340px !important;
  height: 340px !important;
  border: 1px solid rgba(35, 131, 75, .16) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, transparent 0 43%, rgba(35,131,75,.10) 43.5% 44%, transparent 44.5% 57%, rgba(217,47,50,.07) 57.5% 58%, transparent 58.5%) !important;
  pointer-events: none !important;
}
.article-page .article-header > * { position: relative !important; z-index: 1 !important; }
.article-page .article-kicker {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 13px !important;
  border: 1px solid #f0d8d6 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.9) !important;
  color: #b42a2e !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: .75px !important;
}
.article-page .article-header h1 {
  max-width: 22ch !important;
  margin: 18px 0 14px !important;
  color: #17251c !important;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(36px, 4.4vw, 50px) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  letter-spacing: -1.15px !important;
  text-align: left !important;
}
.article-page .article-excerpt {
  max-width: 66ch !important;
  margin: 0 0 22px !important;
  color: #56665b !important;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(17px, 1.7vw, 19px) !important;
  line-height: 1.8 !important;
}
.article-page .article-meta { display: flex !important; flex-wrap: wrap !important; gap: 9px !important; }
.article-page .article-meta span:nth-child(1),
.article-page .article-meta span:nth-child(3) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 35px !important;
  padding: 7px 12px !important;
  border: 1px solid #e0e9e1 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.88) !important;
  color: #526257 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.article-page .article-meta span:nth-child(3) { border-color: #f0d7d6 !important; background: #fff8f7 !important; color: #a92c2d !important; }
@media (max-width: 640px) {
  .article-page .article-header { padding: 26px 20px 25px 24px !important; border-radius: 19px !important; }
  .article-page .article-header h1 { font-size: clamp(30px, 8vw, 38px) !important; letter-spacing: -.8px !important; }
  .article-page .article-excerpt { font-size: 16px !important; }
  .article-page .article-header::after { width: 230px !important; height: 230px !important; top: -95px !important; right: -120px !important; }
}


/* Responsive content-fit guard for article intro panel. This file-level rule also works
   when the article header is rendered without the extra inline style in index.php. */
.article-page .article-header {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
}
.article-page .article-header .article-kicker,
.article-page .article-header h1,
.article-page .article-header .article-excerpt,
.article-page .article-header .article-meta,
.article-page .article-header .article-share {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.article-page .article-header h1 {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.22;
  text-wrap: pretty;
}
.article-page .article-header .article-excerpt {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.75;
}
.article-page .article-header .article-meta {
  width: 100%;
  flex-wrap: wrap;
}
.article-page .article-header .article-meta > span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .article-page .article-header { padding: 22px 17px 20px 21px; }
  .article-page .article-header h1 {
    max-width: 100%;
    font-size: clamp(26px, 6.7vw, 34px);
    line-height: 1.24;
    letter-spacing: -.45px;
  }
  .article-page .article-header .article-excerpt {
    max-width: 100%;
    font-size: clamp(14px, 3.9vw, 16px);
    line-height: 1.75;
  }
}
@media (max-width: 380px) {
  .article-page .article-header { padding: 19px 13px 17px 18px; }
  .article-page .article-header h1 { font-size: clamp(23px, 7vw, 27px); letter-spacing: -.25px; }
  .article-page .article-header .article-excerpt { font-size: 14px; line-height: 1.7; }
}
