

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: scroll; }

body { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; font-size: 18px; line-height: 1.6; background: #0b0906; color: #e9e2d3; }
img { max-width: 100%; }
a { color: #c97a2b; }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.4em 0 0.6em; }
h1 { font-size: 2.15rem; margin-top: 0; }
h2.ms2w-h2 { font-size: 1.55rem; margin-top: 2rem; padding-bottom: 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
h3.ms2w-h3, h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
code { background: rgba(255,255,255,0.06); padding: 0.1em 0.35em; border-radius: 3px; }


.ms2w-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.ms2w-backdrop img { width: 100%; height: 100%; object-fit: cover; }

.ms2w-main { width: 100%; max-width: 1280px; min-width: 0; padding: 1.25rem 1.25rem 3rem; box-sizing: border-box; }
#ms2w-page { position: relative; z-index: 1; padding: 14px; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: scroll; }
#ms2w-content { padding: 1.5rem 1.75rem 2rem; border-radius: 8px; max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: scroll; }
.content, article, .ms2w-item-body, .ms2w-article--item { max-width: 100%; min-width: 0; }

.ms2w-main-row { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; width: 100%; max-width: 100%; min-width: 0; }
.ms2w-toc-rail { flex: 0 0 230px; position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding: 0.2rem 0 2rem; }
.ms2w-toc { border-radius: 6px; padding: 0.9rem 1rem 1rem; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }
.ms2w-toc-title { margin: 0 0 0.6rem; font-size: 0.78rem; font-variant-caps: all-small-caps; letter-spacing: 0.06em; opacity: 0.7; font-weight: 700; }
.ms2w-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.ms2w-toc a { display: block; font-size: 0.86rem; text-decoration: none; opacity: 0.75; padding: 0.15rem 0; border-left: 2px solid transparent; padding-left: 0.6rem; transition: opacity 0.15s ease, border-color 0.15s ease; }
.ms2w-toc a:hover { opacity: 1; }
.ms2w-toc a.is-active { opacity: 1; font-weight: 600; }
@media (max-width: 1650px) {
  .ms2w-toc-rail { display: none; }
}


.ms2w-frame { position: absolute; pointer-events: none; z-index: 2; }
.ms2w-frame-top, .ms2w-frame-bottom { left: 14px; right: 14px; height: 13px; background-repeat: repeat-x; background-position: left top; background-size: auto 13px; }
.ms2w-frame-top { top: 0; }
.ms2w-frame-bottom { bottom: 0; transform: scaleY(-1); }
.ms2w-frame-left, .ms2w-frame-right { top: 14px; bottom: 14px; width: 14px; background-repeat: repeat-y; background-position: left top; background-size: 14px auto; }
.ms2w-frame-left { left: 0; }
.ms2w-frame-right { right: 0; transform: scaleX(-1); }
.ms2w-page-head { margin-bottom: 1rem; }
.ms2w-title-row h1 { margin: 0; }
.ms2w-title-rule { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 0.6rem 0 0.8rem; }
.ms2w-crumbs { font-size: 0.82rem; opacity: 0.75; }
.ms2w-crumbs a { text-decoration: none; }
.ms2w-crumbs a:hover { text-decoration: underline; }



.ms2w-article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; min-width: 0; max-width: 100%; }
.ms2w-article-body, .ms2w-heading-danger, .ms2w-filter, .ms2w-toc { max-width: 100%; min-width: 0; }
.ms2w-forge-block { margin: 0; }
.ms2w-forge-block > h2.ms2w-h2 { margin: 0 0 0.3rem; }
.ms2w-forge-block > p { margin: 0.2rem 0; }
.ms2w-forge-block > h3.ms2w-h3,
.ms2w-forge-block > h3 { margin: 0.5rem 0 0.2rem; }
.ms2w-article--item { display: flow-root; }
.ms2w-article--item .ms2w-infobox { float: right; width: 360px; margin: 0 0 1.5rem 1.75rem; position: static; }

.ms2w-item-body { display: flow-root; overflow: visible; }
@media (max-width: 980px) {
  .ms2w-article--item .ms2w-infobox { float: none; width: auto; max-width: min(420px, 100%); margin: 0 auto 1.25rem; }
}
@media (max-width: 900px) {
  #ms2w-page { padding: 8px; }
  #ms2w-content { padding: 0.75rem 0.65rem 1.2rem; }
  .ms2w-infobox-well { width: min(200px, 100%) !important; height: auto !important; aspect-ratio: 1 / 1; }
}


.ms2w-infobox { position: relative; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.ms2w-infobox-cap { flex: 0 0 auto; background-repeat: no-repeat; background-size: 100% 100%; }
.ms2w-infobox-cap-top { height: 20px; }
.ms2w-infobox-seam { flex: 0 0 auto; height: 20px; background-repeat: no-repeat; background-size: 100% 100%; }
.ms2w-infobox-cap-bottom { height: 28px; }
.ms2w-infobox-head {
  flex: 0 0 auto; padding: 0.9rem 0.9rem 0.7rem; text-align: center;
  background-repeat: repeat-y; background-position: top center; background-size: 100% auto;
}
.ms2w-infobox-body { flex: 1 1 auto; padding: 0.5rem 0.9rem 0.8rem; background-repeat: repeat-y; background-position: top center; background-size: 100% auto; }
.ms2w-infobox-name { margin: 0 0 0.6rem; font-size: 1.2rem; border: none; }

.ms2w-infobox-well {
  position: relative; margin: 0 auto 0.6rem; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  background-repeat: no-repeat; background-position: center; background-size: contain;
}

.ms2w-infobox-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.ms2w-infobox-meta { text-align: center; }
.ms2w-infobox-role {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.25rem 0.7rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; text-decoration: none;
}
.ms2w-infobox-table { width: 100%; border-collapse: collapse; }
.ms2w-infobox-table.invisible-table td, .ms2w-infobox-table.invisible-table th { border: none; padding: 0; }
.ms2w-infobox-stats tr { border-top: 1px solid rgba(255,255,255,0.08); }
.ms2w-infobox-label {
  width: 42%; padding: 0.45rem 0.5rem 0.45rem 0; font-size: 0.92rem; opacity: 0.8;
  text-align: left; font-weight: 600; vertical-align: top;
}
.ms2w-infobox-value { padding: 0.45rem 0; font-size: 0.96rem; text-align: right; vertical-align: top; }
.ms2w-link-preview {
  position: fixed; z-index: 90; width: 320px; max-width: calc(100vw - 24px);
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55));
}
.ms2w-link-preview .ms2w-infobox { float: none; width: 100%; margin: 0; overflow: visible; }
body.ms2w-crimson .ms2w-link-preview .ms2w-infobox-well,
.ms2w-link-preview .ms2w-infobox-well { width: 140px !important; height: 140px !important; }
body.ms2w-crimson .ms2w-link-preview .ms2w-infobox-well::before,
.ms2w-link-preview .ms2w-infobox-well::before {
  content: none !important; display: none !important; background: none !important;
}
.ms2w-link-preview .ms2w-infobox-name { font-size: 1.05rem; }
.ms2w-link-preview .ms2w-infobox-label,
.ms2w-link-preview .ms2w-infobox-value { font-size: 0.86rem; }
@media (hover: none) {
  .ms2w-link-preview { display: none !important; }
}


.ms2w-table-wrap, .ms2w-table-wrap.table-responsive {
  display: block; width: 100%; max-width: 100%; min-width: 0; margin: 0 0 1.2rem;
  overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain; contain: inline-size; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: #c97a2b #16120c;
  box-shadow: inset -16px 0 14px -10px rgba(0,0,0,0.72);
}
.ms2w-table-wrap::-webkit-scrollbar { height: 10px; background: #16120c; }
.ms2w-table-wrap::-webkit-scrollbar-track { background: #16120c; border-radius: 999px; }
.ms2w-table-wrap::-webkit-scrollbar-thumb {
  background: #c97a2b; border-radius: 999px; border: 2px solid #16120c;
}
.ms2w-table-wrap::-webkit-scrollbar-thumb:hover { background: #e0a35a; }
table.ms2w-table { width: max-content; min-width: 36rem; max-width: none; border-collapse: collapse; font-size: 1rem; }
table.ms2w-table th, table.ms2w-table td { padding: 0.55rem 0.7rem; border: 1px solid rgba(255,255,255,0.1); text-align: left; vertical-align: top; }
table.ms2w-table thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

.ms2w-table-icon { vertical-align: middle; margin-right: 0.5rem; border-radius: 3px; width: 75px; min-width: 75px; height: auto; }


blockquote.ms2w-flavor { margin: 0 0 1.2rem; padding: 0.6rem 1rem; border-left: 3px solid rgba(255,255,255,0.25); }
blockquote.ms2w-flavor p { margin: 0; }
.ms2w-effect { margin: 0 0 1.2rem; padding: 0.55rem 1rem; background: rgba(176,138,62,0.08); border: 1px solid rgba(176,138,62,0.35); border-radius: 4px; }
.ms2w-effect p { margin: 0; font-size: 0.95rem; }


.ms2w-related { margin-top: 2rem; }


.ms2w-hub-splash { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.ms2w-hub-splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ms2w-hub-splash-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.75)); z-index: 1; }
.ms2w-hub-splash-inner { position: relative; z-index: 2; text-align: center; padding: 2.5rem 1.5rem; width: 100%; }
.ms2w-hub-subtitle { font-size: 1rem; opacity: 0.85; max-width: 640px; margin: 0 auto 1.1rem; }
.ms2w-hub-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.ms2w-hub-lead { font-size: 1.02rem; }
.ms2w-hub-seo { margin-top: 1.5rem; }
.ms2w-hub-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.ms2w-hub-quick { padding-left: 1.2em; }
.ms2w-hub-wrap { display: block; }


.ms2w-hub-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  text-align: center; text-decoration: none; padding: 1rem 0.6rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03);
}
.ms2w-hub-tile:hover { background: rgba(255,255,255,0.07); }
.ms2w-hub-tile-label { font-size: 0.85rem; font-weight: 600; }

