/* Montserrat (self-hosted, variable 100-900) */
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-cyrillic-ext-wght-normal.woff2') format('woff2-variations'),url('../fonts/montserrat-cyrillic-ext-wght-normal.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-cyrillic-wght-normal.woff2') format('woff2-variations'),url('../fonts/montserrat-cyrillic-wght-normal.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations'),url('../fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Montserrat';font-style:normal;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'),url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Montserrat';font-style:italic;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-cyrillic-ext-wght-italic.woff2') format('woff2-variations'),url('../fonts/montserrat-cyrillic-ext-wght-italic.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Montserrat';font-style:italic;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-cyrillic-wght-italic.woff2') format('woff2-variations'),url('../fonts/montserrat-cyrillic-wght-italic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Montserrat';font-style:italic;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-latin-ext-wght-italic.woff2') format('woff2-variations'),url('../fonts/montserrat-latin-ext-wght-italic.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Montserrat';font-style:italic;font-display:swap;font-weight:100 900;src:url('../fonts/montserrat-latin-wght-italic.woff2') format('woff2-variations'),url('../fonts/montserrat-latin-wght-italic.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Bold headings everywhere */
h1,h2,h3,h4,h5,h6,.has-headings-font{font-family:'Montserrat',ui-sans-serif,system-ui,sans-serif!important;font-weight:700!important;}
body,html{font-family:'Montserrat',ui-sans-serif,system-ui,sans-serif;}

/* ==========================================================================
   SHINRI TRIAL — full redesign of the Bright theme (Ghost >= 5.0)
   --------------------------------------------------------------------------
   Design system in the style of the shinri profile: black #0A0A0A, gold #F5D17E,
   Montserrat, nav-pill, “case card”, “dossier” cards.
   This file is loaded after main.min.css. Ghost Handlebars helpers and the theme
   build are untouched. Not overwritten by `gulp build`.
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  /* Shinri Trial site palette and button system */
  --sh-bg: #0b0a09;
  --sh-s1: #12100e;
  --sh-s2: #18150f;
  --sh-gold: #EBCB7C;
  --sh-gold2: #F6E2A6;
  --sh-gold3: #C9A24E;
  --sh-gd: rgba(235, 203, 124, .12);
  --sh-red: #E5484D;
  --sh-red2: #E5484D;
  --sh-w: #F4EFE6;
  --sh-off: #E6DFD2;
  --sh-m: #9A9388;
  --sh-m2: #5A554D;
  --sh-br: rgba(255, 255, 255, .09);
  --sh-brg: rgba(235, 203, 124, .45);
  --sh-green: #3FB950;
  --sh-cyan: #E6DFD2;
  --sh-purple: #9A9388;
  --sh-max: 1140px;
  --sh-panel: rgba(14, 12, 10, .72);
  --sh-menu: rgba(17, 15, 13, .98);
  --sh-gbtn: #E3C276;
  --sh-gbtn-h: #ECCF8C;
  --sh-gbtn-a: #D6B262;
  --sh-gtxt: #241A08;
  --sh-btn2: rgba(255, 255, 255, .04);
  --sh-btn2-h: rgba(255, 255, 255, .08);
  --sh-btn2-b: rgba(255, 255, 255, .14);

  --font-body: 'Montserrat';
  --gh-font-body: 'Montserrat';
  --font-headings: 'Montserrat';
  --gh-font-heading: 'Montserrat';
}

/* ── Compatibility with the theme’s older templates (docs, courses, landing…) ───── */
html.dark {
  --color-gray-50:  #F5EFE1;
  --color-gray-100: #EAE3D2;
  --color-gray-200: #D9D1BD;
  --color-gray-300: #C4BCA8;
  --color-gray-400: #9C9890;
  --color-gray-500: #8A8A85;
  --color-gray-600: #55534E;
  --color-gray-700: #34322E;
  --color-gray-800: #1C1B19;
  --color-gray-900: #12100e;
  --color-gray-950: #0b0a09;
  --color-background-dark: var(--sh-bg);
  --ghost-accent-color: var(--sh-gold);
  --ghost-accent-color-rgb: 235 203 124;
  --ghost-accent-color-dark-rgb: 235 203 124;
  --color-contrast: #000;
  --color-contrast-dark: #000;
  --c-primary-hsl: 43 73% 70%;
  --c-primary-hsl-50: 45 100% 92%;
  --c-primary-hsl-950: 42 80% 10%;
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--sh-bg);
  color: var(--sh-w);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--sh-gold); color: var(--sh-gtxt); }

/* scan lines */


.shinri-wrap {
  max-width: var(--sh-max);
  margin: 0 auto;
  width: 100%;
  padding: 0 36px;
}

h1, h2, h3, h4, h5, h6, .has-headings-font { letter-spacing: 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sh-bg); }
::-webkit-scrollbar-thumb { background: #2a2a26; border-radius: 5px; border: 2px solid var(--sh-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--sh-gold3); }

/* ══════════════════════════════════════════════════════════════════════════
   NAV — floating “pill”
   ════════════════════════════════════════════════════════════════════════ */
.shinri-nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 600;
}
.shinri-nav-inner { max-width: var(--sh-max); margin: 0 auto; padding: 0 36px; }
.shinri-nav-pill { min-height: 60px;
  background: var(--sh-panel);
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px 0 18px;
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }

.shinri-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  flex-shrink: 0;
}
/* Logo image (horizontal, ~3.3:1 ratio) */
.shinri-logo img { max-height: 34px; width: auto; display: block; }
.shinri-logo-img {
  height: 30px;
  max-height: none;
  width: auto;
  display: block;
  transition: opacity .2s;
}
.shinri-logo:hover .shinri-logo-img { opacity: .82; }
@media (max-width: 600px) { .shinri-logo-img { height: 26px; } }
.shinri-logo-s {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--sh-w);
  text-transform: uppercase;
  white-space: nowrap;
}
.shinri-logo-t { font-size: 9.5px; font-weight: 700; letter-spacing: .3em; color: var(--sh-gold); text-transform: uppercase; white-space: nowrap; }
.shinri-nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .12); flex-shrink: 0; }

.shinri-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;   /* nav and buttons on the right edge */
  min-width: 0;
  flex-wrap: nowrap;
}
.shinri-nav-links a { font-size: 13.5px;
  font-weight: 600;
  color: var(--sh-m);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  text-decoration: none; }
.shinri-nav-links a:hover { color: var(--sh-w); background: rgba(255, 255, 255, .04); }
.shinri-nav-links a.active,
.shinri-nav-links a.current { color: var(--sh-gold2); background: rgba(235, 203, 124, .14); }
.shinri-nav-links a.active:hover,
.shinri-nav-links a.current:hover { color: var(--sh-gold2); background: rgba(235, 203, 124, .18); }

.shinri-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  /* when the menu is hidden (mobile), push actions to the right edge */
  margin-inline-start: auto;
}
.shinri-icon-btn { display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sh-btn2);
  border: none;
  color: var(--sh-off);
  cursor: pointer;
  transition: color .15s, background .15s; }
.shinri-icon-btn:hover { color: var(--sh-w); background: var(--sh-btn2-h); }
.shinri-icon-btn svg { width: 18px; height: 18px; }

.shinri-btn-gold { display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  background: var(--sh-gbtn);
  color: var(--sh-gtxt) !important;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap; }
.shinri-btn-gold:hover { background: var(--sh-gbtn-h); }
.shinri-btn-gold:active { background: var(--sh-gbtn-a); }

.shinri-btn-ghost { display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: var(--sh-btn2);
  color: var(--sh-off) !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--sh-btn2-b);
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
  white-space: nowrap; }
.shinri-btn-ghost:hover { color: var(--sh-w) !important; background: var(--sh-btn2-h); border-color: rgba(255, 255, 255, .22); }

/* mobile menu */
.shinri-hbg { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--sh-btn2); border: none; color: var(--sh-off); font-size: 18px; cursor: pointer; padding: 0; place-items: center; }
.shinri-mob-menu { display: none;
  position: fixed;
  top: 84px;
  left: 12px;
  right: 12px;
  background: var(--sh-menu);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 6px;
  z-index: 599;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.shinri-mob-menu.open { display: flex; }
.shinri-mob-menu a { display: block; padding: 11px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--sh-off); text-decoration: none; }
.shinri-mob-menu a:hover, .shinri-mob-menu a.current { color: var(--sh-w); background: rgba(255, 255, 255, .05); }
.shinri-mob-menu a.current { color: var(--sh-gold2); background: rgba(235, 203, 124, .12); }
.shinri-mob-menu a.gold { color: var(--sh-gold); }

