/* BizSensei Legal (legal.bizsensei.co.in).
   A quiet legal archive: light gray paper, white document sheets with
   1px borders and no shadows, black ink. Inter for UI text, Georgia
   serif for document titles and part headings. Monochrome only. */
:root {
  --paper: #f4f4f4;
  --sheet: #ffffff;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #6f6f6f;
  --line: #d9d9d9;
  --line-dark: #111111;
  --chip-bg: #efefef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15.5px; line-height: 1.6; }
a { color: var(--ink); }
.doc-serif { font-family: Georgia, "Times New Roman", serif; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 780px; }

/* Header */
.site-header { background: var(--sheet); border-bottom: 1px solid var(--line-dark); }
.header-in { display: flex; align-items: center; gap: 26px; min-height: 62px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.2px; }
.brand-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; border: 1px solid var(--ink); padding: 2px 7px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 10px; border: 1px solid transparent; }
.main-nav a:hover { border-color: var(--line); }
.main-nav a.active { color: var(--ink); border-color: var(--line-dark); }

/* Library head + sections */
.lib-head { background: var(--sheet); border-bottom: 1px solid var(--line); padding: 44px 0 38px; }
.kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin: 0 0 14px; }
.lib-head h1 { font-size: 34px; line-height: 1.22; font-weight: 600; margin: 0 0 14px; max-width: 820px; }
.lead { font-size: 16.5px; color: var(--ink-soft); max-width: 760px; margin: 0; }
.sec { padding: 40px 0 8px; }
.sec-alt { background: #ececec; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 40px; margin-top: 32px; }
.sec-title { font-size: 24px; font-weight: 600; margin: 0 0 18px; }

/* Document library cards */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; padding-bottom: 26px; }
.doc-card { background: var(--sheet); border: 1px solid var(--line); padding: 22px 22px 16px; }
.doc-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.doc-card h3 a { text-decoration: none; }
.doc-card h3 a:hover { text-decoration: underline; }
.doc-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 12px; }
.doc-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; background: var(--chip-bg); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; padding: 2px 8px; text-decoration: none; color: var(--ink-soft); }
.chip:hover { border-color: var(--line-dark); color: var(--ink); }
.read-link { font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 1px; }

/* Property index */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.prop-card { background: var(--sheet); border: 1px solid var(--line); padding: 18px 20px; }
.prop-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.prop-links { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.prop-links a { font-size: 13.5px; color: var(--ink-soft); text-decoration: none; }
.prop-links a:hover { color: var(--ink); text-decoration: underline; }

/* Document page */
.doc-sec { padding-top: 28px; }
.doc-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.rail-box { background: var(--sheet); border: 1px solid var(--line); padding: 14px 16px; }
.rail-box h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin: 0 0 10px; }
.rail-box a { display: block; font-size: 13.5px; color: var(--ink-soft); text-decoration: none; padding: 3px 0; }
.rail-box a:hover { color: var(--ink); text-decoration: underline; }
.rail-box a.active { color: var(--ink); font-weight: 700; }
.toc a.current { color: var(--ink); font-weight: 700; text-decoration: underline; }
.sheet { background: var(--sheet); border: 1px solid var(--line); padding: 38px 44px 30px; margin-bottom: 42px; }
.sheet h1 { font-size: 32px; font-weight: 600; line-height: 1.2; margin: 0 0 10px; }
.doc-stamps { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 0; margin: 0 0 24px; }
.doc-body { font-size: 15.5px; color: var(--ink-soft); }
.doc-body p { margin: 0 0 13px; }
.doc-body .doc-part { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.doc-body .doc-part:first-child { border-top: none; margin-top: 6px; padding-top: 0; }
.doc-body h2.part-title { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.doc-body .applies { display: inline-block; background: var(--chip-bg); border: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 3px 9px; color: var(--ink); margin: 0 0 16px; }
.doc-body h3 { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.doc-body h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 5px; }
.doc-body table { border-collapse: collapse; width: 100%; margin: 14px 0 20px; font-size: 13.5px; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--chip-bg); color: var(--ink); font-weight: 700; }
.doc-body blockquote { border-left: 3px solid var(--ink); margin: 16px 0; padding: 4px 0 4px 16px; color: var(--ink-soft); }
.doc-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--chip-bg); border: 1px solid var(--line); padding: 1px 5px; }
.doc-body hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.doc-crosslinks { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.doc-crosslinks span { color: var(--muted); font-weight: 600; }
.doc-crosslinks a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--sheet); border-top: 1px solid var(--line-dark); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 26px; padding: 32px 22px 26px; }
.foot-brand { font-weight: 700; font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.foot-note { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 340px; }
.site-footer h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin: 2px 0 10px; }
.site-footer .foot-grid a { display: block; font-size: 13.5px; color: var(--ink-soft); text-decoration: none; padding: 2px 0; }
.site-footer .foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .foot-grid p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; }
.site-footer .foot-grid p a { display: inline; padding: 0; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* Forms (installer) */
.form-card { background: var(--sheet); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; margin: 22px 0 50px; }
.form-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.form-card input { font: inherit; padding: 9px 10px; border: 1px solid #bbb; background: #fff; color: var(--ink); }
.btn { display: inline-block; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; cursor: pointer; text-decoration: none; align-self: flex-start; }
.flash { padding: 10px 14px; border: 1px solid var(--ink); background: #fff; margin: 14px 0; font-size: 13.5px; }
.flash-error { border-left: 6px solid var(--ink); font-weight: 600; }
.flash-success { background: var(--ink); color: #fff; }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .rail-box { flex: 1 1 200px; }
  .sheet { padding: 26px 20px 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .lib-head h1 { font-size: 27px; }
}

/* Print: clean black on white, furniture hidden. */
@media print {
  body { background: #fff; font-size: 11.5pt; }
  .site-header, .site-footer, .rail, .doc-crosslinks { display: none !important; }
  .doc-wrap { display: block; }
  .sheet { border: none; padding: 0; margin: 0; }
  .doc-body { color: #000; }
  a { color: #000; text-decoration: none; }
  .doc-body .doc-part { break-inside: auto; }
  .doc-body table { break-inside: avoid; }
}
