@tailwind base; @tailwind components; @tailwind utilities; @layer base { html { -webkit-tap-highlight-color: transparent; } body { min-height: 100vh; background: #ffffff; color: #1b1e2d; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; line-height: 1.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "kern"; margin: 0; } h1, h2, h3 { font-family: '"Source Serif 4"', '"Noto Serif Tamil"', Georgia, serif; font-weight: 400; color: #1b1e2d; letter-spacing: -0.005em; } h4, h5, h6 { font-family: '"Space Grotesk"', system-ui, sans-serif; font-weight: 600; color: #1b1e2d; } h1 { font-size: 44px; line-height: 52px; } h2 { font-size: 32px; line-height: 40px; } h3 { font-size: 22px; line-height: 30px; } p, li, td, span, label { color: #606373; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #e8e5e1; border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: #c4bfb6; } /* Recharts baseline typography */ .recharts-text { font-family: '"Space Grotesk"', system-ui, sans-serif; } } @layer components { /* ── Layout ── */ .column { max-width: 1060px; margin-left: auto; margin-right: auto; padding-left: 48px; padding-right: 48px; } @media (max-width: 768px) { .column { padding-left: 20px; padding-right: 20px; } } /* ── Eyebrow ── */ .eyebrow { font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #606373; } /* ── Metric pattern ── */ .metric-number { font-family: '"Source Serif 4"', Georgia, serif; font-size: 38px; line-height: 44px; font-weight: 400; color: #1b1e2d; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; } .metric-label { font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 12px; font-weight: 400; color: #606373; letter-spacing: 0.01em; border-top: 1px solid #e8e5e1; padding-top: 8px; margin-top: 12px; } .metric-delta { font-size: 12px; font-style: italic; color: #606373; margin-top: 6px; } /* Legacy alias (used by MetricCard component wrapper) */ .metric-card { background: transparent; border: none; padding: 0; } .metric-card .metric-value { font-family: '"Source Serif 4"', Georgia, serif; font-size: 38px; line-height: 44px; font-weight: 400; color: #1b1e2d; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; } /* ── Editorial table ── */ .etable { width: 100%; border-collapse: collapse; border-top: 1px solid #e8e5e1; border-bottom: 1px solid #e8e5e1; font-family: '"Space Grotesk"', system-ui, sans-serif; } .etable thead th { font-size: 11px; font-weight: 500; color: #606373; text-transform: none; letter-spacing: 0.04em; text-align: left; padding: 14px 14px 12px 14px; border-bottom: 1px solid #e8e5e1; background: transparent; } .etable tbody td { font-size: 14px; font-weight: 400; color: #1b1e2d; padding: 12px 14px; border-bottom: 1px solid #f2efeb; vertical-align: top; } .etable tbody tr:last-child td { border-bottom: none; } .etable tbody tr:hover { background: #fcfaf7; } .etable .num, .etable td.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; } /* ── Buttons ── */ .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; font-weight: 600; background: #fcfaf7; color: #1b1e2d; border: 1px solid #e8e5e1; border-radius: 4px; padding: 8px 24px; cursor: pointer; text-decoration: none; transition: background-color 0.15s ease; } .btn-primary:hover { background: #f0ece6; } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; } .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; font-weight: 500; background: #ffffff; color: #606373; border: 1px solid #e8e5e1; border-radius: 4px; padding: 8px 16px; cursor: pointer; transition: background-color 0.15s ease; } .btn-secondary:hover { background: #fcfaf7; color: #1b1e2d; } /* Legacy alias */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; font-weight: 500; border-radius: 4px; padding: 8px 16px; cursor: pointer; transition: background-color 0.15s ease; } /* ── Text link ── */ .text-link { font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; font-weight: 600; color: #446b26; text-decoration: none; text-underline-offset: 4px; cursor: pointer; background: none; border: none; padding: 0; } .text-link:hover { text-decoration: underline; } /* ── Chip ── */ .chip { display: inline-flex; align-items: center; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #606373; background: transparent; border: 1px solid #e8e5e1; border-radius: 4px; padding: 6px 12px; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease; } .chip:hover { color: #1b1e2d; } .chip.active { color: #446b26; border-color: #446b26; } /* ── Input ── */ .input { display: block; width: 100%; background: #ffffff; border: 1px solid #e8e5e1; border-radius: 4px; padding: 8px 12px; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; color: #1b1e2d; outline: none; transition: border-color 0.15s ease; } .input::placeholder { color: #8d909e; } .input:focus { border-color: #446b26; } /* ── Card (stripped of chrome) ── */ .card { background: #ffffff; border: 1px solid #e8e5e1; border-radius: 4px; } .card-body { padding: 20px; } /* ── Page title ── */ .page-title { font-family: '"Source Serif 4"', '"Noto Serif Tamil"', Georgia, serif; font-size: 28px; line-height: 34px; font-weight: 400; color: #1b1e2d; margin: 0; letter-spacing: -0.01em; } .page-caption { font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 14px; line-height: 1.55; color: #606373; margin-top: 10px; } /* ── Tabs (underline style) ── */ .tab-list { display: flex; gap: 0; border-bottom: 1px solid #e8e5e1; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .tab-list::-webkit-scrollbar { display: none; } .tab-item { padding: 10px 18px; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 13px; font-weight: 500; color: #606373; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: color 0.15s ease, border-color 0.15s ease; } .tab-item:hover { color: #1b1e2d; } .tab-item.active { color: #446b26; border-bottom-color: #446b26; } /* ── Section headers ── */ .section-header { font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: #606373; padding-bottom: 8px; margin-bottom: 16px; border-bottom: 1px solid #e8e5e1; display: block; } /* ── Legacy badge aliases, rewritten as plain text w/ color ── */ .badge { display: inline-flex; align-items: center; font-family: '"Space Grotesk"', system-ui, sans-serif; font-size: 12px; font-weight: 500; } .badge-green { color: #4a7c59; background: transparent; border: none; padding: 0; } .badge-amber { color: #446b26; background: transparent; border: none; padding: 0; } .badge-red { color: #c71f48; background: transparent; border: none; padding: 0; } .badge-blue { color: #1b1e2d; background: transparent; border: none; padding: 0; } .badge-slate { color: #606373; background: transparent; border: none; padding: 0; } .badge-orange { color: #446b26; background: transparent; border: none; padding: 0; } .badge-dark-orange { color: #2d4a1a; background: transparent; border: none; padding: 0; } .badge-purple { color: #606373; background: transparent; border: none; padding: 0; } .badge-teal { color: #446b26; background: transparent; border: none; padding: 0; } /* ── Table container alias (for legacy) ── */ .table-container { border-top: 1px solid #e8e5e1; border-bottom: 1px solid #e8e5e1; background: transparent; overflow-x: auto; } .table-container table { width: 100%; border-collapse: collapse; font-family: '"Space Grotesk"', system-ui, sans-serif; } .table-container thead th { font-size: 11px; font-weight: 500; color: #606373; letter-spacing: 0.04em; text-align: left; padding: 14px 14px 12px 14px; background: transparent; border-bottom: 1px solid #e8e5e1; } .table-container tbody td { font-size: 14px; color: #1b1e2d; padding: 12px 14px; border-bottom: 1px solid #f2efeb; vertical-align: top; } .table-container tbody tr:last-child td { border-bottom: none; } .table-container tbody tr:hover { background: #fcfaf7; } /* ── Loading skeletons ── */ .skeleton { border-radius: 4px; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } .skeleton-text { border-radius: 2px; height: 14px; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } .skeleton-title { border-radius: 2px; height: 32px; width: 60%; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } .skeleton-card { border-radius: 4px; height: 100px; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } .skeleton-metric { border-radius: 4px; height: 88px; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } .skeleton-chart { border-radius: 4px; background: linear-gradient(90deg, #f8f6f2 25%, #f2efeb 50%, #f8f6f2 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; } } @layer utilities { .font-serif { font-family: '"Source Serif 4"', '"Noto Serif Tamil"', Georgia, serif; } .font-sans { font-family: '"Space Grotesk"', system-ui, sans-serif; } .animate-fade-in { animation: fadeIn 0.2s ease-out; } .animate-slide-up { animation: slideUp 0.3s ease-out both; } .animate-stagger > * { animation: slideUp 0.3s ease-out both; } .animate-stagger > *:nth-child(1) { animation-delay: 0ms; } .animate-stagger > *:nth-child(2) { animation-delay: 50ms; } .animate-stagger > *:nth-child(3) { animation-delay: 100ms; } .animate-stagger > *:nth-child(4) { animation-delay: 150ms; } .animate-stagger > *:nth-child(5) { animation-delay: 200ms; } .animate-stagger > *:nth-child(6) { animation-delay: 250ms; } .animate-tab-enter { animation: tabEnter 0.18s ease-out both; } @keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } @keyframes slideUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } @keyframes tabEnter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } } /* Joyride tooltip overrides */ .__floater__body { font-family: '"Space Grotesk"', system-ui, sans-serif !important; } .react-joyride__tooltip { font-family: '"Space Grotesk"', system-ui, sans-serif !important; border-radius: 4px !important; } /* Leaflet attribution */ .leaflet-container .leaflet-control-attribution { font-size: 11px !important; color: #606373 !important; background: rgba(255, 255, 255, 0.9) !important; padding: 2px 6px !important; font-family: '"Space Grotesk"', system-ui, sans-serif !important; } .leaflet-container .leaflet-control-attribution a { color: #446b26 !important; }