/* offset for the fixed navigation */
#sx-main { padding-top: 84px; }

/* ══════════════════════════════════════════════════════════════════════════
   PAGE OPENING (“case card”: no gradient bar)
   ════════════════════════════════════════════════════════════════════════ */
.shinri-pagehead { position: relative; padding: 48px 0 36px; overflow: hidden; }
/* thin gold “seam” instead of a bar */
.shinri-pagehead::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .07); }
/* kanji — a faint watermark in the page background */
.shinri-pagehead-kanji { display: none; }
.shinri-pagehead-kanji svg { width: 100%; height: auto; display: block; }
/* gold bar left of the title block — like a dossier spine */
.shinri-pagehead-inner { position: relative; max-width: 860px; }

.shinri-pagehead-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.shinri-kicker { display: none; }

.shinri-h1 { font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -.02em;
  line-height: 1.06;
  color: var(--sh-w);
  margin: 0;
  font-weight: 800;
  text-wrap: balance; }
.shinri-h1 em, .shinri-h1 .gold { color: var(--sh-gold); font-style: normal; }
.shinri-lead { max-width: 640px; margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: rgba(244, 239, 230, .72); font-weight: 500; }
.shinri-banner-meta { margin-top: 12px; font-size: 12.5px; font-weight: 500; color: var(--sh-m); }
.shinri-banner-meta b { color: var(--sh-gold); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   CHIPS (role-pill style)
   ════════════════════════════════════════════════════════════════════════ */
.shinri-chip { display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  text-decoration: none;
  background: rgba(235, 203, 124, .12);
  color: var(--sh-gold);
  border: none;
  transition: background .15s; }
a.shinri-chip:hover { background: rgba(235, 203, 124, .2); }
.shinri-chip.red { background: rgba(229, 72, 77, .14); color: #FF6B70; }
.shinri-chip.green { background: rgba(63, 185, 80, .12); color: var(--sh-green); }
.shinri-chip.cyan { background: rgba(255, 255, 255, .06); color: var(--sh-off); }

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS AND POST GRID
   ════════════════════════════════════════════════════════════════════════ */
.shinri-section { padding: 40px 0 0; }
.shinri-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.shinri-section-title { font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--sh-w); margin: 0; }
.shinri-section-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-gold); }

.shinri-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Post card ──────────────────────────────────────────────────────── */
.shinri-card { display: flex;
  flex-direction: column;
  background: var(--sh-s1);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: border-color .2s;
  position: relative; }
.shinri-card:hover { border-color: rgba(255, 255, 255, .18); }
.shinri-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #17120d, #0b0a09); flex-shrink: 0; }
.shinri-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.shinri-card:hover .shinri-card-media img { transform: scale(1.02); }
.shinri-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, .55), transparent 45%);
  pointer-events: none;
}
.shinri-card-media .shinri-kanji-ph { display: none; }
.shinri-card-media .shinri-kanji-ph svg { width: 34%; max-width: 96px; height: auto; }
.shinri-card-badge { position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--sh-gbtn);
  color: var(--sh-gtxt);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase; }
.shinri-card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shinri-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shinri-card-title {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--sh-w);
  font-weight: 700;
  margin: 0;
  transition: color .2s;
}
.shinri-card:hover .shinri-card-title { color: var(--sh-gold2); }
.shinri-card-excerpt { font-size: 13.5px; line-height: 1.55; color: var(--sh-m); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.shinri-card-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--sh-m); }
.shinri-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sh-m2); flex-shrink: 0; }
.shinri-card-meta .gold { color: var(--sh-gold); }

/* large (featured) card */
.shinri-card.is-lg { grid-column: span 3; flex-direction: row; min-height: 280px; }
.shinri-card.is-lg .shinri-card-media { width: 55%; aspect-ratio: auto; }
.shinri-card.is-lg .shinri-card-body { padding: 28px; justify-content: center; }
.shinri-card.is-lg .shinri-card-title { font-size: 22px; line-height: 1.25; }
.shinri-card.is-lg .shinri-card-excerpt { -webkit-line-clamp: 4; font-size: 14.5px; }

/* ── Load more / pagination ───────────────────────────────────────────────── */
.shinri-loadmore-wrap { display: flex; justify-content: center; padding: 24px 0 0; }
.shinri-loadmore { display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  background: var(--sh-btn2);
  color: var(--sh-off);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid var(--sh-btn2-b);
  cursor: pointer;
  transition: background .15s, border-color .15s; }
.shinri-loadmore:hover { background: var(--sh-btn2-h); border-color: rgba(255, 255, 255, .22); color: var(--sh-w); }
.shinri-loadmore svg { width: 15px; height: 15px; }

.shinri-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px 0 8px; font-size: 13px; font-weight: 600; color: var(--sh-m); }
.shinri-pagination a { color: var(--sh-gold); text-decoration: none; }
.shinri-pagination a:hover { color: var(--sh-gold2); }

/* ══════════════════════════════════════════════════════════════════════════
   POST PAGE
   ════════════════════════════════════════════════════════════════════════ */
.shinri-post-head { max-width: 780px; }
.shinri-post-title { font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.02em; line-height: 1.12; color: var(--sh-w); font-weight: 800; margin: 14px 0 0; text-wrap: balance; }
.shinri-post-excerpt { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(244, 239, 230, .72); font-weight: 500; max-width: 640px; }
.shinri-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 20px;
}
.shinri-post-authors { display: flex; align-items: center; gap: 10px; }
.shinri-avatar { width: 38px; height: 38px; border-radius: 9px; padding: 0; background: rgba(255, 255, 255, .08); flex-shrink: 0; overflow: hidden; }
.shinri-avatar > img,
.shinri-avatar > span { width: 100%;
  height: 100%;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border: 0;
  background: transparent;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  color: var(--sh-off); font-weight: 700; }
.shinri-author-name { font-size: 14px; font-weight: 600; color: var(--sh-w); text-decoration: none; }
a.shinri-author-name:hover { color: var(--sh-gold); }
.shinri-meta-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--sh-m); }
.shinri-meta-line .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sh-m2); }

.shinri-post-figure { margin: 36px auto 0; max-width: 980px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); background: var(--sh-s1); }
.shinri-post-figure img { width: 100%; height: auto; display: block; }
.shinri-post-figure figcaption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--sh-m);
  border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ── Content typography (.shinri-content = .gh-content) ────────────────── */
.shinri-content { max-width: 720px; margin: 44px auto 0; font-size: 17px; line-height: 1.75; color: var(--sh-off); font-weight: 500; }
.shinri-content > * + * { margin-top: 1.2em; }
.shinri-content h2, .shinri-content h3, .shinri-content h4 {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  color: var(--sh-w);
  letter-spacing: 0;
  line-height: 1.3;
  margin-top: 1.8em;
}
.shinri-content h2 { font-size: 23px; }
.shinri-content h3 { font-size: 19px; }
.shinri-content h4 { font-size: 16.5px; }

