/**
 * GoxEDGE design v3 — editorial companion site override layer.
 * Namespace: gx-*
 */

:root {
  --gx-bg: #f7f3ea;
  --gx-paper: #fffdf8;
  --gx-white: #ffffff;
  --gx-ink: #1f2328;
  --gx-muted: #606873;
  --gx-subtle: #8a9099;
  --gx-line: rgba(31, 35, 40, 0.12);

  --gx-navy: #073b63;
  --gx-deep-blue: #075aa8;
  --gx-teal: #0f6674;
  --gx-bronze: #a6783d;
  --gx-red: #f04a23;
  --gx-green: #2f7d32;
  --gx-purple: #4b2ca3;
  --gx-sky: #1288c7;
  --gx-sustain: #1f6b2c;

  --gx-radius-sm: 10px;
  --gx-radius-md: 16px;
  --gx-radius-lg: 24px;

  --gx-shadow-card: 0 18px 48px rgba(31, 35, 40, 0.08);
  --gx-shadow-soft: 0 10px 30px rgba(31, 35, 40, 0.06);

  --gx-container: 1180px;
  --gx-wide: 1320px;

  --gx-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --gx-font-serif: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;

  --gx-section-y: 96px;
  --gx-section-y-md: 64px;
  --gx-section-y-sm: 48px;
}

body.gx-v3 {
  font-family: var(--gx-font-sans);
  color: var(--gx-ink);
  background: var(--gx-bg);
  line-height: 1.85;
}

.gx-v3 main section {
  padding: var(--gx-section-y) 0;
}

/* Containers */
.gx-container {
  max-width: var(--gx-container);
  margin: 0 auto;
  padding: 0 24px;
}

.gx-container-wide {
  max-width: var(--gx-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.gx-prose {
  max-width: 760px;
}

/* Backgrounds */
.gx-bg-hero-book {
  position: relative;
  background: linear-gradient(180deg, var(--gx-paper) 0%, var(--gx-bg) 100%);
}

.gx-bg-hero-book::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/backgrounds/bg-hero-book.svg") center top / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

.gx-bg-model-grid {
  position: relative;
}

.gx-bg-model-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/backgrounds/bg-model-grid.svg") center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.gx-bg-resource-index {
  position: relative;
}

.gx-bg-resource-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/backgrounds/bg-resource-index.svg") right top / 55% auto no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.gx-bg-hero-book > .gx-container,
.gx-bg-hero-book > .gx-container-wide,
.gx-bg-model-grid > .gx-container,
.gx-bg-model-grid > .gx-container-wide,
.gx-bg-resource-index > .gx-container,
.gx-bg-resource-index > .gx-container-wide {
  position: relative;
  z-index: 1;
}

/* Header */
.gx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--gx-line);
  backdrop-filter: blur(8px);
}

.gx-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.gx-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--gx-ink);
}

.gx-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gx-brand-sub {
  font-size: 0.65rem;
  color: var(--gx-subtle);
  letter-spacing: 0.08em;
}

.gx-nav.nav-menu {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.gx-nav .nav-link {
  font-size: 0.875rem;
  color: var(--gx-muted);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.gx-nav .nav-link:hover,
.gx-nav .nav-link.active {
  color: var(--gx-ink);
  background: rgba(31, 35, 40, 0.04);
}

.gx-nav .nav-link.active {
  font-weight: 600;
}

.gx-header-cta.nav-actions {
  flex-shrink: 0;
}

.gx-menu-toggle.mobile-menu-toggle {
  display: none;
  border: 1px solid var(--gx-line);
  background: var(--gx-paper);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.gx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.gx-btn-primary,
.btn-primary.gx-btn {
  background: var(--gx-navy);
  color: #fff;
  border-color: var(--gx-navy);
}

.gx-btn-primary:hover {
  background: #052d4d;
}

.gx-btn-secondary,
.btn-secondary.gx-btn {
  background: transparent;
  color: var(--gx-ink);
  border-color: rgba(31, 35, 40, 0.2);
}

.gx-btn-secondary:hover {
  background: rgba(31, 35, 40, 0.04);
}

.gx-text-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gx-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gx-text-link:hover {
  color: #052d4d;
}

.gx-section-cta {
  margin-top: 40px;
}

/* Hero */
.gx-hero {
  padding: 92px 0 96px;
}

.gx-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 64px;
  align-items: center;
}

.gx-hero-copy {
  grid-column: span 7;
}

.gx-hero-visual {
  grid-column: span 5;
  display: flex;
  justify-content: center;
}

.gx-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gx-subtle);
  margin: 0 0 20px;
}

