/* Ritwik One policies: one stylesheet, no scripts, no third-party requests. Mobile first; print rules at the end. */

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-line: #bfdbfe;
  --gap-bg: #fef3c7;
  --gap-line: #b45309;
  --gap-ink: #78350f;
  --font-text: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: Manrope, Inter, "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 1.15rem; font-weight: 700; margin: 2.25rem 0 0.5rem; scroll-margin-top: 1rem; }
h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.25rem; }
p, ul, ol, dl { margin: 0 0 0.85rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }
strong { color: var(--ink); font-weight: 600; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--blue); padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .bar {
  max-width: 48rem; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 2.5rem; width: auto; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; border-left: 1px solid var(--line); padding-left: 0.75rem; }
.site-header .app-link { font-size: 0.875rem; font-weight: 600; }

main { max-width: 48rem; margin: 0 auto; padding: 1rem 0.75rem 2.5rem; }

.page {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.meta { font-size: 0.875rem; color: var(--muted); margin: 0.5rem 0 0; }
.eyebrow { margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* (i), (ii), (iii) sub-points, as in the Company's existing policies */
ol.roman { list-style: none; counter-reset: item; padding-left: 2.25rem; }
ol.roman > li { counter-increment: item; position: relative; }
ol.roman > li::before { content: "(" counter(item, lower-roman) ")"; position: absolute; left: -2.25rem; width: 1.9rem; text-align: right; color: var(--muted); }

.summary {
  margin: 1.25rem 0 0; padding: 1rem 1.1rem;
  background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: 12px;
}
.summary h2 {
  margin: 0 0 0.35rem; font-family: var(--font-text); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark);
}
.summary p { margin: 0; color: var(--ink); }

.toc { margin: 1.25rem 0 0; font-size: 0.9rem; }
.toc h2 { margin: 0 0 0.35rem; font-size: 0.9rem; }
.toc ol { margin: 0; padding-left: 1.35rem; columns: 2 14rem; column-gap: 1.5rem; }
.toc li { break-inside: avoid; margin: 0 0 0.25rem; }

/* Tables fit the screen; the box scrolls sideways only as a fallback, and is focusable for keyboard users. */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; line-height: 1.45; overflow-wrap: anywhere; hyphens: auto; }
th, td { padding: 0.5rem 0.45rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: #f8fafc; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { color: var(--ink); font-weight: 600; }

/* Contact and grievance block, on every page */
.contact {
  margin: 2.5rem 0 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc;
}
.contact h2 { margin: 0 0 0.5rem; }
.contact dl { display: grid; grid-template-columns: 1fr; gap: 0.1rem 1rem; margin: 0.75rem 0 1rem; }
.contact > :last-child { margin-bottom: 0; }
.contact dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-top: 0.5rem; }
.contact dd { margin: 0; color: var(--ink); }

/* Index */
.intro { font-size: 1.05rem; margin: 0.75rem 0 0; }
.policy-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.policy-list li { margin: 0; }
.policy-list a {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--text); background: var(--surface);
}
.policy-list a:hover { border-color: var(--blue-line); background: var(--blue-soft); }
.policy-list .title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); }
.policy-list .desc { display: block; margin-top: 0.2rem; }
.policy-list .meta { display: block; margin-top: 0.35rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .bar { max-width: 48rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; font-size: 0.875rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer li { margin: 0; }
.site-footer p { margin: 0 0 0.35rem; }

/* Review only: open questions and the draft notice. The gap check fails while any of these remain. */
.review-note {
  margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid var(--gap-line); border-radius: 10px;
  background: var(--gap-bg); color: var(--gap-ink); font-size: 0.875rem;
}
mark.gap {
  background: var(--gap-bg); color: var(--gap-ink); border-bottom: 2px dashed var(--gap-line);
  padding: 0 0.2em; border-radius: 3px;
}
mark.gap::before { content: attr(data-q) "\00a0"; font-size: 0.72em; font-weight: 700; }

@media (min-width: 40rem) {
  h1 { font-size: 2.1rem; }
  main { padding: 2rem 1.5rem 3.5rem; }
  .page { padding: 2.25rem 2.5rem; }
  .contact dl { grid-template-columns: max-content 1fr; }
  .contact dt { margin-top: 0; }
  table { font-size: 0.875rem; line-height: 1.5; }
  th, td { padding: 0.6rem 0.75rem; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .skip, .site-header .app-link, .toc, .site-footer ul { display: none; }
  .site-header, .site-footer { border: 0; }
  .site-header .bar, main, .site-footer .bar { max-width: none; padding-left: 0; padding-right: 0; }
  main { padding-top: 0.5rem; }
  .page { border: 0; box-shadow: none; padding: 0; }
  .summary, .contact { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .table-wrap table { min-width: 0; border: 1px solid var(--line); }
  thead { display: table-header-group; }
  a { color: #000; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}

@media (prefers-reduced-motion: no-preference) {
  .policy-list a { transition: background-color 0.15s, border-color 0.15s; }
}