.shinri-content a {
  color: var(--sh-gold);
  text-decoration: underline;
  text-decoration-color: rgba(235, 203, 124, .4);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.shinri-content a:hover { color: var(--sh-gold2); text-decoration-color: var(--sh-gold2); }
.shinri-content strong { color: var(--sh-w); font-weight: 700; }
/* the theme preflight resets list-style on ul/ol — restore markers in content */
.shinri-content ul,
.shinri-content ol {
  padding-inline-start: 1.4em;
  margin-inline-start: 0;
}
.shinri-content ul { list-style: disc outside; }
.shinri-content ol { list-style: decimal outside; }
.shinri-content ul ul { list-style: circle outside; }
.shinri-content ul ul ul { list-style: square outside; }
.shinri-content ol ol { list-style: lower-alpha outside; }
.shinri-content li { margin-top: .45em; }
.shinri-content li::marker { color: var(--sh-gold3); }
.shinri-content ol li::marker { font-weight: 700; }
/* nested lists shouldn’t hug their parent */
.shinri-content li > ul,
.shinri-content li > ol { margin-top: .45em; }
.shinri-content hr { border: none; height: 1px; margin: 2.4em auto; background: rgba(255, 255, 255, .1); }
.shinri-content blockquote { margin: 1.6em 0; padding: 16px 22px; background: rgba(235, 203, 124, .06); border-inline-start: 3px solid var(--sh-gold3); border-radius: 0 12px 12px 0; color: var(--sh-gold2); font-weight: 500; font-style: normal; }
.shinri-content code {
  font-size: .85em;
  background: var(--sh-s2);
  border: 1px solid var(--sh-br);
  border-radius: 6px;
  padding: .15em .4em;
  color: var(--sh-gold2);
}
.shinri-content pre {
  background: var(--sh-s2) !important;
  border: 1px solid var(--sh-br);
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.shinri-content pre code { background: none; border: none; padding: 0; color: var(--sh-off); }
.shinri-content img { max-width: 100%; height: auto; border-radius: 14px; }
.shinri-content figure { margin: 1.8em 0; }
.shinri-content figcaption { margin-top: 8px; font-size: 12.5px; color: var(--sh-m); text-align: center; }
.shinri-content iframe { max-width: 100%; border-radius: 14px; }
/* ── Tables (including ones pasted as HTML) ──
   Pasted markup often carries its own attributes and inline styles,
   so key colors are hard-set, otherwise the table blends into the background. */
.shinri-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  line-height: 1.5;
  margin-block: 1.6em;
  border: 1px solid var(--sh-br);
  border-radius: 14px;
  overflow: hidden;
  background: var(--sh-s1) !important;
  color: var(--sh-off);
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.shinri-content table > thead,
.shinri-content table > tbody,
.shinri-content table > tfoot { background: transparent !important; }

.shinri-content th {
  background: var(--sh-s2) !important;
  color: var(--sh-gold) !important;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: start;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(235, 203, 124, .22) !important;
  white-space: nowrap;
}
.shinri-content td {
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  background: transparent !important;
  color: var(--sh-off) !important;
  vertical-align: top;
}
.shinri-content tbody tr:first-child td { border-top: 0 !important; }
/* row striping — the main thing separating the table from the background */
.shinri-content tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025) !important; }
.shinri-content tbody tr:hover td { background: rgba(235, 203, 124, .06) !important; }
/* the first column reads as a row header */
.shinri-content tbody td:first-child { color: var(--sh-w) !important; font-weight: 700; }

/* Ghost editor card widths */
.shinri-content .kg-width-wide { position: relative; width: min(980px, calc(100vw - 48px)); margin-inline: calc(50% - min(490px, 50vw - 24px)); }
.shinri-content .kg-width-full { position: relative; width: calc(100vw - 48px); margin-inline: calc(50% - 50vw + 24px); }
.shinri-content .kg-card { margin-top: 1.6em; }
.shinri-content .kg-callout-card { border-radius: 14px; }
/* ── Ghost editor button (Button card) ── */
.shinri-content .kg-button-card { margin-block: 2em; }
.shinri-content .kg-button-card a.kg-btn { display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  height: auto;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s; }
.shinri-content .kg-button-card a.kg-btn:active { transform: none; }

/* primary — gold */
.shinri-content .kg-button-card a.kg-btn-accent { background: var(--sh-gbtn) !important; color: var(--sh-gtxt) !important; box-shadow: none; }
.shinri-content .kg-button-card a.kg-btn-accent:hover { background: var(--sh-gbtn-h) !important; }

/* secondary — outlined */
.shinri-content .kg-button-card a.kg-btn:not(.kg-btn-accent) { background: var(--sh-btn2) !important; color: var(--sh-off) !important; border-color: var(--sh-btn2-b); }
.shinri-content .kg-button-card a.kg-btn:not(.kg-btn-accent):hover { color: var(--sh-w) !important; border-color: rgba(255, 255, 255, .22); background: var(--sh-btn2-h) !important; }

/* buttons inside other editor cards (headers, CTA) */
.shinri-content .kg-header-card .kg-header-card-button,
.shinri-content .kg-cta-card .kg-cta-button { border-radius: 10px; font-weight: 600; text-decoration: none !important; }
.shinri-content .kg-bookmark-container {
  border: 1px solid var(--sh-br) !important;
  border-radius: 14px !important;
  background: var(--sh-s1) !important;
  color: var(--sh-off) !important;
  text-decoration: none !important;
}
.shinri-content .kg-bookmark-title { color: var(--sh-w) !important; }
.shinri-content .kg-bookmark-description,
.shinri-content .kg-bookmark-metadata { color: var(--sh-m) !important; }

/* ── Post footer: tags, author, related ─────────────────────────────────────── */
.shinri-post-foot { max-width: 720px; margin: 44px auto 0; }
.shinri-post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); }

.shinri-author-card { margin-top: 24px; background: var(--sh-s1); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.shinri-author-card .shinri-avatar { width: 56px; height: 56px; }
.shinri-author-card h3 { margin: 0; font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0; }
.shinri-author-card h3 a { color: var(--sh-w); text-decoration: none; }
.shinri-author-card h3 a:hover { color: var(--sh-gold); }
.shinri-author-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--sh-m); font-weight: 500; }

/* ── Comments ─────────────────────────────────────────────────────────── */
.shinri-comments { max-width: 720px; margin: 48px auto 0; }
.shinri-comments .shinri-section-title { margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.shinri-footer { background: #090807; border-top: 1px solid rgba(255, 255, 255, .06); padding: 60px 0 0; position: relative; }

.shinri-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; padding-bottom: 48px; }
.shinri-footer-desc { margin-top: 22px; max-width: 420px; font-size: 13.5px; line-height: 1.6; color: var(--sh-m); font-weight: 500; }
.shinri-signup h3 { margin: 0 0 8px; font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0; color: var(--sh-w); }
.shinri-signup p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--sh-m); font-weight: 500; }
.shinri-signup-form { display: flex; gap: 8px; }
.shinri-signup-form input { flex: 1;
  min-width: 0;
  height: 44px;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 0 14px;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--sh-w);
  outline: none;
  transition: border-color .2s, box-shadow .2s; }
.shinri-signup-form input::placeholder { color: var(--sh-m2); }
.shinri-signup-form input:focus { border-color: var(--sh-brg); box-shadow: 0 0 0 3px rgba(235, 203, 124, .1); }
.shinri-signup-form .success-message,
.shinri-signup-form .error-message { display: none; font-size: 13px; font-weight: 700; align-self: center; }
form[data-members-form].success .shinri-signup-fields { display: none; }
form[data-members-form].success .success-message { display: block; color: var(--sh-green); }
form[data-members-form].error .error-message { display: block; color: var(--sh-red2); margin-top: 8px; }
.shinri-signup-fields { display: flex; gap: 8px; width: 100%; }

.shinri-footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .06); }
.shinri-footer-copy { font-size: 12px; color: var(--sh-m2); font-weight: 500; margin: 0; }
.shinri-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.shinri-footer-links a { font-size: 13px; font-weight: 500; color: var(--sh-off); text-decoration: none; transition: color .15s; }
.shinri-footer-links a:hover { color: var(--sh-gold); }

/* ══════════════════════════════════════════════════════════════════════════
   404 / ERRORS
   ════════════════════════════════════════════════════════════════════════ */
