/* Match heading/form insets; retain native fields, handlers and customer data. */
html body.nasabu-home :is(#ask-nasabu,#reader-comments){width:min(1100px,calc(100% - 24px))!important;min-width:0!important;max-width:1100px!important;box-sizing:border-box!important}
html body.nasabu-home #ask-nasabu{padding:16px!important;margin:12px auto 18px!important;border:1px solid #DCC18A66;border-radius:12px;overflow:visible!important}
html body.nasabu-home #ask-nasabu .section-top{display:block!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;margin:0 0 12px!important;text-align:left!important}
html body.nasabu-home #ask-nasabu .section-top>div{min-width:0!important;padding:0!important;margin:0!important}
html body.nasabu-home #ask-nasabu .section-top .eyebrow{font-size:17px!important;line-height:1.45!important;margin:0 0 6px!important;padding:0!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere;text-align:left!important}
html body.nasabu-home #ask-nasabu #ask-title{font-size:28px!important;line-height:1.35!important;margin:0!important;padding:0!important;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;text-align:left}
html body.nasabu-home #ask-nasabu .ask-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
html body.nasabu-home #ask-nasabu .contact-disclosure{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:8px 0 0!important;padding:12px!important}
html body.nasabu-home #ask-nasabu .contact-disclosure>summary{min-height:52px!important;box-sizing:border-box!important;font-size:18px!important;line-height:1.4!important;padding:8px 0!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere}
html body.nasabu-home #ask-nasabu .home-disclosure-body{padding:8px 0 0!important;min-width:0!important}
html body.nasabu-home #ask-nasabu #ask-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
html body.nasabu-home #ask-nasabu #ask-form>div{min-width:0!important;padding:0!important;margin:0!important}
html body.nasabu-home #ask-nasabu #ask-form label{font-size:17px!important;line-height:1.4!important;margin:0 0 6px!important}
html body.nasabu-home #ask-nasabu #ask-form :is(select,textarea){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;font-size:17px!important;line-height:1.5!important;padding:10px 12px!important;margin:0!important}
html body.nasabu-home #ask-nasabu #ask-category{min-height:52px!important;height:auto!important}
html body.nasabu-home #ask-nasabu #ask-body{min-height:132px!important;height:132px!important;resize:vertical;overflow:auto!important}
html body.nasabu-home #ask-nasabu #ask-form button[type="submit"]{width:100%!important;min-width:0!important;min-height:56px!important;font-size:18px!important;line-height:1.4!important;margin:0!important;box-sizing:border-box!important}
html body.nasabu-home #ask-nasabu #ask-status:empty{display:none}
html body.nasabu-home #reader-comments.home-participation{padding:16px!important;margin:12px auto 0!important}
html body.nasabu-home #reader-comments .home-disclosure{margin:8px 0 0!important}
html body.nasabu-home #reader-comments .home-disclosure-body{min-width:0!important;padding:8px 0 0!important}
html body.nasabu-home #reader-comments .discussion{min-width:0!important;padding:12px!important;margin:8px 0 0!important}
html body :is(.ask-form,.comment-form,.saju-application-form,.participation-code-form,.activity-rating-form){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body :is(.ask-form,.comment-form,.saju-application-form,.participation-code-form,.activity-rating-form) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;font-size:17px!important;line-height:1.5!important}
html body :is(.saju-input-grid,.participation-code-fields){min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body :is(.saju-input-grid,.participation-code-fields)>label{min-width:0!important;overflow-wrap:anywhere}
html body :is(.comment-form,.activity-rating-form) label{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 html body.nasabu-home #ask-nasabu #ask-title{font-size:24px!important}
 html body :is(.saju-input-grid,.participation-code-fields){grid-template-columns:minmax(0,1fr)!important}
}

/* Separate destinations, one unchanged site comment widget. */
html body.nasabu-home #participation-benefits{width:min(1100px,calc(100% - 24px));max-width:1100px;min-width:0;box-sizing:border-box;padding:16px!important;margin:12px auto 0!important}
html body.nasabu-home #reader-comments.library-comments{scroll-margin-top:16px}
html body.nasabu-home #reader-comments.library-comments>h2{font-size:24px!important;line-height:1.35!important;margin:0 0 8px!important}
html body.nasabu-home #reader-comments.library-comments>p{margin:0 0 8px!important;line-height:1.5!important}
html body.nasabu-home #library-comments{scroll-margin-top:16px;min-width:0;max-width:100%;box-sizing:border-box}
html body.nasabu-home #library-comments .comment-form{margin-top:12px;gap:12px}
html body.nasabu-home #library-comments .comment-form button{min-height:56px;font-size:18px}
html body.nasabu-home #library-comments .comment-status:empty{display:none}

/* Intrinsic sizes shrink inside the page; content remains visible, never clipped. */
html body .info-main{width:min(820px,calc(100% - 24px));max-width:820px;min-width:0;box-sizing:border-box;margin-inline:auto}
html body .info-main:has(.ia-participation-grid){padding:20px 0 28px!important}
html body .info-main:has(.ia-participation-grid)>h1{font-size:28px;line-height:1.4;margin:0 0 12px;word-break:keep-all}
html body .ia-participation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
html body .ia-participation-grid>section{width:100%;min-width:0;max-width:100%;box-sizing:border-box;padding:16px;margin:0!important;overflow:visible}
html body .ia-participation-grid :is(h2,p){min-width:0;max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:break-word}
html body .ia-participation-grid h2{font-size:22px;line-height:1.4;margin:0 0 8px}
html body .ia-participation-grid p{font-size:17px;line-height:1.5;margin:0 0 12px}
html body .ia-participation-grid a{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;min-height:56px;box-sizing:border-box;padding:12px;font-size:18px;line-height:1.45;white-space:normal;word-break:keep-all;overflow-wrap:break-word;border:1px solid #bea875;border-radius:8px;text-align:center;margin:12px 0 0}
html body .ia-next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px;width:100%;min-width:0}
html body .ia-next>a{min-width:0!important;width:100%;min-height:52px;white-space:normal;word-break:keep-all;box-sizing:border-box}
@media(max-width:760px){html body .ia-participation-grid{grid-template-columns:minmax(0,1fr)}html body .info-main:has(.ia-participation-grid)>h1{font-size:26px}}

/* Keep the five original tabs and their selection handlers; allocate text rows. */
html body #faces .face-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-rows:1fr;gap:12px!important;min-width:0;width:100%;align-items:stretch}
html body #faces .face-tabs>button{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:50px 27px minmax(54px,auto);align-content:center;align-items:center;justify-items:center;gap:6px!important;position:relative;min-width:0!important;width:100%;max-width:100%;min-height:202px!important;height:100%;box-sizing:border-box!important;padding:32px 10px 12px!important;border-width:3px!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important}
html body #faces .face-tabs>button>.symbol{width:50px;height:50px;min-width:50px;line-height:1;flex:none;margin:0}
html body #faces .face-tabs>button>strong{font-size:20px!important;line-height:27px!important;white-space:nowrap!important;margin:0}
html body #faces .face-tabs>button>small{display:block;width:100%;min-width:0;font-size:17px!important;line-height:27px!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important;text-align:center;margin:0}
html body #faces .face-tabs>button:is([aria-selected=true],[aria-pressed=true])::after{top:5px!important;right:6px!important;width:22px!important;height:22px!important}
@media(max-width:760px){
 html body #faces .face-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #faces .face-tabs>button:last-child{grid-column:1/-1;justify-self:center;width:calc((100% - 12px)/2)!important}
 html body #faces .face-tabs>button>small{font-size:18px!important}
}

.chart-page main{margin:12px auto;padding:16px;max-width:1080px}
.chart-page h1{font-size:clamp(22px,3vw,30px);margin:8px 0;line-height:1.35}
.chart-page .review{margin:4px 0;font-size:17px}
.chart-controls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.chart-controls button{min-height:44px;padding:8px 16px;border:2px solid #a58c59;border-radius:8px;background:#173240;color:#f6f1e7;font:700 17px/1.4 sans-serif;cursor:pointer}
.chart-controls button[aria-pressed=true]{background:#e1c88e;color:#102b3a;text-decoration:underline;text-underline-offset:4px}
.chart-controls button:focus-visible,.chart-viewport:focus-visible{outline:3px solid #91601c;outline-offset:3px}
.chart-viewport{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.chart-page .chart-viewport .board{width:min(100%,640px,calc(100svh - 220px));min-width:0;aspect-ratio:1;height:auto;margin:0 auto 8px}
.chart-page .chart-viewport.chart-expanded .board{width:max(100%,1080px);max-width:none;margin:0 0 8px}
@media(max-width:600px){.chart-page main{padding:12px}.chart-page .chart-viewport .board{width:100%}.chart-page .chart-viewport.chart-expanded .board{width:1080px}}
@media print{.chart-controls{display:none}.chart-page .chart-viewport .board{width:100%}.chart-viewport{overflow:visible}}
/* These component rules supersede the older board width declarations. */
html body :is(#source-original .approved-chart,.chart-page) .chart-viewport.chart-fit>.board{width:min(100%,640px,max(180px,calc(100svh - 220px)))!important;max-width:100%!important;min-width:0!important;height:auto!important;aspect-ratio:1;margin:8px auto!important}
html body .chart-controls{gap:12px;margin:12px 0}
html body .chart-controls button,html body .chart-zoom-toolbar button{min-height:52px!important;min-width:44px!important;font-size:18px!important;padding:12px!important;white-space:normal;box-sizing:border-box}
html body .chart-zoom-dialog{position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;margin:0!important;padding:12px!important;border:0!important;background:#102735!important;color:#f6f1e7!important;overflow:hidden!important}
html body .chart-zoom-dialog[open]{display:flex!important;flex-direction:column;gap:8px}
.chart-zoom-dialog::backdrop{background:#102735}
html body .chart-zoom-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:none}
html body .chart-zoom-toolbar button{background:#dcc18a;color:#102735;border:1px solid #dcc18a;border-radius:8px;line-height:1.4}
html body .chart-zoom-toolbar output{grid-column:1/-1;text-align:center;font:17px/1.4 sans-serif;color:#f6f1e7}
html body .chart-zoom-help{font:16px/1.4 sans-serif!important;margin:0!important;color:#f6f1e7!important;flex:none}
html body .chart-zoom-viewport{flex:1 1 0;min-height:0;min-width:0;width:100%;overflow:auto;touch-action:none;overscroll-behavior:contain;cursor:grab;background:#173240}
html body .chart-zoom-viewport:active{cursor:grabbing}
html body .chart-zoom-stage{position:relative;margin:auto;flex:none}
html body :is(#source-original .approved-chart,.chart-page) .chart-zoom-stage>.board{width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;aspect-ratio:1;margin:0!important;pointer-events:none;user-select:none}
html body .chart-zoom-stage .board-art{object-fit:contain!important}
@media(max-width:760px){html body .chart-zoom-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
