/* Newsatoshi Institutional Design Engineering System (v2 — Anti-Slop, Swiss Vault Standard) */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/newsreader-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/newsreader-latin-400-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/newsreader-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/inter-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/inter-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/inter-latin-600-normal.woff2) format('woff2');
}

/* 1. Typographic Precision & Tabular Numerals */
html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
  overflow-x: clip !important;
}
body {
  overflow-x: clip !important;
}
h1, h2, h3 {
  text-wrap: balance;
}
p, .lead, .hero-lead, .sec-desc {
  text-wrap: pretty;
}
table, th, td, .val, .stat, .lrow strong, .pstat-v, .cell .v {
  font-variant-numeric: tabular-nums;
}

/* 2. Tactile Interaction & Accessibility Craft */
a, button, .btn, .pcard, .slink, .stack-btn, .preset, button.tab, button.go, button.copy {
  touch-action: manipulation;
  transition: border-color 155ms cubic-bezier(.23, 1, .32, 1),
              background-color 155ms cubic-bezier(.23, 1, .32, 1),
              color 155ms cubic-bezier(.23, 1, .32, 1),
              transform 155ms cubic-bezier(.23, 1, .32, 1);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #F5A623;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. Institutional Split-Hero & Architectural Plate Framing */
.inst-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 2rem;
}
@media (max-width: 920px) {
  .inst-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
}
.inst-hero-copy {
  min-width: 0;
}

.art-plate {
  margin: 0;
  position: relative;
  border: 1px solid #2C2639;
  background: #070609;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.art-plate-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070609;
  overflow: hidden;
}
.art-plate.wide .art-plate-media {
  width: 100%;
  aspect-ratio: auto;
  height: clamp(200px, 28vw, 300px);
  max-height: none;
}
@media (max-width: 720px) {
  .art-plate.wide .art-plate-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
.art-plate-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.art-plate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 6, 9, 0.06) 0%, rgba(7, 6, 9, 0) 52%, rgba(7, 6, 9, 0.78) 100%);
}
.art-plate figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0.62rem 0.95rem;
  border-top: 1px solid #221E2C;
  background: #0B0910;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8E889C;
}
.art-plate figcaption b {
  color: #F5A623;
  font-weight: 600;
}

/* Editorial Pillar Visual Strip (3-up symmetrical gallery on homepage & overview pages) */
.pillar-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}
@media (max-width: 860px) {
  .pillar-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #2B2538;
  background: #0E0C13;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.pg-card:hover {
  border-color: #F5A623;
  transform: translateY(-2px);
}
.pg-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070609;
  overflow: hidden;
  border-bottom: 1px solid #221E2C;
}
.pg-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.pg-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F5A623;
}
.pg-body h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.18;
  color: #F6F3EC;
}
.pg-body p {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.58;
  color: #A9A4B8;
}
.pg-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C4B5FD;
}
.pg-card:hover .pg-cta {
  color: #F5A623;
}