.shinri-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.shinri-error-badge { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 8px; background: rgba(229, 72, 77, .12); border: none; color: #FF6B70; font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-size: 14px; letter-spacing: .14em; margin-bottom: 18px; font-weight: 700; }
.shinri-error-code { font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-size: clamp(64px, 14vw, 130px); font-weight: 800; letter-spacing: -.02em; line-height: .95; color: var(--sh-w); }
.shinri-error-code span { color: var(--sh-gold); }
.shinri-error p { margin: 18px 0 26px; color: var(--sh-m); font-weight: 600; max-width: 440px; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
/* Long labels don’t fit in the “pill” — switch to the burger earlier,
   otherwise nav items become unreachable */
@media (max-width: 1080px) {
  .shinri-nav-links { display: none; }
  .shinri-hbg { display: grid; }
  .shinri-nav-actions .shinri-btn-ghost { display: none; }
}
@media (max-width: 960px) {
  .shinri-feed { grid-template-columns: repeat(2, 1fr); }
  .shinri-card.is-lg { grid-column: span 2; flex-direction: column; }
  .shinri-card.is-lg .shinri-card-media { width: 100%; aspect-ratio: 16 / 9; }
  .shinri-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shinri-wrap { padding: 0 16px; }
  .shinri-nav-inner { padding: 0 12px; }
  .shinri-nav-pill { padding: 4px 12px; }
  .shinri-nav-links { display: none; }
  .shinri-hbg { display: grid; }
  .shinri-nav-actions .shinri-btn-ghost { display: none; }
  .shinri-feed { grid-template-columns: 1fr; }
  .shinri-card.is-lg { grid-column: span 1; }
  .shinri-pagehead { padding: 40px 0 30px; }
  
  .shinri-content { font-size: 16px; }
  .shinri-signup-fields { flex-direction: column; }
  .shinri-signup-form .shinri-btn-gold { width: 100%; }
}

/* reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shinri-card, .shinri-card-media img, .shinri-btn-gold, .shinri-loadmore { transition: none; }
}


/* ══ HOME: no site header, so the first section needs top spacing ══ */
.home-template .shinri-wrap > .shinri-section:first-of-type { padding-top: 56px; }
@media (max-width: 640px) {
  .home-template .shinri-wrap > .shinri-section:first-of-type { padding-top: 34px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NEWS SLIDER (scroll-snap + dot pagination)
   ════════════════════════════════════════════════════════════════════════ */
.sh-slider { position: relative; }

.sh-slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* vertical padding only — for the card shadow and hover lift;
     horizontal padding would shift the scroll origin */
  margin-block: -8px;
  padding-block: 8px;
  scroll-padding-inline-start: 0;
}
.sh-slider__viewport::-webkit-scrollbar { display: none; }
.sh-slider__viewport:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: 4px; border-radius: 18px; }

.sh-slider__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-slider__slide {
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
  display: flex;
}
.sh-slider__slide > .shinri-card { width: 100%; }

/* Controls */
.sh-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.sh-slider__controls[hidden] { display: none; }

.sh-slider__arrow { display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  border: none;
  background: var(--sh-btn2);
  color: var(--sh-off);
  cursor: pointer;
  transition: color .15s, background .15s, opacity .15s; }
.sh-slider__arrow svg { width: 18px; height: 18px; }
.sh-slider__arrow:hover:not(:disabled) { color: var(--sh-w); background: var(--sh-btn2-h); }
.sh-slider__arrow:disabled { opacity: .3; cursor: default; }

.sh-slider__dots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sh-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .2s, width .2s;
}
.sh-slider__dot:hover { background: rgba(255, 255, 255, .35); }
.sh-slider__dot.is-active { width: 22px; background: var(--sh-gold); }

@media (max-width: 960px) {
  .sh-slider__slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .sh-slider__track { gap: 12px; }
  .sh-slider__slide { flex-basis: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════════
   MAIN NEWS — large cover, text over the image
   ════════════════════════════════════════════════════════════════════════ */
.sh-hero { position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  background: var(--sh-s1);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s; }
.sh-hero:hover { border-color: rgba(255, 255, 255, .18); }

.sh-hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #17120d, #0b0a09); }
.sh-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.sh-hero:hover .sh-hero__media img { transform: scale(1.02); }

.sh-hero__ph { display: none; }
.sh-hero__ph svg { width: 16%; max-width: 130px; height: auto; }

/* bottom shade so text is readable on any image */
.sh-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 6, .93) 0%, rgba(6, 6, 6, .72) 26%, rgba(6, 6, 6, .18) 52%, transparent 72%),
    linear-gradient(to right, rgba(6, 6, 6, .55), transparent 55%);
  pointer-events: none;
}

.sh-hero__content {
  box-sizing: border-box;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: clamp(20px, 3.4vw, 44px);
  max-width: 760px;
}
.sh-hero__title { margin: 0; font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: clamp(22px, 3vw, 38px); line-height: 1.12; letter-spacing: -.02em; color: var(--sh-w); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); transition: color .2s; }
.sh-hero:hover .sh-hero__title { color: var(--sh-gold2); }
.sh-hero__lead { margin: 12px 0 0; font-size: clamp(13.5px, 1.2vw, 15.5px); line-height: 1.6; font-weight: 500; color: rgba(244, 239, 230, .8); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
  .sh-hero__content { padding: 16px 14px 18px; }
  /* on narrow screens 16:9 leaves little room — hide the subtitle */
  .sh-hero__lead { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDER: square covers (1:1 poster format)
   ════════════════════════════════════════════════════════════════════════ */
.sh-slider .shinri-card-media { aspect-ratio: 1 / 1; }
.sh-slider .shinri-card-body { gap: 8px; }

/* ══ Footer logo ══ */
.shinri-footer .shinri-logo { align-items: flex-start; }
.shinri-footer .shinri-logo-img { height: 34px; }

/* ══════════════════════════════════════════════════════════════════════════
   MAIN NEWS CAROUSEL (block 1) — one slide per screen, autoplay
   ════════════════════════════════════════════════════════════════════════ */
.sh-slider--hero .sh-slider__slide { flex-basis: 100%; }
.sh-slider--hero .sh-slider__slide > .sh-hero { width: 100%; }
.sh-slider--hero .sh-slider__track { gap: 20px; }

/* controls over the cover, bottom right (title is on the left) */
.sh-slider--hero .sh-slider__controls { position: absolute;
  inset-inline-end: clamp(14px, 2.2vw, 26px);
  inset-block-end: clamp(14px, 2.2vw, 26px);
  z-index: 3;
  margin: 0;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--sh-panel);
  border: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px); }
.sh-slider--hero .sh-slider__arrow { width: 34px; height: 34px; background: transparent; color: rgba(244, 239, 230, .8); }
.sh-slider--hero .sh-slider__arrow svg { width: 16px; height: 16px; }
.sh-slider--hero .sh-slider__arrow:hover:not(:disabled) { color: var(--sh-w); background: rgba(255, 255, 255, .08); }
.sh-slider--hero .sh-slider__dot { background: rgba(255, 255, 255, .35); }
.sh-slider--hero .sh-slider__dot.is-active { background: var(--sh-gold); }

/* keep the news text from running under the controls */
@media (min-width: 641px) {
  .sh-slider--hero .sh-hero__content { max-width: min(760px, calc(100% - 150px)); }
}
@media (max-width: 640px) {
  /* a 16:9 cover is short on narrow screens — don’t cover it with buttons */
  .sh-slider--hero .sh-slider__controls {
    position: static;
    margin-top: 14px;
    padding: 0;
    gap: 12px;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sh-slider--hero .sh-slider__arrow {
    width: 34px;
    height: 34px;
    background: var(--sh-s1);
    border-color: var(--sh-br);
    color: var(--sh-m);
  }
  .sh-slider--hero .sh-slider__dot { background: rgba(255, 255, 255, .18); }
  .sh-slider--hero .sh-hero__content { max-width: 100%; }
  .sh-hero__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   WIKI — section hub and article page
   ════════════════════════════════════════════════════════════════════════ */
.sh-wiki-intro { max-width: 720px; margin: 0 0 8px; }

.sh-wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  padding-top: 34px;
}

/* ── Section card ── */
.sh-wiki-card { background: var(--sh-s1); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 22px; transition: border-color .2s; }
.sh-wiki-card:hover { border-color: rgba(255, 255, 255, .18); }
.sh-wiki-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sh-wiki-card__icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; font-size: 20px; background: none; border: none; }
.sh-wiki-card__title {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--sh-w);
  flex: 1;
}
.sh-wiki-card__count { font-size: 11.5px; font-weight: 700; color: var(--sh-gold); background: rgba(235, 203, 124, .12); border: none; border-radius: 6px; padding: 3px 8px; }
.sh-wiki-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sh-wiki-card__empty,
.sh-wiki-navgroup__empty {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-m2);
}

.sh-wiki-item { position: relative; display: block; padding: 11px 26px 11px 12px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.sh-wiki-item:hover { background: rgba(255, 255, 255, .04); }
.sh-wiki-item__title { display: block; font-size: 14px; font-weight: 600; color: var(--sh-off); }
.sh-wiki-item:hover .sh-wiki-item__title { color: var(--sh-gold); }
.sh-wiki-item__desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--sh-m); font-weight: 500; }
.sh-wiki-item__arrow {
  position: absolute;
  inset-inline-end: 10px;
  top: 11px;
  color: var(--sh-m2);
  font-size: 13px;
  transition: color .18s, transform .18s;
}
.sh-wiki-item:hover .sh-wiki-item__arrow { color: var(--sh-gold); transform: translateX(3px); }

/* ── Article page ── */
.sh-wiki-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 28px 0 0;
  font-size: 12.5px; font-weight: 700; color: var(--sh-m2);
}
.sh-wiki-crumbs a { color: var(--sh-m); text-decoration: none; }
.sh-wiki-crumbs a:hover { color: var(--sh-gold); }

.sh-wiki-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 26px 0 0;
}