.gx-hero h1,
.gx-hero-title {
  font-family: var(--gx-font-serif);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

.gx-hero-subtitle {
  font-family: var(--gx-font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--gx-muted);
  margin: 16px 0 20px;
}

.gx-hero-model {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gx-navy);
  margin: 0 0 8px;
}

.gx-hero-support {
  font-size: 0.875rem;
  color: var(--gx-subtle);
  margin: 0 0 28px;
}

.gx-hero-thesis {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--gx-bronze);
  font-family: var(--gx-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

.gx-hero-body {
  font-size: 1.0625rem;
  color: var(--gx-muted);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.85;
}

.gx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.gx-hero-purchase-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gx-subtle);
}

/* Book mockup */
.gx-book-mockup {
  width: min(100%, 360px);
  aspect-ratio: 2 / 3;
  position: relative;
  background: linear-gradient(168deg, #fffdf8 0%, #f3ede4 100%);
  border: 1px solid var(--gx-line);
  border-radius: 4px 12px 12px 4px;
  box-shadow: var(--gx-shadow-soft);
  color: var(--gx-ink);
}

.gx-book-mockup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, #d8d0c4 0%, #ebe5db 60%, transparent 100%);
  border-radius: 4px 0 0 4px;
}

.gx-book-mockup-face {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 32px 40px 40px;
  z-index: 1;
}

.gx-book-mockup-publisher {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--gx-subtle);
}

.gx-book-mockup-title {
  font-family: var(--gx-font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 48px 0 12px;
  line-height: 1.1;
}

.gx-book-mockup-subtitle {
  font-family: var(--gx-font-serif);
  font-size: 1rem;
  color: var(--gx-muted);
  margin: 0;
}

.gx-book-mockup-model {
  font-size: 0.75rem;
  color: var(--gx-navy);
  font-weight: 600;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gx-line);
}

.gx-book-mockup-author {
  font-size: 0.875rem;
  color: var(--gx-muted);
  margin: 0;
}

/* Thesis band */
.gx-thesis-band {
  padding: 72px 0;
  background: var(--gx-navy);
  color: #f5f3ef;
}

.gx-thesis-band-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(166, 120, 61, 0.45);
  border-bottom: 1px solid rgba(166, 120, 61, 0.45);
  padding: 40px 24px;
}

.gx-thesis-band h2 {
  font-family: var(--gx-font-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 20px;
  font-weight: 600;
}

.gx-thesis-band p {
  margin: 0;
  color: rgba(245, 243, 239, 0.85);
  line-height: 1.85;
}

/* Section heads */
.gx-section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.gx-section-head--wide {
  max-width: 820px;
}

.gx-section-head h2 {
  font-family: var(--gx-font-serif);
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 600;
}

.gx-section-intro {
  margin: 0;
  font-size: 1rem;
  color: var(--gx-muted);
  line-height: 1.85;
}

/* Problem */
.gx-problem-section {
  background: var(--gx-paper);
}

.gx-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gx-problem-card {
  padding: 36px 28px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  min-height: 200px;
}

.gx-problem-card h3 {
  font-family: var(--gx-font-serif);
  font-size: 1.125rem;
  margin: 0 0 16px;
}

.gx-problem-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gx-muted);
  line-height: 1.85;
}

/* Home model */
.gx-home-model-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.gx-home-model-layers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gx-home-model-layer {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 20px;
  padding: 20px 24px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-home-model-layer span {
  font-size: 0.75rem;
  font-weight: 700;
}

.gx-home-model-layer em {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--gx-muted);
}

.gx-home-model-layer--mech { border-left: 3px solid var(--gx-red); }
.gx-home-model-layer--path { border-left: 3px solid var(--gx-navy); }
.gx-home-model-layer--edge { border-left: 3px solid var(--gx-teal); }
.gx-home-model-layer--judge { border-left: 3px solid var(--gx-green); }

.gx-home-model-aside {
  padding: 36px 32px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-home-model-aside p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gx-muted);
  line-height: 1.85;
}

/* Resources preview */
.gx-resource-preview {
  background: var(--gx-paper);
}

.gx-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gx-resource-card {
  padding: 24px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-resource-card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gx-subtle);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.gx-resource-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.gx-resource-card p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(31, 35, 40, 0.06);
  color: var(--gx-muted);
}