/* 4. Institutional Editorial Document & Archive Pages (body.inst-doc) */
body.inst-doc {
  background: #070609;
  color: #EAE6DE;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15.5px;
  line-height: 1.72;
}
body.inst-doc::before,
body.inst-doc::after {
  display: none !important;
}
body.inst-doc .shell {
  max-width: 64rem;
  padding: 0 24px 4.5rem;
}
body.inst-doc .doc {
  max-width: 54rem;
}
body.inst-doc .doc p {
  font-size: 0.98rem;
  line-height: 1.76;
}
body.inst-doc em {
  font-style: italic;
}
body.inst-doc .statusbar {
  background: rgba(7, 6, 9, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #221E2C;
  padding: 0.72rem 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
body.inst-doc .statusbar a {
  border-bottom: 0;
  color: #A9A4B8;
}
body.inst-doc .statusbar a:hover {
  background: transparent;
  color: #F6F3EC;
}
body.inst-doc .back {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  margin: 1.4rem 0 1.4rem;
  background: #0E0C13;
  border: 1px solid #2B2538;
  color: #A9A4B8;
}
body.inst-doc .back:hover {
  background: #140F20;
  border-color: #F5A623;
  color: #F5A623;
}
body.inst-doc h1,
body.inst-doc h1.dt {
  font-family: "Newsreader", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(2rem, 4.3vw, 3.05rem) !important;
  line-height: 1.09 !important;
  letter-spacing: -0.02em !important;
  color: #F6F3EC !important;
  text-shadow: none !important;
  margin: 0 0 0.6rem !important;
}
body.inst-doc .dsub {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #C4B5FD;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
body.inst-doc h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.38rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  color: #F6F3EC;
  border-bottom: 1px solid #221E2C;
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 1rem;
}
body.inst-doc h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.22rem;
  color: #F5A623;
  margin: 1.75rem 0 0.6rem;
}
body.inst-doc h3::before {
  content: none;
}
body.inst-doc p,
body.inst-doc li {
  color: #D2CEC6;
}
body.inst-doc a {
  color: #C4B5FD;
  border-bottom: 1px solid rgba(196, 181, 253, 0.35);
}
body.inst-doc a:hover {
  background: transparent;
  color: #F5A623;
  border-bottom-color: #F5A623;
}
body.inst-doc code,
body.inst-doc pre,
body.inst-doc .tbl,
body.inst-doc table,
body.inst-doc .cell .k,
body.inst-doc .cell .v,
body.inst-doc .cta,
body.inst-doc footer {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
body.inst-doc .box {
  border-radius: 4px;
  background: #0E0C13;
  border-color: #2B2538;
  padding: 1.25rem 1.4rem;
}
body.inst-doc .box.key {
  border-color: #6B4D18;
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.06), #0E0C13);
}
body.inst-doc .armor {
  border: 1px solid #2B2538;
  border-left: 3px solid #F5A623;
  background: #0E0C13;
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}
body.inst-doc .armor .hd,
body.inst-doc .armor .ft {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #8E889C;
}
body.inst-doc .art-plate.wide {
  margin: 1.35rem 0 2rem;
}
body.inst-doc .cta {
  border-radius: 3px;
}
body.inst-doc .cta.amb:hover {
  background: #F7B742;
  color: #160F00;
  border-bottom-color: transparent;
}
body.inst-doc .cta.cy:hover {
  background: #D6CBFE;
  color: #0D0620;
  border-bottom-color: transparent;
}
body.inst-doc .cta.out:hover {
  background: #140F20;
  color: #F6F3EC;
  border-color: #F5A623;
}

/* 5. One-Click Cryptographic Proof & Technical Spec Drawers (.tech-drawer / .proof-ledger) */
.proof-ledger {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.tech-drawer {
  border: 1px solid #2A2437;
  background: #0D0B12;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.15rem 0;
  transition: border-color 155ms cubic-bezier(.23, 1, .32, 1), background-color 155ms cubic-bezier(.23, 1, .32, 1);
}
.proof-ledger .tech-drawer {
  margin: 0;
}
.tech-drawer:hover {
  border-color: #463C5E;
}
.tech-drawer[open] {
  border-color: #7A5A1C;
  background: #0F0D15;
}
.tech-drawer > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  user-select: none;
  touch-action: manipulation;
}
.tech-drawer > summary::-webkit-details-marker {
  display: none;
}
.td-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}
.td-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.24rem 0.52rem;
  border: 1px solid #3A314C;
  background: #141020;
  border-radius: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #F5A623;
  margin-top: 0.1rem;
}
.td-titles {
  min-width: 0;
}
.td-title {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  color: #F6F3EC;
  line-height: 1.35;
}
.td-sub {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.84rem;
  color: #9F99AE;
  line-height: 1.48;
  margin-top: 0.18rem;
}
.td-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.68rem;
  border: 1px solid #352D46;
  border-radius: 3px;
  background: #13101D;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #C4B5FD;
  white-space: nowrap;
}
.tech-drawer:hover .td-toggle {
  border-color: #F5A623;
  color: #F5A623;
}
.tech-drawer[open] .td-toggle {
  border-color: #7A5A1C;
  background: rgba(245, 166, 35, 0.1);
  color: #F5A623;
}
.td-toggle::after {
  content: "+";
  font-size: 0.88rem;
  line-height: 1;
}
.tech-drawer[open] .td-toggle::after {
  content: "−";
}
@media (max-width: 680px) {
  .tech-drawer > summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
.td-body {
  padding: 0 1.2rem 1.25rem;
  border-top: 1px solid #221E2C;
  background: #09080D;
}
.td-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 1.05rem;
}
@media (max-width: 720px) {
  .td-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.td-item {
  border: 1px solid #221E2C;
  background: #0E0C13;
  border-radius: 3px;
  padding: 0.85rem 0.95rem;
  min-width: 0;
}
.td-item b {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #F5A623;
  margin-bottom: 0.35rem;
}
.td-item p,
.td-item div {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.58;
  color: #CFCAC0;
  overflow-wrap: anywhere;
}
.td-item code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82em;
  color: #C4B5FD;
  background: rgba(139, 92, 246, 0.13);
  padding: 0.08rem 0.3rem;
  border-radius: 2px;
}
.td-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid #1E1A28;
}
.td-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid #352D46;
  border-radius: 3px;
  background: #120F1B;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #EAE6DE;
  text-decoration: none;
}
.td-link:hover {
  border-color: #F5A623;
  color: #F5A623;
  background: #171324;
}
.td-link.primary {
  border-color: #8A6118;
  color: #F5A623;
  background: rgba(245, 166, 35, 0.08);
}
.td-link.primary:hover {
  background: #F5A623;
  color: #160F00;
}
.td-code {
  margin: 0.9rem 0 0;
  padding: 0.9rem 1rem;
  background: #050408;
  border: 1px solid #221E2C;
  border-radius: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.65;
  color: #EAE6DE;
  overflow-x: auto;
}