.sh-wiki-side { position: sticky; top: 96px; background: var(--sh-s1); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 20px; max-height: calc(100vh - 120px); overflow-y: auto; }
.sh-wiki-side__title {
  margin: 0 0 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sh-m2);
}
.sh-wiki-navgroup + .sh-wiki-navgroup { margin-top: 18px; }
.sh-wiki-navgroup__title {
  margin: 0 0 8px;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--sh-w);
}
.sh-wiki-navgroup__list { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--sh-br); }
.sh-wiki-navlink {
  display: block;
  padding: 6px 0 6px 12px;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--sh-m); text-decoration: none;
  transition: color .18s, border-color .18s;
}
.sh-wiki-navlink:hover { color: var(--sh-w); }
.sh-wiki-navlink.is-current {
  color: var(--sh-gold);
  border-inline-start-color: var(--sh-gold);
  font-weight: 700;
}
.sh-wiki-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 12.5px; font-weight: 700;
  color: var(--sh-m); text-decoration: none;
}
.sh-wiki-back:hover { color: var(--sh-gold); }

.sh-wiki-article { min-width: 0; }
.sh-wiki-article__title { margin: 0; font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: -.02em; color: var(--sh-w); }
.sh-wiki-article__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.6; font-weight: 500; color: rgba(244, 239, 230, .72); max-width: 62ch; }
.sh-wiki-article .shinri-content { margin-top: 26px; }
.sh-wiki-article .shinri-post-figure { margin-top: 26px; }

@media (max-width: 900px) {
  .sh-wiki-layout { grid-template-columns: 1fr; gap: 24px; }
  .sh-wiki-side { position: static; max-height: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION /feed/ — large full-width horizontal timeline
   Newest updates on the left, oldest on the right. Title over the cover.
   ════════════════════════════════════════════════════════════════════════ */
.sh-feed__intro,
.sh-docs__intro { max-width: 720px; margin: 0 0 8px; }

/* the feed breaks out of the container to full window width */
.sh-ftl {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-top: 28px;
}

.sh-ftl__viewport {
  position: relative;
  padding-block: 4px 10px;
  /* free scrolling: snapping on large cards caused
     a noticeable jerk at the end of the gesture. Arrows and dots position precisely on their own. */
  scroll-snap-type: none;
  scroll-behavior: auto;
  /* align the feed start with the page container, the end with the window edge */
  /* the feed is a standalone full-width block: a small inset from the window edge
     instead of aligning to the narrow container (otherwise ~750px is empty on the left at 2K) */
  padding-inline: clamp(16px, 3.5vw, 72px);
  scroll-padding-inline-start: clamp(16px, 3.5vw, 72px);
  overscroll-behavior-x: contain;
}

.sh-ftl__track {
  position: relative;
  align-items: stretch;
  gap: clamp(16px, 1.6vw, 24px);
  width: max-content;
  min-width: 100%;
}
/* the timeline is a pseudo-element so it isn’t counted as a slide in pagination */
.sh-ftl__track::after { content: ''; position: absolute; top: 39px; inset-inline: 0; height: 1px; background: rgba(255, 255, 255, .1); pointer-events: none; }

/* ── card ── */
.sh-ftl__card {
  position: relative;
  flex: 0 0 clamp(300px, 44vw, 780px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 54px;
  text-decoration: none;
}

.sh-ftl__node {
  position: absolute;
  top: 34px;
  inset-inline-start: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sh-bg);
  border: 2px solid var(--sh-gold3);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sh-ftl__card:hover .sh-ftl__node { border-color: var(--sh-gold); }
.sh-ftl__card:first-child .sh-ftl__node { background: var(--sh-gold); border-color: var(--sh-gold); }

/* date above the card */
.sh-ftl__date { position: absolute; top: 0; inset-inline-start: 0; display: flex; align-items: baseline; gap: 8px; }
.sh-ftl__day {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--sh-off);
}
.sh-ftl__year { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--sh-m2); }
.sh-ftl__card:hover .sh-ftl__day { color: var(--sh-gold); }

/* cover with title on top */
.sh-ftl__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .09); background: var(--sh-s1); transition: border-color .2s; }
.sh-ftl__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.sh-ftl__card:hover .sh-ftl__media { border-color: rgba(255, 255, 255, .2); }
.sh-ftl__card:hover .sh-ftl__media img { transform: scale(1.02); }

.sh-ftl__ph { display: none; }
.sh-ftl__ph svg { width: 26%; max-width: 120px; height: auto; }

/* shade under the text */
.sh-ftl__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(6, 6, 6, .93) 0%, rgba(6, 6, 6, .74) 24%, rgba(6, 6, 6, .2) 52%, transparent 72%);
  pointer-events: none;
}

.sh-ftl__pin { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 9px; border-radius: 6px; background: var(--sh-gbtn); border: none; color: var(--sh-gtxt); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* title over the cover */
.sh-ftl__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 28px);
}
.sh-ftl__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sh-gold);
}
.sh-ftl__title { font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: clamp(16px, 1.7vw, 26px); line-height: 1.28; color: var(--sh-w); text-shadow: 0 2px 12px rgba(0, 0, 0, .55); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.sh-ftl__card:hover .sh-ftl__title { color: var(--sh-gold2); }

/* ── controls ── */
.sh-ftl__controls {
  margin-top: 20px;
  padding-inline: clamp(16px, 3.5vw, 72px);
}

/* On wide screens the card size follows the window height — the feed fills
   the screen vertically with no empty space at the bottom. */
@media (min-width: 900px) {
  .sh-ftl__card { flex: 0 0 auto; }
  .sh-ftl__media {
    height: clamp(300px, calc(100vh - 420px), 780px);
    width: auto;
    aspect-ratio: 16 / 9;
    max-width: min(84vw, 1440px);
  }
  .sh-ftl__media img { width: 100%; }
}

@media (max-width: 640px) {
  .sh-ftl__viewport,
  .sh-ftl__controls { padding-inline: 16px; }
  .sh-ftl__viewport { scroll-padding-inline-start: 16px; }
  .sh-ftl__card { flex-basis: 86vw; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION /docs/ — documentation
   ════════════════════════════════════════════════════════════════════════ */
.sh-docs-search { display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 620px;
  margin-top: 30px;
  padding: 0 16px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .4);
  color: var(--sh-m);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: start;
  transition: border-color .2s, color .2s; }
.sh-docs-search:hover { color: var(--sh-w); border-color: rgba(255, 255, 255, .24); }
.sh-docs-search svg { width: 19px; height: 19px; flex: none; }

.sh-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding-top: 30px;
}

.sh-folder { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 20px 40px 20px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .09); background: var(--sh-s1); text-decoration: none; transition: border-color .2s; }
.sh-folder:hover { border-color: rgba(255, 255, 255, .18); }

.sh-folder__icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: none; border: none; color: var(--sh-gold); }
.sh-folder__icon svg { width: 20px; height: 20px; }
.sh-folder__mask {
  width: 20px;
  height: 20px;
  background: var(--sh-gold);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sh-folder__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-folder__title {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--sh-w);
}
.sh-folder:hover .sh-folder__title { color: var(--sh-gold); }
.sh-folder__desc { font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--sh-m); }
.sh-folder__count { align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--sh-gold); background: rgba(235, 203, 124, .12); border: none; border-radius: 6px; padding: 3px 8px; }

.sh-folder__arrow {
  position: absolute;
  inset-inline-end: 16px;
  top: 22px;
  color: var(--sh-m2);
  font-size: 14px;
  transition: color .2s, transform .2s;
}
.sh-folder:hover .sh-folder__arrow { color: var(--sh-gold); transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════════════════
   FIX: footer sticks to the bottom of the window on short pages
   (#sx-main has flex-none in the markup — overridden by ID)
   ════════════════════════════════════════════════════════════════════════ */
#sx-viewport { min-height: 100dvh; display: flex; flex-direction: column; }
#sx-main { flex: 1 1 auto; padding-bottom: clamp(28px, 3.5vw, 48px); }
#sx-footer { margin-top: auto; }

/* ══ Documentation folder: article list instead of a counter ══ */
.sh-folder { flex-direction: column; align-items: stretch; padding: 20px; }
.sh-folder__head { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; }
.sh-folder__headtext { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-folder__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 4px;
  border-top: 1px solid var(--sh-br);
  padding-top: 12px;
}
.sh-folder__link { display: block; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--sh-off); text-decoration: none; transition: color .15s, background .15s; }
.sh-folder__link:hover { color: var(--sh-w); background: rgba(255, 255, 255, .05); }
.sh-folder__more,
.sh-folder__empty {
  display: inline-block;
  margin-top: 10px;
  padding-inline-start: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sh-m2);
  text-decoration: none;
}
.sh-folder__more:hover { color: var(--sh-gold); }
.sh-docs-grid { align-items: start; }

/* ══════════════════════════════════════════════════════════════════════════
   DOCUMENT PAGE (/docs/)
   Three columns in a shared container: menu — text — table of contents.
   ════════════════════════════════════════════════════════════════════════ */
