/* Public guides on rupees.com. Plain files, no script, same look as the home
   page: light, Inter, one accent. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/guides/inter-latin.woff2') format('woff2');
}
:root {
  --bg: #f5f6fa; --card: #fff; --ink: #0a0b0f; --text: #2a2f3a; --muted: #5a6170;
  --line: rgba(12, 18, 32, .1); --accent-ink: #0050c8;
  --gutter: clamp(16px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); }
img { display: block; max-width: 100%; }
.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mark img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--ink); color: #fff !important; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: #23262f; }

.page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-block: 44px 72px; align-items: start; }
.page.full { grid-template-columns: minmax(0, 1fr); }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
h1 { color: var(--ink); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 0 0 18px; }
h2 { color: var(--ink); font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; margin: 46px 0 12px; }
h3 { color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 700; margin: 26px 0 6px; }
p { margin: 0 0 14px; }
article { max-width: 860px; }
.page.full article { max-width: none; }
.answer { font-size: 20px; line-height: 1.55; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 0 0 22px; }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
article ul, article ol { padding-left: 22px; margin: 0 0 16px; }
article li { margin-bottom: 8px; }
.src { font-size: 14px; color: var(--muted); }

.tbl { overflow-x: auto; margin: 18px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.tbl.wide table { min-width: 640px; }

.rail { position: sticky; top: 88px; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h2 { font-size: 19px; margin: 0 0 8px; }
.card p { font-size: 15px; line-height: 1.5; margin: 0 0 14px; color: var(--muted); }
.card .links { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.4; }
.card .links li { margin: 0 0 10px; }
.card .links li:last-child { margin: 0; }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 22px; }
.list a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: var(--text); text-decoration: none; }
.list a:hover { border-color: rgba(10, 108, 255, .45); }
.list b { display: block; color: var(--ink); font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.list span { font-size: 15px; line-height: 1.45; }

.foot { border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-block: 26px; align-items: center; }
.foot a { color: var(--muted); }
.foot .legal { margin-left: auto; }

@media (max-width: 1000px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 28px 56px; }
  .rail { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav a:not(.btn) { display: none; }
  .answer { font-size: 18px; padding: 18px; }
  /* A table with several columns reads as a stack of cards on a phone. */
  .tbl.wide table { min-width: 0; }
  .tbl.wide thead { display: none; }
  .tbl.wide tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.wide tr:last-child { border-bottom: 0; }
  .tbl.wide td { display: block; padding: 3px 0; border: 0; }
  .tbl.wide td:last-child { color: var(--muted); }
  .tbl.kv th, .tbl.kv td { display: block; border: 0; }
  .tbl.kv th { padding: 12px 14px 0; }
  .tbl.kv td { padding: 2px 14px 12px; overflow-wrap: anywhere; }
  .foot .legal { margin-left: 0; width: 100%; }
}
