/* ============================================================
   google-transparency-report-analysis.oriz.in — shared styles
   Editorial palette: deep navy + teal accent, clean whites
   ============================================================ */

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface2: #f0f4f8;
  --border: #dde3ec;
  --text: #14213d;
  --text-muted: #5a6478;
  --accent: #1d4e89;
  --accent2: #2e86ab;
  --accent3: #a23b72;
  --accent4: #f18f01;
  --accent5: #c73e1d;
  --accent6: #0a7373;
  --accent7: #3b1f2b;
  --accent8: #44bba4;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Nav ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
nav ul::-webkit-scrollbar { display: none; }
nav ul a {
  display: block;
  padding: 0 0.9rem;
  height: 56px;
  line-height: 56px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav ul a:hover, nav ul a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #14213d 0%, #1d4e89 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 0.75rem;
}
.hero-url {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.hero-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges img { height: 20px; }

/* ---- Page header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, #14213d 0%, #1d4e89 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
}
.page-header-inner { max-width: 860px; margin: 0 auto; }
.page-header .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}
.page-header .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-header p {
  margin-top: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  max-width: 600px;
}
.data-tag {
  display: inline-block;
  margin-top: 0.9rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---- Sections ---- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(29,78,137,0.12);
  transform: translateY(-2px);
}
.card-accent {
  height: 4px;
  background: var(--accent);
}
.card-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(29,78,137,0.08);
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  width: fit-content;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent2);
  margin-top: 0.5rem;
}

/* ---- Highlight / findings ---- */
.highlight-section {
  background: linear-gradient(135deg, #14213d 0%, #1d4e89 100%);
  max-width: 100%;
  padding: 3.5rem 1.5rem;
  color: #fff;
}
.highlight-section .section-title { color: #fff; max-width: 1160px; margin: 0 auto 2rem; }
.findings-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}
.finding-item { display: flex; flex-direction: column; gap: 0.3rem; }
.finding-num {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--mono);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.finding-label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---- Chart containers ---- */
.chart-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.chart-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.chart-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.chart-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.chart-wrap { position: relative; height: 320px; }

/* ---- Key findings list ---- */
.findings-list {
  background: var(--surface2);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.findings-list h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.findings-list ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.findings-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
}
.findings-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ---- Source citation ---- */
.source-cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}
.source-cite a { color: var(--accent2); }

/* ---- Data source table ---- */
.source-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.source-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: var(--surface2);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.source-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.source-table tr:last-child td { border-bottom: none; }
.source-table a { color: var(--accent2); }
.badge-bulk {
  display: inline-block;
  background: rgba(68,187,164,0.15);
  color: #0a7373;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-interactive {
  display: inline-block;
  background: rgba(29,78,137,0.1);
  color: var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Code ---- */
.code-block-wrap {
  background: #0d1117;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #c9d1d9;
}
code { font-family: var(--mono); font-size: 0.875em; }

/* ---- Info box ---- */
.info-box {
  background: rgba(46,134,171,0.08);
  border: 1px solid rgba(46,134,171,0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text);
  margin: 1.5rem 0;
}
.info-box strong { color: var(--accent2); }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-inner a { color: var(--accent2); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav-inner { gap: 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .card-grid { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-wrap { height: 240px; }
}