.sh-doc {
  --sh-doc-top: 92px;              /* floating header height + spacing */
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ── sidebar ── */
.sh-doc__sidebar { position: sticky; top: var(--sh-doc-top); }
.sh-doc__scrim { display: none; }
.sh-doc__nav {
  max-height: calc(100dvh - var(--sh-doc-top) - 24px);
  overflow-y: auto;
  padding: 20px 18px;
  border: 1px solid var(--sh-br);
  border-radius: 18px;
  background: var(--sh-s1);
  scrollbar-width: thin;
}
.sh-doc__navhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--sh-br);
}
.sh-doc__folder { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.sh-doc__folder .sh-folder__icon { width: 34px; height: 34px; border-radius: 10px; }
.sh-doc__folder .sh-folder__icon svg,
.sh-doc__folder .sh-folder__mask { width: 17px; height: 17px; }
.sh-doc__foldertitle {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--sh-w);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-doc__close { display: none; background: none; border: 0; color: var(--sh-m); cursor: pointer; margin-inline-start: auto; }
.sh-doc__close svg { width: 20px; height: 20px; }

.sh-doc__groups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.sh-doc__grouptitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sh-m2);
  cursor: pointer;
  user-select: none;
}
.sh-doc__grouptitle button { background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; margin-inline-start: auto; padding: 0; }
.sh-doc__grouptitle svg { width: 14px; height: 14px; transition: transform .2s; }
.sh-doc__group.open .sh-doc__grouptitle svg { transform: rotate(90deg); }

.sh-doc__links { list-style: none; margin: 0; padding: 0; display: none; }
.sh-doc__group.open .sh-doc__links { display: block; }
.sh-doc.no-groups .sh-doc__grouptitle { display: none; }

.sh-doc__link {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sh-m);
  text-decoration: none;
  transition: color .18s, background .18s;
}
.sh-doc__link:hover { color: var(--sh-w); background: rgba(255, 255, 255, .04); }
.sh-doc__link.current {
  color: var(--sh-gold);
  font-weight: 700;
  background: rgba(235, 203, 124, .1);
  box-shadow: inset 2px 0 0 var(--sh-gold);
}

/* ── right side: text + table of contents ── */
.sh-doc__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: clamp(24px, 3vw, 48px);
  padding: 34px 0 64px;
  align-items: start;
}
.sh-doc__article { min-width: 0; max-width: 74ch; }

/* breadcrumbs */
.sh-doc__crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sh-m2);
}
.sh-doc__crumbpath { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sh-doc__crumbs a { color: var(--sh-m); text-decoration: none; }
.sh-doc__crumbs a:hover { color: var(--sh-gold); }
.sh-doc__crumbcur { color: var(--sh-off); }

.sh-doc__title {
  margin: 16px 0 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--sh-w);
  text-wrap: balance;
}
.sh-doc__lead { margin: 14px 0 0; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--sh-m); }

/* “seam” under the document header */
.sh-doc__article > header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sh-br);
}
.sh-doc__article .shinri-content { margin-top: 26px; max-width: none; }

/* table of contents */
.sh-doc__toc { position: sticky; top: var(--sh-doc-top); max-height: calc(100dvh - var(--sh-doc-top) - 24px); overflow-y: auto; }
.sh-doc__toc .sh-toc__title { margin-bottom: 12px; }
.sh-doc__tocnav .toc-list { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--sh-br); }
.sh-doc__tocnav .toc-list .toc-list { padding-inline-start: 12px; border: 0; }
.sh-doc__tocnav a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-inline-start: -1px;
  border-inline-start: 2px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sh-m);
  text-decoration: none;
  transition: color .18s, border-color .18s;
}
.sh-doc__tocnav a:hover { color: var(--sh-w); }
.sh-doc__tocnav a.current,
.sh-doc__tocnav a.is-active-link { color: var(--sh-gold); border-inline-start-color: var(--sh-gold); font-weight: 700; }

/* quick navigation at the bottom of the document */
.sh-doc__adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.sh-doc__adjacent-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border: 1px solid var(--sh-br);
  border-radius: 14px;
  background: var(--sh-s1);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.sh-doc__adjacent-item:hover { border-color: rgba(235, 203, 124, .3); background: var(--sh-s2); }
.sh-doc__adjacent-item.invisible { visibility: hidden; }
.sh-doc__adjacent-item--next { text-align: end; }
.sh-doc__adjacent-dir { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sh-m2); }
.sh-doc__adjacent-title { font-size: 14px; font-weight: 700; color: var(--sh-w); line-height: 1.35; }
.sh-doc__adjacent-item:hover .sh-doc__adjacent-title { color: var(--sh-gold); }

/* menu toggle button — narrow screens only */
.sh-doc__menubtn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--sh-br);
  background: var(--sh-s1);
  color: var(--sh-off);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.sh-doc__menubtn svg { width: 16px; height: 16px; }
.sh-doc__menubtn:hover { color: var(--sh-gold); border-color: rgba(235, 203, 124, .35); }

@media (max-width: 1280px) {
  .sh-doc__main { grid-template-columns: minmax(0, 1fr); }
  .sh-doc__toc { display: none; }
  .sh-doc__article { max-width: none; }
}
@media (max-width: 1024px) {
  .sh-doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sh-doc__menubtn { display: inline-flex; }
  .sh-doc__sidebar {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 900;
    visibility: hidden;
  }
  .sh-doc__sidebar.open { visibility: visible; }
  .sh-doc__scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .25s;
  }
  .sh-doc__sidebar.open .sh-doc__scrim { opacity: 1; }
  .sh-doc__nav {
    position: relative;
    z-index: 1;
    width: min(320px, 86vw);
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    border-inline-start: 0;
    border-block: 0;
    padding: 20px 18px 32px;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  }
  .sh-doc__sidebar.open .sh-doc__nav { transform: none; }
  .sh-doc__close { display: inline-flex; }
  .sh-doc__main { padding: 26px 0 52px; }
}
@media (max-width: 640px) {
  .sh-doc__adjacent { grid-template-columns: 1fr; }
  .sh-doc__adjacent-item--next { text-align: start; }
}

/* ══════════════════════════════════════════════════════════════════════════
   FEED ENTRY PAGE (/feed/)
   ════════════════════════════════════════════════════════════════════════ */
.sh-feedpost__content { margin-top: 30px; }


}

/* documentation sidebar toggle button (narrow screens only) */
.sh-doc__menubtn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 10px;
  border: 1px solid var(--sh-br);
  background: var(--sh-s1);
  color: var(--sh-off);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.sh-doc__menubtn svg { width: 16px; height: 16px; }
.sh-doc__menubtn:hover { color: var(--sh-gold); border-color: rgba(235, 203, 124, .35); }
@media (max-width: 1024px) {
  .sh-doc__menubtn { display: inline-flex; }
  .sh-doc__crumb-home { display: none; }
  .sh-doc .sh-wiki-crumbs > span[aria-hidden="true"]:first-of-type { display: none; }
}


/* The <picture> wrapper for compressed images doesn’t affect layout */
picture.sh-pic { display: contents; }

/* ══════════════════════════════════════════════════════════════════════════
   BACKGROUND — matching the site: near-black base, muted blurred
   bronze planes at the edges (inline SVG in default.hbs, .sh-page-art)
   ════════════════════════════════════════════════════════════════════════ */
.sh-page-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #0e0d0c 0%, #0b0a0a 50%, #090808 100%); }
.sh-page-art .pa-svg { position: absolute; inset: -2%; width: 104%; height: 104%; display: block; opacity: .28; filter: blur(6px); }
.sh-page-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, transparent 12%), linear-gradient(to top, rgba(0, 0, 0, .4) 0%, transparent 22%); }
#sx-viewport { position: relative; z-index: 1; }

/* unified focus states (as on the site) */
.shinri-btn-gold:focus-visible, .shinri-btn-ghost:focus-visible, .shinri-icon-btn:focus-visible, .shinri-hbg:focus-visible,
.shinri-loadmore:focus-visible, .sh-slider__arrow:focus-visible, .shinri-nav-links a:focus-visible, .shinri-chip:focus-visible,
.shinri-card:focus-visible, .sh-hero:focus-visible, .sh-folder:focus-visible, .sh-docs-search:focus-visible {
  outline: 2px solid var(--sh-gold); outline-offset: 3px;
}


/* ══════════════════════════════════════════════════════════════════════════
   HEADER, SOCIALS, ACCOUNT MENU, FOOTER, LANGUAGE, COOKIE — 1:1 with the main site
   (st-*, soc-*, um-*, ft-*, ck-* classes; same variables as on the site)
   ════════════════════════════════════════════════════════════════════════ */
