/* GitLab Pages — light theme only (same tokens as extension :root in light mode).
 * We do not use prefers-color-scheme: dark here: OS dark mode would switch
 * --background to oklch(0.145 0 0) and the site looked “black”; store/help pages
 * stay consistently light. The extension UI still follows the system in the side panel. */
:root {
  --background: oklch(100% 0 0deg);
  --foreground: oklch(14.5% 0 0deg);
  --muted: oklch(97% 0 0deg);
  --muted-foreground: oklch(45% 0 0deg);
  --primary: oklch(20.5% 0 0deg);
  --primary-foreground: oklch(98.5% 0 0deg);
  --border: oklch(92.2% 0 0deg);
  --input: oklch(92.2% 0 0deg);
  --ring: oklch(70.8% 0 0deg);
  --ring-offset-background: oklch(100% 0 0deg);
  --popover: oklch(100% 0 0deg);
  --popover-foreground: oklch(14.5% 0 0deg);
  --accent: oklch(97% 0 0deg);
  --accent-foreground: oklch(20.5% 0 0deg);
  --card: var(--popover);
  --card-foreground: var(--popover-foreground);
  --radius: 0.5rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", roboto, sans-serif;

  /*
   * Buttons & links — Tailwind slate, same as side panel (e.g. SettingsView:
   * bg-slate-800 hover:bg-slate-700; outline: border-slate-300 bg-white hover:bg-slate-50).
   */
  --rcl-slate-btn: #1e293b;
  --rcl-slate-btn-hover: #334155;
  --rcl-slate-outline-border: #cbd5e1;
  --rcl-slate-outline-bg: #fff;
  --rcl-slate-outline-bg-hover: #f8fafc;
  --rcl-slate-outline-fg: #334155;
  --rcl-slate-link: #334155;
  --rcl-slate-link-hover: #1e293b;
  --rcl-slate-ring: #64748b;
}

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

html {
  color-scheme: light;
  font-family: var(--font-sans);
  line-height: 1.5;
  background-color: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: inherit;
}

a {
  color: var(--rcl-slate-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--rcl-slate-link) 40%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--rcl-slate-link-hover);
  text-decoration-color: var(--rcl-slate-link-hover);
}

a:focus-visible,
.version-chip:focus-visible {
  outline: 2px solid var(--rcl-slate-ring);
  outline-offset: 2px;
}

/* Center column: 80% of viewport on all pages using .page-wrap */
.page-wrap {
  max-width: none;
  width: 80%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Feedback / uninstall: cap line length on very wide screens */
.page-wrap-wide {
  width: 80%;
  max-width: 72rem;
}

.hero {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.hero .subtitle {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Header row: title left, primary actions right (e.g. Chrome Web Store) */
.hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.hero-bar-text {
  flex: 1 1 16rem;
  min-width: min(100%, 14rem);
}

.hero-bar-text h1 {
  margin-top: 0;
}

.hero-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

@media (width <= 36rem) {
  .hero-bar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.card p {
  margin: 0 0 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--rcl-slate-btn);
  background: var(--rcl-slate-btn);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  background: var(--rcl-slate-btn-hover);
  border-color: var(--rcl-slate-btn-hover);
}

.btn-secondary {
  background: var(--rcl-slate-outline-bg);
  color: var(--rcl-slate-outline-fg);
  border-color: var(--rcl-slate-outline-border);
}

.btn-secondary:hover {
  background: var(--rcl-slate-outline-bg-hover);
  border-color: var(--rcl-slate-outline-border);
}

.btn:focus-visible {
  outline: 2px solid var(--rcl-slate-ring);
  outline-offset: 2px;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.policy-section {
  margin-bottom: 1.5rem;
}

.policy-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.policy-section h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.policy-section h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.policy-section .text-content {
  margin: 0 0 0.75rem;
  color: var(--card-foreground);
}

.policy-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.policy-section li {
  margin-bottom: 0.35rem;
}

.step-block {
  margin-bottom: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.step-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.step-content {
  margin: 0 0 0.75rem;
  padding-left: 2.25rem;
  color: var(--muted-foreground);
}

.step-image {
  margin: 0.75rem 0 0 2.25rem;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.embed-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--foreground);
}
