/* MossPaper — publications & issues. Prefix: msp- */
:root {
  --paper: #f6f1e6;
  --paper-2: #efe8d8;
  --card: #fffcf5;
  --ink: #1f2420;
  --ink-2: #4d5249;
  --ink-3: #5f6358;
  --line: #e4dccb;
  --line-2: #d3c9b3;
  --moss: #3f5a26;
  --moss-dk: #2f441c;
  --moss-soft: #e5ead3;
  --moss-tint: #f0f2e4;
  --olive: #7a9a3c;
  --rust: #8a3d1a;
  --rust-soft: #f6e4d8;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(31, 36, 32, 0.05), 0 8px 24px -12px rgba(31, 36, 32, 0.18);
  --shadow-lg: 0 2px 4px rgba(31, 36, 32, 0.05), 0 30px 60px -28px rgba(31, 36, 32, 0.35);
  --bar-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--moss);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--moss-dk);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--moss-soft);
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid var(--moss);
  outline-offset: 2px;
  border-radius: 6px;
}
.msp-main:focus {
  outline: none;
}
code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.1em 0.38em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.msp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.msp-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.msp-skip:focus {
  top: 12px;
  color: var(--paper);
}
.msp-wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.msp-ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.msp-dot {
  color: var(--line-2);
  margin-inline: 0.15em;
}
.msp-muted {
  color: var(--ink-3);
}
.msp-av {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper-2);
  flex-shrink: 0;
}

/* ── Pills & links ─────────────────────────────────────────── */
.msp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.66rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 0.94rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.msp-pill:active {
  transform: translateY(1px);
}
.msp-pill--moss {
  background: var(--moss);
  color: #fff;
}
.msp-pill--moss:hover {
  background: var(--moss-dk);
  color: #fff;
}
.msp-pill--ink {
  background: var(--ink);
  color: var(--paper);
}
.msp-pill--ink:hover {
  background: #000;
  color: #fff;
}
.msp-pill--line {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
}
.msp-pill--line:hover {
  border-color: var(--moss);
  color: var(--moss);
}
.msp-pill--paper {
  background: var(--paper);
  color: var(--moss-dk);
}
.msp-pill--paper:hover {
  background: #fff;
  color: var(--moss-dk);
}
.msp-pill--ghost {
  border-color: rgba(246, 241, 230, 0.55);
  color: var(--paper);
}
.msp-pill--ghost:hover {
  border-color: var(--paper);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.msp-pill--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
}
.msp-pill--lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}
.msp-pill--block {
  width: 100%;
}
.msp-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
}
.msp-link:hover {
  text-decoration: underline;
}
.msp-link .msp-ico {
  transition: transform 0.15s;
}
.msp-link:hover .msp-ico {
  transform: translateX(3px);
}
.msp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font: 700 0.76rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}
.msp-kicker a {
  color: inherit;
}
.msp-kicker--light {
  color: #dbe5c2;
}
.msp-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font: 600 0.8rem/1.4 var(--sans);
}