.ms2w-hub-tile-icon { width: 72px; height: 72px; object-fit: contain; }


.ms2w-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; margin: 1.2rem 0; }
.ms2w-cat { position: relative; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 1.25rem; background: rgba(255,255,255,0.03); }
.ms2w-cat-icon { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: 0.5rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.ms2w-cat-head h3 { margin: 0 0 0.3rem; }
.ms2w-cat-head p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.7rem; }
.ms2w-cat-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.88rem; }


.ms2w-school-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1.1rem; margin: 1.2rem 0; }
.ms2w-school-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; text-decoration: none;
  padding: 1.4rem 0.7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03);
}
.ms2w-school-tile:hover { background: rgba(255,255,255,0.07); }
.ms2w-school-icon { width: 84px; height: 84px; object-fit: contain; }
.ms2w-school-label { font-size: 0.92rem; font-weight: 600; }
.ms2w-school-count { font-size: 0.78rem; opacity: 0.65; }


.ms2w-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.1rem; margin: 1.2rem 0; max-width: 100%; }

.ms2w-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; background: rgba(255,255,255,0.03); min-width: 0; max-width: 100%; overflow: hidden; }
.ms2w-card-icon-link { flex: 0 0 auto; width: 108px; max-width: 36%; min-width: 0; }
.ms2w-card-icon, .ms2w-card-ph { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 108px; border-radius: 5px; background: rgba(255,255,255,0.05); }
.ms2w-card-icon { object-fit: contain; min-width: 0; min-height: 0; }
.ms2w-card-body { min-width: 0; overflow-wrap: anywhere; }
.ms2w-card-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ms2w-card-title a { text-decoration: none; }
.ms2w-card-meta { display: block; font-size: 0.78rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.03em; margin: 0.15rem 0 0.35rem; }
.ms2w-card-summary { margin: 0; font-size: 0.92rem; opacity: 0.85; }


