:root {
  --lbr-article-paper: #fbf7ef;
  --lbr-article-paper-deep: #f3ecdf;
  --lbr-article-ink: #101820;
  --lbr-article-slate: #465762;
  --lbr-article-steel: #71808a;
  --lbr-article-orange: #f26b21;
  --lbr-article-orange-deep: #d95713;
  --lbr-article-line: rgba(16, 24, 32, .13);
  --lbr-article-radius: 8px;
  --lbr-article-shadow: 0 20px 60px rgba(16, 24, 32, .08);
  --lbr-article-serif: Georgia, 'Times New Roman', serif;
  --lbr-article-shell: min(calc(100% - 48px), 1260px);
  --lbr-article-reading: 760px;
  --lbr-article-sidebar: 320px;
  --lbr-article-header-offset: 104px;
}

.lbr-article-template {
  overflow: clip;
  background: var(--lbr-article-paper);
  color: var(--lbr-article-ink);
}

.lbr-article-template * { box-sizing: border-box; }
.lbr-article-template img { max-width: 100%; }
.lbr-article-shell { width: var(--lbr-article-shell); margin-inline: auto; }
.lbr-article-template a { color: inherit; }

.lbr-article-hero {
  padding: 50px 0 72px;
  border-bottom: 1px solid var(--lbr-article-line);
  background: linear-gradient(180deg, #fff 0%, var(--lbr-article-paper) 100%);
}
.lbr-article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 45px;
  color: var(--lbr-article-steel);
  font-size: 11px;
  font-weight: 750;
}
.lbr-article-breadcrumbs a { color: var(--lbr-article-slate); text-decoration: none; }
.lbr-article-breadcrumbs a:hover { color: var(--lbr-article-orange-deep); }
.lbr-article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .58fr); gap: clamp(36px, 5vw, 70px); align-items: end; }
.lbr-article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lbr-article-orange-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lbr-article-eyebrow::before { width: 32px; height: 2px; background: var(--lbr-article-orange); content: ''; }
.lbr-article-hero h1 {
  max-width: 980px;
  margin: 18px 0 22px;
  color: var(--lbr-article-ink);
  font-family: var(--lbr-article-serif);
  font-size: clamp(54px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .94;
}
.lbr-article-deck { max-width: 880px; margin: 0; color: var(--lbr-article-slate); font-size: 19px; line-height: 1.75; }
.lbr-article-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 27px; color: var(--lbr-article-steel); font-size: 11px; font-weight: 760; }
.lbr-article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.lbr-article-meta span + span::before { width: 3px; height: 3px; border-radius: 50%; background: var(--lbr-article-orange); content: ''; }
.lbr-article-author-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 21px; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: #fff; box-shadow: 0 12px 32px rgba(16,24,32,.04); }
.lbr-article-author-avatar { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; overflow: hidden; border-radius: 7px; background: var(--lbr-article-ink); color: #fff; font-family: var(--lbr-article-serif); font-size: 21px; font-weight: 700; }
.lbr-article-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lbr-article-author-card strong, .lbr-article-author-card > div > span { display: block; }
.lbr-article-author-card strong { color: var(--lbr-article-ink); font-size: 14px; }
.lbr-article-author-card > div > span { margin-top: 4px; color: var(--lbr-article-steel); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lbr-article-author-card p { margin: 9px 0 0; color: var(--lbr-article-slate); font-size: 12px; line-height: 1.55; }

.lbr-article-cover-wrap { padding-top: 34px; background: var(--lbr-article-paper); }
.lbr-article-cover { width: var(--lbr-article-shell); aspect-ratio: 2.1 / 1; margin: 0 auto; overflow: hidden; border: 1px solid rgba(16,24,32,.08); border-radius: var(--lbr-article-radius); background: var(--lbr-article-paper-deep); box-shadow: 0 20px 55px rgba(16,24,32,.08); }
.lbr-article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lbr-article-cover-caption { width: var(--lbr-article-shell); margin: 10px auto 0; color: var(--lbr-article-steel); font-size: 11px; line-height: 1.6; }

.lbr-article-reading-shell { padding: 74px 0 110px; background: var(--lbr-article-paper); }
.lbr-article-layout { display: grid; grid-template-columns: 46px minmax(0, var(--lbr-article-reading)) minmax(272px, var(--lbr-article-sidebar)); justify-content: center; gap: clamp(28px, 3.8vw, 54px); align-items: stretch; }
.lbr-article-share-rail { position: sticky; top: calc(var(--lbr-article-header-offset) + 20px); align-self: start; display: grid; gap: 10px; justify-items: center; }
.lbr-article-share-rail > span { margin-bottom: 8px; color: var(--lbr-article-steel); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.lbr-article-share-rail button, .lbr-article-share-rail a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--lbr-article-line); border-radius: 50%; background: #fff; color: var(--lbr-article-ink); cursor: pointer; font: 850 11px/1 Arial, sans-serif; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.lbr-article-share-rail button:hover, .lbr-article-share-rail a:hover { border-color: var(--lbr-article-ink); background: var(--lbr-article-ink); color: #fff; }
.lbr-article-main { min-width: 0; }
.lbr-article-mobile-toc { display: none; }

.lbr-article-takeaways { margin: 0 0 42px; padding: 29px; border: 1px solid rgba(242,107,33,.28); border-radius: var(--lbr-article-radius); background: #fff7ee; }
.lbr-article-takeaways h2 { margin: 0 0 15px; color: var(--lbr-article-ink); font-family: var(--lbr-article-serif); font-size: 31px; font-weight: 400; line-height: 1.1; }
.lbr-article-takeaways ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; color: var(--lbr-article-slate); font-size: 14px; line-height: 1.65; }
.lbr-article-takeaways li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid rgba(16,24,32,.1); }
.lbr-article-takeaways li:first-child { border-top: 0; }
.lbr-article-takeaways li::before { position: absolute; left: 0; color: var(--lbr-article-orange-deep); content: '✓'; font-weight: 900; }

.lbr-article-body { color: var(--lbr-article-slate); font-size: 18px; line-height: 1.85; }
.lbr-article-body > :first-child { margin-top: 0; }
.lbr-article-body h2, .lbr-article-body h3 { color: var(--lbr-article-ink); scroll-margin-top: calc(var(--lbr-article-header-offset) + 20px); }
.lbr-article-body h2 { margin: 76px 0 23px; font-family: var(--lbr-article-serif); font-size: 48px; font-weight: 400; letter-spacing: 0; line-height: 1.05; }
.lbr-article-body h3 { margin: 42px 0 16px; font-family: var(--lbr-article-serif); font-size: 31px; font-weight: 400; letter-spacing: 0; line-height: 1.13; }
.lbr-article-body p { margin: 0 0 25px; color: var(--lbr-article-slate); font-size: 18px; line-height: 1.85; }
.lbr-article-body strong { color: var(--lbr-article-ink); }
.lbr-article-body a { color: var(--lbr-article-orange-deep); font-weight: 750; text-decoration-color: rgba(217,87,19,.35); text-underline-offset: 3px; }
.lbr-article-body ul, .lbr-article-body ol { display: grid; gap: 10px; margin: 0 0 30px; padding-left: 24px; color: var(--lbr-article-slate); font-size: 18px; line-height: 1.75; }
.lbr-article-body li::marker { color: var(--lbr-article-orange); }
.lbr-article-body blockquote { position: relative; margin: 48px 0; padding: 34px 34px 34px 54px; border-left: 4px solid var(--lbr-article-orange); border-radius: 0 var(--lbr-article-radius) var(--lbr-article-radius) 0; background: #fff8f0; }
.lbr-article-body blockquote::before { position: absolute; top: 17px; left: 18px; color: var(--lbr-article-orange); content: '“'; font-family: var(--lbr-article-serif); font-size: 52px; line-height: 1; }
.lbr-article-body blockquote p { margin: 0; color: var(--lbr-article-ink); font-family: var(--lbr-article-serif); font-size: 29px; line-height: 1.4; }
.lbr-article-body figure { margin: 48px 0; }
.lbr-article-body figure img { display: block; width: 100%; height: auto; border-radius: var(--lbr-article-radius); }
.lbr-article-body figcaption { margin-top: 9px; color: var(--lbr-article-steel); font-size: 11px; line-height: 1.6; }
.lbr-article-body table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.lbr-article-body .wp-block-table { margin: 42px 0; overflow-x: auto; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: #fff; }
.lbr-article-body th, .lbr-article-body td { padding: 14px; border-right: 1px solid var(--lbr-article-line); border-bottom: 1px solid var(--lbr-article-line); text-align: left; vertical-align: top; }
.lbr-article-body th { color: var(--lbr-article-ink); background: var(--lbr-article-paper-deep); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.lbr-article-body .wp-block-image { margin: 48px 0; }
.lbr-article-body .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--lbr-article-radius); }

/* Keep legacy article blocks readable inside the new dynamic article template. */
.lbr-article-template .lbr-article-body .article13-section {
  margin: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: calc(var(--lbr-article-header-offset) + 20px);
}
.lbr-article-template .lbr-article-body .article13-section + .article13-section { margin-top: 76px; }
.lbr-article-template .lbr-article-body .article13-section h2 {
  margin: 0 0 23px;
  color: var(--lbr-article-ink);
  font-family: var(--lbr-article-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}
.lbr-article-template .lbr-article-body .article13-section h3 {
  margin: 42px 0 16px;
  color: var(--lbr-article-ink);
  font-family: var(--lbr-article-serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.13;
}
.lbr-article-template .lbr-article-body .article13-section p {
  margin: 0 0 25px;
  color: var(--lbr-article-slate);
  font-size: 18px;
  line-height: 1.85;
}
.lbr-article-template .lbr-article-body .article13-list {
  display: block;
  margin: 0 0 30px;
  padding-left: 24px;
  color: var(--lbr-article-slate);
  list-style: disc;
}
.lbr-article-template .lbr-article-body .article13-list li {
  position: static;
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1.75;
}
.lbr-article-template .lbr-article-body .article13-list li::before { content: none; }
.lbr-article-template .lbr-article-body .article13-list li::marker { color: var(--lbr-article-orange); }

.lbr-inline-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 46px 0; padding: 27px; border-radius: var(--lbr-article-radius); background: linear-gradient(135deg, var(--lbr-article-ink), #1d2d36); box-shadow: 0 24px 55px rgba(16,24,32,.16); }
.lbr-inline-cta h3 { margin: 0; color: #fff; font-family: var(--lbr-article-serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.lbr-inline-cta p { margin: 9px 0 0; color: #cbd5dc; font-size: 13px; line-height: 1.65; }
.lbr-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; background: var(--lbr-article-orange); color: #fff !important; font-size: 12px; font-weight: 850; text-decoration: none !important; transition: background .2s ease, transform .2s ease; }
.lbr-button:hover { background: var(--lbr-article-orange-deep); color: #fff !important; transform: translateY(-1px); }

.lbr-article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 45px 0 0; padding-top: 25px; border-top: 1px solid var(--lbr-article-line); }
.lbr-article-tags a { padding: 8px 11px; border: 1px solid var(--lbr-article-line); border-radius: 999px; background: #fff; color: var(--lbr-article-slate); font-size: 10px; font-weight: 850; text-decoration: none; }

.lbr-article-sidebar { min-width: 0; align-self: stretch; }
.lbr-article-toc-boundary { position: relative; min-height: 58vh; }
.lbr-article-toc-card { position: sticky; top: calc(var(--lbr-article-header-offset) + 20px); max-height: calc(100vh - var(--lbr-article-header-offset) - 40px); padding: 20px; overflow: auto; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(16,24,32,.05); }
.lbr-article-toc-card h2, .lbr-article-side-card h2, .lbr-article-sidebar-inquiry h2 { margin: 0 0 13px; color: var(--lbr-article-ink); font-family: var(--lbr-article-serif); font-size: 25px; font-weight: 400; line-height: 1.1; }
.lbr-article-toc-card ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.lbr-article-toc-card a { display: block; padding: 7px 8px; border-left: 2px solid transparent; color: var(--lbr-article-slate); font-size: 12px; font-weight: 720; line-height: 1.4; text-decoration: none; }
.lbr-article-toc-card li.level-3 a { padding-left: 18px; color: var(--lbr-article-steel); font-size: 11px; }
.lbr-article-toc-card a.is-active { border-color: var(--lbr-article-orange); background: #fff6ed; color: var(--lbr-article-ink); }
.lbr-article-sidebar-inquiry { margin-top: 14px; padding: 23px; border: 1px solid rgba(242,107,33,.3); border-radius: var(--lbr-article-radius); background: #fffaf5; box-shadow: 0 14px 36px rgba(16,24,32,.04); }
.lbr-article-sidebar-inquiry h2 { margin-bottom: 10px; font-size: 28px; }
.lbr-article-sidebar-inquiry p { margin: 0; color: var(--lbr-article-slate); font-size: 13px; line-height: 1.65; }
.lbr-article-sidebar-inquiry .lbr-button { width: 100%; margin-top: 16px; }
.lbr-article-sidebar-stack { display: grid; gap: 14px; margin-top: 14px; }
.lbr-article-side-card { padding: 20px; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: rgba(255,255,255,.78); box-shadow: 0 14px 36px rgba(16,24,32,.045); }
.lbr-article-category-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.lbr-article-category-pills a { padding: 8px 10px; border: 1px solid var(--lbr-article-line); border-radius: 999px; background: #fff; color: var(--lbr-article-slate); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.lbr-article-category-pills a.is-active { border-color: var(--lbr-article-orange); background: var(--lbr-article-orange); color: #fff; }
.lbr-article-post-list { display: grid; margin: 0; padding: 0; list-style: none; }
.lbr-article-post-list li + li { border-top: 1px solid var(--lbr-article-line); }
.lbr-article-post-list a { display: grid; gap: 4px; padding: 12px 0; color: var(--lbr-article-ink); font-size: 12px; font-weight: 760; line-height: 1.42; text-decoration: none; }
.lbr-article-post-list a:hover { color: var(--lbr-article-orange-deep); }
.lbr-article-post-list small { color: var(--lbr-article-steel); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.lbr-article-final-cta { position: sticky; top: calc(var(--lbr-article-header-offset) + 20px); margin-top: 14px; padding: 24px; border: 2px solid #ff6259; border-radius: 4px; outline: 1px solid rgba(255,255,255,.16); outline-offset: -7px; background: var(--lbr-article-ink); box-shadow: 0 18px 42px rgba(16,24,32,.18); color: #fff; }
.lbr-article-final-cta h2 { margin: 0 0 11px; color: #fff; font-family: var(--lbr-article-serif); font-size: 31px; font-weight: 400; line-height: 1.08; }
.lbr-article-final-cta p { color: #cbd5dc; font-size: 13px; line-height: 1.65; }
.lbr-article-final-cta .lbr-button { width: 100%; margin-top: 12px; }

.lbr-article-related { padding: 12px 0 90px; background: var(--lbr-article-paper-deep); }
.lbr-article-related h2 { margin: 0 0 24px; color: var(--lbr-article-ink); font-family: var(--lbr-article-serif); font-size: 44px; font-weight: 400; line-height: 1.08; }
.lbr-article-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lbr-article-related-grid a { display: grid; gap: 11px; min-height: 180px; padding: 23px; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: rgba(255,255,255,.78); color: var(--lbr-article-ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.lbr-article-related-grid a:hover { box-shadow: var(--lbr-article-shadow); transform: translateY(-3px); }
.lbr-article-related-grid span, .lbr-article-related-grid small { color: var(--lbr-article-steel); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.lbr-article-related-grid strong { font-family: var(--lbr-article-serif); font-size: 28px; font-weight: 400; line-height: 1.13; }

@media (max-width: 1260px) {
  .lbr-article-share-rail { display: none; }
  .lbr-article-layout { grid-template-columns: minmax(0, var(--lbr-article-reading)) minmax(272px, var(--lbr-article-sidebar)); }
}
@media (max-width: 1120px) {
  .lbr-article-layout { grid-template-columns: minmax(0, 1fr) minmax(248px, 280px); gap: 36px; }
  .lbr-article-hero h1 { font-size: 70px; }
  .lbr-article-body h2 { font-size: 42px; }
  .lbr-article-body h3 { font-size: 28px; }
  .lbr-article-template .lbr-article-body .article13-section h2 { font-size: 42px; }
  .lbr-article-template .lbr-article-body .article13-section h3 { font-size: 28px; }
}
@media (max-width: 860px) {
  :root { --lbr-article-shell: min(calc(100% - 32px), 1260px); --lbr-article-header-offset: 78px; }
  .lbr-article-hero { padding: 36px 0 30px; }
  .lbr-article-breadcrumbs { margin-bottom: 30px; }
  .lbr-article-hero-grid, .lbr-article-layout { grid-template-columns: 1fr; }
  .lbr-article-share-rail { display: none; }
  .lbr-article-sidebar { display: contents; }
  .lbr-article-toc-boundary { order: -1; min-height: 0; }
  .lbr-article-toc-card { position: static; max-height: none; }
  .lbr-article-toc-card h2 { margin: 0; }
  .lbr-article-toc-card ol { max-height: 228px; margin-top: 13px; overflow: auto; }
  .lbr-article-mobile-toc { display: block; margin-bottom: 30px; border: 1px solid var(--lbr-article-line); border-radius: var(--lbr-article-radius); background: #fff; }
  .lbr-article-mobile-toc summary { display: flex; justify-content: space-between; padding: 17px 20px; color: var(--lbr-article-ink); cursor: pointer; font-weight: 800; list-style: none; }
  .lbr-article-mobile-toc summary::after { color: var(--lbr-article-orange); content: '+'; font-size: 20px; line-height: 1; }
  .lbr-article-mobile-toc[open] summary::after { content: '−'; }
  .lbr-article-mobile-toc ol { display: grid; max-height: 228px; gap: 7px; margin: 0; padding: 0 20px 18px; overflow: auto; list-style: none; }
  .lbr-article-mobile-toc li.level-3 { padding-left: 13px; }
  .lbr-article-mobile-toc a { color: var(--lbr-article-slate); font-size: 12px; text-decoration: none; }
  .lbr-article-final-cta { display: none; }
  .lbr-article-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lbr-article-hero h1 { font-size: 52px; }
  .lbr-article-deck { font-size: 16px; }
  .lbr-article-cover-wrap { padding-top: 24px; }
  .lbr-article-reading-shell { padding: 48px 0 72px; }
  .lbr-article-body h2 { margin-top: 62px; font-size: 39px; }
  .lbr-article-body h3 { font-size: 27px; }
  .lbr-article-body p, .lbr-article-body ul, .lbr-article-body ol { font-size: 17px; }
  .lbr-article-template .lbr-article-body .article13-section + .article13-section { margin-top: 62px; }
  .lbr-article-template .lbr-article-body .article13-section h2 { font-size: 39px; }
  .lbr-article-template .lbr-article-body .article13-section h3 { font-size: 27px; }
  .lbr-article-template .lbr-article-body .article13-section p,
  .lbr-article-template .lbr-article-body .article13-list li { font-size: 17px; }
  .lbr-article-body blockquote { padding: 29px 25px 29px 48px; }
  .lbr-article-body blockquote p { font-size: 25px; }
  .lbr-inline-cta { grid-template-columns: 1fr; padding: 20px; }
  .lbr-inline-cta .lbr-button { width: 100%; }
  .lbr-article-related h2 { font-size: 39px; }
}
@media (max-width: 430px) {
  .lbr-article-hero h1 { font-size: 46px; }
  .lbr-article-body h2 { font-size: 34px; }
  .lbr-article-template .lbr-article-body .article13-section h2 { font-size: 34px; }
}