/* ── Top bar ───────────────────────────────────────────────── */
.msp-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.msp-bar__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
}
.msp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.msp-brand:hover {
  color: var(--ink);
}
.msp-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.msp-brand__word {
  font: 700 1.42rem/1 var(--serif);
  letter-spacing: -0.02em;
}
.msp-brand__word em {
  font-weight: 400;
  color: var(--moss);
}
.msp-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.msp-nav__a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.msp-nav__a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.msp-nav__a[aria-current='page'] {
  background: var(--moss-soft);
  color: var(--moss-dk);
}
.msp-nav__in {
  margin-left: 10px;
}
.msp-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
  background: var(--card);
  cursor: pointer;
}
.msp-menu__bars,
.msp-menu__bars::before,
.msp-menu__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background-color 0.2s;
}
.msp-menu__bars::before,
.msp-menu__bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.msp-menu__bars::before {
  top: -6px;
}
.msp-menu__bars::after {
  top: 6px;
}
.msp-menu[aria-expanded='true'] .msp-menu__bars {
  background: transparent;
}
.msp-menu[aria-expanded='true'] .msp-menu__bars::before {
  transform: translateY(6px) rotate(45deg);
}
.msp-menu[aria-expanded='true'] .msp-menu__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Footer ────────────────────────────────────────────────── */
.msp-foot {
  background: var(--ink);
  color: #d8d3c6;
  margin-top: 0;
  padding: 56px 0 28px;
}
.msp-foot a {
  color: #efe9dc;
  text-decoration: none;
}
.msp-foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.msp-foot :focus-visible {
  outline-color: #c9d99f;
}
.msp-foot__grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}
.msp-brand--foot {
  color: var(--paper);
  margin: 0 0 14px;
}
.msp-brand--foot:hover {
  color: #fff;
  text-decoration: none !important;
}
.msp-brand--foot .msp-fv-d { fill: #7a9a3c; }
.msp-brand--foot .msp-fv-m { fill: #a9c26a; }
.msp-brand--foot .msp-fv-l { fill: #d3e2a6; }
.msp-brand--foot .msp-brand__word em {
  color: #b9cb8e;
}
.msp-foot__brand p {
  max-width: 34ch;
  font-size: 0.95rem;
}
.msp-foot__feeds {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.msp-foot__feeds a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.87rem;
}
.msp-foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.msp-foot__h {
  font: 700 0.76rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b2c391;
  margin-bottom: 14px;
}
.msp-foot__col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.msp-foot__col a {
  font-size: 0.95rem;
}
.msp-foot__col a[aria-current='page'] {
  color: #c9d99f;
}
.msp-foot__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #bdb7a9;
}

/* ── Home: hero ────────────────────────────────────────────── */
.msp-hero {
  position: relative;
  padding: 64px 0 88px;
  background:
    radial-gradient(ellipse 50% 60% at 90% 10%, rgba(122, 154, 60, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(63, 90, 38, 0.08), transparent 70%);
}
.msp-hero__in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.msp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss-dk);
  font-weight: 600;
  font-size: 0.88rem;
}
.msp-hero__h {
  margin-top: 22px;
  font: 650 clamp(2.4rem, 4.8vw, 4.1rem) / 1.05 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.msp-hero__h em {
  font-weight: 450;
  color: var(--moss);
}
.msp-hero__lead {
  margin-top: 22px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36em;
}
.msp-hero__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.msp-hero__ticks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
}
.msp-hero__ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.msp-hero__ticks .msp-ico {
  color: var(--moss);
  stroke-width: 2.4;
}
.msp-hero__media {
  position: relative;
  padding-bottom: 40px;
}
.msp-hero__photo {
  margin: 0 0 0 auto;
  width: 84%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.msp-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msp-signin {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(360px, 78%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.msp-signin__top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.msp-signin__top .msp-mark {
  width: 40px;
  height: 40px;
}
.msp-signin__h {
  font: 700 1.04rem/1.25 var(--sans);
}
.msp-signin__top p {
  font-size: 0.86rem;
  color: var(--ink-3);
}
.msp-signin__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
}
.msp-signin__alt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-3);
  text-align: center;
}

/* ── Forms ─────────────────────────────────────────────────── */
.msp-field {
  margin-bottom: 14px;
}
.msp-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.msp-input {
  display: block;
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.msp-input::placeholder {
  color: #8b8e83;
}
.msp-input:hover {
  border-color: #b9ae96;
}
.msp-input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(63, 90, 38, 0.16);
}
.msp-input--area {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.msp-field__hint {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-3);
}
.msp-select {
  position: relative;
  display: block;
}
.msp-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
}
.msp-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.msp-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Home: bands ───────────────────────────────────────────── */
.msp-band {
  background: var(--card);
  border-block: 1px solid var(--line);
  padding: 80px 0;
}
.msp-band__head {
  max-width: 660px;
  margin-bottom: 40px;
}
.msp-band__h {
  margin-top: 10px;
  font: 650 clamp(1.8rem, 3.2vw, 2.55rem) / 1.12 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.msp-band__sub {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.08rem;
}
.msp-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.msp-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.msp-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.msp-tile__ico,
.msp-fcard__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 1.3rem;
}
.msp-tile h3 {
  margin: 18px 0 8px;
  font: 700 1.08rem/1.3 var(--sans);
}
.msp-tile p {
  color: var(--ink-2);
  font-size: 0.96rem;
}
.msp-band__more {
  margin-top: 28px;
}

