/* On-screen styles for the rendered Brand Style Guide document.
   Shared by index.html and share/index.html. */

.guide-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.guide-doc-header__brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}
.guide-doc-header__name {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 0.25rem;
}
.guide-doc-header__date {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.guide-doc-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.guide-doc-header__actions .button { padding: 6px 16px; font-size: 12.5px; }

.guide-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}
.guide-hero__style {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  margin: 0 0 0.25rem;
}
.guide-hero__tagline { color: var(--text-muted); font-size: 14px; margin: 0; }

.guide-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
.guide-section > h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.guide-section h4 { font-size: 14px; }

/* 1. Brand overview */
.guide-essence { font-size: 15px; line-height: 1.65; margin: 0 0 1rem; }
.guide-chip--large { font-size: 14px; padding: 0.4rem 0.95rem; }
.guide-promise {
  font-size: 13.5px;
  border-left: 3px solid #e62777;
  padding: 0.35rem 0 0.35rem 0.85rem;
  margin: 1rem 0 0;
  color: var(--text-muted);
}

/* 2. Color vocabulary */
.guide-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}
.guide-swatch { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.guide-swatch__color { height: 84px; }
.guide-swatch__body { padding: 0.7rem 0.8rem; font-size: 12px; }
.guide-swatch__role {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.15rem;
}
.guide-swatch__name { font-weight: 700; font-size: 15px; margin: 0 0 0.3rem; }
.guide-swatch__phrase { margin: 0 0 0.35rem; line-height: 1.5; }
.guide-swatch__usage { color: var(--text-muted); margin: 0; font-style: italic; }
.guide-avoid-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.guide-avoid-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px dashed #c0392b;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 12.5px;
  color: var(--text-muted);
}
.guide-avoid-swatch__x { color: #c0392b; font-weight: 700; }

/* 3. Lighting */
.guide-quote {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  border-left: 3px solid #e62777;
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 0 0 0.9rem;
}
.guide-why { font-size: 13.5px; line-height: 1.65; margin: 0 0 1rem; }
.guide-variation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.guide-variation-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 0.75rem 0.85rem; }
.guide-variation-card__type {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.guide-variation-card__phrase { font-size: 13px; line-height: 1.5; margin: 0; }
.guide-diagram {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--surface-1);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  margin: 0.5rem 0 0;
}

/* 4. Materials */
.guide-material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; }
.guide-material-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 0.85rem 0.95rem; font-size: 12.5px; }
.guide-material-card__name { font-weight: 700; font-size: 14px; margin: 0 0 0.3rem; }
.guide-material-card__desc { margin: 0 0 0.4rem; line-height: 1.5; }
.guide-material-card__use { color: var(--text-muted); margin: 0 0 0.3rem; }
.guide-material-card__prompt { font-style: italic; color: var(--text-muted); margin: 0; }

/* 5. Composition */
.guide-primary-rule {
  font-size: 15px;
  font-weight: 600;
  border-left: 3px solid #e62777;
  padding: 0.35rem 0 0.35rem 0.85rem;
  margin: 0 0 1rem;
}
.guide-subhead { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin: 1rem 0 0.5rem; }

/* 6. Platforms */
.guide-platform-card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 0.9rem 1rem; margin-bottom: 0.75rem; }
.guide-platform-card__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.guide-platform-card__head h4 { margin: 0; }
.guide-platform-card__icon { font-size: 16px; }
.guide-platform-card__line { font-size: 13px; margin: 0 0 0.3rem; line-height: 1.5; }
.guide-code-inline {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  display: inline-block;
  margin: 0.35rem 0 0;
}

/* 7. Templates */
.guide-template { margin-bottom: 1rem; }
.guide-template__head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.guide-template__head h4 { margin: 0; }
.guide-template__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* 8. Do / don't */
.guide-dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .guide-dodont { grid-template-columns: 1fr; } }
.guide-dodont__col h4 { font-size: 13px; margin: 0 0 0.6rem; }
.guide-dodont__item {
  border-left: 3px solid #1e7e34;
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 12.5px;
  line-height: 1.5;
}
.guide-dodont__col--dont .guide-dodont__item { border-left-color: #c0392b; }
.guide-dodont__item strong { display: block; font-size: 13px; margin-bottom: 0.2rem; }

/* Footer */
.guide-doc-footer {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Gate + form extras (index.html only; harmless on share) */
.guide-gate-features { list-style: none; margin: 1.25rem 0; padding: 0; text-align: left; display: grid; gap: 0.5rem; font-size: 14px; }
.guide-gate-features li::before { content: "✓"; color: #e62777; font-weight: 700; margin-right: 0.6rem; }
.guide-btn-pink { background: #e62777 !important; border-color: #e62777 !important; color: #ffffff !important; }
.guide-loading { text-align: center; padding: 2.5rem 1rem; }
.guide-loading__bar { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; max-width: 360px; margin: 1rem auto 0; }
.guide-loading__fill { height: 100%; width: 0%; background: #e62777; border-radius: 999px; }
