:root {
  --bg: #0a0d12;
  --panel: #101722;
  --text: #e9edf5;
  --muted: #a8b3c7;
  --line: #28354a;
  --accent: #8fb3ff;
  --max: 1080px;
  --layout-max: 1080px;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #101c32 0%, var(--bg) 55%);
  line-height: 1.6;
  overflow-y: scroll;
  overflow-anchor: none;
}

input,
textarea,
select {
  -webkit-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.page-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.page-header h1 {
  text-align: center;
}

.page-header .kicker {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.page-header__back {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.pub-topbar {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: var(--layout-max);
  margin: 0 auto 12px;
}

.pub-topbar__title {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pub-topnav-wrap {
  position: relative;
}

.pub-topnav-wrap::before,
.pub-topnav-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  transition: opacity 0.12s ease;
  opacity: 0;
}

.pub-topnav-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--panel), rgba(16, 23, 34, 0));
}

.pub-topnav-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--panel), rgba(16, 23, 34, 0));
}

.pub-topnav-wrap[data-left-fade="on"]::before {
  opacity: 1;
}

.pub-topnav-wrap[data-right-fade="on"]::after {
  opacity: 1;
}

.pub-topnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding: 3px 6px;
}

.pub-topnav__link {
  display: inline-block;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
}

.pub-topnav__link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.pub-topnav__link[aria-current="page"] {
  border-color: var(--accent);
  background: rgba(143, 179, 255, 0.1);
  color: #cde5ff;
  font-weight: 600;
}

.pub-topnav__link:focus,
.pub-topnav__link:focus-visible {
  outline: none;
  box-shadow: none;
}


.pub-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.pub-content-window {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f141b;
  overflow: hidden;
}

.pub-content-frame {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  background: #0f141b;
}

.pub-inline-host {
  overflow: visible;
}

.pub-embedded-frame .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 26px;
}

main {
  padding: 3rem 0 2rem;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}

.lead {
  color: #d3dbee;
  font-size: 1.1rem;
  max-width: 128ch;
}

.grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #101722, #0f1520);
  padding: 0.8rem;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.chain span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding: 1.3rem 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer p {
  max-width: 58rem;
  margin: 0.35rem auto;
  line-height: 1.45;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1520;
  color: var(--text);
  font: inherit;
}

.inquiry-form {
  display: grid;
  gap: 0.9rem;
}

.inquiry-form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inquiry-form__field {
  margin: 0;
}

.inquiry-form__field--full {
  width: 100%;
}

.inquiry-form__error {
  display: block;
  min-height: 1.2rem;
  margin-top: 0.35rem;
  color: #ffb4b4;
  font-size: 0.86rem;
  line-height: 1.35;
}

.inquiry-form input[aria-invalid="true"],
.inquiry-form textarea[aria-invalid="true"],
.inquiry-form select[aria-invalid="true"] {
  border-color: #ff8f8f;
}

/* CSS-only fallback: highlight required empty/invalid fields without JS.
   Covers browsers where JS aria-invalid wiring hasn't run yet.               */
.inquiry-form input:required:invalid,
.inquiry-form textarea:required:invalid,
.inquiry-form select:required:invalid {
  border-color: #ff8f8f;
}

.inquiry-form__status[data-tone="success"] {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(143, 179, 255, 0.35);
  background: rgba(143, 179, 255, 0.1);
  color: #cde5ff;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.inquiry-form__status[data-tone="warning"] {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 120, 0.45);
  background: rgba(255, 200, 120, 0.12);
  color: #ffe2b8;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.inquiry-form__status[data-tone="error"] {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 143, 0.45);
  background: rgba(255, 143, 143, 0.1);
  color: #ffd0d0;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}

.inquiry-form__status-message {
  margin: 0;
}

.inquiry-form__status-actions {
  margin-top: 0.75rem;
}

.inquiry-form__try-again {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 143, 143, 0.55);
  border-radius: 8px;
  background: rgba(255, 143, 143, 0.14);
  color: #ffe8e8;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.inquiry-form__try-again:hover {
  border-color: #ff8f8f;
  background: rgba(255, 143, 143, 0.22);
}

.inquiry-form__success-next {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 23, 34, 0.65);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.inquiry-form__success-next-title {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

.inquiry-form__success-next-list {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}

.inquiry-form__success-next-list li {
  margin-bottom: 0.4rem;
}

.inquiry-form__success-next-note {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.9;
}

.inquiry-form--submitted .inquiry-form__turnstile {
  display: none;
}

button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(143, 179, 255, 0.12);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

button[type="submit"]:hover {
  border-color: var(--accent);
}

button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: var(--line);
}

