/*
 * Styles for the smoke-test/preview page (apps/widget/index.html).
 * Lives in public/ so Vite serves it raw and skips the widget's PostCSS
 * chain — otherwise postcss-selector-namespace would prefix every
 * selector with `#turneo-tailwind`, breaking the page layout in dev.
 */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --border: #e6e2d8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #15476c;
  --accent-soft: #eaf1f7;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas,
    monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  /* Distinctive serif for the host page so the widget's sans-serif
     fonts visually stand out — useful for confirming font loading. */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.origin-badge {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  /* font-style: italic; */
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.section-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}

.section-body {
  padding: 20px;
}

footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  border-top: 1px solid var(--border);
}
