/* Standalone lower pages only. Do not affect screen, TOP, or legacy layouts. */
@page {size:A4 portrait;margin:15mm}
@media print {
 html:has(body.tanba-site-sidebar-page),body.tanba-site-sidebar-page {width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:visible!important;background:white!important;color:#222!important}
 body.tanba-site-sidebar-page {font-size:11pt!important;line-height:1.5!important;--wp--style--global--content-size:100%;--wp--style--global--wide-size:100%}
 body.tanba-site-sidebar-page :is(#wpadminbar,.tanba-site-header__menu,.tanba-site-header__access,.tanba-site-drawer,.tanba-site-drawer-overlay,.tanba-site-sidebar,.tanba-site-page-top,#page_top,.tanba-page-intro__breadcrumbs,.tanba-toc,.sn-single-footer,.tanba-site-footer__copyright) {display:none!important}
 /* Keep the actual contact details once, at the end of the printed document. */
 body.tanba-site-sidebar-page .tanba-site-footer {min-height:0!important;height:auto!important;margin:4mm 0 0!important;padding:2mm 0 0!important;background:none!important;border-top:1px solid #aaa;break-inside:avoid-page;page-break-inside:avoid}
 body.tanba-site-sidebar-page .tanba-site-footer__inner {display:block!important;width:100%!important;max-width:none!important;min-height:0!important;padding:0!important;text-align:left!important}
 body.tanba-site-sidebar-page .tanba-site-footer__inner p {font-size:9pt!important;line-height:1.4!important;color:#222!important}
 body.tanba-site-sidebar-page .tanba-site-footer__name span {display:inline!important;margin-left:.5em}
 body.tanba-site-sidebar-page .tanba-site-footer__contact {display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:4mm!important}
 body.tanba-site-sidebar-page a[href]::after {content:none!important;display:none!important}
 body.tanba-site-sidebar-page .tanba-site-header {position:static!important;width:100%!important;height:auto!important;min-height:0!important;margin:0 0 4mm!important;padding:0 0 2mm!important;background:none!important;border-bottom:1px solid #aaa;break-after:avoid-page;page-break-after:avoid}
 body.tanba-site-sidebar-page .tanba-site-header__inner {display:block!important;width:100%!important;height:auto!important;max-width:none!important;padding:0!important;margin:0!important}
 body.tanba-site-sidebar-page .tanba-site-header__logo {display:block!important;width:75mm!important;max-width:100%!important;height:auto!important;line-height:0!important}
 body.tanba-site-sidebar-page .tanba-site-header__logo img {display:block;width:100%!important;height:auto!important;max-height:none!important}
 body.tanba-site-sidebar-page :is(.tanba-site-sidebar-main,.tanba-site-sidebar-columns,.tanba-site-sidebar-content,.tanba-news-single-content) {display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;height:auto!important;min-height:0!important;position:static!important;break-inside:auto;page-break-inside:auto}
 body.tanba-site-sidebar-page .tanba-page-intro {margin:0 0 4mm!important;padding:0!important;break-after:avoid-page;page-break-after:avoid}
 body.tanba-site-sidebar-page .tanba-page-intro:has(> .tanba-page-intro__breadcrumbs:only-child) {display:none!important}
 body.tanba-site-sidebar-page :is(.tanba-page-intro__title,.tanba-news-single-title) {font-size:16pt!important;line-height:1.4!important;color:#222!important;break-after:avoid-page;page-break-after:avoid}
 body.tanba-site-sidebar-page .tanba-page-intro__title::after {height:0!important;border-bottom:2px solid #8cbc57;margin-top:2mm!important;background:none!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content :is(p,li) {font-size:11pt!important;line-height:1.5!important;orphans:2;widows:2}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content :is(td,th) {font-size:10.5pt!important;line-height:1.4!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content :is(h1,h2,h3,h4,h5,h6) {break-after:avoid-page;page-break-after:avoid;break-inside:avoid-page}
 /* Single-column wrappers must fragment normally, not as a tall flex item. */
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-columns:has(> .wp-block-column:only-child) {display:block!important;width:100%!important;max-width:none!important;margin-inline:0!important;gap:0!important;break-inside:auto!important;page-break-inside:auto!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-columns:has(> .wp-block-column:only-child) > .wp-block-column {display:block!important;width:100%!important;max-width:none!important;min-width:0!important;overflow:visible!important;margin:0!important;break-inside:auto!important;page-break-inside:auto!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-group {max-width:100%!important;min-width:0!important;overflow:visible!important;break-inside:auto;page-break-inside:auto}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content :is(.wp-block-columns,.wp-block-column,.is-layout-constrained) {max-width:100%!important;min-width:0!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright)) {max-width:100%!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-image {break-inside:avoid-page;page-break-inside:avoid}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-image img {max-width:100%!important;max-height:70mm!important;height:auto!important;object-fit:contain!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-spacer {height:min(5mm,100%)!important;max-height:5mm!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content :is(.wp-block-table,.wp-block-table table) {overflow:visible!important;max-width:100%!important;min-width:0!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-table table {width:100%!important;table-layout:fixed!important}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content .wp-block-table :is(td,th) {min-width:0!important;white-space:normal!important;overflow-wrap:anywhere}
 body.tanba-site-sidebar-page .tanba-site-sidebar-content tr {break-inside:avoid-page;page-break-inside:avoid}
 /* Existing R02 symbol box: preserve the 15/85 idea on paper without the mobile stack. */
 body.tanba-site-sidebar-page #sha-sha > .wp-block-columns.has-border-color:has(img.wp-image-2862) {display:grid!important;grid-template-columns:26mm minmax(0,1fr);align-items:center;gap:3mm!important;padding:2mm!important;break-inside:avoid-page;page-break-inside:avoid}
 body.tanba-site-sidebar-page #sha-sha > .wp-block-columns.has-border-color:has(img.wp-image-2862) > .wp-block-column {margin:0!important;min-width:0!important;max-width:100%!important}
 body.tanba-site-sidebar-page #sha-sha img.wp-image-2862 {width:100%!important;max-width:26mm!important;height:auto!important;max-height:26mm!important}
}
