/* Sonoita: quiet reading room, lively workshop. Presentation only. */
body[data-sl-library="1"]{--sl-paper:#f8f5ed;--sl-ink:#34443a;--sl-muted:#646e63;--sl-line:#d9ddcf;--sl-soft:#efeee4;--sl-green:#385344;color:var(--sl-ink)}
html.sonowall-v41-off body[data-sl-library="1"]{background-color:var(--sl-paper)!important}
body[data-sl-library="1"] .sonoita-brand{max-width:1040px!important;margin:24px auto 10px!important;padding:0 28px!important;text-align:left!important}
body[data-sl-library="1"] .sonoita-brand-title{font-family:'Yu Mincho','Hiragino Mincho ProN',serif!important;font-size:32px!important;font-weight:500!important;letter-spacing:.15em!important;color:var(--sl-ink)!important;-webkit-text-fill-color:var(--sl-ink)!important}
body[data-sl-library="1"] .sonoita-open-days{font-size:11px!important;color:var(--sl-muted)!important;text-align:left!important}
body[data-sl-library="1"] .sonoita-search{max-width:1040px!important;margin:0 auto 14px!important;padding:0 28px!important}
body[data-sl-library="1"] .sonoita-search-input{font-size:16px!important;border-radius:4px!important}
body[data-sl-library="1"] .sonoita-global-nav,body[data-sl-library="1"] #sonoita-michishirube .sm-inner{max-width:1040px!important;margin-left:auto!important;margin-right:auto!important}
body[data-sl-library="1"] .sonoita-footer,body[data-sl-library="1"] .sonoita-legal-footer{font-size:12px!important;line-height:1.9!important}
body[data-sl-library="1"] a:focus-visible,body[data-sl-library="1"] button:focus-visible,body[data-sl-library="1"] summary:focus-visible{outline:2px solid #526d57!important;outline-offset:4px!important}
body.sl-home-page .sl-home{display:block!important;max-width:1040px!important;width:calc(100% - 40px)!important;margin:20px auto 35px!important;padding:25px 32px!important;box-sizing:border-box!important;background:var(--sl-paper)!important;color:var(--sl-ink)!important;border-top:3px solid var(--sl-green)!important;border-radius:3px!important;box-shadow:0 5px 30px rgba(42,51,40,.04)!important;font:15px/1.9 system-ui,-apple-system,'Yu Gothic',Meiryo,sans-serif!important;text-align:left!important}
body.sl-home-page .sl-home *{box-sizing:border-box}
body.sl-home-page .sl-home a{color:var(--sl-green)!important;-webkit-text-fill-color:var(--sl-green)!important;text-decoration:none!important}
body.sl-home-page .sl-home a:hover{text-decoration:underline!important;text-underline-offset:4px}
body.sl-home-page .sl-home h1,body.sl-home-page .sl-home h2,body.sl-home-page .sl-home h3{font-family:'Yu Mincho','Hiragino Mincho ProN',serif!important;font-weight:500!important;text-align:left!important;color:var(--sl-ink)!important;-webkit-text-fill-color:var(--sl-ink)!important;line-height:1.6!important;margin:0 0 10px!important}
body.sl-home-page .sl-home h1{font-size:23px!important}body.sl-home-page .sl-home h2{font-size:20px!important}body.sl-home-page .sl-home h3{font-size:17px!important}
body.sl-home-page .sl-home p{text-align:left!important;margin:8px 0 14px!important}
body.sl-home-page .sl-nav{display:flex;flex-wrap:wrap;gap:8px 24px;border-bottom:1px solid var(--sl-line);padding-bottom:12px}
body.sl-home-page .sl-nav a{display:inline-flex;align-items:center;min-height:38px;font-size:14px}
body.sl-home-page .sl-home .sl-greeting{font:19px/1.8 'Yu Mincho',serif!important;margin:20px 0 28px!important}
body.sl-home-page .sl-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 270px!important;gap:30px!important}
body.sl-home-page .sl-conversations,body.sl-home-page .sl-workshop{min-width:0}
body.sl-home-page .sl-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.sl-home-page .sl-home .sl-primary{display:inline-flex!important;align-items:center;justify-content:center;background:var(--sl-green)!important;color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important;border-radius:4px!important;padding:10px 16px!important;min-height:44px;font-size:14px;white-space:nowrap}
body.sl-home-page .sl-home .sl-small{font-size:12px!important;color:var(--sl-muted)!important;-webkit-text-fill-color:var(--sl-muted)!important}
body.sl-home-page .sl-thread-nav{display:flex;flex-wrap:wrap;gap:8px 18px;padding:12px 0;border-bottom:1px solid var(--sl-line);font-size:13px}
body.sl-home-page .sl-thread-nav a{min-height:36px;display:inline-flex;align-items:center}
body.sl-home-page .sl-home .sch-thread{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;border:0!important;border-bottom:1px solid var(--sl-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:19px 0!important;margin:0!important;text-align:left!important}
body.sl-home-page .sl-home .sch-thread-main{display:block!important;min-width:0;flex:1}
body.sl-home-page .sl-home .sch-thread strong{display:block!important;font-size:16px!important;font-weight:500!important;line-height:1.75!important;overflow-wrap:anywhere}
body.sl-home-page .sl-home .sch-thread small{display:block!important;color:var(--sl-muted)!important;-webkit-text-fill-color:var(--sl-muted)!important;font-size:11px!important;margin-top:5px}
body.sl-home-page .sl-home .sch-thread-replies{flex:0 0 auto!important;font-size:12px!important;background:transparent!important;white-space:nowrap}
body.sl-home-page .sl-more{display:block;text-align:right;margin-top:12px;font-size:13px}
body.sl-home-page .sl-section{padding:20px;margin:24px 0;background:var(--sl-soft);border-radius:4px}
body.sl-home-page .sch-now-line{display:flex;align-items:flex-start;gap:16px;padding:12px 0;border-top:1px solid var(--sl-line)}
body.sl-home-page .sch-now-line span{flex:1;overflow-wrap:anywhere;font-size:14px}body.sl-home-page .sch-now-line small{font-size:11px;color:var(--sl-muted)}
body.sl-home-page .sl-workshop{border-left:1px solid var(--sl-line);padding-left:24px}
body.sl-home-page .sl-tool{padding:15px 0;border-bottom:1px solid var(--sl-line)}
body.sl-home-page .sl-tool-title{font-size:16px;font-family:'Yu Mincho',serif}
body.sl-home-page .sl-home .sl-tool p{font-size:12px!important;color:var(--sl-muted)!important;margin:3px 0!important}
body.sl-home-page .sl-home .sch-course{display:block!important;background:transparent!important;border:0!important;padding:8px 0!important;margin:0!important;border-radius:0!important}
body.sl-home-page .sl-home .sch-course strong{font-size:13px!important;font-weight:500!important}
body.sl-home-page .sl-home .sch-course span{display:block!important;font-size:11px!important;color:var(--sl-muted)!important}
body.sl-home-page .sl-game-links{display:flex;flex-wrap:wrap;gap:8px 15px;margin:15px 0;font-size:13px}
body.sl-home-page .sl-return{margin-top:20px}body.sl-home-page .sl-return a{display:block;padding:8px 0;font-size:13px}
body.sl-home-page .sl-home details{border-top:1px solid var(--sl-line);padding:15px 0}
body.sl-home-page .sl-home summary{cursor:pointer;min-height:36px;font-size:14px;padding:5px 0}
body.sl-home-page .sl-about p{font-size:14px}
body.sl-home-page .sl-lower{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px;padding:26px 0;border-top:1px solid var(--sl-line)}
body.sl-home-page .sl-home .sp-wrap,body.sl-home-page .sl-home .sp-card{margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;max-width:100%!important}
body.sl-home-page .sl-home .sp-card p{font-size:14px!important;line-height:1.9!important}
body.sl-home-page .sl-home .sp-date{font-size:12px!important;color:var(--sl-muted)!important}
body.sl-home-page .sl-home .sp-archive-link{display:inline-block;font-size:12px;margin-top:12px}
body.sl-home-page .sl-words>h3{margin-top:24px!important}
body.sl-home-page .sl-words iframe{display:block;width:100%;height:160px;border:0;background:transparent}
body.sl-home-page .sl-shelves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:16px 0}
body.sl-home-page .sl-link-list a{display:block;padding:7px 0;font-size:13px}
body.sl-home-page .sl-signoff{font:17px/1.9 'Yu Mincho',serif!important;padding-top:24px!important}
body.sl-home-page .sl-signoff span{font-size:12px;color:var(--sl-muted)}
/* Existing thread/attachment/gallery DOM, reply forms and permissions remain intact. */
body[data-sl-library="1"] .sonoita-thread-page,body[data-sl-library="1"] .sonoita-forum-page{max-width:1000px!important;margin-left:auto!important;margin-right:auto!important}
body[data-sl-library="1"] #posts .post,body[data-sl-library="1"] .sonoita-forum-threads tr.sr-thread-card{background:var(--sl-paper)!important;border:1px solid var(--sl-line)!important;border-radius:5px!important;box-shadow:none!important;color:var(--sl-ink)!important}
body[data-sl-library="1"] #posts .post_body{font-size:16px!important;line-height:1.95!important;color:var(--sl-ink)!important;-webkit-text-fill-color:var(--sl-ink)!important}
body[data-sl-library="1"] .sonoita-thread-title,body[data-sl-library="1"] .sonoita-forum-title{font-family:'Yu Mincho',serif!important;font-weight:500!important;color:var(--sl-ink)!important}
body[data-sl-library="1"] .sr-quick-open,body[data-sl-library="1"] #quickreply_e{border-radius:5px!important;box-shadow:none!important}
body[data-sl-library="1"] textarea[name="message"]{font-size:16px!important;line-height:1.8!important}
@media(max-width:760px){body.sl-home-page .sl-home{width:calc(100% - 20px)!important;padding:18px!important}body.sl-home-page .sl-layout{grid-template-columns:minmax(0,1fr)!important;gap:25px!important}body.sl-home-page .sl-workshop{padding:20px 0 0;border-left:0;border-top:1px solid var(--sl-line)}body.sl-home-page .sl-shelves{grid-template-columns:1fr 1fr}body.sl-home-page .sl-lower{grid-template-columns:1fr}body.sl-home-page .sl-home h1{font-size:20px!important}body.sl-home-page .sl-home .sch-thread{display:block!important;padding:16px 0!important}body.sl-home-page .sch-thread-replies{display:block!important;text-align:right;margin-top:7px}body[data-sl-library="1"] .sonoita-brand,body[data-sl-library="1"] .sonoita-search{padding-left:20px!important;padding-right:20px!important}body.sl-home-page .sl-nav{gap:8px 17px}body.sl-home-page .sl-section{padding:16px}body.sl-home-page .sl-heading{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){body.sl-home-page .sl-home *{scroll-behavior:auto!important}}

/* 2026-10-23: integrate legacy home cards without removing their content. */
body.sl-home-page #sl-community{clear:both;border-top:1px solid var(--sl-line);margin-top:24px;padding-top:12px}
body.sl-home-page #sl-community:empty{display:none}
body.sl-home-page #sl-community > section,body.sl-home-page #sl-community > div{max-width:100%!important;width:100%!important;box-sizing:border-box!important}
body.sl-home-page #sl-home #sklHomeV2 .skl-v2-inner{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:10px 14px!important;align-items:start!important}
body.sl-home-page #sl-home #sklHomeV2 .skl-v2-copy{grid-column:2!important;min-width:0!important;width:auto!important}
body.sl-home-page #sl-home #sklHomeV2 .skl-v2-go,body.sl-home-page #sl-home #sklHomeV2 .skm-home-maplink{grid-column:2!important;justify-self:start!important;margin:0!important;white-space:normal!important}
body.sl-home-page #sl-home #sklHomeV2 strong{font-size:17px!important;line-height:1.6!important}
body.sl-home-page #sl-home #sklHomeV2 p{font-size:13px!important;line-height:1.8!important}
body.sl-home-page #sl-home #sklHomeV2 small{font-size:11px!important}
body.sl-home-page #sl-home .smwh3-btn-main,body.sl-home-page #sl-home #sonoitaZeroOneCard .szo-btn{background:#385344!important;color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important}
body.sl-home-page #sl-home .smwh3-btn-main *,body.sl-home-page #sl-home #sonoitaZeroOneCard .szo-btn *{color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important}
body.sl-home-page #sl-home .sch-thread-main > .sonoita-new-badge-v3{display:inline-block!important;position:static!important;float:none!important;margin:0 0 6px!important;padding:2px 7px!important;line-height:1.5!important;font-size:10px!important;background:#94583f!important;color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important;vertical-align:middle!important}
body.sl-home-page #sl-home .smwh3-head{gap:12px!important}
body.sl-home-page #sl-home .smwh3-head > div:first-child{min-width:0!important}
body.sl-home-page #sl-home .smwh3-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
body.sl-home-page #sl-home .smwh3-actions a{min-width:0!important;white-space:normal!important;text-align:center!important}
body.sl-home-page #sl-home .sl-heading > h1{width:100%}
@media(max-width:760px){
 body.sl-home-page #sl-home #sklHomeV2 .skl-v2-inner{grid-template-columns:38px minmax(0,1fr)!important;gap:10px!important}
 body.sl-home-page #sl-home #sklHomeV2 .skl-v2-mark{width:38px!important;height:38px!important}
 body.sl-home-page #sl-home .smwh3-card{padding:16px!important}
 body.sl-home-page #sl-home .smwh3-actions a{flex:1 1 100%!important}
}

/* Center the site name and its opening-day caption. */
body[data-sl-library="1"] .sonoita-brand,body[data-sl-library="1"] .sonoita-brand .sonoita-brand-title,body[data-sl-library="1"] .sonoita-brand .sonoita-open-days{text-align:center!important}
body[data-sl-library="1"] .sonoita-brand .sonoita-brand-title{display:block!important;width:100%!important;box-sizing:border-box!important}
