/* 2026 WYSS detail pages: quiet faceted surfaces derived from the summit palette. */
@font-face {
  font-family: "WYSS Unified";
  src: url("field-font.woff?v=20261014-brand1") format("woff");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.real-template {
  font-family: "WYSS Unified", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  --paper: #060d20;
  --ink: #ecf4ff;
  --muted: #a7b9d5;
  --surface: #0d1b34;
  --line: #29435f;
  --accent: #69e3ff;
  --panel-bg: linear-gradient(135deg, rgba(16, 35, 64, .96), rgba(10, 25, 48, .97));
  --hero-ink: #f5faff;
  --hero-muted: #b7cbe5;
  --hero-line: #547da147;
  --hero-field: rgba(76, 157, 216, .10);
  --hero-field-border: #69e3ff45;
  background: radial-gradient(ellipse 62% 440px at 100% 58%, #11335f47, transparent 80%),
              radial-gradient(ellipse 55% 300px at 0 83%, #06377730, transparent 80%),
              linear-gradient(180deg, #08142b 0, #060d20 55%, #08152a 100%);
  color: var(--ink);
}

.real-template .brand-stage {
  position: relative;
  overflow: hidden;
  color: var(--hero-ink);
  background: url("assets/wyss-detail-facets.svg") no-repeat right -100px top -118px / 670px auto,
              radial-gradient(ellipse 46% 67% at 98% 33%, #07559356, transparent 82%),
              radial-gradient(ellipse 65% 75% at 20% 0, #122f5c67, transparent 79%),
              linear-gradient(150deg, #07152b, #08152b 62%, #061021);
  border-bottom: 1px solid #4a789247;
}

.real-template .brand-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 105px;
  background: linear-gradient(transparent, #060d20a8);
  pointer-events: none;
}

.real-template .brand-stage > * { position: relative; z-index: 1; }
.real-template .topbar { border-bottom: 1px solid #ffffff0d; }
.real-template .brand-wordmark,
.real-template.theme-prism .brand-wordmark { color: var(--hero-ink); }
.real-template .brand-wordmark small { color: var(--hero-muted); }
.real-template.theme-prism .brand-symbol,
.real-template.theme-prism .hero-symbol {
  filter: brightness(0) saturate(100%) invert(89%) sepia(38%) saturate(957%) hue-rotate(160deg);
}
.real-template .header-actions a,
.real-template .header-actions button { color: var(--hero-ink); }
.real-template .header-actions .copy-button { background: #091e39b8; border-color: #69e3ff58; }
.real-template .preview-toolbar,
.real-template .record-browser { border-color: #7bb9d52e; }
.real-template .template-id i { background: var(--cyan); box-shadow: 0 0 11px #69e3ff73; }
.real-template .record-picker select,
.real-template .category-filter select { color: var(--hero-ink); }
.real-template .category-filter select { background: #112945d9; border-color: #69e3ff40; }
.real-template .record-navigation button { background: #102943a3; border-color: #69e3ff40; }

.real-template .achievement-hero,
.real-template.theme-prism .achievement-hero {
  position: relative;
  padding: 38px 34px 42px;
  margin-top: 24px;
  margin-bottom: 32px;
  border: 1px solid #69e3ff2e;
  border-left: 2px solid #69e3ff77;
  border-radius: 12px;
  background: linear-gradient(108deg, #09203ae0 0, #0a1e38bb 58%, #0a214364 100%);
  box-shadow: 0 18px 58px #01081547, inset 0 1px #f4fbff0a;
}
.real-template.theme-field .achievement-hero::before { display: none; }
.real-template .achievement-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(43%, 450px);
  pointer-events: none;
  opacity: .44;
  background: url("assets/wyss-detail-facets.svg") right -75px center / auto 480px no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48%);
  mask-image: linear-gradient(to right, transparent, #000 48%);
}
.real-template .hero-copy,
.real-template .hero-art { position: relative; z-index: 1; }
.real-template .record-number,
.real-template.theme-prism .record-number { color: #8eeaff; text-shadow: 0 0 26px #69e3ff22; }
.real-template .id-caption { border-color: #69e3ff; }
.real-template .title-block h1 { font-weight: 550; letter-spacing: -.025em; }
.real-template .english { color: #b9d1e8; }
.real-template .hero-copy .field-heading,
.real-template .field-heading,
.real-template.theme-prism .field-heading {
  color: #b6ecf7;
  border: 1px solid #69e3ff37;
  border-radius: 5px;
  background: #69e3ff0c;
}
.real-template .hero-copy .field-heading::before,
.real-template .field-heading::before { background: #69e3ff; }
.real-template.theme-field .hero-organization { border-top-color: #69e3ff3b; }
.real-template.theme-field .hero-organization .organization { color: var(--hero-ink); }
.real-template .hero-art,
.real-template.theme-prism .hero-art { background: linear-gradient(145deg, #0d295482, #0b1c32ad); border: 1px solid #69e3ff24; border-radius: 9px; transform: none; }
.real-template .hero-symbol { opacity: .88; }
.real-template .art-orbit { border-color: #69e3ff32; }
.real-template .art-caption { color: #a8eefa; }

.real-template .template-comparison { color: var(--muted); }
.real-template .template-comparison > div a { color: var(--muted); }
.real-template .template-comparison > div a[aria-current="page"] {
  color: #b9f2fb;
  background: #102d4a;
  border-color: #69e3ff46;
}
.real-template .icon-review-link { color: #91dff2; }

.real-template .main-content {
  position: relative;
  isolation: isolate;
}
.real-template .main-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(480px, 100%);
  height: 450px;
  right: 0;
  top: 235px;
  opacity: .34;
  background: url("assets/wyss-detail-facets.svg") center / contain no-repeat;
}
.real-template .facts,
.real-template.theme-prism .facts,
.real-template.theme-field .facts {
  background: var(--panel-bg);
  border: 1px solid #69e3ff32;
  border-top: 1px solid #69e3ff52;
  border-radius: 11px;
  box-shadow: 0 14px 42px #01081428;
  overflow: hidden;
}
.real-template .fact + .fact { border-color: #69e3ff21; }
.real-template .fact-value { color: #ecf4ff; }
.real-template .organization { color: #f2f8ff; }
.real-template .organization-caption { color: #8daccc; }
.real-template .taxonomy-fact .real-glyph,
.real-template.theme-prism .taxonomy-fact .real-glyph,
.real-template.theme-field .taxonomy-fact .real-glyph {
  --glyph-main: #69e3ff;
  --glyph-secondary: #0063ff;
  --glyph-stroke: #9ceeff;
  background: linear-gradient(145deg, #0e3458, #09213d);
  border: 1px solid #69e3ff52;
  box-shadow: inset 0 1px #ffffff16;
  border-radius: 12px;
  filter: none;
}
.real-template .taxonomy-symbol { filter: brightness(0) saturate(100%) invert(85%) sepia(29%) saturate(621%) hue-rotate(155deg); }

.real-template .reading-rail { color: var(--ink); }
.real-template .section-nav a { border-color: #69e3ff27; }
.real-template .section-nav a span,
.real-template .section-nav i { color: #8de9f9; }
.real-template .rail-brand { color: var(--muted); }
.real-template .rail-brand img { filter: brightness(0) saturate(100%) invert(80%) sepia(41%) saturate(510%) hue-rotate(154deg); }
.real-template .reading-panel,
.real-template.theme-prism .reading-panel,
.real-template.theme-summit .reading-panel {
  background: var(--panel-bg);
  border: 1px solid #69e3ff2e;
  border-radius: 11px;
  box-shadow: 0 14px 42px #01081424;
}
.real-template .reading-panel::before,
.real-template.theme-prism .reading-panel::before {
  background: linear-gradient(90deg, #0063ff, #69e3ff 42%, #69e3ff44 72%, transparent);
  height: 2px;
}
.real-template .description-scroll,
.real-template .applications-copy { color: #e4eefb; }
.real-template .scroll-hint { border-color: #69e3ff20; background: #091c32a6; }
.real-template .application-panel,
.real-template.theme-field .application-panel {
  background: var(--panel-bg);
  border: 1px solid #69e3ff2e;
  border-left: 2px solid #69e3ff94;
  border-radius: 11px;
  box-shadow: 0 14px 42px #01081424;
}

.real-template .connection-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(107deg, #0b2642, #0a1c35 74%, #122e4b);
  border: 1px solid #69e3ff45;
  border-left: 2px solid #69e3ff;
  border-radius: 11px;
  box-shadow: 0 16px 45px #01081436;
}
.real-template .connection-cta::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 170px;
  right: 16%;
  top: -80px;
  pointer-events: none;
  opacity: .2;
  background: url("assets/wyss-detail-facets.svg") center / contain no-repeat;
}
.real-template .connection-cta__copy,
.real-template .connection-open { position: relative; }
.real-template .connection-cta h2 { color: #f3f9ff; }
.real-template .connection-cta p { color: #b9cee4; }
.real-template .connection-open,
.real-template .connection-submit {
  background: #1160ba;
  border-color: #4ac8ea;
  color: #fff;
  box-shadow: 0 9px 26px #0063ff27;
}
.real-template .connection-open:hover,
.real-template .connection-submit:hover { background: #2377c9; border-color: #91ecfb; }
.real-template dialog.connection-modal { background: #0b1c34; border-color: #69e3ff5b; }
.real-template .connection-field input { background: #07152a; }
.real-template .connection-close { background: #112943; }
.real-template .connection-error { background: #e000ab2b; }
.real-template .footer { border-color: #69e3ff2b; }
.real-template .screen-actions { background: #0a1b31; border-color: #69e3ff43; }
.real-template .screen-actions button { background: #1160ba; }
.real-template .notice { background: #163252; color: #fff; }

@media (max-width: 1000px) {
  .real-template .brand-stage { background-size: 570px auto, auto, auto, auto; background-position: right -190px top -85px, center, center, center; }
  .real-template .achievement-hero,
  .real-template.theme-prism .achievement-hero { padding: 30px 26px 34px; }
  .real-template .main-content::before { opacity: .22; }
}

@media (max-width: 700px) {
  .real-template .brand-stage {
    background-size: 470px auto, auto, auto, auto;
    background-position: right -278px top 2px, center, center, center;
  }
  .real-template .achievement-hero,
  .real-template.theme-prism .achievement-hero {
    padding: 24px 19px 28px;
    margin-top: 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: linear-gradient(112deg, #0a213bed, #0b1d37d9);
  }
  .real-template .achievement-hero::after {
    width: 45%;
    opacity: .23;
    background-size: auto 275px;
    background-position: right -110px top 4px;
  }
  .real-template .record-number { font-size: 42px; }
  .real-template .main-content::before { width: 220px; height: 240px; top: 38%; right: 0; opacity: .14; }
  .real-template .facts,
  .real-template .reading-panel,
  .real-template .application-panel,
  .real-template .connection-cta { border-radius: 9px; }
  .real-template .section-nav { border-color: #69e3ff37; }
  .real-template .section-nav a:first-child { border-bottom-color: #69e3ff; }
  .real-template .connection-cta::before { right: -70px; opacity: .11; }
}

@media print {
  .real-template { background: #fff !important; color: #111 !important; }
  .real-template .brand-stage,
  .real-template .achievement-hero,
  .real-template .facts,
  .real-template .reading-panel,
  .real-template .application-panel { background: #fff !important; color: #111 !important; box-shadow: none !important; border-color: #aaa !important; }
  .real-template .brand-stage::after,
  .real-template .achievement-hero::after,
  .real-template .main-content::before { display: none !important; }
  .real-template .fact-value,
  .real-template .organization,
  .real-template .description-scroll,
  .real-template .applications-copy,
  .real-template .record-number { color: #111 !important; }
}
