/* Native content and optional elements: no database content rewriting. */
body.toc-article .story-hero:not(.has-hero-image){display:block;width:min(1240px,calc(100% - 80px));min-height:0;margin:32px auto 52px;padding:0}
body.toc-article .story-hero:not(.has-hero-image) .hero-copy{padding:0;max-width:980px}
body.toc-article .story-hero:not(.has-hero-image) h1{max-width:none}
body.toc-article .story-hero:not(.has-hero-image) .breadcrumbs{margin:0 0 28px}
body.toc-article .reading-shell.without-sidebar{display:block;max-width:900px}
html:not(.enhanced) body.toc-article .sidebar-contents{display:none}
body.toc-article .story-sidebar .sidebar-contents{margin-top:24px}
body.toc-article.admin-bar .sidebar-contents{--toc-top:126px}
@media(min-width:1100px){.enhanced body.toc-article .inline-contents{display:none}}
body.toc-article .article-body h2{font-size:34px;line-height:1.3;letter-spacing:-.025em;margin:48px 0 28px;font-weight:650}
body.toc-article .article-body h3{font-size:26px;line-height:1.4;margin:40px 0 24px;font-weight:600}
body.toc-article .article-body .article-section h2{margin-top:0}
body.toc-article .article-body>figure:not(.wp-block-gallery){max-width:100%;margin:32px auto}
/* Match the reference single photographs for classic captions, image blocks and
   image-only paragraphs. Gallery items keep their own columns and captions. */
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)){
  display:block;float:none;clear:both;
  width:min(var(--authored-image-width,980px),980px,calc(100% + var(--media-overhang) + var(--media-overhang)))!important;
  max-width:none;margin:32px 0 32px 50%;padding:0;border:0;
  transform:translateX(-50%);background:transparent;text-align:start;
}
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)) :is(a:has(img),.photo-open){display:block;width:100%;max-width:100%;padding:0;border:0;background:transparent}
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)) img{display:block;width:100%;max-width:100%;height:auto;max-height:none;margin:0;padding:0;object-fit:contain;border-radius:8px;background:transparent}
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)) :is(figcaption,.wp-caption-text){position:static;inset:auto;display:block;max-height:none;margin:12px 0 0;padding:0;background:transparent;color:var(--muted);font-size:13px;line-height:1.55;text-align:center;overflow-wrap:anywhere}
body.toc-article.article-v3 .article-body .toc-single-photo>p:empty{display:none}
@media(max-width:767px){
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)){margin-block:28px 32px}
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)) img{border-radius:0}
body.toc-article.article-v3 .article-body :is(.wp-caption,figure.wp-block-image,.toc-single-photo):not(:where(.gallery *,.wp-block-gallery *,.photo-grid *)) :is(figcaption,.wp-caption-text){padding-inline:var(--media-overhang);text-align:left;margin-top:10px}
}
/* Classic shortcode, old block and nested-image block galleries share one layout.
   Respect authored desktop column counts without rewriting the saved post. */
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery){display:grid;grid-template-columns:repeat(min(var(--toc-gallery-columns,3),var(--toc-gallery-items,9)),minmax(0,1fr));gap:16px;align-items:start;width:min(980px,calc(100% + var(--media-overhang) + var(--media-overhang)));max-width:none;margin:32px 0 32px calc(0px - var(--media-overhang));padding:0;background:none}
body.toc-article .article-body :is(.gallery-columns-1,.wp-block-gallery.columns-1){--toc-gallery-columns:1}
body.toc-article .article-body :is(.gallery-columns-2,.wp-block-gallery.columns-2){--toc-gallery-columns:2}
body.toc-article .article-body :is(.gallery-columns-3,.wp-block-gallery.columns-3){--toc-gallery-columns:3}
body.toc-article .article-body :is(.gallery-columns-4,.wp-block-gallery.columns-4){--toc-gallery-columns:4}
body.toc-article .article-body :is(.gallery-columns-5,.wp-block-gallery.columns-5){--toc-gallery-columns:5}
body.toc-article .article-body :is(.gallery-columns-6,.wp-block-gallery.columns-6){--toc-gallery-columns:6}
body.toc-article .article-body :is(.gallery-columns-7,.wp-block-gallery.columns-7){--toc-gallery-columns:7}
body.toc-article .article-body :is(.gallery-columns-8,.wp-block-gallery.columns-8){--toc-gallery-columns:8}
body.toc-article .article-body :is(.gallery-columns-9,.wp-block-gallery.columns-9){--toc-gallery-columns:9}
/* Do not leave empty columns when a gallery has fewer photographs than its authored column setting. */
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(1):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(1):last-of-type){--toc-gallery-items:1}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(2):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(2):last-of-type){--toc-gallery-items:2}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(3):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(3):last-of-type){--toc-gallery-items:3}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(4):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(4):last-of-type){--toc-gallery-items:4}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(5):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(5):last-of-type){--toc-gallery-items:5}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(6):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(6):last-of-type){--toc-gallery-items:6}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(7):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(7):last-of-type){--toc-gallery-items:7}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(8):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(8):last-of-type){--toc-gallery-items:8}
body.toc-article .article-body :is(.gallery,.wp-block-gallery):has(>:is(.gallery-item,figure):nth-of-type(9):last-of-type,>.blocks-gallery-grid>.blocks-gallery-item:nth-of-type(9):last-of-type){--toc-gallery-items:9}
body.toc-article .article-body .wp-block-gallery .blocks-gallery-grid{display:contents;list-style:none;margin:0;padding:0}
body.toc-article .article-body :is(.gallery,.wp-block-gallery) :is(.gallery-item,.blocks-gallery-item,figure){float:none;display:block;width:auto!important;max-width:100%;min-width:0;height:auto;margin:0;padding:0;border:0;background:none}
body.toc-article .article-body :is(.gallery,.wp-block-gallery) :is(.gallery-icon,a:has(img),.photo-open){display:block;width:100%;max-width:100%;height:auto;margin:0;padding:0;border:0;background:none}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery) img{display:block;width:100%;max-width:100%;height:auto;max-height:650px;aspect-ratio:3/4;margin:0;border:0;border-radius:8px;object-fit:cover}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery) :is(.gallery-caption,figcaption){position:static;inset:auto;display:block;width:auto;max-width:none;max-height:none;margin:8px 0 0;padding:0;color:var(--muted,#625c53);background:none;font-size:13px;line-height:1.55;text-align:center;overflow-wrap:anywhere}
body.toc-article .article-body .wp-block-gallery>figcaption{grid-column:1/-1}
body.toc-article .article-body .gallery>:is(br,p:has(>br[style*="clear"])),body.toc-article .article-body .gallery::before,body.toc-article .article-body .gallery::after{display:none}
body.toc-article .article-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:separate;border-spacing:0;font-size:16px;line-height:1.55;border:1px solid #d8e2d8;border-radius:12px}
body.toc-article .article-body .table-scroll table{display:table;width:100%;border:0}
body.toc-article .article-body .table-scroll{max-width:100%;overflow:auto;border:1px solid #d8e2d8;border-radius:12px}
body.toc-article .article-body :is(th,td){padding:17px 20px;border-bottom:1px solid #e2e9e1;vertical-align:middle;min-width:110px}
body.toc-article .article-body th{background:#eaf1e9;font-size:14px;font-weight:700}
body.toc-article .article-body tbody tr:nth-child(even) td{background:#fafbf8}
body.toc-article .article-body :is(iframe,video,embed){max-width:100%}
body.toc-article .article-body pre{max-width:100%;overflow:auto}
body.toc-article .article-body .alignfull{width:100%;margin-inline:0}
body.toc-article .article-body .wp-caption{max-width:100%}
body.toc-article .article-body img{height:auto}
body.toc-article .article-body img[data-lightbox]{cursor:zoom-in}
body.toc-article .article-body img[data-lightbox]:focus-visible{outline:3px solid var(--jade,#a74700);outline-offset:4px}
body.toc-article .story-sidebar .widget{margin-bottom:32px}
body.toc-article .story-sidebar .widget-title{font-size:17px;margin-bottom:20px}
body.toc-article .related-card.without-image{grid-template-columns:1fr 20px}
body.toc-article .comment-list{list-style:none;padding:0}
body.toc-article .comment-list .children{list-style:none;padding-left:24px}
body.toc-article .comment-entry .comment-text p{margin:8px 0 0}
body.toc-article .comment-meta a{color:inherit;text-decoration:none;font-size:13px;line-height:1.5}
body.toc-article .comment-meta a:hover{text-decoration:underline}
body.toc-article .comment-reply-link,body.toc-article .comment-edit-link{font-size:13px;margin-right:16px}
body.toc-article .comment-navigation{display:flex;justify-content:space-between;gap:24px;margin-block:24px}
body.toc-article #commentform :is(input:not([type=checkbox]):not([type=hidden]),textarea){width:100%;max-width:100%;min-height:48px;border:1px solid #a9b6a9;border-radius:8px;padding:12px 14px;margin:0;background:var(--white,#fff);color:var(--ink);font:inherit}
body.toc-article #commentform textarea{min-height:150px;resize:vertical}
body.toc-article #commentform label{display:block;margin:0 0 8px}
body.toc-article #commentform :is(input:not([type=checkbox]):not([type=hidden]),textarea):focus{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink);outline:none;outline-offset:0}
body.toc-article #commentform .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.toc-article #commentform .form-note{margin:24px 0 12px}
body.toc-article #commentform .form-bottom{margin-top:0}
body.toc-article #commentform .logged-in-as{font-size:14px;margin:0 0 20px;color:var(--muted)}
body.toc-article .comments-heading + .comment-respond{margin-top:28px}
body.toc-article :is(#comment-form,#commentform) .comment-form-cookies-consent{display:flex;align-items:flex-start;gap:12px;font-size:13px}
body.toc-article #commentform .comment-form-cookies-consent{grid-column:1/-1;margin:0;color:var(--muted)}
body.toc-article #commentform .comment-form-cookies-consent label{margin:0;font:inherit;line-height:1.6}
body.toc-article :is(#comment-form,#commentform) input[type=checkbox]{flex:none;width:18px;height:18px;min-height:0;max-height:18px;padding:0;margin:2px 0 0;align-self:flex-start}
body.toc-article #commentform #submit{width:auto;cursor:pointer}
body.toc-article .toc-comment-reply-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.toc-article .toc-comment-reply-title:has(#cancel-comment-reply-link:not([style*="display:none"]):not([style*="display: none"])){position:static;width:auto;height:auto;margin:0 0 20px;overflow:visible;clip:auto;white-space:normal;font-size:20px;line-height:1.4}
@media(max-width:767px){body.toc-article #commentform .form-row{grid-template-columns:minmax(0,1fr);gap:20px}}
/* Returning to the article top focuses this reading target, not an input. */
body.toc-article #top:focus,body.toc-article #top:focus-visible{outline:none}
body.toc-article .article-meta{flex-wrap:wrap}
@media(max-width:767px){
body.toc-article .story-hero:not(.has-hero-image){width:calc(100% - 40px);margin:24px auto 32px}
body.toc-article .story-hero:not(.has-hero-image) .breadcrumbs{margin:0 0 20px}
body.toc-article .article-body h2{font-size:28px;margin:40px 0 20px}
body.toc-article .article-body h3{font-size:23px;margin:32px 0 20px}
body.toc-article .article-body :is(th,td){padding:14px 12px}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery){display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:20px;padding:0 20px 8px;margin-block:24px 32px;scrollbar-width:none}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery)::-webkit-scrollbar{display:none}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery) :is(.gallery-item,.blocks-gallery-item),body.toc-article.article-v3 .article-body .wp-block-gallery>figure{flex:0 0 min(78vw,520px);min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery) img{max-height:520px;border-radius:10px}
body.toc-article.article-v3 .article-body :is(.gallery,.wp-block-gallery) :is(.gallery-caption,figcaption){text-align:left;padding-inline:2px}
}
@media print{body.toc-article #site-nav,body.toc-article #site-footer{display:none!important}}