.msp-showcase {
  padding: 96px 0;
}
.msp-showcase__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.msp-showcase__copy > p:not(.msp-kicker) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06rem;
}
.msp-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.msp-list li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}
.msp-list li strong {
  color: var(--ink);
}
.msp-list .msp-ico {
  color: var(--moss);
  margin-top: 3px;
}
.msp-mock {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding-bottom: 18px;
}
.msp-mock::before {
  content: '';
  position: absolute;
  inset: -40px -40px auto auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(122, 154, 60, 0.12);
}
.msp-mock__cover {
  height: 118px;
  background:
    radial-gradient(circle at 20% 120%, rgba(246, 241, 230, 0.25) 0 30%, transparent 31%),
    radial-gradient(circle at 85% -20%, rgba(122, 154, 60, 0.7) 0 35%, transparent 36%),
    linear-gradient(135deg, #3f5a26, #5b7a34);
}
.msp-mock__id {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 20px;
  margin-top: -30px;
}
.msp-mock__av {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--card);
  background: linear-gradient(145deg, #d9c9a3, #b59a66);
  flex-shrink: 0;
}
.msp-mock__av.sm {
  width: 34px;
  height: 34px;
  border-width: 0;
  background: linear-gradient(145deg, #c9d7a8, #8fa863);
}
.msp-mock__lines {
  flex: 1;
  display: grid;
  gap: 8px;
  padding-bottom: 6px;
}
.msp-mock__lines i {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: var(--paper-2);
}
.msp-mock__lines i:first-child {
  background: #ddd4c1;
}
.msp-mock__lines .w95 { width: 95%; }
.msp-mock__lines .w90 { width: 90%; }
.msp-mock__lines .w80 { width: 80%; }
.msp-mock__lines .w70 { width: 70%; }
.msp-mock__lines .w60 { width: 60%; }
.msp-mock__lines .w50 { width: 50%; }
.msp-mock__lines .w40 { width: 40%; }
.msp-mock__lines .w35 { width: 35%; }
.msp-mock__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--moss);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
}
.msp-mock__tabs {
  display: flex;
  gap: 20px;
  margin: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-3);
}
.msp-mock__tabs span {
  padding-bottom: 10px;
}
.msp-mock__tabs .is-on {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--moss);
}
.msp-mock__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 20px 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.msp-mock__img {
  width: 64px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #b6c88d, #6f8c40);
}

.msp-split {
  padding: 0 0 96px;
}
.msp-split__in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.msp-split__copy > p:not(.msp-kicker) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.06rem;
}
.msp-split__photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.msp-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msp-checks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.msp-checks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
}
.msp-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss-soft);
}
.msp-checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: rotate(45deg);
}

.msp-cta {
  padding: 0 0 96px;
}
.msp-cta__card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--moss);
  color: #eef0e2;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.msp-cta__copy {
  padding: 56px;
}
.msp-cta__h {
  margin-top: 12px;
  color: #fff;
  font: 650 clamp(1.9rem, 3.4vw, 2.7rem) / 1.1 var(--serif);
  letter-spacing: -0.02em;
}
.msp-cta__copy > p:not(.msp-kicker) {
  margin-top: 14px;
  max-width: 42ch;
  font-size: 1.06rem;
}
.msp-cta__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.msp-cta__card :focus-visible {
  outline-color: #fff;
}
.msp-cta__art {
  position: relative;
  min-height: 260px;
}
.msp-cta__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Notes (post cards) ───────────────────────────────────── */
.msp-notes {
  display: grid;
  gap: 14px;
}
.msp-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.msp-note:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.msp-note__by {
  display: flex;
  align-items: center;
  gap: 10px;
}
.msp-note__av {
  flex-shrink: 0;
  border-radius: 50%;
}
.msp-note__av img {
  width: 40px;
  height: 40px;
}
.msp-note__who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  font-size: 0.9rem;
  color: var(--ink-3);
  min-width: 0;
}
.msp-note__name {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.msp-note__name:hover {
  color: var(--moss);
  text-decoration: underline;
}
.msp-note__body {
  margin: 8px 0 0 50px;
}
.msp-note__body--media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 20px;
  align-items: start;
}
.msp-note__text {
  min-width: 0;
}
.msp-note__sec {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--moss-tint);
  border: 1px solid var(--moss-soft);
  color: var(--moss-dk);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.msp-note__sec:hover {
  background: var(--moss-soft);
}
.msp-note__title {
  font: 650 1.3rem/1.28 var(--serif);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.msp-note__title a {
  color: var(--ink);
  text-decoration: none;
}
.msp-note__title a:hover {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}
.msp-note__ex {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.97rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msp-note__media {
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  margin-top: 4px;
}
.msp-note__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.msp-note:hover .msp-note__media img {
  transform: scale(1.03);
}
.msp-note__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 12px 0 0 42px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.msp-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
a.msp-act:hover {
  background: var(--moss-tint);
  color: var(--moss-dk);
}
.msp-act--read {
  margin-left: auto;
  color: var(--moss);
}
.msp-notes--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.msp-notes--grid .msp-note {
  display: flex;
  flex-direction: column;
}
.msp-notes--grid .msp-note__body--media {
  grid-template-columns: 1fr;
  gap: 12px;
}
.msp-notes--grid .msp-note__media {
  order: -1;
  aspect-ratio: 16 / 8;
}
.msp-notes--grid .msp-note__acts {
  margin-top: auto;
  padding-top: 10px;
}
.msp-notes--grid .msp-note__body {
  margin-bottom: 12px;
}

.msp-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.msp-pager__off {
  color: #9a9a8e;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
}
.msp-pager__nums {
  list-style: none;
  display: flex;
  gap: 4px;
  color: var(--ink-3);
}
.msp-pager__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}
a.msp-pager__n:hover {
  background: var(--paper-2);
}
.msp-pager__n.is-on {
  background: var(--ink);
  color: var(--paper);
}
.msp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 40px 24px;
  background: var(--card);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r);
  color: var(--ink-3);
}
.msp-empty > .msp-ico {
  width: 30px;
  height: 30px;
  color: var(--moss);
}

