/* Auto-generated unified base.css
   Source of truth: /css/core/{base,tokens,typography,utilities}.css
   This file is included by pages to avoid duplicate resets across bundles.
*/

/* Base reset + safe defaults (no page layout decisions here) */

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

* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    system-ui,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: 2px;
}


/* Mobile: iOS Safari avoid auto-zoom on focus */
@media (max-width: 980px) {
  input,
  textarea,
  select,
  button {
    font-size: var(--fs-md);
  }
}


/* Shared typography helpers (single source of truth) */

.ppPageTitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: var(--fs-3xl);
  line-height: 1.15;
  font-weight: var(--fw-800);
  letter-spacing: -0.04em;

  color: var(--text-primary);
}

.ppPageTitle__icon {
  font-size: var(--fs-2xl);
  line-height: 1;
}

.ppPageTitle--accent {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Shared page header row (title + actions) */
.ppPageBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 6px 2px;
  min-width: 0;
}

.ppPageBar__left {
  min-width: 0;
  flex: 1 1 auto;
}

.ppPageBar__right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Optional: section titles inside pages */
.ppSectionTitle {
  font-size: var(--fs-xl);
  line-height: 1.2;
  font-weight: var(--fw-700);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Optional: muted/meta */
.ppMetaText {
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--text-secondary);
}


/* Utilities + legacy helpers (kept for backwards compatibility)
   Keep page/component CSS free of ad-hoc values whenever possible.
*/

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-700);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
h2 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; }
h3 { font-size: var(--fs-lg); line-height: 1.25; }

.h1 {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  font-weight: var(--fw-800);
  letter-spacing: -0.015em;
}

.h2 {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
  font-weight: var(--fw-700);
}

.h3 {
  font-size: var(--fs-lg);
  line-height: 1.25;
  font-weight: var(--fw-700);
}

.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-md { font-size: var(--fs-sm); }
.text-lg { font-size: var(--fs-md); }

.text-muted { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.container {
  width: min(var(--page-max), 100%);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.section { padding-block: var(--space-6); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-4); }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

.py-6 { padding-block: var(--space-6); }
.px-6 { padding-inline: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
