/* Shared by every generated page, including standalone articles and galleries. */
html{box-sizing:border-box;overflow-x:clip}*,*::before,*::after{box-sizing:border-box}
body{min-width:0;max-width:100%;overflow-wrap:anywhere}
body :is(main,header,footer,section,article,nav,aside,figure,form,fieldset,details,summary){min-width:0}
:is(main,header,footer) :is(div,a,span,button){min-width:0}
img,video,iframe,svg{max-width:100%}input,select,textarea{min-width:0;max-width:100%}
figure{max-width:100%}pre{max-width:100%;overflow:auto}table{max-width:100%}
.header nav{flex-wrap:wrap}.header .brand{max-width:100%}
.footer,.footer-links,.section-card,.topic-folder>summary{overflow-wrap:anywhere}
.section-card>span:not(:last-child),.topic-folder>summary>span:not(.folder-hint){flex-shrink:1;min-width:0}
.portal-visit-counter{display:block;width:auto;max-width:1200px;margin:0 auto;padding:18px 24px;border-top:1px solid #d6dcd6;color:#607066;font:12px/1.6 system-ui,sans-serif;text-align:center;min-height:82px}
.portal-visit-counter strong{display:inline-block;font-variant-numeric:tabular-nums;color:#244b3d}.portal-visit-counter small{display:block;font-size:11px}.portal-visit-counter .portal-visit-privacy{display:block;margin:0;font:inherit;font-size:11px;text-align:center}
@media(max-width:600px){
 .footer{width:100%;max-width:100%}.footer .footer-links{grid-template-columns:minmax(0,1fr)}
 .hero-actions,.book-toolbar,.gallery-header,#gallery-view>div{flex-wrap:wrap}
 .section-card{max-width:calc(100% - 32px)}
 .topic-folder>summary>span:not(.folder-hint){overflow-wrap:anywhere}
 #diary-title em{white-space:normal;overflow-wrap:anywhere}
 .two-col,.request-section,.hero,.service-grid,.domain-cards,.model-products{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.portal-privacy-link{display:inline-block;padding:8px 4px;font-size:12px;color:#244b3d;text-underline-offset:3px}.portal-privacy-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