/* ── Publication (profile) ─────────────────────────────────── */
.msp-pub {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.msp-pub__cover {
  height: clamp(150px, 22vw, 290px);
  background: var(--paper-2);
  overflow: hidden;
}
.msp-pub__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msp-pub__cover--plain {
  background:
    radial-gradient(circle at 12% 130%, rgba(246, 241, 230, 0.18) 0 28%, transparent 29%),
    radial-gradient(circle at 92% -30%, rgba(122, 154, 60, 0.55) 0 32%, transparent 33%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(120deg, #2f441c, #4b6a2c 60%, #6a8a3a);
}
.msp-pub__card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 8px 28px;
  align-items: start;
  padding-bottom: 20px;
}
.msp-pub__av {
  width: 136px;
  height: 136px;
  margin-top: -64px;
  border: 5px solid var(--card);
  box-shadow: var(--shadow);
  position: relative;
}
.msp-pub__id {
  padding-top: 18px;
  min-width: 0;
}
.msp-pub__name {
  font: 650 clamp(1.8rem, 3.4vw, 2.4rem) / 1.1 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.msp-pub__handle {
  margin-top: 4px;
  color: var(--ink-3);
  font-weight: 500;
}
.msp-pub__bio {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.04rem;
}
.msp-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 0.93rem;
}
.msp-stats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.msp-stats strong {
  color: var(--ink);
  font-weight: 700;
}
.msp-pub__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  justify-content: flex-end;
}
.msp-tabs ul {
  list-style: none;
  display: flex;
  gap: 4px;
}
.msp-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 10px 10px 0 0;
}
.msp-tab:hover {
  color: var(--ink);
  background: var(--paper);
}
.msp-tab.is-on {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--moss);
}
.msp-tab__n {
  font-size: 0.78rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.msp-tabs--scroll {
  overflow-x: auto;
  margin: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.msp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding-block: 32px 72px;
  align-items: start;
}
.msp-side {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  display: grid;
  gap: 16px;
}
.msp-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  scroll-margin-top: calc(var(--bar-h) + 20px);
}
.msp-box__h {
  font: 700 0.78rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.msp-box__text {
  color: var(--ink-2);
  font-size: 0.96rem;
}
.msp-facts {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.msp-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.msp-facts a {
  overflow-wrap: anywhere;
}
.msp-facts .msp-ico {
  color: var(--ink-3);
}
.msp-catlist {
  list-style: none;
  display: grid;
  gap: 2px;
}
.msp-catlist a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-inline: -10px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.msp-catlist a:hover {
  background: var(--paper);
  color: var(--moss-dk);
}
.msp-catlist .msp-ico {
  color: var(--moss);
}
.msp-catlist .msp-count {
  margin-left: auto;
}
.msp-feed {
  scroll-margin-top: calc(var(--bar-h) + 20px);
}
.msp-feed__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.msp-h2 {
  font: 650 1.55rem/1.2 var(--serif);
  letter-spacing: -0.015em;
}
.msp-feed__count {
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 500;
}
.msp-pin {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--moss);
  border-radius: var(--r);
  padding: 20px 24px 22px;
  margin-bottom: 32px;
}
.msp-pin__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--moss);
}
.msp-pin__h {
  margin: 6px 0 10px;
  font: 650 1.35rem/1.25 var(--serif);
}