.ms2w-filter-bar { margin: 1rem 0; }
.ms2w-filter-input { width: min(100%, 320px); padding: 0.5rem 0.7rem; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.3); color: inherit; }
.is-hidden { display: none !important; }


.ms2w-spot-list, .ms2w-tips { padding-left: 1.3em; }
.ms2w-place-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 0.25rem 0.85rem; margin: 0 0 1.1rem; padding: 0; list-style: none;
}
.ms2w-place-grid li { margin: 0; font-size: 0.92rem; line-height: 1.35; }
.ms2w-place-grid a { text-decoration: none; }
.ms2w-place-grid a:hover { text-decoration: underline; }
.ms2w-tips li { margin-bottom: 0.5em; }

.ms2w-muted { opacity: 0.65; font-weight: 400; }
.ms2w-status-icon { border-radius: 3px; height: auto; }


.ms2w-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0.9rem; margin: 1rem 0 1.6rem; }
.ms2w-gallery-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; border: 1px solid rgba(201,197,189,0.3); transition: transform 0.15s ease, box-shadow 0.15s ease; }

.ms2w-gallery-img--cutout {
  aspect-ratio: 3/4; object-fit: contain; background: radial-gradient(circle at 50% 38%, rgba(201,122,43,0.16), rgba(0,0,0,0.25) 70%);
  padding: 0.5rem;
}
.ms2w-gallery-img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }


.ms2w-zoom { cursor: zoom-in; }
.ms2w-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 3vh 3vw;
  background: rgba(4,3,2,0.92); cursor: zoom-out;
}
.ms2w-lightbox.is-open { display: flex; }
.ms2w-lightbox-img { max-width: 100%; max-height: 100%; cursor: default; border-radius: 4px; box-shadow: 0 20px 70px rgba(0,0,0,0.65); }
.ms2w-lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem; width: 2.4rem; height: 2.4rem;
  font-size: 1.8rem; line-height: 1; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%; color: #e9e2d3; cursor: pointer;
}
@media (max-width: 900px) {
  .ms2w-hub-columns, .ms2w-cat-grid, .ms2w-card-grid, .ms2w-gallery {
    grid-template-columns: 1fr;
  }
  .ms2w-school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms2w-card-icon-link { width: 64px; max-width: 28%; }
  .ms2w-card-icon, .ms2w-card-ph { max-width: 64px; }
  .ms2w-card-ph { width: 64px; height: 64px; }
  .ms2w-hub-tile-icon, .ms2w-school-icon, .ms2w-cat-icon {
    max-width: 100%; min-width: 0; height: auto; aspect-ratio: 1 / 1;
  }
  .ms2w-hub-tile-icon { width: min(64px, 100%); }
  .ms2w-school-icon, .ms2w-school-ph { width: min(64px, 100%); height: auto; }
}