.gx-status-badge--soon { background: rgba(7, 59, 99, 0.08); color: var(--gx-navy); }
.gx-status-badge--book { background: rgba(166, 120, 61, 0.12); color: #7a5a28; }

/* Reading matrix */
.gx-reading-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  overflow: hidden;
  font-size: 0.9375rem;
}

.gx-reading-table th,
.gx-reading-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--gx-line);
  vertical-align: top;
  line-height: 1.75;
}

.gx-reading-table th {
  background: var(--gx-bg);
  font-size: 0.75rem;
  font-weight: 600;
}

.gx-reading-table tbody tr:last-child td {
  border-bottom: 0;
}

.gx-reading-table td:nth-child(2) {
  color: var(--gx-navy);
  font-weight: 600;
  white-space: nowrap;
}

/* Minvista */
.gx-minvista {
  background: var(--gx-paper);
}

.gx-minvista-panel {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: start;
  padding: 48px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-md);
}

.gx-minvista-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gx-subtle);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.gx-minvista-panel h2 {
  font-family: var(--gx-font-serif);
  font-size: 1.75rem;
  margin: 0 0 20px;
}

.gx-minvista-body {
  margin: 0 0 16px;
  color: var(--gx-muted);
  max-width: 640px;
  line-height: 1.85;
}

.gx-minvista-tagline {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.gx-minvista-keyword {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-muted);
}

.gx-minvista-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gx-minvista-qr {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  background: var(--gx-bg);
  font-size: 0.875rem;
  color: var(--gx-subtle);
  text-align: center;
  padding: 16px;
}

/* Final contact */
.gx-final-contact {
  background: var(--gx-bg);
  border-top: 1px solid var(--gx-line);
}

.gx-final-contact-inner {
  max-width: 760px;
}

.gx-final-contact h2 {
  font-family: var(--gx-font-serif);
  font-size: 2rem;
  margin: 0 0 16px;
}

.gx-final-contact p {
  margin: 0 0 32px;
  color: var(--gx-muted);
  line-height: 1.85;
}

/* Page hero (interior) */
.gx-page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--gx-paper) 0%, var(--gx-bg) 100%);
}

.gx-page-hero h1 {
  font-family: var(--gx-font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 12px 0 16px;
}

.gx-page-lead {
  font-size: 1.125rem;
  color: var(--gx-muted);
  margin: 0 0 12px;
  max-width: 760px;
}

.gx-page-note {
  font-size: 0.9375rem;
  color: var(--gx-muted);
  margin: 0;
  max-width: 760px;
  line-height: 1.85;
}

.gx-breadcrumb {
  font-size: 0.8125rem;
  color: var(--gx-subtle);
  margin-bottom: 8px;
}

.gx-breadcrumb a {
  color: var(--gx-muted);
}

/* Footer */
.gx-footer {
  background: var(--gx-ink);
  color: rgba(245, 243, 239, 0.78);
  padding: 64px 0 32px;
}

.gx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.gx-footer-brand p {
  margin: 16px 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 320px;
}

.gx-footer-note {
  margin-top: 12px !important;
  font-size: 0.8125rem !important;
  color: rgba(245, 243, 239, 0.6) !important;
}

.gx-footer-col h4 {
  font-size: 0.8125rem;
  color: #f5f3ef;
  margin: 0 0 16px;
}

.gx-footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(245, 243, 239, 0.72);
  text-decoration: none;
  margin-bottom: 10px;
}

.gx-footer-col a:hover {
  color: #fff;
}

.gx-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: rgba(245, 243, 239, 0.55);
}

/* Interior blocks */
.gx-panel {
  padding: 32px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gx-list {
  margin: 0;
  padding-left: 1.25em;
  color: var(--gx-muted);
  line-height: 1.85;
}

.gx-layers-summary {
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  background: var(--gx-white);
  overflow: hidden;
}

.gx-layers-summary-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gx-line);
}

.gx-layers-summary-row:last-child {
  border-bottom: 0;
}

.gx-layers-summary-row dt {
  font-weight: 600;
  font-size: 0.875rem;
  margin: 0;
}

.gx-layers-summary-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-detail-panel {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  min-height: 80px;
}

.gx-detail-panel h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.gx-detail-panel p,
.gx-detail-placeholder {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gx-muted);
  line-height: 1.85;
}

.gx-page-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gx-bronze);
  margin: 0 0 8px;
}

.gx-prose {
  max-width: 760px;
  color: var(--gx-muted);
  line-height: 1.85;
}