/* ── Category & topic ──────────────────────────────────────── */
.msp-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.msp-strip__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.msp-strip__pub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.msp-strip__pub img {
  width: 44px;
  height: 44px;
}
.msp-strip__pub > span {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}
.msp-strip__pub span span {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.msp-strip__pub:hover strong {
  color: var(--moss);
  text-decoration: underline;
}
.msp-pagehead__h {
  margin-top: 8px;
  font: 650 clamp(2rem, 4vw, 2.8rem) / 1.1 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.msp-pagehead__meta {
  margin-top: 8px;
  color: var(--ink-3);
}
.msp-topic {
  background:
    radial-gradient(ellipse 40% 90% at 100% 0%, rgba(122, 154, 60, 0.2), transparent 70%),
    var(--moss-tint);
  border-bottom: 1px solid var(--line);
}
.msp-topic__in {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 44px;
}
.msp-topic__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--moss);
  color: var(--paper);
  font-size: 1.9rem;
  flex-shrink: 0;
}
.msp-hash {
  color: var(--olive);
  margin-right: 0.04em;
}
.msp-narrow {
  max-width: 820px;
  padding-block: 32px 72px;
}

/* ── Issue (post) ──────────────────────────────────────────── */
.msp-read {
  max-width: 808px;
  padding-block: 32px 24px;
}
.msp-issue__pub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.msp-issue__pub img {
  width: 48px;
  height: 48px;
}
.msp-issue__who {
  display: grid;
  line-height: 1.3;
  min-width: 0;
  margin-right: auto;
}
.msp-issue__who span {
  color: var(--ink-3);
  font-size: 0.88rem;
}
.msp-issue__name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.msp-issue__name:hover {
  color: var(--moss);
  text-decoration: underline;
}
.msp-issue__kicker {
  margin-top: 32px;
}
.msp-issue__title {
  margin-top: 12px;
  font: 650 clamp(2rem, 4.6vw, 3.1rem) / 1.12 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.msp-issue__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.94rem;
}
.msp-issue__meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  text-decoration: none;
}
.msp-issue__meta a:hover {
  text-decoration: underline;
}
.msp-issue__cover {
  margin: 28px 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
}
.msp-issue__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.msp-issue--plain .msp-issue__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.msp-toc {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px;
}
.msp-toc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.msp-toc summary::-webkit-details-marker {
  display: none;
}
.msp-toc summary .msp-ico {
  color: var(--moss);
}
.msp-toc summary::after {
  content: '';
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.msp-toc[open] summary::after {
  transform: rotate(-135deg);
}
.msp-toc ol {
  margin: 0 0 14px;
  padding: 10px 0 0 1.4em;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--ink-3);
}
.msp-toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.msp-toc a:hover {
  color: var(--moss);
  text-decoration: underline;
}

