/* Chrome compartido — index / editor / docs */

:root {
  --v4-bg: #e9ece9;
  --v4-bg-2: #dde2de;
  --v4-ink: #101413;
  --v4-mute: #5a635e;
  --v4-faint: #8a938d;
  --v4-line: rgba(16, 20, 19, 0.12);
  --v4-accent: #0f6e56;
  --v4-accent-soft: rgba(15, 110, 86, 0.12);
  --v4-paper: #f5f7f5;
  --v4-font: "Public Sans", system-ui, sans-serif;
  --v4-display: "Bricolage Grotesque", var(--v4-font);
  --v4-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --v4-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --v4-gutter: clamp(1rem, 3.5vw, 2.25rem);
  --v4-max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.v4 {
  margin: 0;
  min-height: 100vh;
  font-family: var(--v4-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--v4-ink);
  background: var(--v4-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.v4 a {
  color: inherit;
}

.v4-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(15, 110, 86, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(16, 20, 19, 0.06), transparent 45%),
    linear-gradient(165deg, #edf0ed 0%, var(--v4-bg) 45%, #e2e7e3 100%);
}

.v4-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v4-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--v4-gutter);
  border-bottom: 1px solid var(--v4-line);
  background: rgba(233, 236, 233, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.v4-bar__mark {
  font-family: var(--v4-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.v4-bar__mark em {
  font-style: normal;
  color: var(--v4-accent);
}

.v4-bar__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.v4-bar__nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--v4-mute);
  transition: color 0.2s;
}

.v4-bar__nav a:hover,
.v4-bar__nav a.is-active {
  color: var(--v4-ink);
}

.v4-bar__nav .v4-pill {
  display: none;
}

@media (min-width: 640px) {
  .v4-bar__nav .v4-pill {
    display: inline-flex;
  }
}

.v4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.4rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid var(--v4-ink);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--v4-ease), border-color 0.2s;
  background: transparent;
  color: var(--v4-ink);
}

.v4-btn:hover {
  transform: translate(-2px, -2px);
}

.v4-btn--fill {
  background: var(--v4-ink);
  color: var(--v4-paper);
}

.v4-btn--fill:hover {
  background: var(--v4-accent);
  border-color: var(--v4-accent);
  color: #fff;
}

.v4-btn--ghost {
  background: transparent;
}

.v4-btn--ghost:hover {
  background: var(--v4-ink);
  color: var(--v4-paper);
}

.v4-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--v4-accent);
  color: #fff!important;
  border: none;
  border-radius: 0;
  transition: background 0.2s;
}

.v4-pill:hover {
  background: var(--v4-ink);
}

.v4-btn i[class^="ph"],
.v4-pill i[class^="ph"],
.v4-bar__nav a i[class^="ph"] {
  font-size: 1.05em;
  line-height: 1;
}

.v4-shell {
  width: min(100%, var(--v4-max));
  margin: 0 auto;
  padding: 0 var(--v4-gutter) 3rem;
  flex: 1;
}

.v4-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--v4-gutter) 2.5rem;
  max-width: var(--v4-max);
  margin: 0 auto;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--v4-faint);
  border-top: 1px solid var(--v4-line);
}

.v4-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.v4-foot a {
  text-decoration: none;
  color: var(--v4-mute);
  transition: color 0.2s;
}

.v4-foot a:hover {
  color: var(--v4-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
