/* ===== PAC.CO Design Tokens ===== */
:root {
  --ink: #050505;
  --muted: #6f6f76;
  --line: #d9d9df;
  --soft: #f6f6f7;
  --paper: #ffffff;
  --yellow: #ffc700;
  --blue: #15aee5;
  --pink: #f5b7c8;
  --green: #dcefd8;
  --danger: #d93434;
  --radius: 18px;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Hide scrollbars globally — !important removed so page-level overrides can show scrollbars */
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Show + style scrollbars inside specific pages — see homepage-builder.css, dashboard.css */
#page-homepage-builder *::-webkit-scrollbar,
.ds-studio-page *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
}

.site-main {
  container-type: inline-size;
}

body.locked {
  overflow: hidden;
  overscroll-behavior: none;
  /* Prevent rubber-band / pull-to-refresh on mobile */
  -webkit-overflow-scrolling: auto;
}

button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Layout ===== */
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.line-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ===== Typography helpers ===== */
.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.section-subtitle {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
}

/* Prevent flickering of admin elements */
[data-admin-only] {
  display: none;
}

/* Reliable Admin Visibility */
.pacco-is-admin [data-admin-only],
[data-admin-only].admin-visible {
  display: inline-flex !important;
}

.text-link {
  color: #0066ff;
  font-weight: 800;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