.msp-prose {
  overflow-wrap: break-word;
}
.msp-prose > :first-child {
  margin-top: 0;
}
.msp-prose p,
.msp-prose ul,
.msp-prose ol,
.msp-prose blockquote,
.msp-prose figure,
.msp-prose pre,
.msp-prose table,
.msp-prose dl {
  margin: 0 0 1.1em;
}
.msp-prose ul,
.msp-prose ol {
  padding-left: 1.4em;
}
.msp-prose li {
  margin: 0.3em 0;
}
.msp-prose li::marker {
  color: var(--moss);
}
.msp-prose h2,
.msp-prose h3,
.msp-prose h4 {
  font-family: var(--serif);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--bar-h) + 20px);
}
.msp-prose h2 {
  font-size: 1.55em;
  line-height: 1.25;
  font-weight: 650;
  margin: 1.8em 0 0.55em;
}
.msp-prose h3 {
  font-size: 1.22em;
  line-height: 1.3;
  font-weight: 650;
  margin: 1.5em 0 0.5em;
}
.msp-prose h4 {
  font-size: 1.05em;
  margin: 1.4em 0 0.4em;
}
.msp-prose a {
  color: var(--moss);
  text-decoration-thickness: 1px;
}
.msp-prose a:hover {
  text-decoration-thickness: 2px;
}
.msp-prose blockquote {
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--olive);
  color: var(--ink-2);
  font-style: italic;
}
.msp-prose blockquote p:last-child {
  margin-bottom: 0;
}
.msp-prose img {
  border-radius: 12px;
  display: block;
}
.msp-prose figcaption {
  margin-top: 8px;
  font: 0.88rem/1.45 var(--sans);
  color: var(--ink-3);
}
.msp-prose hr {
  border: 0;
  height: 1px;
  background: var(--line-2);
  margin: 2.2em 0;
}
.msp-prose pre {
  background: var(--ink);
  color: #efe9dc;
  padding: 16px 18px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.86em;
}
.msp-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.msp-prose table {
  width: 100%;
  border-collapse: collapse;
  font: 0.92rem/1.45 var(--sans);
  display: block;
  overflow-x: auto;
}
.msp-prose th,
.msp-prose td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.msp-prose th {
  background: var(--paper-2);
}
.msp-prose--issue {
  margin-top: 32px;
  font: 400 1.16rem/1.78 var(--serif);
  color: #262b26;
}
.msp-prose--issue > p:first-child::first-letter {
  float: left;
  font-size: 3.3em;
  line-height: 0.9;
  font-weight: 650;
  margin: 0.06em 0.1em 0 0;
  color: var(--moss);
}
.msp-prose--hub {
  font-size: 1rem;
  color: var(--ink-2);
}
.msp-prose--hub h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1.1em;
}
.msp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.msp-tagpill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--moss-tint);
  border: 1px solid var(--moss-soft);
  color: var(--moss-dk);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.msp-tagpill:hover {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}