@media (max-width: 720px) {
  .inquiry-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admission conditions tables (synas-com templates) */
.pub-prose-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  -webkit-overflow-scrolling: touch;
}

table.pub-prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pub-prose-table th,
.pub-prose-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.pub-prose-table thead th {
  color: var(--muted);
  font-weight: 600;
}

.pub-prose-table tbody tr:nth-child(even) td {
  background: rgba(16, 23, 34, 0.55);
}

/* DR home opening mirror — synas-com Home (blocks before 90% / Formation in DR template) */
.pub-dr-home-open .page-header .kicker {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: left;
}

.pub-dr-home-open .page-hero-lead {
  margin: 0.75rem 0 0;
}

.pub-dr-home-open .meta-line-home {
  color: var(--muted);
  margin-top: 0.72rem;
  margin-bottom: 0;
  font-size: 0.89rem;
  line-height: 1.48;
  opacity: 0.72;
}

.pub-dr-home-open .module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.pub-dr-home-open .home-section--break .module-list {
  columns: 2;
  column-gap: 1.5rem;
}

.pub-dr-home-open .home-section--break .module-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.pub-dr-home-open .lock-box {
  margin-top: 0.95rem;
  padding: 0.98rem 1.04rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 179, 255, 0.28);
  background: rgba(143, 179, 255, 0.09);
}

.pub-dr-home-open .home-section {
  margin-top: 14px;
}

.pub-dr-home-open .home-section--break {
  padding: 16px 18px;
}

.pub-dr-home-open .home-section--path,
.pub-dr-home-open .home-section--inevitability {
  background: rgba(16, 22, 30, 0.92);
}

.pub-dr-home-open .home-section--formation {
  border-color: rgba(143, 179, 255, 0.32);
  background: rgba(143, 179, 255, 0.05);
}

.pub-dr-home-open .home-section--definition {
  border-color: rgba(143, 179, 255, 0.22);
}

@media (max-width: 720px) {
  .pub-dr-home-open .home-section--break .module-list {
    columns: 1;
  }
}

/* DR Category (01-category) — synas-com mirror: lock boxes + lists */
.pub-dr-category .module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.48;
}

.pub-dr-category .lock-box {
  margin-top: 0.95rem;
  padding: 0.98rem 1.04rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 179, 255, 0.28);
  background: rgba(143, 179, 255, 0.09);
}

.pub-dr-category .card--scope h2 {
  text-align: center;
}

/* DR Architecture (02-architecture) — synas-com mirror: lock boxes + lists */
.pub-dr-architecture .module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.48;
}

.pub-dr-architecture .lock-box {
  margin-top: 0.95rem;
  padding: 0.98rem 1.04rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 179, 255, 0.28);
  background: rgba(143, 179, 255, 0.09);
}

.pub-dr-architecture .card--scope h2 {
  text-align: center;
}

/* Research — lock boxes + lists (cross-cutting thesis surface) */
.pub-dr-research .module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.48;
}

.pub-dr-research .lock-box {
  margin-top: 0.95rem;
  padding: 0.98rem 1.04rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 179, 255, 0.28);
  background: rgba(143, 179, 255, 0.09);
}

.pub-dr-research .card--scope h2 {
  text-align: center;
}

/* Company — synas-com aggregate (08 Team / 06 Governance lineage); lock boxes + lists */
.pub-dr-company .module-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.48;
}

.pub-dr-company .lock-box {
  margin-top: 0.95rem;
  padding: 0.98rem 1.04rem;
  border-radius: 14px;
  border: 1px solid rgba(143, 179, 255, 0.28);
  background: rgba(143, 179, 255, 0.09);
}

.pub-dr-company .card--scope h2 {
  text-align: center;
}

/* ── Shell init placeholder hiding ──────────────────────────────────────────
   Duplicate of the inline <style> in index.html <head> (belt-and-suspenders).
   The inline version is the primary guard; this is the fallback.             */
.pub-js-on #pub-shell-mount > .page-header,
.pub-js-on #pub-shell-mount > .lead,
.pub-js-on #pub-shell-mount > .card,
.pub-js-on #pub-shell-mount > .site-footer {
  display: none;
}

/* ── Compat notice (for IE / QQ 兼容 mode) ─────────────────────────────────── */
/* Shown by default; hidden in any browser that supports CSS custom properties */
.pub-compat-notice {
  padding: 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  background: #f5f5f5;
  border-left: 4px solid #c00;
  margin: 20px 0;
}

/* Any browser with CSS custom property support hides the notice               */
@supports (--x: 0) {
  .pub-compat-notice {
    display: none;
  }
}
