/* FIP proposal pages — FIP-101-inspired, PrimeTriad-refined */

.fip-page .site-nav .nav-link[aria-current="page"] {
  color: var(--accent);
}

.fip-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(196, 30, 58, 0.14), transparent 60%),
    var(--bg);
}

.fip-hero__inner {
  max-width: 52rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.fip-notice {
  width: 100%;
  max-width: 40rem;
  margin: 0;
  padding: 1rem 1.15rem;
  text-align: left;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}

.fip-notice p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.fip-notice p + p {
  margin-top: 0.55rem;
}

.fip-notice a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.fip-notice a:hover {
  color: var(--accent-hover);
}

.fip-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
  max-width: 20ch;
}

.fip-hero__figure {
  margin: 0.35rem 0 0;
  width: min(100%, 42rem);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fip-hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.fip-hero__resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  width: 100%;
}

.fip-hero__resources .btn {
  min-width: 11rem;
  justify-content: space-between;
}

.fip-doc {
  max-width: 48rem;
}

.fip-doc h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.015em;
}

.fip-doc h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
}

.fip-doc p,
.fip-doc li {
  color: var(--text-muted);
}

.fip-doc strong {
  color: var(--text);
}

.fip-doc a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-border);
}

.fip-doc a:hover {
  color: var(--accent-hover);
}

.fip-doc ul,
.fip-doc ol {
  padding-left: 1.25rem;
  margin: 0.6rem 0 1rem;
}

.fip-doc li + li {
  margin-top: 0.35rem;
}

.fip-pre {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text);
}

.fip-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.fip-table th,
.fip-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.fip-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.fip-table tr:last-child td {
  border-bottom: 0;
}

/* Professional polish ? aligned with landing tokens */
.fip-hero h1 {
  background: linear-gradient(135deg, #fff8f0 18%, #f5a3b0 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fip-hero__figure {
  border-radius: var(--radius, 14px);
  box-shadow: var(--shadow, 0 12px 36px rgba(0, 0, 0, 0.32));
  border-color: rgba(255, 255, 255, 0.12);
}

.fip-pre,
.fip-table-wrap {
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.28));
}

.fip-doc h2 {
  padding-top: 0.35rem;
  border-top: 1px solid var(--border-subtle);
}

.fip-doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}