.msp-writer {
  margin-top: 32px;
}
.msp-writer__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.msp-writer__row img {
  width: 56px;
  height: 56px;
}
.msp-writer__name {
  font: 650 1.25rem/1.25 var(--serif);
}
.msp-writer__name a {
  color: var(--ink);
  text-decoration: none;
}
.msp-writer__name a:hover {
  color: var(--moss);
  text-decoration: underline;
}
.msp-writer__handle {
  color: var(--ink-3);
  font-size: 0.9rem;
}
.msp-writer__bio {
  margin-top: 12px;
  color: var(--ink-2);
}
.msp-writer__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ── Replies thread ────────────────────────────────────────── */
.msp-thread {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.msp-thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.msp-replies {
  list-style: none;
  display: grid;
  gap: 18px;
}
.msp-reply {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}
.msp-reply:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: -14px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.msp-ini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 700 0.9rem/1 var(--sans);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.msp-tone-0 { background: #e2e9cf; color: #33481e; }
.msp-tone-1 { background: #f0dfcb; color: #6e3a16; }
.msp-tone-2 { background: #dbe4e6; color: #234149; }
.msp-tone-3 { background: #ece3c6; color: #574613; }
.msp-tone-4 { background: #e9dbe0; color: #5a2a3b; }
.msp-ini--you {
  background: var(--moss);
  color: #fff;
  font-size: 1.1rem;
}
.msp-reply__main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px 18px 18px 18px;
  padding: 12px 16px 14px;
  min-width: 0;
}
.msp-reply--author .msp-reply__main {
  background: var(--moss-tint);
  border-color: var(--moss-soft);
}
.msp-reply__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  font-size: 0.9rem;
  color: var(--ink-3);
}
.msp-reply__head strong {
  color: var(--ink);
}
.msp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--moss);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.msp-reply__body {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.msp-reply__body p + p {
  margin-top: 0.6em;
}
.msp-empty--thread {
  padding: 28px 20px;
}
.msp-compose {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.msp-compose__top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.msp-compose__h {
  font: 700 1.12rem/1.3 var(--sans);
}
.msp-compose__sub {
  margin: 10px 0 18px;
  color: var(--ink-3);
  font-size: 0.93rem;
}
.msp-compose__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.msp-compose__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.msp-compose__foot .msp-pill {
  margin-left: auto;
}
.msp-compose__note {
  font-size: 0.86rem;
  color: var(--ink-3);
}
.msp-cstatus {
  flex: 1 1 220px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.msp-cstatus:not(:empty) {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--moss-tint);
  border: 1px solid var(--moss-soft);
  color: var(--moss-dk);
}
.msp-cstatus[data-state='invalid']:not(:empty),
.msp-cstatus[data-state='error']:not(:empty) {
  background: var(--rust-soft);
  border-color: #ecc9b3;
  color: var(--rust);
}
.msp-compose--contact {
  margin-top: 32px;
}
.msp-compose--contact .msp-compose__h {
  margin-bottom: 16px;
  font-size: 1.2rem;
}
.msp-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
}
.msp-flash .msp-ico {
  margin-top: 2px;
}
.msp-flash--ok {
  background: var(--moss-tint);
  border: 1px solid var(--moss-soft);
  color: var(--moss-dk);
}
.msp-flash--warn {
  background: var(--rust-soft);
  border: 1px solid #ecc9b3;
  color: var(--rust);
}
.msp-wide {
  max-width: 1104px;
}
.msp-more {
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* ── Docs (secondary pages) ────────────────────────────────── */
.msp-dochead {
  background:
    radial-gradient(ellipse 35% 100% at 100% 0%, rgba(122, 154, 60, 0.14), transparent 70%),
    var(--card);
  border-bottom: 1px solid var(--line);
}
.msp-dochead__in {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 44px 38px;
}
.msp-dochead__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--moss-soft);
  color: var(--moss);
  font-size: 1.6rem;
  flex-shrink: 0;
}
.msp-dochead__h {
  margin-top: 6px;
  font: 650 clamp(2rem, 4vw, 2.8rem) / 1.1 var(--serif);
  letter-spacing: -0.02em;
}
.msp-dochead__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.msp-doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  padding-block: 40px 80px;
  align-items: start;
}
.msp-doc__body {
  max-width: 72ch;
  min-width: 0;
}
.msp-docside {
  position: sticky;
  top: calc(var(--bar-h) + 20px);
  display: grid;
  gap: 16px;
}
.msp-doctoc ol {
  list-style: none;
  display: grid;
  gap: 2px;
  counter-reset: t;
}
.msp-doctoc a {
  display: block;
  padding: 6px 10px;
  margin-inline: -10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
  text-decoration: none;
}
.msp-doctoc a:hover {
  background: var(--paper);
  color: var(--moss-dk);
}
.msp-plain {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.msp-rel ul {
  list-style: none;
  display: grid;
}
.msp-rel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  text-decoration: none;
}
.msp-rel li:last-child a {
  border-bottom: 0;
}
.msp-rel a .msp-ico {
  color: var(--ink-3);
  transition: transform 0.15s;
}
.msp-rel a:hover {
  color: var(--moss);
}
.msp-rel a:hover .msp-ico {
  transform: translateX(3px);
  color: var(--moss);
}
.msp-prose--doc {
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--ink-2);
}
.msp-prose--doc h2 {
  color: var(--ink);
  font-size: 1.45rem;
}
.msp-prose--doc strong {
  color: var(--ink);
}
.msp-lead {
  font: 400 1.22rem/1.6 var(--serif);
  color: var(--ink);
  margin-bottom: 1.2em;
}
.msp-qa {
  border-bottom: 1px solid var(--line);
}
.msp-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.msp-qa summary::-webkit-details-marker {
  display: none;
}
.msp-qa summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--moss-tint);
  color: var(--moss);
  font-weight: 600;
  font-size: 1.1rem;
}
.msp-qa[open] summary::after {
  content: '−';
}
.msp-qa summary:hover {
  color: var(--moss-dk);
}
.msp-qa__a {
  padding: 0 44px 14px 0;
}
.msp-prose--doc h2 + .msp-qa {
  border-top: 1px solid var(--line);
}

.msp-features {
  padding-block: 40px 80px;
}
.msp-features > .msp-lead {
  max-width: 60ch;
}
.msp-fsec {
  margin-top: 48px;
}
.msp-fsec > h2 {
  font: 650 1.6rem/1.2 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--bar-h) + 20px);
}
.msp-fsec > p {
  margin-top: 20px;
  color: var(--ink-2);
}
.msp-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.msp-fcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.msp-fcard h3 {
  margin: 16px 0 8px;
  font: 700 1.06rem/1.3 var(--sans);
}
.msp-fcard p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}
.msp-features__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.msp-features__cta p {
  margin-right: auto;
  font: 650 1.35rem/1.2 var(--serif);
}