:root{
  --bg:#0b0908;--s1:rgba(16,13,11,.86);--s2:#15110e;
  --gold:#EBCB7C;--gold2:#F6E2A6;--gold3:#C9A24E;--gd:rgba(235,203,124,.12);
  --red:#E5484D;--red2:#E5484D;--green:#3FB950;--teal:#4FB8C9;
  --w:#F4EFE6;--off:#E6DFD2;--m:#9A9388;--m2:#5A554D;
  --br:rgba(255,255,255,.11);--brg:rgba(235,203,124,.55);
  --panel:rgba(14,12,10,.72);--panel-b:rgba(255,255,255,.12);
  --gbtn:#E3C276;          /* primary button: flat fill */
  --gbtn-h:#ECCF8C;        /* hover */
  --gbtn-a:#D6B262;        /* pressed */
  --btn2:rgba(255,255,255,.04);   /* secondary */
  --btn2-h:rgba(255,255,255,.08);
  --btn2-b:rgba(255,255,255,.14);
  --btn-dis:rgba(255,255,255,.07);  /* disabled: background */
  --btn-dis-t:rgba(244,239,230,.42);/* disabled: text */
  --gtxt:#241A08;
  --max:1140px;
}
#sx-header.st-header a, #sx-footer a, .ck a { text-decoration: none; }
.st-header svg, .ft svg { display: inline-block; }
/* HEADER */
.st-header{position:fixed;top:12px;left:0;right:0;z-index:600}
.st-header-in{max-width:1140px;margin:0 auto;padding:0 36px}
.st-bar{
  height:60px;display:flex;align-items:center;gap:14px;padding:0 10px 0 18px;
  background:var(--panel);border:none;border-radius:12px;
  backdrop-filter:blur(14px) saturate(1.05);-webkit-backdrop-filter:blur(14px) saturate(1.05);
  box-shadow:0 6px 22px rgba(0,0,0,.35);
}
.st-logo{display:flex;align-items:center;flex-shrink:0}
.st-logo img{display:block;width:118px;height:auto;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))}
.st-sep{width:1px;height:22px;background:rgba(255,255,255,.12);flex-shrink:0}

.st-online{display:flex;align-items:center;gap:8px;flex-shrink:0;height:38px;padding:0 13px;border-radius:10px;border:1px solid transparent;transition:background .18s,border-color .18s,transform .14s}
.st-online:hover{background:rgba(63,185,80,.08);border-color:rgba(63,185,80,.35)}
.st-online:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.st-online .ppl{width:16px;height:16px;fill:var(--green);flex-shrink:0}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}
.st-online b{font-weight:700;font-size:14px;color:var(--green);font-variant-numeric:tabular-nums;transition:text-shadow .3s}
.st-online.tick b{text-shadow:0 0 18px rgba(63,185,80,.9)}
.st-online .lbl{font-size:13px;font-weight:500;color:rgba(244,239,230,.8);white-space:nowrap}
.st-online[aria-current="page"]{background:rgba(63,185,80,.08);border-color:rgba(63,185,80,.35);cursor:default;transform:none}

.st-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.st-nav a{padding:9px 14px;border-radius:8px;border:1px solid transparent;font-size:13.5px;font-weight:600;color:var(--m);white-space:nowrap;transition:color .18s,background .18s,border-color .18s}
.st-nav a:hover{color:var(--w);background:rgba(255,255,255,.04)}
.st-nav a.is-active{color:var(--gold2);background:rgba(235,203,124,.14)}
.st-nav a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}


.st-user{display:flex;align-items:center;gap:9px;height:40px;padding:0 12px 0 5px;border-radius:10px;border:none;background:var(--btn2);transition:background .15s;flex-shrink:0}
.st-user:hover{background:var(--btn2-h)}
.st-user .av{width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-weight:700;font-size:13px;color:var(--off);flex-shrink:0}
.st-user .nm{font-size:13px;font-weight:500;color:var(--off);white-space:nowrap}

.st-burger{display:none;width:40px;height:40px;border-radius:10px;border:none;background:var(--btn2);cursor:pointer;place-items:center;flex-shrink:0}
.st-burger svg{width:16px;height:16px;stroke:var(--off);stroke-width:2.2;fill:none}
.st-burger:hover{background:var(--btn2-h)}
.st-burger:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.st-drop{display:none;margin-top:8px;padding:6px;border-radius:12px;background:rgba(17,15,13,.98);border:1px solid rgba(255,255,255,.07);backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(0,0,0,.5)}
.st-drop.open{display:block}
.st-drop a{display:block;padding:11px 14px;border-radius:8px;font-size:14px;font-weight:500;color:var(--off)}
.st-drop a:hover{background:rgba(255,255,255,.05)}
.st-drop a.is-active{color:var(--gold2);background:rgba(235,203,124,.12)}

@media(max-width:980px){.st-nav{display:none}.st-burger{display:grid;margin-left:auto}}
@media(max-width:720px){.st-online .lbl,.st-user .nm{display:none}.st-user{padding:0 4px}}
@media(max-width:480px){
  .st-header-in{padding:0 12px}
  .st-bar{padding:0 8px 0 12px;gap:8px}
  .st-logo img{width:96px}
  .st-sep{display:none}
}

/* SOCIALS in the header: a button that expands into a list on hover/focus */
.st-soc{position:relative;flex-shrink:0}
.st-soc-btn{width:40px;height:40px;border-radius:10px;border:none;background:var(--btn2);color:var(--off);display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}
.st-soc-btn svg{width:17px;height:17px}
.st-soc-btn:hover,.st-soc.open .st-soc-btn{background:var(--btn2-h);color:var(--w)}
.st-soc-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* invisible “bridge” so the list doesn’t close while the cursor moves to it */
.st-soc::after{content:'';position:absolute;left:-10px;right:-10px;top:100%;height:12px;display:none}
.st-soc.open::after{display:block}
.soc-panel{position:absolute;right:0;top:calc(100% + 10px);width:220px;padding:6px;border-radius:12px;
  background:rgba(17,15,13,.98);border:1px solid rgba(255,255,255,.07);box-shadow:0 12px 32px rgba(0,0,0,.5);
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s;z-index:700}
.st-soc.open .soc-panel{opacity:1;visibility:visible;transform:none}
.soc-head{padding:8px 10px 8px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--m)}
.soc-item{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:8px;color:var(--off);font-size:13.5px;font-weight:500;transition:background .15s,color .15s}
.soc-item svg{width:18px;height:18px;fill:currentColor;flex-shrink:0;color:var(--gold)}
.soc-item:hover,.soc-item:focus-visible{background:rgba(255,255,255,.05);color:var(--w);outline:none}
.soc-item:focus-visible{box-shadow:inset 0 0 0 2px rgba(235,203,124,.6)}
/* socials in the mobile menu */
.st-drop-soc{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;padding:10px 8px 6px;border-top:1px solid rgba(255,255,255,.06)}
.st-drop-soc a{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--btn2);color:var(--off);transition:background .15s,color .15s}
.st-drop .st-drop-soc a{padding:0}
.st-drop-soc a svg{width:18px;height:18px;fill:currentColor}
.st-drop-soc a:hover{background:var(--btn2-h);color:var(--w)}
/* Reddit and Twitch icons have less padding — equalize their visual size */
[data-soc=reddit] svg,[data-soc=twitch] svg{transform:scale(.86)}
@media(max-width:560px){.st-soc{display:none}}

/* USER MENU */
.st-um{position:relative;flex-shrink:0}
button.st-user{font:inherit;cursor:pointer;color:inherit}
.st-user .chev{width:11px;height:11px;stroke:var(--m);stroke-width:2.2;fill:none;transition:transform .2s;margin-left:2px}
.st-um.open .st-user{background:var(--btn2-h)}
.st-um.open .chev{transform:rotate(180deg)}
.st-user:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.um-panel{position:absolute;right:0;top:calc(100% + 10px);width:250px;padding:6px;border-radius:12px;
  background:rgba(17,15,13,.98);border:1px solid rgba(255,255,255,.07);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 12px 32px rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s;z-index:700}