/* 6. Pixel-Locked Unified Global Navigation Bar (.ns-nav — Identical Across All 31 Pages) */
.ns-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(5, 4, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.14);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1;
}
.ns-nav .prog-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.ns-nav *,
.ns-nav *::before,
.ns-nav *::after {
  box-sizing: border-box;
}
.ns-nav-in {
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ns-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F4F1EA !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.ns-brand:hover {
  color: #FFFFFF !important;
  background: transparent !important;
}
.ns-brand img {
  width: 20px;
  height: 20px;
  display: block;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.ns-brand .ns-ticker {
  color: #F5A623;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.ns-links {
  display: flex;
  align-items: center;
  gap: 25px;
  min-width: 0;
}
.ns-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 68px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #A7A2B3 !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
}
.ns-links a:hover {
  color: #F8F5EE !important;
  background: transparent !important;
}
.ns-links a.active {
  color: #F8F5EE !important;
  font-weight: 500;
}
.ns-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #F5A623;
}
.ns-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}
.ns-ghost {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.12px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  color: #A7A2B3 !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  white-space: nowrap;
  padding: 6px 3px;
}
.ns-ghost:hover,
.ns-ghost.active {
  color: #F5A623 !important;
  background: transparent !important;
}
.ns-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 9px 17px;
  border-radius: 3px;
  border: 0 !important;
  background: linear-gradient(180deg, #FFBE4E 0%, #E89916 100%) !important;
  color: #09070B !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 236, 184, 0.35) inset, 0 6px 20px rgba(245, 166, 35, 0.18);
}
.ns-cta:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  color: #09070B !important;
}
.ns-cta.active {
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.45), 0 1px 0 rgba(255, 236, 184, 0.35) inset;
}
@media (max-width: 1020px) {
  .ns-nav-in {
    height: auto;
    min-height: 60px;
    padding: 0.65rem 18px;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .ns-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 1.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .ns-links a {
    height: 34px;
    font-size: 0.8rem;
  }
}