.gx-prose h2,
.gx-prose h3 {
  font-family: var(--gx-font-serif);
  color: var(--gx-ink);
}

.gx-prose h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.gx-prose h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.gx-prose p {
  margin: 0 0 20px;
}

.gx-prose .gx-gate-actions {
  margin-top: 24px;
}

.gx-book-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.gx-book-meta {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.gx-book-meta li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gx-line);
  font-size: 0.875rem;
}

.gx-book-meta li:last-child {
  border-bottom: 0;
}

.gx-book-meta dt {
  margin: 0;
  color: var(--gx-subtle);
  font-weight: 500;
}

.gx-book-meta dd {
  margin: 0;
  color: var(--gx-ink);
}

.gx-audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gx-audience-item {
  padding: 24px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-audience-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.gx-audience-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-purchase-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--gx-bg);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  font-size: 0.875rem;
  color: var(--gx-muted);
}

.gx-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--gx-bg);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  font-size: 0.8125rem;
  color: var(--gx-muted);
}

.gx-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gx-toc-part {
  padding: 24px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-toc-part h3 {
  font-size: 0.9375rem;
  margin: 0 0 12px;
  color: var(--gx-ink);
}

.gx-toc-list {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-role-list {
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  background: var(--gx-white);
  overflow: hidden;
}

.gx-role-item {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gx-line);
}

.gx-role-item:last-child {
  border-bottom: 0;
}

.gx-role-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.gx-role-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-role-item .gx-role-chapters {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gx-deep-blue);
}

.gx-notice {
  padding: 20px 24px;
  background: var(--gx-bg);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-contact-section {
  max-width: 760px;
}

.gx-contact-section + .gx-contact-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--gx-line);
}

.gx-contact-section h2 {
  font-family: var(--gx-font-serif);
  font-size: 1.375rem;
  margin: 0 0 12px;
}

.gx-contact-section p {
  margin: 0;
  color: var(--gx-muted);
  line-height: 1.85;
}

.gx-form-panel {
  padding: 32px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-form-panel h2 {
  font-size: 1.125rem;
  margin: 0 0 24px;
}

.gx-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gx-field.full {
  grid-column: 1 / -1;
}

.gx-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gx-muted);
}

.gx-field input,
.gx-field select,
.gx-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
  font: inherit;
  background: var(--gx-paper);
}

.gx-field textarea {
  min-height: 120px;
  resize: vertical;
}

.gx-update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gx-update-item {
  padding: 24px;
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: var(--gx-radius-sm);
}

.gx-update-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.gx-update-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-muted);
  line-height: 1.75;
}

.gx-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.gx-category-tag {
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--gx-muted);
  background: var(--gx-white);
  border: 1px solid var(--gx-line);
  border-radius: 999px;
}

.gx-minvista-compact {
  grid-template-columns: 180px 1fr !important;
  max-width: 560px;
}

.gx-minvista-compact .gx-minvista-side {
  align-items: flex-start;
}

.site-phase-notice {
  padding: var(--gx-section-y) 0;
}

.site-phase-notice .gx-gate-title {
  margin: 0 0 12px;
  font-family: var(--gx-font-serif);
  font-size: 1.5rem;
  color: var(--gx-ink);
}

.site-phase-notice .gx-gate-body {
  margin: 0 0 20px;
}

.site-phase-notice .gx-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .gx-v3 main section {
    padding: var(--gx-section-y-md) 0;
  }

  .gx-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gx-hero-copy,
  .gx-hero-visual {
    grid-column: span 1;
  }

  .gx-hero-visual {
    order: -1;
  }

  .gx-home-model-layout,
  .gx-minvista-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gx-problem-grid,
  .gx-resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gx-menu-toggle.mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .gx-nav.nav-menu {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--gx-paper);
    border-bottom: 1px solid var(--gx-line);
    padding: 16px 24px;
  }

  .gx-nav.nav-menu.is-open {
    display: flex;
  }

  .gx-header-cta.nav-actions .gx-btn-primary {
    display: none;
  }

  .gx-problem-grid,
  .gx-resource-grid,
  .gx-grid-2,
  .gx-book-intro,
  .gx-audience-list,
  .gx-toc-grid,
  .gx-update-list,
  .gx-form-row {
    grid-template-columns: 1fr;
  }

  .gx-home-model-layer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gx-minvista-panel {
    padding: 28px;
  }

  .gx-footer-grid {
    grid-template-columns: 1fr;
  }
}
