/* Public and administrative chrome. Page-specific headings remain in the document. */
.site-header.unified-header { background: #fffefb; color:#171a35; border-bottom:2px solid #171a35; z-index:30; box-shadow:none; }
.unified-bar { max-width:1140px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 18px; min-height:58px; }
.reader-board .unified-bar { max-width:var(--board-width); }
.unified-brand { display:flex; align-items:center; gap:9px; text-decoration:none; min-width:0; }
.unified-brand img { display:block; width:clamp(92px,calc(100vw - 232px),184px); height:auto; max-width:100%; }
.unified-bar nav { display:flex; align-items:center; gap:8px; }
.unified-bar a,.unified-bar button,.unified-bar summary { color:#202d48; line-height:1.3; font-family:inherit; font-weight:650; font-size:14px; }
.unified-bar nav > a,.unified-bar button,.unified-bar summary { display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:6px 9px; min-height:40px; border:0; border-radius:7px; background:transparent; text-decoration:none; cursor:pointer; white-space:nowrap; }
.unified-bar #open-register,.unified-bar .admin-sigil { background:#181b38; color:white; }
.unified-bar #open-register { border-bottom:3px solid #e4b02e; }
.unified-bar .admin-sigil { border-left:3px solid #e4b02e; padding:4px 8px; border-radius:2px; font-size:12px; white-space:nowrap; }
.unified-bar #admin-logout { width:auto; border:1px solid #d7dfe9; margin:0; }
.unified-bar #user-menu { position:relative; }
.unified-bar #user-menu summary { background:#181b38; color:#fff; border-bottom:3px solid #e4b02e; min-height:44px; box-sizing:border-box; list-style:none; max-width:min(22vw,220px); }
.unified-bar #user-menu summary::after { content:'▾'; }
#display-name:empty { display:none; }
.mypage-label { flex:none; }
#display-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-popover { position:absolute; z-index:40; right:0; min-width:min(240px,88vw); background:white; border:1px solid #ccd5df; border-radius:9px; padding:8px; box-shadow:0 8px 24px #18213925; }
.user-popover > * { display:block; padding:8px; }
.user-popover .mypage-entry { background:#edf1f7; border-radius:6px; display:flex; align-items:center; min-height:44px; box-sizing:border-box; font-weight:700; }
.user-popover > strong { overflow-wrap:anywhere; border-bottom:1px solid #dbe1eb; }
.unified-bar [hidden] { display:none !important; }
.search-link i { position:relative; width:14px; height:14px; border:2px solid currentColor; border-radius:100%; margin-right:3px; }
.search-link i::after { content:''; position:absolute; width:7px; height:2px; background:currentColor; bottom:-3px; right:-5px; transform:rotate(47deg); }
.star-link b { color:#976900; font-size:19px; }
.visually-hidden { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
@media(max-width:620px){
  .unified-bar { padding:4px 6px; gap:3px; min-height:48px; }
  .unified-bar nav { gap:2px; }
  .unified-bar nav > a { width:31px; padding:4px; }
  .unified-bar nav > a span { display:none; }
  .unified-bar nav button,.unified-bar nav summary { padding:5px 6px; font-size:12px; }
  .unified-bar #user-menu summary { max-width:32vw; }
  .unified-bar #display-name { display:none; }
}


.reader-footer {
  background: #181b38;
  border-top: 4px solid #e4b02e;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, sans-serif;
}
.reader-footer-inner { max-width: 1140px; margin: auto; padding: 18px clamp(16px, 4vw, 40px) 12px; }
.reader-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.reader-footer .reader-footer-inner a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-decoration: none; line-height: 1.5;
}
.reader-footer nav a { font-size: 15px; font-weight: 650; }
.reader-footer a:hover, .reader-footer a[aria-current="page"] { color: #ffdb7a; text-decoration: underline; text-underline-offset: 4px; }
.reader-footer a:focus-visible { outline: 2px solid #ffdb7a; outline-offset: 2px; }
.reader-footer small { display: block; margin-top: 8px; border-top: 1px solid #484b62; font-size: 13px; color: #e0e4ee; }
@media (max-width: 620px) {
  .reader-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
  .reader-footer nav a { font-size: 14px; }
}

.info-shell { max-width: 820px; margin: auto; padding: clamp(16px, 4vw, 48px) 16px; }
.info-shell article {
  padding: clamp(18px, 4vw, 44px); background: white; color: #202941;
  border: 1px solid #d7dfe9; border-top: 4px solid #e4b02e; border-radius: 12px;
  font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
.info-shell h1 { margin: 0 0 1em; color: #181b38; font-size: clamp(24px, 4vw, 36px); line-height: 1.45; }
.info-shell h2 { margin: 1.5em 0 .5em; border-left: 4px solid #e4b02e; padding-left: .6em; font-size: 1.25em; line-height: 1.5; }
.info-shell p { margin: .6em 0 1em; }
.info-shell ul, .info-shell ol { padding-left: 1.6em; }
.info-shell li { margin-bottom: .8em; }
.info-shell a { color: #244773; text-decoration: underline; text-underline-offset: 3px; }
.info-shell .info-notice { border-left: 4px solid #e4b02e; padding: .75em 1em; background: #fff8e6; font-weight: 700; }
