/* CashlessConsumer — eMudhra CA compromise incident site.
   Brand: navy #0d1b3d, amber #f0b429, per Identities/cashlessconsumer.yaml. */

:root {
  --navy: #0d1b3d;
  --navy-deep: #091228;
  --amber: #f0b429;
  --blue: #8fa8e0;
  --ink: #1c2333;
  --muted: #5a6478;
  --paper: #fdfcf9;
  --card: #ffffff;
  --line: #e3e0d8;
  --ok: #1e7d43;
  --bad: #b3362b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}
.site-nav a {
  color: #cdd7ef;
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}
.site-nav a:hover { color: var(--amber); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #f2f4fa;
  padding: 64px 0 52px;
}
.hero-kicker {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero h1 .amber { color: var(--amber); }
.hero-sub { max-width: 46em; font-size: 19px; color: #cfd8ee; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid #3d4f80;
  color: #e8edf9;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.btn:hover { border-color: var(--amber); color: var(--amber); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.btn-primary:hover { filter: brightness(1.06); color: var(--navy); }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  flex: 1 1 160px;
  background: rgba(255,255,255,0.05);
  border: 1px solid #2c3c66;
  border-radius: 10px;
  padding: 14px 16px;
}
.stat-num { font-size: 30px; font-weight: 800; color: var(--amber); line-height: 1.1; }
.stat-label { font-size: 14px; color: #b9c4e0; margin-top: 4px; }

/* Sections */
section { padding: 46px 0; }
.band { background: #f4f1ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 20px; color: var(--navy); }
h3 { font-size: 21px; color: var(--navy); margin: 30px 0 10px; }
h4 { margin: 0 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--navy); }
.fine { color: var(--muted); font-size: 15px; }

.plain-list { padding-left: 22px; margin: 0 0 16px; }
.plain-list li { margin-bottom: 12px; }
.fn { font-size: 13px; vertical-align: super; text-decoration: none; color: var(--navy); }
pre {
  background: var(--navy-deep);
  color: #d9e2f7;
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14.5px;
}
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: none; }
.tl-date { font-weight: 700; color: var(--navy); }

/* Consumer columns */
.cols { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.col { flex: 1 1 300px; background: var(--card); border-radius: 10px; padding: 18px 20px; border: 1px solid var(--line); }
.col.ok { border-top: 4px solid var(--ok); }
.col.bad { border-top: 4px solid var(--bad); }
.col ul { margin: 0; padding-left: 20px; }
.col li { margin-bottom: 8px; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.video-embed { position: relative; padding-top: 56.25%; margin-bottom: 12px; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
.video-card h4 { font-size: 17px; }

/* Sources */
.src-list { padding-left: 22px; }
.src-list li { margin-bottom: 12px; font-size: 15.5px; }
.src-list a { word-break: break-all; }

/* Callout + footer */
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 10px; padding: 22px 26px; }
.callout p { margin: 0; font-size: 18px; }
.site-footer {
  background: var(--navy);
  color: #b9c4e0;
  padding: 26px 0;
  font-size: 15px;
}
.site-footer .wrap-wide { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer a { color: var(--amber); text-decoration: none; }

/* Document pages (statement, letter) */
.doc-header { background: var(--navy); color: #f2f4fa; padding: 44px 0 36px; border-bottom: 3px solid var(--amber); }
.doc-kicker { color: var(--amber); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.doc-header h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; margin: 0 0 8px; }
.doc-meta { color: #b9c4e0; font-size: 15px; margin-top: 10px; }
.doc-meta a { color: var(--amber); }
.prose { font-size: 17.5px; }
.prose h2 { font-size: 24px; margin-top: 34px; }
.prose h3 { font-size: 20px; margin-top: 26px; }
.prose ol, .prose ul { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--amber);
  background: #f7f4ed;
  color: var(--muted);
  font-size: 16px;
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.footnotes { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 34px; padding-top: 14px; }
.footnotes a { word-break: break-all; }

@media (max-width: 640px) {
  .site-nav a { margin-left: 12px; font-size: 13.5px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  body { font-size: 16px; }
}

/* Hub breadcrumb (cyber.cashlessconsumer.in context) */
.hub-crumb { max-width: 1100px; margin: 0 auto; padding: 10px 20px 0; font-size: 12.5px; color: var(--muted); }
.hub-crumb a { color: var(--navy); text-decoration: none; }
.hub-crumb a:hover { text-decoration: underline; }
.hub-crumb .sep { margin: 0 8px; color: #3d4d7a; }

/* Related-links heading (was h3, promoted to h2 for outline order) — keep prior size */
h2.related-h { font-size: 21px; margin: 30px 0 10px; }

/* company.html body sections (generated as h3, promoted to h2 for outline order) — keep prior size */
h2.sub-h { font-size: 21px; margin: 30px 0 10px; }

/* ============ A11y layer (2026-10-30 UX pass) ============ */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--amber); color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 8px;
  font-weight: 700; font-size: 0.9rem; transition: top .15s;
}
.skip-link:focus { top: 0; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}
a:focus-visible { outline-color: var(--amber); outline-offset: 3px; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
h2.doc-title { font-size: 34px; margin: 0 0 14px; }
