/* Shared editorial template and global mobile contacts; deliberately scoped. */
:root { --ytl-article-top: 104px; --ytl-mobile-contact-height: calc(62px + env(safe-area-inset-bottom, 0px)); }
.ytl-editorial-single .ytl-editorial-single-wrap { width: min(1280px, calc(100% - 64px)); max-width: none; margin-inline: auto; }
.ytl-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 40px; align-items: start; }
.ytl-article-layout.ytl-article-no-toc { display: block; max-width: 980px; margin-inline: auto; }
.ytl-article-main { min-width: 0; }
.ytl-editorial-single .ytl-article-header h1 { font-size: 26px !important; line-height: 1.35; margin: 10px 0 14px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ytl-article-header .kicker { margin-top: 0; }
.ytl-article-header .ytl-editorial-meta { margin-bottom: 24px; }
.ytl-editorial-single .ytl-editorial-single-image { margin: 0 0 28px; }
.ytl-editorial-single .ytl-editorial-single-image img { width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.ytl-editorial-single .ytl-editorial-content { margin: 0; padding: clamp(22px, 3vw, 38px); min-width: 0; overflow-wrap: anywhere; }
.ytl-article-body { font-size: 16px; line-height: 2; }
/* Override compact legacy paragraph rules only within the article body. */
.ytl-editorial-content .ytl-article-body :is(p, li, td, th, blockquote) { font-size: 16px !important; }
.ytl-editorial-content .ytl-article-body :is(p, li, td, th, blockquote) :is(span, a, strong, em, b, i) { font-size: inherit !important; }
.ytl-editorial-content .ytl-article-body :is(p, li) { line-height: 2 !important; }
.ytl-editorial-content .ytl-article-body p { margin: 0 0 1em; }
.ytl-editorial-content .ytl-article-body :is(p, li) :is(span, a, strong, em, b, i) { line-height: inherit !important; }
.ytl-article-body > :first-child { margin-top: 0; }
.ytl-article-body img, .ytl-article-body video { max-width: 100%; height: auto; }
.ytl-article-body iframe { max-width: 100%; }
.ytl-article-body h2, .ytl-article-body h3 { scroll-margin-top: calc(var(--ytl-article-top) + 20px); line-height: 1.4; }
.ytl-article-body h2 { font-size: 24px; }
.ytl-article-body h3 { font-size: 20px; }
.ytl-article-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 24px; }
.ytl-article-body pre { max-width: 100%; overflow-x: auto; }
.ytl-article-sidebar { position: sticky; top: var(--ytl-article-top); min-width: 0; }
.ytl-article-toc { padding: 22px; background: #fff; border: 1px solid #d7e5ec; border-top: 3px solid #2caf43; border-radius: 12px; box-shadow: 0 10px 35px #0a274708; }
.ytl-article-toc summary { color: #0a2747; font-size: 17px; font-weight: 800; cursor: pointer; }
.ytl-article-toc nav { max-height: calc(100dvh - var(--ytl-article-top) - 100px); overflow-y: auto; overscroll-behavior: contain; margin-top: 16px; }
.ytl-article-toc ol { list-style: none; padding: 0; margin: 0; }
.ytl-article-toc li { margin: 0; }
.ytl-article-toc a { display: block; padding: 9px 10px; border-left: 2px solid #e6edf1; color: #526b80; font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.ytl-article-toc .ytl-toc-h3 a { padding-left: 22px; font-size: 13px; }
.ytl-article-toc a:hover, .ytl-article-toc a[aria-current="location"] { color: #167d2c; background: #f1f8f2; border-left-color: #2caf43; }
.ytl-editorial-content .ytl-article-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 32px 0; padding: 20px; border: 1px solid #d2e6d7; border-radius: 10px; background: #f3faf5; }
.ytl-article-contact > span { color: #0a2747; font-size: 15px; font-weight: 600; }
.ytl-editorial-content .ytl-article-whatsapp { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; background: #188838; color: #fff; border-radius: 6px; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.ytl-editorial-content .ytl-article-whatsapp:hover { background: #126c2c; }
.ytl-article-back { margin-top: 28px; }
.ytl-mobile-contact { display: none; }
.ytl-article-toc a:focus-visible, .ytl-article-whatsapp:focus-visible, .ytl-mobile-contact a:focus-visible { outline: 3px solid #17743b; outline-offset: 3px; }
@media (max-width: 1023px) {
  .ytl-article-layout { display: flex; flex-direction: column; gap: 24px; }
  .ytl-article-main { width: 100%; }
  .ytl-article-sidebar { position: static; order: -1; width: 100%; }
  .ytl-article-toc { padding: 16px 20px; }
  .ytl-article-toc nav { max-height: 45dvh; }
}
@media (max-width: 767px) {
  .ytl-editorial-single .ytl-editorial-single-wrap { width: calc(100% - 32px); }
  body.ytl-has-mobile-contact { padding-bottom: var(--ytl-mobile-contact-height); }
  .ytl-mobile-contact { position: fixed; z-index: 9990; inset: auto 0 0; display: flex; min-height: var(--ytl-mobile-contact-height); padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); gap: 6px; background: #fff; border-top: 1px solid #d5e3eb; box-shadow: 0 -4px 24px #0a274712; }
  .ytl-mobile-contact a { flex: 1; display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 49px; border-radius: 7px; color: #0a2747; font-size: 13px; font-weight: 700; text-decoration: none; }
  .ytl-mobile-contact a > span { font-size: 20px; line-height: 1; }
  .ytl-mobile-contact .ytl-mobile-whatsapp { background: #188838; color: white; }
  .ytl-has-mobile-contact .ytls-messenger { bottom: calc(var(--ytl-mobile-contact-height) + 14px); }
  .ytl-has-mobile-contact .ytl-consent-banner { bottom: calc(var(--ytl-mobile-contact-height) + 12px); max-height: calc(100dvh - var(--ytl-mobile-contact-height) - 24px); overflow-y: auto; }
  .ytl-has-mobile-contact.ytls-inquiry-open .ytl-mobile-contact, .ytl-has-mobile-contact.ytl-consent-settings-open .ytl-mobile-contact { visibility: hidden; }
  .ytl-editorial-single .ytl-editorial-single-section { padding-top: 30px; padding-bottom: 40px; }
  .ytl-editorial-single .ytl-editorial-content { padding: 22px 18px; }
  .ytl-article-body h2 { font-size: 22px; }
  .ytl-editorial-content .ytl-article-contact { padding: 18px; }
  .ytl-article-whatsapp { width: 100%; }
}
@media print {
  .ytl-mobile-contact, .ytl-article-sidebar, .ytl-article-contact { display: none !important; }
  .ytl-article-layout { display: block; }
  body.ytl-has-mobile-contact { padding-bottom: 0; }
}
