/* ==========================================================================
   Wepsol Weekly Report Canvas - Base Styles
   Tokens, Typography, Reset, and Layout Containers
   ========================================================================== */

:root {
  --bg: #f6f3ed;
  --bg2: #efebe3;
  --surface: #ffffff;
  --surface2: #faf8f4;
  --ink: #14161f;
  --ink2: #3b4150;
  --muted: #6b7280;
  --line: rgba(20, 22, 31, .085);
  --brand: #e4004f;
  --brand-dark: #c40043;
  --brand2: #fc6c00;
  --good: #0f9d6e;
  --bad: #dc3d3d;
  --warn: #d68a00;
  --radius-card: 18px;
  --shadow-soft: 0 1px 2px rgba(16, 18, 27, .04), 0 8px 24px -8px rgba(16, 18, 27, .10);
  --shadow-lift: 0 2px 4px rgba(16, 18, 27, .05), 0 18px 48px -12px rgba(16, 18, 27, .22);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 28px;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 132px;
  height: auto;
  display: block;
}

.heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

h1 {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.range label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.range .field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 40px;
}

.range input[type="date"] {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
  color-scheme: inherit;
}

.range .to {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* Canvas Container */
.canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Section Card */
.report-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Section Header */
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 680px;
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--brand);
}

.section-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px;
  line-height: 1.06;
  font-weight: 400;
  color: var(--ink);
}

.section-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media(max-width: 768px) {
  .report-section { padding: 18px; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