/* ── 404 ───────────────────────────────────────────────────── */
.msp-404 {
  padding-block: 72px 96px;
}
.msp-404__card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.msp-404__code {
  font: 700 clamp(4.5rem, 12vw, 7rem) / 1 var(--serif);
  color: var(--moss-soft);
  -webkit-text-stroke: 2px var(--moss);
  letter-spacing: -0.03em;
}
.msp-404__h {
  margin-top: 12px;
  font: 650 clamp(1.7rem, 3.4vw, 2.2rem) / 1.2 var(--serif);
}
.msp-404__card > p:not(.msp-404__code) {
  margin-top: 12px;
  color: var(--ink-2);
}
.msp-404__acts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .msp-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .msp-hero__in {
    gap: 40px;
  }
}
@media (max-width: 980px) {
  .msp-cols,
  .msp-doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .msp-side,
  .msp-docside {
    position: static;
  }
  .msp-hero__in,
  .msp-showcase__in,
  .msp-split__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .msp-hero {
    padding: 40px 0 64px;
  }
  .msp-hero__media {
    padding-bottom: 0;
  }
  .msp-hero__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .msp-signin {
    position: relative;
    width: auto;
    margin: -64px 16px 0;
  }
  .msp-showcase {
    padding: 64px 0;
  }
  .msp-showcase__in {
    gap: 40px;
  }
  .msp-showcase__copy {
    order: -1;
  }
  .msp-split__in {
    gap: 32px;
  }
  .msp-split {
    padding-bottom: 64px;
  }
  .msp-cta {
    padding-bottom: 64px;
  }
  .msp-pub__card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .msp-pub__av {
    width: 112px;
    height: 112px;
    margin-top: -52px;
  }
  .msp-pub__acts {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 6px;
  }
  .msp-foot__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
@media (max-width: 800px) {
  :root {
    --bar-h: 62px;
  }
  .msp-menu {
    display: inline-flex;
  }
  .msp-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }
  .msp-nav.is-open {
    display: flex;
  }
  .msp-nav__a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .msp-nav__in {
    margin: 8px 0 0;
    padding: 12px;
  }
  .msp-bar__in {
    position: relative;
  }
  .msp-cta__card {
    grid-template-columns: 1fr;
  }
  .msp-cta__copy {
    padding: 36px 28px;
  }
  .msp-cta__art {
    min-height: 160px;
    order: -1;
  }
  .msp-notes--grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .msp-wrap {
    padding-inline: 16px;
  }
  .msp-brand__word {
    font-size: 1.28rem;
  }
  .msp-mark {
    width: 32px;
    height: 32px;
  }
  .msp-band {
    padding: 56px 0;
  }
  .msp-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .msp-hero__acts .msp-pill {
    flex: 1 1 auto;
  }
  .msp-signin {
    margin: -40px 10px 0;
    padding: 18px;
  }
  .msp-note {
    padding: 16px 16px 10px;
  }
  .msp-note__body,
  .msp-note__acts {
    margin-left: 0;
  }
  .msp-note__body--media {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .msp-note__media {
    aspect-ratio: 16 / 9;
  }
  .msp-note__title {
    font-size: 1.2rem;
  }
  .msp-act--static {
    display: none;
  }
  .msp-pub__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .msp-pub__av {
    width: 96px;
    height: 96px;
    margin-top: -48px;
    border-width: 4px;
  }
  .msp-pub__id {
    padding-top: 8px;
  }
  .msp-pub__acts {
    grid-column: auto;
    padding-top: 12px;
  }
  .msp-pub__tabs ul {
    justify-content: space-between;
  }
  .msp-tab {
    padding: 12px 10px;
  }
  .msp-strip__in .msp-pill {
    padding: 0.45rem 0.7rem;
  }
  .msp-issue__pub {
    border-radius: 18px;
    flex-wrap: wrap;
  }
  .msp-issue__pub .msp-pill {
    width: 100%;
  }
  .msp-prose--issue {
    font-size: 1.08rem;
  }
  .msp-compose {
    padding: 18px;
  }
  .msp-compose__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .msp-compose__foot .msp-pill {
    width: 100%;
  }
  .msp-reply {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  .msp-reply .msp-ini {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .msp-reply:not(:last-child)::before {
    left: 17px;
    top: 42px;
  }
  .msp-dochead__in,
  .msp-topic__in {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 32px 28px;
  }
  .msp-dochead__ico,
  .msp-topic__ico {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    border-radius: 14px;
  }
  .msp-qa__a {
    padding-right: 0;
  }
  .msp-features__cta p {
    width: 100%;
  }
  .msp-pager__nums {
    display: none;
  }
  .msp-foot__cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .msp-404__card {
    padding: 36px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