.st-um.open .um-panel{opacity:1;visibility:visible;transform:none}
.um-head{display:flex;align-items:center;gap:10px;padding:10px 10px 12px}
.um-head .av{width:36px;height:36px;border-radius:9px;background:rgba(255,255,255,.08);display:grid;place-items:center;font-weight:700;font-size:15px;color:var(--off);flex-shrink:0}
.um-head b{display:block;font-size:14px;font-weight:700;color:var(--w)}
.um-head span{display:block;margin-top:2px;font-size:11.5px;font-weight:500;color:var(--m)}
.um-sep{height:1px;background:rgba(255,255,255,.06);margin:4px 8px}
.um-item{display:flex;align-items:center;gap:11px;width:100%;padding:10px 10px;border-radius:8px;border:1px solid transparent;background:none;
  font:inherit;font-size:13.5px;font-weight:500;color:var(--off);text-align:left;cursor:pointer;transition:background .15s,color .15s}
.um-item svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.um-item:hover,.um-item:focus-visible{background:rgba(255,255,255,.05);color:var(--w);outline:none}
.um-item:focus-visible{box-shadow:inset 0 0 0 2px rgba(235,203,124,.6)}
.um-item.is-active{color:var(--gold2);background:rgba(235,203,124,.12);border-color:transparent}
.um-item.danger{color:var(--red2)}
.um-item.danger svg{stroke:var(--red2)}
.um-item.danger:hover,.um-item.danger:focus-visible{background:rgba(229,72,77,.08);color:#ff6b6f}
@media(max-width:480px){.um-panel{position:fixed;left:12px;right:12px;top:80px;width:auto}}


/* FOOTER */
footer.ft{position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.06);background:#090807;padding:60px 0 0}
.ft-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1fr);gap:48px}
.ft-logo{width:132px;height:auto;display:block;margin-bottom:22px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.6))}
.ft-co b{display:block;font-size:14px;font-weight:700;line-height:1.4;color:var(--w);letter-spacing:.02em}
.ft-co p{margin-top:6px;font-size:12.5px;font-weight:500;line-height:1.5;color:var(--m);font-variant-numeric:tabular-nums}
.ft-co a{display:inline-flex;align-items:center;gap:8px;margin-top:18px;font-size:13.5px;font-weight:600;color:var(--gold)}
.ft-co a svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ft-co a:hover{text-decoration:underline}
.ft-h{font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin-bottom:18px}
.ft-docs{list-style:none;display:flex;flex-direction:column;gap:14px}
.ft-docs a{font-size:13.5px;font-weight:500;line-height:1.55;color:var(--off);transition:color .15s}
.ft-docs a:hover{color:var(--gold)}
.ft-pay{display:flex;flex-wrap:wrap;gap:10px}
.ft-pay span{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border-radius:7px;border:1px solid rgba(255,255,255,.1);font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--off)}
.ft-bot{margin-top:48px;padding:24px 0 30px;border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:flex-start;justify-content:space-between;gap:12px 32px;flex-wrap:wrap}
.ft-bot p{font-size:12px;font-weight:500;color:var(--m2);line-height:1.55}
.ft-disc{max-width:640px}
.ft-disc b{color:var(--m);font-weight:600}
.ft-bot .motto{color:var(--gold);font-weight:600;letter-spacing:.04em;white-space:nowrap}
.ft-upd{width:100%;font-size:12px;color:var(--m)}
@media(max-width:820px){footer.ft{padding-top:48px}.ft-grid{grid-template-columns:1fr 1fr;gap:32px 40px}.ft-grid>div:first-child{grid-column:1/-1}.ft-bot{margin-top:40px}}
@media(max-width:520px){.ft-grid{grid-template-columns:1fr;gap:30px}}

/* language in the footer: a globe that reveals the name on hover/focus */
.ft-right{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.ft-lang{display:inline-flex;align-items:center;height:36px;padding:0 9px;border-radius:18px;border:1px solid rgba(255,255,255,.1);background:transparent;color:var(--off);cursor:pointer;font:600 12.5px 'Montserrat',sans-serif;transition:border-color .2s,background .2s}
.ft-lang svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--gold);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ft-lang span{max-width:0;opacity:0;overflow:hidden;white-space:nowrap;transition:max-width .25s ease,opacity .2s ease,margin .25s ease}
.ft-lang:hover,.ft-lang:focus-visible{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.04)}
.ft-lang:hover span,.ft-lang:focus-visible span{max-width:120px;opacity:1;margin:0 4px 0 8px}
.ft-lang:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(hover:none){.ft-lang span{max-width:120px;opacity:1;margin:0 4px 0 8px}}
.ft-langdd{position:relative}
.ft-langdd.open .ft-lang{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.04)}
.ft-langdd.open .ft-lang span{max-width:120px;opacity:1;margin:0 4px 0 8px}
.ft-lang .car{width:10px;height:10px;stroke:var(--m);stroke-width:2.2;transition:transform .2s}
.ft-lang .car{max-width:0;opacity:0;overflow:hidden;margin:0}
.ft-lang:hover .car,.ft-lang:focus-visible .car,.ft-langdd.open .car{max-width:10px;opacity:1;margin-right:2px}
.ft-langdd.open .car{transform:rotate(180deg)}
/* the language list opens upward (the button is at the very bottom of the page) */
.lang-menu{position:absolute;right:0;bottom:calc(100% + 10px);min-width:200px;padding:6px;margin:0;list-style:none;border-radius:12px;
  background:rgba(17,15,13,.98);border:1px solid rgba(255,255,255,.07);box-shadow:0 12px 32px rgba(0,0,0,.5);
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility .16s;z-index:50}
.ft-langdd.open .lang-menu{opacity:1;visibility:visible;transform:none}
.lang-opt{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:none;border-radius:8px;background:none;color:var(--off);font:500 13.5px 'Montserrat',sans-serif;text-align:left;cursor:pointer}
.lang-opt .code{width:26px;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--m)}
.lang-opt .ok{margin-left:auto;width:14px;height:14px;fill:none;stroke:var(--gold);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.lang-opt:hover,.lang-opt:focus-visible{background:rgba(255,255,255,.05);color:var(--w);outline:none}
.lang-opt:focus-visible{box-shadow:inset 0 0 0 2px rgba(235,203,124,.6)}
.lang-opt[aria-checked="true"]{color:var(--gold2);background:rgba(235,203,124,.12)}
.lang-opt[aria-checked="true"] .code{color:var(--gold)}
.lang-opt[aria-checked="true"] .ok{opacity:1}



/* COOKIE */
.ck{position:fixed;right:20px;bottom:20px;z-index:1000;width:min(440px,calc(100vw - 40px));padding:18px 18px 16px;border-radius:14px;
  background:rgba(16,13,11,.97);border:1px solid var(--panel-b);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 12px 32px rgba(0,0,0,.5);
  transform:translateY(calc(100% + 30px));opacity:0;transition:transform .45s cubic-bezier(.2,.8,.3,1),opacity .3s}
.ck.on{transform:none;opacity:1}
.ck-top{display:flex;gap:12px;align-items:flex-start}
.ck-ico{width:22px;flex-shrink:0;font-size:18px;line-height:1.3}
.ck p{font-size:13px;font-weight:500;line-height:1.55;color:var(--off)}
.ck p a{color:var(--gold);border-bottom:1px solid rgba(235,203,124,.35)}
.ck p a:hover{border-color:var(--gold)}
.ck-more{background:none;border:none;padding:0;font:inherit;font-weight:600;color:var(--gold);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ck-full{display:none}
.ck.open .ck-short{display:none}
.ck.open .ck-full{display:block;animation:ckIn .25s ease}
@keyframes ckIn{from{opacity:0}to{opacity:1}}
.ck-btn{margin-top:14px;width:100%;height:44px;border:none;border-radius:10px;background:var(--gbtn);color:var(--gtxt);font:700 14.5px 'Montserrat',sans-serif;cursor:pointer;transition:background .15s}
.ck-btn:hover{background:var(--gbtn-h)}
.ck-btn:active{background:var(--gbtn-a)}
.ck-btn:focus-visible,.ck-more:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:520px){.ck{left:10px;right:10px;bottom:10px;width:auto}}


/* “Sign in” button — as on the site */
.st-login{display:flex;align-items:center;height:38px;padding:0 18px;border-radius:10px;background:var(--gbtn);color:var(--gtxt);font-size:13.5px;font-weight:600;flex-shrink:0;transition:background .15s}
.st-login:hover{background:var(--gbtn-h)}
.st-login:active{background:var(--gbtn-a)}
.st-login:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
/* Ghost search — the same square button as the socials */
.st-search{flex-shrink:0}
/* active Ghost nav item (link_class) */
.st-drop a.is-active{color:var(--gold2);background:rgba(235,203,124,.12)}
#sx-main{padding-top:84px}

/* blog: two footer columns (no “Payment” block) */
.ft-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1.3fr)}
@media(max-width:820px){.ft-grid{grid-template-columns:1fr}}
